2 # From configure.in Revision: 1.730 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20210509.
6 # Copyright 2003-2020,2021 Thomas E. Dickey
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Avoid depending upon Character Ranges.
13 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits='0123456789'
17 as_cr_alnum=$as_cr_Letters$as_cr_digits
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
33 # Name of the executable.
34 as_me=`echo "$0" |sed 's,.*[\\/],,'`
36 if expr a : '\(a\)' >/dev/null 2>&1; then
42 rm -f conf$$ conf$$.exe conf$$.file
44 if ln -s conf$$.file conf$$ 2>/dev/null; then
45 # We could just check for DJGPP; but this test a) works b) is more generic
46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 if test -f conf$$.exe; then
48 # Don't use ln at all; we don't have any links
53 elif ln conf$$.file conf$$ 2>/dev/null; then
58 rm -f conf$$ conf$$.exe conf$$.file
60 as_executable_p="test -f"
62 # Support unset when possible.
63 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
70 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
80 # We need space, tab and new line, in precisely that order.
86 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
89 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 # so uname gets run too.
91 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
98 ac_default_prefix=/usr/local
103 SHELL=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
106 # This variable seems obsolete. It should probably be removed, and
107 # only ac_max_sed_lines should be used.
108 : "${ac_max_here_lines=38}"
110 ac_unique_file="ncurses/base/lib_initscr.c"
111 # Factoring default headers for most tests.
112 ac_includes_default="\
115 # include <sys/types.h>
118 # include <sys/stat.h>
129 # if !STDC_HEADERS && HAVE_MEMORY_H
135 # include <strings.h>
138 # include <inttypes.h>
148 # Initialize some variables set by options.
150 ac_init_version=false
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
160 program_transform_name=s,x,x,
168 # Installation directory options.
169 # These are left unexpanded so users can "make install exec_prefix=/foo"
170 # and all the variables that are supposed to be based on exec_prefix
171 # by default will actually change.
172 # Use braces instead of parens because sh, perl, etc. also accept them.
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datarootdir='${prefix}/share'
177 datadir='${datarootdir}'
178 sysconfdir='${prefix}/etc'
179 sharedstatedir='${prefix}/com'
180 localstatedir='${prefix}/var'
181 runstatedir='${localstatedir}/run'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${datarootdir}/info'
186 mandir='${datarootdir}/man'
188 # Identity of this package.
198 # If the previous option needs an argument, assign it.
199 if test -n "$ac_prev"; then
200 eval "$ac_prev=\$ac_option"
205 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
207 # Accept the important Cygnus configure options, so we can diagnose typos.
211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
216 -build | --build | --buil | --bui | --bu)
217 ac_prev=build_alias ;;
218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
219 build_alias=$ac_optarg ;;
221 -cache-file | --cache-file | --cache-fil | --cache-fi \
222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
223 ac_prev=cache_file ;;
224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
226 cache_file=$ac_optarg ;;
229 cache_file=config.cache ;;
231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
235 datadir=$ac_optarg ;;
237 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
238 | --dataroo | --dataro | --datar)
239 ac_prev=datarootdir ;;
240 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
241 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
242 datarootdir=$ac_optarg ;;
244 -disable-* | --disable-*)
245 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
246 # Reject names that are not valid shell variable names.
247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
249 { (exit 1); exit 1; }; }
250 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
251 eval "enable_$ac_feature=no" ;;
253 -enable-* | --enable-*)
254 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
255 # Reject names that are not valid shell variable names.
256 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
257 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
258 { (exit 1); exit 1; }; }
259 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
261 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
264 eval "enable_$ac_feature='$ac_optarg'" ;;
266 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
267 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
268 | --exec | --exe | --ex)
269 ac_prev=exec_prefix ;;
270 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
271 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
272 | --exec=* | --exe=* | --ex=*)
273 exec_prefix=$ac_optarg ;;
275 -gas | --gas | --ga | --g)
276 # Obsolete; use --with-gas.
279 -help | --help | --hel | --he | -h)
281 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
282 ac_init_help=recursive ;;
283 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
284 ac_init_help=short ;;
286 -host | --host | --hos | --ho)
287 ac_prev=host_alias ;;
288 -host=* | --host=* | --hos=* | --ho=*)
289 host_alias=$ac_optarg ;;
291 -includedir | --includedir | --includedi | --included | --include \
292 | --includ | --inclu | --incl | --inc)
293 ac_prev=includedir ;;
294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
295 | --includ=* | --inclu=* | --incl=* | --inc=*)
296 includedir=$ac_optarg ;;
298 -infodir | --infodir | --infodi | --infod | --info | --inf)
300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
301 infodir=$ac_optarg ;;
303 -libdir | --libdir | --libdi | --libd)
305 -libdir=* | --libdir=* | --libdi=* | --libd=*)
308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
309 | --libexe | --libex | --libe)
310 ac_prev=libexecdir ;;
311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
312 | --libexe=* | --libex=* | --libe=*)
313 libexecdir=$ac_optarg ;;
315 -localstatedir | --localstatedir | --localstatedi | --localstated \
316 | --localstate | --localstat | --localsta | --localst \
317 | --locals | --local | --loca | --loc | --lo)
318 ac_prev=localstatedir ;;
319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
320 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
321 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
322 localstatedir=$ac_optarg ;;
324 -runstatedir | --runstatedir | --runstatedi | --runstated \
325 | --runstate | --runstat | --runsta | --runst \
326 | --runs | --run | --ru)
327 ac_prev=runstatedir ;;
328 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
329 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
330 | --runs=* | --run=* | --ru=*)
331 runstatedir=$ac_optarg ;;
333 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
335 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
339 # Obsolete; use --without-fp.
342 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
346 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
347 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
350 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
351 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
352 | --oldin | --oldi | --old | --ol | --o)
353 ac_prev=oldincludedir ;;
354 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
355 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
356 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
357 oldincludedir=$ac_optarg ;;
359 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
361 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
364 -program-prefix | --program-prefix | --program-prefi | --program-pref \
365 | --program-pre | --program-pr | --program-p)
366 ac_prev=program_prefix ;;
367 -program-prefix=* | --program-prefix=* | --program-prefi=* \
368 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
369 program_prefix=$ac_optarg ;;
371 -program-suffix | --program-suffix | --program-suffi | --program-suff \
372 | --program-suf | --program-su | --program-s)
373 ac_prev=program_suffix ;;
374 -program-suffix=* | --program-suffix=* | --program-suffi=* \
375 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
376 program_suffix=$ac_optarg ;;
378 -program-transform-name | --program-transform-name \
379 | --program-transform-nam | --program-transform-na \
380 | --program-transform-n | --program-transform- \
381 | --program-transform | --program-transfor \
382 | --program-transfo | --program-transf \
383 | --program-trans | --program-tran \
384 | --progr-tra | --program-tr | --program-t)
385 ac_prev=program_transform_name ;;
386 -program-transform-name=* | --program-transform-name=* \
387 | --program-transform-nam=* | --program-transform-na=* \
388 | --program-transform-n=* | --program-transform-=* \
389 | --program-transform=* | --program-transfor=* \
390 | --program-transfo=* | --program-transf=* \
391 | --program-trans=* | --program-tran=* \
392 | --progr-tra=* | --program-tr=* | --program-t=*)
393 program_transform_name=$ac_optarg ;;
395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
396 | -silent | --silent | --silen | --sile | --sil)
399 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
401 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
403 sbindir=$ac_optarg ;;
405 -sharedstatedir | --sharedstatedir | --sharedstatedi \
406 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
407 | --sharedst | --shareds | --shared | --share | --shar \
409 ac_prev=sharedstatedir ;;
410 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
411 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
412 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
414 sharedstatedir=$ac_optarg ;;
416 -site | --site | --sit)
418 -site=* | --site=* | --sit=*)
421 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
423 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
426 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
427 | --syscon | --sysco | --sysc | --sys | --sy)
428 ac_prev=sysconfdir ;;
429 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
430 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
431 sysconfdir=$ac_optarg ;;
433 -target | --target | --targe | --targ | --tar | --ta | --t)
434 ac_prev=target_alias ;;
435 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
436 target_alias=$ac_optarg ;;
438 -v | -verbose | --verbose | --verbos | --verbo | --verb)
441 -version | --version | --versio | --versi | --vers | -V)
445 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
446 # Reject names that are not valid shell variable names.
447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
448 { echo "$as_me: error: invalid package name: $ac_package" >&2
449 { (exit 1); exit 1; }; }
450 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
452 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
455 eval "with_$ac_package='$ac_optarg'" ;;
457 -without-* | --without-*)
458 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
459 # Reject names that are not valid shell variable names.
460 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
461 { echo "$as_me: error: invalid package name: $ac_package" >&2
462 { (exit 1); exit 1; }; }
463 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
464 eval "with_$ac_package=no" ;;
467 # Obsolete; use --with-x.
470 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
471 | --x-incl | --x-inc | --x-in | --x-i)
472 ac_prev=x_includes ;;
473 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
474 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
475 x_includes=$ac_optarg ;;
477 -x-libraries | --x-libraries | --x-librarie | --x-librari \
478 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
479 ac_prev=x_libraries ;;
480 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
481 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
482 x_libraries=$ac_optarg ;;
484 -*) { echo "$as_me: error: unrecognized option: $ac_option
485 Try \`$0 --help' for more information." >&2
486 { (exit 1); exit 1; }; }
490 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
491 # Reject names that are not valid shell variable names.
492 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
493 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
494 { (exit 1); exit 1; }; }
495 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
496 eval "$ac_envvar='$ac_optarg'"
497 export "$ac_envvar" ;;
500 # FIXME: should be removed in autoconf 3.0.
501 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
502 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
503 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
504 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}"
510 if test -n "$ac_prev"; then
511 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
512 { echo "$as_me: error: missing argument to $ac_option" >&2
513 { (exit 1); exit 1; }; }
516 # Be sure to have absolute paths.
517 for ac_var in exec_prefix prefix
519 eval ac_val=$`echo "$ac_var"`
521 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # Be sure to have absolute paths.
528 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
529 localstatedir libdir includedir oldincludedir infodir mandir
531 eval ac_val=$`echo "$ac_var"`
533 [\\/$]* | ?:[\\/]* ) ;;
534 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
535 { (exit 1); exit 1; }; };;
539 # There might be people who depend on the old broken behavior: `$host'
540 # used to hold the argument of --host etc.
545 # FIXME: should be removed in autoconf 3.0.
546 if test "x$host_alias" != x; then
547 if test "x$build_alias" = x; then
548 cross_compiling=maybe
549 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
550 If a cross compiler is detected then cross compile mode will be used." >&2
551 elif test "x$build_alias" != "x$host_alias"; then
557 test -n "$host_alias" && ac_tool_prefix=$host_alias-
559 test "$silent" = yes && exec 6>/dev/null
561 # Find the source files, if location was not specified.
562 if test -z "$srcdir"; then
563 ac_srcdir_defaulted=yes
564 # Try the directory containing this script, then its parent.
566 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
567 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
569 if test ! -r "$srcdir/$ac_unique_file"; then
573 ac_srcdir_defaulted=no
575 if test ! -r "$srcdir/$ac_unique_file"; then
576 if test "$ac_srcdir_defaulted" = yes; then
577 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
578 { (exit 1); exit 1; }; }
580 { echo "$as_me: error: cannot find sources in $srcdir" >&2
581 { (exit 1); exit 1; }; }
584 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
585 ac_env_build_alias_set=${build_alias+set}
586 ac_env_build_alias_value=$build_alias
587 ac_cv_env_build_alias_set=${build_alias+set}
588 ac_cv_env_build_alias_value=$build_alias
589 ac_env_host_alias_set=${host_alias+set}
590 ac_env_host_alias_value=$host_alias
591 ac_cv_env_host_alias_set=${host_alias+set}
592 ac_cv_env_host_alias_value=$host_alias
593 ac_env_target_alias_set=${target_alias+set}
594 ac_env_target_alias_value=$target_alias
595 ac_cv_env_target_alias_set=${target_alias+set}
596 ac_cv_env_target_alias_value=$target_alias
597 ac_env_CC_set=${CC+set}
599 ac_cv_env_CC_set=${CC+set}
600 ac_cv_env_CC_value=$CC
601 ac_env_CFLAGS_set=${CFLAGS+set}
602 ac_env_CFLAGS_value=$CFLAGS
603 ac_cv_env_CFLAGS_set=${CFLAGS+set}
604 ac_cv_env_CFLAGS_value=$CFLAGS
605 ac_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_env_LDFLAGS_value=$LDFLAGS
607 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
608 ac_cv_env_LDFLAGS_value=$LDFLAGS
609 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_env_CPPFLAGS_value=$CPPFLAGS
611 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
612 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
613 ac_env_CPP_set=${CPP+set}
614 ac_env_CPP_value=$CPP
615 ac_cv_env_CPP_set=${CPP+set}
616 ac_cv_env_CPP_value=$CPP
617 ac_env_CXX_set=${CXX+set}
618 ac_env_CXX_value=$CXX
619 ac_cv_env_CXX_set=${CXX+set}
620 ac_cv_env_CXX_value=$CXX
621 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
622 ac_env_CXXFLAGS_value=$CXXFLAGS
623 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
624 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
625 ac_env_CXXCPP_set=${CXXCPP+set}
626 ac_env_CXXCPP_value=$CXXCPP
627 ac_cv_env_CXXCPP_set=${CXXCPP+set}
628 ac_cv_env_CXXCPP_value=$CXXCPP
631 # Report the --help message.
633 if test "$ac_init_help" = "long"; then
634 # Omit some internal or obsolete options to make the list less imposing.
635 # This message is too long to be a string in the A/UX 3.1 sh.
637 \`configure' configures this package to adapt to many kinds of systems.
639 Usage: $0 [OPTION]... [VAR=VALUE]...
641 To assign environment variables (e.g., CC, CFLAGS...), specify them as
642 VAR=VALUE. See below for descriptions of some of the useful variables.
644 Defaults for the options are specified in brackets.
647 -h, --help display this help and exit
648 --help=short display options specific to this package
649 --help=recursive display the short help of all the included packages
650 -V, --version display version information and exit
651 -q, --quiet, --silent do not print \`checking...' messages
652 --cache-file=FILE cache test results in FILE [disabled]
653 -C, --config-cache alias for \`--cache-file=config.cache'
654 -n, --no-create do not create output files
655 --srcdir=DIR find the sources in DIR [configure dir or \`..']
660 Installation directories:
661 --prefix=PREFIX install architecture-independent files in PREFIX
663 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
666 By default, \`make install' will install all the files in
667 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
668 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
669 for instance \`--prefix=\$HOME'.
671 For better control, use the options below.
673 Fine tuning of the installation directories:
674 --bindir=DIR user executables [EPREFIX/bin]
675 --sbindir=DIR system admin executables [EPREFIX/sbin]
676 --libexecdir=DIR program executables [EPREFIX/libexec]
677 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
678 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
679 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
680 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
681 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
682 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
683 --libdir=DIR object code libraries [EPREFIX/lib]
684 --includedir=DIR C header files [PREFIX/include]
685 --oldincludedir=DIR C header files for non-gcc [/usr/include]
686 --infodir=DIR info documentation [DATAROOTDIR/info]
687 --mandir=DIR man documentation [DATAROOTDIR/man]
693 --program-prefix=PREFIX prepend PREFIX to installed program names
694 --program-suffix=SUFFIX append SUFFIX to installed program names
695 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
698 --build=BUILD configure for building on BUILD [guessed]
699 --host=HOST build programs to run on HOST [BUILD]
700 --target=TARGET configure for building compilers for TARGET [HOST]
704 if test -n "$ac_init_help"; then
709 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
710 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
713 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
714 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
716 --with-rel-version=XXX override derived release version
717 --with-abi-version=XXX override derived ABI version
718 --with-system-type=XXX test: override derived host system-type
719 --without-ada suppress check for Ada compiler, don't build demo
720 --without-cxx do not adjust ncurses bool to match C++
721 --without-cxx-binding do not build C++ binding and demo
722 --disable-db-install suppress install of terminal database
723 --without-manpages suppress install of manpages
724 --without-progs suppress build/install with programs (e.g., tic)
725 --without-tack suppress build/install with tack program
726 --without-tests suppress build/install with test-programs
727 --without-curses-h install curses.h as ncurses.h only
728 --with-config-suffix=X suffixes ncursesXX-config file
729 --with-pkg-config{=path} enable/disable use of pkg-config
730 --with-pkg-config-libdir=XXX use given directory for installing pc-files
731 --enable-pc-files generate and install .pc files for pkg-config
732 --with-pc-suffix suffixes pc-files
733 --enable-mixed-case tic should assume mixed-case filenames
734 --with-install-prefix prefixes actual install-location ($DESTDIR)
735 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
736 --with-build-cc=XXX the build C compiler ($BUILD_CC)
737 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
738 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
739 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
740 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
741 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
742 Options to Specify the Libraries Built/Used:
743 --disable-libtool-version enable to use libtool's incompatible naming scheme
744 --with-libtool generate libraries with libtool
745 --with-shared generate shared-libraries
746 --with-normal generate normal-libraries (default)
747 --with-debug generate debug-libraries (default)
748 --with-profile generate profile-libraries
749 --with-cxx-shared generate C++ shared-libraries
750 --with-lib-prefix override library-prefix
751 --with-termlib generate separate terminfo library
752 --with-ticlib generate separate tic library
753 --enable-rpath use rpath option when generating shared libraries
754 --disable-relink relink shared libraries during install
755 --with-shlib-version=X Specify rel or abi version for shared libs
756 --with-libtool-opts=XXX specify additional libtool options
757 --with-export-syms=XXX limit exported symbols using libtool
758 --with-versioned-syms=X markup versioned symbols using ld
759 --with-gpm use Alessandro Rubini's GPM library
760 --without-dlsym do not use dlsym() to load GPM dynamically
761 --with-pcre2 use PCRE2 for regular-expressions
762 --with-sysmouse use sysmouse (FreeBSD console)
763 --disable-lib-suffixes disable library suffixes
764 --disable-rpath-hack don't add rpath options for additional libraries
765 --disable-pkg-ldflags disable extra LDFLAGS for package-scripts
766 Fine-Tuning Your Configuration:
767 --with-extra-suffix=X append extra suffix to header/library paths
768 --disable-overwrite put headers in subdir, omit link to -lcurses
769 --disable-database do not use terminfo, only fallbacks/termcap
770 --with-database=XXX specify terminfo source to install
771 --with-hashed-db specify hashed-database library
772 --with-fallbacks=XXX specify list of fallback terminal descriptions
773 --with-tic-path=XXX specify path of tic for fallbacks
774 --with-infocmp-path=XXX specify path of infocmp for fallbacks
775 --without-xterm-new specify if xterm terminfo should be old version
776 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
777 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
778 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
779 --disable-big-core assume machine has little memory
780 --disable-big-strings assume compiler has only standard-size strings
781 --enable-termcap compile in termcap fallback support
782 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
783 --enable-getcap fast termcap load, no xrefs to terminfo
784 --enable-getcap-cache cache translated termcaps in ~/.terminfo
785 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
786 --disable-root-environ restrict 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-stdnoreturn enable C11 _Noreturn feature for diagnostics
853 --enable-string-hacks work around bogus compiler/loader warnings
854 --enable-assertions test: turn on generation of assertion code
855 --with-dmalloc test: use Gray Watson's dmalloc library
856 --with-dbmalloc test: use Conor Cahill's dbmalloc library
857 --with-valgrind test: use valgrind
858 --disable-leaks test: free permanent memory, analyze leaks
859 --enable-expanded test: generate functions for certain macros
860 --disable-macros test: use functions rather than macros
861 --with-trace test: add trace() function to all models of ncurses
862 --disable-gnat-projects test: disable GNAT projects even if usable
864 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
865 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
866 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
867 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
868 --with-ada-libname=XXX override default Ada library-name
869 --with-form-libname=XXX override form basename of library
870 --with-menu-libname=XXX override menu basename of library
871 --with-panel-libname=XXX override panel basename of library
872 --with-cxx-libname=XXX override ncurses++ basename of library
874 Some influential environment variables:
875 CC C compiler command
876 CFLAGS C compiler flags
877 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
878 nonstandard directory <lib dir>
879 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
880 headers in a nonstandard directory <include dir>
882 CXX C++ compiler command
883 CXXFLAGS C++ compiler flags
884 CXXCPP C++ preprocessor
886 Use these variables to override the choices made by `configure' or to help
887 it to find libraries and programs with nonstandard names/locations.
892 if test "$ac_init_help" = "recursive"; then
893 # If there are subdirs, report their specific --help.
895 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
897 # A "../" for each directory in /$ac_subdir.
898 ac_dots=`echo "$ac_subdir" |
899 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
902 .) # No --srcdir option. We are building in place.
903 ac_sub_srcdir="$srcdir" ;;
904 [\\/]* | ?:[\\/]* ) # Absolute path.
905 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
907 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
910 # Check for guested configure; otherwise get Cygnus style configure.
911 if test -f "$ac_sub_srcdir/configure.gnu"; then
913 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
914 elif test -f "$ac_sub_srcdir/configure"; then
916 $SHELL "$ac_sub_srcdir/configure" --help=recursive
917 elif test -f "$ac_sub_srcdir/configure.ac" ||
918 test -f "$ac_sub_srcdir/configure.in"; then
920 "$ac_configure" --help
922 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
928 test -n "$ac_init_help" && exit 0
929 if "$ac_init_version"; then
932 Copyright 2003-2020,2021 Thomas E. Dickey
933 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
934 Free Software Foundation, Inc.
935 This configure script is free software; the Free Software Foundation
936 gives unlimited permission to copy, distribute and modify it.
942 This file contains any messages produced by compilers while
943 running configure, to aid debugging if configure makes a mistake.
945 It was created by $as_me, which was
946 generated by GNU Autoconf 2.52.20210509. Invocation command line was
957 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
958 uname -m = `(uname -m) 2>/dev/null || echo unknown`
959 uname -r = `(uname -r) 2>/dev/null || echo unknown`
960 uname -s = `(uname -s) 2>/dev/null || echo unknown`
961 uname -v = `(uname -v) 2>/dev/null || echo unknown`
963 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
964 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
966 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
967 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
968 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
969 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
970 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
971 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
972 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
986 # Keep a trace of the command line.
987 # Strip out --no-create and --no-recursion so they do not pile up.
988 # Also quote any args containing shell meta-characters.
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c) ;;
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
998 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
999 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1000 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1002 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1005 # Get rid of the leading space.
1008 # When interrupted or exit'd, cleanup temporary files, and complete
1009 # config.log. We remove comments because anyway the quotes in there
1010 # would cause problems or look ugly.
1011 trap 'exit_status=$?
1012 # Save into config.log some information that might help in debugging.
1014 echo "## ----------------- ##" >&5
1015 echo "## Cache variables. ##" >&5
1016 echo "## ----------------- ##" >&5
1018 # The following way of writing the cache mishandles newlines in values,
1021 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1024 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1029 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1033 sed "/^$/d" confdefs.h >conftest.log
1034 if test -s conftest.log; then
1036 echo "## ------------ ##" >&5
1037 echo "## confdefs.h. ##" >&5
1038 echo "## ------------ ##" >&5
1040 cat conftest.log >&5
1043 test "$ac_signal" != 0 &&
1044 echo "$as_me: caught signal $ac_signal" >&5
1045 echo "$as_me: exit $exit_status" >&5
1046 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1049 for ac_signal in 1 2 13 15; do
1050 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
1054 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1055 rm -rf conftest* confdefs.h
1056 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1059 # Let the site file select an alternate cache file if it wants to.
1060 # Prefer explicitly selected file to automatically selected ones.
1061 if test -z "$CONFIG_SITE"; then
1062 if test "x$prefix" != xNONE; then
1063 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1065 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1068 for ac_site_file in $CONFIG_SITE; do
1069 if test -r "$ac_site_file"; then
1070 { echo "$as_me:1070: loading site script $ac_site_file" >&5
1071 echo "$as_me: loading site script $ac_site_file" >&6;}
1072 cat "$ac_site_file" >&5
1077 if test -r "$cache_file"; then
1078 # Some versions of bash will fail to source /dev/null (special
1079 # files actually), so we avoid doing that.
1080 if test -f "$cache_file"; then
1081 { echo "$as_me:1081: loading cache $cache_file" >&5
1082 echo "$as_me: loading cache $cache_file" >&6;}
1084 [\\/]* | ?:[\\/]* ) . $cache_file;;
1085 *) . ./$cache_file;;
1089 { echo "$as_me:1089: creating cache $cache_file" >&5
1090 echo "$as_me: creating cache $cache_file" >&6;}
1094 # Check that the precious variables saved in the cache have kept the same
1096 ac_cache_corrupted=false
1097 for ac_var in `(set) 2>&1 |
1098 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1099 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1100 eval ac_new_set=\$ac_env_${ac_var}_set
1101 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1102 eval ac_new_val="\$ac_env_${ac_var}_value"
1103 case "$ac_old_set,$ac_new_set" in
1105 { echo "$as_me:1105: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1106 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1107 ac_cache_corrupted=: ;;
1109 { echo "$as_me:1109: error: \`$ac_var' was not set in the previous run" >&5
1110 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1111 ac_cache_corrupted=: ;;
1114 if test "x$ac_old_val" != "x$ac_new_val"; then
1115 { echo "$as_me:1115: error: \`$ac_var' has changed since the previous run:" >&5
1116 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1117 { echo "$as_me:1117: former value: $ac_old_val" >&5
1118 echo "$as_me: former value: $ac_old_val" >&2;}
1119 { echo "$as_me:1119: current value: $ac_new_val" >&5
1120 echo "$as_me: current value: $ac_new_val" >&2;}
1121 ac_cache_corrupted=:
1124 # Pass precious variables to config.status. It doesn't matter if
1125 # we pass some twice (in addition to the command line arguments).
1126 if test "$ac_new_set" = set; then
1127 case "$ac_new_val" in
1128 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1129 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1130 ac_configure_args="$ac_configure_args '$ac_arg'"
1132 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1137 if "$ac_cache_corrupted"; then
1138 { echo "$as_me:1138: error: changes in the environment can compromise the build" >&5
1139 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1140 { { echo "$as_me:1140: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1141 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1142 { (exit 1); exit 1; }; }
1146 ac_cpp='$CPP $CPPFLAGS'
1147 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1148 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1150 ac_main_return="return"
1152 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1154 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1166 echo "#! $SHELL" >conftest.sh
1167 echo "exit 0" >>conftest.sh
1168 chmod +x conftest.sh
1169 if { (echo "$as_me:1169: PATH=\".;.\"; conftest.sh") >&5
1170 (PATH=".;."; conftest.sh) 2>&5
1172 echo "$as_me:1172: \$? = $ac_status" >&5
1173 (exit "$ac_status"); }; then
1174 ac_path_separator=';'
1178 PATH_SEPARATOR="$ac_path_separator"
1181 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1185 for ac_prog in ggrep grep
1187 # Extract the first word of "$ac_prog", so it can be a program name with args.
1188 set dummy $ac_prog; ac_word=$2
1189 echo "$as_me:1189: checking for $ac_word" >&5
1190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1191 if test "${ac_cv_prog_GREP+set}" = set; then
1192 echo $ECHO_N "(cached) $ECHO_C" >&6
1194 if test -n "$GREP"; then
1195 ac_cv_prog_GREP="$GREP" # Let the user override the test.
1197 ac_save_IFS=$IFS; IFS=$ac_path_separator
1199 for ac_dir in $ac_dummy; do
1201 test -z "$ac_dir" && ac_dir=.
1202 $as_executable_p "$ac_dir/$ac_word" || continue
1203 ac_cv_prog_GREP="$ac_prog"
1204 echo "$as_me:1204: found $ac_dir/$ac_word" >&5
1210 GREP=$ac_cv_prog_GREP
1211 if test -n "$GREP"; then
1212 echo "$as_me:1212: result: $GREP" >&5
1213 echo "${ECHO_T}$GREP" >&6
1215 echo "$as_me:1215: result: no" >&5
1216 echo "${ECHO_T}no" >&6
1219 test -n "$GREP" && break
1221 test -n "$GREP" || GREP=": "
1223 echo "$as_me:1223: checking for egrep" >&5
1224 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1225 if test "${ac_cv_path_EGREP+set}" = set; then
1226 echo $ECHO_N "(cached) $ECHO_C" >&6
1228 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1229 then ac_cv_path_EGREP="$GREP -E"
1231 for ac_prog in gegrep egrep
1233 # Extract the first word of "$ac_prog", so it can be a program name with args.
1234 set dummy $ac_prog; ac_word=$2
1235 echo "$as_me:1235: checking for $ac_word" >&5
1236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1237 if test "${ac_cv_path_EGREP+set}" = set; then
1238 echo $ECHO_N "(cached) $ECHO_C" >&6
1242 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
1245 ac_save_IFS=$IFS; IFS=$ac_path_separator
1247 for ac_dir in $ac_dummy; do
1249 test -z "$ac_dir" && ac_dir=.
1250 if $as_executable_p "$ac_dir/$ac_word"; then
1251 ac_cv_path_EGREP="$ac_dir/$ac_word"
1252 echo "$as_me:1252: found $ac_dir/$ac_word" >&5
1260 EGREP=$ac_cv_path_EGREP
1262 if test -n "$EGREP"; then
1263 echo "$as_me:1263: result: $EGREP" >&5
1264 echo "${ECHO_T}$EGREP" >&6
1266 echo "$as_me:1266: result: no" >&5
1267 echo "${ECHO_T}no" >&6
1270 test -n "$EGREP" && break
1272 test -n "$EGREP" || EGREP=": "
1274 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:1274: error: cannot find workable egrep" >&5
1275 echo "$as_me: error: cannot find workable egrep" >&2;}
1276 { (exit 1); exit 1; }; }
1279 echo "$as_me:1279: result: $ac_cv_path_EGREP" >&5
1280 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
1281 EGREP="$ac_cv_path_EGREP"
1283 NCURSES_MAJOR="`${EGREP-egrep} '^NCURSES_MAJOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1284 NCURSES_MINOR="`${EGREP-egrep} '^NCURSES_MINOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1285 NCURSES_PATCH="`${EGREP-egrep} '^NCURSES_PATCH[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1286 cf_cv_abi_version=${NCURSES_MAJOR}
1287 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1288 cf_cv_timestamp=`date`
1289 echo "$as_me:1289: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1290 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1292 if test -f "$srcdir/VERSION" ; then
1293 echo "$as_me:1293: checking for package version" >&5
1294 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1296 # if there are not enough fields, cut returns the last one...
1297 cf_field1=`sed -e '2,$d' "$srcdir/VERSION" |cut -f1`
1298 cf_field2=`sed -e '2,$d' "$srcdir/VERSION" |cut -f2`
1299 cf_field3=`sed -e '2,$d' "$srcdir/VERSION" |cut -f3`
1301 # this is how CF_BUNDLED_INTL uses $VERSION:
1302 VERSION="$cf_field1"
1304 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1305 test -z "$VERSION_MAJOR" && { { echo "$as_me:1305: error: missing major-version" >&5
1306 echo "$as_me: error: missing major-version" >&2;}
1307 { (exit 1); exit 1; }; }
1309 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1310 test -z "$VERSION_MINOR" && { { echo "$as_me:1310: error: missing minor-version" >&5
1311 echo "$as_me: error: missing minor-version" >&2;}
1312 { (exit 1); exit 1; }; }
1314 echo "$as_me:1314: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1315 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1317 echo "$as_me:1317: checking for package patch date" >&5
1318 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1319 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1320 case .$VERSION_PATCH in
1322 { { echo "$as_me:1322: error: missing patch-date $VERSION_PATCH" >&5
1323 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1324 { (exit 1); exit 1; }; }
1326 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1329 { { echo "$as_me:1329: error: illegal patch-date $VERSION_PATCH" >&5
1330 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1331 { (exit 1); exit 1; }; }
1334 echo "$as_me:1334: result: $VERSION_PATCH" >&5
1335 echo "${ECHO_T}$VERSION_PATCH" >&6
1337 { { echo "$as_me:1337: error: did not find $srcdir/VERSION" >&5
1338 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1339 { (exit 1); exit 1; }; }
1342 # show the actual data that we have for versions:
1343 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1345 echo "${as_me:-configure}:1345: testing ABI VERSION $VERSION ..." 1>&5
1347 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1349 echo "${as_me:-configure}:1349: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1351 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1353 echo "${as_me:-configure}:1353: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1355 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1357 echo "${as_me:-configure}:1357: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1362 cat >>confdefs.h <<EOF
1363 #define PACKAGE "$PACKAGE"
1366 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1368 cat >>confdefs.h <<EOF
1369 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1372 cat >>confdefs.h <<EOF
1373 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1376 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1378 # Check whether --with-rel-version or --without-rel-version was given.
1379 if test "${with_rel_version+set}" = set; then
1380 withval="$with_rel_version"
1381 { echo "$as_me:1381: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1382 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1383 cf_cv_rel_version=$withval
1386 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1387 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1389 if test -n "$NCURSES_MAJOR" ; then
1390 case $NCURSES_MAJOR in
1394 { { echo "$as_me:1394: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1395 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1396 { (exit 1); exit 1; }; }
1400 { { echo "$as_me:1400: error: Release major-version value is empty" >&5
1401 echo "$as_me: error: Release major-version value is empty" >&2;}
1402 { (exit 1); exit 1; }; }
1405 if test -n "$NCURSES_MINOR" ; then
1406 case $NCURSES_MINOR in
1410 { { echo "$as_me:1410: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1411 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1412 { (exit 1); exit 1; }; }
1416 { { echo "$as_me:1416: error: Release minor-version value is empty" >&5
1417 echo "$as_me: error: Release minor-version value is empty" >&2;}
1418 { (exit 1); exit 1; }; }
1421 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1423 # Check whether --with-abi-version or --without-abi-version was given.
1424 if test "${with_abi_version+set}" = set; then
1425 withval="$with_abi_version"
1427 if test "x$cf_cv_abi_version" != "x$withval"
1429 { echo "$as_me:1429: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1430 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1431 case "$cf_cv_rel_version" in
1433 cf_cv_rel_version=$withval.0
1436 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1440 cf_cv_abi_version=$withval
1443 if test -n "$cf_cv_abi_version" ; then
1444 case $cf_cv_abi_version in
1448 { { echo "$as_me:1448: error: ABI version is not a number: $cf_cv_abi_version" >&5
1449 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1450 { (exit 1); exit 1; }; }
1454 { { echo "$as_me:1454: error: ABI version value is empty" >&5
1455 echo "$as_me: error: ABI version value is empty" >&2;}
1456 { (exit 1); exit 1; }; }
1459 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1461 case "$cf_cv_rel_version" in
1463 cf_cv_rel_version=$with_abi_version.0
1469 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1470 if test -f "$ac_dir/install-sh"; then
1472 ac_install_sh="$ac_aux_dir/install-sh -c"
1474 elif test -f "$ac_dir/install.sh"; then
1476 ac_install_sh="$ac_aux_dir/install.sh -c"
1478 elif test -f "$ac_dir/shtool"; then
1480 ac_install_sh="$ac_aux_dir/shtool install -c"
1484 if test -z "$ac_aux_dir"; then
1485 { { echo "$as_me:1485: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1486 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1487 { (exit 1); exit 1; }; }
1489 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1490 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1491 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1493 # Make sure we can run config.sub.
1494 $ac_config_sub sun4 >/dev/null 2>&1 ||
1495 { { echo "$as_me:1495: error: cannot run $ac_config_sub" >&5
1496 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1497 { (exit 1); exit 1; }; }
1499 echo "$as_me:1499: checking build system type" >&5
1500 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1501 if test "${ac_cv_build+set}" = set; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1504 ac_cv_build_alias=$build_alias
1505 test -z "$ac_cv_build_alias" &&
1506 ac_cv_build_alias=`$ac_config_guess`
1507 test -z "$ac_cv_build_alias" &&
1508 { { echo "$as_me:1508: error: cannot guess build type; you must specify one" >&5
1509 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1510 { (exit 1); exit 1; }; }
1511 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1512 { { echo "$as_me:1512: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1513 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1514 { (exit 1); exit 1; }; }
1517 echo "$as_me:1517: result: $ac_cv_build" >&5
1518 echo "${ECHO_T}$ac_cv_build" >&6
1520 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1521 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1522 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1524 echo "$as_me:1524: checking host system type" >&5
1525 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1526 if test "${ac_cv_host+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1529 ac_cv_host_alias=$host_alias
1530 test -z "$ac_cv_host_alias" &&
1531 ac_cv_host_alias=$ac_cv_build_alias
1532 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1533 { { echo "$as_me:1533: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1534 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1535 { (exit 1); exit 1; }; }
1538 echo "$as_me:1538: result: $ac_cv_host" >&5
1539 echo "${ECHO_T}$ac_cv_host" >&6
1541 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1542 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1543 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1545 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1546 echo "$as_me:1546: checking target system type" >&5
1547 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1548 if test "${ac_cv_target+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1551 ac_cv_target_alias=$target_alias
1552 test "x$ac_cv_target_alias" = "x" &&
1553 ac_cv_target_alias=$ac_cv_host_alias
1554 ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` ||
1555 { { echo "$as_me:1555: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1556 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1557 { (exit 1); exit 1; }; }
1560 echo "$as_me:1560: result: $ac_cv_target" >&5
1561 echo "${ECHO_T}$ac_cv_target" >&6
1562 target=$ac_cv_target
1563 target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1564 target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1565 target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1567 # The aliases save the names the user supplied, while $host etc.
1568 # will get canonicalized.
1569 test -n "$target_alias" &&
1570 test "$program_prefix$program_suffix$program_transform_name" = \
1572 program_prefix=${target_alias}-
1573 system_name="$host_os"
1575 system_name="`(uname -s -r) 2>/dev/null`"
1576 if test -z "$system_name" ; then
1577 system_name="`(hostname) 2>/dev/null`"
1580 test -n "$system_name" &&
1581 cat >>confdefs.h <<EOF
1582 #define SYSTEM_NAME "$system_name"
1585 if test "${cf_cv_system_name+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1588 cf_cv_system_name="$system_name"
1591 test -z "$system_name" && system_name="$cf_cv_system_name"
1592 test -n "$cf_cv_system_name" && echo "$as_me:1592: result: Configuring for $cf_cv_system_name" >&5
1593 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1595 if test ".$system_name" != ".$cf_cv_system_name" ; then
1596 echo "$as_me:1596: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1597 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1598 { { echo "$as_me:1598: error: \"Please remove config.cache and try again.\"" >&5
1599 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1600 { (exit 1); exit 1; }; }
1603 # Check whether --with-system-type or --without-system-type was given.
1604 if test "${with_system_type+set}" = set; then
1605 withval="$with_system_type"
1606 { echo "$as_me:1606: WARNING: overriding system type to $withval" >&5
1607 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1608 cf_cv_system_name=$withval
1613 ### Save the given $CFLAGS to allow user-override.
1614 cf_user_CFLAGS="$CFLAGS"
1616 ### Default install-location
1617 echo "$as_me:1617: checking for fgrep" >&5
1618 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
1619 if test "${ac_cv_path_FGREP+set}" = set; then
1620 echo $ECHO_N "(cached) $ECHO_C" >&6
1622 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
1623 then ac_cv_path_FGREP="$GREP -F"
1625 for ac_prog in gfgrep fgrep
1627 # Extract the first word of "$ac_prog", so it can be a program name with args.
1628 set dummy $ac_prog; ac_word=$2
1629 echo "$as_me:1629: checking for $ac_word" >&5
1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631 if test "${ac_cv_path_FGREP+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
1639 ac_save_IFS=$IFS; IFS=$ac_path_separator
1641 for ac_dir in $ac_dummy; do
1643 test -z "$ac_dir" && ac_dir=.
1644 if $as_executable_p "$ac_dir/$ac_word"; then
1645 ac_cv_path_FGREP="$ac_dir/$ac_word"
1646 echo "$as_me:1646: found $ac_dir/$ac_word" >&5
1654 FGREP=$ac_cv_path_FGREP
1656 if test -n "$FGREP"; then
1657 echo "$as_me:1657: result: $FGREP" >&5
1658 echo "${ECHO_T}$FGREP" >&6
1660 echo "$as_me:1660: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1664 test -n "$FGREP" && break
1666 test -n "$FGREP" || FGREP=": "
1668 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:1668: error: cannot find workable fgrep" >&5
1669 echo "$as_me: error: cannot find workable fgrep" >&2;}
1670 { (exit 1); exit 1; }; }
1673 echo "$as_me:1673: result: $ac_cv_path_FGREP" >&5
1674 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
1675 FGREP="$ac_cv_path_FGREP"
1677 echo "$as_me:1677: checking for prefix" >&5
1678 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1679 if test "x$prefix" = "xNONE" ; then
1680 case "$cf_cv_system_name" in
1681 # non-vendor systems don't have a conflict
1682 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1685 (*) prefix=$ac_default_prefix
1689 echo "$as_me:1689: result: $prefix" >&5
1690 echo "${ECHO_T}$prefix" >&6
1692 if test "x$prefix" = "xNONE" ; then
1693 echo "$as_me:1693: checking for default include-directory" >&5
1694 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1695 test -n "$verbose" && echo 1>&6
1698 "$includedir/ncurses" \
1700 "$prefix/include/ncurses" \
1701 /usr/local/include \
1702 /usr/local/include/ncurses \
1704 /usr/include/ncurses
1706 cf_dir=`eval echo "$cf_symbol"`
1707 if test -f "$cf_dir/curses.h" ; then
1708 if ( ${FGREP-fgrep} NCURSES_VERSION "$cf_dir/curses.h" >/dev/null 2>&1 ) ; then
1709 includedir="$cf_symbol"
1710 test -n "$verbose" && echo $ECHO_N " found " 1>&6
1714 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1716 echo "$as_me:1716: result: $includedir" >&5
1717 echo "${ECHO_T}$includedir" >&6
1720 ### Defaults for ncurses ABI
1722 case x$cf_cv_abi_version in
1724 cf_dft_ext_colors=yes
1725 cf_dft_ext_const=yes
1726 cf_dft_ext_mouse=yes
1727 cf_dft_ext_putwin=yes
1728 cf_dft_ext_spfuncs=yes
1729 cf_dft_filter_syms=yes
1730 cf_dft_chtype=uint32_t
1731 cf_dft_mmask_t=uint32_t
1733 cf_dft_tparm_arg=intptr_t
1734 cf_dft_with_lp64=yes
1737 cf_dft_ext_colors=no
1740 cf_dft_ext_putwin=no
1741 cf_dft_ext_spfuncs=no
1742 cf_dft_filter_syms=no
1746 cf_dft_tparm_arg=long
1751 ### Checks for programs.
1753 # Check whether --with-ada or --without-ada was given.
1754 if test "${with_ada+set}" = set; then
1756 cf_with_ada=$withval
1761 if test "x$cf_with_ada" = xyes
1763 cf_prog_cc="gnatgcc gcc cc"
1769 ac_cpp='$CPP $CPPFLAGS'
1770 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1771 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1773 ac_main_return="return"
1774 if test -n "$ac_tool_prefix"; then
1775 for ac_prog in $cf_prog_cc
1777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1778 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1779 echo "$as_me:1779: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1784 if test -n "$CC"; then
1785 ac_cv_prog_CC="$CC" # Let the user override the test.
1787 ac_save_IFS=$IFS; IFS=$ac_path_separator
1789 for ac_dir in $ac_dummy; do
1791 test -z "$ac_dir" && ac_dir=.
1792 $as_executable_p "$ac_dir/$ac_word" || continue
1793 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1794 echo "$as_me:1794: found $ac_dir/$ac_word" >&5
1801 if test -n "$CC"; then
1802 echo "$as_me:1802: result: $CC" >&5
1803 echo "${ECHO_T}$CC" >&6
1805 echo "$as_me:1805: result: no" >&5
1806 echo "${ECHO_T}no" >&6
1809 test -n "$CC" && break
1812 if test -z "$CC"; then
1814 for ac_prog in $cf_prog_cc
1816 # Extract the first word of "$ac_prog", so it can be a program name with args.
1817 set dummy $ac_prog; ac_word=$2
1818 echo "$as_me:1818: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 if test -n "$ac_ct_CC"; then
1824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1826 ac_save_IFS=$IFS; IFS=$ac_path_separator
1828 for ac_dir in $ac_dummy; do
1830 test -z "$ac_dir" && ac_dir=.
1831 $as_executable_p "$ac_dir/$ac_word" || continue
1832 ac_cv_prog_ac_ct_CC="$ac_prog"
1833 echo "$as_me:1833: found $ac_dir/$ac_word" >&5
1839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1840 if test -n "$ac_ct_CC"; then
1841 echo "$as_me:1841: result: $ac_ct_CC" >&5
1842 echo "${ECHO_T}$ac_ct_CC" >&6
1844 echo "$as_me:1844: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1848 test -n "$ac_ct_CC" && break
1854 test -z "$CC" && { { echo "$as_me:1854: error: no acceptable cc found in \$PATH" >&5
1855 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1856 { (exit 1); exit 1; }; }
1858 # Provide some information about the compiler.
1859 echo "$as_me:1859:" \
1860 "checking for C compiler version" >&5
1861 ac_compiler=`set X $ac_compile; echo "$2"`
1862 { (eval echo "$as_me:1862: \"$ac_compiler --version </dev/null >&5\"") >&5
1863 (eval $ac_compiler --version </dev/null >&5) 2>&5
1865 echo "$as_me:1865: \$? = $ac_status" >&5
1866 (exit "$ac_status"); }
1867 { (eval echo "$as_me:1867: \"$ac_compiler -v </dev/null >&5\"") >&5
1868 (eval $ac_compiler -v </dev/null >&5) 2>&5
1870 echo "$as_me:1870: \$? = $ac_status" >&5
1871 (exit "$ac_status"); }
1872 { (eval echo "$as_me:1872: \"$ac_compiler -V </dev/null >&5\"") >&5
1873 (eval $ac_compiler -V </dev/null >&5) 2>&5
1875 echo "$as_me:1875: \$? = $ac_status" >&5
1876 (exit "$ac_status"); }
1878 cat >"conftest.$ac_ext" <<_ACEOF
1879 #line 1879 "configure"
1880 #include "confdefs.h"
1890 ac_clean_files_save=$ac_clean_files
1891 ac_clean_files="$ac_clean_files a.out a.exe"
1892 # Try to create an executable without -o first, disregard a.out.
1893 # It will help us diagnose broken compilers, and finding out an intuition
1895 echo "$as_me:1895: checking for C compiler default output" >&5
1896 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1897 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1898 if { (eval echo "$as_me:1898: \"$ac_link_default\"") >&5
1899 (eval $ac_link_default) 2>&5
1901 echo "$as_me:1901: \$? = $ac_status" >&5
1902 (exit "$ac_status"); }; then
1903 # Find the output, starting from the most likely. This scheme is
1904 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1906 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1907 ls a.out conftest 2>/dev/null;
1908 ls a.* conftest.* 2>/dev/null`; do
1910 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1911 a.out ) # We found the default executable, but exeext='' is most
1914 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1915 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1922 echo "$as_me: failed program was:" >&5
1923 cat "conftest.$ac_ext" >&5
1924 { { echo "$as_me:1924: error: C compiler cannot create executables" >&5
1925 echo "$as_me: error: C compiler cannot create executables" >&2;}
1926 { (exit 77); exit 77; }; }
1929 ac_exeext=$ac_cv_exeext
1930 echo "$as_me:1930: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1933 # Check the compiler produces executables we can run. If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:1935: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940 if { ac_try='./$ac_file'
1941 { (eval echo "$as_me:1941: \"$ac_try\"") >&5
1944 echo "$as_me:1944: \$? = $ac_status" >&5
1945 (exit "$ac_status"); }; }; then
1948 if test "$cross_compiling" = maybe; then
1951 { { echo "$as_me:1951: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'." >&5
1953 echo "$as_me: error: cannot run C compiled programs.
1954 If you meant to cross compile, use \`--host'." >&2;}
1955 { (exit 1); exit 1; }; }
1959 echo "$as_me:1959: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1962 rm -f a.out a.exe "conftest$ac_cv_exeext"
1963 ac_clean_files=$ac_clean_files_save
1964 # Check the compiler produces executables we can run. If not, either
1965 # the compiler is broken, or we cross compile.
1966 echo "$as_me:1966: checking whether we are cross compiling" >&5
1967 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1968 echo "$as_me:1968: result: $cross_compiling" >&5
1969 echo "${ECHO_T}$cross_compiling" >&6
1971 echo "$as_me:1971: checking for executable suffix" >&5
1972 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1973 if { (eval echo "$as_me:1973: \"$ac_link\"") >&5
1974 (eval $ac_link) 2>&5
1976 echo "$as_me:1976: \$? = $ac_status" >&5
1977 (exit "$ac_status"); }; then
1978 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1979 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1980 # work properly (i.e., refer to `conftest.exe'), while it won't with
1982 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1984 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1985 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1992 { { echo "$as_me:1992: error: cannot compute EXEEXT: cannot compile and link" >&5
1993 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1994 { (exit 1); exit 1; }; }
1997 rm -f "conftest$ac_cv_exeext"
1998 echo "$as_me:1998: result: $ac_cv_exeext" >&5
1999 echo "${ECHO_T}$ac_cv_exeext" >&6
2001 rm -f "conftest.$ac_ext"
2002 EXEEXT=$ac_cv_exeext
2004 echo "$as_me:2004: checking for object suffix" >&5
2005 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2006 if test "${ac_cv_objext+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 cat >"conftest.$ac_ext" <<_ACEOF
2010 #line 2010 "configure"
2011 #include "confdefs.h"
2021 rm -f conftest.o conftest.obj
2022 if { (eval echo "$as_me:2022: \"$ac_compile\"") >&5
2023 (eval $ac_compile) 2>&5
2025 echo "$as_me:2025: \$? = $ac_status" >&5
2026 (exit "$ac_status"); }; then
2027 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2029 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
2030 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2035 echo "$as_me: failed program was:" >&5
2036 cat "conftest.$ac_ext" >&5
2037 { { echo "$as_me:2037: error: cannot compute OBJEXT: cannot compile" >&5
2038 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2039 { (exit 1); exit 1; }; }
2042 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
2044 echo "$as_me:2044: result: $ac_cv_objext" >&5
2045 echo "${ECHO_T}$ac_cv_objext" >&6
2046 OBJEXT=$ac_cv_objext
2048 echo "$as_me:2048: checking whether we are using the GNU C compiler" >&5
2049 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2050 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 cat >"conftest.$ac_ext" <<_ACEOF
2054 #line 2054 "configure"
2055 #include "confdefs.h"
2068 rm -f "conftest.$ac_objext"
2069 if { (eval echo "$as_me:2069: \"$ac_compile\"") >&5
2070 (eval $ac_compile) 2>&5
2072 echo "$as_me:2072: \$? = $ac_status" >&5
2073 (exit "$ac_status"); } &&
2074 { ac_try='test -s "conftest.$ac_objext"'
2075 { (eval echo "$as_me:2075: \"$ac_try\"") >&5
2078 echo "$as_me:2078: \$? = $ac_status" >&5
2079 (exit "$ac_status"); }; }; then
2082 echo "$as_me: failed program was:" >&5
2083 cat "conftest.$ac_ext" >&5
2086 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2087 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2090 echo "$as_me:2090: result: $ac_cv_c_compiler_gnu" >&5
2091 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2092 GCC=`test $ac_compiler_gnu = yes && echo yes`
2093 ac_test_CFLAGS=${CFLAGS+set}
2094 ac_save_CFLAGS=$CFLAGS
2096 echo "$as_me:2096: checking whether $CC accepts -g" >&5
2097 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2098 if test "${ac_cv_prog_cc_g+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 cat >"conftest.$ac_ext" <<_ACEOF
2102 #line 2102 "configure"
2103 #include "confdefs.h"
2113 rm -f "conftest.$ac_objext"
2114 if { (eval echo "$as_me:2114: \"$ac_compile\"") >&5
2115 (eval $ac_compile) 2>&5
2117 echo "$as_me:2117: \$? = $ac_status" >&5
2118 (exit "$ac_status"); } &&
2119 { ac_try='test -s "conftest.$ac_objext"'
2120 { (eval echo "$as_me:2120: \"$ac_try\"") >&5
2123 echo "$as_me:2123: \$? = $ac_status" >&5
2124 (exit "$ac_status"); }; }; then
2127 echo "$as_me: failed program was:" >&5
2128 cat "conftest.$ac_ext" >&5
2131 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2133 echo "$as_me:2133: result: $ac_cv_prog_cc_g" >&5
2134 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2135 if test "$ac_test_CFLAGS" = set; then
2136 CFLAGS=$ac_save_CFLAGS
2137 elif test $ac_cv_prog_cc_g = yes; then
2138 if test "$GCC" = yes; then
2144 if test "$GCC" = yes; then
2150 # Some people use a C++ compiler to compile C. Since we use `exit',
2151 # in C++ we need to declare it. In case someone uses the same compiler
2152 # for both compiling C and C++ we need to have the C++ compiler decide
2153 # the declaration of exit, since it's the most demanding environment.
2154 cat >"conftest.$ac_ext" <<_ACEOF
2159 rm -f "conftest.$ac_objext"
2160 if { (eval echo "$as_me:2160: \"$ac_compile\"") >&5
2161 (eval $ac_compile) 2>&5
2163 echo "$as_me:2163: \$? = $ac_status" >&5
2164 (exit "$ac_status"); } &&
2165 { ac_try='test -s "conftest.$ac_objext"'
2166 { (eval echo "$as_me:2166: \"$ac_try\"") >&5
2169 echo "$as_me:2169: \$? = $ac_status" >&5
2170 (exit "$ac_status"); }; }; then
2171 for ac_declaration in \
2173 '#include <stdlib.h>' \
2174 'extern "C" void std::exit (int) throw (); using std::exit;' \
2175 'extern "C" void std::exit (int); using std::exit;' \
2176 'extern "C" void exit (int) throw ();' \
2177 'extern "C" void exit (int);' \
2180 cat >"conftest.$ac_ext" <<_ACEOF
2181 #line 2181 "configure"
2182 #include "confdefs.h"
2193 rm -f "conftest.$ac_objext"
2194 if { (eval echo "$as_me:2194: \"$ac_compile\"") >&5
2195 (eval $ac_compile) 2>&5
2197 echo "$as_me:2197: \$? = $ac_status" >&5
2198 (exit "$ac_status"); } &&
2199 { ac_try='test -s "conftest.$ac_objext"'
2200 { (eval echo "$as_me:2200: \"$ac_try\"") >&5
2203 echo "$as_me:2203: \$? = $ac_status" >&5
2204 (exit "$ac_status"); }; }; then
2207 echo "$as_me: failed program was:" >&5
2208 cat "conftest.$ac_ext" >&5
2211 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2212 cat >"conftest.$ac_ext" <<_ACEOF
2213 #line 2213 "configure"
2214 #include "confdefs.h"
2224 rm -f "conftest.$ac_objext"
2225 if { (eval echo "$as_me:2225: \"$ac_compile\"") >&5
2226 (eval $ac_compile) 2>&5
2228 echo "$as_me:2228: \$? = $ac_status" >&5
2229 (exit "$ac_status"); } &&
2230 { ac_try='test -s "conftest.$ac_objext"'
2231 { (eval echo "$as_me:2231: \"$ac_try\"") >&5
2234 echo "$as_me:2234: \$? = $ac_status" >&5
2235 (exit "$ac_status"); }; }; then
2238 echo "$as_me: failed program was:" >&5
2239 cat "conftest.$ac_ext" >&5
2241 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2244 if test -n "$ac_declaration"; then
2245 echo '#ifdef __cplusplus' >>confdefs.h
2246 echo "$ac_declaration" >>confdefs.h
2247 echo '#endif' >>confdefs.h
2251 echo "$as_me: failed program was:" >&5
2252 cat "conftest.$ac_ext" >&5
2254 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2256 ac_cpp='$CPP $CPPFLAGS'
2257 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2258 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2260 ac_main_return="return"
2263 if test "$GCC" = yes ; then
2264 echo "$as_me:2264: checking version of $CC" >&5
2265 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2266 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.].*//'`"
2267 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2268 echo "$as_me:2268: result: $GCC_VERSION" >&5
2269 echo "${ECHO_T}$GCC_VERSION" >&6
2274 if test "$GCC" = yes ; then
2277 echo "$as_me:2277: checking if this is really Intel C compiler" >&5
2278 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2279 cf_save_CFLAGS="$CFLAGS"
2280 CFLAGS="$CFLAGS -no-gcc"
2281 cat >"conftest.$ac_ext" <<_ACEOF
2282 #line 2282 "configure"
2283 #include "confdefs.h"
2289 #ifdef __INTEL_COMPILER
2298 rm -f "conftest.$ac_objext"
2299 if { (eval echo "$as_me:2299: \"$ac_compile\"") >&5
2300 (eval $ac_compile) 2>&5
2302 echo "$as_me:2302: \$? = $ac_status" >&5
2303 (exit "$ac_status"); } &&
2304 { ac_try='test -s "conftest.$ac_objext"'
2305 { (eval echo "$as_me:2305: \"$ac_try\"") >&5
2308 echo "$as_me:2308: \$? = $ac_status" >&5
2309 (exit "$ac_status"); }; }; then
2311 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2314 echo "$as_me: failed program was:" >&5
2315 cat "conftest.$ac_ext" >&5
2317 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2318 CFLAGS="$cf_save_CFLAGS"
2319 echo "$as_me:2319: result: $INTEL_COMPILER" >&5
2320 echo "${ECHO_T}$INTEL_COMPILER" >&6
2327 if test "$GCC" = yes ; then
2328 echo "$as_me:2328: checking if this is really Clang C compiler" >&5
2329 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2330 cf_save_CFLAGS="$CFLAGS"
2331 cat >"conftest.$ac_ext" <<_ACEOF
2332 #line 2332 "configure"
2333 #include "confdefs.h"
2348 rm -f "conftest.$ac_objext"
2349 if { (eval echo "$as_me:2349: \"$ac_compile\"") >&5
2350 (eval $ac_compile) 2>&5
2352 echo "$as_me:2352: \$? = $ac_status" >&5
2353 (exit "$ac_status"); } &&
2354 { ac_try='test -s "conftest.$ac_objext"'
2355 { (eval echo "$as_me:2355: \"$ac_try\"") >&5
2358 echo "$as_me:2358: \$? = $ac_status" >&5
2359 (exit "$ac_status"); }; }; then
2363 echo "$as_me: failed program was:" >&5
2364 cat "conftest.$ac_ext" >&5
2366 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2367 CFLAGS="$cf_save_CFLAGS"
2368 echo "$as_me:2368: result: $CLANG_COMPILER" >&5
2369 echo "${ECHO_T}$CLANG_COMPILER" >&6
2374 if test "x$CLANG_COMPILER" = "xyes" ; then
2376 (c[1-9][0-9]|*/c[1-9][0-9])
2377 { echo "$as_me:2377: WARNING: replacing broken compiler alias $CC" >&5
2378 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
2379 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
2384 echo "$as_me:2384: checking version of $CC" >&5
2385 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2386 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.].*//'`"
2387 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2388 echo "$as_me:2388: result: $CLANG_VERSION" >&5
2389 echo "${ECHO_T}$CLANG_VERSION" >&6
2391 for cf_clang_opt in \
2392 -Qunused-arguments \
2393 -Wno-error=implicit-function-declaration
2395 echo "$as_me:2395: checking if option $cf_clang_opt works" >&5
2396 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2397 cf_save_CFLAGS="$CFLAGS"
2398 CFLAGS="$CFLAGS $cf_clang_opt"
2399 cat >"conftest.$ac_ext" <<_ACEOF
2400 #line 2400 "configure"
2401 #include "confdefs.h"
2408 printf("hello!\\n");
2413 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2414 if { (eval echo "$as_me:2414: \"$ac_link\"") >&5
2415 (eval $ac_link) 2>&5
2417 echo "$as_me:2417: \$? = $ac_status" >&5
2418 (exit "$ac_status"); } &&
2419 { ac_try='test -s "conftest$ac_exeext"'
2420 { (eval echo "$as_me:2420: \"$ac_try\"") >&5
2423 echo "$as_me:2423: \$? = $ac_status" >&5
2424 (exit "$ac_status"); }; }; then
2428 echo "$as_me: failed program was:" >&5
2429 cat "conftest.$ac_ext" >&5
2433 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2434 echo "$as_me:2434: result: $cf_clang_optok" >&5
2435 echo "${ECHO_T}$cf_clang_optok" >&6
2436 CFLAGS="$cf_save_CFLAGS"
2437 if test "$cf_clang_optok" = yes; then
2438 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2440 echo "${as_me:-configure}:2440: testing adding option $cf_clang_opt ..." 1>&5
2442 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2443 CFLAGS="${CFLAGS}$cf_clang_opt"
2449 echo "$as_me:2449: checking for $CC option to accept ANSI C" >&5
2450 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2451 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 ac_cv_prog_cc_stdc=no
2456 cat >"conftest.$ac_ext" <<_ACEOF
2457 #line 2457 "configure"
2458 #include "confdefs.h"
2461 #include <sys/types.h>
2462 #include <sys/stat.h>
2463 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2464 struct buf { int x; };
2465 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2466 static char *e (p, i)
2472 static char *f (char * (*g) (char **, int), char **p, ...)
2477 s = g (p, va_arg (v,int));
2481 int test (int i, double x);
2482 struct s1 {int (*f) (int a);};
2483 struct s2 {int (*f) (double a);};
2484 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2490 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2495 # Don't try gcc -ansi; that turns off useful extensions and
2496 # breaks some systems' header files.
2497 # AIX -qlanglvl=ansi
2498 # Ultrix and OSF/1 -std1
2499 # HP-UX 10.20 and later -Ae
2500 # HP-UX older versions -Aa -D_HPUX_SOURCE
2501 # SVR4 -Xc -D__EXTENSIONS__
2502 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2504 CC="$ac_save_CC $ac_arg"
2505 rm -f "conftest.$ac_objext"
2506 if { (eval echo "$as_me:2506: \"$ac_compile\"") >&5
2507 (eval $ac_compile) 2>&5
2509 echo "$as_me:2509: \$? = $ac_status" >&5
2510 (exit "$ac_status"); } &&
2511 { ac_try='test -s "conftest.$ac_objext"'
2512 { (eval echo "$as_me:2512: \"$ac_try\"") >&5
2515 echo "$as_me:2515: \$? = $ac_status" >&5
2516 (exit "$ac_status"); }; }; then
2517 ac_cv_prog_cc_stdc=$ac_arg
2520 echo "$as_me: failed program was:" >&5
2521 cat "conftest.$ac_ext" >&5
2523 rm -f "conftest.$ac_objext"
2525 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2530 case "x$ac_cv_prog_cc_stdc" in
2532 echo "$as_me:2532: result: none needed" >&5
2533 echo "${ECHO_T}none needed" >&6 ;;
2535 echo "$as_me:2535: result: $ac_cv_prog_cc_stdc" >&5
2536 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2537 CC="$CC $ac_cv_prog_cc_stdc" ;;
2540 # This should have been defined by AC_PROG_CC
2543 echo "$as_me:2543: checking \$CFLAGS variable" >&5
2544 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2547 echo "$as_me:2547: result: broken" >&5
2548 echo "${ECHO_T}broken" >&6
2549 { echo "$as_me:2549: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2550 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2553 for cf_arg in $cf_flags
2559 cf_new_extra_cppflags=
2561 for cf_add_cflags in $cf_arg
2563 case "$cf_fix_cppflags" in
2565 case "$cf_add_cflags" in
2566 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2567 case "$cf_add_cflags" in
2569 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2571 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2572 && test -z "${cf_tst_cflags}" \
2573 && cf_fix_cppflags=yes
2575 if test "$cf_fix_cppflags" = yes ; then
2577 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2578 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2581 elif test "${cf_tst_cflags}" = "\"'" ; then
2583 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2584 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2594 case "$cf_add_cflags" in
2596 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2598 CPPFLAGS=`echo "$CPPFLAGS" | \
2599 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2600 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2605 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2606 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2613 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2614 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2621 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2622 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2624 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2626 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2627 && test -z "${cf_tst_cflags}" \
2628 && cf_fix_cppflags=no
2633 if test -n "$cf_new_cflags" ; then
2635 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2636 CFLAGS="${CFLAGS}$cf_new_cflags"
2640 if test -n "$cf_new_cppflags" ; then
2642 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2643 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2647 if test -n "$cf_new_extra_cppflags" ; then
2649 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2650 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2657 echo "$as_me:2657: result: ok" >&5
2658 echo "${ECHO_T}ok" >&6
2662 echo "$as_me:2662: checking \$CC variable" >&5
2663 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2666 echo "$as_me:2666: result: broken" >&5
2667 echo "${ECHO_T}broken" >&6
2668 { echo "$as_me:2668: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2669 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2671 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2672 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2674 for cf_arg in $cf_flags
2682 cf_new_extra_cppflags=
2684 for cf_add_cflags in $cf_arg
2686 case "$cf_fix_cppflags" in
2688 case "$cf_add_cflags" in
2689 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2690 case "$cf_add_cflags" in
2692 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2694 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2695 && test -z "${cf_tst_cflags}" \
2696 && cf_fix_cppflags=yes
2698 if test "$cf_fix_cppflags" = yes ; then
2700 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2701 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2704 elif test "${cf_tst_cflags}" = "\"'" ; then
2706 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2707 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2717 case "$cf_add_cflags" in
2719 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2721 CPPFLAGS=`echo "$CPPFLAGS" | \
2722 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2723 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2728 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2729 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2736 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2737 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2744 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2745 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2747 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2749 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2750 && test -z "${cf_tst_cflags}" \
2751 && cf_fix_cppflags=no
2756 if test -n "$cf_new_cflags" ; then
2758 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2759 CFLAGS="${CFLAGS}$cf_new_cflags"
2763 if test -n "$cf_new_cppflags" ; then
2765 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2766 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2770 if test -n "$cf_new_extra_cppflags" ; then
2772 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2773 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2783 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2785 echo "${as_me:-configure}:2785: testing resulting CC: '$CC' ..." 1>&5
2787 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2789 echo "${as_me:-configure}:2789: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2791 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2793 echo "${as_me:-configure}:2793: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2797 echo "$as_me:2797: result: ok" >&5
2798 echo "${ECHO_T}ok" >&6
2803 ac_cpp='$CPP $CPPFLAGS'
2804 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2805 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807 ac_main_return="return"
2808 echo "$as_me:2808: checking how to run the C preprocessor" >&5
2809 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2810 # On Suns, sometimes $CPP names a directory.
2811 if test -n "$CPP" && test -d "$CPP"; then
2814 if test -z "$CPP"; then
2815 if test "${ac_cv_prog_CPP+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 # Double quotes because CPP needs to be expanded
2819 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2822 for ac_c_preproc_warn_flag in '' yes
2824 # Use a header file that comes with gcc, so configuring glibc
2825 # with a fresh cross-compiler works.
2826 # On the NeXT, cc -E runs the code through the compiler's parser,
2827 # not just through cpp. "Syntax error" is here to catch this case.
2828 cat >"conftest.$ac_ext" <<_ACEOF
2829 #line 2829 "configure"
2830 #include "confdefs.h"
2834 if { (eval echo "$as_me:2834: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2835 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2837 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2839 cat conftest.err >&5
2840 echo "$as_me:2840: \$? = $ac_status" >&5
2841 (exit "$ac_status"); } >/dev/null; then
2842 if test -s conftest.err; then
2843 ac_cpp_err=$ac_c_preproc_warn_flag
2850 if test -z "$ac_cpp_err"; then
2853 echo "$as_me: failed program was:" >&5
2854 cat "conftest.$ac_ext" >&5
2855 # Broken: fails on valid input.
2858 rm -f conftest.err "conftest.$ac_ext"
2860 # OK, works on sane cases. Now check whether non-existent headers
2861 # can be detected and how.
2862 cat >"conftest.$ac_ext" <<_ACEOF
2863 #line 2863 "configure"
2864 #include "confdefs.h"
2865 #include <ac_nonexistent.h>
2867 if { (eval echo "$as_me:2867: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2868 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2870 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2872 cat conftest.err >&5
2873 echo "$as_me:2873: \$? = $ac_status" >&5
2874 (exit "$ac_status"); } >/dev/null; then
2875 if test -s conftest.err; then
2876 ac_cpp_err=$ac_c_preproc_warn_flag
2883 if test -z "$ac_cpp_err"; then
2884 # Broken: success on invalid input.
2887 echo "$as_me: failed program was:" >&5
2888 cat "conftest.$ac_ext" >&5
2889 # Passes both tests.
2893 rm -f conftest.err "conftest.$ac_ext"
2896 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2897 rm -f conftest.err "conftest.$ac_ext"
2898 if $ac_preproc_ok; then
2910 echo "$as_me:2910: result: $CPP" >&5
2911 echo "${ECHO_T}$CPP" >&6
2913 for ac_c_preproc_warn_flag in '' yes
2915 # Use a header file that comes with gcc, so configuring glibc
2916 # with a fresh cross-compiler works.
2917 # On the NeXT, cc -E runs the code through the compiler's parser,
2918 # not just through cpp. "Syntax error" is here to catch this case.
2919 cat >"conftest.$ac_ext" <<_ACEOF
2920 #line 2920 "configure"
2921 #include "confdefs.h"
2925 if { (eval echo "$as_me:2925: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2926 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2928 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2930 cat conftest.err >&5
2931 echo "$as_me:2931: \$? = $ac_status" >&5
2932 (exit "$ac_status"); } >/dev/null; then
2933 if test -s conftest.err; then
2934 ac_cpp_err=$ac_c_preproc_warn_flag
2941 if test -z "$ac_cpp_err"; then
2944 echo "$as_me: failed program was:" >&5
2945 cat "conftest.$ac_ext" >&5
2946 # Broken: fails on valid input.
2949 rm -f conftest.err "conftest.$ac_ext"
2951 # OK, works on sane cases. Now check whether non-existent headers
2952 # can be detected and how.
2953 cat >"conftest.$ac_ext" <<_ACEOF
2954 #line 2954 "configure"
2955 #include "confdefs.h"
2956 #include <ac_nonexistent.h>
2958 if { (eval echo "$as_me:2958: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2959 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2961 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2963 cat conftest.err >&5
2964 echo "$as_me:2964: \$? = $ac_status" >&5
2965 (exit "$ac_status"); } >/dev/null; then
2966 if test -s conftest.err; then
2967 ac_cpp_err=$ac_c_preproc_warn_flag
2974 if test -z "$ac_cpp_err"; then
2975 # Broken: success on invalid input.
2978 echo "$as_me: failed program was:" >&5
2979 cat "conftest.$ac_ext" >&5
2980 # Passes both tests.
2984 rm -f conftest.err "conftest.$ac_ext"
2987 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2988 rm -f conftest.err "conftest.$ac_ext"
2989 if $ac_preproc_ok; then
2992 { { echo "$as_me:2992: error: C preprocessor \"$CPP\" fails sanity check" >&5
2993 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2994 { (exit 1); exit 1; }; }
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3000 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002 ac_main_return="return"
3004 if test $ac_cv_c_compiler_gnu = yes; then
3005 echo "$as_me:3005: checking whether $CC needs -traditional" >&5
3006 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3007 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 ac_pattern="Autoconf.*'x'"
3011 cat >"conftest.$ac_ext" <<_ACEOF
3012 #line 3012 "configure"
3013 #include "confdefs.h"
3015 int Autoconf = TIOCGETP;
3017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3018 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3019 ac_cv_prog_gcc_traditional=yes
3021 ac_cv_prog_gcc_traditional=no
3025 if test $ac_cv_prog_gcc_traditional = no; then
3026 cat >"conftest.$ac_ext" <<_ACEOF
3027 #line 3027 "configure"
3028 #include "confdefs.h"
3030 int Autoconf = TCGETA;
3032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3033 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3034 ac_cv_prog_gcc_traditional=yes
3040 echo "$as_me:3040: result: $ac_cv_prog_gcc_traditional" >&5
3041 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3042 if test $ac_cv_prog_gcc_traditional = yes; then
3043 CC="$CC -traditional"
3047 echo "$as_me:3047: checking whether $CC understands -c and -o together" >&5
3048 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
3049 if test "${cf_cv_prog_CC_c_o+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 cat > conftest.$ac_ext <<CF_EOF
3056 ${cf_cv_main_return:-return}(0);
3059 # We do the test twice because some compilers refuse to overwrite an
3060 # existing .o file with -o, though they will create one.
3061 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3062 if { (eval echo "$as_me:3062: \"$ac_try\"") >&5
3065 echo "$as_me:3065: \$? = $ac_status" >&5
3066 (exit "$ac_status"); } &&
3067 test -f conftest2.$ac_objext && { (eval echo "$as_me:3067: \"$ac_try\"") >&5
3070 echo "$as_me:3070: \$? = $ac_status" >&5
3071 (exit "$ac_status"); };
3073 eval cf_cv_prog_CC_c_o=yes
3075 eval cf_cv_prog_CC_c_o=no
3080 if test "$cf_cv_prog_CC_c_o" = yes; then
3081 echo "$as_me:3081: result: yes" >&5
3082 echo "${ECHO_T}yes" >&6
3084 echo "$as_me:3084: result: no" >&5
3085 echo "${ECHO_T}no" >&6
3088 if test "$cross_compiling" = yes ; then
3091 case "$cf_cv_system_name" in
3092 (dragonfly*|mirbsd*|freebsd*)
3093 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
3095 (*) LDPATH=$PATH:/sbin:/usr/sbin
3096 # Extract the first word of "ldconfig", so it can be a program name with args.
3097 set dummy ldconfig; ac_word=$2
3098 echo "$as_me:3098: checking for $ac_word" >&5
3099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3100 if test "${ac_cv_path_LDCONFIG+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3108 ac_save_IFS=$IFS; IFS=$ac_path_separator
3110 for ac_dir in $ac_dummy; do
3112 test -z "$ac_dir" && ac_dir=.
3113 if $as_executable_p "$ac_dir/$ac_word"; then
3114 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3115 echo "$as_me:3115: found $ac_dir/$ac_word" >&5
3123 LDCONFIG=$ac_cv_path_LDCONFIG
3125 if test -n "$LDCONFIG"; then
3126 echo "$as_me:3126: result: $LDCONFIG" >&5
3127 echo "${ECHO_T}$LDCONFIG" >&6
3129 echo "$as_me:3129: result: no" >&5
3130 echo "${ECHO_T}no" >&6
3137 echo "$as_me:3137: checking if you want to ensure bool is consistent with C++" >&5
3138 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
3140 # Check whether --with-cxx or --without-cxx was given.
3141 if test "${with_cxx+set}" = set; then
3143 cf_with_cxx=$withval
3147 echo "$as_me:3147: result: $cf_with_cxx" >&5
3148 echo "${ECHO_T}$cf_with_cxx" >&6
3149 if test "X$cf_with_cxx" = Xno ; then
3153 # with autoconf 2.13, we can change the error to a warning:
3155 ac_cpp='$CXXCPP $CPPFLAGS'
3156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3157 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3159 ac_main_return="return"
3160 if test -n "$ac_tool_prefix"; then
3161 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3165 echo "$as_me:3165: checking for $ac_word" >&5
3166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3167 if test "${ac_cv_prog_CXX+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 if test -n "$CXX"; then
3171 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3173 ac_save_IFS=$IFS; IFS=$ac_path_separator
3175 for ac_dir in $ac_dummy; do
3177 test -z "$ac_dir" && ac_dir=.
3178 $as_executable_p "$ac_dir/$ac_word" || continue
3179 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3180 echo "$as_me:3180: found $ac_dir/$ac_word" >&5
3187 if test -n "$CXX"; then
3188 echo "$as_me:3188: result: $CXX" >&5
3189 echo "${ECHO_T}$CXX" >&6
3191 echo "$as_me:3191: result: no" >&5
3192 echo "${ECHO_T}no" >&6
3195 test -n "$CXX" && break
3198 if test -z "$CXX"; then
3200 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3202 # Extract the first word of "$ac_prog", so it can be a program name with args.
3203 set dummy $ac_prog; ac_word=$2
3204 echo "$as_me:3204: checking for $ac_word" >&5
3205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3207 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 if test -n "$ac_ct_CXX"; then
3210 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3212 ac_save_IFS=$IFS; IFS=$ac_path_separator
3214 for ac_dir in $ac_dummy; do
3216 test -z "$ac_dir" && ac_dir=.
3217 $as_executable_p "$ac_dir/$ac_word" || continue
3218 ac_cv_prog_ac_ct_CXX="$ac_prog"
3219 echo "$as_me:3219: found $ac_dir/$ac_word" >&5
3225 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3226 if test -n "$ac_ct_CXX"; then
3227 echo "$as_me:3227: result: $ac_ct_CXX" >&5
3228 echo "${ECHO_T}$ac_ct_CXX" >&6
3230 echo "$as_me:3230: result: no" >&5
3231 echo "${ECHO_T}no" >&6
3234 test -n "$ac_ct_CXX" && break
3236 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3241 # Provide some information about the compiler.
3242 echo "$as_me:3242:" \
3243 "checking for C++ compiler version" >&5
3244 ac_compiler=`set X $ac_compile; echo $2`
3245 { (eval echo "$as_me:3245: \"$ac_compiler --version </dev/null >&5\"") >&5
3246 (eval $ac_compiler --version </dev/null >&5) 2>&5
3248 echo "$as_me:3248: \$? = $ac_status" >&5
3249 (exit "$ac_status"); }
3250 { (eval echo "$as_me:3250: \"$ac_compiler -v </dev/null >&5\"") >&5
3251 (eval $ac_compiler -v </dev/null >&5) 2>&5
3253 echo "$as_me:3253: \$? = $ac_status" >&5
3254 (exit "$ac_status"); }
3255 { (eval echo "$as_me:3255: \"$ac_compiler -V </dev/null >&5\"") >&5
3256 (eval $ac_compiler -V </dev/null >&5) 2>&5
3258 echo "$as_me:3258: \$? = $ac_status" >&5
3259 (exit "$ac_status"); }
3261 echo "$as_me:3261: checking whether we are using the GNU C++ compiler" >&5
3262 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3263 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 cat >"conftest.$ac_ext" <<_ACEOF
3267 #line 3267 "configure"
3268 #include "confdefs.h"
3281 rm -f "conftest.$ac_objext"
3282 if { (eval echo "$as_me:3282: \"$ac_compile\"") >&5
3283 (eval $ac_compile) 2>&5
3285 echo "$as_me:3285: \$? = $ac_status" >&5
3286 (exit "$ac_status"); } &&
3287 { ac_try='test -s "conftest.$ac_objext"'
3288 { (eval echo "$as_me:3288: \"$ac_try\"") >&5
3291 echo "$as_me:3291: \$? = $ac_status" >&5
3292 (exit "$ac_status"); }; }; then
3295 echo "$as_me: failed program was:" >&5
3296 cat "conftest.$ac_ext" >&5
3299 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3300 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3303 echo "$as_me:3303: result: $ac_cv_cxx_compiler_gnu" >&5
3304 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3305 GXX=`test $ac_compiler_gnu = yes && echo yes`
3306 ac_test_CXXFLAGS=${CXXFLAGS+set}
3307 ac_save_CXXFLAGS=$CXXFLAGS
3309 echo "$as_me:3309: checking whether $CXX accepts -g" >&5
3310 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3311 if test "${ac_cv_prog_cxx_g+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 cat >"conftest.$ac_ext" <<_ACEOF
3315 #line 3315 "configure"
3316 #include "confdefs.h"
3326 rm -f "conftest.$ac_objext"
3327 if { (eval echo "$as_me:3327: \"$ac_compile\"") >&5
3328 (eval $ac_compile) 2>&5
3330 echo "$as_me:3330: \$? = $ac_status" >&5
3331 (exit "$ac_status"); } &&
3332 { ac_try='test -s "conftest.$ac_objext"'
3333 { (eval echo "$as_me:3333: \"$ac_try\"") >&5
3336 echo "$as_me:3336: \$? = $ac_status" >&5
3337 (exit "$ac_status"); }; }; then
3338 ac_cv_prog_cxx_g=yes
3340 echo "$as_me: failed program was:" >&5
3341 cat "conftest.$ac_ext" >&5
3344 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3346 echo "$as_me:3346: result: $ac_cv_prog_cxx_g" >&5
3347 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3348 if test "$ac_test_CXXFLAGS" = set; then
3349 CXXFLAGS=$ac_save_CXXFLAGS
3350 elif test $ac_cv_prog_cxx_g = yes; then
3351 if test "$GXX" = yes; then
3357 if test "$GXX" = yes; then
3363 for ac_declaration in \
3365 '#include <stdlib.h>' \
3366 'extern "C" void std::exit (int) throw (); using std::exit;' \
3367 'extern "C" void std::exit (int); using std::exit;' \
3368 'extern "C" void exit (int) throw ();' \
3369 'extern "C" void exit (int);' \
3372 cat >"conftest.$ac_ext" <<_ACEOF
3373 #line 3373 "configure"
3374 #include "confdefs.h"
3385 rm -f "conftest.$ac_objext"
3386 if { (eval echo "$as_me:3386: \"$ac_compile\"") >&5
3387 (eval $ac_compile) 2>&5
3389 echo "$as_me:3389: \$? = $ac_status" >&5
3390 (exit "$ac_status"); } &&
3391 { ac_try='test -s "conftest.$ac_objext"'
3392 { (eval echo "$as_me:3392: \"$ac_try\"") >&5
3395 echo "$as_me:3395: \$? = $ac_status" >&5
3396 (exit "$ac_status"); }; }; then
3399 echo "$as_me: failed program was:" >&5
3400 cat "conftest.$ac_ext" >&5
3403 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3404 cat >"conftest.$ac_ext" <<_ACEOF
3405 #line 3405 "configure"
3406 #include "confdefs.h"
3416 rm -f "conftest.$ac_objext"
3417 if { (eval echo "$as_me:3417: \"$ac_compile\"") >&5
3418 (eval $ac_compile) 2>&5
3420 echo "$as_me:3420: \$? = $ac_status" >&5
3421 (exit "$ac_status"); } &&
3422 { ac_try='test -s "conftest.$ac_objext"'
3423 { (eval echo "$as_me:3423: \"$ac_try\"") >&5
3426 echo "$as_me:3426: \$? = $ac_status" >&5
3427 (exit "$ac_status"); }; }; then
3430 echo "$as_me: failed program was:" >&5
3431 cat "conftest.$ac_ext" >&5
3433 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3436 if test -n "$ac_declaration"; then
3437 echo '#ifdef __cplusplus' >>confdefs.h
3438 echo "$ac_declaration" >>confdefs.h
3439 echo '#endif' >>confdefs.h
3443 ac_cpp='$CPP $CPPFLAGS'
3444 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3445 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447 ac_main_return="return"
3450 ac_cpp='$CXXCPP $CPPFLAGS'
3451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3452 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3454 ac_main_return="return"
3456 if test "x$cf_with_cxx" != xno
3458 # Several of the C++ configurations do not work, particularly when
3459 # cross-compiling (20140913 -TD)
3460 echo "$as_me:3460: checking if $CXX works" >&5
3461 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3463 save_CPPFLAGS="$CPPFLAGS"
3464 eval cf_includedir=${includedir}
3465 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3467 cat >"conftest.$ac_ext" <<_ACEOF
3468 #line 3468 "configure"
3469 #include "confdefs.h"
3478 printf("Hello world!\n")
3484 rm -f "conftest.$ac_objext"
3485 if { (eval echo "$as_me:3485: \"$ac_compile\"") >&5
3486 (eval $ac_compile) 2>&5
3488 echo "$as_me:3488: \$? = $ac_status" >&5
3489 (exit "$ac_status"); } &&
3490 { ac_try='test -s "conftest.$ac_objext"'
3491 { (eval echo "$as_me:3491: \"$ac_try\"") >&5
3494 echo "$as_me:3494: \$? = $ac_status" >&5
3495 (exit "$ac_status"); }; }; then
3498 echo "$as_me: failed program was:" >&5
3499 cat "conftest.$ac_ext" >&5
3502 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3503 CPPFLAGS="$save_CPPFLAGS"
3505 echo "$as_me:3505: result: $cf_cxx_works" >&5
3506 echo "${ECHO_T}$cf_cxx_works" >&6
3507 if test "x$cf_cxx_works" = xno
3509 { echo "$as_me:3509: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3510 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3511 cf_with_cxx=no; CXX=""; GXX="";
3515 ac_cpp='$CPP $CPPFLAGS'
3516 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3517 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519 ac_main_return="return"
3521 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3522 if test "$CXX" = "g++" ; then
3523 # Extract the first word of "g++", so it can be a program name with args.
3524 set dummy g++; ac_word=$2
3525 echo "$as_me:3525: checking for $ac_word" >&5
3526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3527 if test "${ac_cv_path_CXX+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3532 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3535 ac_save_IFS=$IFS; IFS=$ac_path_separator
3537 for ac_dir in $ac_dummy; do
3539 test -z "$ac_dir" && ac_dir=.
3540 if $as_executable_p "$ac_dir/$ac_word"; then
3541 ac_cv_path_CXX="$ac_dir/$ac_word"
3542 echo "$as_me:3542: found $ac_dir/$ac_word" >&5
3552 if test -n "$CXX"; then
3553 echo "$as_me:3553: result: $CXX" >&5
3554 echo "${ECHO_T}$CXX" >&6
3556 echo "$as_me:3556: result: no" >&5
3557 echo "${ECHO_T}no" >&6
3563 { echo "$as_me:3563: WARNING: You don't have any C++ compiler, too bad" >&5
3564 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3565 cf_with_cxx=no; CXX=""; GXX="";
3571 if test "$GXX" = yes; then
3572 echo "$as_me:3572: checking version of ${CXX:-g++}" >&5
3573 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3574 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3575 if test -z "$GXX_VERSION"
3580 echo "$as_me:3580: result: $GXX_VERSION" >&5
3581 echo "${ECHO_T}$GXX_VERSION" >&6
3584 case "$GXX_VERSION" in
3588 { echo "$as_me:3588: WARNING: templates do not work" >&5
3589 echo "$as_me: WARNING: templates do not work" >&2;}
3593 echo "$as_me:3593: checking if you want to build C++ binding and demo" >&5
3594 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3596 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3597 if test "${with_cxx_binding+set}" = set; then
3598 withval="$with_cxx_binding"
3599 cf_with_cxx_binding=$withval
3601 cf_with_cxx_binding=$cf_with_cxx
3603 echo "$as_me:3603: result: $cf_with_cxx_binding" >&5
3604 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3606 echo "$as_me:3606: checking if you want to build with Ada" >&5
3607 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3608 echo "$as_me:3608: result: $cf_with_ada" >&5
3609 echo "${ECHO_T}$cf_with_ada" >&6
3611 echo "$as_me:3611: checking if you want to install terminal database" >&5
3612 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3614 # Check whether --enable-db-install or --disable-db-install was given.
3615 if test "${enable_db_install+set}" = set; then
3616 enableval="$enable_db_install"
3617 cf_with_db_install=$enableval
3619 cf_with_db_install=yes
3621 echo "$as_me:3621: result: $cf_with_db_install" >&5
3622 echo "${ECHO_T}$cf_with_db_install" >&6
3624 echo "$as_me:3624: checking if you want to install manpages" >&5
3625 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3627 # Check whether --with-manpages or --without-manpages was given.
3628 if test "${with_manpages+set}" = set; then
3629 withval="$with_manpages"
3630 cf_with_manpages=$withval
3632 cf_with_manpages=yes
3634 echo "$as_me:3634: result: $cf_with_manpages" >&5
3635 echo "${ECHO_T}$cf_with_manpages" >&6
3637 echo "$as_me:3637: checking if you want to build programs such as tic" >&5
3638 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3640 # Check whether --with-progs or --without-progs was given.
3641 if test "${with_progs+set}" = set; then
3642 withval="$with_progs"
3643 cf_with_progs=$withval
3647 echo "$as_me:3647: result: $cf_with_progs" >&5
3648 echo "${ECHO_T}$cf_with_progs" >&6
3650 if test -f "$srcdir/tack/tack.h" ; then
3651 if test "x$cross_compiling" = xyes ; then
3652 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3654 echo "${as_me:-configure}:3654: testing ignoring tack because we are cross-compiling ..." 1>&5
3658 echo "$as_me:3658: checking if you want to build the tack program" >&5
3659 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3661 # Check whether --with-tack or --without-tack was given.
3662 if test "${with_tack+set}" = set; then
3663 withval="$with_tack"
3664 cf_with_tack=$withval
3666 cf_with_tack=$cf_with_progs
3668 echo "$as_me:3668: result: $cf_with_tack" >&5
3669 echo "${ECHO_T}$cf_with_tack" >&6
3675 echo "$as_me:3675: checking if you want to build test-programs" >&5
3676 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3678 # Check whether --with-tests or --without-tests was given.
3679 if test "${with_tests+set}" = set; then
3680 withval="$with_tests"
3681 cf_with_tests=$withval
3685 echo "$as_me:3685: result: $cf_with_tests" >&5
3686 echo "${ECHO_T}$cf_with_tests" >&6
3688 echo "$as_me:3688: checking if you wish to install curses.h" >&5
3689 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3691 # Check whether --with-curses-h or --without-curses-h was given.
3692 if test "${with_curses_h+set}" = set; then
3693 withval="$with_curses_h"
3694 with_curses_h=$withval
3698 echo "$as_me:3698: result: $with_curses_h" >&5
3699 echo "${ECHO_T}$with_curses_h" >&6
3701 modules_to_build="ncurses"
3702 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3703 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3704 modules_to_build="$modules_to_build panel menu form"
3706 test "$program_prefix" != NONE &&
3707 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3708 # Use a double $ so make ignores it.
3709 test "$program_suffix" != NONE &&
3710 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3711 # Double any \ or $. echo might interpret backslashes.
3712 # By default was `s,x,x', remove it if useless.
3713 cat <<\_ACEOF >conftest.sed
3714 s/[\\$]/&&/g;s/;s,x,x,$//
3716 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3719 for ac_prog in mawk gawk nawk awk
3721 # Extract the first word of "$ac_prog", so it can be a program name with args.
3722 set dummy $ac_prog; ac_word=$2
3723 echo "$as_me:3723: checking for $ac_word" >&5
3724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3725 if test "${ac_cv_prog_AWK+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 if test -n "$AWK"; then
3729 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3731 ac_save_IFS=$IFS; IFS=$ac_path_separator
3733 for ac_dir in $ac_dummy; do
3735 test -z "$ac_dir" && ac_dir=.
3736 $as_executable_p "$ac_dir/$ac_word" || continue
3737 ac_cv_prog_AWK="$ac_prog"
3738 echo "$as_me:3738: found $ac_dir/$ac_word" >&5
3745 if test -n "$AWK"; then
3746 echo "$as_me:3746: result: $AWK" >&5
3747 echo "${ECHO_T}$AWK" >&6
3749 echo "$as_me:3749: result: no" >&5
3750 echo "${ECHO_T}no" >&6
3753 test -n "$AWK" && break
3756 test -z "$AWK" && { { echo "$as_me:3756: error: No awk program found" >&5
3757 echo "$as_me: error: No awk program found" >&2;}
3758 { (exit 1); exit 1; }; }
3760 # Find a good install program. We prefer a C program (faster),
3761 # so one script is as good as another. But avoid the broken or
3762 # incompatible versions:
3763 # SysV /etc/install, /usr/sbin/install
3764 # SunOS /usr/etc/install
3765 # IRIX /sbin/install
3767 # AmigaOS /C/install, which installs bootblocks on floppy discs
3768 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3769 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3770 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3771 # ./install, which can be erroneously created by make from ./install.sh.
3772 echo "$as_me:3772: checking for a BSD compatible install" >&5
3773 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3774 if test -z "$INSTALL"; then
3775 if test "${ac_cv_path_install+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 ac_save_IFS=$IFS; IFS=$ac_path_separator
3779 for ac_dir in $PATH; do
3781 # Account for people who put trailing slashes in PATH elements.
3783 / | ./ | .// | /cC/* \
3784 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3787 # OSF1 and SCO ODT 3.0 have their own names for install.
3788 # Don't use installbsd from OSF since it installs stuff as root
3790 for ac_prog in ginstall scoinst install; do
3791 if $as_executable_p "$ac_dir/$ac_prog"; then
3792 if test $ac_prog = install &&
3793 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3794 # AIX install. It has an incompatible calling convention.
3796 elif test $ac_prog = install &&
3797 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3798 # program-specific install script used by HP pwplus--don't use.
3801 ac_cv_path_install="$ac_dir/$ac_prog -c"
3811 if test "${ac_cv_path_install+set}" = set; then
3812 INSTALL=$ac_cv_path_install
3814 # As a last resort, use the slow shell script. We don't cache a
3815 # path for INSTALL within a source directory, because that will
3816 # break other packages using the cache if that directory is
3817 # removed, or if the path is relative.
3818 INSTALL=$ac_install_sh
3821 echo "$as_me:3821: result: $INSTALL" >&5
3822 echo "${ECHO_T}$INSTALL" >&6
3824 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3825 # It thinks the first close brace ends the variable substitution.
3826 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3828 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3830 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3836 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
3837 test -z "$cf_dir" && cf_dir=.
3838 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
3842 for ac_prog in lint cppcheck splint
3844 # Extract the first word of "$ac_prog", so it can be a program name with args.
3845 set dummy $ac_prog; ac_word=$2
3846 echo "$as_me:3846: checking for $ac_word" >&5
3847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3848 if test "${ac_cv_prog_LINT+set}" = set; then
3849 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 if test -n "$LINT"; then
3852 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3854 ac_save_IFS=$IFS; IFS=$ac_path_separator
3856 for ac_dir in $ac_dummy; do
3858 test -z "$ac_dir" && ac_dir=.
3859 $as_executable_p "$ac_dir/$ac_word" || continue
3860 ac_cv_prog_LINT="$ac_prog"
3861 echo "$as_me:3861: found $ac_dir/$ac_word" >&5
3867 LINT=$ac_cv_prog_LINT
3868 if test -n "$LINT"; then
3869 echo "$as_me:3869: result: $LINT" >&5
3870 echo "${ECHO_T}$LINT" >&6
3872 echo "$as_me:3872: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3876 test -n "$LINT" && break
3880 (xcppcheck|x*/cppcheck)
3881 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3885 echo "$as_me:3885: checking whether ln -s works" >&5
3886 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3888 if test "$LN_S" = "ln -s"; then
3889 echo "$as_me:3889: result: yes" >&5
3890 echo "${ECHO_T}yes" >&6
3892 echo "$as_me:3892: result: no, using $LN_S" >&5
3893 echo "${ECHO_T}no, using $LN_S" >&6
3896 echo "$as_me:3896: checking if $LN_S -f options work" >&5
3897 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3899 rm -f conf$$.src conf$$dst
3901 echo first >conf$$.src
3902 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3907 rm -f conf$$.dst conf$$src
3908 echo "$as_me:3908: result: $cf_prog_ln_sf" >&5
3909 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3911 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3913 echo "$as_me:3913: checking for long file names" >&5
3914 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3915 if test "${ac_cv_sys_long_file_names+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 ac_cv_sys_long_file_names=yes
3919 # Test for long file names in all the places we know might matter:
3920 # . the current directory, where building will happen
3921 # $prefix/lib where we will be installing things
3922 # $exec_prefix/lib likewise
3923 # eval it to expand exec_prefix.
3924 # $TMPDIR if set, where it might want to write temporary files
3925 # if $TMPDIR is not set:
3926 # /tmp where it might want to write temporary files
3929 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3932 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3934 for ac_dir in . $ac_tmpdirs `eval echo "$prefix/lib" "$exec_prefix/lib"` ; do
3935 test -d "$ac_dir" || continue
3936 test -w "$ac_dir" || continue # It is less confusing to not echo anything here.
3937 ac_xdir=$ac_dir/cf$$
3938 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
3939 ac_tf1=$ac_xdir/conftest9012345
3940 ac_tf2=$ac_xdir/conftest9012346
3941 (echo 1 >"$ac_tf1") 2>/dev/null
3942 (echo 2 >"$ac_tf2") 2>/dev/null
3943 ac_val=`cat "$ac_tf1" 2>/dev/null`
3944 if test ! -f "$ac_tf1" || test "$ac_val" != 1; then
3945 ac_cv_sys_long_file_names=no
3946 rm -rf "$ac_xdir" 2>/dev/null
3949 rm -rf "$ac_xdir" 2>/dev/null
3952 echo "$as_me:3952: result: $ac_cv_sys_long_file_names" >&5
3953 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3954 if test "$ac_cv_sys_long_file_names" = yes; then
3956 cat >>confdefs.h <<\EOF
3957 #define HAVE_LONG_FILE_NAMES 1
3962 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3963 # of package conflict.
3966 # Check whether --with-config-suffix or --without-config-suffix was given.
3967 if test "${with_config_suffix+set}" = set; then
3968 withval="$with_config_suffix"
3971 { echo "$as_me:3971: WARNING: expected a value for config-suffix option" >&5
3972 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
3974 (*) cf_config_suffix="$withval"
3979 # If we find pkg-config, check if we should install the ".pc" files.
3981 echo "$as_me:3981: checking if you want to use pkg-config" >&5
3982 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3984 # Check whether --with-pkg-config or --without-pkg-config was given.
3985 if test "${with_pkg_config+set}" = set; then
3986 withval="$with_pkg_config"
3987 cf_pkg_config=$withval
3991 echo "$as_me:3991: result: $cf_pkg_config" >&5
3992 echo "${ECHO_T}$cf_pkg_config" >&6
3994 case "$cf_pkg_config" in
4000 if test -n "$ac_tool_prefix"; then
4001 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4002 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4003 echo "$as_me:4003: checking for $ac_word" >&5
4004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4013 ac_save_IFS=$IFS; IFS=$ac_path_separator
4015 for ac_dir in $ac_dummy; do
4017 test -z "$ac_dir" && ac_dir=.
4018 if $as_executable_p "$ac_dir/$ac_word"; then
4019 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4020 echo "$as_me:4020: found $ac_dir/$ac_word" >&5
4028 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4030 if test -n "$PKG_CONFIG"; then
4031 echo "$as_me:4031: result: $PKG_CONFIG" >&5
4032 echo "${ECHO_T}$PKG_CONFIG" >&6
4034 echo "$as_me:4034: result: no" >&5
4035 echo "${ECHO_T}no" >&6
4039 if test -z "$ac_cv_path_PKG_CONFIG"; then
4040 ac_pt_PKG_CONFIG=$PKG_CONFIG
4041 # Extract the first word of "pkg-config", so it can be a program name with args.
4042 set dummy pkg-config; ac_word=$2
4043 echo "$as_me:4043: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 case $ac_pt_PKG_CONFIG in
4050 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4053 ac_save_IFS=$IFS; IFS=$ac_path_separator
4055 for ac_dir in $ac_dummy; do
4057 test -z "$ac_dir" && ac_dir=.
4058 if $as_executable_p "$ac_dir/$ac_word"; then
4059 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4060 echo "$as_me:4060: found $ac_dir/$ac_word" >&5
4065 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4069 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4071 if test -n "$ac_pt_PKG_CONFIG"; then
4072 echo "$as_me:4072: result: $ac_pt_PKG_CONFIG" >&5
4073 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4075 echo "$as_me:4075: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4079 PKG_CONFIG=$ac_pt_PKG_CONFIG
4081 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4090 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4091 if test "$PKG_CONFIG" != none ; then
4093 if test "x$prefix" != xNONE; then
4094 cf_path_syntax="$prefix"
4096 cf_path_syntax="$ac_default_prefix"
4099 case ".$PKG_CONFIG" in
4104 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4106 (.\$\{*prefix\}*|.\$\{*dir\}*)
4107 eval PKG_CONFIG="$PKG_CONFIG"
4108 case ".$PKG_CONFIG" in
4110 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4115 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4118 { { echo "$as_me:4118: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4119 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4120 { (exit 1); exit 1; }; }
4124 elif test "x$cf_pkg_config" != xno ; then
4125 { echo "$as_me:4125: WARNING: pkg-config is not installed" >&5
4126 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4129 case "$PKG_CONFIG" in
4131 echo "$as_me:4131: checking for pkg-config library directory" >&5
4132 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
4135 echo "$as_me:4135: checking for $PKG_CONFIG library directory" >&5
4136 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
4140 PKG_CONFIG_LIBDIR=no
4142 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
4143 if test "${with_pkg_config_libdir+set}" = set; then
4144 withval="$with_pkg_config_libdir"
4145 PKG_CONFIG_LIBDIR=$withval
4147 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
4150 case x$PKG_CONFIG_LIBDIR in
4154 # Look for the library directory using the same prefix as the executable
4155 if test "x$PKG_CONFIG" = xnone
4159 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
4162 # If you don't like using the default architecture, you have to specify the
4163 # intended library directory and corresponding compiler/linker options.
4165 # This case allows for Debian's 2014-flavor of multiarch, along with the
4166 # most common variations before that point. Some other variants spell the
4167 # directory differently, e.g., "pkg-config", and put it in unusual places.
4168 # pkg-config has always been poorly standardized, which is ironic...
4169 case x`(arch) 2>/dev/null` in
4172 $cf_path/lib/*64-linux-gnu \
4180 $cf_path/lib/*-linux-gnu \
4188 test -n "$verbose" && echo " list..." 1>&6
4190 echo "${as_me:-configure}:4190: testing list... ..." 1>&5
4192 for cf_config in $cf_search_path
4194 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
4196 echo "${as_me:-configure}:4196: testing checking $cf_config/pkgconfig ..." 1>&5
4198 if test -d "$cf_config/pkgconfig"
4200 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
4201 echo "$as_me:4201: checking done" >&5
4202 echo $ECHO_N "checking done... $ECHO_C" >&6
4211 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
4212 echo "$as_me:4212: result: $PKG_CONFIG_LIBDIR" >&5
4213 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4216 if test "x$PKG_CONFIG" != xnone
4218 echo "$as_me:4218: checking if we should install .pc files for $PKG_CONFIG" >&5
4219 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4221 echo "$as_me:4221: checking if we should install .pc files" >&5
4222 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4225 # Check whether --enable-pc-files or --disable-pc-files was given.
4226 if test "${enable_pc_files+set}" = set; then
4227 enableval="$enable_pc_files"
4228 enable_pc_files=$enableval
4232 echo "$as_me:4232: result: $enable_pc_files" >&5
4233 echo "${ECHO_T}$enable_pc_files" >&6
4235 if test "x$enable_pc_files" != xno
4238 case "x$PKG_CONFIG_LIBDIR" in
4240 { echo "$as_me:4240: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4241 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4245 if test "x$prefix" != xNONE; then
4246 cf_path_syntax="$prefix"
4248 cf_path_syntax="$ac_default_prefix"
4251 case ".$PKG_CONFIG_LIBDIR" in
4256 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4258 (.\$\{*prefix\}*|.\$\{*dir\}*)
4259 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
4260 case ".$PKG_CONFIG_LIBDIR" in
4262 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e s%NONE%$cf_path_syntax%`
4267 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e s%NONE%$cf_path_syntax%`
4270 { { echo "$as_me:4270: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
4271 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
4272 { (exit 1); exit 1; }; }
4282 if test -z "$MAKE_PC_FILES"
4284 echo "$as_me:4284: checking for suffix to add to pc-files" >&5
4285 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
4287 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4288 if test "${with_pc_suffix+set}" = set; then
4289 withval="$with_pc_suffix"
4294 (*) PC_MODULE_SUFFIX="$withval"
4298 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4299 echo "$as_me:4299: result: $PC_MODULE_SUFFIX" >&5
4300 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4301 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4305 echo "$as_me:4305: checking if we should assume mixed-case filenames" >&5
4306 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4308 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4309 if test "${enable_mixed_case+set}" = set; then
4310 enableval="$enable_mixed_case"
4311 enable_mixedcase=$enableval
4313 enable_mixedcase=auto
4315 echo "$as_me:4315: result: $enable_mixedcase" >&5
4316 echo "${ECHO_T}$enable_mixedcase" >&6
4317 if test "$enable_mixedcase" = "auto" ; then
4319 echo "$as_me:4319: checking if filesystem supports mixed-case filenames" >&5
4320 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4321 if test "${cf_cv_mixedcase+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 if test "$cross_compiling" = yes ; then
4326 case "$target_alias" in
4327 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
4335 rm -f conftest CONFTEST
4337 if test -f CONFTEST ; then
4342 rm -f conftest CONFTEST
4346 echo "$as_me:4346: result: $cf_cv_mixedcase" >&5
4347 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4348 test "$cf_cv_mixedcase" = yes &&
4349 cat >>confdefs.h <<\EOF
4350 #define MIXEDCASE_FILENAMES 1
4354 cf_cv_mixedcase=$enable_mixedcase
4355 if test "x$enable_mixedcase" = "xyes" ; then
4357 cat >>confdefs.h <<\EOF
4358 #define MIXEDCASE_FILENAMES 1
4364 # do this after mixed-case option (tags/TAGS is not as important as tic).
4365 echo "$as_me:4365: checking whether ${MAKE-make} sets \${MAKE}" >&5
4366 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4367 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4368 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 cat >conftest.make <<\EOF
4373 @echo 'ac_maketemp="${MAKE}"'
4375 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4376 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4377 if test -n "$ac_maketemp"; then
4378 eval ac_cv_prog_make_${ac_make}_set=yes
4380 eval ac_cv_prog_make_${ac_make}_set=no
4384 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4385 echo "$as_me:4385: result: yes" >&5
4386 echo "${ECHO_T}yes" >&6
4389 echo "$as_me:4389: result: no" >&5
4390 echo "${ECHO_T}no" >&6
4391 SET_MAKE="MAKE=${MAKE-make}"
4394 for ac_prog in exctags ctags
4396 # Extract the first word of "$ac_prog", so it can be a program name with args.
4397 set dummy $ac_prog; ac_word=$2
4398 echo "$as_me:4398: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400 if test "${ac_cv_prog_CTAGS+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 if test -n "$CTAGS"; then
4404 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4406 ac_save_IFS=$IFS; IFS=$ac_path_separator
4408 for ac_dir in $ac_dummy; do
4410 test -z "$ac_dir" && ac_dir=.
4411 $as_executable_p "$ac_dir/$ac_word" || continue
4412 ac_cv_prog_CTAGS="$ac_prog"
4413 echo "$as_me:4413: found $ac_dir/$ac_word" >&5
4419 CTAGS=$ac_cv_prog_CTAGS
4420 if test -n "$CTAGS"; then
4421 echo "$as_me:4421: result: $CTAGS" >&5
4422 echo "${ECHO_T}$CTAGS" >&6
4424 echo "$as_me:4424: result: no" >&5
4425 echo "${ECHO_T}no" >&6
4428 test -n "$CTAGS" && break
4431 for ac_prog in exetags etags
4433 # Extract the first word of "$ac_prog", so it can be a program name with args.
4434 set dummy $ac_prog; ac_word=$2
4435 echo "$as_me:4435: checking for $ac_word" >&5
4436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4437 if test "${ac_cv_prog_ETAGS+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 if test -n "$ETAGS"; then
4441 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4443 ac_save_IFS=$IFS; IFS=$ac_path_separator
4445 for ac_dir in $ac_dummy; do
4447 test -z "$ac_dir" && ac_dir=.
4448 $as_executable_p "$ac_dir/$ac_word" || continue
4449 ac_cv_prog_ETAGS="$ac_prog"
4450 echo "$as_me:4450: found $ac_dir/$ac_word" >&5
4456 ETAGS=$ac_cv_prog_ETAGS
4457 if test -n "$ETAGS"; then
4458 echo "$as_me:4458: result: $ETAGS" >&5
4459 echo "${ECHO_T}$ETAGS" >&6
4461 echo "$as_me:4461: result: no" >&5
4462 echo "${ECHO_T}no" >&6
4465 test -n "$ETAGS" && break
4468 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4469 set dummy ${CTAGS:-ctags}; ac_word=$2
4470 echo "$as_me:4470: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4472 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if test -n "$MAKE_LOWER_TAGS"; then
4476 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4478 ac_save_IFS=$IFS; IFS=$ac_path_separator
4480 for ac_dir in $ac_dummy; do
4482 test -z "$ac_dir" && ac_dir=.
4483 $as_executable_p "$ac_dir/$ac_word" || continue
4484 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4485 echo "$as_me:4485: found $ac_dir/$ac_word" >&5
4489 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4492 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4493 if test -n "$MAKE_LOWER_TAGS"; then
4494 echo "$as_me:4494: result: $MAKE_LOWER_TAGS" >&5
4495 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4497 echo "$as_me:4497: result: no" >&5
4498 echo "${ECHO_T}no" >&6
4501 if test "$cf_cv_mixedcase" = yes ; then
4502 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4503 set dummy ${ETAGS:-etags}; ac_word=$2
4504 echo "$as_me:4504: checking for $ac_word" >&5
4505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4506 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 if test -n "$MAKE_UPPER_TAGS"; then
4510 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4512 ac_save_IFS=$IFS; IFS=$ac_path_separator
4514 for ac_dir in $ac_dummy; do
4516 test -z "$ac_dir" && ac_dir=.
4517 $as_executable_p "$ac_dir/$ac_word" || continue
4518 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4519 echo "$as_me:4519: found $ac_dir/$ac_word" >&5
4523 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4526 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4527 if test -n "$MAKE_UPPER_TAGS"; then
4528 echo "$as_me:4528: result: $MAKE_UPPER_TAGS" >&5
4529 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4531 echo "$as_me:4531: result: no" >&5
4532 echo "${ECHO_T}no" >&6
4539 if test "$MAKE_UPPER_TAGS" = yes ; then
4545 if test "$MAKE_LOWER_TAGS" = yes ; then
4551 echo "$as_me:4551: checking for makeflags variable" >&5
4552 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4553 if test "${cf_cv_makeflags+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4560 cat >cf_makeflags.tmp <<CF_EOF
4563 @ echo '.$cf_option'
4565 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | ${FGREP-fgrep} -v "ing directory" | sed -e 's,[ ]*$,,'`
4566 case "$cf_result" in
4568 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`"
4569 case "$cf_result" in
4570 (.*CC=*) cf_cv_makeflags=
4572 (*) cf_cv_makeflags=$cf_option
4581 echo "${as_me:-configure}:4581: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4586 rm -f cf_makeflags.tmp
4589 echo "$as_me:4589: result: $cf_cv_makeflags" >&5
4590 echo "${ECHO_T}$cf_cv_makeflags" >&6
4592 if test -n "$ac_tool_prefix"; then
4593 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4594 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4595 echo "$as_me:4595: checking for $ac_word" >&5
4596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4597 if test "${ac_cv_prog_RANLIB+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 if test -n "$RANLIB"; then
4601 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4603 ac_save_IFS=$IFS; IFS=$ac_path_separator
4605 for ac_dir in $ac_dummy; do
4607 test -z "$ac_dir" && ac_dir=.
4608 $as_executable_p "$ac_dir/$ac_word" || continue
4609 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4610 echo "$as_me:4610: found $ac_dir/$ac_word" >&5
4616 RANLIB=$ac_cv_prog_RANLIB
4617 if test -n "$RANLIB"; then
4618 echo "$as_me:4618: result: $RANLIB" >&5
4619 echo "${ECHO_T}$RANLIB" >&6
4621 echo "$as_me:4621: result: no" >&5
4622 echo "${ECHO_T}no" >&6
4626 if test -z "$ac_cv_prog_RANLIB"; then
4627 ac_ct_RANLIB=$RANLIB
4628 # Extract the first word of "ranlib", so it can be a program name with args.
4629 set dummy ranlib; ac_word=$2
4630 echo "$as_me:4630: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 if test -n "$ac_ct_RANLIB"; then
4636 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4638 ac_save_IFS=$IFS; IFS=$ac_path_separator
4640 for ac_dir in $ac_dummy; do
4642 test -z "$ac_dir" && ac_dir=.
4643 $as_executable_p "$ac_dir/$ac_word" || continue
4644 ac_cv_prog_ac_ct_RANLIB="ranlib"
4645 echo "$as_me:4645: found $ac_dir/$ac_word" >&5
4649 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4652 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4653 if test -n "$ac_ct_RANLIB"; then
4654 echo "$as_me:4654: result: $ac_ct_RANLIB" >&5
4655 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4657 echo "$as_me:4657: result: no" >&5
4658 echo "${ECHO_T}no" >&6
4661 RANLIB=$ac_ct_RANLIB
4663 RANLIB="$ac_cv_prog_RANLIB"
4666 if test -n "$ac_tool_prefix"; then
4667 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4668 set dummy ${ac_tool_prefix}ld; ac_word=$2
4669 echo "$as_me:4669: checking for $ac_word" >&5
4670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4671 if test "${ac_cv_prog_LD+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 if test -n "$LD"; then
4675 ac_cv_prog_LD="$LD" # Let the user override the test.
4677 ac_save_IFS=$IFS; IFS=$ac_path_separator
4679 for ac_dir in $ac_dummy; do
4681 test -z "$ac_dir" && ac_dir=.
4682 $as_executable_p "$ac_dir/$ac_word" || continue
4683 ac_cv_prog_LD="${ac_tool_prefix}ld"
4684 echo "$as_me:4684: found $ac_dir/$ac_word" >&5
4691 if test -n "$LD"; then
4692 echo "$as_me:4692: result: $LD" >&5
4693 echo "${ECHO_T}$LD" >&6
4695 echo "$as_me:4695: result: no" >&5
4696 echo "${ECHO_T}no" >&6
4700 if test -z "$ac_cv_prog_LD"; then
4702 # Extract the first word of "ld", so it can be a program name with args.
4703 set dummy ld; ac_word=$2
4704 echo "$as_me:4704: checking for $ac_word" >&5
4705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4706 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 if test -n "$ac_ct_LD"; then
4710 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4712 ac_save_IFS=$IFS; IFS=$ac_path_separator
4714 for ac_dir in $ac_dummy; do
4716 test -z "$ac_dir" && ac_dir=.
4717 $as_executable_p "$ac_dir/$ac_word" || continue
4718 ac_cv_prog_ac_ct_LD="ld"
4719 echo "$as_me:4719: found $ac_dir/$ac_word" >&5
4723 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4726 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4727 if test -n "$ac_ct_LD"; then
4728 echo "$as_me:4728: result: $ac_ct_LD" >&5
4729 echo "${ECHO_T}$ac_ct_LD" >&6
4731 echo "$as_me:4731: result: no" >&5
4732 echo "${ECHO_T}no" >&6
4740 if test -n "$ac_tool_prefix"; then
4741 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4742 set dummy ${ac_tool_prefix}ar; ac_word=$2
4743 echo "$as_me:4743: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4745 if test "${ac_cv_prog_AR+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 if test -n "$AR"; then
4749 ac_cv_prog_AR="$AR" # Let the user override the test.
4751 ac_save_IFS=$IFS; IFS=$ac_path_separator
4753 for ac_dir in $ac_dummy; do
4755 test -z "$ac_dir" && ac_dir=.
4756 $as_executable_p "$ac_dir/$ac_word" || continue
4757 ac_cv_prog_AR="${ac_tool_prefix}ar"
4758 echo "$as_me:4758: found $ac_dir/$ac_word" >&5
4765 if test -n "$AR"; then
4766 echo "$as_me:4766: result: $AR" >&5
4767 echo "${ECHO_T}$AR" >&6
4769 echo "$as_me:4769: result: no" >&5
4770 echo "${ECHO_T}no" >&6
4774 if test -z "$ac_cv_prog_AR"; then
4776 # Extract the first word of "ar", so it can be a program name with args.
4777 set dummy ar; ac_word=$2
4778 echo "$as_me:4778: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4780 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 if test -n "$ac_ct_AR"; then
4784 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4786 ac_save_IFS=$IFS; IFS=$ac_path_separator
4788 for ac_dir in $ac_dummy; do
4790 test -z "$ac_dir" && ac_dir=.
4791 $as_executable_p "$ac_dir/$ac_word" || continue
4792 ac_cv_prog_ac_ct_AR="ar"
4793 echo "$as_me:4793: found $ac_dir/$ac_word" >&5
4797 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4800 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4801 if test -n "$ac_ct_AR"; then
4802 echo "$as_me:4802: result: $ac_ct_AR" >&5
4803 echo "${ECHO_T}$ac_ct_AR" >&6
4805 echo "$as_me:4805: result: no" >&5
4806 echo "${ECHO_T}no" >&6
4814 if test -n "$ac_tool_prefix"; then
4815 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4816 set dummy ${ac_tool_prefix}nm; ac_word=$2
4817 echo "$as_me:4817: checking for $ac_word" >&5
4818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4819 if test "${ac_cv_prog_NM+set}" = set; then
4820 echo $ECHO_N "(cached) $ECHO_C" >&6
4822 if test -n "$NM"; then
4823 ac_cv_prog_NM="$NM" # Let the user override the test.
4825 ac_save_IFS=$IFS; IFS=$ac_path_separator
4827 for ac_dir in $ac_dummy; do
4829 test -z "$ac_dir" && ac_dir=.
4830 $as_executable_p "$ac_dir/$ac_word" || continue
4831 ac_cv_prog_NM="${ac_tool_prefix}nm"
4832 echo "$as_me:4832: found $ac_dir/$ac_word" >&5
4839 if test -n "$NM"; then
4840 echo "$as_me:4840: result: $NM" >&5
4841 echo "${ECHO_T}$NM" >&6
4843 echo "$as_me:4843: result: no" >&5
4844 echo "${ECHO_T}no" >&6
4848 if test -z "$ac_cv_prog_NM"; then
4850 # Extract the first word of "nm", so it can be a program name with args.
4851 set dummy nm; ac_word=$2
4852 echo "$as_me:4852: checking for $ac_word" >&5
4853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4854 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 if test -n "$ac_ct_NM"; then
4858 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4860 ac_save_IFS=$IFS; IFS=$ac_path_separator
4862 for ac_dir in $ac_dummy; do
4864 test -z "$ac_dir" && ac_dir=.
4865 $as_executable_p "$ac_dir/$ac_word" || continue
4866 ac_cv_prog_ac_ct_NM="nm"
4867 echo "$as_me:4867: found $ac_dir/$ac_word" >&5
4871 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4874 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4875 if test -n "$ac_ct_NM"; then
4876 echo "$as_me:4876: result: $ac_ct_NM" >&5
4877 echo "${ECHO_T}$ac_ct_NM" >&6
4879 echo "$as_me:4879: result: no" >&5
4880 echo "${ECHO_T}no" >&6
4888 if test -n "$ac_tool_prefix"; then
4889 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4890 set dummy ${ac_tool_prefix}ar; ac_word=$2
4891 echo "$as_me:4891: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_prog_AR+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 if test -n "$AR"; then
4897 ac_cv_prog_AR="$AR" # Let the user override the test.
4899 ac_save_IFS=$IFS; IFS=$ac_path_separator
4901 for ac_dir in $ac_dummy; do
4903 test -z "$ac_dir" && ac_dir=.
4904 $as_executable_p "$ac_dir/$ac_word" || continue
4905 ac_cv_prog_AR="${ac_tool_prefix}ar"
4906 echo "$as_me:4906: found $ac_dir/$ac_word" >&5
4913 if test -n "$AR"; then
4914 echo "$as_me:4914: result: $AR" >&5
4915 echo "${ECHO_T}$AR" >&6
4917 echo "$as_me:4917: result: no" >&5
4918 echo "${ECHO_T}no" >&6
4922 if test -z "$ac_cv_prog_AR"; then
4924 # Extract the first word of "ar", so it can be a program name with args.
4925 set dummy ar; ac_word=$2
4926 echo "$as_me:4926: checking for $ac_word" >&5
4927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4928 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 if test -n "$ac_ct_AR"; then
4932 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4934 ac_save_IFS=$IFS; IFS=$ac_path_separator
4936 for ac_dir in $ac_dummy; do
4938 test -z "$ac_dir" && ac_dir=.
4939 $as_executable_p "$ac_dir/$ac_word" || continue
4940 ac_cv_prog_ac_ct_AR="ar"
4941 echo "$as_me:4941: found $ac_dir/$ac_word" >&5
4945 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4948 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4949 if test -n "$ac_ct_AR"; then
4950 echo "$as_me:4950: result: $ac_ct_AR" >&5
4951 echo "${ECHO_T}$ac_ct_AR" >&6
4953 echo "$as_me:4953: result: no" >&5
4954 echo "${ECHO_T}no" >&6
4962 echo "$as_me:4962: checking for options to update archives" >&5
4963 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4964 if test "${cf_cv_ar_flags+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4968 case "$cf_cv_system_name" in
4971 cat >mk_static_lib.sh <<-EOF
4976 exec \$MSVC_BIN -out:"\$out" \$@
4978 chmod +x mk_static_lib.sh
4979 AR=`pwd`/mk_static_lib.sh
4982 cf_cv_ar_flags=unknown
4983 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4986 # check if $ARFLAGS already contains this choice
4987 if test "x$ARFLAGS" != "x" ; then
4988 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4989 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4995 rm -f "conftest.$ac_cv_objext"
4998 cat >"conftest.$ac_ext" <<EOF
4999 #line 4999 "configure"
5000 int testdata[3] = { 123, 456, 789 };
5002 if { (eval echo "$as_me:5002: \"$ac_compile\"") >&5
5003 (eval $ac_compile) 2>&5
5005 echo "$as_me:5005: \$? = $ac_status" >&5
5006 (exit "$ac_status"); } ; then
5007 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
5008 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null
5009 if test -f conftest.a ; then
5010 cf_cv_ar_flags="$cf_ar_flags"
5014 test -n "$verbose" && echo " cannot compile test-program" 1>&6
5016 echo "${as_me:-configure}:5016: testing cannot compile test-program ..." 1>&5
5021 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext"
5026 echo "$as_me:5026: result: $cf_cv_ar_flags" >&5
5027 echo "${ECHO_T}$cf_cv_ar_flags" >&6
5029 if test -n "$ARFLAGS" ; then
5030 if test -n "$cf_cv_ar_flags" ; then
5031 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
5034 ARFLAGS=$cf_cv_ar_flags
5037 echo "$as_me:5037: checking if you have specified an install-prefix" >&5
5038 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
5040 # Check whether --with-install-prefix or --without-install-prefix was given.
5041 if test "${with_install_prefix+set}" = set; then
5042 withval="$with_install_prefix"
5046 (*) DESTDIR="$withval"
5050 echo "$as_me:5050: result: $DESTDIR" >&5
5051 echo "${ECHO_T}$DESTDIR" >&6
5053 ###############################################################################
5055 # If we're cross-compiling, allow the user to override the tools and their
5056 # options. The configure script is oriented toward identifying the host
5057 # compiler, etc., but we need a build compiler to generate parts of the source.
5059 case "$cf_cv_system_name" in
5061 LDFLAGS="$LDFLAGS user32.lib"
5066 if test "$cross_compiling" = yes ; then
5068 # defaults that we might want to override
5069 : ${BUILD_CFLAGS:=''}
5070 : ${BUILD_CPPFLAGS:=''}
5071 : ${BUILD_LDFLAGS:=''}
5073 : ${BUILD_EXEEXT:='$x'}
5074 : ${BUILD_OBJEXT:='o'}
5076 # Check whether --with-build-cc or --without-build-cc was given.
5077 if test "${with_build_cc+set}" = set; then
5078 withval="$with_build_cc"
5081 for ac_prog in gcc clang c99 c89 cc cl
5083 # Extract the first word of "$ac_prog", so it can be a program name with args.
5084 set dummy $ac_prog; ac_word=$2
5085 echo "$as_me:5085: checking for $ac_word" >&5
5086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5087 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 if test -n "$BUILD_CC"; then
5091 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5093 ac_save_IFS=$IFS; IFS=$ac_path_separator
5095 for ac_dir in $ac_dummy; do
5097 test -z "$ac_dir" && ac_dir=.
5098 $as_executable_p "$ac_dir/$ac_word" || continue
5099 ac_cv_prog_BUILD_CC="$ac_prog"
5100 echo "$as_me:5100: found $ac_dir/$ac_word" >&5
5106 BUILD_CC=$ac_cv_prog_BUILD_CC
5107 if test -n "$BUILD_CC"; then
5108 echo "$as_me:5108: result: $BUILD_CC" >&5
5109 echo "${ECHO_T}$BUILD_CC" >&6
5111 echo "$as_me:5111: result: no" >&5
5112 echo "${ECHO_T}no" >&6
5115 test -n "$BUILD_CC" && break
5117 test -n "$BUILD_CC" || BUILD_CC="none"
5120 echo "$as_me:5120: checking for native build C compiler" >&5
5121 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
5122 echo "$as_me:5122: result: $BUILD_CC" >&5
5123 echo "${ECHO_T}$BUILD_CC" >&6
5125 echo "$as_me:5125: checking for native build C preprocessor" >&5
5126 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
5128 # Check whether --with-build-cpp or --without-build-cpp was given.
5129 if test "${with_build_cpp+set}" = set; then
5130 withval="$with_build_cpp"
5131 BUILD_CPP="$withval"
5133 BUILD_CPP='${BUILD_CC} -E'
5135 echo "$as_me:5135: result: $BUILD_CPP" >&5
5136 echo "${ECHO_T}$BUILD_CPP" >&6
5138 echo "$as_me:5138: checking for native build C flags" >&5
5139 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
5141 # Check whether --with-build-cflags or --without-build-cflags was given.
5142 if test "${with_build_cflags+set}" = set; then
5143 withval="$with_build_cflags"
5144 BUILD_CFLAGS="$withval"
5146 echo "$as_me:5146: result: $BUILD_CFLAGS" >&5
5147 echo "${ECHO_T}$BUILD_CFLAGS" >&6
5149 echo "$as_me:5149: checking for native build C preprocessor-flags" >&5
5150 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
5152 # Check whether --with-build-cppflags or --without-build-cppflags was given.
5153 if test "${with_build_cppflags+set}" = set; then
5154 withval="$with_build_cppflags"
5155 BUILD_CPPFLAGS="$withval"
5157 echo "$as_me:5157: result: $BUILD_CPPFLAGS" >&5
5158 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
5160 echo "$as_me:5160: checking for native build linker-flags" >&5
5161 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
5163 # Check whether --with-build-ldflags or --without-build-ldflags was given.
5164 if test "${with_build_ldflags+set}" = set; then
5165 withval="$with_build_ldflags"
5166 BUILD_LDFLAGS="$withval"
5168 echo "$as_me:5168: result: $BUILD_LDFLAGS" >&5
5169 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
5171 echo "$as_me:5171: checking for native build linker-libraries" >&5
5172 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
5174 # Check whether --with-build-libs or --without-build-libs was given.
5175 if test "${with_build_libs+set}" = set; then
5176 withval="$with_build_libs"
5177 BUILD_LIBS="$withval"
5179 echo "$as_me:5179: result: $BUILD_LIBS" >&5
5180 echo "${ECHO_T}$BUILD_LIBS" >&6
5182 # this assumes we're on Unix.
5186 : ${BUILD_CC:='${CC}'}
5188 if { test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}'; } ; then
5189 { { echo "$as_me:5189: error: Cross-build requires two compilers.
5190 Use --with-build-cc to specify the native compiler." >&5
5191 echo "$as_me: error: Cross-build requires two compilers.
5192 Use --with-build-cc to specify the native compiler." >&2;}
5193 { (exit 1); exit 1; }; }
5197 : ${BUILD_CC:='${CC}'}
5198 : ${BUILD_CPP:='${CPP}'}
5199 : ${BUILD_CFLAGS:='${CFLAGS}'}
5200 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
5201 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
5202 : ${BUILD_LIBS:='${LIBS}'}
5203 : ${BUILD_EXEEXT:='$x'}
5204 : ${BUILD_OBJEXT:='o'}
5207 ###############################################################################
5209 ### Options to allow the user to specify the set of libraries which are used.
5210 ### Use "--without-normal --with-shared" to allow the default model to be
5211 ### shared, for example.
5214 echo "$as_me:5214: checking if libtool -version-number should be used" >&5
5215 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5217 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5218 if test "${enable_libtool_version+set}" = set; then
5219 enableval="$enable_libtool_version"
5220 test "$enableval" != no && enableval=yes
5221 if test "$enableval" != "yes" ; then
5222 cf_libtool_version=no
5224 cf_libtool_version=yes
5228 cf_libtool_version=yes
5231 echo "$as_me:5231: result: $cf_libtool_version" >&5
5232 echo "${ECHO_T}$cf_libtool_version" >&6
5234 if test "$cf_libtool_version" = yes ; then
5235 LIBTOOL_VERSION="-version-number"
5237 LIBTOOL_VERSION="-version-info"
5240 { echo "$as_me:5240: WARNING: VERSION was not set" >&5
5241 echo "$as_me: WARNING: VERSION was not set" >&2;}
5244 ABI_VERSION="$VERSION"
5245 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5247 echo "${as_me:-configure}:5247: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5251 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5252 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5254 echo "${as_me:-configure}:5254: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5258 { echo "$as_me:5258: WARNING: unexpected VERSION value: $VERSION" >&5
5259 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5266 # common library maintenance symbols that are convenient for libtool scripts:
5267 LIB_CREATE='${AR} -cr'
5268 LIB_OBJECT='${OBJECTS}'
5272 # symbols used to prop libtool up to enable it to determine what it should be
5280 echo "$as_me:5280: checking if you want to build libraries with libtool" >&5
5281 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5283 # Check whether --with-libtool or --without-libtool was given.
5284 if test "${with_libtool+set}" = set; then
5285 withval="$with_libtool"
5286 with_libtool=$withval
5290 echo "$as_me:5290: result: $with_libtool" >&5
5291 echo "${ECHO_T}$with_libtool" >&6
5292 if test "$with_libtool" != "no"; then
5294 if test "$with_libtool" != "yes" ; then
5296 if test "x$prefix" != xNONE; then
5297 cf_path_syntax="$prefix"
5299 cf_path_syntax="$ac_default_prefix"
5302 case ".$with_libtool" in
5307 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5309 (.\$\{*prefix\}*|.\$\{*dir\}*)
5310 eval with_libtool="$with_libtool"
5311 case ".$with_libtool" in
5313 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5318 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5321 { { echo "$as_me:5321: error: expected a pathname, not \"$with_libtool\"" >&5
5322 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5323 { (exit 1); exit 1; }; }
5327 LIBTOOL=$with_libtool
5329 if test -n "$ac_tool_prefix"; then
5330 for ac_prog in libtool glibtool
5332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5334 echo "$as_me:5334: checking for $ac_word" >&5
5335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5336 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 if test -n "$LIBTOOL"; then
5340 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5342 ac_save_IFS=$IFS; IFS=$ac_path_separator
5344 for ac_dir in $ac_dummy; do
5346 test -z "$ac_dir" && ac_dir=.
5347 $as_executable_p "$ac_dir/$ac_word" || continue
5348 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5349 echo "$as_me:5349: found $ac_dir/$ac_word" >&5
5355 LIBTOOL=$ac_cv_prog_LIBTOOL
5356 if test -n "$LIBTOOL"; then
5357 echo "$as_me:5357: result: $LIBTOOL" >&5
5358 echo "${ECHO_T}$LIBTOOL" >&6
5360 echo "$as_me:5360: result: no" >&5
5361 echo "${ECHO_T}no" >&6
5364 test -n "$LIBTOOL" && break
5367 if test -z "$LIBTOOL"; then
5368 ac_ct_LIBTOOL=$LIBTOOL
5369 for ac_prog in libtool glibtool
5371 # Extract the first word of "$ac_prog", so it can be a program name with args.
5372 set dummy $ac_prog; ac_word=$2
5373 echo "$as_me:5373: checking for $ac_word" >&5
5374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5375 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 if test -n "$ac_ct_LIBTOOL"; then
5379 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5381 ac_save_IFS=$IFS; IFS=$ac_path_separator
5383 for ac_dir in $ac_dummy; do
5385 test -z "$ac_dir" && ac_dir=.
5386 $as_executable_p "$ac_dir/$ac_word" || continue
5387 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5388 echo "$as_me:5388: found $ac_dir/$ac_word" >&5
5394 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5395 if test -n "$ac_ct_LIBTOOL"; then
5396 echo "$as_me:5396: result: $ac_ct_LIBTOOL" >&5
5397 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5399 echo "$as_me:5399: result: no" >&5
5400 echo "${ECHO_T}no" >&6
5403 test -n "$ac_ct_LIBTOOL" && break
5405 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5407 LIBTOOL=$ac_ct_LIBTOOL
5410 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5412 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.].*//'`
5414 cf_cv_libtool_version=
5416 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5418 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5421 unset ac_cv_prog_ac_ct_LIBTOOL
5425 if test -n "$ac_tool_prefix"; then
5426 for ac_prog in glibtool
5428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5429 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5430 echo "$as_me:5430: checking for $ac_word" >&5
5431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5432 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 if test -n "$LIBTOOL"; then
5436 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5438 ac_save_IFS=$IFS; IFS=$ac_path_separator
5440 for ac_dir in $ac_dummy; do
5442 test -z "$ac_dir" && ac_dir=.
5443 $as_executable_p "$ac_dir/$ac_word" || continue
5444 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5445 echo "$as_me:5445: found $ac_dir/$ac_word" >&5
5451 LIBTOOL=$ac_cv_prog_LIBTOOL
5452 if test -n "$LIBTOOL"; then
5453 echo "$as_me:5453: result: $LIBTOOL" >&5
5454 echo "${ECHO_T}$LIBTOOL" >&6
5456 echo "$as_me:5456: result: no" >&5
5457 echo "${ECHO_T}no" >&6
5460 test -n "$LIBTOOL" && break
5463 if test -z "$LIBTOOL"; then
5464 ac_ct_LIBTOOL=$LIBTOOL
5465 for ac_prog in glibtool
5467 # Extract the first word of "$ac_prog", so it can be a program name with args.
5468 set dummy $ac_prog; ac_word=$2
5469 echo "$as_me:5469: checking for $ac_word" >&5
5470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5471 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 if test -n "$ac_ct_LIBTOOL"; then
5475 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5477 ac_save_IFS=$IFS; IFS=$ac_path_separator
5479 for ac_dir in $ac_dummy; do
5481 test -z "$ac_dir" && ac_dir=.
5482 $as_executable_p "$ac_dir/$ac_word" || continue
5483 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5484 echo "$as_me:5484: found $ac_dir/$ac_word" >&5
5490 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5491 if test -n "$ac_ct_LIBTOOL"; then
5492 echo "$as_me:5492: result: $ac_ct_LIBTOOL" >&5
5493 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5495 echo "$as_me:5495: result: no" >&5
5496 echo "${ECHO_T}no" >&6
5499 test -n "$ac_ct_LIBTOOL" && break
5501 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5503 LIBTOOL=$ac_ct_LIBTOOL
5506 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5508 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.].*//'`
5510 cf_cv_libtool_version=
5512 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5516 if test -z "$LIBTOOL" ; then
5517 { { echo "$as_me:5517: error: Cannot find libtool" >&5
5518 echo "$as_me: error: Cannot find libtool" >&2;}
5519 { (exit 1); exit 1; }; }
5521 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5522 LIB_OBJECT='${OBJECTS:.o=.lo}'
5524 LIB_CLEAN='${LIBTOOL} --mode=clean'
5525 LIB_COMPILE='${LIBTOOL} --mode=compile'
5526 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5527 LIB_INSTALL='${LIBTOOL} --mode=install'
5528 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5531 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5533 echo "$as_me:5533: checking version of $LIBTOOL" >&5
5534 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5536 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5538 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
5540 cf_cv_libtool_version=
5542 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5544 echo "$as_me:5544: result: $cf_cv_libtool_version" >&5
5545 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5546 if test -n "$cf_cv_libtool_version"
5548 cf_check_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' -e 's,[()],...,g' -e 's,[ ],-,g' -e '2,$d'`
5549 case "x$cf_check_libtool_version" in
5550 (*...GNU-libtool...*)
5553 { { echo "$as_me:5553: error: This is not GNU libtool" >&5
5554 echo "$as_me: error: This is not GNU libtool" >&2;}
5555 { (exit 1); exit 1; }; }
5559 { { echo "$as_me:5559: error: No version found for $LIBTOOL" >&5
5560 echo "$as_me: error: No version found for $LIBTOOL" >&2;}
5561 { (exit 1); exit 1; }; }
5564 { { echo "$as_me:5564: error: GNU libtool has not been found" >&5
5565 echo "$as_me: error: GNU libtool has not been found" >&2;}
5566 { (exit 1); exit 1; }; }
5569 # special hack to add -no-undefined (which libtool should do for itself)
5571 case "$cf_cv_system_name" in
5572 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5573 LT_UNDEF=-no-undefined
5577 # special hack to add --tag option for C++ compiler
5578 case "$cf_cv_libtool_version" in
5579 (1.[5-9]*|[2-9].[0-9.a-z]*)
5580 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5581 LIBTOOL="$LIBTOOL --tag=CC"
5584 LIBTOOL_CXX="$LIBTOOL"
5592 test -z "$LIBTOOL" && ECHO_LT=
5594 if test "$with_libtool" != "no" ; then
5596 cf_list_models="$cf_list_models libtool"
5600 echo "$as_me:5600: checking if you want to build shared libraries" >&5
5601 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5603 # Check whether --with-shared or --without-shared was given.
5604 if test "${with_shared+set}" = set; then
5605 withval="$with_shared"
5606 with_shared=$withval
5610 echo "$as_me:5610: result: $with_shared" >&5
5611 echo "${ECHO_T}$with_shared" >&6
5612 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5614 echo "$as_me:5614: checking if you want to build static libraries" >&5
5615 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5617 # Check whether --with-normal or --without-normal was given.
5618 if test "${with_normal+set}" = set; then
5619 withval="$with_normal"
5620 with_normal=$withval
5624 echo "$as_me:5624: result: $with_normal" >&5
5625 echo "${ECHO_T}$with_normal" >&6
5626 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5628 echo "$as_me:5628: checking if you want to build debug libraries" >&5
5629 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5631 # Check whether --with-debug or --without-debug was given.
5632 if test "${with_debug+set}" = set; then
5633 withval="$with_debug"
5638 echo "$as_me:5638: result: $with_debug" >&5
5639 echo "${ECHO_T}$with_debug" >&6
5640 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5642 echo "$as_me:5642: checking if you want to build profiling libraries" >&5
5643 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5645 # Check whether --with-profile or --without-profile was given.
5646 if test "${with_profile+set}" = set; then
5647 withval="$with_profile"
5648 with_profile=$withval
5652 echo "$as_me:5652: result: $with_profile" >&5
5653 echo "${ECHO_T}$with_profile" >&6
5654 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5658 if test "X$cf_with_cxx_binding" != Xno; then
5659 if test "x$with_shared" = "xyes"; then
5660 echo "$as_me:5660: checking if you want to build C++ shared libraries" >&5
5661 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5663 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5664 if test "${with_cxx_shared+set}" = set; then
5665 withval="$with_cxx_shared"
5666 with_shared_cxx=$withval
5670 echo "$as_me:5670: result: $with_shared_cxx" >&5
5671 echo "${ECHO_T}$with_shared_cxx" >&6
5675 ###############################################################################
5677 echo "$as_me:5677: checking for specified models" >&5
5678 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5679 test -z "$cf_list_models" && cf_list_models=normal
5680 test "$with_libtool" != "no" && cf_list_models=libtool
5681 echo "$as_me:5681: result: $cf_list_models" >&5
5682 echo "${ECHO_T}$cf_list_models" >&6
5684 ### Use the first model as the default, and save its suffix for use in building
5685 ### up test-applications.
5686 echo "$as_me:5686: checking for default model" >&5
5687 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5688 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5689 echo "$as_me:5689: result: $DFT_LWR_MODEL" >&5
5690 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5692 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5703 echo "$as_me:5703: checking if you want to have a library-prefix" >&5
5704 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5706 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5707 if test "${with_lib_prefix+set}" = set; then
5708 withval="$with_lib_prefix"
5709 with_lib_prefix=$withval
5711 with_lib_prefix=auto
5713 echo "$as_me:5713: result: $with_lib_prefix" >&5
5714 echo "${ECHO_T}$with_lib_prefix" >&6
5716 if test "$with_lib_prefix" = auto
5719 case "$cf_cv_system_name" in
5721 if test "$DFT_LWR_MODEL" = libtool; then
5730 (*) LIB_PREFIX='lib'
5733 cf_prefix=$LIB_PREFIX
5735 elif test "$with_lib_prefix" = no
5739 LIB_PREFIX=$with_lib_prefix
5744 echo "$as_me:5744: checking for PATH separator" >&5
5745 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5746 case "$cf_cv_system_name" in
5747 (os2*) PATH_SEPARATOR=';' ;;
5748 (*) ${PATH_SEPARATOR:=':'} ;;
5751 echo "$as_me:5751: result: $PATH_SEPARATOR" >&5
5752 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5754 ###############################################################################
5756 echo "$as_me:5756: checking if you want to build a separate terminfo library" >&5
5757 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5759 # Check whether --with-termlib or --without-termlib was given.
5760 if test "${with_termlib+set}" = set; then
5761 withval="$with_termlib"
5762 with_termlib=$withval
5766 echo "$as_me:5766: result: $with_termlib" >&5
5767 echo "${ECHO_T}$with_termlib" >&6
5769 echo "$as_me:5769: checking if you want to build a separate tic library" >&5
5770 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5772 # Check whether --with-ticlib or --without-ticlib was given.
5773 if test "${with_ticlib+set}" = set; then
5774 withval="$with_ticlib"
5775 with_ticlib=$withval
5779 echo "$as_me:5779: result: $with_ticlib" >&5
5780 echo "${ECHO_T}$with_ticlib" >&6
5782 if test X"$CC_G_OPT" = X"" ; then
5784 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5787 if test X"$CXX_G_OPT" = X"" ; then
5789 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5792 echo "$as_me:5792: checking for default loader flags" >&5
5793 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5794 case "$DFT_LWR_MODEL" in
5795 (libtool) LD_MODEL='' ;;
5796 (normal) LD_MODEL='' ;;
5797 (debug) LD_MODEL=$CC_G_OPT ;;
5798 (profile) LD_MODEL='-pg';;
5799 (shared) LD_MODEL='' ;;
5801 echo "$as_me:5801: result: $LD_MODEL" >&5
5802 echo "${ECHO_T}$LD_MODEL" >&6
5804 case "$DFT_LWR_MODEL" in
5807 echo "$as_me:5807: checking if rpath option should be used" >&5
5808 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5810 # Check whether --enable-rpath or --disable-rpath was given.
5811 if test "${enable_rpath+set}" = set; then
5812 enableval="$enable_rpath"
5813 cf_cv_enable_rpath=$enableval
5815 cf_cv_enable_rpath=no
5817 echo "$as_me:5817: result: $cf_cv_enable_rpath" >&5
5818 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5820 echo "$as_me:5820: checking if shared libraries should be relinked during install" >&5
5821 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5823 # Check whether --enable-relink or --disable-relink was given.
5824 if test "${enable_relink+set}" = set; then
5825 enableval="$enable_relink"
5826 cf_cv_do_relink=$enableval
5830 echo "$as_me:5830: result: $cf_cv_do_relink" >&5
5831 echo "${ECHO_T}$cf_cv_do_relink" >&6
5835 # we will build libraries one-level down.
5839 if test "x$cf_cv_enable_rpath" != xno
5841 echo "$as_me:5841: checking for an rpath option" >&5
5842 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5843 case "$cf_cv_system_name" in
5845 if test "$GCC" = yes; then
5846 LD_RPATH_OPT="-Wl,-rpath,"
5848 LD_RPATH_OPT="-rpath "
5851 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5852 LD_RPATH_OPT="-Wl,-rpath,"
5854 (openbsd[2-9].*|mirbsd*)
5855 LD_RPATH_OPT="-Wl,-rpath,"
5858 LD_RPATH_OPT="-rpath "
5861 LD_RPATH_OPT="-Wl,-rpath,"
5864 LD_RPATH_OPT="-rpath "
5872 echo "$as_me:5872: result: $LD_RPATH_OPT" >&5
5873 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5875 case "x$LD_RPATH_OPT" in
5877 echo "$as_me:5877: checking if we need a space after rpath option" >&5
5878 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5879 cf_save_LIBS="$LIBS"
5884 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
5886 for cf_add_1lib in $cf_add_0lib; do
5887 for cf_add_2lib in $cf_add_libs; do
5888 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
5893 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
5897 cat >"conftest.$ac_ext" <<_ACEOF
5898 #line 5898 "configure"
5899 #include "confdefs.h"
5909 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
5910 if { (eval echo "$as_me:5910: \"$ac_link\"") >&5
5911 (eval $ac_link) 2>&5
5913 echo "$as_me:5913: \$? = $ac_status" >&5
5914 (exit "$ac_status"); } &&
5915 { ac_try='test -s "conftest$ac_exeext"'
5916 { (eval echo "$as_me:5916: \"$ac_try\"") >&5
5919 echo "$as_me:5919: \$? = $ac_status" >&5
5920 (exit "$ac_status"); }; }; then
5923 echo "$as_me: failed program was:" >&5
5924 cat "conftest.$ac_ext" >&5
5927 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
5928 LIBS="$cf_save_LIBS"
5929 echo "$as_me:5929: result: $cf_rpath_space" >&5
5930 echo "${ECHO_T}$cf_rpath_space" >&6
5931 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5940 INSTALL_LIB="-m 644"
5941 : ${rel_builddir:=.}
5947 cf_cv_do_symlinks=no
5949 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5951 echo "$as_me:5951: checking if release/abi version should be used for shared libs" >&5
5952 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5954 # Check whether --with-shlib-version or --without-shlib-version was given.
5955 if test "${with_shlib_version+set}" = set; then
5956 withval="$with_shlib_version"
5957 test -z "$withval" && withval=auto
5960 cf_cv_shlib_version=auto
5963 cf_cv_shlib_version=$withval
5966 echo "$as_me:5966: result: $withval" >&5
5967 echo "${ECHO_T}$withval" >&6
5968 { { echo "$as_me:5968: error: option value must be one of: rel, abi, or auto" >&5
5969 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
5970 { (exit 1); exit 1; }; }
5975 cf_cv_shlib_version=auto
5977 echo "$as_me:5977: result: $cf_cv_shlib_version" >&5
5978 echo "${ECHO_T}$cf_cv_shlib_version" >&6
5983 # Some less-capable ports of gcc support only -fpic
5987 if test "$GCC" = yes
5991 case "$cf_cv_system_name" in
5992 (*linux*) # e.g., PGI compiler
5998 if test "$cf_try_fPIC" = yes
6000 echo "$as_me:6000: checking which $CC option to use" >&5
6001 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6002 cf_save_CFLAGS="$CFLAGS"
6003 for CC_SHARED_OPTS in -fPIC -fpic ''
6005 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6006 cat >"conftest.$ac_ext" <<_ACEOF
6007 #line 6007 "configure"
6008 #include "confdefs.h"
6018 rm -f "conftest.$ac_objext"
6019 if { (eval echo "$as_me:6019: \"$ac_compile\"") >&5
6020 (eval $ac_compile) 2>&5
6022 echo "$as_me:6022: \$? = $ac_status" >&5
6023 (exit "$ac_status"); } &&
6024 { ac_try='test -s "conftest.$ac_objext"'
6025 { (eval echo "$as_me:6025: \"$ac_try\"") >&5
6028 echo "$as_me:6028: \$? = $ac_status" >&5
6029 (exit "$ac_status"); }; }; then
6032 echo "$as_me: failed program was:" >&5
6033 cat "conftest.$ac_ext" >&5
6035 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6037 echo "$as_me:6037: result: $CC_SHARED_OPTS" >&5
6038 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6039 CFLAGS="$cf_save_CFLAGS"
6042 cf_cv_shlib_version_infix=no
6044 case "$cf_cv_system_name" in
6045 (aix4.3-9*|aix[5-7]*)
6046 if test "$GCC" = yes; then
6047 CC_SHARED_OPTS='-Wl,-brtl'
6048 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6050 CC_SHARED_OPTS='-brtl'
6051 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6052 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6056 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6060 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6061 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6062 cf_cv_shlib_version=cygdll
6063 cf_cv_shlib_version_infix=cygdll
6066 cat >mk_shared_lib.sh <<-CF_EOF
6069 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6072 Linking shared library
6073 ** SHARED_LIB \$SHARED_LIB
6074 ** IMPORT_LIB \$IMPORT_LIB
6076 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6078 chmod +x mk_shared_lib.sh
6082 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6083 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6084 cf_cv_shlib_version=msysdll
6085 cf_cv_shlib_version_infix=msysdll
6088 cat >mk_shared_lib.sh <<-CF_EOF
6091 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6094 Linking shared library
6095 ** SHARED_LIB \$SHARED_LIB
6096 ** IMPORT_LIB \$IMPORT_LIB
6098 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6100 chmod +x mk_shared_lib.sh
6103 cf_try_cflags="no-cpp-precomp"
6104 CC_SHARED_OPTS="-dynamic"
6105 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6106 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6107 cf_cv_shlib_version_infix=yes
6108 echo "$as_me:6108: checking if ld -search_paths_first works" >&5
6109 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6110 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 cf_save_LDFLAGS=$LDFLAGS
6115 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6116 cat >"conftest.$ac_ext" <<_ACEOF
6117 #line 6117 "configure"
6118 #include "confdefs.h"
6128 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6129 if { (eval echo "$as_me:6129: \"$ac_link\"") >&5
6130 (eval $ac_link) 2>&5
6132 echo "$as_me:6132: \$? = $ac_status" >&5
6133 (exit "$ac_status"); } &&
6134 { ac_try='test -s "conftest$ac_exeext"'
6135 { (eval echo "$as_me:6135: \"$ac_try\"") >&5
6138 echo "$as_me:6138: \$? = $ac_status" >&5
6139 (exit "$ac_status"); }; }; then
6140 cf_cv_ldflags_search_paths_first=yes
6142 echo "$as_me: failed program was:" >&5
6143 cat "conftest.$ac_ext" >&5
6144 cf_cv_ldflags_search_paths_first=no
6146 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6147 LDFLAGS=$cf_save_LDFLAGS
6149 echo "$as_me:6149: result: $cf_cv_ldflags_search_paths_first" >&5
6150 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6151 if test "$cf_cv_ldflags_search_paths_first" = yes; then
6152 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6156 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6157 if test "$GCC" != yes; then
6160 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
6161 INSTALL_LIB="-m 555"
6164 # (tested with gcc 2.7.2 -- I don't have c89)
6165 if test "$GCC" = yes; then
6166 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6169 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6171 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
6172 # HP-UX shared libraries must be executable, and should be
6173 # readonly to exploit a quirk in the memory manager.
6174 INSTALL_LIB="-m 555"
6177 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6178 if test "$cf_cv_shlib_version" = rel; then
6179 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6181 cf_shared_soname='`basename $@`'
6184 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
6187 if test "$cf_cv_enable_rpath" = yes ; then
6188 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6190 # tested with IRIX 5.2 and 'cc'.
6191 if test "$GCC" != yes; then
6192 CC_SHARED_OPTS='-KPIC'
6193 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
6195 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
6197 cf_cv_rm_so_locs=yes
6199 (linux*|gnu*|k*bsd*-gnu)
6200 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6201 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6202 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6204 if test "$cf_cv_enable_rpath" = yes ; then
6205 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6208 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6209 if test "$cf_cv_shlib_version" = rel; then
6210 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6212 cf_cv_shared_soname='`basename $@`'
6215 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6218 cf_cv_shlib_version=msvcdll
6219 cf_cv_shlib_version_infix=msvcdll
6222 if test "$DFT_LWR_MODEL" = "shared" ; then
6223 LOCAL_LDFLAGS="-link -dll"
6224 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6225 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
6228 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
6229 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
6230 cat >mk_shared_lib.sh <<-CF_EOF
6233 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
6238 Linking shared library
6239 ** SHARED LIB \$SHARED_LIB
6240 ** IMPORT_LIB \$IMPORT_LIB
6242 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
6243 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
6244 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
6246 chmod +x mk_shared_lib.sh
6247 cat >mk_prog.sh <<-CF_EOF
6250 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
6253 ldopts=("/subsystem:console")
6256 while test \$# -gt 0; do
6259 # ignore -link argument
6262 # ignore runtime-library option
6277 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
6280 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
6286 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
6287 ldopts+=("\${linkarg}")
6295 ldopts+=("-out:\$1")
6304 if [ "\$isdll" -ne 0 ]; then
6305 for lib in \${libs[*]}; do
6306 ldopts+=("\$lib.dll.lib")
6309 for lib in \${libs[*]}; do
6310 ldopts+=("\$lib.lib")
6315 ** ld options: "\${ldopts[@]}"
6317 exec \$LD \${ldopts[@]}
6320 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
6321 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
6324 cf_cv_shlib_version=mingw
6325 cf_cv_shlib_version_infix=mingw
6328 if test "$DFT_LWR_MODEL" = "shared" ; then
6329 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6330 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6331 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6334 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6335 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6336 cat >mk_shared_lib.sh <<-CF_EOF
6339 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6342 Linking shared library
6343 ** SHARED_LIB \$SHARED_LIB
6344 ** IMPORT_LIB \$IMPORT_LIB
6346 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6348 chmod +x mk_shared_lib.sh
6350 (openbsd[2-9].*|mirbsd*)
6351 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6352 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6353 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6355 if test "$cf_cv_enable_rpath" = yes ; then
6356 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6358 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6360 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6361 if test "$cf_cv_shlib_version" = rel; then
6362 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6364 cf_cv_shared_soname='`basename $@`'
6367 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6371 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
6375 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
6377 (nto-qnx*|openbsd*|freebsd[12].*)
6378 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6379 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6380 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6382 (dragonfly*|freebsd*)
6383 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6384 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6385 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6386 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6387 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6390 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6391 if test "$cf_cv_shlib_version" = rel; then
6392 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6394 cf_cv_shared_soname='`basename $@`'
6397 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6400 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6401 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6402 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6403 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6404 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6405 if test "$cf_cv_shlib_version" = auto; then
6406 if test -f /usr/libexec/ld.elf_so; then
6407 cf_cv_shlib_version=abi
6409 cf_cv_shlib_version=rel
6413 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6414 if test "$cf_cv_shlib_version" = rel; then
6415 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6417 cf_cv_shared_soname='`basename $@`'
6420 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6422 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
6426 # tested with OSF/1 V3.2 and 'cc'
6427 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6428 # link with shared libs).
6429 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6432 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6435 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6436 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6437 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6438 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6440 cf_cv_rm_so_locs=yes
6442 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6443 # tested with osr5.0.5
6444 if test "$GCC" != yes; then
6445 CC_SHARED_OPTS='-belf -KPIC'
6447 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6448 if test "$cf_cv_enable_rpath" = yes ; then
6449 # only way is to set LD_RUN_PATH but no switch for it
6452 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6453 LINK_PROGS='LD_RUN_PATH=${libdir}'
6454 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6457 # tested with SunOS 4.1.1 and gcc 2.7.0
6458 if test "$GCC" != yes; then
6459 CC_SHARED_OPTS='-KPIC'
6461 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
6462 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6465 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6466 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6467 if test "$DFT_LWR_MODEL" = "shared" ; then
6468 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6469 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6471 if test "$cf_cv_enable_rpath" = yes ; then
6472 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6475 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6476 if test "$cf_cv_shlib_version" = rel; then
6477 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6479 cf_cv_shared_soname='`basename $@`'
6482 if test "$GCC" != yes; then
6483 cf_save_CFLAGS="$CFLAGS"
6484 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6486 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6487 cat >"conftest.$ac_ext" <<_ACEOF
6488 #line 6488 "configure"
6489 #include "confdefs.h"
6499 rm -f "conftest.$ac_objext"
6500 if { (eval echo "$as_me:6500: \"$ac_compile\"") >&5
6501 (eval $ac_compile) 2>&5
6503 echo "$as_me:6503: \$? = $ac_status" >&5
6504 (exit "$ac_status"); } &&
6505 { ac_try='test -s "conftest.$ac_objext"'
6506 { (eval echo "$as_me:6506: \"$ac_try\"") >&5
6509 echo "$as_me:6509: \$? = $ac_status" >&5
6510 (exit "$ac_status"); }; }; then
6513 echo "$as_me: failed program was:" >&5
6514 cat "conftest.$ac_ext" >&5
6516 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6518 CFLAGS="$cf_save_CFLAGS"
6519 CC_SHARED_OPTS=$cf_shared_opts
6520 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
6522 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6525 (sysv5uw7*|unix_sv*)
6526 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6527 if test "$GCC" != yes; then
6528 CC_SHARED_OPTS='-KPIC'
6530 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
6533 CC_SHARED_OPTS='unknown'
6534 MK_SHARED_LIB='echo unknown'
6538 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6539 case "$cf_cv_shlib_version" in
6541 case "$MK_SHARED_LIB" in
6543 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6546 { echo "$as_me:6546: WARNING: ignored --with-shlib-version" >&5
6547 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6553 if test -n "$cf_try_cflags"
6555 cat > conftest.$ac_ext <<EOF
6556 #line 6556 "${as_me:-configure}"
6558 int main(int argc, char *argv[])
6561 return (argv[argc-1] == 0) ;
6564 cf_save_CFLAGS="$CFLAGS"
6565 for cf_opt in $cf_try_cflags
6567 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6568 echo "$as_me:6568: checking if CFLAGS option -$cf_opt works" >&5
6569 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6570 if { (eval echo "$as_me:6570: \"$ac_compile\"") >&5
6571 (eval $ac_compile) 2>&5
6573 echo "$as_me:6573: \$? = $ac_status" >&5
6574 (exit "$ac_status"); }; then
6575 echo "$as_me:6575: result: yes" >&5
6576 echo "${ECHO_T}yes" >&6
6577 cf_save_CFLAGS="$CFLAGS"
6579 echo "$as_me:6579: result: no" >&5
6580 echo "${ECHO_T}no" >&6
6583 CFLAGS="$cf_save_CFLAGS"
6586 # RPATH_LIST is a colon-separated list of directories
6587 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6588 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6590 test "$cf_cv_rm_so_locs" = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6592 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6594 echo "${as_me:-configure}:6594: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6596 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6598 echo "${as_me:-configure}:6598: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6600 for model in $cf_list_models ; do
6604 echo "$as_me:6604: checking for additional libtool options" >&5
6605 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6607 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6608 if test "${with_libtool_opts+set}" = set; then
6609 withval="$with_libtool_opts"
6610 with_libtool_opts=$withval
6612 with_libtool_opts=no
6614 echo "$as_me:6614: result: $with_libtool_opts" >&5
6615 echo "${ECHO_T}$with_libtool_opts" >&6
6617 case .$with_libtool_opts in
6621 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6625 echo "$as_me:6625: checking if exported-symbols file should be used" >&5
6626 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6628 # Check whether --with-export-syms or --without-export-syms was given.
6629 if test "${with_export_syms+set}" = set; then
6630 withval="$with_export_syms"
6631 with_export_syms=$withval
6635 if test "x$with_export_syms" = xyes
6637 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6640 echo "$as_me:6640: result: $with_export_syms" >&5
6641 echo "${ECHO_T}$with_export_syms" >&6
6642 if test "x$with_export_syms" != xno
6644 EXPORT_SYMS="-export-symbols $with_export_syms"
6650 if test "$CC_SHARED_OPTS" = "unknown"; then
6651 { { echo "$as_me:6651: error: Shared libraries are not supported in this version" >&5
6652 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6653 { (exit 1); exit 1; }; }
6655 # workaround for inept transition to PIE vs PIC...
6656 echo "$as_me:6656: checking if current CFLAGS link properly" >&5
6657 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6658 cat >"conftest.$ac_ext" <<_ACEOF
6659 #line 6659 "configure"
6660 #include "confdefs.h"
6665 printf("Hello work\\n");
6670 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6671 if { (eval echo "$as_me:6671: \"$ac_link\"") >&5
6672 (eval $ac_link) 2>&5
6674 echo "$as_me:6674: \$? = $ac_status" >&5
6675 (exit "$ac_status"); } &&
6676 { ac_try='test -s "conftest$ac_exeext"'
6677 { (eval echo "$as_me:6677: \"$ac_try\"") >&5
6680 echo "$as_me:6680: \$? = $ac_status" >&5
6681 (exit "$ac_status"); }; }; then
6684 echo "$as_me: failed program was:" >&5
6685 cat "conftest.$ac_ext" >&5
6688 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6689 echo "$as_me:6689: result: $cf_cflags_work" >&5
6690 echo "${ECHO_T}$cf_cflags_work" >&6
6691 if test "$cf_cflags_work" = no
6693 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6695 echo "${as_me:-configure}:6695: testing try to work around by appending shared-options ..." 1>&5
6697 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6700 echo "$as_me:6700: checking if versioned-symbols file should be used" >&5
6701 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6703 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6704 if test "${with_versioned_syms+set}" = set; then
6705 withval="$with_versioned_syms"
6706 with_versioned_syms=$withval
6708 with_versioned_syms=no
6710 case "x$with_versioned_syms" in
6712 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6718 test -f "$with_versioned_syms" || { { echo "$as_me:6718: error: expected a filename: $with_versioned_syms" >&5
6719 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6720 { (exit 1); exit 1; }; }
6723 test -f "$with_versioned_syms" || { { echo "$as_me:6723: error: expected a filename: $with_versioned_syms" >&5
6724 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6725 { (exit 1); exit 1; }; }
6726 with_versioned_syms=`pwd`/"$with_versioned_syms"
6729 echo "$as_me:6729: result: $with_versioned_syms" >&5
6730 echo "${ECHO_T}$with_versioned_syms" >&6
6736 if test "x$with_versioned_syms" != xno
6738 RESULTING_SYMS=$with_versioned_syms
6739 case "x$MK_SHARED_LIB" in
6741 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6742 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6743 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6745 echo "${as_me:-configure}:6745: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6749 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6750 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6751 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6753 echo "${as_me:-configure}:6753: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6757 { echo "$as_me:6757: WARNING: this system does not support versioned-symbols" >&5
6758 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6762 # Linux ld can selectively override scope, e.g., of symbols beginning with
6763 # "_" by first declaring some as global, and then using a wildcard to
6764 # declare the others as local. Some other loaders cannot do this. Check
6765 # by constructing a (very) simple shared library and inspecting its
6767 if test "x$VERSIONED_SYMS" != "x"
6769 echo "$as_me:6769: checking if wildcards can be used to selectively omit symbols" >&5
6770 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6776 cat >conftest.ver <<EOF
6805 cat >conftest.$ac_ext <<EOF
6806 #line 6806 "configure"
6807 int _ismissing(void) { return 1; }
6808 int _localf1(void) { return 1; }
6809 int _localf2(void) { return 2; }
6810 int globalf1(void) { return 1; }
6811 int globalf2(void) { return 2; }
6812 int _sublocalf1(void) { return 1; }
6813 int _sublocalf2(void) { return 2; }
6814 int subglobalf1(void) { return 1; }
6815 int subglobalf2(void) { return 2; }
6817 cat >conftest.mk <<EOF
6820 CPPFLAGS=${CPPFLAGS}
6823 VERSIONED_SYMS=${VERSIONED_SYMS}
6824 RESULTING_SYMS=conftest.ver
6825 MK_SHARED_LIB=${MK_SHARED_LIB}
6826 conftest.so: conftest.$ac_cv_objext
6827 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6830 # compile source, make library
6831 if make -f conftest.mk 2>&5 >/dev/null
6833 # test for missing symbol in either Data or Text section
6834 cf_missing="`nm -P conftest.so 2>&5 |${FGREP-fgrep} _ismissing | ${EGREP-egrep} '[ ][DT][ ]'`"
6835 test -n "$cf_missing" && WILDCARD_SYMS=yes
6837 echo "$as_me:6837: result: $WILDCARD_SYMS" >&5
6838 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6847 ### Checks for special libraries, must be done up-front.
6850 echo "$as_me:6850: checking if you want to link with the GPM mouse library" >&5
6851 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
6853 # Check whether --with-gpm or --without-gpm was given.
6854 if test "${with_gpm+set}" = set; then
6860 echo "$as_me:6860: result: $with_gpm" >&5
6861 echo "${ECHO_T}$with_gpm" >&6
6863 if test "$with_gpm" != no ; then
6864 echo "$as_me:6864: checking for gpm.h" >&5
6865 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
6866 if test "${ac_cv_header_gpm_h+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
6869 cat >"conftest.$ac_ext" <<_ACEOF
6870 #line 6870 "configure"
6871 #include "confdefs.h"
6874 if { (eval echo "$as_me:6874: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6875 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6877 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6879 cat conftest.err >&5
6880 echo "$as_me:6880: \$? = $ac_status" >&5
6881 (exit "$ac_status"); } >/dev/null; then
6882 if test -s conftest.err; then
6883 ac_cpp_err=$ac_c_preproc_warn_flag
6890 if test -z "$ac_cpp_err"; then
6891 ac_cv_header_gpm_h=yes
6893 echo "$as_me: failed program was:" >&5
6894 cat "conftest.$ac_ext" >&5
6895 ac_cv_header_gpm_h=no
6897 rm -f conftest.err "conftest.$ac_ext"
6899 echo "$as_me:6899: result: $ac_cv_header_gpm_h" >&5
6900 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
6901 if test "$ac_cv_header_gpm_h" = yes; then
6903 cat >>confdefs.h <<\EOF
6904 #define HAVE_GPM_H 1
6907 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
6908 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
6910 echo "${as_me:-configure}:6910: testing assuming we really have GPM library ..." 1>&5
6912 cat >>confdefs.h <<\EOF
6913 #define HAVE_LIBGPM 1
6918 echo "$as_me:6918: checking for Gpm_Open in -lgpm" >&5
6919 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6920 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 ac_check_lib_save_LIBS=$LIBS
6925 cat >"conftest.$ac_ext" <<_ACEOF
6926 #line 6926 "configure"
6927 #include "confdefs.h"
6929 /* Override any gcc2 internal prototype to avoid an error. */
6933 /* We use char because int might match the return type of a gcc2
6934 builtin and then its argument prototype would still apply. */
6944 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6945 if { (eval echo "$as_me:6945: \"$ac_link\"") >&5
6946 (eval $ac_link) 2>&5
6948 echo "$as_me:6948: \$? = $ac_status" >&5
6949 (exit "$ac_status"); } &&
6950 { ac_try='test -s "conftest$ac_exeext"'
6951 { (eval echo "$as_me:6951: \"$ac_try\"") >&5
6954 echo "$as_me:6954: \$? = $ac_status" >&5
6955 (exit "$ac_status"); }; }; then
6956 ac_cv_lib_gpm_Gpm_Open=yes
6958 echo "$as_me: failed program was:" >&5
6959 cat "conftest.$ac_ext" >&5
6960 ac_cv_lib_gpm_Gpm_Open=no
6962 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6963 LIBS=$ac_check_lib_save_LIBS
6965 echo "$as_me:6965: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6966 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6967 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
6971 if test "$with_gpm" = maybe; then
6972 { echo "$as_me:6972: WARNING: Cannot link with GPM library" >&5
6973 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
6976 { { echo "$as_me:6976: error: Cannot link with GPM library" >&5
6977 echo "$as_me: error: Cannot link with GPM library" >&2;}
6978 { (exit 1); exit 1; }; }
6987 test "$with_gpm" != maybe && { echo "$as_me:6987: WARNING: Cannot find GPM header" >&5
6988 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
6995 if test "$with_gpm" != no ; then
6996 echo "$as_me:6996: checking if you want to load GPM dynamically" >&5
6997 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
6999 # Check whether --with-dlsym or --without-dlsym was given.
7000 if test "${with_dlsym+set}" = set; then
7001 withval="$with_dlsym"
7006 echo "$as_me:7006: result: $with_dlsym" >&5
7007 echo "${ECHO_T}$with_dlsym" >&6
7008 if test "x$with_dlsym" = xyes ; then
7011 echo "$as_me:7011: checking for dlsym" >&5
7012 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
7013 if test "${ac_cv_func_dlsym+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 cat >"conftest.$ac_ext" <<_ACEOF
7017 #line 7017 "configure"
7018 #include "confdefs.h"
7019 #define dlsym autoconf_temporary
7020 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7027 /* We use char because int might match the return type of a gcc2
7028 builtin and then its argument prototype would still apply. */
7035 /* The GNU C library defines stubs for functions which it implements
7036 to always fail with ENOSYS. Some functions are actually named
7037 something starting with __ and the normal name is an alias. */
7038 #if defined (__stub_dlsym) || defined (__stub___dlsym)
7039 #error found stub for dlsym
7047 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7048 if { (eval echo "$as_me:7048: \"$ac_link\"") >&5
7049 (eval $ac_link) 2>&5
7051 echo "$as_me:7051: \$? = $ac_status" >&5
7052 (exit "$ac_status"); } &&
7053 { ac_try='test -s "conftest$ac_exeext"'
7054 { (eval echo "$as_me:7054: \"$ac_try\"") >&5
7057 echo "$as_me:7057: \$? = $ac_status" >&5
7058 (exit "$ac_status"); }; }; then
7059 ac_cv_func_dlsym=yes
7061 echo "$as_me: failed program was:" >&5
7062 cat "conftest.$ac_ext" >&5
7065 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7067 echo "$as_me:7067: result: $ac_cv_func_dlsym" >&5
7068 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
7069 if test "$ac_cv_func_dlsym" = yes; then
7074 echo "$as_me:7074: checking for dlsym in -ldl" >&5
7075 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
7076 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 ac_check_lib_save_LIBS=$LIBS
7081 cat >"conftest.$ac_ext" <<_ACEOF
7082 #line 7082 "configure"
7083 #include "confdefs.h"
7085 /* Override any gcc2 internal prototype to avoid an error. */
7089 /* We use char because int might match the return type of a gcc2
7090 builtin and then its argument prototype would still apply. */
7100 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7101 if { (eval echo "$as_me:7101: \"$ac_link\"") >&5
7102 (eval $ac_link) 2>&5
7104 echo "$as_me:7104: \$? = $ac_status" >&5
7105 (exit "$ac_status"); } &&
7106 { ac_try='test -s "conftest$ac_exeext"'
7107 { (eval echo "$as_me:7107: \"$ac_try\"") >&5
7110 echo "$as_me:7110: \$? = $ac_status" >&5
7111 (exit "$ac_status"); }; }; then
7112 ac_cv_lib_dl_dlsym=yes
7114 echo "$as_me: failed program was:" >&5
7115 cat "conftest.$ac_ext" >&5
7116 ac_cv_lib_dl_dlsym=no
7118 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7119 LIBS=$ac_check_lib_save_LIBS
7121 echo "$as_me:7121: result: $ac_cv_lib_dl_dlsym" >&5
7122 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
7123 if test "$ac_cv_lib_dl_dlsym" = yes; then
7131 if test "$cf_have_dlsym" = yes ; then
7132 test "$cf_have_libdl" = yes && {
7136 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7138 for cf_add_1lib in $cf_add_0lib; do
7139 for cf_add_2lib in $cf_add_libs; do
7140 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7145 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7150 echo "$as_me:7150: checking whether able to link to dl*() functions" >&5
7151 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
7152 cat >"conftest.$ac_ext" <<_ACEOF
7153 #line 7153 "configure"
7154 #include "confdefs.h"
7161 if ((obj = dlopen("filename", 0)) != 0) {
7162 if (dlsym(obj, "symbolname") == 0) {
7170 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7171 if { (eval echo "$as_me:7171: \"$ac_link\"") >&5
7172 (eval $ac_link) 2>&5
7174 echo "$as_me:7174: \$? = $ac_status" >&5
7175 (exit "$ac_status"); } &&
7176 { ac_try='test -s "conftest$ac_exeext"'
7177 { (eval echo "$as_me:7177: \"$ac_try\"") >&5
7180 echo "$as_me:7180: \$? = $ac_status" >&5
7181 (exit "$ac_status"); }; }; then
7183 cat >>confdefs.h <<\EOF
7184 #define HAVE_LIBDL 1
7188 echo "$as_me: failed program was:" >&5
7189 cat "conftest.$ac_ext" >&5
7191 { { echo "$as_me:7191: error: Cannot link test program for libdl" >&5
7192 echo "$as_me: error: Cannot link test program for libdl" >&2;}
7193 { (exit 1); exit 1; }; }
7195 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7196 echo "$as_me:7196: result: ok" >&5
7197 echo "${ECHO_T}ok" >&6
7199 { { echo "$as_me:7199: error: Cannot find dlsym function" >&5
7200 echo "$as_me: error: Cannot find dlsym function" >&2;}
7201 { (exit 1); exit 1; }; }
7204 if test "x$with_gpm" != xyes ; then
7205 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
7207 echo "${as_me:-configure}:7207: testing assuming soname for gpm is $with_gpm ..." 1>&5
7209 cf_cv_gpm_soname="$with_gpm"
7212 echo "$as_me:7212: checking for soname of gpm library" >&5
7213 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
7214 if test "${cf_cv_gpm_soname+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 cf_cv_gpm_soname=unknown
7219 if test "$cross_compiling" != yes ; then
7220 cat >conftest.$ac_ext <<CF_EOF
7224 if (Gpm_Open(0,0)) Gpm_Close();
7225 ${cf_cv_main_return:-return}(0);
7228 cf_save_LIBS="$LIBS"
7233 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7235 for cf_add_1lib in $cf_add_0lib; do
7236 for cf_add_2lib in $cf_add_libs; do
7237 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7242 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7246 if { (eval echo "$as_me:7246: \"$ac_compile\"") >&5
7247 (eval $ac_compile) 2>&5
7249 echo "$as_me:7249: \$? = $ac_status" >&5
7250 (exit "$ac_status"); } ; then
7251 if { (eval echo "$as_me:7251: \"$ac_link\"") >&5
7252 (eval $ac_link) 2>&5
7254 echo "$as_me:7254: \$? = $ac_status" >&5
7255 (exit "$ac_status"); } ; then
7256 cf_cv_gpm_soname="`ldd \"conftest$ac_exeext\" 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | ${FGREP-fgrep} libgpm.`"
7257 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
7261 LIBS="$cf_save_LIBS"
7265 echo "$as_me:7265: result: $cf_cv_gpm_soname" >&5
7266 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
7269 test "$cf_cv_gpm_soname" != "unknown" &&
7270 cat >>confdefs.h <<EOF
7271 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
7274 SHLIB_LIST="-ldl $SHLIB_LIST"
7276 cf_add_libs="$PRIVATE_LIBS"
7279 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7281 for cf_add_1lib in $cf_add_0lib; do
7282 for cf_add_2lib in $cf_add_libs; do
7283 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7288 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7290 PRIVATE_LIBS="$cf_add_libs"
7293 SHLIB_LIST="-lgpm $SHLIB_LIST"
7295 cf_add_libs="$TEST_LIBS"
7298 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7300 for cf_add_1lib in $cf_add_0lib; do
7301 for cf_add_2lib in $cf_add_libs; do
7302 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7307 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7309 TEST_LIBS="$cf_add_libs"
7311 cf_add_libs="$PRIVATE_LIBS"
7314 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7316 for cf_add_1lib in $cf_add_0lib; do
7317 for cf_add_2lib in $cf_add_libs; do
7318 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7323 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7325 PRIVATE_LIBS="$cf_add_libs"
7329 cat >>confdefs.h <<\EOF
7330 #define HAVE_LIBGPM 1
7333 echo "$as_me:7333: checking for Gpm_Wgetch in -lgpm" >&5
7334 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
7335 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 ac_check_lib_save_LIBS=$LIBS
7340 cat >"conftest.$ac_ext" <<_ACEOF
7341 #line 7341 "configure"
7342 #include "confdefs.h"
7344 /* Override any gcc2 internal prototype to avoid an error. */
7348 /* We use char because int might match the return type of a gcc2
7349 builtin and then its argument prototype would still apply. */
7359 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7360 if { (eval echo "$as_me:7360: \"$ac_link\"") >&5
7361 (eval $ac_link) 2>&5
7363 echo "$as_me:7363: \$? = $ac_status" >&5
7364 (exit "$ac_status"); } &&
7365 { ac_try='test -s "conftest$ac_exeext"'
7366 { (eval echo "$as_me:7366: \"$ac_try\"") >&5
7369 echo "$as_me:7369: \$? = $ac_status" >&5
7370 (exit "$ac_status"); }; }; then
7371 ac_cv_lib_gpm_Gpm_Wgetch=yes
7373 echo "$as_me: failed program was:" >&5
7374 cat "conftest.$ac_ext" >&5
7375 ac_cv_lib_gpm_Gpm_Wgetch=no
7377 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7378 LIBS=$ac_check_lib_save_LIBS
7380 echo "$as_me:7380: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
7381 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
7382 if test "$ac_cv_lib_gpm_Gpm_Wgetch" = yes; then
7384 echo "$as_me:7384: checking if GPM is weakly bound to curses library" >&5
7385 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
7386 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 cf_cv_check_gpm_wgetch=unknown
7391 if test "$cross_compiling" != yes ; then
7393 cat >conftest.$ac_ext <<CF_EOF
7398 ${cf_cv_main_return:-return}(0);
7402 cf_save_LIBS="$LIBS"
7403 # This only works if we can look at the symbol table. If a shared
7404 # library is stripped for install, we cannot use that. So we're forced
7405 # to rely on the static library, noting that some packagers may not
7407 LIBS="-static -lgpm -dynamic $LIBS"
7408 if { (eval echo "$as_me:7408: \"$ac_compile\"") >&5
7409 (eval $ac_compile) 2>&5
7411 echo "$as_me:7411: \$? = $ac_status" >&5
7412 (exit "$ac_status"); } ; then
7413 if { (eval echo "$as_me:7413: \"$ac_link\"") >&5
7414 (eval $ac_link) 2>&5
7416 echo "$as_me:7416: \$? = $ac_status" >&5
7417 (exit "$ac_status"); } ; then
7418 cf_cv_check_gpm_wgetch="`nm \"conftest$ac_exeext\" | ${EGREP-egrep} '\<wgetch\>' | ${EGREP-egrep} '\<[vVwW]\>'`"
7419 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
7420 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
7424 LIBS="$cf_save_LIBS"
7428 echo "$as_me:7428: result: $cf_cv_check_gpm_wgetch" >&5
7429 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
7431 if test "$cf_cv_check_gpm_wgetch" != yes ; then
7432 { echo "$as_me:7432: WARNING: GPM library is already linked with curses - read the FAQ" >&5
7433 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
7440 echo "$as_me:7440: checking if you want to use PCRE2 for regular-expressions" >&5
7441 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
7443 # Check whether --with-pcre2 or --without-pcre2 was given.
7444 if test "${with_pcre2+set}" = set; then
7445 withval="$with_pcre2"
7448 test -z "$with_pcre2" && with_pcre2=no
7449 echo "$as_me:7449: result: $with_pcre2" >&5
7450 echo "${ECHO_T}$with_pcre2" >&6
7452 if test "x$with_pcre2" != xno ; then
7454 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre
7457 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then
7458 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6
7460 echo "${as_me:-configure}:7460: testing found package $cf_with_pcre2 ..." 1>&5
7462 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`"
7463 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`"
7464 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
7466 echo "${as_me:-configure}:7466: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7468 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6
7470 echo "${as_me:-configure}:7470: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
7475 cf_new_extra_cppflags=
7477 for cf_add_cflags in $cf_pkgconfig_incs
7479 case "$cf_fix_cppflags" in
7481 case "$cf_add_cflags" in
7482 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7483 case "$cf_add_cflags" in
7485 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7487 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7488 && test -z "${cf_tst_cflags}" \
7489 && cf_fix_cppflags=yes
7491 if test "$cf_fix_cppflags" = yes ; then
7493 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7494 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7497 elif test "${cf_tst_cflags}" = "\"'" ; then
7499 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7500 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7510 case "$cf_add_cflags" in
7512 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7514 CPPFLAGS=`echo "$CPPFLAGS" | \
7515 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7516 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7521 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7522 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7529 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7530 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7537 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7538 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7540 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
7542 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7543 && test -z "${cf_tst_cflags}" \
7544 && cf_fix_cppflags=no
7549 if test -n "$cf_new_cflags" ; then
7551 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7552 CFLAGS="${CFLAGS}$cf_new_cflags"
7556 if test -n "$cf_new_cppflags" ; then
7558 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7559 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7563 if test -n "$cf_new_extra_cppflags" ; then
7565 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7566 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7573 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7575 for cf_add_1lib in $cf_add_0lib; do
7576 for cf_add_2lib in $cf_add_libs; do
7577 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7582 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7586 cf_with_pcre2_ok=yes; break
7594 cf_with_pcre2_ok=yes || { { echo "$as_me:7594: error: Cannot find PCRE2 library" >&5
7595 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
7596 { (exit 1); exit 1; }; }
7598 cat >>confdefs.h <<\EOF
7599 #define HAVE_LIB_PCRE2 1
7602 # if pkgconfig gave no results, look for the libraries directly
7604 (*pcre2-posix*|*pcreposix*)
7607 echo "$as_me:7607: checking for regcomp in -lpcre2-posix" >&5
7608 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
7609 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 ac_check_lib_save_LIBS=$LIBS
7613 LIBS="-lpcre2-posix $LIBS"
7614 cat >"conftest.$ac_ext" <<_ACEOF
7615 #line 7615 "configure"
7616 #include "confdefs.h"
7618 /* Override any gcc2 internal prototype to avoid an error. */
7622 /* We use char because int might match the return type of a gcc2
7623 builtin and then its argument prototype would still apply. */
7633 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7634 if { (eval echo "$as_me:7634: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>&5
7637 echo "$as_me:7637: \$? = $ac_status" >&5
7638 (exit "$ac_status"); } &&
7639 { ac_try='test -s "conftest$ac_exeext"'
7640 { (eval echo "$as_me:7640: \"$ac_try\"") >&5
7643 echo "$as_me:7643: \$? = $ac_status" >&5
7644 (exit "$ac_status"); }; }; then
7645 ac_cv_lib_pcre2_posix_regcomp=yes
7647 echo "$as_me: failed program was:" >&5
7648 cat "conftest.$ac_ext" >&5
7649 ac_cv_lib_pcre2_posix_regcomp=no
7651 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7652 LIBS=$ac_check_lib_save_LIBS
7654 echo "$as_me:7654: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
7655 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
7656 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then
7661 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7663 for cf_add_1lib in $cf_add_0lib; do
7664 for cf_add_2lib in $cf_add_libs; do
7665 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7670 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7675 echo "$as_me:7675: checking for regcomp in -lpcreposix" >&5
7676 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
7677 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 ac_check_lib_save_LIBS=$LIBS
7681 LIBS="-lpcreposix $LIBS"
7682 cat >"conftest.$ac_ext" <<_ACEOF
7683 #line 7683 "configure"
7684 #include "confdefs.h"
7686 /* Override any gcc2 internal prototype to avoid an error. */
7690 /* We use char because int might match the return type of a gcc2
7691 builtin and then its argument prototype would still apply. */
7701 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7702 if { (eval echo "$as_me:7702: \"$ac_link\"") >&5
7703 (eval $ac_link) 2>&5
7705 echo "$as_me:7705: \$? = $ac_status" >&5
7706 (exit "$ac_status"); } &&
7707 { ac_try='test -s "conftest$ac_exeext"'
7708 { (eval echo "$as_me:7708: \"$ac_try\"") >&5
7711 echo "$as_me:7711: \$? = $ac_status" >&5
7712 (exit "$ac_status"); }; }; then
7713 ac_cv_lib_pcreposix_regcomp=yes
7715 echo "$as_me: failed program was:" >&5
7716 cat "conftest.$ac_ext" >&5
7717 ac_cv_lib_pcreposix_regcomp=no
7719 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7720 LIBS=$ac_check_lib_save_LIBS
7722 echo "$as_me:7722: result: $ac_cv_lib_pcreposix_regcomp" >&5
7723 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
7724 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
7729 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7731 for cf_add_1lib in $cf_add_0lib; do
7732 for cf_add_2lib in $cf_add_libs; do
7733 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7738 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7743 { { echo "$as_me:7743: error: Cannot find PCRE2 POSIX library" >&5
7744 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
7745 { (exit 1); exit 1; }; }
7753 # either way, check for the library header files
7755 for ac_header in pcre2posix.h pcreposix.h
7757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7758 echo "$as_me:7758: checking for $ac_header" >&5
7759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 cat >"conftest.$ac_ext" <<_ACEOF
7764 #line 7764 "configure"
7765 #include "confdefs.h"
7766 #include <$ac_header>
7768 if { (eval echo "$as_me:7768: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7769 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7771 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7773 cat conftest.err >&5
7774 echo "$as_me:7774: \$? = $ac_status" >&5
7775 (exit "$ac_status"); } >/dev/null; then
7776 if test -s conftest.err; then
7777 ac_cpp_err=$ac_c_preproc_warn_flag
7784 if test -z "$ac_cpp_err"; then
7785 eval "$as_ac_Header=yes"
7787 echo "$as_me: failed program was:" >&5
7788 cat "conftest.$ac_ext" >&5
7789 eval "$as_ac_Header=no"
7791 rm -f conftest.err "conftest.$ac_ext"
7793 echo "$as_me:7793: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
7794 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
7795 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
7796 cat >>confdefs.h <<EOF
7797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7805 # not everyone has "test -c"
7806 if test -c /dev/sysmouse 2>/dev/null ; then
7807 echo "$as_me:7807: checking if you want to use sysmouse" >&5
7808 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
7810 # Check whether --with-sysmouse or --without-sysmouse was given.
7811 if test "${with_sysmouse+set}" = set; then
7812 withval="$with_sysmouse"
7813 cf_with_sysmouse=$withval
7815 cf_with_sysmouse=maybe
7817 if test "$cf_with_sysmouse" != no ; then
7818 cat >"conftest.$ac_ext" <<_ACEOF
7819 #line 7819 "configure"
7820 #include "confdefs.h"
7822 #include <osreldate.h>
7823 #if (__FreeBSD_version >= 400017)
7824 #include <sys/consio.h>
7825 #include <sys/fbio.h>
7827 #include <machine/console.h>
7834 struct mouse_info the_mouse;
7835 ioctl(0, CONS_MOUSECTL, &the_mouse);
7841 rm -f "conftest.$ac_objext"
7842 if { (eval echo "$as_me:7842: \"$ac_compile\"") >&5
7843 (eval $ac_compile) 2>&5
7845 echo "$as_me:7845: \$? = $ac_status" >&5
7846 (exit "$ac_status"); } &&
7847 { ac_try='test -s "conftest.$ac_objext"'
7848 { (eval echo "$as_me:7848: \"$ac_try\"") >&5
7851 echo "$as_me:7851: \$? = $ac_status" >&5
7852 (exit "$ac_status"); }; }; then
7853 cf_with_sysmouse=yes
7855 echo "$as_me: failed program was:" >&5
7856 cat "conftest.$ac_ext" >&5
7859 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
7861 echo "$as_me:7861: result: $cf_with_sysmouse" >&5
7862 echo "${ECHO_T}$cf_with_sysmouse" >&6
7863 test "$cf_with_sysmouse" = yes &&
7864 cat >>confdefs.h <<\EOF
7865 #define USE_SYSMOUSE 1
7870 # pretend that ncurses==ncursesw==ncursest
7871 echo "$as_me:7871: checking if you want to disable library suffixes" >&5
7872 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
7874 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
7875 if test "${enable_lib_suffixes+set}" = set; then
7876 enableval="$enable_lib_suffixes"
7877 test "$enableval" != no && enableval=yes
7878 if test "$enableval" != "yes" ; then
7879 disable_lib_suffixes=yes
7881 disable_lib_suffixes=no
7885 disable_lib_suffixes=no
7888 echo "$as_me:7888: result: $disable_lib_suffixes" >&5
7889 echo "${ECHO_T}$disable_lib_suffixes" >&6
7891 ### If we're building with rpath, try to link non-standard libs that way too.
7892 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
7894 echo "$as_me:7894: checking if rpath-hack should be disabled" >&5
7895 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
7897 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
7898 if test "${enable_rpath_hack+set}" = set; then
7899 enableval="$enable_rpath_hack"
7900 test "$enableval" != no && enableval=yes
7901 if test "$enableval" != "yes" ; then
7902 enable_rpath_hack=no
7904 enable_rpath_hack=yes
7908 enable_rpath_hack=yes
7911 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
7912 echo "$as_me:7912: result: $cf_disable_rpath_hack" >&5
7913 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
7915 if test "$enable_rpath_hack" = yes ; then
7917 echo "$as_me:7917: checking for updated LDFLAGS" >&5
7918 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
7919 if test -n "$LD_RPATH_OPT" ; then
7920 echo "$as_me:7920: result: maybe" >&5
7921 echo "${ECHO_T}maybe" >&6
7925 # Extract the first word of "$ac_prog", so it can be a program name with args.
7926 set dummy $ac_prog; ac_word=$2
7927 echo "$as_me:7927: checking for $ac_word" >&5
7928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7929 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 if test -n "$cf_ldd_prog"; then
7933 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
7935 ac_save_IFS=$IFS; IFS=$ac_path_separator
7937 for ac_dir in $ac_dummy; do
7939 test -z "$ac_dir" && ac_dir=.
7940 $as_executable_p "$ac_dir/$ac_word" || continue
7941 ac_cv_prog_cf_ldd_prog="$ac_prog"
7942 echo "$as_me:7942: found $ac_dir/$ac_word" >&5
7948 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
7949 if test -n "$cf_ldd_prog"; then
7950 echo "$as_me:7950: result: $cf_ldd_prog" >&5
7951 echo "${ECHO_T}$cf_ldd_prog" >&6
7953 echo "$as_me:7953: result: no" >&5
7954 echo "${ECHO_T}no" >&6
7957 test -n "$cf_ldd_prog" && break
7959 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
7961 cf_rpath_list="/usr/lib /lib"
7962 if test "$cf_ldd_prog" != no
7966 cat >"conftest.$ac_ext" <<_ACEOF
7967 #line 7967 "configure"
7968 #include "confdefs.h"
7978 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7979 if { (eval echo "$as_me:7979: \"$ac_link\"") >&5
7980 (eval $ac_link) 2>&5
7982 echo "$as_me:7982: \$? = $ac_status" >&5
7983 (exit "$ac_status"); } &&
7984 { ac_try='test -s "conftest$ac_exeext"'
7985 { (eval echo "$as_me:7985: \"$ac_try\"") >&5
7988 echo "$as_me:7988: \$? = $ac_status" >&5
7989 (exit "$ac_status"); }; }; then
7990 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
7991 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
7993 echo "$as_me: failed program was:" >&5
7994 cat "conftest.$ac_ext" >&5
7996 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7998 # If we passed the link-test, but get a "not found" on a given library,
7999 # this could be due to inept reconfiguration of gcc to make it only
8000 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
8001 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
8002 # /usr/local libraries.
8003 if test -n "$cf_rpath_oops"
8005 for cf_rpath_src in $cf_rpath_oops
8007 for cf_rpath_dir in \
8012 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
8014 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
8016 echo "${as_me:-configure}:8016: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
8018 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
8026 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8028 echo "${as_me:-configure}:8028: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8030 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
8032 echo "${as_me:-configure}:8032: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
8035 for cf_rpath_src in $LDFLAGS
8037 case "$cf_rpath_src" in
8040 # check if this refers to a directory which we will ignore
8042 if test -n "$cf_rpath_list"
8044 for cf_rpath_item in $cf_rpath_list
8046 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8054 if test "$cf_rpath_skip" = no
8056 # transform the option
8057 if test "$LD_RPATH_OPT" = "-R " ; then
8058 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8060 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8063 # if we have not already added this, add it now
8064 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8065 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8067 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8069 echo "${as_me:-configure}:8069: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8071 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8076 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8078 LDFLAGS=$cf_rpath_dst
8080 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
8082 echo "${as_me:-configure}:8082: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
8084 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
8086 echo "${as_me:-configure}:8086: testing ...checking LIBS $LIBS ..." 1>&5
8089 for cf_rpath_src in $LIBS
8091 case "$cf_rpath_src" in
8094 # check if this refers to a directory which we will ignore
8096 if test -n "$cf_rpath_list"
8098 for cf_rpath_item in $cf_rpath_list
8100 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8108 if test "$cf_rpath_skip" = no
8110 # transform the option
8111 if test "$LD_RPATH_OPT" = "-R " ; then
8112 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8114 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8117 # if we have not already added this, add it now
8118 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8119 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8121 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8123 echo "${as_me:-configure}:8123: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8125 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8130 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8134 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
8136 echo "${as_me:-configure}:8136: testing ...checked LIBS $LIBS ..." 1>&5
8138 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8140 echo "${as_me:-configure}:8140: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8143 echo "$as_me:8143: result: no" >&5
8144 echo "${ECHO_T}no" >&6
8151 ### Depending on the system, someone may use rpath to build ncurses but not
8152 # want users of the package to rely upon that feature. Give those people an
8153 # option to suppress that detail from EXTRA_LDFLAGS.
8154 EXTRA_PKG_LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
8155 if test -n "$EXTRA_PKG_LDFLAGS"
8157 echo "$as_me:8157: checking if you want to disable extra LDFLAGS for package-scripts" >&5
8158 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
8160 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
8161 if test "${enable_pkg_ldflags+set}" = set; then
8162 enableval="$enable_pkg_ldflags"
8163 test "$enableval" != no && enableval=yes
8164 if test "$enableval" != "yes" ; then
8165 disable_pkg_ldflags=yes
8167 disable_pkg_ldflags=no
8171 disable_pkg_ldflags=no
8174 echo "$as_me:8174: result: $disable_pkg_ldflags" >&5
8175 echo "${ECHO_T}$disable_pkg_ldflags" >&6
8176 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
8179 ###############################################################################
8181 ### use option --with-extra-suffix to append suffix to headers and libraries
8182 echo "$as_me:8182: checking if you wish to append extra suffix to header/library paths" >&5
8183 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
8186 # Check whether --with-extra-suffix or --without-extra-suffix was given.
8187 if test "${with_extra_suffix+set}" = set; then
8188 withval="$with_extra_suffix"
8193 EXTRA_SUFFIX=$cf_cv_abi_version
8196 EXTRA_SUFFIX=$withval
8201 echo "$as_me:8201: result: $EXTRA_SUFFIX" >&5
8202 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
8204 ### use option --disable-overwrite to leave out the link to -lcurses
8205 echo "$as_me:8205: checking if you wish to install ncurses overwriting curses" >&5
8206 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
8208 # Check whether --enable-overwrite or --disable-overwrite was given.
8209 if test "${enable_overwrite+set}" = set; then
8210 enableval="$enable_overwrite"
8211 with_overwrite=$enableval
8213 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
8215 echo "$as_me:8215: result: $with_overwrite" >&5
8216 echo "${ECHO_T}$with_overwrite" >&6
8218 echo "$as_me:8218: checking if external terminfo-database is used" >&5
8219 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
8221 # Check whether --enable-database or --disable-database was given.
8222 if test "${enable_database+set}" = set; then
8223 enableval="$enable_database"
8224 use_database=$enableval
8228 echo "$as_me:8228: result: $use_database" >&5
8229 echo "${ECHO_T}$use_database" >&6
8233 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
8236 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
8240 NCURSES_USE_DATABASE=0
8241 if test "$use_database" != no ; then
8242 NCURSES_USE_DATABASE=1
8244 echo "$as_me:8244: checking which terminfo source-file will be installed" >&5
8245 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
8247 # Check whether --with-database or --without-database was given.
8248 if test "${with_database+set}" = set; then
8249 withval="$with_database"
8250 TERMINFO_SRC=$withval
8252 echo "$as_me:8252: result: $TERMINFO_SRC" >&5
8253 echo "${ECHO_T}$TERMINFO_SRC" >&6
8255 echo "$as_me:8255: checking whether to use hashed database instead of directory/tree" >&5
8256 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
8258 # Check whether --with-hashed-db or --without-hashed-db was given.
8259 if test "${with_hashed_db+set}" = set; then
8260 withval="$with_hashed_db"
8265 echo "$as_me:8265: result: $with_hashed_db" >&5
8266 echo "${ECHO_T}$with_hashed_db" >&6
8271 echo "$as_me:8271: checking for list of fallback descriptions" >&5
8272 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
8274 # Check whether --with-fallbacks or --without-fallbacks was given.
8275 if test "${with_fallbacks+set}" = set; then
8276 withval="$with_fallbacks"
8277 with_fallback=$withval
8281 echo "$as_me:8281: result: $with_fallback" >&5
8282 echo "${ECHO_T}$with_fallback" >&6
8284 case ".$with_fallback" in
8289 { echo "$as_me:8289: WARNING: expected a list of terminal descriptions" >&5
8290 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8293 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8297 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8298 # tree for generating the terminal descriptions that will be compiled into the
8299 # library. If your toolchain is old, it may not handle current terminal
8300 # databases. Use configure-options to point to the tools which will be used,
8301 # rather than the first ones found on the $PATH.
8302 if test -n "$ac_tool_prefix"; then
8303 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args.
8304 set dummy ${ac_tool_prefix}tic; ac_word=$2
8305 echo "$as_me:8305: checking for $ac_word" >&5
8306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8307 if test "${ac_cv_prog_TIC+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 if test -n "$TIC"; then
8311 ac_cv_prog_TIC="$TIC" # Let the user override the test.
8313 ac_save_IFS=$IFS; IFS=$ac_path_separator
8315 for ac_dir in $ac_dummy; do
8317 test -z "$ac_dir" && ac_dir=.
8318 $as_executable_p "$ac_dir/$ac_word" || continue
8319 ac_cv_prog_TIC="${ac_tool_prefix}tic"
8320 echo "$as_me:8320: found $ac_dir/$ac_word" >&5
8327 if test -n "$TIC"; then
8328 echo "$as_me:8328: result: $TIC" >&5
8329 echo "${ECHO_T}$TIC" >&6
8331 echo "$as_me:8331: result: no" >&5
8332 echo "${ECHO_T}no" >&6
8336 if test -z "$ac_cv_prog_TIC"; then
8338 # Extract the first word of "tic", so it can be a program name with args.
8339 set dummy tic; ac_word=$2
8340 echo "$as_me:8340: checking for $ac_word" >&5
8341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8342 if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 if test -n "$ac_ct_TIC"; then
8346 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test.
8348 ac_save_IFS=$IFS; IFS=$ac_path_separator
8350 for ac_dir in $ac_dummy; do
8352 test -z "$ac_dir" && ac_dir=.
8353 $as_executable_p "$ac_dir/$ac_word" || continue
8354 ac_cv_prog_ac_ct_TIC="tic"
8355 echo "$as_me:8355: found $ac_dir/$ac_word" >&5
8361 ac_ct_TIC=$ac_cv_prog_ac_ct_TIC
8362 if test -n "$ac_ct_TIC"; then
8363 echo "$as_me:8363: result: $ac_ct_TIC" >&5
8364 echo "${ECHO_T}$ac_ct_TIC" >&6
8366 echo "$as_me:8366: result: no" >&5
8367 echo "${ECHO_T}no" >&6
8372 TIC="$ac_cv_prog_TIC"
8375 if test -n "$ac_tool_prefix"; then
8376 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args.
8377 set dummy ${ac_tool_prefix}infocmp; ac_word=$2
8378 echo "$as_me:8378: checking for $ac_word" >&5
8379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8380 if test "${ac_cv_prog_INFOCMP+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8383 if test -n "$INFOCMP"; then
8384 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test.
8386 ac_save_IFS=$IFS; IFS=$ac_path_separator
8388 for ac_dir in $ac_dummy; do
8390 test -z "$ac_dir" && ac_dir=.
8391 $as_executable_p "$ac_dir/$ac_word" || continue
8392 ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp"
8393 echo "$as_me:8393: found $ac_dir/$ac_word" >&5
8399 INFOCMP=$ac_cv_prog_INFOCMP
8400 if test -n "$INFOCMP"; then
8401 echo "$as_me:8401: result: $INFOCMP" >&5
8402 echo "${ECHO_T}$INFOCMP" >&6
8404 echo "$as_me:8404: result: no" >&5
8405 echo "${ECHO_T}no" >&6
8409 if test -z "$ac_cv_prog_INFOCMP"; then
8410 ac_ct_INFOCMP=$INFOCMP
8411 # Extract the first word of "infocmp", so it can be a program name with args.
8412 set dummy infocmp; ac_word=$2
8413 echo "$as_me:8413: checking for $ac_word" >&5
8414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8415 if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 if test -n "$ac_ct_INFOCMP"; then
8419 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test.
8421 ac_save_IFS=$IFS; IFS=$ac_path_separator
8423 for ac_dir in $ac_dummy; do
8425 test -z "$ac_dir" && ac_dir=.
8426 $as_executable_p "$ac_dir/$ac_word" || continue
8427 ac_cv_prog_ac_ct_INFOCMP="infocmp"
8428 echo "$as_me:8428: found $ac_dir/$ac_word" >&5
8434 ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP
8435 if test -n "$ac_ct_INFOCMP"; then
8436 echo "$as_me:8436: result: $ac_ct_INFOCMP" >&5
8437 echo "${ECHO_T}$ac_ct_INFOCMP" >&6
8439 echo "$as_me:8439: result: no" >&5
8440 echo "${ECHO_T}no" >&6
8443 INFOCMP=$ac_ct_INFOCMP
8445 INFOCMP="$ac_cv_prog_INFOCMP"
8448 if test -n "$FALLBACK_LIST"
8451 # Check whether --with-tic-path or --without-tic-path was given.
8452 if test "${with_tic_path+set}" = set; then
8453 withval="$with_tic_path"
8454 echo "$as_me:8454: checking for tic program for fallbacks" >&5
8455 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
8457 echo "$as_me:8457: result: $TIC" >&5
8458 echo "${ECHO_T}$TIC" >&6
8460 if test "x$prefix" != xNONE; then
8461 cf_path_syntax="$prefix"
8463 cf_path_syntax="$ac_default_prefix"
8471 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8473 (.\$\{*prefix\}*|.\$\{*dir\}*)
8477 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
8482 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
8485 { { echo "$as_me:8485: error: expected a pathname, not \"$TIC\"" >&5
8486 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
8487 { (exit 1); exit 1; }; }
8493 test -z "$TIC" && TIC="tic"
8494 for ac_prog in $TIC tic
8496 # Extract the first word of "$ac_prog", so it can be a program name with args.
8497 set dummy $ac_prog; ac_word=$2
8498 echo "$as_me:8498: checking for $ac_word" >&5
8499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8500 if test "${ac_cv_path_TIC+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8508 ac_save_IFS=$IFS; IFS=$ac_path_separator
8509 ac_dummy="$PATH:/usr/local/ncurses/bin"
8510 for ac_dir in $ac_dummy; do
8512 test -z "$ac_dir" && ac_dir=.
8513 if $as_executable_p "$ac_dir/$ac_word"; then
8514 ac_cv_path_TIC="$ac_dir/$ac_word"
8515 echo "$as_me:8515: found $ac_dir/$ac_word" >&5
8525 if test -n "$TIC"; then
8526 echo "$as_me:8526: result: $TIC" >&5
8527 echo "${ECHO_T}$TIC" >&6
8529 echo "$as_me:8529: result: no" >&5
8530 echo "${ECHO_T}no" >&6
8533 test -n "$TIC" && break
8535 test -n "$TIC" || TIC="$TIC"
8539 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8540 for cf_temp in $ac_cv_path_TIC
8542 if test -z "$cf_path_prog" ; then
8543 if test "$with_full_paths" = yes ; then
8545 if test "x$prefix" != xNONE; then
8546 cf_path_syntax="$prefix"
8548 cf_path_syntax="$ac_default_prefix"
8556 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8558 (.\$\{*prefix\}*|.\$\{*dir\}*)
8559 eval cf_temp="$cf_temp"
8562 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8567 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8574 cf_path_prog="$cf_temp"
8576 cf_path_prog="`basename "$cf_temp"`"
8578 elif test -z "$cf_path_args" ; then
8579 cf_path_args="$cf_temp"
8581 cf_path_args="$cf_path_args $cf_temp"
8586 if test -n "$cf_path_prog" ; then
8588 echo "${as_me:-configure}:8588: testing defining path for ${cf_path_prog} ..." 1>&5
8590 cat >>confdefs.h <<EOF
8591 #define TIC_PATH "$cf_path_prog"
8594 test -n "$cf_path_args" &&
8595 cat >>confdefs.h <<EOF
8596 #define TIC_ARGS "$cf_path_args"
8603 { echo "$as_me:8603: WARNING: no tic program found for fallbacks" >&5
8604 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
8609 # Check whether --with-infocmp-path or --without-infocmp-path was given.
8610 if test "${with_infocmp_path+set}" = set; then
8611 withval="$with_infocmp_path"
8612 echo "$as_me:8612: checking for infocmp program for fallbacks" >&5
8613 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
8615 echo "$as_me:8615: result: $INFOCMP" >&5
8616 echo "${ECHO_T}$INFOCMP" >&6
8618 if test "x$prefix" != xNONE; then
8619 cf_path_syntax="$prefix"
8621 cf_path_syntax="$ac_default_prefix"
8629 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8631 (.\$\{*prefix\}*|.\$\{*dir\}*)
8632 eval INFOCMP="$INFOCMP"
8635 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
8640 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
8643 { { echo "$as_me:8643: error: expected a pathname, not \"$INFOCMP\"" >&5
8644 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
8645 { (exit 1); exit 1; }; }
8651 test -z "$INFOCMP" && INFOCMP="infocmp"
8652 for ac_prog in $INFOCMP infocmp
8654 # Extract the first word of "$ac_prog", so it can be a program name with args.
8655 set dummy $ac_prog; ac_word=$2
8656 echo "$as_me:8656: checking for $ac_word" >&5
8657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8658 if test "${ac_cv_path_INFOCMP+set}" = set; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
8666 ac_save_IFS=$IFS; IFS=$ac_path_separator
8667 ac_dummy="$PATH:/usr/local/ncurses/bin"
8668 for ac_dir in $ac_dummy; do
8670 test -z "$ac_dir" && ac_dir=.
8671 if $as_executable_p "$ac_dir/$ac_word"; then
8672 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
8673 echo "$as_me:8673: found $ac_dir/$ac_word" >&5
8681 INFOCMP=$ac_cv_path_INFOCMP
8683 if test -n "$INFOCMP"; then
8684 echo "$as_me:8684: result: $INFOCMP" >&5
8685 echo "${ECHO_T}$INFOCMP" >&6
8687 echo "$as_me:8687: result: no" >&5
8688 echo "${ECHO_T}no" >&6
8691 test -n "$INFOCMP" && break
8693 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
8697 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8698 for cf_temp in $ac_cv_path_INFOCMP
8700 if test -z "$cf_path_prog" ; then
8701 if test "$with_full_paths" = yes ; then
8703 if test "x$prefix" != xNONE; then
8704 cf_path_syntax="$prefix"
8706 cf_path_syntax="$ac_default_prefix"
8714 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8716 (.\$\{*prefix\}*|.\$\{*dir\}*)
8717 eval cf_temp="$cf_temp"
8720 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8725 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8732 cf_path_prog="$cf_temp"
8734 cf_path_prog="`basename "$cf_temp"`"
8736 elif test -z "$cf_path_args" ; then
8737 cf_path_args="$cf_temp"
8739 cf_path_args="$cf_path_args $cf_temp"
8744 if test -n "$cf_path_prog" ; then
8746 echo "${as_me:-configure}:8746: testing defining path for ${cf_path_prog} ..." 1>&5
8748 cat >>confdefs.h <<EOF
8749 #define INFOCMP_PATH "$cf_path_prog"
8752 test -n "$cf_path_args" &&
8753 cat >>confdefs.h <<EOF
8754 #define INFOCMP_ARGS "$cf_path_args"
8759 if test -z "$INFOCMP"
8761 { echo "$as_me:8761: WARNING: no infocmp program found for fallbacks" >&5
8762 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
8767 test -z "$TIC" && FALLBACK_LIST=
8768 test -z "$INFOCMP" && FALLBACK_LIST=
8769 if test -z "$FALLBACK_LIST"
8771 { echo "$as_me:8771: WARNING: ignoring fallback option because tic/infocmp are not available" >&5
8772 echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;}
8777 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
8779 echo "$as_me:8779: checking if you want modern xterm or antique" >&5
8780 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
8782 # Check whether --with-xterm-new or --without-xterm-new was given.
8783 if test "${with_xterm_new+set}" = set; then
8784 withval="$with_xterm_new"
8785 with_xterm_new=$withval
8789 case "$with_xterm_new" in
8790 (no) with_xterm_new=xterm-old;;
8791 (*) with_xterm_new=xterm-new;;
8793 echo "$as_me:8793: result: $with_xterm_new" >&5
8794 echo "${ECHO_T}$with_xterm_new" >&6
8795 WHICH_XTERM=$with_xterm_new
8797 echo "$as_me:8797: checking if xterm backspace sends BS or DEL" >&5
8798 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
8800 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
8801 if test "${with_xterm_kbs+set}" = set; then
8802 withval="$with_xterm_kbs"
8803 with_xterm_kbs=$withval
8807 case x$with_xterm_kbs in
8808 (xyes|xno|xBS|xbs|x8)
8815 with_xterm_kbs=$withval
8818 echo "$as_me:8818: result: $with_xterm_kbs" >&5
8819 echo "${ECHO_T}$with_xterm_kbs" >&6
8820 XTERM_KBS=$with_xterm_kbs
8823 if test "$use_database" = no ; then
8824 TERMINFO="${datadir}/terminfo"
8828 echo "$as_me:8828: checking for list of terminfo directories" >&5
8829 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
8831 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
8832 if test "${with_terminfo_dirs+set}" = set; then
8833 withval="$with_terminfo_dirs"
8836 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
8838 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
8840 for cf_src_path in $withval
8843 if test "x$prefix" != xNONE; then
8844 cf_path_syntax="$prefix"
8846 cf_path_syntax="$ac_default_prefix"
8849 case ".$cf_src_path" in
8854 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8856 (.\$\{*prefix\}*|.\$\{*dir\}*)
8857 eval cf_src_path="$cf_src_path"
8858 case ".$cf_src_path" in
8860 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
8865 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
8868 { { echo "$as_me:8868: error: expected a pathname, not \"$cf_src_path\"" >&5
8869 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
8870 { (exit 1); exit 1; }; }
8874 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
8875 cf_dst_path="${cf_dst_path}${cf_src_path}"
8879 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
8880 # so we have to check/work around. We do prefer the result of "eval"...
8881 eval cf_dst_eval="$cf_dst_path"
8882 case "x$cf_dst_eval" in
8884 TERMINFO_DIRS=$cf_dst_path
8887 TERMINFO_DIRS="$cf_dst_eval"
8891 echo "$as_me:8891: result: $TERMINFO_DIRS" >&5
8892 echo "${ECHO_T}$TERMINFO_DIRS" >&6
8893 test -n "$TERMINFO_DIRS" &&
8894 cat >>confdefs.h <<EOF
8895 #define TERMINFO_DIRS "$TERMINFO_DIRS"
8898 case "x$TERMINFO" in
8900 { echo "$as_me:8900: WARNING: ignoring non-directory/file TERMINFO value" >&5
8901 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
8906 echo "$as_me:8906: checking for default terminfo directory" >&5
8907 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
8909 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
8910 if test "${with_default_terminfo_dir+set}" = set; then
8911 withval="$with_default_terminfo_dir"
8914 withval="${TERMINFO:-${datadir}/terminfo}"
8915 fi; if test -n "${datadir}/terminfo" ; then
8917 if test "x$prefix" != xNONE; then
8918 cf_path_syntax="$prefix"
8920 cf_path_syntax="$ac_default_prefix"
8928 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8930 (.\$\{*prefix\}*|.\$\{*dir\}*)
8931 eval withval="$withval"
8934 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
8939 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
8942 { { echo "$as_me:8942: error: expected a pathname, not \"$withval\"" >&5
8943 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
8944 { (exit 1); exit 1; }; }
8949 eval TERMINFO="$withval"
8951 echo "$as_me:8951: result: $TERMINFO" >&5
8952 echo "${ECHO_T}$TERMINFO" >&6
8954 cat >>confdefs.h <<EOF
8955 #define TERMINFO "$TERMINFO"
8960 ### use option --disable-big-core to make tic run on small machines
8961 ### We need 4Mb, check if we can allocate 50% more than that.
8962 echo "$as_me:8962: checking if big-core option selected" >&5
8963 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
8965 # Check whether --enable-big-core or --disable-big-core was given.
8966 if test "${enable_big_core+set}" = set; then
8967 enableval="$enable_big_core"
8968 with_big_core=$enableval
8970 if test "$cross_compiling" = yes; then
8973 cat >"conftest.$ac_ext" <<_ACEOF
8974 #line 8974 "configure"
8975 #include "confdefs.h"
8980 unsigned long n = 6000000L;
8981 char *s = malloc(n);
8984 ${cf_cv_main_return:-return}(s == 0);
8987 rm -f "conftest$ac_exeext"
8988 if { (eval echo "$as_me:8988: \"$ac_link\"") >&5
8989 (eval $ac_link) 2>&5
8991 echo "$as_me:8991: \$? = $ac_status" >&5
8992 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
8993 { (eval echo "$as_me:8993: \"$ac_try\"") >&5
8996 echo "$as_me:8996: \$? = $ac_status" >&5
8997 (exit "$ac_status"); }; }; then
9000 echo "$as_me: program exited with status $ac_status" >&5
9001 echo "$as_me: failed program was:" >&5
9002 cat "conftest.$ac_ext" >&5
9005 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9008 echo "$as_me:9008: result: $with_big_core" >&5
9009 echo "${ECHO_T}$with_big_core" >&6
9010 test "x$with_big_core" = "xyes" &&
9011 cat >>confdefs.h <<\EOF
9012 #define HAVE_BIG_CORE 1
9015 ### ISO C only guarantees 512-char strings, we have tables which load faster
9016 ### when constructed using "big" strings. More than the C compiler, the awk
9017 ### program is a limit on most vendor UNIX systems. Check that we can build.
9018 echo "$as_me:9018: checking if big-strings option selected" >&5
9019 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
9021 # Check whether --enable-big-strings or --disable-big-strings was given.
9022 if test "${enable_big_strings+set}" = set; then
9023 enableval="$enable_big_strings"
9024 with_big_strings=$enableval
9029 eval with_big_strings=no
9032 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
9033 | $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
9034 eval with_big_strings=yes
9036 eval with_big_strings=no
9042 echo "$as_me:9042: result: $with_big_strings" >&5
9043 echo "${ECHO_T}$with_big_strings" >&6
9046 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
9048 ### use option --enable-termcap to compile in the termcap fallback support
9049 echo "$as_me:9049: checking if you want termcap-fallback support" >&5
9050 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
9052 # Check whether --enable-termcap or --disable-termcap was given.
9053 if test "${enable_termcap+set}" = set; then
9054 enableval="$enable_termcap"
9055 with_termcap=$enableval
9059 echo "$as_me:9059: result: $with_termcap" >&5
9060 echo "${ECHO_T}$with_termcap" >&6
9062 NCURSES_USE_TERMCAP=0
9063 if test "x$with_termcap" != "xyes" ; then
9064 if test "$use_database" = no ; then
9065 if test -z "$with_fallback" ; then
9066 { { echo "$as_me:9066: error: You have disabled the database w/o specifying fallbacks" >&5
9067 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
9068 { (exit 1); exit 1; }; }
9072 cat >>confdefs.h <<\EOF
9073 #define PURE_TERMINFO 1
9078 if test "$with_ticlib" != no ; then
9079 { { echo "$as_me:9079: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
9080 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
9081 { (exit 1); exit 1; }; }
9084 NCURSES_USE_TERMCAP=1
9085 echo "$as_me:9085: checking for list of termcap files" >&5
9086 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
9088 # Check whether --with-termpath or --without-termpath was given.
9089 if test "${with_termpath+set}" = set; then
9090 withval="$with_termpath"
9093 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
9095 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9097 for cf_src_path in $withval
9100 if test "x$prefix" != xNONE; then
9101 cf_path_syntax="$prefix"
9103 cf_path_syntax="$ac_default_prefix"
9106 case ".$cf_src_path" in
9111 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9113 (.\$\{*prefix\}*|.\$\{*dir\}*)
9114 eval cf_src_path="$cf_src_path"
9115 case ".$cf_src_path" in
9117 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9122 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9125 { { echo "$as_me:9125: error: expected a pathname, not \"$cf_src_path\"" >&5
9126 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9127 { (exit 1); exit 1; }; }
9131 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9132 cf_dst_path="${cf_dst_path}${cf_src_path}"
9136 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9137 # so we have to check/work around. We do prefer the result of "eval"...
9138 eval cf_dst_eval="$cf_dst_path"
9139 case "x$cf_dst_eval" in
9141 TERMPATH=$cf_dst_path
9144 TERMPATH="$cf_dst_eval"
9148 echo "$as_me:9148: result: $TERMPATH" >&5
9149 echo "${ECHO_T}$TERMPATH" >&6
9150 test -n "$TERMPATH" &&
9151 cat >>confdefs.h <<EOF
9152 #define TERMPATH "$TERMPATH"
9155 ### use option --enable-getcap to use a hacked getcap for reading termcaps
9156 echo "$as_me:9156: checking if fast termcap-loader is needed" >&5
9157 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
9159 # Check whether --enable-getcap or --disable-getcap was given.
9160 if test "${enable_getcap+set}" = set; then
9161 enableval="$enable_getcap"
9162 with_getcap=$enableval
9166 echo "$as_me:9166: result: $with_getcap" >&5
9167 echo "${ECHO_T}$with_getcap" >&6
9168 test "x$with_getcap" = "xyes" &&
9169 cat >>confdefs.h <<\EOF
9170 #define USE_GETCAP 1
9173 echo "$as_me:9173: checking if translated termcaps will be cached in ~/.terminfo" >&5
9174 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
9176 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
9177 if test "${enable_getcap_cache+set}" = set; then
9178 enableval="$enable_getcap_cache"
9179 with_getcap_cache=$enableval
9181 with_getcap_cache=no
9183 echo "$as_me:9183: result: $with_getcap_cache" >&5
9184 echo "${ECHO_T}$with_getcap_cache" >&6
9185 test "x$with_getcap_cache" = "xyes" &&
9186 cat >>confdefs.h <<\EOF
9187 #define USE_GETCAP_CACHE 1
9192 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
9193 echo "$as_me:9193: checking if ~/.terminfo is wanted" >&5
9194 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
9196 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
9197 if test "${enable_home_terminfo+set}" = set; then
9198 enableval="$enable_home_terminfo"
9199 with_home_terminfo=$enableval
9201 with_home_terminfo=yes
9203 echo "$as_me:9203: result: $with_home_terminfo" >&5
9204 echo "${ECHO_T}$with_home_terminfo" >&6
9205 test "x$with_home_terminfo" = "xyes" &&
9206 cat >>confdefs.h <<\EOF
9207 #define USE_HOME_TERMINFO 1
9210 echo "$as_me:9210: checking if you want to use restricted environment when running as root" >&5
9211 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
9213 # Check whether --enable-root-environ or --disable-root-environ was given.
9214 if test "${enable_root_environ+set}" = set; then
9215 enableval="$enable_root_environ"
9216 with_root_environ=$enableval
9218 with_root_environ=yes
9220 echo "$as_me:9220: result: $with_root_environ" >&5
9221 echo "${ECHO_T}$with_root_environ" >&6
9222 test "x$with_root_environ" = xyes &&
9223 cat >>confdefs.h <<\EOF
9224 #define USE_ROOT_ENVIRON 1
9227 ### Use option --enable-symlinks to make tic use symlinks, not hard links
9228 ### to reduce storage requirements for the terminfo database.
9234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9235 echo "$as_me:9235: checking for $ac_header" >&5
9236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9240 cat >"conftest.$ac_ext" <<_ACEOF
9241 #line 9241 "configure"
9242 #include "confdefs.h"
9243 #include <$ac_header>
9245 if { (eval echo "$as_me:9245: \"$ac_cpp "conftest.$ac_ext"\"") >&5
9246 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
9248 $EGREP -v '^ *\+' conftest.er1 >conftest.err
9250 cat conftest.err >&5
9251 echo "$as_me:9251: \$? = $ac_status" >&5
9252 (exit "$ac_status"); } >/dev/null; then
9253 if test -s conftest.err; then
9254 ac_cpp_err=$ac_c_preproc_warn_flag
9261 if test -z "$ac_cpp_err"; then
9262 eval "$as_ac_Header=yes"
9264 echo "$as_me: failed program was:" >&5
9265 cat "conftest.$ac_ext" >&5
9266 eval "$as_ac_Header=no"
9268 rm -f conftest.err "conftest.$ac_ext"
9270 echo "$as_me:9270: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
9271 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
9272 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
9273 cat >>confdefs.h <<EOF
9274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9285 echo "$as_me:9285: checking for $ac_func" >&5
9286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9287 if eval "test \"\${$as_ac_var+set}\" = set"; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 cat >"conftest.$ac_ext" <<_ACEOF
9291 #line 9291 "configure"
9292 #include "confdefs.h"
9293 #define $ac_func autoconf_temporary
9294 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9301 /* We use char because int might match the return type of a gcc2
9302 builtin and then its argument prototype would still apply. */
9303 char $ac_func (void);
9309 /* The GNU C library defines stubs for functions which it implements
9310 to always fail with ENOSYS. Some functions are actually named
9311 something starting with __ and the normal name is an alias. */
9312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9313 #error found stub for $ac_func
9321 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9322 if { (eval echo "$as_me:9322: \"$ac_link\"") >&5
9323 (eval $ac_link) 2>&5
9325 echo "$as_me:9325: \$? = $ac_status" >&5
9326 (exit "$ac_status"); } &&
9327 { ac_try='test -s "conftest$ac_exeext"'
9328 { (eval echo "$as_me:9328: \"$ac_try\"") >&5
9331 echo "$as_me:9331: \$? = $ac_status" >&5
9332 (exit "$ac_status"); }; }; then
9333 eval "$as_ac_var=yes"
9335 echo "$as_me: failed program was:" >&5
9336 cat "conftest.$ac_ext" >&5
9337 eval "$as_ac_var=no"
9339 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9341 echo "$as_me:9341: result: `eval echo '${'"$as_ac_var"'}'`" >&5
9342 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
9343 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
9344 cat >>confdefs.h <<EOF
9345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9351 if test "$cross_compiling" = yes ; then
9357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9358 echo "$as_me:9358: checking for $ac_func" >&5
9359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9360 if eval "test \"\${$as_ac_var+set}\" = set"; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 cat >"conftest.$ac_ext" <<_ACEOF
9364 #line 9364 "configure"
9365 #include "confdefs.h"
9366 #define $ac_func autoconf_temporary
9367 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9374 /* We use char because int might match the return type of a gcc2
9375 builtin and then its argument prototype would still apply. */
9376 char $ac_func (void);
9382 /* The GNU C library defines stubs for functions which it implements
9383 to always fail with ENOSYS. Some functions are actually named
9384 something starting with __ and the normal name is an alias. */
9385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9386 #error found stub for $ac_func
9394 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9395 if { (eval echo "$as_me:9395: \"$ac_link\"") >&5
9396 (eval $ac_link) 2>&5
9398 echo "$as_me:9398: \$? = $ac_status" >&5
9399 (exit "$ac_status"); } &&
9400 { ac_try='test -s "conftest$ac_exeext"'
9401 { (eval echo "$as_me:9401: \"$ac_try\"") >&5
9404 echo "$as_me:9404: \$? = $ac_status" >&5
9405 (exit "$ac_status"); }; }; then
9406 eval "$as_ac_var=yes"
9408 echo "$as_me: failed program was:" >&5
9409 cat "conftest.$ac_ext" >&5
9410 eval "$as_ac_var=no"
9412 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9414 echo "$as_me:9414: result: `eval echo '${'"$as_ac_var"'}'`" >&5
9415 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
9416 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
9417 cat >>confdefs.h <<EOF
9418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9425 echo "$as_me:9425: checking if link/symlink functions work" >&5
9426 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
9427 if test "${cf_cv_link_funcs+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 for cf_func in link symlink ; do
9433 if test "$cross_compiling" = yes; then
9435 eval 'ac_cv_func_'$cf_func'=error'
9437 cat >"conftest.$ac_ext" <<_ACEOF
9438 #line 9438 "configure"
9439 #include "confdefs.h"
9442 #include <sys/types.h>
9443 #include <sys/stat.h>
9444 #ifdef HAVE_UNISTD_H
9450 char *src = "conftest.tmp";
9451 char *dst = "conftest.chk";
9452 struct stat src_sb, dst_sb;
9453 FILE *fp = fopen(src, "w");
9454 if (fp == 0) { fail = 3; } else {
9455 fclose(fp); stat(src, &src_sb);
9456 if ($cf_func(src, dst) < 0) {
9458 } else if (stat(dst, &dst_sb) < 0) {
9461 long diff = (dst_sb.st_mtime - src_sb.st_mtime);
9462 if (diff < 0) diff = -diff;
9463 if (diff > 2) fail = 3;
9467 unlink(dst); unlink(src);
9469 remove(dst); remove(src);
9471 ${cf_cv_main_return:-return} (fail);
9475 rm -f "conftest$ac_exeext"
9476 if { (eval echo "$as_me:9476: \"$ac_link\"") >&5
9477 (eval $ac_link) 2>&5
9479 echo "$as_me:9479: \$? = $ac_status" >&5
9480 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9481 { (eval echo "$as_me:9481: \"$ac_try\"") >&5
9484 echo "$as_me:9484: \$? = $ac_status" >&5
9485 (exit "$ac_status"); }; }; then
9487 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
9488 eval 'ac_cv_func_'$cf_func'=yes'
9490 echo "$as_me: program exited with status $ac_status" >&5
9491 echo "$as_me: failed program was:" >&5
9492 cat "conftest.$ac_ext" >&5
9494 eval 'ac_cv_func_'$cf_func'=no'
9496 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9499 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
9502 echo "$as_me:9502: result: $cf_cv_link_funcs" >&5
9503 echo "${ECHO_T}$cf_cv_link_funcs" >&6
9504 test "$ac_cv_func_link" = yes &&
9505 cat >>confdefs.h <<\EOF
9509 test "$ac_cv_func_symlink" = yes &&
9510 cat >>confdefs.h <<\EOF
9511 #define HAVE_SYMLINK 1
9519 # soft links (symbolic links) are useful for some systems where hard links do
9520 # not work, or to make it simpler to copy terminfo trees around.
9521 if test "x$ac_cv_func_symlink" = xyes ; then
9522 echo "$as_me:9522: checking if tic should use symbolic links" >&5
9523 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
9525 # Check whether --enable-symlinks or --disable-symlinks was given.
9526 if test "${enable_symlinks+set}" = set; then
9527 enableval="$enable_symlinks"
9528 with_symlinks=$enableval
9532 echo "$as_me:9532: result: $with_symlinks" >&5
9533 echo "${ECHO_T}$with_symlinks" >&6
9536 # If we have hard links and did not choose to use soft links instead, there is
9537 # no reason to make this choice optional - use the hard links.
9538 if test "$with_symlinks" = no ; then
9539 echo "$as_me:9539: checking if tic should use hard links" >&5
9540 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
9541 if test "x$ac_cv_func_link" = xyes ; then
9546 echo "$as_me:9546: result: $with_links" >&5
9547 echo "${ECHO_T}$with_links" >&6
9550 test "x$with_links" = xyes &&
9551 cat >>confdefs.h <<\EOF
9555 test "x$with_symlinks" = xyes &&
9556 cat >>confdefs.h <<\EOF
9557 #define USE_SYMLINKS 1
9560 ### use option --enable-broken-linker to force on use of broken-linker support
9562 echo "$as_me:9562: checking if you want broken-linker support code" >&5
9563 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
9565 # Check whether --enable-broken_linker or --disable-broken_linker was given.
9566 if test "${enable_broken_linker+set}" = set; then
9567 enableval="$enable_broken_linker"
9568 with_broken_linker=$enableval
9570 with_broken_linker=no
9572 echo "$as_me:9572: result: $with_broken_linker" >&5
9573 echo "${ECHO_T}$with_broken_linker" >&6
9575 : "${BROKEN_LINKER:=0}"
9576 if test "x$with_broken_linker" = xyes ; then
9578 cat >>confdefs.h <<\EOF
9579 #define BROKEN_LINKER 1
9585 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
9586 echo "$as_me:9586: checking if tputs should process BSD-style prefix padding" >&5
9587 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
9589 # Check whether --enable-bsdpad or --disable-bsdpad was given.
9590 if test "${enable_bsdpad+set}" = set; then
9591 enableval="$enable_bsdpad"
9592 with_bsdpad=$enableval
9596 echo "$as_me:9596: result: $with_bsdpad" >&5
9597 echo "${ECHO_T}$with_bsdpad" >&6
9598 test "x$with_bsdpad" = xyes &&
9599 cat >>confdefs.h <<\EOF
9603 ### use option --enable-widec to turn on use of wide-character support
9612 # Check to define _XOPEN_SOURCE "automatically"
9613 CPPFLAGS_before_XOPEN="$CPPFLAGS"
9615 echo "$as_me:9615: checking if the POSIX test-macros are already defined" >&5
9616 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
9617 if test "${cf_cv_posix_visible+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 cat >"conftest.$ac_ext" <<_ACEOF
9622 #line 9622 "configure"
9623 #include "confdefs.h"
9629 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
9630 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
9631 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
9632 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
9633 #error conflicting symbols found
9640 rm -f "conftest.$ac_objext"
9641 if { (eval echo "$as_me:9641: \"$ac_compile\"") >&5
9642 (eval $ac_compile) 2>&5
9644 echo "$as_me:9644: \$? = $ac_status" >&5
9645 (exit "$ac_status"); } &&
9646 { ac_try='test -s "conftest.$ac_objext"'
9647 { (eval echo "$as_me:9647: \"$ac_try\"") >&5
9650 echo "$as_me:9650: \$? = $ac_status" >&5
9651 (exit "$ac_status"); }; }; then
9652 cf_cv_posix_visible=no
9654 echo "$as_me: failed program was:" >&5
9655 cat "conftest.$ac_ext" >&5
9656 cf_cv_posix_visible=yes
9658 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9661 echo "$as_me:9661: result: $cf_cv_posix_visible" >&5
9662 echo "${ECHO_T}$cf_cv_posix_visible" >&6
9664 if test "$cf_cv_posix_visible" = no; then
9667 cf_POSIX_C_SOURCE=199506L
9672 cf_xopen_source="-D_ALL_SOURCE"
9678 cf_xopen_source="-D_APPLE_C_SOURCE"
9681 cf_xopen_source="-D_DARWIN_C_SOURCE"
9684 (freebsd*|dragonfly*|midnightbsd*)
9685 # 5.x headers associate
9686 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
9687 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
9688 cf_POSIX_C_SOURCE=200112L
9690 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9693 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
9696 cf_xopen_source="-D_HPUX_SOURCE"
9699 cf_xopen_source="-D_SGI_SOURCE"
9702 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
9704 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
9706 echo "$as_me:9706: checking if this is the GNU C library" >&5
9707 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
9708 if test "${cf_cv_gnu_library+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 cat >"conftest.$ac_ext" <<_ACEOF
9713 #line 9713 "configure"
9714 #include "confdefs.h"
9715 #include <sys/types.h>
9720 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
9722 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
9725 # error not GNU C library
9731 rm -f "conftest.$ac_objext"
9732 if { (eval echo "$as_me:9732: \"$ac_compile\"") >&5
9733 (eval $ac_compile) 2>&5
9735 echo "$as_me:9735: \$? = $ac_status" >&5
9736 (exit "$ac_status"); } &&
9737 { ac_try='test -s "conftest.$ac_objext"'
9738 { (eval echo "$as_me:9738: \"$ac_try\"") >&5
9741 echo "$as_me:9741: \$? = $ac_status" >&5
9742 (exit "$ac_status"); }; }; then
9743 cf_cv_gnu_library=yes
9745 echo "$as_me: failed program was:" >&5
9746 cat "conftest.$ac_ext" >&5
9747 cf_cv_gnu_library=no
9749 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9752 echo "$as_me:9752: result: $cf_cv_gnu_library" >&5
9753 echo "${ECHO_T}$cf_cv_gnu_library" >&6
9755 if test x$cf_cv_gnu_library = xyes; then
9757 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
9758 # was changed to help a little. newlib incorporated the change about 4
9760 echo "$as_me:9760: checking if _DEFAULT_SOURCE can be used as a basis" >&5
9761 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
9762 if test "${cf_cv_gnu_library_219+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9768 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9769 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
9771 cat >"conftest.$ac_ext" <<_ACEOF
9772 #line 9772 "configure"
9773 #include "confdefs.h"
9774 #include <sys/types.h>
9779 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
9781 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
9784 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
9790 rm -f "conftest.$ac_objext"
9791 if { (eval echo "$as_me:9791: \"$ac_compile\"") >&5
9792 (eval $ac_compile) 2>&5
9794 echo "$as_me:9794: \$? = $ac_status" >&5
9795 (exit "$ac_status"); } &&
9796 { ac_try='test -s "conftest.$ac_objext"'
9797 { (eval echo "$as_me:9797: \"$ac_try\"") >&5
9800 echo "$as_me:9800: \$? = $ac_status" >&5
9801 (exit "$ac_status"); }; }; then
9802 cf_cv_gnu_library_219=yes
9804 echo "$as_me: failed program was:" >&5
9805 cat "conftest.$ac_ext" >&5
9806 cf_cv_gnu_library_219=no
9808 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9812 echo "$as_me:9812: result: $cf_cv_gnu_library_219" >&5
9813 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
9815 if test "x$cf_cv_gnu_library_219" = xyes; then
9817 echo "$as_me:9817: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
9818 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
9819 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9826 cf_new_extra_cppflags=
9828 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
9830 case "$cf_fix_cppflags" in
9832 case "$cf_add_cflags" in
9833 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9834 case "$cf_add_cflags" in
9836 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9838 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9839 && test -z "${cf_tst_cflags}" \
9840 && cf_fix_cppflags=yes
9842 if test "$cf_fix_cppflags" = yes ; then
9844 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9845 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9848 elif test "${cf_tst_cflags}" = "\"'" ; then
9850 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9851 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9861 case "$cf_add_cflags" in
9863 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9865 CPPFLAGS=`echo "$CPPFLAGS" | \
9866 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9867 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9872 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9873 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9880 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9881 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9888 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9889 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9891 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
9893 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9894 && test -z "${cf_tst_cflags}" \
9895 && cf_fix_cppflags=no
9900 if test -n "$cf_new_cflags" ; then
9902 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9903 CFLAGS="${CFLAGS}$cf_new_cflags"
9907 if test -n "$cf_new_cppflags" ; then
9909 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9910 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9914 if test -n "$cf_new_extra_cppflags" ; then
9916 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9917 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9921 cat >"conftest.$ac_ext" <<_ACEOF
9922 #line 9922 "configure"
9923 #include "confdefs.h"
9926 #include <sys/types.h>
9932 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
9935 # error GNU C library is too old
9941 rm -f "conftest.$ac_objext"
9942 if { (eval echo "$as_me:9942: \"$ac_compile\"") >&5
9943 (eval $ac_compile) 2>&5
9945 echo "$as_me:9945: \$? = $ac_status" >&5
9946 (exit "$ac_status"); } &&
9947 { ac_try='test -s "conftest.$ac_objext"'
9948 { (eval echo "$as_me:9948: \"$ac_try\"") >&5
9951 echo "$as_me:9951: \$? = $ac_status" >&5
9952 (exit "$ac_status"); }; }; then
9953 cf_cv_gnu_dftsrc_219=yes
9955 echo "$as_me: failed program was:" >&5
9956 cat "conftest.$ac_ext" >&5
9957 cf_cv_gnu_dftsrc_219=no
9959 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9962 echo "$as_me:9962: result: $cf_cv_gnu_dftsrc_219" >&5
9963 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
9964 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
9966 cf_cv_gnu_dftsrc_219=maybe
9969 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
9971 echo "$as_me:9971: checking if we must define _GNU_SOURCE" >&5
9972 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
9973 if test "${cf_cv_gnu_source+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 cat >"conftest.$ac_ext" <<_ACEOF
9978 #line 9978 "configure"
9979 #include "confdefs.h"
9980 #include <sys/types.h>
9985 #ifndef _XOPEN_SOURCE
9986 #error expected _XOPEN_SOURCE to be defined
9992 rm -f "conftest.$ac_objext"
9993 if { (eval echo "$as_me:9993: \"$ac_compile\"") >&5
9994 (eval $ac_compile) 2>&5
9996 echo "$as_me:9996: \$? = $ac_status" >&5
9997 (exit "$ac_status"); } &&
9998 { ac_try='test -s "conftest.$ac_objext"'
9999 { (eval echo "$as_me:9999: \"$ac_try\"") >&5
10000 (eval $ac_try) 2>&5
10002 echo "$as_me:10002: \$? = $ac_status" >&5
10003 (exit "$ac_status"); }; }; then
10004 cf_cv_gnu_source=no
10006 echo "$as_me: failed program was:" >&5
10007 cat "conftest.$ac_ext" >&5
10008 cf_save="$CPPFLAGS"
10013 cf_new_extra_cppflags=
10015 for cf_add_cflags in -D_GNU_SOURCE
10017 case "$cf_fix_cppflags" in
10019 case "$cf_add_cflags" in
10020 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10021 case "$cf_add_cflags" in
10023 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10025 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10026 && test -z "${cf_tst_cflags}" \
10027 && cf_fix_cppflags=yes
10029 if test "$cf_fix_cppflags" = yes ; then
10031 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10032 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10035 elif test "${cf_tst_cflags}" = "\"'" ; then
10037 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10038 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10044 case "$CPPFLAGS" in
10048 case "$cf_add_cflags" in
10050 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10052 CPPFLAGS=`echo "$CPPFLAGS" | \
10053 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10054 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10059 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10060 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10067 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10068 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10075 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10076 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10078 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10080 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10081 && test -z "${cf_tst_cflags}" \
10082 && cf_fix_cppflags=no
10087 if test -n "$cf_new_cflags" ; then
10089 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10090 CFLAGS="${CFLAGS}$cf_new_cflags"
10094 if test -n "$cf_new_cppflags" ; then
10096 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10097 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10101 if test -n "$cf_new_extra_cppflags" ; then
10103 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10104 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10108 cat >"conftest.$ac_ext" <<_ACEOF
10109 #line 10109 "configure"
10110 #include "confdefs.h"
10111 #include <sys/types.h>
10116 #ifdef _XOPEN_SOURCE
10117 #error expected _XOPEN_SOURCE to be undefined
10123 rm -f "conftest.$ac_objext"
10124 if { (eval echo "$as_me:10124: \"$ac_compile\"") >&5
10125 (eval $ac_compile) 2>&5
10127 echo "$as_me:10127: \$? = $ac_status" >&5
10128 (exit "$ac_status"); } &&
10129 { ac_try='test -s "conftest.$ac_objext"'
10130 { (eval echo "$as_me:10130: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10133 echo "$as_me:10133: \$? = $ac_status" >&5
10134 (exit "$ac_status"); }; }; then
10135 cf_cv_gnu_source=no
10137 echo "$as_me: failed program was:" >&5
10138 cat "conftest.$ac_ext" >&5
10139 cf_cv_gnu_source=yes
10141 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10142 CPPFLAGS="$cf_save"
10145 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10148 echo "$as_me:10148: result: $cf_cv_gnu_source" >&5
10149 echo "${ECHO_T}$cf_cv_gnu_source" >&6
10151 if test "$cf_cv_gnu_source" = yes
10153 echo "$as_me:10153: checking if we should also define _DEFAULT_SOURCE" >&5
10154 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
10155 if test "${cf_cv_default_source+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10159 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10160 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
10162 cat >"conftest.$ac_ext" <<_ACEOF
10163 #line 10163 "configure"
10164 #include "confdefs.h"
10165 #include <sys/types.h>
10170 #ifdef _DEFAULT_SOURCE
10171 #error expected _DEFAULT_SOURCE to be undefined
10177 rm -f "conftest.$ac_objext"
10178 if { (eval echo "$as_me:10178: \"$ac_compile\"") >&5
10179 (eval $ac_compile) 2>&5
10181 echo "$as_me:10181: \$? = $ac_status" >&5
10182 (exit "$ac_status"); } &&
10183 { ac_try='test -s "conftest.$ac_objext"'
10184 { (eval echo "$as_me:10184: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10187 echo "$as_me:10187: \$? = $ac_status" >&5
10188 (exit "$ac_status"); }; }; then
10189 cf_cv_default_source=no
10191 echo "$as_me: failed program was:" >&5
10192 cat "conftest.$ac_ext" >&5
10193 cf_cv_default_source=yes
10195 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10198 echo "$as_me:10198: result: $cf_cv_default_source" >&5
10199 echo "${ECHO_T}$cf_cv_default_source" >&6
10200 if test "$cf_cv_default_source" = yes
10203 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10204 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10214 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
10217 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
10220 if test "$cf_cv_posix_visible" = no; then
10222 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10224 cf_save_CFLAGS="$CFLAGS"
10225 cf_save_CPPFLAGS="$CPPFLAGS"
10227 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10228 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10229 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10231 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10232 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10233 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10235 echo "$as_me:10235: checking if we should define _POSIX_C_SOURCE" >&5
10236 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10237 if test "${cf_cv_posix_c_source+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 echo "${as_me:-configure}:10241: testing if the symbol is already defined go no further ..." 1>&5
10243 cat >"conftest.$ac_ext" <<_ACEOF
10244 #line 10244 "configure"
10245 #include "confdefs.h"
10246 #include <sys/types.h>
10251 #ifndef _POSIX_C_SOURCE
10258 rm -f "conftest.$ac_objext"
10259 if { (eval echo "$as_me:10259: \"$ac_compile\"") >&5
10260 (eval $ac_compile) 2>&5
10262 echo "$as_me:10262: \$? = $ac_status" >&5
10263 (exit "$ac_status"); } &&
10264 { ac_try='test -s "conftest.$ac_objext"'
10265 { (eval echo "$as_me:10265: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10268 echo "$as_me:10268: \$? = $ac_status" >&5
10269 (exit "$ac_status"); }; }; then
10270 cf_cv_posix_c_source=no
10272 echo "$as_me: failed program was:" >&5
10273 cat "conftest.$ac_ext" >&5
10274 cf_want_posix_source=no
10275 case .$cf_POSIX_C_SOURCE in
10277 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10280 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10281 cf_want_posix_source=yes
10284 cf_want_posix_source=yes
10287 if test "$cf_want_posix_source" = yes ; then
10288 cat >"conftest.$ac_ext" <<_ACEOF
10289 #line 10289 "configure"
10290 #include "confdefs.h"
10291 #include <sys/types.h>
10296 #ifdef _POSIX_SOURCE
10303 rm -f "conftest.$ac_objext"
10304 if { (eval echo "$as_me:10304: \"$ac_compile\"") >&5
10305 (eval $ac_compile) 2>&5
10307 echo "$as_me:10307: \$? = $ac_status" >&5
10308 (exit "$ac_status"); } &&
10309 { ac_try='test -s "conftest.$ac_objext"'
10310 { (eval echo "$as_me:10310: \"$ac_try\"") >&5
10311 (eval $ac_try) 2>&5
10313 echo "$as_me:10313: \$? = $ac_status" >&5
10314 (exit "$ac_status"); }; }; then
10317 echo "$as_me: failed program was:" >&5
10318 cat "conftest.$ac_ext" >&5
10319 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10321 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10324 echo "${as_me:-configure}:10324: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10326 CFLAGS="$cf_trim_CFLAGS"
10327 CPPFLAGS="$cf_trim_CPPFLAGS"
10329 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10330 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10332 echo "${as_me:-configure}:10332: testing if the second compile does not leave our definition intact error ..." 1>&5
10334 cat >"conftest.$ac_ext" <<_ACEOF
10335 #line 10335 "configure"
10336 #include "confdefs.h"
10337 #include <sys/types.h>
10342 #ifndef _POSIX_C_SOURCE
10349 rm -f "conftest.$ac_objext"
10350 if { (eval echo "$as_me:10350: \"$ac_compile\"") >&5
10351 (eval $ac_compile) 2>&5
10353 echo "$as_me:10353: \$? = $ac_status" >&5
10354 (exit "$ac_status"); } &&
10355 { ac_try='test -s "conftest.$ac_objext"'
10356 { (eval echo "$as_me:10356: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10359 echo "$as_me:10359: \$? = $ac_status" >&5
10360 (exit "$ac_status"); }; }; then
10363 echo "$as_me: failed program was:" >&5
10364 cat "conftest.$ac_ext" >&5
10365 cf_cv_posix_c_source=no
10367 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10368 CFLAGS="$cf_save_CFLAGS"
10369 CPPFLAGS="$cf_save_CPPFLAGS"
10372 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10375 echo "$as_me:10375: result: $cf_cv_posix_c_source" >&5
10376 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10378 if test "$cf_cv_posix_c_source" != no ; then
10379 CFLAGS="$cf_trim_CFLAGS"
10380 CPPFLAGS="$cf_trim_CPPFLAGS"
10385 cf_new_extra_cppflags=
10387 for cf_add_cflags in $cf_cv_posix_c_source
10389 case "$cf_fix_cppflags" in
10391 case "$cf_add_cflags" in
10392 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10393 case "$cf_add_cflags" in
10395 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10397 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10398 && test -z "${cf_tst_cflags}" \
10399 && cf_fix_cppflags=yes
10401 if test "$cf_fix_cppflags" = yes ; then
10403 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10404 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10407 elif test "${cf_tst_cflags}" = "\"'" ; then
10409 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10410 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10416 case "$CPPFLAGS" in
10420 case "$cf_add_cflags" in
10422 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10424 CPPFLAGS=`echo "$CPPFLAGS" | \
10425 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10426 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10431 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10432 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10439 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10440 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10447 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10448 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10450 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10452 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10453 && test -z "${cf_tst_cflags}" \
10454 && cf_fix_cppflags=no
10459 if test -n "$cf_new_cflags" ; then
10461 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10462 CFLAGS="${CFLAGS}$cf_new_cflags"
10466 if test -n "$cf_new_cppflags" ; then
10468 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10469 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10473 if test -n "$cf_new_extra_cppflags" ; then
10475 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10476 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10482 fi # cf_cv_posix_visible
10486 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
10489 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
10490 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
10491 # Abusing the conformance level is a workaround.
10492 { echo "$as_me:10492: WARNING: this system does not provide usable locale support" >&5
10493 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
10494 cf_xopen_source="-D_BSD_SOURCE"
10495 cf_XOPEN_SOURCE=700
10498 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
10499 cf_xopen_source="-D_BSD_SOURCE"
10500 cf_XOPEN_SOURCE=600
10503 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
10506 cf_xopen_source="-D_OSF_SOURCE"
10509 cf_xopen_source="-D_QNX_SOURCE"
10512 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
10515 cf_xopen_source="-D__EXTENSIONS__"
10516 cf_cv_xopen_source=broken
10518 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
10524 echo "$as_me:10524: checking if we should define _XOPEN_SOURCE" >&5
10525 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
10526 if test "${cf_cv_xopen_source+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 cat >"conftest.$ac_ext" <<_ACEOF
10531 #line 10531 "configure"
10532 #include "confdefs.h"
10534 #include <stdlib.h>
10535 #include <string.h>
10536 #include <sys/types.h>
10542 #ifndef _XOPEN_SOURCE
10549 rm -f "conftest.$ac_objext"
10550 if { (eval echo "$as_me:10550: \"$ac_compile\"") >&5
10551 (eval $ac_compile) 2>&5
10553 echo "$as_me:10553: \$? = $ac_status" >&5
10554 (exit "$ac_status"); } &&
10555 { ac_try='test -s "conftest.$ac_objext"'
10556 { (eval echo "$as_me:10556: \"$ac_try\"") >&5
10557 (eval $ac_try) 2>&5
10559 echo "$as_me:10559: \$? = $ac_status" >&5
10560 (exit "$ac_status"); }; }; then
10561 cf_cv_xopen_source=no
10563 echo "$as_me: failed program was:" >&5
10564 cat "conftest.$ac_ext" >&5
10565 cf_save="$CPPFLAGS"
10567 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10568 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10570 cat >"conftest.$ac_ext" <<_ACEOF
10571 #line 10571 "configure"
10572 #include "confdefs.h"
10574 #include <stdlib.h>
10575 #include <string.h>
10576 #include <sys/types.h>
10582 #ifdef _XOPEN_SOURCE
10589 rm -f "conftest.$ac_objext"
10590 if { (eval echo "$as_me:10590: \"$ac_compile\"") >&5
10591 (eval $ac_compile) 2>&5
10593 echo "$as_me:10593: \$? = $ac_status" >&5
10594 (exit "$ac_status"); } &&
10595 { ac_try='test -s "conftest.$ac_objext"'
10596 { (eval echo "$as_me:10596: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10599 echo "$as_me:10599: \$? = $ac_status" >&5
10600 (exit "$ac_status"); }; }; then
10601 cf_cv_xopen_source=no
10603 echo "$as_me: failed program was:" >&5
10604 cat "conftest.$ac_ext" >&5
10605 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10607 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10608 CPPFLAGS="$cf_save"
10611 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10614 echo "$as_me:10614: result: $cf_cv_xopen_source" >&5
10615 echo "${ECHO_T}$cf_cv_xopen_source" >&6
10617 if test "$cf_cv_xopen_source" != no ; then
10619 CFLAGS=`echo "$CFLAGS" | \
10620 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10621 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10623 CPPFLAGS=`echo "$CPPFLAGS" | \
10624 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10625 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10627 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
10632 cf_new_extra_cppflags=
10634 for cf_add_cflags in $cf_temp_xopen_source
10636 case "$cf_fix_cppflags" in
10638 case "$cf_add_cflags" in
10639 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10640 case "$cf_add_cflags" in
10642 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10644 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10645 && test -z "${cf_tst_cflags}" \
10646 && cf_fix_cppflags=yes
10648 if test "$cf_fix_cppflags" = yes ; then
10650 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10651 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10654 elif test "${cf_tst_cflags}" = "\"'" ; then
10656 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10657 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10663 case "$CPPFLAGS" in
10667 case "$cf_add_cflags" in
10669 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10671 CPPFLAGS=`echo "$CPPFLAGS" | \
10672 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10673 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10678 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10679 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10686 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10687 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10694 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10695 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10697 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10699 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10700 && test -z "${cf_tst_cflags}" \
10701 && cf_fix_cppflags=no
10706 if test -n "$cf_new_cflags" ; then
10708 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10709 CFLAGS="${CFLAGS}$cf_new_cflags"
10713 if test -n "$cf_new_cppflags" ; then
10715 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10716 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10720 if test -n "$cf_new_extra_cppflags" ; then
10722 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10723 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10729 if test "$cf_cv_posix_visible" = no; then
10731 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10733 cf_save_CFLAGS="$CFLAGS"
10734 cf_save_CPPFLAGS="$CPPFLAGS"
10736 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10737 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10738 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10740 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10741 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10742 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10744 echo "$as_me:10744: checking if we should define _POSIX_C_SOURCE" >&5
10745 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10746 if test "${cf_cv_posix_c_source+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 echo "${as_me:-configure}:10750: testing if the symbol is already defined go no further ..." 1>&5
10752 cat >"conftest.$ac_ext" <<_ACEOF
10753 #line 10753 "configure"
10754 #include "confdefs.h"
10755 #include <sys/types.h>
10760 #ifndef _POSIX_C_SOURCE
10767 rm -f "conftest.$ac_objext"
10768 if { (eval echo "$as_me:10768: \"$ac_compile\"") >&5
10769 (eval $ac_compile) 2>&5
10771 echo "$as_me:10771: \$? = $ac_status" >&5
10772 (exit "$ac_status"); } &&
10773 { ac_try='test -s "conftest.$ac_objext"'
10774 { (eval echo "$as_me:10774: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10777 echo "$as_me:10777: \$? = $ac_status" >&5
10778 (exit "$ac_status"); }; }; then
10779 cf_cv_posix_c_source=no
10781 echo "$as_me: failed program was:" >&5
10782 cat "conftest.$ac_ext" >&5
10783 cf_want_posix_source=no
10784 case .$cf_POSIX_C_SOURCE in
10786 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10789 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10790 cf_want_posix_source=yes
10793 cf_want_posix_source=yes
10796 if test "$cf_want_posix_source" = yes ; then
10797 cat >"conftest.$ac_ext" <<_ACEOF
10798 #line 10798 "configure"
10799 #include "confdefs.h"
10800 #include <sys/types.h>
10805 #ifdef _POSIX_SOURCE
10812 rm -f "conftest.$ac_objext"
10813 if { (eval echo "$as_me:10813: \"$ac_compile\"") >&5
10814 (eval $ac_compile) 2>&5
10816 echo "$as_me:10816: \$? = $ac_status" >&5
10817 (exit "$ac_status"); } &&
10818 { ac_try='test -s "conftest.$ac_objext"'
10819 { (eval echo "$as_me:10819: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10822 echo "$as_me:10822: \$? = $ac_status" >&5
10823 (exit "$ac_status"); }; }; then
10826 echo "$as_me: failed program was:" >&5
10827 cat "conftest.$ac_ext" >&5
10828 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10830 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10833 echo "${as_me:-configure}:10833: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10835 CFLAGS="$cf_trim_CFLAGS"
10836 CPPFLAGS="$cf_trim_CPPFLAGS"
10838 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10839 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10841 echo "${as_me:-configure}:10841: testing if the second compile does not leave our definition intact error ..." 1>&5
10843 cat >"conftest.$ac_ext" <<_ACEOF
10844 #line 10844 "configure"
10845 #include "confdefs.h"
10846 #include <sys/types.h>
10851 #ifndef _POSIX_C_SOURCE
10858 rm -f "conftest.$ac_objext"
10859 if { (eval echo "$as_me:10859: \"$ac_compile\"") >&5
10860 (eval $ac_compile) 2>&5
10862 echo "$as_me:10862: \$? = $ac_status" >&5
10863 (exit "$ac_status"); } &&
10864 { ac_try='test -s "conftest.$ac_objext"'
10865 { (eval echo "$as_me:10865: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10868 echo "$as_me:10868: \$? = $ac_status" >&5
10869 (exit "$ac_status"); }; }; then
10872 echo "$as_me: failed program was:" >&5
10873 cat "conftest.$ac_ext" >&5
10874 cf_cv_posix_c_source=no
10876 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10877 CFLAGS="$cf_save_CFLAGS"
10878 CPPFLAGS="$cf_save_CPPFLAGS"
10881 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10884 echo "$as_me:10884: result: $cf_cv_posix_c_source" >&5
10885 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10887 if test "$cf_cv_posix_c_source" != no ; then
10888 CFLAGS="$cf_trim_CFLAGS"
10889 CPPFLAGS="$cf_trim_CPPFLAGS"
10894 cf_new_extra_cppflags=
10896 for cf_add_cflags in $cf_cv_posix_c_source
10898 case "$cf_fix_cppflags" in
10900 case "$cf_add_cflags" in
10901 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10902 case "$cf_add_cflags" in
10904 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10906 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10907 && test -z "${cf_tst_cflags}" \
10908 && cf_fix_cppflags=yes
10910 if test "$cf_fix_cppflags" = yes ; then
10912 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10913 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10916 elif test "${cf_tst_cflags}" = "\"'" ; then
10918 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10919 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10925 case "$CPPFLAGS" in
10929 case "$cf_add_cflags" in
10931 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10933 CPPFLAGS=`echo "$CPPFLAGS" | \
10934 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10935 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10940 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10941 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10948 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10949 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10956 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10957 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10959 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10961 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10962 && test -z "${cf_tst_cflags}" \
10963 && cf_fix_cppflags=no
10968 if test -n "$cf_new_cflags" ; then
10970 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10971 CFLAGS="${CFLAGS}$cf_new_cflags"
10975 if test -n "$cf_new_cppflags" ; then
10977 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10978 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10982 if test -n "$cf_new_extra_cppflags" ; then
10984 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10985 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10991 fi # cf_cv_posix_visible
10996 if test -n "$cf_xopen_source" ; then
11001 cf_new_extra_cppflags=
11003 for cf_add_cflags in $cf_xopen_source
11005 case "$cf_fix_cppflags" in
11007 case "$cf_add_cflags" in
11008 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11009 case "$cf_add_cflags" in
11011 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11013 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11014 && test -z "${cf_tst_cflags}" \
11015 && cf_fix_cppflags=yes
11017 if test "$cf_fix_cppflags" = yes ; 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"
11023 elif test "${cf_tst_cflags}" = "\"'" ; then
11025 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11026 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11032 case "$CPPFLAGS" in
11036 case "$cf_add_cflags" in
11038 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11040 CPPFLAGS=`echo "$CPPFLAGS" | \
11041 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11042 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11047 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11048 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11055 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11056 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11063 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11064 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11066 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11068 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11069 && test -z "${cf_tst_cflags}" \
11070 && cf_fix_cppflags=no
11075 if test -n "$cf_new_cflags" ; then
11076 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11078 echo "${as_me:-configure}:11078: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11080 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11081 CFLAGS="${CFLAGS}$cf_new_cflags"
11085 if test -n "$cf_new_cppflags" ; then
11086 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11088 echo "${as_me:-configure}:11088: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11090 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11091 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11095 if test -n "$cf_new_extra_cppflags" ; then
11096 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11098 echo "${as_me:-configure}:11098: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11100 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11101 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11107 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
11108 echo "$as_me:11108: checking if _XOPEN_SOURCE really is set" >&5
11109 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
11110 cat >"conftest.$ac_ext" <<_ACEOF
11111 #line 11111 "configure"
11112 #include "confdefs.h"
11113 #include <stdlib.h>
11118 #ifndef _XOPEN_SOURCE
11125 rm -f "conftest.$ac_objext"
11126 if { (eval echo "$as_me:11126: \"$ac_compile\"") >&5
11127 (eval $ac_compile) 2>&5
11129 echo "$as_me:11129: \$? = $ac_status" >&5
11130 (exit "$ac_status"); } &&
11131 { ac_try='test -s "conftest.$ac_objext"'
11132 { (eval echo "$as_me:11132: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11135 echo "$as_me:11135: \$? = $ac_status" >&5
11136 (exit "$ac_status"); }; }; then
11137 cf_XOPEN_SOURCE_set=yes
11139 echo "$as_me: failed program was:" >&5
11140 cat "conftest.$ac_ext" >&5
11141 cf_XOPEN_SOURCE_set=no
11143 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11144 echo "$as_me:11144: result: $cf_XOPEN_SOURCE_set" >&5
11145 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
11146 if test "$cf_XOPEN_SOURCE_set" = yes
11148 cat >"conftest.$ac_ext" <<_ACEOF
11149 #line 11149 "configure"
11150 #include "confdefs.h"
11151 #include <stdlib.h>
11156 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11163 rm -f "conftest.$ac_objext"
11164 if { (eval echo "$as_me:11164: \"$ac_compile\"") >&5
11165 (eval $ac_compile) 2>&5
11167 echo "$as_me:11167: \$? = $ac_status" >&5
11168 (exit "$ac_status"); } &&
11169 { ac_try='test -s "conftest.$ac_objext"'
11170 { (eval echo "$as_me:11170: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5
11173 echo "$as_me:11173: \$? = $ac_status" >&5
11174 (exit "$ac_status"); }; }; then
11175 cf_XOPEN_SOURCE_set_ok=yes
11177 echo "$as_me: failed program was:" >&5
11178 cat "conftest.$ac_ext" >&5
11179 cf_XOPEN_SOURCE_set_ok=no
11181 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11182 if test "$cf_XOPEN_SOURCE_set_ok" = no
11184 { echo "$as_me:11184: WARNING: _XOPEN_SOURCE is lower than requested" >&5
11185 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
11189 echo "$as_me:11189: checking if we should define _XOPEN_SOURCE" >&5
11190 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11191 if test "${cf_cv_xopen_source+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11195 cat >"conftest.$ac_ext" <<_ACEOF
11196 #line 11196 "configure"
11197 #include "confdefs.h"
11199 #include <stdlib.h>
11200 #include <string.h>
11201 #include <sys/types.h>
11207 #ifndef _XOPEN_SOURCE
11214 rm -f "conftest.$ac_objext"
11215 if { (eval echo "$as_me:11215: \"$ac_compile\"") >&5
11216 (eval $ac_compile) 2>&5
11218 echo "$as_me:11218: \$? = $ac_status" >&5
11219 (exit "$ac_status"); } &&
11220 { ac_try='test -s "conftest.$ac_objext"'
11221 { (eval echo "$as_me:11221: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11224 echo "$as_me:11224: \$? = $ac_status" >&5
11225 (exit "$ac_status"); }; }; then
11226 cf_cv_xopen_source=no
11228 echo "$as_me: failed program was:" >&5
11229 cat "conftest.$ac_ext" >&5
11230 cf_save="$CPPFLAGS"
11232 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11233 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11235 cat >"conftest.$ac_ext" <<_ACEOF
11236 #line 11236 "configure"
11237 #include "confdefs.h"
11239 #include <stdlib.h>
11240 #include <string.h>
11241 #include <sys/types.h>
11247 #ifdef _XOPEN_SOURCE
11254 rm -f "conftest.$ac_objext"
11255 if { (eval echo "$as_me:11255: \"$ac_compile\"") >&5
11256 (eval $ac_compile) 2>&5
11258 echo "$as_me:11258: \$? = $ac_status" >&5
11259 (exit "$ac_status"); } &&
11260 { ac_try='test -s "conftest.$ac_objext"'
11261 { (eval echo "$as_me:11261: \"$ac_try\"") >&5
11262 (eval $ac_try) 2>&5
11264 echo "$as_me:11264: \$? = $ac_status" >&5
11265 (exit "$ac_status"); }; }; then
11266 cf_cv_xopen_source=no
11268 echo "$as_me: failed program was:" >&5
11269 cat "conftest.$ac_ext" >&5
11270 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11272 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11273 CPPFLAGS="$cf_save"
11276 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11279 echo "$as_me:11279: result: $cf_cv_xopen_source" >&5
11280 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11282 if test "$cf_cv_xopen_source" != no ; then
11284 CFLAGS=`echo "$CFLAGS" | \
11285 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11286 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11288 CPPFLAGS=`echo "$CPPFLAGS" | \
11289 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11290 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11292 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11297 cf_new_extra_cppflags=
11299 for cf_add_cflags in $cf_temp_xopen_source
11301 case "$cf_fix_cppflags" in
11303 case "$cf_add_cflags" in
11304 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11305 case "$cf_add_cflags" in
11307 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11309 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11310 && test -z "${cf_tst_cflags}" \
11311 && cf_fix_cppflags=yes
11313 if test "$cf_fix_cppflags" = yes ; then
11315 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11316 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11319 elif test "${cf_tst_cflags}" = "\"'" ; then
11321 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11322 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11328 case "$CPPFLAGS" in
11332 case "$cf_add_cflags" in
11334 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11336 CPPFLAGS=`echo "$CPPFLAGS" | \
11337 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11338 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11343 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11344 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11351 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11352 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11359 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11360 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11362 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11364 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11365 && test -z "${cf_tst_cflags}" \
11366 && cf_fix_cppflags=no
11371 if test -n "$cf_new_cflags" ; then
11373 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11374 CFLAGS="${CFLAGS}$cf_new_cflags"
11378 if test -n "$cf_new_cppflags" ; then
11380 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11381 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11385 if test -n "$cf_new_extra_cppflags" ; then
11387 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11388 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11396 fi # cf_cv_posix_visible
11398 CPPFLAGS_after_XOPEN="$CPPFLAGS"
11400 # Work around breakage on OS X
11402 echo "$as_me:11402: checking if SIGWINCH is defined" >&5
11403 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
11404 if test "${cf_cv_define_sigwinch+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11408 cat >"conftest.$ac_ext" <<_ACEOF
11409 #line 11409 "configure"
11410 #include "confdefs.h"
11412 #include <sys/types.h>
11413 #include <sys/signal.h>
11418 int x = SIGWINCH; (void)x
11423 rm -f "conftest.$ac_objext"
11424 if { (eval echo "$as_me:11424: \"$ac_compile\"") >&5
11425 (eval $ac_compile) 2>&5
11427 echo "$as_me:11427: \$? = $ac_status" >&5
11428 (exit "$ac_status"); } &&
11429 { ac_try='test -s "conftest.$ac_objext"'
11430 { (eval echo "$as_me:11430: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11433 echo "$as_me:11433: \$? = $ac_status" >&5
11434 (exit "$ac_status"); }; }; then
11435 cf_cv_define_sigwinch=yes
11437 echo "$as_me: failed program was:" >&5
11438 cat "conftest.$ac_ext" >&5
11439 cat >"conftest.$ac_ext" <<_ACEOF
11440 #line 11440 "configure"
11441 #include "confdefs.h"
11443 #undef _XOPEN_SOURCE
11444 #undef _POSIX_SOURCE
11445 #undef _POSIX_C_SOURCE
11446 #include <sys/types.h>
11447 #include <sys/signal.h>
11452 int x = SIGWINCH; (void)x
11457 rm -f "conftest.$ac_objext"
11458 if { (eval echo "$as_me:11458: \"$ac_compile\"") >&5
11459 (eval $ac_compile) 2>&5
11461 echo "$as_me:11461: \$? = $ac_status" >&5
11462 (exit "$ac_status"); } &&
11463 { ac_try='test -s "conftest.$ac_objext"'
11464 { (eval echo "$as_me:11464: \"$ac_try\"") >&5
11465 (eval $ac_try) 2>&5
11467 echo "$as_me:11467: \$? = $ac_status" >&5
11468 (exit "$ac_status"); }; }; then
11469 cf_cv_define_sigwinch=maybe
11471 echo "$as_me: failed program was:" >&5
11472 cat "conftest.$ac_ext" >&5
11473 cf_cv_define_sigwinch=no
11475 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11478 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11481 echo "$as_me:11481: result: $cf_cv_define_sigwinch" >&5
11482 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
11484 if test "$cf_cv_define_sigwinch" = maybe ; then
11485 echo "$as_me:11485: checking for actual SIGWINCH definition" >&5
11486 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
11487 if test "${cf_cv_fixup_sigwinch+set}" = set; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11491 cf_cv_fixup_sigwinch=unknown
11493 while test "$cf_sigwinch" != 1
11495 cat >"conftest.$ac_ext" <<_ACEOF
11496 #line 11496 "configure"
11497 #include "confdefs.h"
11499 #undef _XOPEN_SOURCE
11500 #undef _POSIX_SOURCE
11501 #undef _POSIX_C_SOURCE
11502 #include <sys/types.h>
11503 #include <sys/signal.h>
11509 #if SIGWINCH != $cf_sigwinch
11512 int x = SIGWINCH; (void)x
11517 rm -f "conftest.$ac_objext"
11518 if { (eval echo "$as_me:11518: \"$ac_compile\"") >&5
11519 (eval $ac_compile) 2>&5
11521 echo "$as_me:11521: \$? = $ac_status" >&5
11522 (exit "$ac_status"); } &&
11523 { ac_try='test -s "conftest.$ac_objext"'
11524 { (eval echo "$as_me:11524: \"$ac_try\"") >&5
11525 (eval $ac_try) 2>&5
11527 echo "$as_me:11527: \$? = $ac_status" >&5
11528 (exit "$ac_status"); }; }; then
11529 cf_cv_fixup_sigwinch=$cf_sigwinch
11532 echo "$as_me: failed program was:" >&5
11533 cat "conftest.$ac_ext" >&5
11535 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11537 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
11541 echo "$as_me:11541: result: $cf_cv_fixup_sigwinch" >&5
11542 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
11544 if test "$cf_cv_fixup_sigwinch" != unknown ; then
11545 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
11549 # Checks for CODESET support.
11551 echo "$as_me:11551: checking for nl_langinfo and CODESET" >&5
11552 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11553 if test "${am_cv_langinfo_codeset+set}" = set; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11556 cat >"conftest.$ac_ext" <<_ACEOF
11557 #line 11557 "configure"
11558 #include "confdefs.h"
11559 #include <langinfo.h>
11563 char* cs = nl_langinfo(CODESET); (void)cs
11568 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11569 if { (eval echo "$as_me:11569: \"$ac_link\"") >&5
11570 (eval $ac_link) 2>&5
11572 echo "$as_me:11572: \$? = $ac_status" >&5
11573 (exit "$ac_status"); } &&
11574 { ac_try='test -s "conftest$ac_exeext"'
11575 { (eval echo "$as_me:11575: \"$ac_try\"") >&5
11576 (eval $ac_try) 2>&5
11578 echo "$as_me:11578: \$? = $ac_status" >&5
11579 (exit "$ac_status"); }; }; then
11580 am_cv_langinfo_codeset=yes
11582 echo "$as_me: failed program was:" >&5
11583 cat "conftest.$ac_ext" >&5
11584 am_cv_langinfo_codeset=no
11586 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11589 echo "$as_me:11589: result: $am_cv_langinfo_codeset" >&5
11590 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11591 if test "$am_cv_langinfo_codeset" = yes; then
11593 cat >>confdefs.h <<\EOF
11594 #define HAVE_LANGINFO_CODESET 1
11599 # use these variables to work around a defect in gcc's fixincludes.
11600 NCURSES_OK_WCHAR_T=
11603 echo "$as_me:11603: checking if you want wide-character code" >&5
11604 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
11606 # Check whether --enable-widec or --disable-widec was given.
11607 if test "${enable_widec+set}" = set; then
11608 enableval="$enable_widec"
11609 with_widec=$enableval
11613 echo "$as_me:11613: result: $with_widec" >&5
11614 echo "${ECHO_T}$with_widec" >&6
11616 NCURSES_WCWIDTH_GRAPHICS=1
11618 if test "x$with_widec" = xyes ; then
11619 if test "x$disable_lib_suffixes" = xno ; then
11620 LIB_SUFFIX="w${LIB_SUFFIX}"
11623 cat >>confdefs.h <<\EOF
11624 #define USE_WIDEC_SUPPORT 1
11627 cat >>confdefs.h <<\EOF
11628 #define NCURSES_WIDECHAR 1
11636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11637 echo "$as_me:11637: checking for $ac_header" >&5
11638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 cat >"conftest.$ac_ext" <<_ACEOF
11643 #line 11643 "configure"
11644 #include "confdefs.h"
11645 #include <$ac_header>
11647 if { (eval echo "$as_me:11647: \"$ac_cpp "conftest.$ac_ext"\"") >&5
11648 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
11650 $EGREP -v '^ *\+' conftest.er1 >conftest.err
11652 cat conftest.err >&5
11653 echo "$as_me:11653: \$? = $ac_status" >&5
11654 (exit "$ac_status"); } >/dev/null; then
11655 if test -s conftest.err; then
11656 ac_cpp_err=$ac_c_preproc_warn_flag
11663 if test -z "$ac_cpp_err"; then
11664 eval "$as_ac_Header=yes"
11666 echo "$as_me: failed program was:" >&5
11667 cat "conftest.$ac_ext" >&5
11668 eval "$as_ac_Header=no"
11670 rm -f conftest.err "conftest.$ac_ext"
11672 echo "$as_me:11672: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
11673 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
11674 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
11675 cat >>confdefs.h <<EOF
11676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11682 echo "$as_me:11682: checking if wchar.h can be used as is" >&5
11683 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
11684 if test "${cf_cv_wchar_h_okay+set}" = set; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11688 cat >"conftest.$ac_ext" <<_ACEOF
11689 #line 11689 "configure"
11690 #include "confdefs.h"
11692 #include <stdlib.h>
11693 #ifdef HAVE_WCHAR_H
11696 #ifdef HAVE_WCTYPE_H
11697 #include <wctype.h>
11705 int bar = iswpunct(foo)
11710 rm -f "conftest.$ac_objext"
11711 if { (eval echo "$as_me:11711: \"$ac_compile\"") >&5
11712 (eval $ac_compile) 2>&5
11714 echo "$as_me:11714: \$? = $ac_status" >&5
11715 (exit "$ac_status"); } &&
11716 { ac_try='test -s "conftest.$ac_objext"'
11717 { (eval echo "$as_me:11717: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11720 echo "$as_me:11720: \$? = $ac_status" >&5
11721 (exit "$ac_status"); }; }; then
11722 cf_cv_wchar_h_okay=yes
11724 echo "$as_me: failed program was:" >&5
11725 cat "conftest.$ac_ext" >&5
11726 cf_cv_wchar_h_okay=no
11728 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11730 echo "$as_me:11730: result: $cf_cv_wchar_h_okay" >&5
11731 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
11733 if test "$cf_cv_wchar_h_okay" = no
11736 echo "$as_me:11736: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
11737 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
11738 cat >"conftest.$ac_ext" <<_ACEOF
11739 #line 11739 "configure"
11740 #include "confdefs.h"
11741 #include <sys/types.h>
11747 #ifndef _XOPEN_SOURCE_EXTENDED
11754 rm -f "conftest.$ac_objext"
11755 if { (eval echo "$as_me:11755: \"$ac_compile\"") >&5
11756 (eval $ac_compile) 2>&5
11758 echo "$as_me:11758: \$? = $ac_status" >&5
11759 (exit "$ac_status"); } &&
11760 { ac_try='test -s "conftest.$ac_objext"'
11761 { (eval echo "$as_me:11761: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11764 echo "$as_me:11764: \$? = $ac_status" >&5
11765 (exit "$ac_status"); }; }; then
11768 echo "$as_me: failed program was:" >&5
11769 cat "conftest.$ac_ext" >&5
11772 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11773 echo "$as_me:11773: result: $cf_result" >&5
11774 echo "${ECHO_T}$cf_result" >&6
11776 if test "$cf_result" = yes ; then
11777 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
11778 elif test "x" != "x" ; then
11779 echo "$as_me:11779: checking checking for compatible value versus " >&5
11780 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
11781 cat >"conftest.$ac_ext" <<_ACEOF
11782 #line 11782 "configure"
11783 #include "confdefs.h"
11784 #include <sys/types.h>
11790 #if _XOPEN_SOURCE_EXTENDED- < 0
11797 rm -f "conftest.$ac_objext"
11798 if { (eval echo "$as_me:11798: \"$ac_compile\"") >&5
11799 (eval $ac_compile) 2>&5
11801 echo "$as_me:11801: \$? = $ac_status" >&5
11802 (exit "$ac_status"); } &&
11803 { ac_try='test -s "conftest.$ac_objext"'
11804 { (eval echo "$as_me:11804: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11807 echo "$as_me:11807: \$? = $ac_status" >&5
11808 (exit "$ac_status"); }; }; then
11811 echo "$as_me: failed program was:" >&5
11812 cat "conftest.$ac_ext" >&5
11815 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11816 echo "$as_me:11816: result: $cf_result" >&5
11817 echo "${ECHO_T}$cf_result" >&6
11818 if test "$cf_result" = no ; then
11819 # perhaps we can override it - try...
11820 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
11826 echo "$as_me:11826: checking if wcwidth agrees graphics are single-width" >&5
11827 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
11828 if test "${cf_cv_wcwidth_graphics+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11832 cat >conftest.in <<CF_EOF
11834 0x250c upper left corner
11835 0x2514 lower left corner
11836 0x2510 upper right corner
11837 0x2518 lower right corner
11838 0x251c tee pointing left
11839 0x2524 tee pointing right
11840 0x2534 tee pointing up
11841 0x252c tee pointing down
11842 0x2500 horizontal line
11843 0x2502 vertical line
11844 0x253c large plus or crossover
11848 0x2592 checker board (stipple)
11849 0x00b0 degree symbol
11852 - Teletype 5410v1 symbols
11853 0x2190 arrow pointing left
11854 0x2192 arrow pointing right
11855 0x2193 arrow pointing down
11856 0x2191 arrow pointing up
11857 0x2592 board of squares
11858 0x2603 lantern symbol
11859 0x25ae solid square block
11860 - these defaults were invented for ncurses
11863 0x2264 less-than-or-equal-to
11864 0x2265 greater-than-or-equal-to
11867 0x00a3 pound-sterling symbol
11868 - thick-line-drawing
11869 0x250f upper left corner
11870 0x2517 lower left corner
11871 0x2513 upper right corner
11872 0x251b lower right corner
11873 0x2523 tee pointing left
11874 0x252b tee pointing right
11875 0x253b tee pointing up
11876 0x2533 tee pointing down
11877 0x2501 horizontal line
11878 0x2503 vertical line
11879 0x254b large plus or crossover
11880 - double-line-drawing
11881 0x2554 upper left corner
11882 0x255a lower left corner
11883 0x2557 upper right corner
11884 0x255d lower right corner
11885 0x2563 tee pointing left
11886 0x2560 tee pointing right
11887 0x2569 tee pointing up
11888 0x2566 tee pointing down
11889 0x2550 horizontal line
11890 0x2551 vertical line
11891 0x256c large plus or crossover
11893 if test "$cross_compiling" = yes; then
11894 cf_cv_wcwidth_graphics=unknown
11896 cat >"conftest.$ac_ext" <<_ACEOF
11897 #line 11897 "configure"
11898 #include "confdefs.h"
11900 #include <locale.h>
11911 char buffer[MY_LEN + 1];
11912 char notes[MY_LEN + 1];
11916 if (setlocale(LC_ALL, "en_US.UTF8") ||
11917 setlocale(LC_ALL, "en_US.UTF-8") ||
11918 setlocale(LC_ALL, "en_US.utf8") ||
11919 setlocale(LC_ALL, "en_US.utf-8")) {
11920 if ((fp = fopen("conftest.in", "r")) != 0) {
11921 while (fgets(buffer, MY_LEN, fp) != 0) {
11922 if (*buffer == '-') {
11923 fprintf(stderr, "\\t%s", buffer);
11924 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
11926 if (wcwidth(value) == 1)
11928 fprintf(stderr, "%d\\t%s", wcwidth(value), buffer);
11930 fprintf(stderr, "?\\t%s", buffer);
11935 fprintf(stderr, "%d/%d passed wcwidth/graphics check\\n", passed, totals);
11936 return (totals == passed) ? 0 : 1;
11940 rm -f "conftest$ac_exeext"
11941 if { (eval echo "$as_me:11941: \"$ac_link\"") >&5
11942 (eval $ac_link) 2>&5
11944 echo "$as_me:11944: \$? = $ac_status" >&5
11945 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
11946 { (eval echo "$as_me:11946: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11949 echo "$as_me:11949: \$? = $ac_status" >&5
11950 (exit "$ac_status"); }; }; then
11951 cf_cv_wcwidth_graphics=yes
11953 echo "$as_me: program exited with status $ac_status" >&5
11954 echo "$as_me: failed program was:" >&5
11955 cat "conftest.$ac_ext" >&5
11956 cf_cv_wcwidth_graphics=no
11958 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
11962 echo "$as_me:11962: result: $cf_cv_wcwidth_graphics" >&5
11963 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
11965 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
11967 # with_overwrite=no
11968 NCURSES_CH_T=cchar_t
11970 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
11972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11973 echo "$as_me:11973: checking for $ac_func" >&5
11974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11975 if eval "test \"\${$as_ac_var+set}\" = set"; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 cat >"conftest.$ac_ext" <<_ACEOF
11979 #line 11979 "configure"
11980 #include "confdefs.h"
11981 #define $ac_func autoconf_temporary
11982 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
11989 /* We use char because int might match the return type of a gcc2
11990 builtin and then its argument prototype would still apply. */
11991 char $ac_func (void);
11997 /* The GNU C library defines stubs for functions which it implements
11998 to always fail with ENOSYS. Some functions are actually named
11999 something starting with __ and the normal name is an alias. */
12000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12001 #error found stub for $ac_func
12004 return $ac_func ();
12009 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12010 if { (eval echo "$as_me:12010: \"$ac_link\"") >&5
12011 (eval $ac_link) 2>&5
12013 echo "$as_me:12013: \$? = $ac_status" >&5
12014 (exit "$ac_status"); } &&
12015 { ac_try='test -s "conftest$ac_exeext"'
12016 { (eval echo "$as_me:12016: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:12019: \$? = $ac_status" >&5
12020 (exit "$ac_status"); }; }; then
12021 eval "$as_ac_var=yes"
12023 echo "$as_me: failed program was:" >&5
12024 cat "conftest.$ac_ext" >&5
12025 eval "$as_ac_var=no"
12027 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12029 echo "$as_me:12029: result: `eval echo '${'"$as_ac_var"'}'`" >&5
12030 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
12031 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
12032 cat >>confdefs.h <<EOF
12033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12039 if test "x$ac_cv_func_putwc" != xyes ; then
12041 for ac_header in wchar.h
12043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12044 echo "$as_me:12044: checking for $ac_header" >&5
12045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 cat >"conftest.$ac_ext" <<_ACEOF
12050 #line 12050 "configure"
12051 #include "confdefs.h"
12052 #include <$ac_header>
12054 if { (eval echo "$as_me:12054: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12055 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12057 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12059 cat conftest.err >&5
12060 echo "$as_me:12060: \$? = $ac_status" >&5
12061 (exit "$ac_status"); } >/dev/null; then
12062 if test -s conftest.err; then
12063 ac_cpp_err=$ac_c_preproc_warn_flag
12070 if test -z "$ac_cpp_err"; then
12071 eval "$as_ac_Header=yes"
12073 echo "$as_me: failed program was:" >&5
12074 cat "conftest.$ac_ext" >&5
12075 eval "$as_ac_Header=no"
12077 rm -f conftest.err "conftest.$ac_ext"
12079 echo "$as_me:12079: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12080 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12081 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12082 cat >>confdefs.h <<EOF
12083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12089 echo "$as_me:12089: checking for multibyte character support" >&5
12090 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
12091 if test "${cf_cv_utf8_lib+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 cf_save_LIBS="$LIBS"
12096 cat >"conftest.$ac_ext" <<_ACEOF
12097 #line 12097 "configure"
12098 #include "confdefs.h"
12100 #include <stdlib.h>
12102 #ifdef HAVE_WCHAR_H
12114 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12115 if { (eval echo "$as_me:12115: \"$ac_link\"") >&5
12116 (eval $ac_link) 2>&5
12118 echo "$as_me:12118: \$? = $ac_status" >&5
12119 (exit "$ac_status"); } &&
12120 { ac_try='test -s "conftest$ac_exeext"'
12121 { (eval echo "$as_me:12121: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12124 echo "$as_me:12124: \$? = $ac_status" >&5
12125 (exit "$ac_status"); }; }; then
12128 echo "$as_me: failed program was:" >&5
12129 cat "conftest.$ac_ext" >&5
12131 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
12132 # will be set on completion of the AC_TRY_LINK below.
12133 cf_cv_header_path_utf8=
12134 cf_cv_library_path_utf8=
12136 echo "${as_me:-configure}:12136: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
12138 cf_save_LIBS="$LIBS"
12140 cat >"conftest.$ac_ext" <<_ACEOF
12141 #line 12141 "configure"
12142 #include "confdefs.h"
12144 #include <libutf8.h>
12153 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12154 if { (eval echo "$as_me:12154: \"$ac_link\"") >&5
12155 (eval $ac_link) 2>&5
12157 echo "$as_me:12157: \$? = $ac_status" >&5
12158 (exit "$ac_status"); } &&
12159 { ac_try='test -s "conftest$ac_exeext"'
12160 { (eval echo "$as_me:12160: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12163 echo "$as_me:12163: \$? = $ac_status" >&5
12164 (exit "$ac_status"); }; }; then
12166 cf_cv_find_linkage_utf8=yes
12167 cf_cv_header_path_utf8=/usr/include
12168 cf_cv_library_path_utf8=/usr/lib
12171 echo "$as_me: failed program was:" >&5
12172 cat "conftest.$ac_ext" >&5
12174 LIBS="-lutf8 $cf_save_LIBS"
12176 cat >"conftest.$ac_ext" <<_ACEOF
12177 #line 12177 "configure"
12178 #include "confdefs.h"
12180 #include <libutf8.h>
12189 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12190 if { (eval echo "$as_me:12190: \"$ac_link\"") >&5
12191 (eval $ac_link) 2>&5
12193 echo "$as_me:12193: \$? = $ac_status" >&5
12194 (exit "$ac_status"); } &&
12195 { ac_try='test -s "conftest$ac_exeext"'
12196 { (eval echo "$as_me:12196: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12199 echo "$as_me:12199: \$? = $ac_status" >&5
12200 (exit "$ac_status"); }; }; then
12202 cf_cv_find_linkage_utf8=yes
12203 cf_cv_header_path_utf8=/usr/include
12204 cf_cv_library_path_utf8=/usr/lib
12205 cf_cv_library_file_utf8="-lutf8"
12208 echo "$as_me: failed program was:" >&5
12209 cat "conftest.$ac_ext" >&5
12211 cf_cv_find_linkage_utf8=no
12212 LIBS="$cf_save_LIBS"
12214 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
12216 echo "${as_me:-configure}:12216: testing find linkage for utf8 library ..." 1>&5
12218 echo "${as_me:-configure}:12218: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
12220 cf_save_CPPFLAGS="$CPPFLAGS"
12221 cf_test_CPPFLAGS="$CPPFLAGS"
12225 # collect the current set of include-directories from compiler flags
12226 cf_header_path_list=""
12227 if test -n "${CFLAGS}${CPPFLAGS}" ; then
12228 for cf_header_path in $CPPFLAGS $CFLAGS
12230 case "$cf_header_path" in
12232 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
12234 test "x$cf_header_path" != "xNONE" && \
12235 test -d "$cf_header_path" && \
12237 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
12238 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
12239 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
12240 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include"
12241 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
12242 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
12245 cf_header_path_list="$cf_header_path_list $cf_search"
12251 # add the variations for the package we are looking for
12255 test "x$prefix" != "xNONE" && \
12256 test -d "$prefix" && \
12258 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
12259 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
12260 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
12261 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
12262 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
12263 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
12266 for cf_subdir_prefix in \
12275 test "x$cf_subdir_prefix" != "x$prefix" && \
12276 test -d "$cf_subdir_prefix" && \
12277 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
12278 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
12279 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
12280 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
12281 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
12282 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
12283 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
12288 test "$includedir" != NONE && \
12289 test "$includedir" != "/usr/include" && \
12290 test -d "$includedir" && {
12291 test -d "$includedir" && cf_search="$cf_search $includedir"
12292 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
12295 test "$oldincludedir" != NONE && \
12296 test "$oldincludedir" != "/usr/include" && \
12297 test -d "$oldincludedir" && {
12298 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
12299 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
12302 cf_search="$cf_search $cf_header_path_list"
12304 for cf_cv_header_path_utf8 in $cf_search
12306 if test -d "$cf_cv_header_path_utf8" ; then
12307 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
12309 echo "${as_me:-configure}:12309: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
12311 CPPFLAGS="$cf_save_CPPFLAGS"
12313 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12314 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
12316 cat >"conftest.$ac_ext" <<_ACEOF
12317 #line 12317 "configure"
12318 #include "confdefs.h"
12320 #include <libutf8.h>
12329 rm -f "conftest.$ac_objext"
12330 if { (eval echo "$as_me:12330: \"$ac_compile\"") >&5
12331 (eval $ac_compile) 2>&5
12333 echo "$as_me:12333: \$? = $ac_status" >&5
12334 (exit "$ac_status"); } &&
12335 { ac_try='test -s "conftest.$ac_objext"'
12336 { (eval echo "$as_me:12336: \"$ac_try\"") >&5
12337 (eval $ac_try) 2>&5
12339 echo "$as_me:12339: \$? = $ac_status" >&5
12340 (exit "$ac_status"); }; }; then
12342 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
12344 echo "${as_me:-configure}:12344: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
12346 cf_cv_find_linkage_utf8=maybe
12347 cf_test_CPPFLAGS="$CPPFLAGS"
12350 echo "$as_me: failed program was:" >&5
12351 cat "conftest.$ac_ext" >&5
12353 CPPFLAGS="$cf_save_CPPFLAGS"
12356 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12360 if test "$cf_cv_find_linkage_utf8" = maybe ; then
12362 echo "${as_me:-configure}:12362: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
12364 cf_save_LIBS="$LIBS"
12365 cf_save_LDFLAGS="$LDFLAGS"
12367 if test "$cf_cv_find_linkage_utf8" != yes ; then
12370 cf_library_path_list=""
12371 if test -n "${LDFLAGS}${LIBS}" ; then
12372 for cf_library_path in $LDFLAGS $LIBS
12374 case "$cf_library_path" in
12376 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
12378 test "x$cf_library_path" != "xNONE" && \
12379 test -d "$cf_library_path" && \
12381 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
12382 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
12383 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
12384 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
12385 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
12386 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
12389 cf_library_path_list="$cf_library_path_list $cf_search"
12397 test "x$prefix" != "xNONE" && \
12398 test -d "$prefix" && \
12400 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
12401 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
12402 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
12403 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
12404 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
12405 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
12408 for cf_subdir_prefix in \
12417 test "x$cf_subdir_prefix" != "x$prefix" && \
12418 test -d "$cf_subdir_prefix" && \
12419 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
12420 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
12421 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
12422 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
12423 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
12424 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
12425 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
12430 cf_search="$cf_library_path_list $cf_search"
12432 for cf_cv_library_path_utf8 in $cf_search
12434 if test -d "$cf_cv_library_path_utf8" ; then
12435 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
12437 echo "${as_me:-configure}:12437: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
12439 CPPFLAGS="$cf_test_CPPFLAGS"
12440 LIBS="-lutf8 $cf_save_LIBS"
12441 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
12442 cat >"conftest.$ac_ext" <<_ACEOF
12443 #line 12443 "configure"
12444 #include "confdefs.h"
12446 #include <libutf8.h>
12455 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12456 if { (eval echo "$as_me:12456: \"$ac_link\"") >&5
12457 (eval $ac_link) 2>&5
12459 echo "$as_me:12459: \$? = $ac_status" >&5
12460 (exit "$ac_status"); } &&
12461 { ac_try='test -s "conftest$ac_exeext"'
12462 { (eval echo "$as_me:12462: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12465 echo "$as_me:12465: \$? = $ac_status" >&5
12466 (exit "$ac_status"); }; }; then
12468 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
12470 echo "${as_me:-configure}:12470: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
12472 cf_cv_find_linkage_utf8=yes
12473 cf_cv_library_file_utf8="-lutf8"
12476 echo "$as_me: failed program was:" >&5
12477 cat "conftest.$ac_ext" >&5
12479 CPPFLAGS="$cf_save_CPPFLAGS"
12480 LIBS="$cf_save_LIBS"
12481 LDFLAGS="$cf_save_LDFLAGS"
12484 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12487 CPPFLAGS="$cf_save_CPPFLAGS"
12488 LDFLAGS="$cf_save_LDFLAGS"
12492 cf_cv_find_linkage_utf8=no
12496 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12499 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12501 LIBS="$cf_save_LIBS"
12503 if test "$cf_cv_find_linkage_utf8" = yes ; then
12504 cf_cv_utf8_lib=add-on
12510 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12512 echo "$as_me:12512: result: $cf_cv_utf8_lib" >&5
12513 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
12515 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
12516 # ncurses/ncursesw:
12517 if test "$cf_cv_utf8_lib" = "add-on" ; then
12519 cat >>confdefs.h <<\EOF
12520 #define HAVE_LIBUTF8_H 1
12523 if test -n "$cf_cv_header_path_utf8" ; then
12524 for cf_add_incdir in $cf_cv_header_path_utf8
12526 while test "$cf_add_incdir" != /usr/include
12528 if test -d "$cf_add_incdir"
12531 if test -n "$CFLAGS$CPPFLAGS" ; then
12532 # a loop is needed to ensure we can add subdirs of existing dirs
12533 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
12534 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
12535 cf_have_incdir=yes; break
12540 if test "$cf_have_incdir" = no ; then
12541 if test "$cf_add_incdir" = /usr/local/include ; then
12542 if test "$GCC" = yes
12544 cf_save_CPPFLAGS=$CPPFLAGS
12546 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12547 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
12549 cat >"conftest.$ac_ext" <<_ACEOF
12550 #line 12550 "configure"
12551 #include "confdefs.h"
12561 rm -f "conftest.$ac_objext"
12562 if { (eval echo "$as_me:12562: \"$ac_compile\"") >&5
12563 (eval $ac_compile) 2>&5
12565 echo "$as_me:12565: \$? = $ac_status" >&5
12566 (exit "$ac_status"); } &&
12567 { ac_try='test -s "conftest.$ac_objext"'
12568 { (eval echo "$as_me:12568: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12571 echo "$as_me:12571: \$? = $ac_status" >&5
12572 (exit "$ac_status"); }; }; then
12575 echo "$as_me: failed program was:" >&5
12576 cat "conftest.$ac_ext" >&5
12579 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12580 CPPFLAGS=$cf_save_CPPFLAGS
12585 if test "$cf_have_incdir" = no ; then
12586 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
12588 echo "${as_me:-configure}:12588: testing adding $cf_add_incdir to include-path ..." 1>&5
12590 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
12592 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
12593 test "$cf_top_incdir" = "$cf_add_incdir" && break
12594 cf_add_incdir="$cf_top_incdir"
12605 if test -n "$cf_cv_library_path_utf8" ; then
12606 for cf_add_libdir in $cf_cv_library_path_utf8
12608 if test "$cf_add_libdir" = /usr/lib ; then
12610 elif test -d "$cf_add_libdir"
12613 if test -n "$LDFLAGS$LIBS" ; then
12614 # a loop is needed to ensure we can add subdirs of existing dirs
12615 for cf_test_libdir in $LDFLAGS $LIBS ; do
12616 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
12617 cf_have_libdir=yes; break
12621 if test "$cf_have_libdir" = no ; then
12622 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
12624 echo "${as_me:-configure}:12624: testing adding $cf_add_libdir to library-path ..." 1>&5
12626 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
12632 cf_add_libs="$LIBS"
12635 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12636 # filter duplicates
12637 for cf_add_1lib in $cf_add_0lib; do
12638 for cf_add_2lib in $cf_add_libs; do
12639 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12644 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12646 LIBS="$cf_add_libs"
12650 if test "$cf_cv_utf8_lib" != no ; then
12655 # This is needed on Tru64 5.0 to declare mbstate_t
12656 echo "$as_me:12656: checking if we must include wchar.h to declare mbstate_t" >&5
12657 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
12658 if test "${cf_cv_mbstate_t+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12662 cat >"conftest.$ac_ext" <<_ACEOF
12663 #line 12663 "configure"
12664 #include "confdefs.h"
12666 #include <stdlib.h>
12667 #include <stdarg.h>
12669 #ifdef HAVE_LIBUTF8_H
12670 #include <libutf8.h>
12680 rm -f "conftest.$ac_objext"
12681 if { (eval echo "$as_me:12681: \"$ac_compile\"") >&5
12682 (eval $ac_compile) 2>&5
12684 echo "$as_me:12684: \$? = $ac_status" >&5
12685 (exit "$ac_status"); } &&
12686 { ac_try='test -s "conftest.$ac_objext"'
12687 { (eval echo "$as_me:12687: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12690 echo "$as_me:12690: \$? = $ac_status" >&5
12691 (exit "$ac_status"); }; }; then
12694 echo "$as_me: failed program was:" >&5
12695 cat "conftest.$ac_ext" >&5
12696 cat >"conftest.$ac_ext" <<_ACEOF
12697 #line 12697 "configure"
12698 #include "confdefs.h"
12700 #include <stdlib.h>
12701 #include <stdarg.h>
12704 #ifdef HAVE_LIBUTF8_H
12705 #include <libutf8.h>
12715 rm -f "conftest.$ac_objext"
12716 if { (eval echo "$as_me:12716: \"$ac_compile\"") >&5
12717 (eval $ac_compile) 2>&5
12719 echo "$as_me:12719: \$? = $ac_status" >&5
12720 (exit "$ac_status"); } &&
12721 { ac_try='test -s "conftest.$ac_objext"'
12722 { (eval echo "$as_me:12722: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12725 echo "$as_me:12725: \$? = $ac_status" >&5
12726 (exit "$ac_status"); }; }; then
12727 cf_cv_mbstate_t=yes
12729 echo "$as_me: failed program was:" >&5
12730 cat "conftest.$ac_ext" >&5
12731 cf_cv_mbstate_t=unknown
12733 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12735 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12737 echo "$as_me:12737: result: $cf_cv_mbstate_t" >&5
12738 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
12740 if test "$cf_cv_mbstate_t" = yes ; then
12742 cat >>confdefs.h <<\EOF
12743 #define NEED_WCHAR_H 1
12749 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
12750 if test "$cf_cv_mbstate_t" = unknown ; then
12751 NCURSES_MBSTATE_T=1
12754 # This is needed on Tru64 5.0 to declare wchar_t
12755 echo "$as_me:12755: checking if we must include wchar.h to declare wchar_t" >&5
12756 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
12757 if test "${cf_cv_wchar_t+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 cat >"conftest.$ac_ext" <<_ACEOF
12762 #line 12762 "configure"
12763 #include "confdefs.h"
12765 #include <stdlib.h>
12766 #include <stdarg.h>
12768 #ifdef HAVE_LIBUTF8_H
12769 #include <libutf8.h>
12779 rm -f "conftest.$ac_objext"
12780 if { (eval echo "$as_me:12780: \"$ac_compile\"") >&5
12781 (eval $ac_compile) 2>&5
12783 echo "$as_me:12783: \$? = $ac_status" >&5
12784 (exit "$ac_status"); } &&
12785 { ac_try='test -s "conftest.$ac_objext"'
12786 { (eval echo "$as_me:12786: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12789 echo "$as_me:12789: \$? = $ac_status" >&5
12790 (exit "$ac_status"); }; }; then
12793 echo "$as_me: failed program was:" >&5
12794 cat "conftest.$ac_ext" >&5
12795 cat >"conftest.$ac_ext" <<_ACEOF
12796 #line 12796 "configure"
12797 #include "confdefs.h"
12799 #include <stdlib.h>
12800 #include <stdarg.h>
12803 #ifdef HAVE_LIBUTF8_H
12804 #include <libutf8.h>
12814 rm -f "conftest.$ac_objext"
12815 if { (eval echo "$as_me:12815: \"$ac_compile\"") >&5
12816 (eval $ac_compile) 2>&5
12818 echo "$as_me:12818: \$? = $ac_status" >&5
12819 (exit "$ac_status"); } &&
12820 { ac_try='test -s "conftest.$ac_objext"'
12821 { (eval echo "$as_me:12821: \"$ac_try\"") >&5
12822 (eval $ac_try) 2>&5
12824 echo "$as_me:12824: \$? = $ac_status" >&5
12825 (exit "$ac_status"); }; }; then
12828 echo "$as_me: failed program was:" >&5
12829 cat "conftest.$ac_ext" >&5
12830 cf_cv_wchar_t=unknown
12832 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12834 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12836 echo "$as_me:12836: result: $cf_cv_wchar_t" >&5
12837 echo "${ECHO_T}$cf_cv_wchar_t" >&6
12839 if test "$cf_cv_wchar_t" = yes ; then
12841 cat >>confdefs.h <<\EOF
12842 #define NEED_WCHAR_H 1
12848 # if we do not find wchar_t in either place, use substitution to provide a fallback.
12849 if test "$cf_cv_wchar_t" = unknown ; then
12853 # if we find wchar_t in either place, use substitution to provide a fallback.
12854 if test "$cf_cv_wchar_t" != unknown ; then
12855 NCURSES_OK_WCHAR_T=1
12858 # This is needed on Tru64 5.0 to declare wint_t
12859 echo "$as_me:12859: checking if we must include wchar.h to declare wint_t" >&5
12860 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
12861 if test "${cf_cv_wint_t+set}" = set; then
12862 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 cat >"conftest.$ac_ext" <<_ACEOF
12866 #line 12866 "configure"
12867 #include "confdefs.h"
12869 #include <stdlib.h>
12870 #include <stdarg.h>
12872 #ifdef HAVE_LIBUTF8_H
12873 #include <libutf8.h>
12883 rm -f "conftest.$ac_objext"
12884 if { (eval echo "$as_me:12884: \"$ac_compile\"") >&5
12885 (eval $ac_compile) 2>&5
12887 echo "$as_me:12887: \$? = $ac_status" >&5
12888 (exit "$ac_status"); } &&
12889 { ac_try='test -s "conftest.$ac_objext"'
12890 { (eval echo "$as_me:12890: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12893 echo "$as_me:12893: \$? = $ac_status" >&5
12894 (exit "$ac_status"); }; }; then
12897 echo "$as_me: failed program was:" >&5
12898 cat "conftest.$ac_ext" >&5
12899 cat >"conftest.$ac_ext" <<_ACEOF
12900 #line 12900 "configure"
12901 #include "confdefs.h"
12903 #include <stdlib.h>
12904 #include <stdarg.h>
12907 #ifdef HAVE_LIBUTF8_H
12908 #include <libutf8.h>
12918 rm -f "conftest.$ac_objext"
12919 if { (eval echo "$as_me:12919: \"$ac_compile\"") >&5
12920 (eval $ac_compile) 2>&5
12922 echo "$as_me:12922: \$? = $ac_status" >&5
12923 (exit "$ac_status"); } &&
12924 { ac_try='test -s "conftest.$ac_objext"'
12925 { (eval echo "$as_me:12925: \"$ac_try\"") >&5
12926 (eval $ac_try) 2>&5
12928 echo "$as_me:12928: \$? = $ac_status" >&5
12929 (exit "$ac_status"); }; }; then
12932 echo "$as_me: failed program was:" >&5
12933 cat "conftest.$ac_ext" >&5
12934 cf_cv_wint_t=unknown
12936 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12938 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12940 echo "$as_me:12940: result: $cf_cv_wint_t" >&5
12941 echo "${ECHO_T}$cf_cv_wint_t" >&6
12943 if test "$cf_cv_wint_t" = yes ; then
12945 cat >>confdefs.h <<\EOF
12946 #define NEED_WCHAR_H 1
12952 # if we do not find wint_t in either place, use substitution to provide a fallback.
12953 if test "$cf_cv_wint_t" = unknown ; then
12957 # if we find wint_t in either place, use substitution to provide a fallback.
12958 if test "$cf_cv_wint_t" != unknown ; then
12959 NCURSES_OK_WINT_T=1
12962 if test "$NCURSES_MBSTATE_T" != 0; then
12964 cat >>confdefs.h <<\EOF
12965 #define NEED_MBSTATE_T_DEF 1
12971 ### use option --disable-lp64 to allow long chtype
12972 echo "$as_me:12972: checking whether to enable _LP64 definition in curses.h" >&5
12973 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
12975 # Check whether --enable-lp64 or --disable-lp64 was given.
12976 if test "${enable_lp64+set}" = set; then
12977 enableval="$enable_lp64"
12978 with_lp64=$enableval
12980 with_lp64=$cf_dft_with_lp64
12982 echo "$as_me:12982: result: $with_lp64" >&5
12983 echo "${ECHO_T}$with_lp64" >&6
12985 if test "x$with_lp64" = xyes ; then
12986 cf_cv_enable_lp64=1
12988 cf_cv_enable_lp64=0
12991 # Check whether --enable-largefile or --disable-largefile was given.
12992 if test "${enable_largefile+set}" = set; then
12993 enableval="$enable_largefile"
12996 if test "$enable_largefile" != no; then
12998 echo "$as_me:12998: checking for special C compiler options needed for large files" >&5
12999 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
13000 if test "${ac_cv_sys_largefile_CC+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13003 ac_cv_sys_largefile_CC=no
13004 if test "$GCC" != yes; then
13007 # IRIX 6.2 and later do not support large files by default,
13008 # so use the C compiler's -n32 option if that helps.
13009 cat >"conftest.$ac_ext" <<_ACEOF
13010 #line 13010 "configure"
13011 #include "confdefs.h"
13012 #include <sys/types.h>
13013 /* Check that off_t can represent 2**63 - 1 correctly.
13014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13015 since some C++ compilers masquerading as C compilers
13016 incorrectly reject 9223372036854775807. */
13017 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13019 && LARGE_OFF_T % 2147483647 == 1)
13029 rm -f "conftest.$ac_objext"
13030 if { (eval echo "$as_me:13030: \"$ac_compile\"") >&5
13031 (eval $ac_compile) 2>&5
13033 echo "$as_me:13033: \$? = $ac_status" >&5
13034 (exit "$ac_status"); } &&
13035 { ac_try='test -s "conftest.$ac_objext"'
13036 { (eval echo "$as_me:13036: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13039 echo "$as_me:13039: \$? = $ac_status" >&5
13040 (exit "$ac_status"); }; }; then
13043 echo "$as_me: failed program was:" >&5
13044 cat "conftest.$ac_ext" >&5
13046 rm -f "conftest.$ac_objext"
13048 rm -f "conftest.$ac_objext"
13049 if { (eval echo "$as_me:13049: \"$ac_compile\"") >&5
13050 (eval $ac_compile) 2>&5
13052 echo "$as_me:13052: \$? = $ac_status" >&5
13053 (exit "$ac_status"); } &&
13054 { ac_try='test -s "conftest.$ac_objext"'
13055 { (eval echo "$as_me:13055: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5
13058 echo "$as_me:13058: \$? = $ac_status" >&5
13059 (exit "$ac_status"); }; }; then
13060 ac_cv_sys_largefile_CC=' -n32'; break
13062 echo "$as_me: failed program was:" >&5
13063 cat "conftest.$ac_ext" >&5
13065 rm -f "conftest.$ac_objext"
13069 rm -f "conftest.$ac_ext"
13072 echo "$as_me:13072: result: $ac_cv_sys_largefile_CC" >&5
13073 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
13074 if test "$ac_cv_sys_largefile_CC" != no; then
13075 CC=$CC$ac_cv_sys_largefile_CC
13078 echo "$as_me:13078: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13079 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
13080 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 ac_cv_sys_file_offset_bits=no
13085 cat >"conftest.$ac_ext" <<_ACEOF
13086 #line 13086 "configure"
13087 #include "confdefs.h"
13088 #include <sys/types.h>
13089 /* Check that off_t can represent 2**63 - 1 correctly.
13090 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13091 since some C++ compilers masquerading as C compilers
13092 incorrectly reject 9223372036854775807. */
13093 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13094 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13095 && LARGE_OFF_T % 2147483647 == 1)
13105 rm -f "conftest.$ac_objext"
13106 if { (eval echo "$as_me:13106: \"$ac_compile\"") >&5
13107 (eval $ac_compile) 2>&5
13109 echo "$as_me:13109: \$? = $ac_status" >&5
13110 (exit "$ac_status"); } &&
13111 { ac_try='test -s "conftest.$ac_objext"'
13112 { (eval echo "$as_me:13112: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13115 echo "$as_me:13115: \$? = $ac_status" >&5
13116 (exit "$ac_status"); }; }; then
13119 echo "$as_me: failed program was:" >&5
13120 cat "conftest.$ac_ext" >&5
13122 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13123 cat >"conftest.$ac_ext" <<_ACEOF
13124 #line 13124 "configure"
13125 #include "confdefs.h"
13126 #define _FILE_OFFSET_BITS 64
13127 #include <sys/types.h>
13128 /* Check that off_t can represent 2**63 - 1 correctly.
13129 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13130 since some C++ compilers masquerading as C compilers
13131 incorrectly reject 9223372036854775807. */
13132 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13134 && LARGE_OFF_T % 2147483647 == 1)
13144 rm -f "conftest.$ac_objext"
13145 if { (eval echo "$as_me:13145: \"$ac_compile\"") >&5
13146 (eval $ac_compile) 2>&5
13148 echo "$as_me:13148: \$? = $ac_status" >&5
13149 (exit "$ac_status"); } &&
13150 { ac_try='test -s "conftest.$ac_objext"'
13151 { (eval echo "$as_me:13151: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13154 echo "$as_me:13154: \$? = $ac_status" >&5
13155 (exit "$ac_status"); }; }; then
13156 ac_cv_sys_file_offset_bits=64; break
13158 echo "$as_me: failed program was:" >&5
13159 cat "conftest.$ac_ext" >&5
13161 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13165 echo "$as_me:13165: result: $ac_cv_sys_file_offset_bits" >&5
13166 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
13167 if test "$ac_cv_sys_file_offset_bits" != no; then
13169 cat >>confdefs.h <<EOF
13170 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13175 echo "$as_me:13175: checking for _LARGE_FILES value needed for large files" >&5
13176 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
13177 if test "${ac_cv_sys_large_files+set}" = set; then
13178 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 ac_cv_sys_large_files=no
13182 cat >"conftest.$ac_ext" <<_ACEOF
13183 #line 13183 "configure"
13184 #include "confdefs.h"
13185 #include <sys/types.h>
13186 /* Check that off_t can represent 2**63 - 1 correctly.
13187 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13188 since some C++ compilers masquerading as C compilers
13189 incorrectly reject 9223372036854775807. */
13190 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13192 && LARGE_OFF_T % 2147483647 == 1)
13202 rm -f "conftest.$ac_objext"
13203 if { (eval echo "$as_me:13203: \"$ac_compile\"") >&5
13204 (eval $ac_compile) 2>&5
13206 echo "$as_me:13206: \$? = $ac_status" >&5
13207 (exit "$ac_status"); } &&
13208 { ac_try='test -s "conftest.$ac_objext"'
13209 { (eval echo "$as_me:13209: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13212 echo "$as_me:13212: \$? = $ac_status" >&5
13213 (exit "$ac_status"); }; }; then
13216 echo "$as_me: failed program was:" >&5
13217 cat "conftest.$ac_ext" >&5
13219 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13220 cat >"conftest.$ac_ext" <<_ACEOF
13221 #line 13221 "configure"
13222 #include "confdefs.h"
13223 #define _LARGE_FILES 1
13224 #include <sys/types.h>
13225 /* Check that off_t can represent 2**63 - 1 correctly.
13226 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13227 since some C++ compilers masquerading as C compilers
13228 incorrectly reject 9223372036854775807. */
13229 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13230 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13231 && LARGE_OFF_T % 2147483647 == 1)
13241 rm -f "conftest.$ac_objext"
13242 if { (eval echo "$as_me:13242: \"$ac_compile\"") >&5
13243 (eval $ac_compile) 2>&5
13245 echo "$as_me:13245: \$? = $ac_status" >&5
13246 (exit "$ac_status"); } &&
13247 { ac_try='test -s "conftest.$ac_objext"'
13248 { (eval echo "$as_me:13248: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13251 echo "$as_me:13251: \$? = $ac_status" >&5
13252 (exit "$ac_status"); }; }; then
13253 ac_cv_sys_large_files=1; break
13255 echo "$as_me: failed program was:" >&5
13256 cat "conftest.$ac_ext" >&5
13258 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13262 echo "$as_me:13262: result: $ac_cv_sys_large_files" >&5
13263 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
13264 if test "$ac_cv_sys_large_files" != no; then
13266 cat >>confdefs.h <<EOF
13267 #define _LARGE_FILES $ac_cv_sys_large_files
13274 if test "$enable_largefile" != no ; then
13275 echo "$as_me:13275: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13276 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13277 if test "${ac_cv_sys_largefile_source+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 ac_cv_sys_largefile_source=no
13282 cat >"conftest.$ac_ext" <<_ACEOF
13283 #line 13283 "configure"
13284 #include "confdefs.h"
13294 rm -f "conftest.$ac_objext"
13295 if { (eval echo "$as_me:13295: \"$ac_compile\"") >&5
13296 (eval $ac_compile) 2>&5
13298 echo "$as_me:13298: \$? = $ac_status" >&5
13299 (exit "$ac_status"); } &&
13300 { ac_try='test -s "conftest.$ac_objext"'
13301 { (eval echo "$as_me:13301: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13304 echo "$as_me:13304: \$? = $ac_status" >&5
13305 (exit "$ac_status"); }; }; then
13308 echo "$as_me: failed program was:" >&5
13309 cat "conftest.$ac_ext" >&5
13311 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13312 cat >"conftest.$ac_ext" <<_ACEOF
13313 #line 13313 "configure"
13314 #include "confdefs.h"
13315 #define _LARGEFILE_SOURCE 1
13325 rm -f "conftest.$ac_objext"
13326 if { (eval echo "$as_me:13326: \"$ac_compile\"") >&5
13327 (eval $ac_compile) 2>&5
13329 echo "$as_me:13329: \$? = $ac_status" >&5
13330 (exit "$ac_status"); } &&
13331 { ac_try='test -s "conftest.$ac_objext"'
13332 { (eval echo "$as_me:13332: \"$ac_try\"") >&5
13333 (eval $ac_try) 2>&5
13335 echo "$as_me:13335: \$? = $ac_status" >&5
13336 (exit "$ac_status"); }; }; then
13337 ac_cv_sys_largefile_source=1; break
13339 echo "$as_me: failed program was:" >&5
13340 cat "conftest.$ac_ext" >&5
13342 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13346 echo "$as_me:13346: result: $ac_cv_sys_largefile_source" >&5
13347 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13348 if test "$ac_cv_sys_largefile_source" != no; then
13350 cat >>confdefs.h <<EOF
13351 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13357 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13358 # in glibc 2.1.3, but that breaks too many other things.
13359 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13360 echo "$as_me:13360: checking for fseeko" >&5
13361 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13362 if test "${ac_cv_func_fseeko+set}" = set; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13365 cat >"conftest.$ac_ext" <<_ACEOF
13366 #line 13366 "configure"
13367 #include "confdefs.h"
13372 return fseeko && fseeko (stdin, 0, 0);
13377 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13378 if { (eval echo "$as_me:13378: \"$ac_link\"") >&5
13379 (eval $ac_link) 2>&5
13381 echo "$as_me:13381: \$? = $ac_status" >&5
13382 (exit "$ac_status"); } &&
13383 { ac_try='test -s "conftest$ac_exeext"'
13384 { (eval echo "$as_me:13384: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13387 echo "$as_me:13387: \$? = $ac_status" >&5
13388 (exit "$ac_status"); }; }; then
13389 ac_cv_func_fseeko=yes
13391 echo "$as_me: failed program was:" >&5
13392 cat "conftest.$ac_ext" >&5
13393 ac_cv_func_fseeko=no
13395 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13397 echo "$as_me:13397: result: $ac_cv_func_fseeko" >&5
13398 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13399 if test $ac_cv_func_fseeko = yes; then
13401 cat >>confdefs.h <<\EOF
13402 #define HAVE_FSEEKO 1
13407 # Normally we would collect these definitions in the config.h,
13408 # but (like _XOPEN_SOURCE), some environments rely on having these
13409 # defined before any of the system headers are included. Another
13410 # case comes up with C++, e.g., on AIX the compiler compiles the
13411 # header files by themselves before looking at the body files it is
13412 # told to compile. For ncurses, those header files do not include
13414 if test "$ac_cv_sys_large_files" != no
13417 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13418 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
13421 if test "$ac_cv_sys_largefile_source" != no
13424 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13425 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
13428 if test "$ac_cv_sys_file_offset_bits" != no
13431 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13432 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
13436 echo "$as_me:13436: checking whether to use struct dirent64" >&5
13437 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
13438 if test "${cf_cv_struct_dirent64+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13442 cat >"conftest.$ac_ext" <<_ACEOF
13443 #line 13443 "configure"
13444 #include "confdefs.h"
13446 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
13447 #include <sys/types.h>
13448 #include <dirent.h>
13454 /* if transitional largefile support is setup, this is true */
13455 extern struct dirent64 * readdir(DIR *);
13456 struct dirent64 *x = readdir((DIR *)0);
13457 struct dirent *y = readdir((DIR *)0);
13465 rm -f "conftest.$ac_objext"
13466 if { (eval echo "$as_me:13466: \"$ac_compile\"") >&5
13467 (eval $ac_compile) 2>&5
13469 echo "$as_me:13469: \$? = $ac_status" >&5
13470 (exit "$ac_status"); } &&
13471 { ac_try='test -s "conftest.$ac_objext"'
13472 { (eval echo "$as_me:13472: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13475 echo "$as_me:13475: \$? = $ac_status" >&5
13476 (exit "$ac_status"); }; }; then
13477 cf_cv_struct_dirent64=yes
13479 echo "$as_me: failed program was:" >&5
13480 cat "conftest.$ac_ext" >&5
13481 cf_cv_struct_dirent64=no
13483 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13486 echo "$as_me:13486: result: $cf_cv_struct_dirent64" >&5
13487 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
13488 test "$cf_cv_struct_dirent64" = yes &&
13489 cat >>confdefs.h <<\EOF
13490 #define HAVE_STRUCT_DIRENT64 1
13495 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
13496 echo "$as_me:13496: checking if you want tparm not to use X/Open fixed-parameter list" >&5
13497 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
13499 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
13500 if test "${enable_tparm_varargs+set}" = set; then
13501 enableval="$enable_tparm_varargs"
13502 with_tparm_varargs=$enableval
13504 with_tparm_varargs=yes
13506 echo "$as_me:13506: result: $with_tparm_varargs" >&5
13507 echo "${ECHO_T}$with_tparm_varargs" >&6
13508 NCURSES_TPARM_VARARGS=0
13509 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
13511 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
13512 if test "$with_ticlib" != no ; then
13513 echo "$as_me:13513: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
13514 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
13516 # Check whether --enable-tic-depends or --disable-tic-depends was given.
13517 if test "${enable_tic_depends+set}" = set; then
13518 enableval="$enable_tic_depends"
13519 with_tic_depends=$enableval
13521 with_tic_depends=yes
13523 echo "$as_me:13523: result: $with_tic_depends" >&5
13524 echo "${ECHO_T}$with_tic_depends" >&6
13526 with_tic_depends=no
13529 ### use option --disable-wattr-macros to suppress wattr* macros from curses.h
13530 echo "$as_me:13530: checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition" >&5
13531 echo $ECHO_N "checking if you want to suppress wattr* macros to help with ncurses5/ncurses6 transition... $ECHO_C" >&6
13533 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
13534 if test "${enable_wattr_macros+set}" = set; then
13535 enableval="$enable_wattr_macros"
13536 with_wattr_macros=$enableval
13538 with_wattr_macros=yes
13540 if [ "x$with_wattr_macros" != xyes ]; then
13541 NCURSES_WATTR_MACROS=0
13542 echo "$as_me:13542: result: yes" >&5
13543 echo "${ECHO_T}yes" >&6
13545 NCURSES_WATTR_MACROS=1
13546 echo "$as_me:13546: result: no" >&5
13547 echo "${ECHO_T}no" >&6
13550 echo "$as_me:13550: checking for X11 rgb file" >&5
13551 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
13553 # Check whether --with-x11-rgb or --without-x11-rgb was given.
13554 if test "${with_x11_rgb+set}" = set; then
13555 withval="$with_x11_rgb"
13561 if test "x$RGB_PATH" = xauto
13563 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
13565 /opt/local/share/X11/rgb.txt \
13566 /opt/X11/share/X11/rgb.txt \
13567 /usr/share/X11/rgb.txt \
13568 /usr/X11/share/X11/rgb.txt \
13569 /usr/X11/lib/X11/rgb.txt \
13570 /usr/lib/X11/rgb.txt \
13572 /usr/pkg/lib/X11/rgb.txt \
13573 /usr/X11R7/lib/X11/rgb.txt \
13574 /usr/X11R6/lib/X11/rgb.txt \
13575 /usr/X11R5/lib/X11/rgb.txt \
13576 /usr/X11R4/lib/X11/rgb.txt \
13577 /usr/local/lib/X11/rgb.txt \
13578 /usr/local/share/X11/rgb.txt \
13579 /usr/lib64/X11/rgb.txt
13581 if test -f "$cf_path" ; then
13582 RGB_PATH="$cf_path"
13589 if test "x$prefix" != xNONE; then
13590 cf_path_syntax="$prefix"
13592 cf_path_syntax="$ac_default_prefix"
13595 case ".$cf_path" in
13596 (.\$\(*\)*|.\'*\'*)
13600 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
13602 (.\$\{*prefix\}*|.\$\{*dir\}*)
13603 eval cf_path="$cf_path"
13604 case ".$cf_path" in
13606 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
13611 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
13614 { { echo "$as_me:13614: error: expected a pathname, not \"$cf_path\"" >&5
13615 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
13616 { (exit 1); exit 1; }; }
13622 echo "$as_me:13622: result: $RGB_PATH" >&5
13623 echo "${ECHO_T}$RGB_PATH" >&6
13625 cat >>confdefs.h <<EOF
13626 #define RGB_PATH "$cf_path"
13630 if test "$RGB_PATH" = no
13635 ### use option --with-bool to override bool's type
13636 echo "$as_me:13636: checking for type of bool" >&5
13637 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
13639 # Check whether --with-bool or --without-bool was given.
13640 if test "${with_bool+set}" = set; then
13641 withval="$with_bool"
13642 NCURSES_BOOL="$withval"
13646 echo "$as_me:13646: result: $NCURSES_BOOL" >&5
13647 echo "${ECHO_T}$NCURSES_BOOL" >&6
13649 echo "$as_me:13649: checking for alternate terminal capabilities file" >&5
13650 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
13652 # Check whether --with-caps or --without-caps was given.
13653 if test "${with_caps+set}" = set; then
13654 withval="$with_caps"
13655 TERMINFO_CAPS=Caps.$withval
13659 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
13660 echo "$as_me:13660: result: $TERMINFO_CAPS" >&5
13661 echo "${ECHO_T}$TERMINFO_CAPS" >&6
13663 ### use option --with-chtype to override chtype's type
13664 echo "$as_me:13664: checking for type of chtype" >&5
13665 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
13667 # Check whether --with-chtype or --without-chtype was given.
13668 if test "${with_chtype+set}" = set; then
13669 withval="$with_chtype"
13670 NCURSES_CHTYPE="$withval"
13672 NCURSES_CHTYPE=$cf_dft_chtype
13674 echo "$as_me:13674: result: $NCURSES_CHTYPE" >&5
13675 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
13677 ### use option --with-ospeed to override ospeed's type
13678 echo "$as_me:13678: checking for type of ospeed" >&5
13679 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
13681 # Check whether --with-ospeed or --without-ospeed was given.
13682 if test "${with_ospeed+set}" = set; then
13683 withval="$with_ospeed"
13684 NCURSES_OSPEED="$withval"
13686 NCURSES_OSPEED=short
13688 echo "$as_me:13688: result: $NCURSES_OSPEED" >&5
13689 echo "${ECHO_T}$NCURSES_OSPEED" >&6
13691 ### use option --with-mmask-t to override mmask_t's type
13692 echo "$as_me:13692: checking for type of mmask_t" >&5
13693 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
13695 # Check whether --with-mmask-t or --without-mmask-t was given.
13696 if test "${with_mmask_t+set}" = set; then
13697 withval="$with_mmask_t"
13698 NCURSES_MMASK_T="$withval"
13700 NCURSES_MMASK_T=$cf_dft_mmask_t
13702 echo "$as_me:13702: result: $NCURSES_MMASK_T" >&5
13703 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
13705 ### use option --with-ccharw-max to override CCHARW_MAX size
13706 echo "$as_me:13706: checking for size CCHARW_MAX" >&5
13707 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
13709 # Check whether --with-ccharw-max or --without-ccharw-max was given.
13710 if test "${with_ccharw_max+set}" = set; then
13711 withval="$with_ccharw_max"
13712 NCURSES_CCHARW_MAX="$withval"
13714 NCURSES_CCHARW_MAX=5
13716 echo "$as_me:13716: result: $NCURSES_CCHARW_MAX" >&5
13717 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
13719 echo "$as_me:13719: checking for ANSI C header files" >&5
13720 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13721 if test "${ac_cv_header_stdc+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13724 cat >"conftest.$ac_ext" <<_ACEOF
13725 #line 13725 "configure"
13726 #include "confdefs.h"
13727 #include <stdlib.h>
13728 #include <stdarg.h>
13729 #include <string.h>
13733 if { (eval echo "$as_me:13733: \"$ac_cpp "conftest.$ac_ext"\"") >&5
13734 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
13736 $EGREP -v '^ *\+' conftest.er1 >conftest.err
13738 cat conftest.err >&5
13739 echo "$as_me:13739: \$? = $ac_status" >&5
13740 (exit "$ac_status"); } >/dev/null; then
13741 if test -s conftest.err; then
13742 ac_cpp_err=$ac_c_preproc_warn_flag
13749 if test -z "$ac_cpp_err"; then
13750 ac_cv_header_stdc=yes
13752 echo "$as_me: failed program was:" >&5
13753 cat "conftest.$ac_ext" >&5
13754 ac_cv_header_stdc=no
13756 rm -f conftest.err "conftest.$ac_ext"
13758 if test $ac_cv_header_stdc = yes; then
13759 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13760 cat >"conftest.$ac_ext" <<_ACEOF
13761 #line 13761 "configure"
13762 #include "confdefs.h"
13763 #include <string.h>
13766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13767 $EGREP "memchr" >/dev/null 2>&1; then
13770 ac_cv_header_stdc=no
13776 if test $ac_cv_header_stdc = yes; then
13777 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13778 cat >"conftest.$ac_ext" <<_ACEOF
13779 #line 13779 "configure"
13780 #include "confdefs.h"
13781 #include <stdlib.h>
13784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13785 $EGREP "free" >/dev/null 2>&1; then
13788 ac_cv_header_stdc=no
13794 if test $ac_cv_header_stdc = yes; then
13795 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13796 if test "$cross_compiling" = yes; then
13799 cat >"conftest.$ac_ext" <<_ACEOF
13800 #line 13800 "configure"
13801 #include "confdefs.h"
13803 #if ((' ' & 0x0FF) == 0x020)
13804 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13805 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13807 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13808 || ('j' <= (c) && (c) <= 'r') \
13809 || ('s' <= (c) && (c) <= 'z'))
13810 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13813 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13818 for (i = 0; i < 256; i++)
13819 if (XOR (islower (i), ISLOWER (i))
13820 || toupper (i) != TOUPPER (i))
13821 $ac_main_return(2);
13822 $ac_main_return (0);
13825 rm -f "conftest$ac_exeext"
13826 if { (eval echo "$as_me:13826: \"$ac_link\"") >&5
13827 (eval $ac_link) 2>&5
13829 echo "$as_me:13829: \$? = $ac_status" >&5
13830 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
13831 { (eval echo "$as_me:13831: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13834 echo "$as_me:13834: \$? = $ac_status" >&5
13835 (exit "$ac_status"); }; }; then
13838 echo "$as_me: program exited with status $ac_status" >&5
13839 echo "$as_me: failed program was:" >&5
13840 cat "conftest.$ac_ext" >&5
13841 ac_cv_header_stdc=no
13843 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
13847 echo "$as_me:13847: result: $ac_cv_header_stdc" >&5
13848 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13849 if test $ac_cv_header_stdc = yes; then
13851 cat >>confdefs.h <<\EOF
13852 #define STDC_HEADERS 1
13857 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
13859 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13860 inttypes.h stdint.h unistd.h
13862 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13863 echo "$as_me:13863: checking for $ac_header" >&5
13864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13868 cat >"conftest.$ac_ext" <<_ACEOF
13869 #line 13869 "configure"
13870 #include "confdefs.h"
13871 $ac_includes_default
13872 #include <$ac_header>
13874 rm -f "conftest.$ac_objext"
13875 if { (eval echo "$as_me:13875: \"$ac_compile\"") >&5
13876 (eval $ac_compile) 2>&5
13878 echo "$as_me:13878: \$? = $ac_status" >&5
13879 (exit "$ac_status"); } &&
13880 { ac_try='test -s "conftest.$ac_objext"'
13881 { (eval echo "$as_me:13881: \"$ac_try\"") >&5
13882 (eval $ac_try) 2>&5
13884 echo "$as_me:13884: \$? = $ac_status" >&5
13885 (exit "$ac_status"); }; }; then
13886 eval "$as_ac_Header=yes"
13888 echo "$as_me: failed program was:" >&5
13889 cat "conftest.$ac_ext" >&5
13890 eval "$as_ac_Header=no"
13892 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13894 echo "$as_me:13894: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
13895 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
13896 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
13897 cat >>confdefs.h <<EOF
13898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13904 echo "$as_me:13904: checking for signed char" >&5
13905 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
13906 if test "${ac_cv_type_signed_char+set}" = set; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13909 cat >"conftest.$ac_ext" <<_ACEOF
13910 #line 13910 "configure"
13911 #include "confdefs.h"
13912 $ac_includes_default
13916 if ((signed char *) 0)
13918 if (sizeof (signed char))
13924 rm -f "conftest.$ac_objext"
13925 if { (eval echo "$as_me:13925: \"$ac_compile\"") >&5
13926 (eval $ac_compile) 2>&5
13928 echo "$as_me:13928: \$? = $ac_status" >&5
13929 (exit "$ac_status"); } &&
13930 { ac_try='test -s "conftest.$ac_objext"'
13931 { (eval echo "$as_me:13931: \"$ac_try\"") >&5
13932 (eval $ac_try) 2>&5
13934 echo "$as_me:13934: \$? = $ac_status" >&5
13935 (exit "$ac_status"); }; }; then
13936 ac_cv_type_signed_char=yes
13938 echo "$as_me: failed program was:" >&5
13939 cat "conftest.$ac_ext" >&5
13940 ac_cv_type_signed_char=no
13942 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13944 echo "$as_me:13944: result: $ac_cv_type_signed_char" >&5
13945 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
13947 echo "$as_me:13947: checking size of signed char" >&5
13948 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
13949 if test "${ac_cv_sizeof_signed_char+set}" = set; then
13950 echo $ECHO_N "(cached) $ECHO_C" >&6
13952 if test "$ac_cv_type_signed_char" = yes; then
13953 if test "$cross_compiling" = yes; then
13954 # Depending upon the size, compute the lo and hi bounds.
13955 cat >"conftest.$ac_ext" <<_ACEOF
13956 #line 13956 "configure"
13957 #include "confdefs.h"
13958 $ac_includes_default
13962 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
13967 rm -f "conftest.$ac_objext"
13968 if { (eval echo "$as_me:13968: \"$ac_compile\"") >&5
13969 (eval $ac_compile) 2>&5
13971 echo "$as_me:13971: \$? = $ac_status" >&5
13972 (exit "$ac_status"); } &&
13973 { ac_try='test -s "conftest.$ac_objext"'
13974 { (eval echo "$as_me:13974: \"$ac_try\"") >&5
13975 (eval $ac_try) 2>&5
13977 echo "$as_me:13977: \$? = $ac_status" >&5
13978 (exit "$ac_status"); }; }; then
13981 cat >"conftest.$ac_ext" <<_ACEOF
13982 #line 13982 "configure"
13983 #include "confdefs.h"
13984 $ac_includes_default
13988 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
13993 rm -f "conftest.$ac_objext"
13994 if { (eval echo "$as_me:13994: \"$ac_compile\"") >&5
13995 (eval $ac_compile) 2>&5
13997 echo "$as_me:13997: \$? = $ac_status" >&5
13998 (exit "$ac_status"); } &&
13999 { ac_try='test -s "conftest.$ac_objext"'
14000 { (eval echo "$as_me:14000: \"$ac_try\"") >&5
14001 (eval $ac_try) 2>&5
14003 echo "$as_me:14003: \$? = $ac_status" >&5
14004 (exit "$ac_status"); }; }; then
14005 ac_hi=$ac_mid; break
14007 echo "$as_me: failed program was:" >&5
14008 cat "conftest.$ac_ext" >&5
14009 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
14011 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14014 echo "$as_me: failed program was:" >&5
14015 cat "conftest.$ac_ext" >&5
14018 cat >"conftest.$ac_ext" <<_ACEOF
14019 #line 14019 "configure"
14020 #include "confdefs.h"
14021 $ac_includes_default
14025 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
14030 rm -f "conftest.$ac_objext"
14031 if { (eval echo "$as_me:14031: \"$ac_compile\"") >&5
14032 (eval $ac_compile) 2>&5
14034 echo "$as_me:14034: \$? = $ac_status" >&5
14035 (exit "$ac_status"); } &&
14036 { ac_try='test -s "conftest.$ac_objext"'
14037 { (eval echo "$as_me:14037: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14040 echo "$as_me:14040: \$? = $ac_status" >&5
14041 (exit "$ac_status"); }; }; then
14042 ac_lo=$ac_mid; break
14044 echo "$as_me: failed program was:" >&5
14045 cat "conftest.$ac_ext" >&5
14046 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
14048 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14051 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14052 # Binary search between lo and hi bounds.
14053 while test "x$ac_lo" != "x$ac_hi"; do
14054 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
14055 cat >"conftest.$ac_ext" <<_ACEOF
14056 #line 14056 "configure"
14057 #include "confdefs.h"
14058 $ac_includes_default
14062 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14067 rm -f "conftest.$ac_objext"
14068 if { (eval echo "$as_me:14068: \"$ac_compile\"") >&5
14069 (eval $ac_compile) 2>&5
14071 echo "$as_me:14071: \$? = $ac_status" >&5
14072 (exit "$ac_status"); } &&
14073 { ac_try='test -s "conftest.$ac_objext"'
14074 { (eval echo "$as_me:14074: \"$ac_try\"") >&5
14075 (eval $ac_try) 2>&5
14077 echo "$as_me:14077: \$? = $ac_status" >&5
14078 (exit "$ac_status"); }; }; then
14081 echo "$as_me: failed program was:" >&5
14082 cat "conftest.$ac_ext" >&5
14083 ac_lo=`expr "$ac_mid" + 1`
14085 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14087 ac_cv_sizeof_signed_char=$ac_lo
14089 if test "$cross_compiling" = yes; then
14090 { { echo "$as_me:14090: error: cannot run test program while cross compiling" >&5
14091 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14092 { (exit 1); exit 1; }; }
14094 cat >"conftest.$ac_ext" <<_ACEOF
14095 #line 14095 "configure"
14096 #include "confdefs.h"
14097 $ac_includes_default
14101 FILE *f = fopen ("conftest.val", "w");
14103 $ac_main_return (1);
14104 fprintf (f, "%ld", (long)(sizeof (signed char)));
14110 rm -f "conftest$ac_exeext"
14111 if { (eval echo "$as_me:14111: \"$ac_link\"") >&5
14112 (eval $ac_link) 2>&5
14114 echo "$as_me:14114: \$? = $ac_status" >&5
14115 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
14116 { (eval echo "$as_me:14116: \"$ac_try\"") >&5
14117 (eval $ac_try) 2>&5
14119 echo "$as_me:14119: \$? = $ac_status" >&5
14120 (exit "$ac_status"); }; }; then
14121 ac_cv_sizeof_signed_char=`cat conftest.val`
14123 echo "$as_me: program exited with status $ac_status" >&5
14124 echo "$as_me: failed program was:" >&5
14125 cat "conftest.$ac_ext" >&5
14127 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14132 ac_cv_sizeof_signed_char=0
14135 echo "$as_me:14135: result: $ac_cv_sizeof_signed_char" >&5
14136 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
14137 cat >>confdefs.h <<EOF
14138 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14141 if test "$ac_cv_sizeof_signed_char" = 1 ; then
14142 NCURSES_SBOOL="signed char"
14144 NCURSES_SBOOL="char"
14146 echo "$as_me:14146: checking if you want to use signed Boolean array in term.h" >&5
14147 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
14149 # Check whether --enable-signed-char or --disable-signed-char was given.
14150 if test "${enable_signed_char+set}" = set; then
14151 enableval="$enable_signed_char"
14152 with_signed_char=$enableval
14154 with_signed_char=no
14156 echo "$as_me:14156: result: $with_signed_char" >&5
14157 echo "${ECHO_T}$with_signed_char" >&6
14158 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
14160 ### use option --with-tparm-arg to override tparm's argument type
14161 echo "$as_me:14161: checking for type of tparm args" >&5
14162 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
14164 # Check whether --with-tparm-arg or --without-tparm-arg was given.
14165 if test "${with_tparm_arg+set}" = set; then
14166 withval="$with_tparm_arg"
14167 NCURSES_TPARM_ARG="$withval"
14169 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
14171 echo "$as_me:14171: result: $NCURSES_TPARM_ARG" >&5
14172 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
14174 ### Enable compiling-in rcs id's
14175 echo "$as_me:14175: checking if RCS identifiers should be compiled-in" >&5
14176 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
14178 # Check whether --with-rcs-ids or --without-rcs-ids was given.
14179 if test "${with_rcs_ids+set}" = set; then
14180 withval="$with_rcs_ids"
14181 with_rcs_ids=$withval
14185 echo "$as_me:14185: result: $with_rcs_ids" >&5
14186 echo "${ECHO_T}$with_rcs_ids" >&6
14187 test "x$with_rcs_ids" = xyes &&
14188 cat >>confdefs.h <<\EOF
14189 #define USE_RCS_IDS 1
14192 ###############################################################################
14194 echo "$as_me:14194: checking format of man-pages" >&5
14195 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
14197 # Check whether --with-manpage-format or --without-manpage-format was given.
14198 if test "${with_manpage_format+set}" = set; then
14199 withval="$with_manpage_format"
14200 MANPAGE_FORMAT=$withval
14202 MANPAGE_FORMAT=unknown
14205 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
14206 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
14210 case "$MANPAGE_FORMAT" in
14212 if test -z "$MANPATH" ; then
14213 MANPATH="/usr/man:/usr/share/man"
14216 # look for the 'date' man-page (it's most likely to be installed!)
14222 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
14223 for cf_dir in $MANPATH; do
14224 test -z "$cf_dir" && cf_dir=/usr/man
14225 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
14227 cf_test=`echo "$cf_name" | sed -e 's/*//'`
14228 if test "x$cf_test" = "x$cf_name" ; then
14231 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
14232 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
14233 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
14234 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
14248 # if we found a match in either man* or cat*, stop looking
14249 if test -n "$MANPAGE_FORMAT" ; then
14251 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
14252 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
14258 test "$cf_found" = yes && break
14261 # only check the first directory in $MANPATH where we find manpages
14262 if test -n "$MANPAGE_FORMAT" ; then
14266 # if we did not find the example, just assume it is normal
14267 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
14271 for cf_option in $MANPAGE_FORMAT; do
14272 case "$cf_option" in
14273 (gzip|compress|BSDI|normal|formatted|catonly)
14276 cf_unknown="$cf_unknown $cf_option"
14283 echo "$as_me:14283: result: $MANPAGE_FORMAT" >&5
14284 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
14285 if test -n "$cf_unknown" ; then
14286 { echo "$as_me:14286: WARNING: Unexpected manpage-format $cf_unknown" >&5
14287 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
14290 echo "$as_me:14290: checking for manpage renaming" >&5
14291 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
14293 # Check whether --with-manpage-renames or --without-manpage-renames was given.
14294 if test "${with_manpage_renames+set}" = set; then
14295 withval="$with_manpage_renames"
14296 MANPAGE_RENAMES=$withval
14298 MANPAGE_RENAMES=yes
14301 case ".$MANPAGE_RENAMES" in
14305 # Debian 'man' program?
14306 if test -f /etc/debian_version ; then
14307 MANPAGE_RENAMES=`cd "$srcdir" && pwd`/man/man_db.renames
14314 if test "$MANPAGE_RENAMES" != no ; then
14315 if test -f "$srcdir/man/$MANPAGE_RENAMES" ; then
14316 MANPAGE_RENAMES=`cd "$srcdir/man" && pwd`/$MANPAGE_RENAMES
14317 elif test ! -f "$MANPAGE_RENAMES" ; then
14318 { { echo "$as_me:14318: error: not a filename: $MANPAGE_RENAMES" >&5
14319 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
14320 { (exit 1); exit 1; }; }
14323 test ! -d man && mkdir man
14325 # Construct a sed-script to perform renaming within man-pages
14326 if test -n "$MANPAGE_RENAMES" ; then
14327 test ! -d man && mkdir man
14328 $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
14332 echo "$as_me:14332: result: $MANPAGE_RENAMES" >&5
14333 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
14335 echo "$as_me:14335: checking if manpage aliases will be installed" >&5
14336 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
14338 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
14339 if test "${with_manpage_aliases+set}" = set; then
14340 withval="$with_manpage_aliases"
14341 MANPAGE_ALIASES=$withval
14343 MANPAGE_ALIASES=yes
14346 echo "$as_me:14346: result: $MANPAGE_ALIASES" >&5
14347 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
14351 cf_use_symlinks=yes
14358 MANPAGE_SYMLINKS=no
14359 if test "$MANPAGE_ALIASES" = yes ; then
14360 echo "$as_me:14360: checking if manpage symlinks should be used" >&5
14361 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
14363 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
14364 if test "${with_manpage_symlinks+set}" = set; then
14365 withval="$with_manpage_symlinks"
14366 MANPAGE_SYMLINKS=$withval
14368 MANPAGE_SYMLINKS=$cf_use_symlinks
14371 if test "$$cf_use_symlinks" = no; then
14372 if test "$MANPAGE_SYMLINKS" = yes ; then
14373 { echo "$as_me:14373: WARNING: cannot make symlinks" >&5
14374 echo "$as_me: WARNING: cannot make symlinks" >&2;}
14375 MANPAGE_SYMLINKS=no
14379 echo "$as_me:14379: result: $MANPAGE_SYMLINKS" >&5
14380 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
14383 echo "$as_me:14383: checking for manpage tbl" >&5
14384 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
14386 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
14387 if test "${with_manpage_tbl+set}" = set; then
14388 withval="$with_manpage_tbl"
14389 MANPAGE_TBL=$withval
14394 echo "$as_me:14394: result: $MANPAGE_TBL" >&5
14395 echo "${ECHO_T}$MANPAGE_TBL" >&6
14397 if test "$prefix" = "NONE" ; then
14398 cf_prefix="$ac_default_prefix"
14400 cf_prefix="$prefix"
14403 case "$MANPAGE_FORMAT" in
14418 test ! -d man && mkdir man
14422 case "$MANPAGE_FORMAT" in
14425 cf_compress=compress
14433 cf_edit_man=./edit_man.sh
14434 cf_man_alias=`pwd`/man_alias.sed
14436 cat >$cf_edit_man <<CF_EOF
14438 # this script is generated by the configure-script CF_MAN_PAGES macro.
14440 prefix="$cf_prefix"
14441 datarootdir="$datarootdir"
14444 NCURSES_MAJOR="$NCURSES_MAJOR"
14445 NCURSES_MINOR="$NCURSES_MINOR"
14446 NCURSES_PATCH="$NCURSES_PATCH"
14448 NCURSES_OSPEED="$NCURSES_OSPEED"
14449 TERMINFO="$TERMINFO"
14452 INSTALL_DATA="$INSTALL_DATA"
14454 transform="$program_transform_name"
14456 TMP=\${TMPDIR:=/tmp}/man\$\$
14457 trap "rm -f \$TMP" 0 1 2 3 15
14469 top_srcdir=\$srcdir/..
14472 if test "\$form" = normal ; then
14473 if test "$cf_format" = yes ; then
14474 if test "$cf_inboth" = no ; then
14475 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
14479 cf_subdir=\$mandir/man
14480 cf_tables=$MANPAGE_TBL
14482 cf_subdir=\$mandir/cat
14486 # process the list of source-files
14487 for i in "\$@" ; do
14491 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
14492 if test "\$verb" = installing ; then
14493 if test ! -d "\$cf_subdir\${section}" ; then
14494 mkdir -p "\$cf_subdir\$section"
14498 # replace variables in man page
14499 if test ! -f "$cf_man_alias" ; then
14500 cat >>$cf_man_alias <<-CF_EOF2
14501 s,@DATADIR@,\$datadir,g
14502 s,@TERMINFO@,\${TERMINFO:="no default value"},g
14503 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
14504 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
14505 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
14506 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
14507 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
14510 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
14512 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14513 cf_name=`echo "$cf_name" | sed "$program_transform_name"`
14514 cat >>$cf_edit_man <<-CF_EOF
14515 s,@$cf_NAME@,$cf_name,g
14519 cat >>$cf_edit_man <<CF_EOF
14521 echo "...made $cf_man_alias"
14525 cf_source=\`basename "\$i"\`
14526 inalias=\$cf_source
14527 test ! -f "\$inalias" && inalias="\$srcdir/\$inalias"
14528 if test ! -f "\$inalias" ; then
14529 echo ".. skipped \$cf_source"
14534 if test "$MANPAGE_ALIASES" != no ; then
14535 cat >>$cf_edit_man <<CF_EOF
14537 test "$with_curses_h" = yes && nCurses=ncurses.3x
14538 aliases=\`sed -f "\$top_srcdir/man/manlinks.sed" "\$inalias" |sed -f "$cf_man_alias" | sort -u; test "\$inalias" = "\$nCurses" && echo curses\`
14542 if test "$MANPAGE_RENAMES" = no ; then
14543 cat >>$cf_edit_man <<CF_EOF
14544 # perform program transformations for section 1 man pages
14545 if test \$section = 1 ; then
14546 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
14548 cf_target=\$cf_subdir\${section}/\$cf_source
14552 cat >>$cf_edit_man <<CF_EOF
14553 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
14554 if test -z "\$cf_target" ; then
14555 echo "? missing rename for \$cf_source"
14556 cf_target="\$cf_source"
14558 cf_target="\$cf_subdir\${section}/\${cf_target}"
14563 cat >>$cf_edit_man <<CF_EOF
14564 sed -f "$cf_man_alias" \\
14567 if test -f "$MANPAGE_RENAMES" ; then
14568 cat >>$cf_edit_man <<CF_EOF
14569 < "\$i" | sed -f `pwd`/edit_man.sed >\$TMP
14572 cat >>$cf_edit_man <<CF_EOF
14577 cat >>$cf_edit_man <<CF_EOF
14578 if test \$cf_tables = yes ; then
14579 tbl \$TMP >\$TMP.out
14584 if test "$with_overwrite" != yes ; then
14585 cat >>$cf_edit_man <<CF_EOF
14586 sed -e "/\\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
14591 if test "$with_curses_h" != yes ; then
14592 cat >>$cf_edit_man <<CF_EOF
14593 sed -e "/\\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
14598 cat >>$cf_edit_man <<CF_EOF
14599 if test "\$form" = format ; then
14600 nroff -man \$TMP >\$TMP.out
14605 if test -n "$cf_compress" ; then
14606 cat >>$cf_edit_man <<CF_EOF
14607 if test "\$verb" = installing ; then
14608 if ( "$cf_compress" -f \$TMP )
14610 mv \$TMP.$cf_so_strip \$TMP
14613 cf_target="\$cf_target.$cf_so_strip"
14617 case "$MANPAGE_FORMAT" in
14619 cat >>$cf_edit_man <<CF_EOF
14620 if test "\$form" = format ; then
14621 # BSDI installs only .0 suffixes in the cat directories
14622 cf_target="\`echo \$cf_target|sed -e 's/\\.[1-9]\\+[a-z]*/.0/'\`"
14628 cat >>$cf_edit_man <<CF_EOF
14629 suffix=\`basename "\$cf_target" | sed -e 's%^[^.]*%%'\`
14630 if test "\$verb" = installing ; then
14631 echo "\$verb \$cf_target"
14632 \$INSTALL_DATA \$TMP "\$cf_target"
14633 test -d "\$cf_subdir\${section}" &&
14634 test -n "\$aliases" && (
14635 cd "\$cf_subdir\${section}" && (
14636 cf_source=\`echo "\$cf_target" |sed -e 's%^.*/\\([^/][^/]*/[^/][^/]*$\\)%\\1%'\`
14637 test -n "$cf_so_strip" && cf_source=\`echo "\$cf_source" |sed -e 's%\\.$cf_so_strip\$%%'\`
14638 cf_target=\`basename "\$cf_target"\`
14639 for cf_alias in \$aliases
14641 if test "\$section" = 1 ; then
14642 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
14645 if test "$MANPAGE_SYMLINKS" = yes ; then
14646 if test -f "\$cf_alias\${suffix}" ; then
14647 if ( cmp -s "\$cf_target" "\$cf_alias\${suffix}" )
14652 echo ".. \$verb alias \$cf_alias\${suffix}"
14656 cat >>$cf_edit_man <<CF_EOF
14657 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
14661 cat >>$cf_edit_man <<CF_EOF
14662 rm -f "\$cf_alias\${suffix}"
14663 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
14667 cat >>$cf_edit_man <<CF_EOF
14668 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
14669 echo ".so \$cf_source" >\$TMP
14671 if test -n "$cf_compress" ; then
14672 cat >>$cf_edit_man <<CF_EOF
14673 if test -n "$cf_so_strip" ; then
14674 "$cf_compress" -f \$TMP
14675 mv \$TMP.$cf_so_strip \$TMP
14679 cat >>$cf_edit_man <<CF_EOF
14680 echo ".. \$verb alias \$cf_alias\${suffix}"
14681 rm -f "\$cf_alias\${suffix}"
14682 \$INSTALL_DATA \$TMP "\$cf_alias\${suffix}"
14687 elif test "\$verb" = removing ; then
14688 test -f "\$cf_target" && (
14689 echo "\$verb \$cf_target"
14690 rm -f "\$cf_target"
14692 test -d "\$cf_subdir\${section}" &&
14693 test -n "\$aliases" && (
14694 cd "\$cf_subdir\${section}" && (
14695 for cf_alias in \$aliases
14697 if test "\$section" = 1 ; then
14698 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
14701 echo ".. \$verb alias \$cf_alias\${suffix}"
14702 rm -f "\$cf_alias\${suffix}"
14714 if test "$cf_inboth" = yes ; then
14715 if test "\$form" != format ; then
14716 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
14722 chmod 755 "$cf_edit_man"
14724 ###############################################################################
14726 ### Note that some functions (such as const) are normally disabled anyway.
14727 echo "$as_me:14727: checking if you want to build with function extensions" >&5
14728 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
14730 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
14731 if test "${enable_ext_funcs+set}" = set; then
14732 enableval="$enable_ext_funcs"
14733 with_ext_funcs=$enableval
14737 echo "$as_me:14737: result: $with_ext_funcs" >&5
14738 echo "${ECHO_T}$with_ext_funcs" >&6
14739 if test "x$with_ext_funcs" = xyes ; then
14740 NCURSES_EXT_FUNCS=1
14742 cat >>confdefs.h <<\EOF
14743 #define NCURSES_EXT_FUNCS 1
14746 cat >>confdefs.h <<\EOF
14747 #define HAVE_ASSUME_DEFAULT_COLORS 1
14750 cat >>confdefs.h <<\EOF
14751 #define HAVE_CURSES_VERSION 1
14754 cat >>confdefs.h <<\EOF
14755 #define HAVE_HAS_KEY 1
14758 cat >>confdefs.h <<\EOF
14759 #define HAVE_RESIZETERM 1
14762 cat >>confdefs.h <<\EOF
14763 #define HAVE_RESIZE_TERM 1
14766 cat >>confdefs.h <<\EOF
14767 #define HAVE_TERM_ENTRY_H 1
14770 cat >>confdefs.h <<\EOF
14771 #define HAVE_USE_DEFAULT_COLORS 1
14774 cat >>confdefs.h <<\EOF
14775 #define HAVE_USE_EXTENDED_NAMES 1
14778 cat >>confdefs.h <<\EOF
14779 #define HAVE_USE_SCREEN 1
14782 cat >>confdefs.h <<\EOF
14783 #define HAVE_USE_WINDOW 1
14786 cat >>confdefs.h <<\EOF
14787 #define HAVE_WRESIZE 1
14790 GENERATED_EXT_FUNCS=generated
14791 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
14793 NCURSES_EXT_FUNCS=0
14794 GENERATED_EXT_FUNCS=
14797 echo "$as_me:14797: checking if you want to build with SCREEN extensions" >&5
14798 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
14800 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
14801 if test "${enable_sp_funcs+set}" = set; then
14802 enableval="$enable_sp_funcs"
14803 with_sp_funcs=$enableval
14805 with_sp_funcs=$cf_dft_ext_spfuncs
14807 echo "$as_me:14807: result: $with_sp_funcs" >&5
14808 echo "${ECHO_T}$with_sp_funcs" >&6
14809 if test "x$with_sp_funcs" = xyes ; then
14812 cat >>confdefs.h <<\EOF
14813 #define NCURSES_SP_FUNCS 1
14816 cat >>confdefs.h <<\EOF
14817 #define HAVE_TPUTS_SP 1
14820 GENERATED_SP_FUNCS=generated
14823 GENERATED_SP_FUNCS=
14826 echo "$as_me:14826: checking if you want to build with terminal-driver" >&5
14827 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
14829 # Check whether --enable-term-driver or --disable-term-driver was given.
14830 if test "${enable_term_driver+set}" = set; then
14831 enableval="$enable_term_driver"
14832 with_term_driver=$enableval
14834 with_term_driver=no
14836 echo "$as_me:14836: result: $with_term_driver" >&5
14837 echo "${ECHO_T}$with_term_driver" >&6
14838 if test "x$with_term_driver" = xyes ; then
14840 cat >>confdefs.h <<\EOF
14841 #define USE_TERM_DRIVER 1
14844 if test "x$with_termlib" != xno ; then
14845 { { echo "$as_me:14845: error: The term-driver option conflicts with the termlib option" >&5
14846 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
14847 { (exit 1); exit 1; }; }
14849 if test "x$with_sp_funcs" != xyes ; then
14850 { { echo "$as_me:14850: error: The term-driver option relies upon sp-funcs" >&5
14851 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
14852 { (exit 1); exit 1; }; }
14856 ### use option --enable-const to turn on use of const beyond that in XSI.
14857 echo "$as_me:14857: checking for extended use of const keyword" >&5
14858 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
14860 # Check whether --enable-const or --disable-const was given.
14861 if test "${enable_const+set}" = set; then
14862 enableval="$enable_const"
14863 with_ext_const=$enableval
14865 with_ext_const=$cf_dft_ext_const
14867 echo "$as_me:14867: result: $with_ext_const" >&5
14868 echo "${ECHO_T}$with_ext_const" >&6
14869 NCURSES_CONST='/*nothing*/'
14870 if test "x$with_ext_const" = xyes ; then
14871 NCURSES_CONST=const
14874 ### use option --enable-ext-colors to turn on use of colors beyond 16.
14875 echo "$as_me:14875: checking if you want to use extended colors" >&5
14876 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
14878 # Check whether --enable-ext-colors or --disable-ext-colors was given.
14879 if test "${enable_ext_colors+set}" = set; then
14880 enableval="$enable_ext_colors"
14881 with_ext_colors=$enableval
14883 with_ext_colors=$cf_dft_ext_colors
14885 echo "$as_me:14885: result: $with_ext_colors" >&5
14886 echo "${ECHO_T}$with_ext_colors" >&6
14887 NCURSES_EXT_COLORS=0
14888 if test "x$with_ext_colors" = xyes ; then
14889 if test "x$with_widec" != xyes ; then
14890 { echo "$as_me:14890: WARNING: This option applies only to wide-character library" >&5
14891 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
14893 # cannot be ABI 5 since it changes sizeof(cchar_t)
14895 if test "${with_abi_version+set}" != set; then
14896 case "$cf_cv_rel_version" in
14898 cf_cv_rel_version=6.0
14899 cf_cv_abi_version=6
14900 { echo "$as_me:14900: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14901 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14906 NCURSES_EXT_COLORS=1
14908 cat >>confdefs.h <<\EOF
14909 #define NCURSES_EXT_COLORS 1
14912 cat >>confdefs.h <<\EOF
14913 #define HAVE_ALLOC_PAIR 1
14916 cat >>confdefs.h <<\EOF
14917 #define HAVE_INIT_EXTENDED_COLOR 1
14920 cat >>confdefs.h <<\EOF
14921 #define HAVE_RESET_COLOR_PAIRS 1
14927 ### use option --enable-ext-mouse to modify coding to support 5-button mice
14928 echo "$as_me:14928: checking if you want to use extended mouse encoding" >&5
14929 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
14931 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
14932 if test "${enable_ext_mouse+set}" = set; then
14933 enableval="$enable_ext_mouse"
14934 with_ext_mouse=$enableval
14936 with_ext_mouse=$cf_dft_ext_mouse
14938 echo "$as_me:14938: result: $with_ext_mouse" >&5
14939 echo "${ECHO_T}$with_ext_mouse" >&6
14940 NCURSES_MOUSE_VERSION=1
14941 if test "x$with_ext_mouse" = xyes ; then
14942 NCURSES_MOUSE_VERSION=2
14944 if test "${with_abi_version+set}" != set; then
14945 case "$cf_cv_rel_version" in
14947 cf_cv_rel_version=6.0
14948 cf_cv_abi_version=6
14949 { echo "$as_me:14949: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
14950 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
14957 ### use option --enable-ext-putwin to turn on extended screendumps
14958 echo "$as_me:14958: checking if you want to use extended putwin/screendump" >&5
14959 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
14961 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
14962 if test "${enable_ext_putwin+set}" = set; then
14963 enableval="$enable_ext_putwin"
14964 with_ext_putwin=$enableval
14966 with_ext_putwin=$cf_dft_ext_putwin
14968 echo "$as_me:14968: result: $with_ext_putwin" >&5
14969 echo "${ECHO_T}$with_ext_putwin" >&6
14970 if test "x$with_ext_putwin" = xyes ; then
14972 cat >>confdefs.h <<\EOF
14973 #define NCURSES_EXT_PUTWIN 1
14978 echo "$as_me:14978: checking if you want \$NCURSES_NO_PADDING code" >&5
14979 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
14981 # Check whether --enable-no-padding or --disable-no-padding was given.
14982 if test "${enable_no_padding+set}" = set; then
14983 enableval="$enable_no_padding"
14984 with_no_padding=$enableval
14986 with_no_padding=$with_ext_funcs
14988 echo "$as_me:14988: result: $with_no_padding" >&5
14989 echo "${ECHO_T}$with_no_padding" >&6
14990 test "x$with_no_padding" = xyes &&
14991 cat >>confdefs.h <<\EOF
14992 #define NCURSES_NO_PADDING 1
14995 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
14996 echo "$as_me:14996: checking if you want SIGWINCH handler" >&5
14997 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
14999 # Check whether --enable-sigwinch or --disable-sigwinch was given.
15000 if test "${enable_sigwinch+set}" = set; then
15001 enableval="$enable_sigwinch"
15002 with_sigwinch=$enableval
15004 with_sigwinch=$with_ext_funcs
15006 echo "$as_me:15006: result: $with_sigwinch" >&5
15007 echo "${ECHO_T}$with_sigwinch" >&6
15008 test "x$with_sigwinch" = xyes &&
15009 cat >>confdefs.h <<\EOF
15010 #define USE_SIGWINCH 1
15013 ### use option --enable-tcap-names to allow user to define new capabilities
15014 echo "$as_me:15014: checking if you want user-definable terminal capabilities like termcap" >&5
15015 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
15017 # Check whether --enable-tcap-names or --disable-tcap-names was given.
15018 if test "${enable_tcap_names+set}" = set; then
15019 enableval="$enable_tcap_names"
15020 with_tcap_names=$enableval
15022 with_tcap_names=$with_ext_funcs
15024 echo "$as_me:15024: result: $with_tcap_names" >&5
15025 echo "${ECHO_T}$with_tcap_names" >&6
15027 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
15029 ##############################################################################
15031 echo "$as_me:15031: checking if you want to link with the pthread library" >&5
15032 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
15034 # Check whether --with-pthread or --without-pthread was given.
15035 if test "${with_pthread+set}" = set; then
15036 withval="$with_pthread"
15037 with_pthread=$withval
15041 echo "$as_me:15041: result: $with_pthread" >&5
15042 echo "${ECHO_T}$with_pthread" >&6
15044 if test "$with_pthread" != no ; then
15045 echo "$as_me:15045: checking for pthread.h" >&5
15046 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
15047 if test "${ac_cv_header_pthread_h+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 cat >"conftest.$ac_ext" <<_ACEOF
15051 #line 15051 "configure"
15052 #include "confdefs.h"
15053 #include <pthread.h>
15055 if { (eval echo "$as_me:15055: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15056 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15058 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15060 cat conftest.err >&5
15061 echo "$as_me:15061: \$? = $ac_status" >&5
15062 (exit "$ac_status"); } >/dev/null; then
15063 if test -s conftest.err; then
15064 ac_cpp_err=$ac_c_preproc_warn_flag
15071 if test -z "$ac_cpp_err"; then
15072 ac_cv_header_pthread_h=yes
15074 echo "$as_me: failed program was:" >&5
15075 cat "conftest.$ac_ext" >&5
15076 ac_cv_header_pthread_h=no
15078 rm -f conftest.err "conftest.$ac_ext"
15080 echo "$as_me:15080: result: $ac_cv_header_pthread_h" >&5
15081 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
15082 if test "$ac_cv_header_pthread_h" = yes; then
15084 cat >>confdefs.h <<\EOF
15085 #define HAVE_PTHREADS_H 1
15088 for cf_lib_pthread in pthread c_r
15090 echo "$as_me:15090: checking if we can link with the $cf_lib_pthread library" >&5
15091 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
15092 cf_save_LIBS="$LIBS"
15094 cf_add_libs="$LIBS"
15097 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15098 # filter duplicates
15099 for cf_add_1lib in $cf_add_0lib; do
15100 for cf_add_2lib in $cf_add_libs; do
15101 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15106 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15108 LIBS="$cf_add_libs"
15110 cat >"conftest.$ac_ext" <<_ACEOF
15111 #line 15111 "configure"
15112 #include "confdefs.h"
15114 #include <pthread.h>
15120 int rc = pthread_create(0,0,0,0);
15121 int r2 = pthread_mutexattr_settype(0, 0);
15127 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15128 if { (eval echo "$as_me:15128: \"$ac_link\"") >&5
15129 (eval $ac_link) 2>&5
15131 echo "$as_me:15131: \$? = $ac_status" >&5
15132 (exit "$ac_status"); } &&
15133 { ac_try='test -s "conftest$ac_exeext"'
15134 { (eval echo "$as_me:15134: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15137 echo "$as_me:15137: \$? = $ac_status" >&5
15138 (exit "$ac_status"); }; }; then
15141 echo "$as_me: failed program was:" >&5
15142 cat "conftest.$ac_ext" >&5
15145 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15146 LIBS="$cf_save_LIBS"
15147 echo "$as_me:15147: result: $with_pthread" >&5
15148 echo "${ECHO_T}$with_pthread" >&6
15149 test "$with_pthread" = yes && break
15152 if test "$with_pthread" = yes ; then
15154 cf_add_libs="$LIBS"
15157 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15158 # filter duplicates
15159 for cf_add_1lib in $cf_add_0lib; do
15160 for cf_add_2lib in $cf_add_libs; do
15161 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15166 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15168 LIBS="$cf_add_libs"
15170 cat >>confdefs.h <<\EOF
15171 #define HAVE_LIBPTHREADS 1
15175 { { echo "$as_me:15175: error: Cannot link with pthread library" >&5
15176 echo "$as_me: error: Cannot link with pthread library" >&2;}
15177 { (exit 1); exit 1; }; }
15184 if test "x$with_pthread" != xno; then
15185 echo "$as_me:15185: checking for pthread_kill" >&5
15186 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
15187 if test "${ac_cv_func_pthread_kill+set}" = set; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15190 cat >"conftest.$ac_ext" <<_ACEOF
15191 #line 15191 "configure"
15192 #include "confdefs.h"
15193 #define pthread_kill autoconf_temporary
15194 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15195 #undef pthread_kill
15201 /* We use char because int might match the return type of a gcc2
15202 builtin and then its argument prototype would still apply. */
15203 char pthread_kill (void);
15209 /* The GNU C library defines stubs for functions which it implements
15210 to always fail with ENOSYS. Some functions are actually named
15211 something starting with __ and the normal name is an alias. */
15212 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
15213 #error found stub for pthread_kill
15216 return pthread_kill ();
15221 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15222 if { (eval echo "$as_me:15222: \"$ac_link\"") >&5
15223 (eval $ac_link) 2>&5
15225 echo "$as_me:15225: \$? = $ac_status" >&5
15226 (exit "$ac_status"); } &&
15227 { ac_try='test -s "conftest$ac_exeext"'
15228 { (eval echo "$as_me:15228: \"$ac_try\"") >&5
15229 (eval $ac_try) 2>&5
15231 echo "$as_me:15231: \$? = $ac_status" >&5
15232 (exit "$ac_status"); }; }; then
15233 ac_cv_func_pthread_kill=yes
15235 echo "$as_me: failed program was:" >&5
15236 cat "conftest.$ac_ext" >&5
15237 ac_cv_func_pthread_kill=no
15239 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15241 echo "$as_me:15241: result: $ac_cv_func_pthread_kill" >&5
15242 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
15243 if test "$ac_cv_func_pthread_kill" = yes; then
15245 echo "$as_me:15245: checking if you want to allow EINTR in wgetch with pthreads" >&5
15246 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
15248 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
15249 if test "${enable_pthreads_eintr+set}" = set; then
15250 enableval="$enable_pthreads_eintr"
15251 use_pthreads_eintr=$enableval
15253 use_pthreads_eintr=no
15255 echo "$as_me:15255: result: $use_pthreads_eintr" >&5
15256 echo "${ECHO_T}$use_pthreads_eintr" >&6
15257 if test "x$use_pthreads_eintr" = xyes ; then
15259 cat >>confdefs.h <<\EOF
15260 #define USE_PTHREADS_EINTR 1
15266 echo "$as_me:15266: checking if you want to use weak-symbols for pthreads" >&5
15267 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
15269 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
15270 if test "${enable_weak_symbols+set}" = set; then
15271 enableval="$enable_weak_symbols"
15272 use_weak_symbols=$enableval
15274 use_weak_symbols=no
15276 echo "$as_me:15276: result: $use_weak_symbols" >&5
15277 echo "${ECHO_T}$use_weak_symbols" >&6
15278 if test "x$use_weak_symbols" = xyes ; then
15280 echo "$as_me:15280: checking if $CC supports weak symbols" >&5
15281 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
15282 if test "${cf_cv_weak_symbols+set}" = set; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 cat >"conftest.$ac_ext" <<_ACEOF
15287 #line 15287 "configure"
15288 #include "confdefs.h"
15295 #if defined(__GNUC__)
15296 # if defined __USE_ISOC99
15297 # define _cat_pragma(exp) _Pragma(#exp)
15298 # define _weak_pragma(exp) _cat_pragma(weak name)
15300 # define _weak_pragma(exp)
15302 # define _declare(name) __extension__ extern __typeof__(name) name
15303 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
15306 weak_symbol(fopen);
15312 rm -f "conftest.$ac_objext"
15313 if { (eval echo "$as_me:15313: \"$ac_compile\"") >&5
15314 (eval $ac_compile) 2>&5
15316 echo "$as_me:15316: \$? = $ac_status" >&5
15317 (exit "$ac_status"); } &&
15318 { ac_try='test -s "conftest.$ac_objext"'
15319 { (eval echo "$as_me:15319: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15322 echo "$as_me:15322: \$? = $ac_status" >&5
15323 (exit "$ac_status"); }; }; then
15324 cf_cv_weak_symbols=yes
15326 echo "$as_me: failed program was:" >&5
15327 cat "conftest.$ac_ext" >&5
15328 cf_cv_weak_symbols=no
15330 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15333 echo "$as_me:15333: result: $cf_cv_weak_symbols" >&5
15334 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
15337 cf_cv_weak_symbols=no
15340 if test "x$cf_cv_weak_symbols" = xyes ; then
15342 cat >>confdefs.h <<\EOF
15343 #define USE_WEAK_SYMBOLS 1
15350 if test "x$with_pthread" = "xyes" ; then
15352 cat >>confdefs.h <<\EOF
15353 #define USE_PTHREADS 1
15356 enable_reentrant=yes
15357 if test "x$cf_cv_weak_symbols" = xyes ; then
15360 cf_add_libs="$PRIVATE_LIBS"
15363 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15364 # filter duplicates
15365 for cf_add_1lib in $cf_add_0lib; do
15366 for cf_add_2lib in $cf_add_libs; do
15367 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15372 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15374 PRIVATE_LIBS="$cf_add_libs"
15379 # Reentrant code has to be opaque; there's little advantage to making ncurses
15380 # opaque outside of that, so there is no --enable-opaque option. We can use
15381 # this option without --with-pthreads, but this will be always set for
15383 echo "$as_me:15383: checking if you want reentrant code" >&5
15384 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
15386 # Check whether --enable-reentrant or --disable-reentrant was given.
15387 if test "${enable_reentrant+set}" = set; then
15388 enableval="$enable_reentrant"
15389 with_reentrant=$enableval
15393 echo "$as_me:15393: result: $with_reentrant" >&5
15394 echo "${ECHO_T}$with_reentrant" >&6
15395 if test "x$with_reentrant" = xyes ; then
15396 cf_cv_enable_reentrant=1
15397 cf_cv_enable_opaque="NCURSES_INTERNALS"
15399 if test "x$cf_cv_weak_symbols" = xyes ; then
15401 # remove pthread library from $LIBS
15402 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
15404 cf_add_libs="$TEST_LIBS"
15407 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15408 # filter duplicates
15409 for cf_add_1lib in $cf_add_0lib; do
15410 for cf_add_2lib in $cf_add_libs; do
15411 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15416 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15418 TEST_LIBS="$cf_add_libs"
15420 cf_add_libs="$TEST_LIBS2"
15423 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15424 # filter duplicates
15425 for cf_add_1lib in $cf_add_0lib; do
15426 for cf_add_2lib in $cf_add_libs; do
15427 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15432 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15434 TEST_LIBS2="$cf_add_libs"
15436 cf_add_libs="$PRIVATE_LIBS"
15439 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15440 # filter duplicates
15441 for cf_add_1lib in $cf_add_0lib; do
15442 for cf_add_2lib in $cf_add_libs; do
15443 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15448 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15450 PRIVATE_LIBS="$cf_add_libs"
15453 # when not using weak symbols but with_reentrant,
15454 # add 't' to the library suffix on all platforms
15455 # except cygwin, where we only do that if ALSO
15456 # compiling with full thread support.
15458 (*cygwin* | *msys*)
15459 if test "$with_pthread" = "yes" ; then
15460 if test "x$disable_lib_suffixes" = "xno" ; then
15461 LIB_SUFFIX="t${LIB_SUFFIX}"
15465 if test "x$disable_lib_suffixes" = "xno" ; then
15466 LIB_SUFFIX="t${LIB_SUFFIX}"
15472 cat >>confdefs.h <<\EOF
15473 #define USE_REENTRANT 1
15476 if test "${with_abi_version+set}" != set; then
15477 case "$cf_cv_rel_version" in
15479 cf_cv_rel_version=6.0
15480 cf_cv_abi_version=6
15481 { echo "$as_me:15481: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15482 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15488 cf_cv_enable_reentrant=0
15489 cf_cv_enable_opaque="NCURSES_OPAQUE"
15490 NCURSES_SIZE_T=short
15493 echo "$as_me:15493: checking if you want opaque curses-library structures" >&5
15494 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
15496 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
15497 if test "${enable_opaque_curses+set}" = set; then
15498 enableval="$enable_opaque_curses"
15499 test "$enableval" != yes && enableval=no
15500 if test "$enableval" != "no" ; then
15501 enable_opaque_curses=yes
15504 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15505 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15511 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15512 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15515 echo "$as_me:15515: result: $enable_opaque_curses" >&5
15516 echo "${ECHO_T}$enable_opaque_curses" >&6
15518 test "$cf_cv_enable_reentrant" = 1 && \
15519 test "$enable_opaque_curses" = no && \
15520 { { echo "$as_me:15520: error: reentrant configuration requires opaque library" >&5
15521 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
15522 { (exit 1); exit 1; }; }
15524 echo "$as_me:15524: checking if you want opaque form-library structures" >&5
15525 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
15527 # Check whether --enable-opaque-form or --disable-opaque-form was given.
15528 if test "${enable_opaque_form+set}" = set; then
15529 enableval="$enable_opaque_form"
15530 enable_opaque_form=yes
15532 enable_opaque_form=no
15534 echo "$as_me:15534: result: $enable_opaque_form" >&5
15535 echo "${ECHO_T}$enable_opaque_form" >&6
15537 echo "$as_me:15537: checking if you want opaque menu-library structures" >&5
15538 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
15540 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
15541 if test "${enable_opaque_menu+set}" = set; then
15542 enableval="$enable_opaque_menu"
15543 enable_opaque_menu=yes
15545 enable_opaque_menu=no
15547 echo "$as_me:15547: result: $enable_opaque_menu" >&5
15548 echo "${ECHO_T}$enable_opaque_menu" >&6
15550 echo "$as_me:15550: checking if you want opaque panel-library structures" >&5
15551 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
15553 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
15554 if test "${enable_opaque_panel+set}" = set; then
15555 enableval="$enable_opaque_panel"
15556 enable_opaque_panel=yes
15558 enable_opaque_panel=no
15560 echo "$as_me:15560: result: $enable_opaque_panel" >&5
15561 echo "${ECHO_T}$enable_opaque_panel" >&6
15563 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
15564 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
15565 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
15566 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
15568 ### Allow using a different wrap-prefix
15569 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
15570 echo "$as_me:15570: checking for prefix used to wrap public variables" >&5
15571 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
15573 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
15574 if test "${with_wrap_prefix+set}" = set; then
15575 withval="$with_wrap_prefix"
15576 NCURSES_WRAP_PREFIX=$withval
15578 NCURSES_WRAP_PREFIX=_nc_
15580 echo "$as_me:15580: result: $NCURSES_WRAP_PREFIX" >&5
15581 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
15583 NCURSES_WRAP_PREFIX=_nc_
15586 cat >>confdefs.h <<EOF
15587 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
15590 ###############################################################################
15591 # These options are relatively safe to experiment with.
15593 echo "$as_me:15593: checking if you want all development code" >&5
15594 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
15596 # Check whether --with-develop or --without-develop was given.
15597 if test "${with_develop+set}" = set; then
15598 withval="$with_develop"
15599 with_develop=$withval
15603 echo "$as_me:15603: result: $with_develop" >&5
15604 echo "${ECHO_T}$with_develop" >&6
15606 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
15607 echo "$as_me:15607: checking if you want hard-tabs code" >&5
15608 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
15610 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
15611 if test "${enable_hard_tabs+set}" = set; then
15612 enableval="$enable_hard_tabs"
15615 enable_hard_tabs=$with_develop
15617 echo "$as_me:15617: result: $enable_hard_tabs" >&5
15618 echo "${ECHO_T}$enable_hard_tabs" >&6
15619 test "x$enable_hard_tabs" = xyes &&
15620 cat >>confdefs.h <<\EOF
15621 #define USE_HARD_TABS 1
15624 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
15625 echo "$as_me:15625: checking if you want limited support for xmc" >&5
15626 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
15628 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
15629 if test "${enable_xmc_glitch+set}" = set; then
15630 enableval="$enable_xmc_glitch"
15633 enable_xmc_glitch=$with_develop
15635 echo "$as_me:15635: result: $enable_xmc_glitch" >&5
15636 echo "${ECHO_T}$enable_xmc_glitch" >&6
15637 test "x$enable_xmc_glitch" = xyes &&
15638 cat >>confdefs.h <<\EOF
15639 #define USE_XMC_SUPPORT 1
15642 ###############################################################################
15643 # These are just experimental, probably should not be in a package:
15645 echo "$as_me:15645: checking if you do not want to assume colors are white-on-black" >&5
15646 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
15648 # Check whether --enable-assumed-color or --disable-assumed-color was given.
15649 if test "${enable_assumed_color+set}" = set; then
15650 enableval="$enable_assumed_color"
15651 with_assumed_color=$enableval
15653 with_assumed_color=yes
15655 echo "$as_me:15655: result: $with_assumed_color" >&5
15656 echo "${ECHO_T}$with_assumed_color" >&6
15657 test "x$with_assumed_color" = xyes &&
15658 cat >>confdefs.h <<\EOF
15659 #define USE_ASSUMED_COLOR 1
15662 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
15663 echo "$as_me:15663: checking if you want hashmap scrolling-optimization code" >&5
15664 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
15666 # Check whether --enable-hashmap or --disable-hashmap was given.
15667 if test "${enable_hashmap+set}" = set; then
15668 enableval="$enable_hashmap"
15669 with_hashmap=$enableval
15673 echo "$as_me:15673: result: $with_hashmap" >&5
15674 echo "${ECHO_T}$with_hashmap" >&6
15675 test "x$with_hashmap" = xyes &&
15676 cat >>confdefs.h <<\EOF
15677 #define USE_HASHMAP 1
15680 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
15681 echo "$as_me:15681: checking if you want colorfgbg code" >&5
15682 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
15684 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
15685 if test "${enable_colorfgbg+set}" = set; then
15686 enableval="$enable_colorfgbg"
15687 with_colorfgbg=$enableval
15691 echo "$as_me:15691: result: $with_colorfgbg" >&5
15692 echo "${ECHO_T}$with_colorfgbg" >&6
15693 test "x$with_colorfgbg" = xyes &&
15694 cat >>confdefs.h <<\EOF
15695 #define USE_COLORFGBG 1
15698 ### use option --enable-fvisibility to turn on use of gcc-specific feature
15699 echo "$as_me:15699: checking if you want to use gcc -fvisibility option" >&5
15700 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
15702 # Check whether --enable-fvisibility or --disable-fvisibility was given.
15703 if test "${enable_fvisibility+set}" = set; then
15704 enableval="$enable_fvisibility"
15705 cf_with_fvisibility=$enableval
15707 cf_with_fvisibility=no
15709 echo "$as_me:15709: result: $cf_with_fvisibility" >&5
15710 echo "${ECHO_T}$cf_with_fvisibility" >&6
15713 NCURSES_CXX_IMPEXP=
15714 if test "x$cf_with_fvisibility" = xyes; then
15716 echo "$as_me:15716: checking if $CC -fvisibility=hidden option works" >&5
15717 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
15718 if test "${cf_cv_fvisibility_hidden+set}" = set; then
15719 echo $ECHO_N "(cached) $ECHO_C" >&6
15722 cf_save_cflags="$CFLAGS"
15723 CFLAGS="$CFLAGS -fvisibility=hidden"
15724 cat >"conftest.$ac_ext" <<_ACEOF
15725 #line 15725 "configure"
15726 #include "confdefs.h"
15728 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
15734 if (somefunc()) return 1;
15740 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15741 if { (eval echo "$as_me:15741: \"$ac_link\"") >&5
15742 (eval $ac_link) 2>&5
15744 echo "$as_me:15744: \$? = $ac_status" >&5
15745 (exit "$ac_status"); } &&
15746 { ac_try='test -s "conftest$ac_exeext"'
15747 { (eval echo "$as_me:15747: \"$ac_try\"") >&5
15748 (eval $ac_try) 2>&5
15750 echo "$as_me:15750: \$? = $ac_status" >&5
15751 (exit "$ac_status"); }; }; then
15752 cf_cv_fvisibility_hidden=yes
15754 echo "$as_me: failed program was:" >&5
15755 cat "conftest.$ac_ext" >&5
15756 cf_cv_fvisibility_hidden=no
15758 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15759 CFLAGS=$cf_save_cflags
15762 echo "$as_me:15762: result: $cf_cv_fvisibility_hidden" >&5
15763 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
15765 if test "x$cf_cv_fvisibility_hidden" = xyes
15771 cf_new_extra_cppflags=
15773 for cf_add_cflags in -fvisibility=hidden
15775 case "$cf_fix_cppflags" in
15777 case "$cf_add_cflags" in
15778 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15779 case "$cf_add_cflags" in
15781 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15783 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15784 && test -z "${cf_tst_cflags}" \
15785 && cf_fix_cppflags=yes
15787 if test "$cf_fix_cppflags" = yes ; then
15789 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15790 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15793 elif test "${cf_tst_cflags}" = "\"'" ; then
15795 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15796 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15802 case "$CPPFLAGS" in
15806 case "$cf_add_cflags" in
15808 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15810 CPPFLAGS=`echo "$CPPFLAGS" | \
15811 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15812 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15817 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15818 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15825 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15826 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15833 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15834 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15836 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
15838 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15839 && test -z "${cf_tst_cflags}" \
15840 && cf_fix_cppflags=no
15845 if test -n "$cf_new_cflags" ; then
15847 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15848 CFLAGS="${CFLAGS}$cf_new_cflags"
15852 if test -n "$cf_new_cppflags" ; then
15854 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15855 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15859 if test -n "$cf_new_extra_cppflags" ; then
15861 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15862 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15866 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
15871 ac_cpp='$CXXCPP $CPPFLAGS'
15872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
15873 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
15874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15875 ac_main_return="return"
15877 echo "$as_me:15877: checking if $CXX -fvisibility=hidden option works" >&5
15878 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
15879 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
15880 echo $ECHO_N "(cached) $ECHO_C" >&6
15883 cf_save_cflags="$CXXFLAGS"
15884 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
15885 cat >"conftest.$ac_ext" <<_ACEOF
15886 #line 15886 "configure"
15887 #include "confdefs.h"
15889 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
15895 if (somefunc()) return 1;
15901 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15902 if { (eval echo "$as_me:15902: \"$ac_link\"") >&5
15903 (eval $ac_link) 2>&5
15905 echo "$as_me:15905: \$? = $ac_status" >&5
15906 (exit "$ac_status"); } &&
15907 { ac_try='test -s "conftest$ac_exeext"'
15908 { (eval echo "$as_me:15908: \"$ac_try\"") >&5
15909 (eval $ac_try) 2>&5
15911 echo "$as_me:15911: \$? = $ac_status" >&5
15912 (exit "$ac_status"); }; }; then
15913 cf_cv_fvisibility_hidden2=yes
15915 echo "$as_me: failed program was:" >&5
15916 cat "conftest.$ac_ext" >&5
15917 cf_cv_fvisibility_hidden2=no
15919 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15920 CXXFLAGS=$cf_save_cflags
15923 echo "$as_me:15923: result: $cf_cv_fvisibility_hidden2" >&5
15924 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
15926 if test "x$cf_cv_fvisibility_hidden2" = xyes
15929 cf_save_CXXFLAGS="$CFLAGS"
15935 cf_new_extra_cppflags=
15937 for cf_add_cflags in -fvisibility=hidden
15939 case "$cf_fix_cppflags" in
15941 case "$cf_add_cflags" in
15942 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15943 case "$cf_add_cflags" in
15945 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15947 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15948 && test -z "${cf_tst_cflags}" \
15949 && cf_fix_cppflags=yes
15951 if test "$cf_fix_cppflags" = yes ; then
15953 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15954 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15957 elif test "${cf_tst_cflags}" = "\"'" ; then
15959 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15960 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15966 case "$CPPFLAGS" in
15970 case "$cf_add_cflags" in
15972 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15974 CPPFLAGS=`echo "$CPPFLAGS" | \
15975 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15976 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15981 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15982 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15989 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15990 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15997 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15998 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16000 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16002 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16003 && test -z "${cf_tst_cflags}" \
16004 && cf_fix_cppflags=no
16009 if test -n "$cf_new_cflags" ; then
16011 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16012 CFLAGS="${CFLAGS}$cf_new_cflags"
16016 if test -n "$cf_new_cppflags" ; then
16018 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16019 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16023 if test -n "$cf_new_extra_cppflags" ; then
16025 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16026 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16031 CFLAGS="$cf_save_CXXFLAGS"
16033 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
16036 ac_cpp='$CPP $CPPFLAGS'
16037 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16038 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16040 ac_main_return="return"
16045 ### use option --enable-interop to turn on use of bindings used for interop
16046 echo "$as_me:16046: checking if you want interop bindings" >&5
16047 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
16049 # Check whether --enable-interop or --disable-interop was given.
16050 if test "${enable_interop+set}" = set; then
16051 enableval="$enable_interop"
16052 with_exp_interop=$enableval
16054 with_exp_interop=$cf_dft_interop
16056 echo "$as_me:16056: result: $with_exp_interop" >&5
16057 echo "${ECHO_T}$with_exp_interop" >&6
16059 NCURSES_INTEROP_FUNCS=0
16060 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
16062 echo "$as_me:16062: checking if you want experimental safe-sprintf code" >&5
16063 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
16065 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
16066 if test "${enable_safe_sprintf+set}" = set; then
16067 enableval="$enable_safe_sprintf"
16068 with_safe_sprintf=$enableval
16070 with_safe_sprintf=no
16072 echo "$as_me:16072: result: $with_safe_sprintf" >&5
16073 echo "${ECHO_T}$with_safe_sprintf" >&6
16075 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
16076 # when hashmap is used scroll hints are useless
16077 if test "$with_hashmap" = no ; then
16078 echo "$as_me:16078: checking if you want to experiment without scrolling-hints code" >&5
16079 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
16081 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
16082 if test "${enable_scroll_hints+set}" = set; then
16083 enableval="$enable_scroll_hints"
16084 with_scroll_hints=$enableval
16086 with_scroll_hints=yes
16088 echo "$as_me:16088: result: $with_scroll_hints" >&5
16089 echo "${ECHO_T}$with_scroll_hints" >&6
16090 test "x$with_scroll_hints" = xyes &&
16091 cat >>confdefs.h <<\EOF
16092 #define USE_SCROLL_HINTS 1
16097 echo "$as_me:16097: checking if you want wgetch-events code" >&5
16098 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
16100 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
16101 if test "${enable_wgetch_events+set}" = set; then
16102 enableval="$enable_wgetch_events"
16103 with_wgetch_events=$enableval
16105 with_wgetch_events=no
16107 echo "$as_me:16107: result: $with_wgetch_events" >&5
16108 echo "${ECHO_T}$with_wgetch_events" >&6
16109 if test "x$with_wgetch_events" = xyes ; then
16111 cat >>confdefs.h <<\EOF
16112 #define NCURSES_WGETCH_EVENTS 1
16115 NCURSES_WGETCH_EVENTS=1
16117 NCURSES_WGETCH_EVENTS=0
16120 case "$cf_cv_system_name" in
16121 (*mingw32*|*mingw64*|*-msvc*)
16122 echo "$as_me:16122: checking if you want experimental-Windows driver" >&5
16123 echo $ECHO_N "checking if you want experimental-Windows driver... $ECHO_C" >&6
16125 # Check whether --enable-exp-win32 or --disable-exp-win32 was given.
16126 if test "${enable_exp_win32+set}" = set; then
16127 enableval="$enable_exp_win32"
16128 with_exp_win32=$enableval
16132 echo "$as_me:16132: result: $with_exp_win32" >&5
16133 echo "${ECHO_T}$with_exp_win32" >&6
16134 if test "x$with_exp_win32" = xyes
16137 cat >>confdefs.h <<\EOF
16138 #define EXP_WIN32_DRIVER 1
16142 INTERNALS_HDR='$(INCDIR)/nc_win32.h'
16144 INTERNALS_HDR='$(INCDIR)/nc_mingw.h'
16154 ###############################################################################
16156 ### use option --disable-echo to suppress full display compiling commands
16158 echo "$as_me:16158: checking if you want to see long compiling messages" >&5
16159 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
16161 # Check whether --enable-echo or --disable-echo was given.
16162 if test "${enable_echo+set}" = set; then
16163 enableval="$enable_echo"
16164 test "$enableval" != no && enableval=yes
16165 if test "$enableval" != "yes" ; then
16168 ECHO_LD='@echo linking $@;'
16169 RULE_CC='@echo compiling $<'
16170 SHOW_CC='@echo compiling $@'
16192 echo "$as_me:16192: result: $enableval" >&5
16193 echo "${ECHO_T}$enableval" >&6
16195 if test "x$enable_echo" = xyes; then
16198 ECHO_LINK='@ echo linking $@ ... ;'
16199 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
16200 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
16203 # --disable-stripping is used for debugging
16205 echo "$as_me:16205: checking if you want to install stripped executables" >&5
16206 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
16208 # Check whether --enable-stripping or --disable-stripping was given.
16209 if test "${enable_stripping+set}" = set; then
16210 enableval="$enable_stripping"
16211 test "$enableval" != no && enableval=yes
16212 if test "$enableval" != "yes" ; then
16213 enable_stripping=no
16215 enable_stripping=yes
16219 enable_stripping=yes
16222 echo "$as_me:16222: result: $enable_stripping" >&5
16223 echo "${ECHO_T}$enable_stripping" >&6
16225 if test "$enable_stripping" = yes
16232 : "${INSTALL:=install}"
16233 echo "$as_me:16233: checking if install accepts -p option" >&5
16234 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
16235 if test "${cf_cv_install_p+set}" = set; then
16236 echo $ECHO_N "(cached) $ECHO_C" >&6
16243 if $INSTALL -p conftest.in conftest.out 2>/dev/null
16245 if test -f conftest.out/conftest.in
16247 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
16248 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
16249 if test -s conftest.err
16253 cf_cv_install_p=yes
16264 echo "$as_me:16264: result: $cf_cv_install_p" >&5
16265 echo "${ECHO_T}$cf_cv_install_p" >&6
16267 echo "$as_me:16267: checking if install needs to be told about ownership" >&5
16268 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
16269 case `$ac_config_guess` in
16278 echo "$as_me:16278: result: $with_install_o" >&5
16279 echo "${ECHO_T}$with_install_o" >&6
16280 if test "x$with_install_o" = xyes
16282 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'`"
16287 # If we're avoiding relinking of shared libraries during install, that is to
16288 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
16289 # the install program has "-p" (for preserving timestamps).
16290 cf_cv_do_reranlib=yes
16291 if test "x$cf_cv_install_p" = xyes
16293 if test "x$cf_cv_do_relink" != xyes
16295 cf_cv_do_reranlib=no
16297 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
16301 ### use option --enable-warnings to turn on all gcc warnings
16303 echo "$as_me:16303: checking if you want to use C11 _Noreturn feature" >&5
16304 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
16306 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
16307 if test "${enable_stdnoreturn+set}" = set; then
16308 enableval="$enable_stdnoreturn"
16309 test "$enableval" != yes && enableval=no
16310 if test "$enableval" != "no" ; then
16311 enable_stdnoreturn=yes
16313 enable_stdnoreturn=no
16317 enable_stdnoreturn=no
16320 echo "$as_me:16320: result: $enable_stdnoreturn" >&5
16321 echo "${ECHO_T}$enable_stdnoreturn" >&6
16323 if test $enable_stdnoreturn = yes; then
16324 echo "$as_me:16324: checking for C11 _Noreturn feature" >&5
16325 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
16326 if test "${cf_cv_c11_noreturn+set}" = set; then
16327 echo $ECHO_N "(cached) $ECHO_C" >&6
16329 cat >"conftest.$ac_ext" <<_ACEOF
16330 #line 16330 "configure"
16331 #include "confdefs.h"
16334 #include <stdlib.h>
16335 #include <stdnoreturn.h>
16336 static _Noreturn void giveup(void) { exit(0); }
16341 if (feof(stdin)) giveup()
16346 rm -f "conftest.$ac_objext"
16347 if { (eval echo "$as_me:16347: \"$ac_compile\"") >&5
16348 (eval $ac_compile) 2>&5
16350 echo "$as_me:16350: \$? = $ac_status" >&5
16351 (exit "$ac_status"); } &&
16352 { ac_try='test -s "conftest.$ac_objext"'
16353 { (eval echo "$as_me:16353: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16356 echo "$as_me:16356: \$? = $ac_status" >&5
16357 (exit "$ac_status"); }; }; then
16358 cf_cv_c11_noreturn=yes
16360 echo "$as_me: failed program was:" >&5
16361 cat "conftest.$ac_ext" >&5
16362 cf_cv_c11_noreturn=no
16364 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16367 echo "$as_me:16367: result: $cf_cv_c11_noreturn" >&5
16368 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
16370 cf_cv_c11_noreturn=no,
16373 if test "$cf_cv_c11_noreturn" = yes; then
16375 cat >>confdefs.h <<\EOF
16376 #define HAVE_STDNORETURN_H 1
16379 cat >>confdefs.h <<EOF
16380 #define STDC_NORETURN _Noreturn
16383 HAVE_STDNORETURN_H=1
16385 HAVE_STDNORETURN_H=0
16388 if test "$GCC" = yes || test "$GXX" = yes
16391 if test "$GCC" = yes || test "$GXX" = yes
16395 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
16397 echo "${as_me:-configure}:16397: testing repairing CFLAGS: $CFLAGS ..." 1>&5
16400 for cf_temp_scan in $CFLAGS
16402 case "x$cf_temp_scan" in
16405 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16406 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16411 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16412 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16417 CFLAGS="$cf_temp_flags"
16418 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
16420 echo "${as_me:-configure}:16420: testing ... fixed $CFLAGS ..." 1>&5
16422 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16424 echo "${as_me:-configure}:16424: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16430 if test "$GCC" = yes || test "$GXX" = yes
16434 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
16436 echo "${as_me:-configure}:16436: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
16439 for cf_temp_scan in $CPPFLAGS
16441 case "x$cf_temp_scan" in
16444 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16445 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16450 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16451 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16456 CPPFLAGS="$cf_temp_flags"
16457 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
16459 echo "${as_me:-configure}:16459: testing ... fixed $CPPFLAGS ..." 1>&5
16461 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16463 echo "${as_me:-configure}:16463: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16469 if test "$GCC" = yes || test "$GXX" = yes
16473 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
16475 echo "${as_me:-configure}:16475: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
16478 for cf_temp_scan in $LDFLAGS
16480 case "x$cf_temp_scan" in
16483 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16484 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16489 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16490 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16495 LDFLAGS="$cf_temp_flags"
16496 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
16498 echo "${as_me:-configure}:16498: testing ... fixed $LDFLAGS ..." 1>&5
16500 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16502 echo "${as_me:-configure}:16502: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16508 echo "$as_me:16508: checking if you want to turn on gcc warnings" >&5
16509 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
16511 # Check whether --enable-warnings or --disable-warnings was given.
16512 if test "${enable_warnings+set}" = set; then
16513 enableval="$enable_warnings"
16514 test "$enableval" != yes && enableval=no
16515 if test "$enableval" != "no" ; then
16516 enable_warnings=yes
16525 echo "$as_me:16525: result: $enable_warnings" >&5
16526 echo "${ECHO_T}$enable_warnings" >&6
16527 if test "$enable_warnings" = "yes"
16530 if test "x$have_x" = xyes; then
16532 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
16533 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
16534 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
16535 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
16536 for cf_X_CFLAGS in $X_CFLAGS
16538 case "x$cf_X_CFLAGS" in
16540 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
16543 CFLAGS="$CFLAGS $cf_X_CFLAGS"
16548 cat >"conftest.$ac_ext" <<_ACEOF
16549 #line 16549 "configure"
16550 #include "confdefs.h"
16552 #include <stdlib.h>
16553 #include <X11/Intrinsic.h>
16558 String foo = malloc(1); (void)foo
16563 rm -f "conftest.$ac_objext"
16564 if { (eval echo "$as_me:16564: \"$ac_compile\"") >&5
16565 (eval $ac_compile) 2>&5
16567 echo "$as_me:16567: \$? = $ac_status" >&5
16568 (exit "$ac_status"); } &&
16569 { ac_try='test -s "conftest.$ac_objext"'
16570 { (eval echo "$as_me:16570: \"$ac_try\"") >&5
16571 (eval $ac_try) 2>&5
16573 echo "$as_me:16573: \$? = $ac_status" >&5
16574 (exit "$ac_status"); }; }; then
16576 echo "$as_me:16576: checking for X11/Xt const-feature" >&5
16577 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
16578 if test "${cf_cv_const_x_string+set}" = set; then
16579 echo $ECHO_N "(cached) $ECHO_C" >&6
16582 cat >"conftest.$ac_ext" <<_ACEOF
16583 #line 16583 "configure"
16584 #include "confdefs.h"
16586 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
16587 #undef XTSTRINGDEFINES /* X11R5 and later */
16588 #include <stdlib.h>
16589 #include <X11/Intrinsic.h>
16594 String foo = malloc(1); *foo = 0
16599 rm -f "conftest.$ac_objext"
16600 if { (eval echo "$as_me:16600: \"$ac_compile\"") >&5
16601 (eval $ac_compile) 2>&5
16603 echo "$as_me:16603: \$? = $ac_status" >&5
16604 (exit "$ac_status"); } &&
16605 { ac_try='test -s "conftest.$ac_objext"'
16606 { (eval echo "$as_me:16606: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16609 echo "$as_me:16609: \$? = $ac_status" >&5
16610 (exit "$ac_status"); }; }; then
16612 cf_cv_const_x_string=no
16615 echo "$as_me: failed program was:" >&5
16616 cat "conftest.$ac_ext" >&5
16618 cf_cv_const_x_string=yes
16621 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16624 echo "$as_me:16624: result: $cf_cv_const_x_string" >&5
16625 echo "${ECHO_T}$cf_cv_const_x_string" >&6
16627 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
16628 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
16629 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
16631 case "$cf_cv_const_x_string" in
16634 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16635 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
16640 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16641 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
16647 echo "$as_me: failed program was:" >&5
16648 cat "conftest.$ac_ext" >&5
16650 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16652 cat > "conftest.$ac_ext" <<EOF
16653 #line 16653 "${as_me:-configure}"
16654 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16656 if test "$INTEL_COMPILER" = yes
16658 # The "-wdXXX" options suppress warnings:
16659 # remark #1419: external declaration in primary source file
16660 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16661 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16662 # remark #193: zero used for undefined preprocessing identifier
16663 # remark #593: variable "curs_sb_left_arrow" was set but never used
16664 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16665 # remark #869: parameter "tw" was never referenced
16666 # remark #981: operands are evaluated in unspecified order
16667 # warning #279: controlling expression is constant
16669 { echo "$as_me:16669: checking for $CC warning options..." >&5
16670 echo "$as_me: checking for $CC warning options..." >&6;}
16671 cf_save_CFLAGS="$CFLAGS"
16672 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
16684 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16685 if { (eval echo "$as_me:16685: \"$ac_compile\"") >&5
16686 (eval $ac_compile) 2>&5
16688 echo "$as_me:16688: \$? = $ac_status" >&5
16689 (exit "$ac_status"); }; then
16690 test -n "$verbose" && echo "$as_me:16690: result: ... -$cf_opt" >&5
16691 echo "${ECHO_T}... -$cf_opt" >&6
16692 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16695 CFLAGS="$cf_save_CFLAGS"
16696 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
16698 { echo "$as_me:16698: checking for $CC warning options..." >&5
16699 echo "$as_me: checking for $CC warning options..." >&6;}
16700 cf_save_CFLAGS="$CFLAGS"
16702 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
16703 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
16704 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
16705 for cf_opt in W Wall \
16706 Wbad-function-cast \
16709 Wdeclaration-after-statement \
16712 Wmissing-declarations \
16713 Wmissing-prototypes \
16717 Wstrict-prototypes \
16718 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
16720 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16721 if { (eval echo "$as_me:16721: \"$ac_compile\"") >&5
16722 (eval $ac_compile) 2>&5
16724 echo "$as_me:16724: \$? = $ac_status" >&5
16725 (exit "$ac_status"); }; then
16726 test -n "$verbose" && echo "$as_me:16726: result: ... -$cf_opt" >&5
16727 echo "${ECHO_T}... -$cf_opt" >&6
16730 case "$GCC_VERSION" in
16732 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16734 echo "${as_me:-configure}:16734: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16740 case "$GCC_VERSION" in
16742 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16744 echo "${as_me:-configure}:16744: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16750 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16753 CFLAGS="$cf_save_CFLAGS"
16759 if test "$GCC" = yes || test "$GXX" = yes
16761 cat > conftest.i <<EOF
16763 #define GCC_PRINTF 0
16766 #define GCC_SCANF 0
16768 #ifndef GCC_NORETURN
16769 #define GCC_NORETURN /* nothing */
16772 #define GCC_UNUSED /* nothing */
16775 if test "$GCC" = yes
16777 { echo "$as_me:16777: checking for $CC __attribute__ directives..." >&5
16778 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
16779 cat > "conftest.$ac_ext" <<EOF
16780 #line 16780 "${as_me:-configure}"
16781 #include "confdefs.h"
16782 #include "conftest.h"
16783 #include "conftest.i"
16785 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
16787 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
16790 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
16792 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
16794 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
16795 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
16796 extern GCC_NORETURN void foo(void);
16797 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
16799 cf_printf_attribute=no
16800 cf_scanf_attribute=no
16801 for cf_attribute in scanf printf unused noreturn
16804 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16806 cf_directive="__attribute__(($cf_attribute))"
16807 echo "checking for $CC $cf_directive" 1>&5
16809 case "$cf_attribute" in
16811 cf_printf_attribute=yes
16812 cat >conftest.h <<EOF
16813 #define GCC_$cf_ATTRIBUTE 1
16817 cf_scanf_attribute=yes
16818 cat >conftest.h <<EOF
16819 #define GCC_$cf_ATTRIBUTE 1
16823 cat >conftest.h <<EOF
16824 #define GCC_$cf_ATTRIBUTE $cf_directive
16829 if { (eval echo "$as_me:16829: \"$ac_compile\"") >&5
16830 (eval $ac_compile) 2>&5
16832 echo "$as_me:16832: \$? = $ac_status" >&5
16833 (exit "$ac_status"); }; then
16834 test -n "$verbose" && echo "$as_me:16834: result: ... $cf_attribute" >&5
16835 echo "${ECHO_T}... $cf_attribute" >&6
16836 cat conftest.h >>confdefs.h
16837 case "$cf_attribute" in
16840 cat >>confdefs.h <<EOF
16841 #define GCC_NORETURN $cf_directive
16846 cf_value='/* nothing */'
16847 if test "$cf_printf_attribute" != no ; then
16848 cf_value='__attribute__((format(printf,fmt,var)))'
16850 cat >>confdefs.h <<\EOF
16851 #define GCC_PRINTF 1
16856 cat >>confdefs.h <<EOF
16857 #define GCC_PRINTFLIKE(fmt,var) $cf_value
16862 cf_value='/* nothing */'
16863 if test "$cf_scanf_attribute" != no ; then
16864 cf_value='__attribute__((format(scanf,fmt,var)))'
16866 cat >>confdefs.h <<\EOF
16867 #define GCC_SCANF 1
16872 cat >>confdefs.h <<EOF
16873 #define GCC_SCANFLIKE(fmt,var) $cf_value
16879 cat >>confdefs.h <<EOF
16880 #define GCC_UNUSED $cf_directive
16888 ${FGREP-fgrep} define conftest.i >>confdefs.h
16895 if test "x$enable_warnings" = "xyes"; then
16897 ADAFLAGS="$ADAFLAGS -gnatg"
16899 if test "x$cf_with_cxx" = xyes ; then
16903 if test "$GCC" = yes ; then
16906 echo "$as_me:16906: checking if this is really Intel C++ compiler" >&5
16907 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
16908 cf_save_CFLAGS="$CXXFLAGS"
16909 CXXFLAGS="$CXXFLAGS -no-gcc"
16910 cat >"conftest.$ac_ext" <<_ACEOF
16911 #line 16911 "configure"
16912 #include "confdefs.h"
16918 #ifdef __INTEL_COMPILER
16927 rm -f "conftest.$ac_objext"
16928 if { (eval echo "$as_me:16928: \"$ac_compile\"") >&5
16929 (eval $ac_compile) 2>&5
16931 echo "$as_me:16931: \$? = $ac_status" >&5
16932 (exit "$ac_status"); } &&
16933 { ac_try='test -s "conftest.$ac_objext"'
16934 { (eval echo "$as_me:16934: \"$ac_try\"") >&5
16935 (eval $ac_try) 2>&5
16937 echo "$as_me:16937: \$? = $ac_status" >&5
16938 (exit "$ac_status"); }; }; then
16939 INTEL_CPLUSPLUS=yes
16940 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
16943 echo "$as_me: failed program was:" >&5
16944 cat "conftest.$ac_ext" >&5
16946 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16947 CXXFLAGS="$cf_save_CFLAGS"
16948 echo "$as_me:16948: result: $INTEL_CPLUSPLUS" >&5
16949 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
16956 if test "$GCC" = yes ; then
16957 echo "$as_me:16957: checking if this is really Clang C++ compiler" >&5
16958 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
16959 cf_save_CFLAGS="$CXXFLAGS"
16960 cat >"conftest.$ac_ext" <<_ACEOF
16961 #line 16961 "configure"
16962 #include "confdefs.h"
16977 rm -f "conftest.$ac_objext"
16978 if { (eval echo "$as_me:16978: \"$ac_compile\"") >&5
16979 (eval $ac_compile) 2>&5
16981 echo "$as_me:16981: \$? = $ac_status" >&5
16982 (exit "$ac_status"); } &&
16983 { ac_try='test -s "conftest.$ac_objext"'
16984 { (eval echo "$as_me:16984: \"$ac_try\"") >&5
16985 (eval $ac_try) 2>&5
16987 echo "$as_me:16987: \$? = $ac_status" >&5
16988 (exit "$ac_status"); }; }; then
16989 CLANG_CPLUSPLUS=yes
16992 echo "$as_me: failed program was:" >&5
16993 cat "conftest.$ac_ext" >&5
16995 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16996 CXXFLAGS="$cf_save_CFLAGS"
16997 echo "$as_me:16997: result: $CLANG_CPLUSPLUS" >&5
16998 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
17003 if test "x$CLANG_CPLUSPLUS" = "xyes" ; then
17005 (c[1-9][0-9]|*/c[1-9][0-9])
17006 { echo "$as_me:17006: WARNING: replacing broken compiler alias $CC" >&5
17007 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
17008 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
17013 echo "$as_me:17013: checking version of $CC" >&5
17014 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
17015 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.].*//'`"
17016 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
17017 echo "$as_me:17017: result: $CLANG_VERSION" >&5
17018 echo "${ECHO_T}$CLANG_VERSION" >&6
17020 for cf_clang_opt in \
17021 -Qunused-arguments \
17022 -Wno-error=implicit-function-declaration
17024 echo "$as_me:17024: checking if option $cf_clang_opt works" >&5
17025 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
17026 cf_save_CFLAGS="$CFLAGS"
17027 CFLAGS="$CFLAGS $cf_clang_opt"
17028 cat >"conftest.$ac_ext" <<_ACEOF
17029 #line 17029 "configure"
17030 #include "confdefs.h"
17037 printf("hello!\\n");
17042 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17043 if { (eval echo "$as_me:17043: \"$ac_link\"") >&5
17044 (eval $ac_link) 2>&5
17046 echo "$as_me:17046: \$? = $ac_status" >&5
17047 (exit "$ac_status"); } &&
17048 { ac_try='test -s "conftest$ac_exeext"'
17049 { (eval echo "$as_me:17049: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17052 echo "$as_me:17052: \$? = $ac_status" >&5
17053 (exit "$ac_status"); }; }; then
17057 echo "$as_me: failed program was:" >&5
17058 cat "conftest.$ac_ext" >&5
17062 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17063 echo "$as_me:17063: result: $cf_clang_optok" >&5
17064 echo "${ECHO_T}$cf_clang_optok" >&6
17065 CFLAGS="$cf_save_CFLAGS"
17066 if test "$cf_clang_optok" = yes; then
17067 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
17069 echo "${as_me:-configure}:17069: testing adding option $cf_clang_opt ..." 1>&5
17071 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17072 CFLAGS="${CFLAGS}$cf_clang_opt"
17079 ac_cpp='$CXXCPP $CPPFLAGS'
17080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17081 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17083 ac_main_return="return"
17085 cat > conftest.$ac_ext <<EOF
17086 #line 17086 "configure"
17087 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17090 if test "$INTEL_CPLUSPLUS" = yes
17092 # The "-wdXXX" options suppress warnings:
17093 # remark #1419: external declaration in primary source file
17094 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17095 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17096 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17097 # remark #193: zero used for undefined preprocessing identifier
17098 # remark #593: variable "curs_sb_left_arrow" was set but never used
17099 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17100 # remark #869: parameter "tw" was never referenced
17101 # remark #981: operands are evaluated in unspecified order
17102 # warning #269: invalid format string conversion
17104 { echo "$as_me:17104: checking for $CC warning options..." >&5
17105 echo "$as_me: checking for $CC warning options..." >&6;}
17106 cf_save_CXXFLAGS="$CXXFLAGS"
17107 EXTRA_CXXFLAGS="-Wall"
17120 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
17121 if { (eval echo "$as_me:17121: \"$ac_compile\"") >&5
17122 (eval $ac_compile) 2>&5
17124 echo "$as_me:17124: \$? = $ac_status" >&5
17125 (exit "$ac_status"); }; then
17126 test -n "$verbose" && echo "$as_me:17126: result: ... -$cf_opt" >&5
17127 echo "${ECHO_T}... -$cf_opt" >&6
17128 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17131 CXXFLAGS="$cf_save_CXXFLAGS"
17133 elif test "$GXX" = yes
17135 { echo "$as_me:17135: checking for $CXX warning options..." >&5
17136 echo "$as_me: checking for $CXX warning options..." >&6;}
17137 cf_save_CXXFLAGS="$CXXFLAGS"
17138 EXTRA_CXXFLAGS="-W -Wall"
17139 cf_gxx_extra_warnings=""
17140 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
17141 case "$GXX_VERSION" in
17145 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
17152 Wignored-qualifiers \
17154 Woverloaded-virtual \
17162 Wundef $cf_gxx_extra_warnings Wno-unused
17164 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
17165 if { (eval echo "$as_me:17165: \"$ac_compile\"") >&5
17166 (eval $ac_compile) 2>&5
17168 echo "$as_me:17168: \$? = $ac_status" >&5
17169 (exit "$ac_status"); }; then
17170 test -n "$verbose" && echo "$as_me:17170: result: ... -$cf_opt" >&5
17171 echo "${ECHO_T}... -$cf_opt" >&6
17172 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17174 test -n "$verbose" && echo "$as_me:17174: result: ... no -$cf_opt" >&5
17175 echo "${ECHO_T}... no -$cf_opt" >&6
17178 CXXFLAGS="$cf_save_CXXFLAGS"
17183 ac_cpp='$CPP $CPPFLAGS'
17184 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17185 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17187 ac_main_return="return"
17192 echo "$as_me:17192: checking if you want to work around bogus compiler/loader warnings" >&5
17193 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
17195 # Check whether --enable-string-hacks or --disable-string-hacks was given.
17196 if test "${enable_string_hacks+set}" = set; then
17197 enableval="$enable_string_hacks"
17198 enable_string_hacks=$enableval
17200 enable_string_hacks=no
17202 echo "$as_me:17202: result: $enable_string_hacks" >&5
17203 echo "${ECHO_T}$enable_string_hacks" >&6
17205 if test "x$enable_string_hacks" = "xyes"; then
17207 cat >>confdefs.h <<\EOF
17208 #define USE_STRING_HACKS 1
17211 { echo "$as_me:17211: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
17212 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
17213 echo "$as_me:17213: checking for strlcat" >&5
17214 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
17215 if test "${ac_cv_func_strlcat+set}" = set; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17218 cat >"conftest.$ac_ext" <<_ACEOF
17219 #line 17219 "configure"
17220 #include "confdefs.h"
17221 #define strlcat autoconf_temporary
17222 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17229 /* We use char because int might match the return type of a gcc2
17230 builtin and then its argument prototype would still apply. */
17231 char strlcat (void);
17237 /* The GNU C library defines stubs for functions which it implements
17238 to always fail with ENOSYS. Some functions are actually named
17239 something starting with __ and the normal name is an alias. */
17240 #if defined (__stub_strlcat) || defined (__stub___strlcat)
17241 #error found stub for strlcat
17249 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17250 if { (eval echo "$as_me:17250: \"$ac_link\"") >&5
17251 (eval $ac_link) 2>&5
17253 echo "$as_me:17253: \$? = $ac_status" >&5
17254 (exit "$ac_status"); } &&
17255 { ac_try='test -s "conftest$ac_exeext"'
17256 { (eval echo "$as_me:17256: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17259 echo "$as_me:17259: \$? = $ac_status" >&5
17260 (exit "$ac_status"); }; }; then
17261 ac_cv_func_strlcat=yes
17263 echo "$as_me: failed program was:" >&5
17264 cat "conftest.$ac_ext" >&5
17265 ac_cv_func_strlcat=no
17267 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17269 echo "$as_me:17269: result: $ac_cv_func_strlcat" >&5
17270 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
17271 if test "$ac_cv_func_strlcat" = yes; then
17273 cat >>confdefs.h <<\EOF
17274 #define HAVE_STRLCAT 1
17279 echo "$as_me:17279: checking for strlcat in -lbsd" >&5
17280 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
17281 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17284 ac_check_lib_save_LIBS=$LIBS
17286 cat >"conftest.$ac_ext" <<_ACEOF
17287 #line 17287 "configure"
17288 #include "confdefs.h"
17290 /* Override any gcc2 internal prototype to avoid an error. */
17294 /* We use char because int might match the return type of a gcc2
17295 builtin and then its argument prototype would still apply. */
17305 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17306 if { (eval echo "$as_me:17306: \"$ac_link\"") >&5
17307 (eval $ac_link) 2>&5
17309 echo "$as_me:17309: \$? = $ac_status" >&5
17310 (exit "$ac_status"); } &&
17311 { ac_try='test -s "conftest$ac_exeext"'
17312 { (eval echo "$as_me:17312: \"$ac_try\"") >&5
17313 (eval $ac_try) 2>&5
17315 echo "$as_me:17315: \$? = $ac_status" >&5
17316 (exit "$ac_status"); }; }; then
17317 ac_cv_lib_bsd_strlcat=yes
17319 echo "$as_me: failed program was:" >&5
17320 cat "conftest.$ac_ext" >&5
17321 ac_cv_lib_bsd_strlcat=no
17323 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17324 LIBS=$ac_check_lib_save_LIBS
17326 echo "$as_me:17326: result: $ac_cv_lib_bsd_strlcat" >&5
17327 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
17328 if test "$ac_cv_lib_bsd_strlcat" = yes; then
17330 cf_add_libs="$LIBS"
17333 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17334 # filter duplicates
17335 for cf_add_1lib in $cf_add_0lib; do
17336 for cf_add_2lib in $cf_add_libs; do
17337 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17342 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17344 LIBS="$cf_add_libs"
17346 for ac_header in bsd/string.h
17348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17349 echo "$as_me:17349: checking for $ac_header" >&5
17350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17352 echo $ECHO_N "(cached) $ECHO_C" >&6
17354 cat >"conftest.$ac_ext" <<_ACEOF
17355 #line 17355 "configure"
17356 #include "confdefs.h"
17357 #include <$ac_header>
17359 if { (eval echo "$as_me:17359: \"$ac_cpp "conftest.$ac_ext"\"") >&5
17360 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
17362 $EGREP -v '^ *\+' conftest.er1 >conftest.err
17364 cat conftest.err >&5
17365 echo "$as_me:17365: \$? = $ac_status" >&5
17366 (exit "$ac_status"); } >/dev/null; then
17367 if test -s conftest.err; then
17368 ac_cpp_err=$ac_c_preproc_warn_flag
17375 if test -z "$ac_cpp_err"; then
17376 eval "$as_ac_Header=yes"
17378 echo "$as_me: failed program was:" >&5
17379 cat "conftest.$ac_ext" >&5
17380 eval "$as_ac_Header=no"
17382 rm -f conftest.err "conftest.$ac_ext"
17384 echo "$as_me:17384: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
17385 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
17386 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
17387 cat >>confdefs.h <<EOF
17388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17394 cat >>confdefs.h <<\EOF
17395 #define HAVE_STRLCAT 1
17402 for ac_func in strlcpy snprintf
17404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17405 echo "$as_me:17405: checking for $ac_func" >&5
17406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17407 if eval "test \"\${$as_ac_var+set}\" = set"; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 cat >"conftest.$ac_ext" <<_ACEOF
17411 #line 17411 "configure"
17412 #include "confdefs.h"
17413 #define $ac_func autoconf_temporary
17414 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17421 /* We use char because int might match the return type of a gcc2
17422 builtin and then its argument prototype would still apply. */
17423 char $ac_func (void);
17429 /* The GNU C library defines stubs for functions which it implements
17430 to always fail with ENOSYS. Some functions are actually named
17431 something starting with __ and the normal name is an alias. */
17432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17433 #error found stub for $ac_func
17436 return $ac_func ();
17441 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17442 if { (eval echo "$as_me:17442: \"$ac_link\"") >&5
17443 (eval $ac_link) 2>&5
17445 echo "$as_me:17445: \$? = $ac_status" >&5
17446 (exit "$ac_status"); } &&
17447 { ac_try='test -s "conftest$ac_exeext"'
17448 { (eval echo "$as_me:17448: \"$ac_try\"") >&5
17449 (eval $ac_try) 2>&5
17451 echo "$as_me:17451: \$? = $ac_status" >&5
17452 (exit "$ac_status"); }; }; then
17453 eval "$as_ac_var=yes"
17455 echo "$as_me: failed program was:" >&5
17456 cat "conftest.$ac_ext" >&5
17457 eval "$as_ac_var=no"
17459 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17461 echo "$as_me:17461: result: `eval echo '${'"$as_ac_var"'}'`" >&5
17462 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
17463 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
17464 cat >>confdefs.h <<EOF
17465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17473 ### use option --enable-assertions to turn on generation of assertion code
17474 echo "$as_me:17474: checking if you want to enable runtime assertions" >&5
17475 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
17477 # Check whether --enable-assertions or --disable-assertions was given.
17478 if test "${enable_assertions+set}" = set; then
17479 enableval="$enable_assertions"
17480 with_assertions=$enableval
17484 echo "$as_me:17484: result: $with_assertions" >&5
17485 echo "${ECHO_T}$with_assertions" >&6
17488 if test "$with_assertions" = no
17490 CPPFLAGS="$CPPFLAGS -DNDEBUG"
17493 ADAFLAGS="$ADAFLAGS -gnata"
17498 ### use option --disable-leaks to suppress "permanent" leaks, for testing
17500 echo "$as_me:17500: checking if you want to use dmalloc for testing" >&5
17501 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
17503 # Check whether --with-dmalloc or --without-dmalloc was given.
17504 if test "${with_dmalloc+set}" = set; then
17505 withval="$with_dmalloc"
17507 cat >>confdefs.h <<EOF
17508 #define USE_DMALLOC 1
17511 : "${with_cflags:=-g}"
17512 : "${enable_leaks:=no}"
17517 echo "$as_me:17517: result: ${with_dmalloc:-no}" >&5
17518 echo "${ECHO_T}${with_dmalloc:-no}" >&6
17520 case ".$with_cflags" in
17530 cf_new_extra_cppflags=
17532 for cf_add_cflags in -g
17534 case "$cf_fix_cppflags" in
17536 case "$cf_add_cflags" in
17537 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17538 case "$cf_add_cflags" in
17540 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17542 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17543 && test -z "${cf_tst_cflags}" \
17544 && cf_fix_cppflags=yes
17546 if test "$cf_fix_cppflags" = yes ; then
17548 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17549 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17552 elif test "${cf_tst_cflags}" = "\"'" ; then
17554 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17555 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17561 case "$CPPFLAGS" in
17565 case "$cf_add_cflags" in
17567 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17569 CPPFLAGS=`echo "$CPPFLAGS" | \
17570 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17571 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17576 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17577 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17584 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17585 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17592 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17593 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17595 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17597 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17598 && test -z "${cf_tst_cflags}" \
17599 && cf_fix_cppflags=no
17604 if test -n "$cf_new_cflags" ; then
17606 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17607 CFLAGS="${CFLAGS}$cf_new_cflags"
17611 if test -n "$cf_new_cppflags" ; then
17613 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17614 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17618 if test -n "$cf_new_extra_cppflags" ; then
17620 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17621 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17630 if test "$with_dmalloc" = yes ; then
17631 echo "$as_me:17631: checking for dmalloc.h" >&5
17632 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
17633 if test "${ac_cv_header_dmalloc_h+set}" = set; then
17634 echo $ECHO_N "(cached) $ECHO_C" >&6
17636 cat >"conftest.$ac_ext" <<_ACEOF
17637 #line 17637 "configure"
17638 #include "confdefs.h"
17639 #include <dmalloc.h>
17641 if { (eval echo "$as_me:17641: \"$ac_cpp "conftest.$ac_ext"\"") >&5
17642 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
17644 $EGREP -v '^ *\+' conftest.er1 >conftest.err
17646 cat conftest.err >&5
17647 echo "$as_me:17647: \$? = $ac_status" >&5
17648 (exit "$ac_status"); } >/dev/null; then
17649 if test -s conftest.err; then
17650 ac_cpp_err=$ac_c_preproc_warn_flag
17657 if test -z "$ac_cpp_err"; then
17658 ac_cv_header_dmalloc_h=yes
17660 echo "$as_me: failed program was:" >&5
17661 cat "conftest.$ac_ext" >&5
17662 ac_cv_header_dmalloc_h=no
17664 rm -f conftest.err "conftest.$ac_ext"
17666 echo "$as_me:17666: result: $ac_cv_header_dmalloc_h" >&5
17667 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
17668 if test "$ac_cv_header_dmalloc_h" = yes; then
17670 echo "$as_me:17670: checking for dmalloc_debug in -ldmalloc" >&5
17671 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
17672 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
17673 echo $ECHO_N "(cached) $ECHO_C" >&6
17675 ac_check_lib_save_LIBS=$LIBS
17676 LIBS="-ldmalloc $LIBS"
17677 cat >"conftest.$ac_ext" <<_ACEOF
17678 #line 17678 "configure"
17679 #include "confdefs.h"
17681 /* Override any gcc2 internal prototype to avoid an error. */
17685 /* We use char because int might match the return type of a gcc2
17686 builtin and then its argument prototype would still apply. */
17687 char dmalloc_debug ();
17696 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17697 if { (eval echo "$as_me:17697: \"$ac_link\"") >&5
17698 (eval $ac_link) 2>&5
17700 echo "$as_me:17700: \$? = $ac_status" >&5
17701 (exit "$ac_status"); } &&
17702 { ac_try='test -s "conftest$ac_exeext"'
17703 { (eval echo "$as_me:17703: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17706 echo "$as_me:17706: \$? = $ac_status" >&5
17707 (exit "$ac_status"); }; }; then
17708 ac_cv_lib_dmalloc_dmalloc_debug=yes
17710 echo "$as_me: failed program was:" >&5
17711 cat "conftest.$ac_ext" >&5
17712 ac_cv_lib_dmalloc_dmalloc_debug=no
17714 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17715 LIBS=$ac_check_lib_save_LIBS
17717 echo "$as_me:17717: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
17718 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
17719 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
17720 cat >>confdefs.h <<EOF
17721 #define HAVE_LIBDMALLOC 1
17724 LIBS="-ldmalloc $LIBS"
17732 echo "$as_me:17732: checking if you want to use dbmalloc for testing" >&5
17733 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
17735 # Check whether --with-dbmalloc or --without-dbmalloc was given.
17736 if test "${with_dbmalloc+set}" = set; then
17737 withval="$with_dbmalloc"
17739 cat >>confdefs.h <<EOF
17740 #define USE_DBMALLOC 1
17743 : "${with_cflags:=-g}"
17744 : "${enable_leaks:=no}"
17749 echo "$as_me:17749: result: ${with_dbmalloc:-no}" >&5
17750 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
17752 case ".$with_cflags" in
17762 cf_new_extra_cppflags=
17764 for cf_add_cflags in -g
17766 case "$cf_fix_cppflags" in
17768 case "$cf_add_cflags" in
17769 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17770 case "$cf_add_cflags" in
17772 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17774 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17775 && test -z "${cf_tst_cflags}" \
17776 && cf_fix_cppflags=yes
17778 if test "$cf_fix_cppflags" = yes ; then
17780 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17781 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17784 elif test "${cf_tst_cflags}" = "\"'" ; then
17786 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17787 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17793 case "$CPPFLAGS" in
17797 case "$cf_add_cflags" in
17799 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17801 CPPFLAGS=`echo "$CPPFLAGS" | \
17802 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17803 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17808 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17809 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17816 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17817 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17824 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17825 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17827 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17829 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17830 && test -z "${cf_tst_cflags}" \
17831 && cf_fix_cppflags=no
17836 if test -n "$cf_new_cflags" ; then
17838 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17839 CFLAGS="${CFLAGS}$cf_new_cflags"
17843 if test -n "$cf_new_cppflags" ; then
17845 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17846 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17850 if test -n "$cf_new_extra_cppflags" ; then
17852 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17853 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17862 if test "$with_dbmalloc" = yes ; then
17863 echo "$as_me:17863: checking for dbmalloc.h" >&5
17864 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
17865 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
17866 echo $ECHO_N "(cached) $ECHO_C" >&6
17868 cat >"conftest.$ac_ext" <<_ACEOF
17869 #line 17869 "configure"
17870 #include "confdefs.h"
17871 #include <dbmalloc.h>
17873 if { (eval echo "$as_me:17873: \"$ac_cpp "conftest.$ac_ext"\"") >&5
17874 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
17876 $EGREP -v '^ *\+' conftest.er1 >conftest.err
17878 cat conftest.err >&5
17879 echo "$as_me:17879: \$? = $ac_status" >&5
17880 (exit "$ac_status"); } >/dev/null; then
17881 if test -s conftest.err; then
17882 ac_cpp_err=$ac_c_preproc_warn_flag
17889 if test -z "$ac_cpp_err"; then
17890 ac_cv_header_dbmalloc_h=yes
17892 echo "$as_me: failed program was:" >&5
17893 cat "conftest.$ac_ext" >&5
17894 ac_cv_header_dbmalloc_h=no
17896 rm -f conftest.err "conftest.$ac_ext"
17898 echo "$as_me:17898: result: $ac_cv_header_dbmalloc_h" >&5
17899 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
17900 if test "$ac_cv_header_dbmalloc_h" = yes; then
17902 echo "$as_me:17902: checking for debug_malloc in -ldbmalloc" >&5
17903 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
17904 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
17905 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 ac_check_lib_save_LIBS=$LIBS
17908 LIBS="-ldbmalloc $LIBS"
17909 cat >"conftest.$ac_ext" <<_ACEOF
17910 #line 17910 "configure"
17911 #include "confdefs.h"
17913 /* Override any gcc2 internal prototype to avoid an error. */
17917 /* We use char because int might match the return type of a gcc2
17918 builtin and then its argument prototype would still apply. */
17919 char debug_malloc ();
17928 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17929 if { (eval echo "$as_me:17929: \"$ac_link\"") >&5
17930 (eval $ac_link) 2>&5
17932 echo "$as_me:17932: \$? = $ac_status" >&5
17933 (exit "$ac_status"); } &&
17934 { ac_try='test -s "conftest$ac_exeext"'
17935 { (eval echo "$as_me:17935: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17938 echo "$as_me:17938: \$? = $ac_status" >&5
17939 (exit "$ac_status"); }; }; then
17940 ac_cv_lib_dbmalloc_debug_malloc=yes
17942 echo "$as_me: failed program was:" >&5
17943 cat "conftest.$ac_ext" >&5
17944 ac_cv_lib_dbmalloc_debug_malloc=no
17946 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17947 LIBS=$ac_check_lib_save_LIBS
17949 echo "$as_me:17949: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
17950 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
17951 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
17952 cat >>confdefs.h <<EOF
17953 #define HAVE_LIBDBMALLOC 1
17956 LIBS="-ldbmalloc $LIBS"
17964 echo "$as_me:17964: checking if you want to use valgrind for testing" >&5
17965 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
17967 # Check whether --with-valgrind or --without-valgrind was given.
17968 if test "${with_valgrind+set}" = set; then
17969 withval="$with_valgrind"
17971 cat >>confdefs.h <<EOF
17972 #define USE_VALGRIND 1
17975 : "${with_cflags:=-g}"
17976 : "${enable_leaks:=no}"
17981 echo "$as_me:17981: result: ${with_valgrind:-no}" >&5
17982 echo "${ECHO_T}${with_valgrind:-no}" >&6
17984 case ".$with_cflags" in
17994 cf_new_extra_cppflags=
17996 for cf_add_cflags in -g
17998 case "$cf_fix_cppflags" in
18000 case "$cf_add_cflags" in
18001 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18002 case "$cf_add_cflags" in
18004 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18006 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18007 && test -z "${cf_tst_cflags}" \
18008 && cf_fix_cppflags=yes
18010 if test "$cf_fix_cppflags" = yes ; then
18012 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18013 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18016 elif test "${cf_tst_cflags}" = "\"'" ; then
18018 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18019 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18025 case "$CPPFLAGS" in
18029 case "$cf_add_cflags" in
18031 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18033 CPPFLAGS=`echo "$CPPFLAGS" | \
18034 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18035 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18040 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18041 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18048 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18049 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18056 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18057 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18059 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18061 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18062 && test -z "${cf_tst_cflags}" \
18063 && cf_fix_cppflags=no
18068 if test -n "$cf_new_cflags" ; then
18070 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18071 CFLAGS="${CFLAGS}$cf_new_cflags"
18075 if test -n "$cf_new_cppflags" ; then
18077 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18078 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18082 if test -n "$cf_new_extra_cppflags" ; then
18084 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18085 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18094 echo "$as_me:18094: checking if you want to perform memory-leak testing" >&5
18095 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18097 # Check whether --enable-leaks or --disable-leaks was given.
18098 if test "${enable_leaks+set}" = set; then
18099 enableval="$enable_leaks"
18100 enable_leaks=$enableval
18104 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18105 echo "$as_me:18105: result: $with_no_leaks" >&5
18106 echo "${ECHO_T}$with_no_leaks" >&6
18108 if test "$enable_leaks" = no ; then
18110 cat >>confdefs.h <<\EOF
18114 cat >>confdefs.h <<\EOF
18115 #define YY_NO_LEAKS 1
18120 cat >>confdefs.h <<\EOF
18121 #define HAVE_NC_ALLOC_H 1
18124 ### use option --enable-expanded to generate certain macros as functions
18126 # Check whether --enable-expanded or --disable-expanded was given.
18127 if test "${enable_expanded+set}" = set; then
18128 enableval="$enable_expanded"
18129 test "x$enableval" = xyes &&
18130 cat >>confdefs.h <<\EOF
18131 #define NCURSES_EXPANDED 1
18136 ### use option --disable-macros to suppress macros in favor of functions
18138 # Check whether --enable-macros or --disable-macros was given.
18139 if test "${enable_macros+set}" = set; then
18140 enableval="$enable_macros"
18141 test "$enableval" = no &&
18142 cat >>confdefs.h <<\EOF
18143 #define NCURSES_NOMACROS 1
18148 # Normally we only add trace() to the debug-library. Allow this to be
18149 # extended to all models of the ncurses library:
18151 case "$CFLAGS $CPPFLAGS" in
18157 echo "$as_me:18157: checking whether to add trace feature to all models" >&5
18158 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
18160 # Check whether --with-trace or --without-trace was given.
18161 if test "${with_trace+set}" = set; then
18162 withval="$with_trace"
18163 cf_with_trace=$withval
18165 cf_with_trace=$cf_all_traces
18167 echo "$as_me:18167: result: $cf_with_trace" >&5
18168 echo "${ECHO_T}$cf_with_trace" >&6
18170 if test "x$cf_with_trace" = xyes ; then
18177 cf_new_extra_cppflags=
18179 for cf_add_cflags in -DTRACE
18181 case "$cf_fix_cppflags" in
18183 case "$cf_add_cflags" in
18184 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18185 case "$cf_add_cflags" in
18187 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18189 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18190 && test -z "${cf_tst_cflags}" \
18191 && cf_fix_cppflags=yes
18193 if test "$cf_fix_cppflags" = yes ; then
18195 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18196 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18199 elif test "${cf_tst_cflags}" = "\"'" ; then
18201 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18202 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18208 case "$CPPFLAGS" in
18212 case "$cf_add_cflags" in
18214 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18216 CPPFLAGS=`echo "$CPPFLAGS" | \
18217 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18218 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18223 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18224 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18231 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18232 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18239 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18240 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18242 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18244 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18245 && test -z "${cf_tst_cflags}" \
18246 && cf_fix_cppflags=no
18251 if test -n "$cf_new_cflags" ; then
18253 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18254 CFLAGS="${CFLAGS}$cf_new_cflags"
18258 if test -n "$cf_new_cppflags" ; then
18260 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18261 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18265 if test -n "$cf_new_extra_cppflags" ; then
18267 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18268 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18272 cat >>confdefs.h <<\EOF
18273 #define HAVE__TRACEF 1
18281 echo "$as_me:18281: checking if we want to use GNAT projects" >&5
18282 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
18284 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
18285 if test "${enable_gnat_projects+set}" = set; then
18286 enableval="$enable_gnat_projects"
18287 test "$enableval" != no && enableval=yes
18288 if test "$enableval" != "yes" ; then
18289 enable_gnat_projects=no
18291 enable_gnat_projects=yes
18295 enable_gnat_projects=yes
18298 echo "$as_me:18298: result: $enable_gnat_projects" >&5
18299 echo "${ECHO_T}$enable_gnat_projects" >&6
18301 ### Checks for libraries.
18302 case "$cf_cv_system_name" in
18303 (*mingw32*|*mingw64*)
18304 if test "x$with_exp_win32" = xyes ; then
18305 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN"
18307 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
18309 # Note: WINVER may be a problem with Windows 10
18312 echo "$as_me:18312: checking for gettimeofday" >&5
18313 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
18314 if test "${ac_cv_func_gettimeofday+set}" = set; then
18315 echo $ECHO_N "(cached) $ECHO_C" >&6
18317 cat >"conftest.$ac_ext" <<_ACEOF
18318 #line 18318 "configure"
18319 #include "confdefs.h"
18320 #define gettimeofday autoconf_temporary
18321 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18322 #undef gettimeofday
18328 /* We use char because int might match the return type of a gcc2
18329 builtin and then its argument prototype would still apply. */
18330 char gettimeofday (void);
18336 /* The GNU C library defines stubs for functions which it implements
18337 to always fail with ENOSYS. Some functions are actually named
18338 something starting with __ and the normal name is an alias. */
18339 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
18340 #error found stub for gettimeofday
18343 return gettimeofday ();
18348 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18349 if { (eval echo "$as_me:18349: \"$ac_link\"") >&5
18350 (eval $ac_link) 2>&5
18352 echo "$as_me:18352: \$? = $ac_status" >&5
18353 (exit "$ac_status"); } &&
18354 { ac_try='test -s "conftest$ac_exeext"'
18355 { (eval echo "$as_me:18355: \"$ac_try\"") >&5
18356 (eval $ac_try) 2>&5
18358 echo "$as_me:18358: \$? = $ac_status" >&5
18359 (exit "$ac_status"); }; }; then
18360 ac_cv_func_gettimeofday=yes
18362 echo "$as_me: failed program was:" >&5
18363 cat "conftest.$ac_ext" >&5
18364 ac_cv_func_gettimeofday=no
18366 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18368 echo "$as_me:18368: result: $ac_cv_func_gettimeofday" >&5
18369 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
18370 if test "$ac_cv_func_gettimeofday" = yes; then
18372 cat >>confdefs.h <<\EOF
18373 #define HAVE_GETTIMEOFDAY 1
18378 echo "$as_me:18378: checking for gettimeofday in -lbsd" >&5
18379 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
18380 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
18381 echo $ECHO_N "(cached) $ECHO_C" >&6
18383 ac_check_lib_save_LIBS=$LIBS
18385 cat >"conftest.$ac_ext" <<_ACEOF
18386 #line 18386 "configure"
18387 #include "confdefs.h"
18389 /* Override any gcc2 internal prototype to avoid an error. */
18393 /* We use char because int might match the return type of a gcc2
18394 builtin and then its argument prototype would still apply. */
18395 char gettimeofday ();
18404 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18405 if { (eval echo "$as_me:18405: \"$ac_link\"") >&5
18406 (eval $ac_link) 2>&5
18408 echo "$as_me:18408: \$? = $ac_status" >&5
18409 (exit "$ac_status"); } &&
18410 { ac_try='test -s "conftest$ac_exeext"'
18411 { (eval echo "$as_me:18411: \"$ac_try\"") >&5
18412 (eval $ac_try) 2>&5
18414 echo "$as_me:18414: \$? = $ac_status" >&5
18415 (exit "$ac_status"); }; }; then
18416 ac_cv_lib_bsd_gettimeofday=yes
18418 echo "$as_me: failed program was:" >&5
18419 cat "conftest.$ac_ext" >&5
18420 ac_cv_lib_bsd_gettimeofday=no
18422 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18423 LIBS=$ac_check_lib_save_LIBS
18425 echo "$as_me:18425: result: $ac_cv_lib_bsd_gettimeofday" >&5
18426 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
18427 if test "$ac_cv_lib_bsd_gettimeofday" = yes; then
18429 cat >>confdefs.h <<\EOF
18430 #define HAVE_GETTIMEOFDAY 1
18433 cf_add_libs="$LIBS"
18436 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18437 # filter duplicates
18438 for cf_add_1lib in $cf_add_0lib; do
18439 for cf_add_2lib in $cf_add_libs; do
18440 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18445 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18447 LIBS="$cf_add_libs"
18455 echo "$as_me:18455: checking if -lm needed for math functions" >&5
18456 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
18457 if test "${cf_cv_need_libm+set}" = set; then
18458 echo $ECHO_N "(cached) $ECHO_C" >&6
18461 cat >"conftest.$ac_ext" <<_ACEOF
18462 #line 18462 "configure"
18463 #include "confdefs.h"
18466 #include <stdlib.h>
18472 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
18477 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18478 if { (eval echo "$as_me:18478: \"$ac_link\"") >&5
18479 (eval $ac_link) 2>&5
18481 echo "$as_me:18481: \$? = $ac_status" >&5
18482 (exit "$ac_status"); } &&
18483 { ac_try='test -s "conftest$ac_exeext"'
18484 { (eval echo "$as_me:18484: \"$ac_try\"") >&5
18485 (eval $ac_try) 2>&5
18487 echo "$as_me:18487: \$? = $ac_status" >&5
18488 (exit "$ac_status"); }; }; then
18491 echo "$as_me: failed program was:" >&5
18492 cat "conftest.$ac_ext" >&5
18493 cf_cv_need_libm=yes
18495 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18497 echo "$as_me:18497: result: $cf_cv_need_libm" >&5
18498 echo "${ECHO_T}$cf_cv_need_libm" >&6
18499 if test "$cf_cv_need_libm" = yes
18504 ### Checks for header files.
18505 echo "$as_me:18505: checking for ANSI C header files" >&5
18506 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18507 if test "${ac_cv_header_stdc+set}" = set; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18510 cat >"conftest.$ac_ext" <<_ACEOF
18511 #line 18511 "configure"
18512 #include "confdefs.h"
18513 #include <stdlib.h>
18514 #include <stdarg.h>
18515 #include <string.h>
18519 if { (eval echo "$as_me:18519: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18520 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18522 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18524 cat conftest.err >&5
18525 echo "$as_me:18525: \$? = $ac_status" >&5
18526 (exit "$ac_status"); } >/dev/null; then
18527 if test -s conftest.err; then
18528 ac_cpp_err=$ac_c_preproc_warn_flag
18535 if test -z "$ac_cpp_err"; then
18536 ac_cv_header_stdc=yes
18538 echo "$as_me: failed program was:" >&5
18539 cat "conftest.$ac_ext" >&5
18540 ac_cv_header_stdc=no
18542 rm -f conftest.err "conftest.$ac_ext"
18544 if test $ac_cv_header_stdc = yes; then
18545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18546 cat >"conftest.$ac_ext" <<_ACEOF
18547 #line 18547 "configure"
18548 #include "confdefs.h"
18549 #include <string.h>
18552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18553 $EGREP "memchr" >/dev/null 2>&1; then
18556 ac_cv_header_stdc=no
18562 if test $ac_cv_header_stdc = yes; then
18563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18564 cat >"conftest.$ac_ext" <<_ACEOF
18565 #line 18565 "configure"
18566 #include "confdefs.h"
18567 #include <stdlib.h>
18570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18571 $EGREP "free" >/dev/null 2>&1; then
18574 ac_cv_header_stdc=no
18580 if test $ac_cv_header_stdc = yes; then
18581 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18582 if test "$cross_compiling" = yes; then
18585 cat >"conftest.$ac_ext" <<_ACEOF
18586 #line 18586 "configure"
18587 #include "confdefs.h"
18589 #if ((' ' & 0x0FF) == 0x020)
18590 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18591 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18593 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
18594 || ('j' <= (c) && (c) <= 'r') \
18595 || ('s' <= (c) && (c) <= 'z'))
18596 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18599 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18604 for (i = 0; i < 256; i++)
18605 if (XOR (islower (i), ISLOWER (i))
18606 || toupper (i) != TOUPPER (i))
18607 $ac_main_return(2);
18608 $ac_main_return (0);
18611 rm -f "conftest$ac_exeext"
18612 if { (eval echo "$as_me:18612: \"$ac_link\"") >&5
18613 (eval $ac_link) 2>&5
18615 echo "$as_me:18615: \$? = $ac_status" >&5
18616 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
18617 { (eval echo "$as_me:18617: \"$ac_try\"") >&5
18618 (eval $ac_try) 2>&5
18620 echo "$as_me:18620: \$? = $ac_status" >&5
18621 (exit "$ac_status"); }; }; then
18624 echo "$as_me: program exited with status $ac_status" >&5
18625 echo "$as_me: failed program was:" >&5
18626 cat "conftest.$ac_ext" >&5
18627 ac_cv_header_stdc=no
18629 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
18633 echo "$as_me:18633: result: $ac_cv_header_stdc" >&5
18634 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18635 if test $ac_cv_header_stdc = yes; then
18637 cat >>confdefs.h <<\EOF
18638 #define STDC_HEADERS 1
18643 ac_header_dirent=no
18644 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18645 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18646 echo "$as_me:18646: checking for $ac_hdr that defines DIR" >&5
18647 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
18648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18651 cat >"conftest.$ac_ext" <<_ACEOF
18652 #line 18652 "configure"
18653 #include "confdefs.h"
18654 #include <sys/types.h>
18666 rm -f "conftest.$ac_objext"
18667 if { (eval echo "$as_me:18667: \"$ac_compile\"") >&5
18668 (eval $ac_compile) 2>&5
18670 echo "$as_me:18670: \$? = $ac_status" >&5
18671 (exit "$ac_status"); } &&
18672 { ac_try='test -s "conftest.$ac_objext"'
18673 { (eval echo "$as_me:18673: \"$ac_try\"") >&5
18674 (eval $ac_try) 2>&5
18676 echo "$as_me:18676: \$? = $ac_status" >&5
18677 (exit "$ac_status"); }; }; then
18678 eval "$as_ac_Header=yes"
18680 echo "$as_me: failed program was:" >&5
18681 cat "conftest.$ac_ext" >&5
18682 eval "$as_ac_Header=no"
18684 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18686 echo "$as_me:18686: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18687 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18688 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18689 cat >>confdefs.h <<EOF
18690 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18693 ac_header_dirent=$ac_hdr; break
18697 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18698 if test $ac_header_dirent = dirent.h; then
18699 echo "$as_me:18699: checking for opendir in -ldir" >&5
18700 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
18701 if test "${ac_cv_lib_dir_opendir+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18704 ac_check_lib_save_LIBS=$LIBS
18706 cat >"conftest.$ac_ext" <<_ACEOF
18707 #line 18707 "configure"
18708 #include "confdefs.h"
18710 /* Override any gcc2 internal prototype to avoid an error. */
18714 /* We use char because int might match the return type of a gcc2
18715 builtin and then its argument prototype would still apply. */
18725 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18726 if { (eval echo "$as_me:18726: \"$ac_link\"") >&5
18727 (eval $ac_link) 2>&5
18729 echo "$as_me:18729: \$? = $ac_status" >&5
18730 (exit "$ac_status"); } &&
18731 { ac_try='test -s "conftest$ac_exeext"'
18732 { (eval echo "$as_me:18732: \"$ac_try\"") >&5
18733 (eval $ac_try) 2>&5
18735 echo "$as_me:18735: \$? = $ac_status" >&5
18736 (exit "$ac_status"); }; }; then
18737 ac_cv_lib_dir_opendir=yes
18739 echo "$as_me: failed program was:" >&5
18740 cat "conftest.$ac_ext" >&5
18741 ac_cv_lib_dir_opendir=no
18743 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18744 LIBS=$ac_check_lib_save_LIBS
18746 echo "$as_me:18746: result: $ac_cv_lib_dir_opendir" >&5
18747 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
18748 if test "$ac_cv_lib_dir_opendir" = yes; then
18753 echo "$as_me:18753: checking for opendir in -lx" >&5
18754 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
18755 if test "${ac_cv_lib_x_opendir+set}" = set; then
18756 echo $ECHO_N "(cached) $ECHO_C" >&6
18758 ac_check_lib_save_LIBS=$LIBS
18760 cat >"conftest.$ac_ext" <<_ACEOF
18761 #line 18761 "configure"
18762 #include "confdefs.h"
18764 /* Override any gcc2 internal prototype to avoid an error. */
18768 /* We use char because int might match the return type of a gcc2
18769 builtin and then its argument prototype would still apply. */
18779 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18780 if { (eval echo "$as_me:18780: \"$ac_link\"") >&5
18781 (eval $ac_link) 2>&5
18783 echo "$as_me:18783: \$? = $ac_status" >&5
18784 (exit "$ac_status"); } &&
18785 { ac_try='test -s "conftest$ac_exeext"'
18786 { (eval echo "$as_me:18786: \"$ac_try\"") >&5
18787 (eval $ac_try) 2>&5
18789 echo "$as_me:18789: \$? = $ac_status" >&5
18790 (exit "$ac_status"); }; }; then
18791 ac_cv_lib_x_opendir=yes
18793 echo "$as_me: failed program was:" >&5
18794 cat "conftest.$ac_ext" >&5
18795 ac_cv_lib_x_opendir=no
18797 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18798 LIBS=$ac_check_lib_save_LIBS
18800 echo "$as_me:18800: result: $ac_cv_lib_x_opendir" >&5
18801 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
18802 if test "$ac_cv_lib_x_opendir" = yes; then
18808 echo "$as_me:18808: checking whether time.h and sys/time.h may both be included" >&5
18809 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18810 if test "${ac_cv_header_time+set}" = set; then
18811 echo $ECHO_N "(cached) $ECHO_C" >&6
18813 cat >"conftest.$ac_ext" <<_ACEOF
18814 #line 18814 "configure"
18815 #include "confdefs.h"
18816 #include <sys/types.h>
18817 #include <sys/time.h>
18823 if ((struct tm *) 0)
18829 rm -f "conftest.$ac_objext"
18830 if { (eval echo "$as_me:18830: \"$ac_compile\"") >&5
18831 (eval $ac_compile) 2>&5
18833 echo "$as_me:18833: \$? = $ac_status" >&5
18834 (exit "$ac_status"); } &&
18835 { ac_try='test -s "conftest.$ac_objext"'
18836 { (eval echo "$as_me:18836: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18839 echo "$as_me:18839: \$? = $ac_status" >&5
18840 (exit "$ac_status"); }; }; then
18841 ac_cv_header_time=yes
18843 echo "$as_me: failed program was:" >&5
18844 cat "conftest.$ac_ext" >&5
18845 ac_cv_header_time=no
18847 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18849 echo "$as_me:18849: result: $ac_cv_header_time" >&5
18850 echo "${ECHO_T}$ac_cv_header_time" >&6
18851 if test $ac_cv_header_time = yes; then
18853 cat >>confdefs.h <<\EOF
18854 #define TIME_WITH_SYS_TIME 1
18863 # -lsystre -ltre -lintl -liconv
18864 echo "$as_me:18864: checking for regcomp in -lsystre" >&5
18865 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
18866 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18869 ac_check_lib_save_LIBS=$LIBS
18870 LIBS="-lsystre $LIBS"
18871 cat >"conftest.$ac_ext" <<_ACEOF
18872 #line 18872 "configure"
18873 #include "confdefs.h"
18875 /* Override any gcc2 internal prototype to avoid an error. */
18879 /* We use char because int might match the return type of a gcc2
18880 builtin and then its argument prototype would still apply. */
18890 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18891 if { (eval echo "$as_me:18891: \"$ac_link\"") >&5
18892 (eval $ac_link) 2>&5
18894 echo "$as_me:18894: \$? = $ac_status" >&5
18895 (exit "$ac_status"); } &&
18896 { ac_try='test -s "conftest$ac_exeext"'
18897 { (eval echo "$as_me:18897: \"$ac_try\"") >&5
18898 (eval $ac_try) 2>&5
18900 echo "$as_me:18900: \$? = $ac_status" >&5
18901 (exit "$ac_status"); }; }; then
18902 ac_cv_lib_systre_regcomp=yes
18904 echo "$as_me: failed program was:" >&5
18905 cat "conftest.$ac_ext" >&5
18906 ac_cv_lib_systre_regcomp=no
18908 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18909 LIBS=$ac_check_lib_save_LIBS
18911 echo "$as_me:18911: result: $ac_cv_lib_systre_regcomp" >&5
18912 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
18913 if test "$ac_cv_lib_systre_regcomp" = yes; then
18915 echo "$as_me:18915: checking for libiconv_open in -liconv" >&5
18916 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
18917 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
18918 echo $ECHO_N "(cached) $ECHO_C" >&6
18920 ac_check_lib_save_LIBS=$LIBS
18921 LIBS="-liconv $LIBS"
18922 cat >"conftest.$ac_ext" <<_ACEOF
18923 #line 18923 "configure"
18924 #include "confdefs.h"
18926 /* Override any gcc2 internal prototype to avoid an error. */
18930 /* We use char because int might match the return type of a gcc2
18931 builtin and then its argument prototype would still apply. */
18932 char libiconv_open ();
18941 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18942 if { (eval echo "$as_me:18942: \"$ac_link\"") >&5
18943 (eval $ac_link) 2>&5
18945 echo "$as_me:18945: \$? = $ac_status" >&5
18946 (exit "$ac_status"); } &&
18947 { ac_try='test -s "conftest$ac_exeext"'
18948 { (eval echo "$as_me:18948: \"$ac_try\"") >&5
18949 (eval $ac_try) 2>&5
18951 echo "$as_me:18951: \$? = $ac_status" >&5
18952 (exit "$ac_status"); }; }; then
18953 ac_cv_lib_iconv_libiconv_open=yes
18955 echo "$as_me: failed program was:" >&5
18956 cat "conftest.$ac_ext" >&5
18957 ac_cv_lib_iconv_libiconv_open=no
18959 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18960 LIBS=$ac_check_lib_save_LIBS
18962 echo "$as_me:18962: result: $ac_cv_lib_iconv_libiconv_open" >&5
18963 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
18964 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then
18966 cf_add_libs="$LIBS"
18969 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18970 # filter duplicates
18971 for cf_add_1lib in $cf_add_0lib; do
18972 for cf_add_2lib in $cf_add_libs; do
18973 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18978 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18980 LIBS="$cf_add_libs"
18984 echo "$as_me:18984: checking for libintl_gettext in -lintl" >&5
18985 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
18986 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
18987 echo $ECHO_N "(cached) $ECHO_C" >&6
18989 ac_check_lib_save_LIBS=$LIBS
18990 LIBS="-lintl $LIBS"
18991 cat >"conftest.$ac_ext" <<_ACEOF
18992 #line 18992 "configure"
18993 #include "confdefs.h"
18995 /* Override any gcc2 internal prototype to avoid an error. */
18999 /* We use char because int might match the return type of a gcc2
19000 builtin and then its argument prototype would still apply. */
19001 char libintl_gettext ();
19005 libintl_gettext ();
19010 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19011 if { (eval echo "$as_me:19011: \"$ac_link\"") >&5
19012 (eval $ac_link) 2>&5
19014 echo "$as_me:19014: \$? = $ac_status" >&5
19015 (exit "$ac_status"); } &&
19016 { ac_try='test -s "conftest$ac_exeext"'
19017 { (eval echo "$as_me:19017: \"$ac_try\"") >&5
19018 (eval $ac_try) 2>&5
19020 echo "$as_me:19020: \$? = $ac_status" >&5
19021 (exit "$ac_status"); }; }; then
19022 ac_cv_lib_intl_libintl_gettext=yes
19024 echo "$as_me: failed program was:" >&5
19025 cat "conftest.$ac_ext" >&5
19026 ac_cv_lib_intl_libintl_gettext=no
19028 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19029 LIBS=$ac_check_lib_save_LIBS
19031 echo "$as_me:19031: result: $ac_cv_lib_intl_libintl_gettext" >&5
19032 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
19033 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then
19035 cf_add_libs="$LIBS"
19038 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19039 # filter duplicates
19040 for cf_add_1lib in $cf_add_0lib; do
19041 for cf_add_2lib in $cf_add_libs; do
19042 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19047 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19049 LIBS="$cf_add_libs"
19053 echo "$as_me:19053: checking for tre_regcomp in -ltre" >&5
19054 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
19055 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19058 ac_check_lib_save_LIBS=$LIBS
19060 cat >"conftest.$ac_ext" <<_ACEOF
19061 #line 19061 "configure"
19062 #include "confdefs.h"
19064 /* Override any gcc2 internal prototype to avoid an error. */
19068 /* We use char because int might match the return type of a gcc2
19069 builtin and then its argument prototype would still apply. */
19070 char tre_regcomp ();
19079 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19080 if { (eval echo "$as_me:19080: \"$ac_link\"") >&5
19081 (eval $ac_link) 2>&5
19083 echo "$as_me:19083: \$? = $ac_status" >&5
19084 (exit "$ac_status"); } &&
19085 { ac_try='test -s "conftest$ac_exeext"'
19086 { (eval echo "$as_me:19086: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19089 echo "$as_me:19089: \$? = $ac_status" >&5
19090 (exit "$ac_status"); }; }; then
19091 ac_cv_lib_tre_tre_regcomp=yes
19093 echo "$as_me: failed program was:" >&5
19094 cat "conftest.$ac_ext" >&5
19095 ac_cv_lib_tre_tre_regcomp=no
19097 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19098 LIBS=$ac_check_lib_save_LIBS
19100 echo "$as_me:19100: result: $ac_cv_lib_tre_tre_regcomp" >&5
19101 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
19102 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then
19104 cf_add_libs="$LIBS"
19107 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19108 # filter duplicates
19109 for cf_add_1lib in $cf_add_0lib; do
19110 for cf_add_2lib in $cf_add_libs; do
19111 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19116 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19118 LIBS="$cf_add_libs"
19122 cf_add_libs="$LIBS"
19125 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19126 # filter duplicates
19127 for cf_add_1lib in $cf_add_0lib; do
19128 for cf_add_2lib in $cf_add_libs; do
19129 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19134 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19136 LIBS="$cf_add_libs"
19138 cf_regex_func=regcomp
19142 echo "$as_me:19142: checking for regcomp in -lgnurx" >&5
19143 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
19144 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19147 ac_check_lib_save_LIBS=$LIBS
19148 LIBS="-lgnurx $LIBS"
19149 cat >"conftest.$ac_ext" <<_ACEOF
19150 #line 19150 "configure"
19151 #include "confdefs.h"
19153 /* Override any gcc2 internal prototype to avoid an error. */
19157 /* We use char because int might match the return type of a gcc2
19158 builtin and then its argument prototype would still apply. */
19168 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19169 if { (eval echo "$as_me:19169: \"$ac_link\"") >&5
19170 (eval $ac_link) 2>&5
19172 echo "$as_me:19172: \$? = $ac_status" >&5
19173 (exit "$ac_status"); } &&
19174 { ac_try='test -s "conftest$ac_exeext"'
19175 { (eval echo "$as_me:19175: \"$ac_try\"") >&5
19176 (eval $ac_try) 2>&5
19178 echo "$as_me:19178: \$? = $ac_status" >&5
19179 (exit "$ac_status"); }; }; then
19180 ac_cv_lib_gnurx_regcomp=yes
19182 echo "$as_me: failed program was:" >&5
19183 cat "conftest.$ac_ext" >&5
19184 ac_cv_lib_gnurx_regcomp=no
19186 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19187 LIBS=$ac_check_lib_save_LIBS
19189 echo "$as_me:19189: result: $ac_cv_lib_gnurx_regcomp" >&5
19190 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
19191 if test "$ac_cv_lib_gnurx_regcomp" = yes; then
19193 cf_add_libs="$LIBS"
19196 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19197 # filter duplicates
19198 for cf_add_1lib in $cf_add_0lib; do
19199 for cf_add_2lib in $cf_add_libs; do
19200 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19205 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19207 LIBS="$cf_add_libs"
19209 cf_regex_func=regcomp
19216 cf_regex_libs="regex re"
19217 echo "$as_me:19217: checking for regcomp" >&5
19218 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
19219 if test "${ac_cv_func_regcomp+set}" = set; then
19220 echo $ECHO_N "(cached) $ECHO_C" >&6
19222 cat >"conftest.$ac_ext" <<_ACEOF
19223 #line 19223 "configure"
19224 #include "confdefs.h"
19225 #define regcomp autoconf_temporary
19226 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19233 /* We use char because int might match the return type of a gcc2
19234 builtin and then its argument prototype would still apply. */
19235 char regcomp (void);
19241 /* The GNU C library defines stubs for functions which it implements
19242 to always fail with ENOSYS. Some functions are actually named
19243 something starting with __ and the normal name is an alias. */
19244 #if defined (__stub_regcomp) || defined (__stub___regcomp)
19245 #error found stub for regcomp
19253 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19254 if { (eval echo "$as_me:19254: \"$ac_link\"") >&5
19255 (eval $ac_link) 2>&5
19257 echo "$as_me:19257: \$? = $ac_status" >&5
19258 (exit "$ac_status"); } &&
19259 { ac_try='test -s "conftest$ac_exeext"'
19260 { (eval echo "$as_me:19260: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19263 echo "$as_me:19263: \$? = $ac_status" >&5
19264 (exit "$ac_status"); }; }; then
19265 ac_cv_func_regcomp=yes
19267 echo "$as_me: failed program was:" >&5
19268 cat "conftest.$ac_ext" >&5
19269 ac_cv_func_regcomp=no
19271 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19273 echo "$as_me:19273: result: $ac_cv_func_regcomp" >&5
19274 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
19275 if test "$ac_cv_func_regcomp" = yes; then
19276 cf_regex_func=regcomp
19279 for cf_regex_lib in $cf_regex_libs
19281 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
19282 echo "$as_me:19282: checking for regcomp in -l$cf_regex_lib" >&5
19283 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
19284 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
19285 echo $ECHO_N "(cached) $ECHO_C" >&6
19287 ac_check_lib_save_LIBS=$LIBS
19288 LIBS="-l$cf_regex_lib $LIBS"
19289 cat >"conftest.$ac_ext" <<_ACEOF
19290 #line 19290 "configure"
19291 #include "confdefs.h"
19293 /* Override any gcc2 internal prototype to avoid an error. */
19297 /* We use char because int might match the return type of a gcc2
19298 builtin and then its argument prototype would still apply. */
19308 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19309 if { (eval echo "$as_me:19309: \"$ac_link\"") >&5
19310 (eval $ac_link) 2>&5
19312 echo "$as_me:19312: \$? = $ac_status" >&5
19313 (exit "$ac_status"); } &&
19314 { ac_try='test -s "conftest$ac_exeext"'
19315 { (eval echo "$as_me:19315: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19318 echo "$as_me:19318: \$? = $ac_status" >&5
19319 (exit "$ac_status"); }; }; then
19320 eval "$as_ac_Lib=yes"
19322 echo "$as_me: failed program was:" >&5
19323 cat "conftest.$ac_ext" >&5
19324 eval "$as_ac_Lib=no"
19326 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19327 LIBS=$ac_check_lib_save_LIBS
19329 echo "$as_me:19329: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
19330 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
19331 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
19333 cf_add_libs="$LIBS"
19336 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19337 # filter duplicates
19338 for cf_add_1lib in $cf_add_0lib; do
19339 for cf_add_2lib in $cf_add_libs; do
19340 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19345 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19347 LIBS="$cf_add_libs"
19349 cf_regex_func=regcomp
19360 if test "$cf_regex_func" = no ; then
19361 echo "$as_me:19361: checking for compile" >&5
19362 echo $ECHO_N "checking for compile... $ECHO_C" >&6
19363 if test "${ac_cv_func_compile+set}" = set; then
19364 echo $ECHO_N "(cached) $ECHO_C" >&6
19366 cat >"conftest.$ac_ext" <<_ACEOF
19367 #line 19367 "configure"
19368 #include "confdefs.h"
19369 #define compile autoconf_temporary
19370 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19377 /* We use char because int might match the return type of a gcc2
19378 builtin and then its argument prototype would still apply. */
19379 char compile (void);
19385 /* The GNU C library defines stubs for functions which it implements
19386 to always fail with ENOSYS. Some functions are actually named
19387 something starting with __ and the normal name is an alias. */
19388 #if defined (__stub_compile) || defined (__stub___compile)
19389 #error found stub for compile
19397 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19398 if { (eval echo "$as_me:19398: \"$ac_link\"") >&5
19399 (eval $ac_link) 2>&5
19401 echo "$as_me:19401: \$? = $ac_status" >&5
19402 (exit "$ac_status"); } &&
19403 { ac_try='test -s "conftest$ac_exeext"'
19404 { (eval echo "$as_me:19404: \"$ac_try\"") >&5
19405 (eval $ac_try) 2>&5
19407 echo "$as_me:19407: \$? = $ac_status" >&5
19408 (exit "$ac_status"); }; }; then
19409 ac_cv_func_compile=yes
19411 echo "$as_me: failed program was:" >&5
19412 cat "conftest.$ac_ext" >&5
19413 ac_cv_func_compile=no
19415 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19417 echo "$as_me:19417: result: $ac_cv_func_compile" >&5
19418 echo "${ECHO_T}$ac_cv_func_compile" >&6
19419 if test "$ac_cv_func_compile" = yes; then
19420 cf_regex_func=compile
19423 echo "$as_me:19423: checking for compile in -lgen" >&5
19424 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
19425 if test "${ac_cv_lib_gen_compile+set}" = set; then
19426 echo $ECHO_N "(cached) $ECHO_C" >&6
19428 ac_check_lib_save_LIBS=$LIBS
19430 cat >"conftest.$ac_ext" <<_ACEOF
19431 #line 19431 "configure"
19432 #include "confdefs.h"
19434 /* Override any gcc2 internal prototype to avoid an error. */
19438 /* We use char because int might match the return type of a gcc2
19439 builtin and then its argument prototype would still apply. */
19449 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19450 if { (eval echo "$as_me:19450: \"$ac_link\"") >&5
19451 (eval $ac_link) 2>&5
19453 echo "$as_me:19453: \$? = $ac_status" >&5
19454 (exit "$ac_status"); } &&
19455 { ac_try='test -s "conftest$ac_exeext"'
19456 { (eval echo "$as_me:19456: \"$ac_try\"") >&5
19457 (eval $ac_try) 2>&5
19459 echo "$as_me:19459: \$? = $ac_status" >&5
19460 (exit "$ac_status"); }; }; then
19461 ac_cv_lib_gen_compile=yes
19463 echo "$as_me: failed program was:" >&5
19464 cat "conftest.$ac_ext" >&5
19465 ac_cv_lib_gen_compile=no
19467 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19468 LIBS=$ac_check_lib_save_LIBS
19470 echo "$as_me:19470: result: $ac_cv_lib_gen_compile" >&5
19471 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
19472 if test "$ac_cv_lib_gen_compile" = yes; then
19474 cf_add_libs="$LIBS"
19477 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19478 # filter duplicates
19479 for cf_add_1lib in $cf_add_0lib; do
19480 for cf_add_2lib in $cf_add_libs; do
19481 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19486 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19488 LIBS="$cf_add_libs"
19490 cf_regex_func=compile
19497 if test "$cf_regex_func" = no ; then
19498 { echo "$as_me:19498: WARNING: cannot find regular expression library" >&5
19499 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
19502 echo "$as_me:19502: checking for regular-expression headers" >&5
19503 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
19504 if test "${cf_cv_regex_hdrs+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19508 cf_cv_regex_hdrs=no
19509 case "$cf_regex_func" in
19511 for cf_regex_hdr in regexp.h regexpr.h
19513 cat >"conftest.$ac_ext" <<_ACEOF
19514 #line 19514 "configure"
19515 #include "confdefs.h"
19516 #include <$cf_regex_hdr>
19521 char *p = compile("", "", "", 0);
19522 int x = step("", "");
19530 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19531 if { (eval echo "$as_me:19531: \"$ac_link\"") >&5
19532 (eval $ac_link) 2>&5
19534 echo "$as_me:19534: \$? = $ac_status" >&5
19535 (exit "$ac_status"); } &&
19536 { ac_try='test -s "conftest$ac_exeext"'
19537 { (eval echo "$as_me:19537: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19540 echo "$as_me:19540: \$? = $ac_status" >&5
19541 (exit "$ac_status"); }; }; then
19543 cf_cv_regex_hdrs=$cf_regex_hdr
19547 echo "$as_me: failed program was:" >&5
19548 cat "conftest.$ac_ext" >&5
19550 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19554 for cf_regex_hdr in regex.h
19556 cat >"conftest.$ac_ext" <<_ACEOF
19557 #line 19557 "configure"
19558 #include "confdefs.h"
19559 #include <sys/types.h>
19560 #include <$cf_regex_hdr>
19566 int x = regcomp(p, "", 0);
19567 int y = regexec(p, "", 0, 0, 0);
19576 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19577 if { (eval echo "$as_me:19577: \"$ac_link\"") >&5
19578 (eval $ac_link) 2>&5
19580 echo "$as_me:19580: \$? = $ac_status" >&5
19581 (exit "$ac_status"); } &&
19582 { ac_try='test -s "conftest$ac_exeext"'
19583 { (eval echo "$as_me:19583: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19586 echo "$as_me:19586: \$? = $ac_status" >&5
19587 (exit "$ac_status"); }; }; then
19589 cf_cv_regex_hdrs=$cf_regex_hdr
19593 echo "$as_me: failed program was:" >&5
19594 cat "conftest.$ac_ext" >&5
19596 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19602 echo "$as_me:19602: result: $cf_cv_regex_hdrs" >&5
19603 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
19605 case "$cf_cv_regex_hdrs" in
19606 (no) { echo "$as_me:19606: WARNING: no regular expression header found" >&5
19607 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
19609 cat >>confdefs.h <<\EOF
19610 #define HAVE_REGEX_H_FUNCS 1
19614 cat >>confdefs.h <<\EOF
19615 #define HAVE_REGEXP_H_FUNCS 1
19619 cat >>confdefs.h <<\EOF
19620 #define HAVE_REGEXPR_H_FUNCS 1
19643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19644 echo "$as_me:19644: checking for $ac_header" >&5
19645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19647 echo $ECHO_N "(cached) $ECHO_C" >&6
19649 cat >"conftest.$ac_ext" <<_ACEOF
19650 #line 19650 "configure"
19651 #include "confdefs.h"
19652 #include <$ac_header>
19654 if { (eval echo "$as_me:19654: \"$ac_cpp "conftest.$ac_ext"\"") >&5
19655 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
19657 $EGREP -v '^ *\+' conftest.er1 >conftest.err
19659 cat conftest.err >&5
19660 echo "$as_me:19660: \$? = $ac_status" >&5
19661 (exit "$ac_status"); } >/dev/null; then
19662 if test -s conftest.err; then
19663 ac_cpp_err=$ac_c_preproc_warn_flag
19670 if test -z "$ac_cpp_err"; then
19671 eval "$as_ac_Header=yes"
19673 echo "$as_me: failed program was:" >&5
19674 cat "conftest.$ac_ext" >&5
19675 eval "$as_ac_Header=no"
19677 rm -f conftest.err "conftest.$ac_ext"
19679 echo "$as_me:19679: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
19680 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
19681 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
19682 cat >>confdefs.h <<EOF
19683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19689 for ac_header in unistd.h getopt.h
19691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19692 echo "$as_me:19692: checking for $ac_header" >&5
19693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19695 echo $ECHO_N "(cached) $ECHO_C" >&6
19697 cat >"conftest.$ac_ext" <<_ACEOF
19698 #line 19698 "configure"
19699 #include "confdefs.h"
19700 #include <$ac_header>
19702 if { (eval echo "$as_me:19702: \"$ac_cpp "conftest.$ac_ext"\"") >&5
19703 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
19705 $EGREP -v '^ *\+' conftest.er1 >conftest.err
19707 cat conftest.err >&5
19708 echo "$as_me:19708: \$? = $ac_status" >&5
19709 (exit "$ac_status"); } >/dev/null; then
19710 if test -s conftest.err; then
19711 ac_cpp_err=$ac_c_preproc_warn_flag
19718 if test -z "$ac_cpp_err"; then
19719 eval "$as_ac_Header=yes"
19721 echo "$as_me: failed program was:" >&5
19722 cat "conftest.$ac_ext" >&5
19723 eval "$as_ac_Header=no"
19725 rm -f conftest.err "conftest.$ac_ext"
19727 echo "$as_me:19727: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
19728 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
19729 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
19730 cat >>confdefs.h <<EOF
19731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19737 echo "$as_me:19737: checking for header declaring getopt variables" >&5
19738 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
19739 if test "${cf_cv_getopt_header+set}" = set; then
19740 echo $ECHO_N "(cached) $ECHO_C" >&6
19743 cf_cv_getopt_header=none
19744 for cf_header in stdio.h stdlib.h unistd.h getopt.h
19746 cat >"conftest.$ac_ext" <<_ACEOF
19747 #line 19747 "configure"
19748 #include "confdefs.h"
19750 #include <$cf_header>
19754 int x = optind; char *y = optarg
19759 rm -f "conftest.$ac_objext"
19760 if { (eval echo "$as_me:19760: \"$ac_compile\"") >&5
19761 (eval $ac_compile) 2>&5
19763 echo "$as_me:19763: \$? = $ac_status" >&5
19764 (exit "$ac_status"); } &&
19765 { ac_try='test -s "conftest.$ac_objext"'
19766 { (eval echo "$as_me:19766: \"$ac_try\"") >&5
19767 (eval $ac_try) 2>&5
19769 echo "$as_me:19769: \$? = $ac_status" >&5
19770 (exit "$ac_status"); }; }; then
19771 cf_cv_getopt_header=$cf_header
19774 echo "$as_me: failed program was:" >&5
19775 cat "conftest.$ac_ext" >&5
19777 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19781 echo "$as_me:19781: result: $cf_cv_getopt_header" >&5
19782 echo "${ECHO_T}$cf_cv_getopt_header" >&6
19783 if test "$cf_cv_getopt_header" != none ; then
19785 cat >>confdefs.h <<\EOF
19786 #define HAVE_GETOPT_HEADER 1
19790 if test "$cf_cv_getopt_header" = getopt.h ; then
19792 cat >>confdefs.h <<\EOF
19793 #define NEED_GETOPT_H 1
19798 echo "$as_me:19798: checking if external environ is declared" >&5
19799 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
19800 if test "${cf_cv_dcl_environ+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19804 cat >"conftest.$ac_ext" <<_ACEOF
19805 #line 19805 "configure"
19806 #include "confdefs.h"
19808 #ifdef HAVE_STDLIB_H
19809 #include <stdlib.h>
19811 #include <unistd.h>
19815 int x = (int) environ
19820 rm -f "conftest.$ac_objext"
19821 if { (eval echo "$as_me:19821: \"$ac_compile\"") >&5
19822 (eval $ac_compile) 2>&5
19824 echo "$as_me:19824: \$? = $ac_status" >&5
19825 (exit "$ac_status"); } &&
19826 { ac_try='test -s "conftest.$ac_objext"'
19827 { (eval echo "$as_me:19827: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19830 echo "$as_me:19830: \$? = $ac_status" >&5
19831 (exit "$ac_status"); }; }; then
19832 cf_cv_dcl_environ=yes
19834 echo "$as_me: failed program was:" >&5
19835 cat "conftest.$ac_ext" >&5
19836 cf_cv_dcl_environ=no
19838 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19841 echo "$as_me:19841: result: $cf_cv_dcl_environ" >&5
19842 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
19844 if test "$cf_cv_dcl_environ" = no ; then
19846 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19848 cat >>confdefs.h <<EOF
19849 #define $cf_result 1
19854 # It's possible (for near-UNIX clones) that the data doesn't exist
19856 echo "$as_me:19856: checking if external environ exists" >&5
19857 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
19858 if test "${cf_cv_have_environ+set}" = set; then
19859 echo $ECHO_N "(cached) $ECHO_C" >&6
19862 cat >"conftest.$ac_ext" <<_ACEOF
19863 #line 19863 "configure"
19864 #include "confdefs.h"
19867 extern int environ;
19877 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19878 if { (eval echo "$as_me:19878: \"$ac_link\"") >&5
19879 (eval $ac_link) 2>&5
19881 echo "$as_me:19881: \$? = $ac_status" >&5
19882 (exit "$ac_status"); } &&
19883 { ac_try='test -s "conftest$ac_exeext"'
19884 { (eval echo "$as_me:19884: \"$ac_try\"") >&5
19885 (eval $ac_try) 2>&5
19887 echo "$as_me:19887: \$? = $ac_status" >&5
19888 (exit "$ac_status"); }; }; then
19889 cf_cv_have_environ=yes
19891 echo "$as_me: failed program was:" >&5
19892 cat "conftest.$ac_ext" >&5
19893 cf_cv_have_environ=no
19895 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19898 echo "$as_me:19898: result: $cf_cv_have_environ" >&5
19899 echo "${ECHO_T}$cf_cv_have_environ" >&6
19901 if test "$cf_cv_have_environ" = yes ; then
19903 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19905 cat >>confdefs.h <<EOF
19906 #define $cf_result 1
19911 echo "$as_me:19911: checking for getenv" >&5
19912 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
19913 if test "${ac_cv_func_getenv+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19916 cat >"conftest.$ac_ext" <<_ACEOF
19917 #line 19917 "configure"
19918 #include "confdefs.h"
19919 #define getenv autoconf_temporary
19920 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19927 /* We use char because int might match the return type of a gcc2
19928 builtin and then its argument prototype would still apply. */
19929 char getenv (void);
19935 /* The GNU C library defines stubs for functions which it implements
19936 to always fail with ENOSYS. Some functions are actually named
19937 something starting with __ and the normal name is an alias. */
19938 #if defined (__stub_getenv) || defined (__stub___getenv)
19939 #error found stub for getenv
19947 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19948 if { (eval echo "$as_me:19948: \"$ac_link\"") >&5
19949 (eval $ac_link) 2>&5
19951 echo "$as_me:19951: \$? = $ac_status" >&5
19952 (exit "$ac_status"); } &&
19953 { ac_try='test -s "conftest$ac_exeext"'
19954 { (eval echo "$as_me:19954: \"$ac_try\"") >&5
19955 (eval $ac_try) 2>&5
19957 echo "$as_me:19957: \$? = $ac_status" >&5
19958 (exit "$ac_status"); }; }; then
19959 ac_cv_func_getenv=yes
19961 echo "$as_me: failed program was:" >&5
19962 cat "conftest.$ac_ext" >&5
19963 ac_cv_func_getenv=no
19965 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19967 echo "$as_me:19967: result: $ac_cv_func_getenv" >&5
19968 echo "${ECHO_T}$ac_cv_func_getenv" >&6
19970 for ac_func in putenv setenv strdup
19972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19973 echo "$as_me:19973: checking for $ac_func" >&5
19974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19975 if eval "test \"\${$as_ac_var+set}\" = set"; then
19976 echo $ECHO_N "(cached) $ECHO_C" >&6
19978 cat >"conftest.$ac_ext" <<_ACEOF
19979 #line 19979 "configure"
19980 #include "confdefs.h"
19981 #define $ac_func autoconf_temporary
19982 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19989 /* We use char because int might match the return type of a gcc2
19990 builtin and then its argument prototype would still apply. */
19991 char $ac_func (void);
19997 /* The GNU C library defines stubs for functions which it implements
19998 to always fail with ENOSYS. Some functions are actually named
19999 something starting with __ and the normal name is an alias. */
20000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20001 #error found stub for $ac_func
20004 return $ac_func ();
20009 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20010 if { (eval echo "$as_me:20010: \"$ac_link\"") >&5
20011 (eval $ac_link) 2>&5
20013 echo "$as_me:20013: \$? = $ac_status" >&5
20014 (exit "$ac_status"); } &&
20015 { ac_try='test -s "conftest$ac_exeext"'
20016 { (eval echo "$as_me:20016: \"$ac_try\"") >&5
20017 (eval $ac_try) 2>&5
20019 echo "$as_me:20019: \$? = $ac_status" >&5
20020 (exit "$ac_status"); }; }; then
20021 eval "$as_ac_var=yes"
20023 echo "$as_me: failed program was:" >&5
20024 cat "conftest.$ac_ext" >&5
20025 eval "$as_ac_var=no"
20027 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20029 echo "$as_me:20029: result: `eval echo '${'"$as_ac_var"'}'`" >&5
20030 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
20031 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
20032 cat >>confdefs.h <<EOF
20033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20039 echo "$as_me:20039: checking if getenv returns consistent values" >&5
20040 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
20041 if test "${cf_cv_consistent_getenv+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20045 if test "$cross_compiling" = yes; then
20046 cf_cv_consistent_getenv=unknown
20048 cat >"conftest.$ac_ext" <<_ACEOF
20049 #line 20049 "configure"
20050 #include "confdefs.h"
20052 #include <stdlib.h>
20053 #include <unistd.h>
20055 #include <string.h>
20056 #include <sys/types.h>
20058 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
20059 extern char **environ; /* POSIX, but some systems are not... */
20062 #if defined(HAVE_STRDUP)
20063 #define str_alloc(s) strdup(s)
20065 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
20068 static void set_value(const char *name, const char *value)
20070 #if defined(HAVE_SETENV)
20071 setenv(name, value, 1);
20072 #elif defined(HAVE_PUTENV)
20074 sprintf(buffer, "%s=%s", name, value);
20075 putenv(str_alloc(buffer));
20077 #error neither putenv/setenv found
20083 size_t numenv, limit, j;
20088 for (numenv = 0; environ[numenv]; ++numenv) ;
20089 limit = numenv + 10;
20090 mynames = (char **) calloc(limit + 1, sizeof(char *));
20091 myvalues = (char **) calloc(limit + 1, sizeof(char *));
20092 mypointer = (char **) calloc(limit + 1, sizeof(char *));
20093 #if defined(HAVE_ENVIRON)
20094 for (j = 0; environ[j]; ++j) {
20095 mynames[j] = str_alloc(environ[j]);
20096 equals = strchr(mynames[j], '=');
20099 myvalues[j] = str_alloc(equals);
20101 myvalues[j] = str_alloc("");
20105 for (j = numenv; j < limit; ++j) {
20113 sprintf(name, "TERM%lu", (unsigned long) k);
20114 for (jk = 0; jk < j; ++jk) {
20115 if (!strcmp(name, mynames[jk])) {
20122 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
20123 set_value(name, value);
20124 mynames[j] = str_alloc(name);
20125 myvalues[j] = str_alloc(value);
20127 for (pass = 0; pass < 3; ++pass) {
20128 for (j = 0; j < limit; ++j) {
20129 char *value = getenv(mynames[j]);
20132 fprintf(stderr, "getenv returned null for %s\\n", mynames[j]);
20133 ${cf_cv_main_return:-return}(1);
20134 } else if (value != mypointer[j]) {
20135 fprintf(stderr, "getenv returned different pointer for %s\\n", mynames[j]);
20136 ${cf_cv_main_return:-return}(1);
20137 } else if (strcmp(value, myvalues[j])) {
20138 fprintf(stderr, "getenv returned different value for %s\\n", mynames[j]);
20139 ${cf_cv_main_return:-return}(1);
20143 mypointer[j] = value;
20144 for (k = 0; k < j; ++k) {
20145 if (mypointer[j] == mypointer[k]) {
20146 fprintf(stderr, "getenv returned same pointer for %s and %s\\n", mynames[j], mynames[k]);
20147 ${cf_cv_main_return:-return}(1);
20153 ${cf_cv_main_return:-return}(0);
20157 rm -f "conftest$ac_exeext"
20158 if { (eval echo "$as_me:20158: \"$ac_link\"") >&5
20159 (eval $ac_link) 2>&5
20161 echo "$as_me:20161: \$? = $ac_status" >&5
20162 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20163 { (eval echo "$as_me:20163: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20166 echo "$as_me:20166: \$? = $ac_status" >&5
20167 (exit "$ac_status"); }; }; then
20168 cf_cv_consistent_getenv=yes
20170 echo "$as_me: program exited with status $ac_status" >&5
20171 echo "$as_me: failed program was:" >&5
20172 cat "conftest.$ac_ext" >&5
20173 cf_cv_consistent_getenv=no
20175 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20179 echo "$as_me:20179: result: $cf_cv_consistent_getenv" >&5
20180 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
20182 if test "x$cf_cv_consistent_getenv" = xno
20185 cat >>confdefs.h <<\EOF
20186 #define HAVE_CONSISTENT_GETENV 1
20191 if test "x$cf_cv_consistent_getenv" = xno && \
20192 test "x$cf_with_trace" = xyes
20194 { echo "$as_me:20194: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
20195 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
20198 echo "$as_me:20198: checking if sys/time.h works with sys/select.h" >&5
20199 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
20200 if test "${cf_cv_sys_time_select+set}" = set; then
20201 echo $ECHO_N "(cached) $ECHO_C" >&6
20204 cat >"conftest.$ac_ext" <<_ACEOF
20205 #line 20205 "configure"
20206 #include "confdefs.h"
20208 #include <sys/types.h>
20209 #ifdef HAVE_SYS_TIME_H
20210 #include <sys/time.h>
20212 #ifdef HAVE_SYS_SELECT_H
20213 #include <sys/select.h>
20224 rm -f "conftest.$ac_objext"
20225 if { (eval echo "$as_me:20225: \"$ac_compile\"") >&5
20226 (eval $ac_compile) 2>&5
20228 echo "$as_me:20228: \$? = $ac_status" >&5
20229 (exit "$ac_status"); } &&
20230 { ac_try='test -s "conftest.$ac_objext"'
20231 { (eval echo "$as_me:20231: \"$ac_try\"") >&5
20232 (eval $ac_try) 2>&5
20234 echo "$as_me:20234: \$? = $ac_status" >&5
20235 (exit "$ac_status"); }; }; then
20236 cf_cv_sys_time_select=yes
20238 echo "$as_me: failed program was:" >&5
20239 cat "conftest.$ac_ext" >&5
20240 cf_cv_sys_time_select=no
20242 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20246 echo "$as_me:20246: result: $cf_cv_sys_time_select" >&5
20247 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
20248 test "$cf_cv_sys_time_select" = yes &&
20249 cat >>confdefs.h <<\EOF
20250 #define HAVE_SYS_TIME_SELECT 1
20253 ### checks for compiler characteristics
20255 ac_cpp='$CPP $CPPFLAGS'
20256 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
20257 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
20258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20259 ac_main_return="return"
20261 echo "$as_me:20261: checking for an ANSI C-conforming const" >&5
20262 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20263 if test "${ac_cv_c_const+set}" = set; then
20264 echo $ECHO_N "(cached) $ECHO_C" >&6
20266 cat >"conftest.$ac_ext" <<_ACEOF
20267 #line 20267 "configure"
20268 #include "confdefs.h"
20273 /* FIXME: Include the comments suggested by Paul. */
20274 #ifndef __cplusplus
20275 /* Ultrix mips cc rejects this. */
20276 typedef int charset[2];
20278 /* SunOS 4.1.1 cc rejects this. */
20279 char const *const *ccp;
20281 /* NEC SVR4.0.2 mips cc rejects this. */
20282 struct point {int x, y;};
20283 static struct point const zero = {0,0};
20284 /* AIX XL C 1.02.0.0 rejects this.
20285 It does not let you subtract one const X* pointer from another in
20286 an arm of an if-expression whose if-part is not a constant
20288 const char *g = "string";
20289 ccp = &g + (g ? g-g : 0);
20290 /* HPUX 7.0 cc rejects these. */
20293 ccp = (char const *const *) p;
20294 { /* SCO 3.2v4 cc rejects this. */
20296 char const *s = 0 ? (char *) 0 : (char const *) 0;
20300 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20301 int x[] = {25, 17};
20302 const int *foo = &x[0];
20305 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20306 typedef const int *iptr;
20310 { /* AIX XL C 1.02.0.0 rejects this saying
20311 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20312 struct s { int j; const int *ap[3]; };
20313 struct s *b; b->j = 5;
20315 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20316 const int foo = 10;
20324 rm -f "conftest.$ac_objext"
20325 if { (eval echo "$as_me:20325: \"$ac_compile\"") >&5
20326 (eval $ac_compile) 2>&5
20328 echo "$as_me:20328: \$? = $ac_status" >&5
20329 (exit "$ac_status"); } &&
20330 { ac_try='test -s "conftest.$ac_objext"'
20331 { (eval echo "$as_me:20331: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20334 echo "$as_me:20334: \$? = $ac_status" >&5
20335 (exit "$ac_status"); }; }; then
20338 echo "$as_me: failed program was:" >&5
20339 cat "conftest.$ac_ext" >&5
20342 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20344 echo "$as_me:20344: result: $ac_cv_c_const" >&5
20345 echo "${ECHO_T}$ac_cv_c_const" >&6
20346 if test $ac_cv_c_const = no; then
20348 cat >>confdefs.h <<\EOF
20354 echo "$as_me:20354: checking for inline" >&5
20355 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20356 if test "${ac_cv_c_inline+set}" = set; then
20357 echo $ECHO_N "(cached) $ECHO_C" >&6
20360 for ac_kw in inline __inline__ __inline; do
20361 cat >"conftest.$ac_ext" <<_ACEOF
20362 #line 20362 "configure"
20363 #include "confdefs.h"
20364 #ifndef __cplusplus
20365 static $ac_kw int static_foo () {return 0; }
20366 $ac_kw int foo () {return 0; }
20370 rm -f "conftest.$ac_objext"
20371 if { (eval echo "$as_me:20371: \"$ac_compile\"") >&5
20372 (eval $ac_compile) 2>&5
20374 echo "$as_me:20374: \$? = $ac_status" >&5
20375 (exit "$ac_status"); } &&
20376 { ac_try='test -s "conftest.$ac_objext"'
20377 { (eval echo "$as_me:20377: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20380 echo "$as_me:20380: \$? = $ac_status" >&5
20381 (exit "$ac_status"); }; }; then
20382 ac_cv_c_inline=$ac_kw; break
20384 echo "$as_me: failed program was:" >&5
20385 cat "conftest.$ac_ext" >&5
20387 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20391 echo "$as_me:20391: result: $ac_cv_c_inline" >&5
20392 echo "${ECHO_T}$ac_cv_c_inline" >&6
20393 case $ac_cv_c_inline in
20396 cat >>confdefs.h <<\EOF
20400 *) cat >>confdefs.h <<EOF
20401 #define inline $ac_cv_c_inline
20407 if test "$ac_cv_c_inline" != no ; then
20408 NCURSES_INLINE=inline
20409 if test "$INTEL_COMPILER" = yes
20412 elif test "$CLANG_COMPILER" = yes
20415 elif test "$GCC" = yes
20417 echo "$as_me:20417: checking if $CC supports options to tune inlining" >&5
20418 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
20419 if test "${cf_cv_gcc_inline+set}" = set; then
20420 echo $ECHO_N "(cached) $ECHO_C" >&6
20423 cf_save_CFLAGS=$CFLAGS
20424 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
20425 cat >"conftest.$ac_ext" <<_ACEOF
20426 #line 20426 "configure"
20427 #include "confdefs.h"
20428 inline int foo(void) { return 1; }
20432 ${cf_cv_main_return:-return} foo()
20437 rm -f "conftest.$ac_objext"
20438 if { (eval echo "$as_me:20438: \"$ac_compile\"") >&5
20439 (eval $ac_compile) 2>&5
20441 echo "$as_me:20441: \$? = $ac_status" >&5
20442 (exit "$ac_status"); } &&
20443 { ac_try='test -s "conftest.$ac_objext"'
20444 { (eval echo "$as_me:20444: \"$ac_try\"") >&5
20445 (eval $ac_try) 2>&5
20447 echo "$as_me:20447: \$? = $ac_status" >&5
20448 (exit "$ac_status"); }; }; then
20449 cf_cv_gcc_inline=yes
20451 echo "$as_me: failed program was:" >&5
20452 cat "conftest.$ac_ext" >&5
20453 cf_cv_gcc_inline=no
20455 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20456 CFLAGS=$cf_save_CFLAGS
20459 echo "$as_me:20459: result: $cf_cv_gcc_inline" >&5
20460 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
20461 if test "$cf_cv_gcc_inline" = yes ; then
20466 cf_new_extra_cppflags=
20468 for cf_add_cflags in --param max-inline-insns-single=1200
20470 case "$cf_fix_cppflags" in
20472 case "$cf_add_cflags" in
20473 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20474 case "$cf_add_cflags" in
20476 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20478 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20479 && test -z "${cf_tst_cflags}" \
20480 && cf_fix_cppflags=yes
20482 if test "$cf_fix_cppflags" = yes ; then
20484 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20485 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20488 elif test "${cf_tst_cflags}" = "\"'" ; then
20490 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20491 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20497 case "$CPPFLAGS" in
20501 case "$cf_add_cflags" in
20503 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20505 CPPFLAGS=`echo "$CPPFLAGS" | \
20506 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20507 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20512 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20513 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20520 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20521 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20528 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20529 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20531 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
20533 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20534 && test -z "${cf_tst_cflags}" \
20535 && cf_fix_cppflags=no
20540 if test -n "$cf_new_cflags" ; then
20542 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20543 CFLAGS="${CFLAGS}$cf_new_cflags"
20547 if test -n "$cf_new_cppflags" ; then
20549 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20550 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20554 if test -n "$cf_new_extra_cppflags" ; then
20556 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20557 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20565 echo "$as_me:20565: checking for signal global datatype" >&5
20566 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
20567 if test "${cf_cv_sig_atomic_t+set}" = set; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20572 "volatile sig_atomic_t" \
20576 cat >"conftest.$ac_ext" <<_ACEOF
20577 #line 20577 "configure"
20578 #include "confdefs.h"
20580 #include <sys/types.h>
20581 #include <signal.h>
20586 static void handler(int sig)
20594 signal(SIGINT, handler);
20600 rm -f "conftest.$ac_objext"
20601 if { (eval echo "$as_me:20601: \"$ac_compile\"") >&5
20602 (eval $ac_compile) 2>&5
20604 echo "$as_me:20604: \$? = $ac_status" >&5
20605 (exit "$ac_status"); } &&
20606 { ac_try='test -s "conftest.$ac_objext"'
20607 { (eval echo "$as_me:20607: \"$ac_try\"") >&5
20608 (eval $ac_try) 2>&5
20610 echo "$as_me:20610: \$? = $ac_status" >&5
20611 (exit "$ac_status"); }; }; then
20612 cf_cv_sig_atomic_t=$cf_type
20614 echo "$as_me: failed program was:" >&5
20615 cat "conftest.$ac_ext" >&5
20616 cf_cv_sig_atomic_t=no
20618 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20619 test "$cf_cv_sig_atomic_t" != no && break
20624 echo "$as_me:20624: result: $cf_cv_sig_atomic_t" >&5
20625 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
20626 test "$cf_cv_sig_atomic_t" != no &&
20627 cat >>confdefs.h <<EOF
20628 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
20631 if test "$NCURSES_CHTYPE" = auto ; then
20633 echo "$as_me:20633: checking for type of chtype" >&5
20634 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
20635 if test "${cf_cv_typeof_chtype+set}" = set; then
20636 echo $ECHO_N "(cached) $ECHO_C" >&6
20639 if test "$cross_compiling" = yes; then
20640 cf_cv_typeof_chtype=long
20642 cat >"conftest.$ac_ext" <<_ACEOF
20643 #line 20643 "configure"
20644 #include "confdefs.h"
20646 #define WANT_BITS 31
20650 FILE *fp = fopen("cf_test.out", "w");
20652 char *result = "long";
20653 if (sizeof(unsigned long) > sizeof(unsigned int)) {
20656 for (n = 0; n < WANT_BITS; n++) {
20659 if (y != 1 || x == 0) {
20665 * If x is nonzero, an int is big enough for the bits
20668 result = (x != 0) ? "int" : "long";
20673 ${cf_cv_main_return:-return}(0);
20677 rm -f "conftest$ac_exeext"
20678 if { (eval echo "$as_me:20678: \"$ac_link\"") >&5
20679 (eval $ac_link) 2>&5
20681 echo "$as_me:20681: \$? = $ac_status" >&5
20682 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20683 { (eval echo "$as_me:20683: \"$ac_try\"") >&5
20684 (eval $ac_try) 2>&5
20686 echo "$as_me:20686: \$? = $ac_status" >&5
20687 (exit "$ac_status"); }; }; then
20688 cf_cv_typeof_chtype=`cat cf_test.out`
20690 echo "$as_me: program exited with status $ac_status" >&5
20691 echo "$as_me: failed program was:" >&5
20692 cat "conftest.$ac_ext" >&5
20693 cf_cv_typeof_chtype=long
20695 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20701 echo "$as_me:20701: result: $cf_cv_typeof_chtype" >&5
20702 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
20704 cat >>confdefs.h <<EOF
20705 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
20709 cf_cv_typeof_chtype=$NCURSES_CHTYPE
20711 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
20713 echo "$as_me:20713: checking if unsigned literals are legal" >&5
20714 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
20715 if test "${cf_cv_unsigned_literals+set}" = set; then
20716 echo $ECHO_N "(cached) $ECHO_C" >&6
20719 cat >"conftest.$ac_ext" <<_ACEOF
20720 #line 20720 "configure"
20721 #include "confdefs.h"
20726 long x = 1L + 1UL + 1U + 1
20731 rm -f "conftest.$ac_objext"
20732 if { (eval echo "$as_me:20732: \"$ac_compile\"") >&5
20733 (eval $ac_compile) 2>&5
20735 echo "$as_me:20735: \$? = $ac_status" >&5
20736 (exit "$ac_status"); } &&
20737 { ac_try='test -s "conftest.$ac_objext"'
20738 { (eval echo "$as_me:20738: \"$ac_try\"") >&5
20739 (eval $ac_try) 2>&5
20741 echo "$as_me:20741: \$? = $ac_status" >&5
20742 (exit "$ac_status"); }; }; then
20743 cf_cv_unsigned_literals=yes
20745 echo "$as_me: failed program was:" >&5
20746 cat "conftest.$ac_ext" >&5
20747 cf_cv_unsigned_literals=no
20749 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20753 echo "$as_me:20753: result: $cf_cv_unsigned_literals" >&5
20754 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
20757 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
20758 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
20760 if test "$NCURSES_MMASK_T" = auto ; then
20761 cf_cv_typeof_mmask_t=long
20763 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
20765 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
20767 ### Checks for external-data
20769 echo "$as_me:20769: checking if external errno is declared" >&5
20770 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
20771 if test "${cf_cv_dcl_errno+set}" = set; then
20772 echo $ECHO_N "(cached) $ECHO_C" >&6
20775 cat >"conftest.$ac_ext" <<_ACEOF
20776 #line 20776 "configure"
20777 #include "confdefs.h"
20779 #ifdef HAVE_STDLIB_H
20780 #include <stdlib.h>
20783 #include <sys/types.h>
20788 int x = (int) errno; (void)x
20793 rm -f "conftest.$ac_objext"
20794 if { (eval echo "$as_me:20794: \"$ac_compile\"") >&5
20795 (eval $ac_compile) 2>&5
20797 echo "$as_me:20797: \$? = $ac_status" >&5
20798 (exit "$ac_status"); } &&
20799 { ac_try='test -s "conftest.$ac_objext"'
20800 { (eval echo "$as_me:20800: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20803 echo "$as_me:20803: \$? = $ac_status" >&5
20804 (exit "$ac_status"); }; }; then
20805 cf_cv_dcl_errno=yes
20807 echo "$as_me: failed program was:" >&5
20808 cat "conftest.$ac_ext" >&5
20811 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20814 echo "$as_me:20814: result: $cf_cv_dcl_errno" >&5
20815 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
20817 if test "$cf_cv_dcl_errno" = no ; then
20819 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20821 cat >>confdefs.h <<EOF
20822 #define $cf_result 1
20827 # It's possible (for near-UNIX clones) that the data doesn't exist
20829 echo "$as_me:20829: checking if external errno exists" >&5
20830 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
20831 if test "${cf_cv_have_errno+set}" = set; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20835 cat >"conftest.$ac_ext" <<_ACEOF
20836 #line 20836 "configure"
20837 #include "confdefs.h"
20850 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20851 if { (eval echo "$as_me:20851: \"$ac_link\"") >&5
20852 (eval $ac_link) 2>&5
20854 echo "$as_me:20854: \$? = $ac_status" >&5
20855 (exit "$ac_status"); } &&
20856 { ac_try='test -s "conftest$ac_exeext"'
20857 { (eval echo "$as_me:20857: \"$ac_try\"") >&5
20858 (eval $ac_try) 2>&5
20860 echo "$as_me:20860: \$? = $ac_status" >&5
20861 (exit "$ac_status"); }; }; then
20862 cf_cv_have_errno=yes
20864 echo "$as_me: failed program was:" >&5
20865 cat "conftest.$ac_ext" >&5
20866 cf_cv_have_errno=no
20868 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20871 echo "$as_me:20871: result: $cf_cv_have_errno" >&5
20872 echo "${ECHO_T}$cf_cv_have_errno" >&6
20874 if test "$cf_cv_have_errno" = yes ; then
20876 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20878 cat >>confdefs.h <<EOF
20879 #define $cf_result 1
20884 echo "$as_me:20884: checking if data-only library module links" >&5
20885 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
20886 if test "${cf_cv_link_dataonly+set}" = set; then
20887 echo $ECHO_N "(cached) $ECHO_C" >&6
20891 cat >conftest.$ac_ext <<EOF
20892 #line 20892 "configure"
20893 int testdata[3] = { 123, 456, 789 };
20895 if { (eval echo "$as_me:20895: \"$ac_compile\"") >&5
20896 (eval $ac_compile) 2>&5
20898 echo "$as_me:20898: \$? = $ac_status" >&5
20899 (exit "$ac_status"); } ; then
20900 mv conftest.o data.o && \
20901 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
20903 rm -f conftest.$ac_ext data.o
20904 cat >conftest.$ac_ext <<EOF
20905 #line 20905 "configure"
20909 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
20911 extern int testdata[3];
20912 return testdata[0] == 123
20913 && testdata[1] == 456
20914 && testdata[2] == 789;
20918 if { (eval echo "$as_me:20918: \"$ac_compile\"") >&5
20919 (eval $ac_compile) 2>&5
20921 echo "$as_me:20921: \$? = $ac_status" >&5
20922 (exit "$ac_status"); }; then
20923 mv conftest.o func.o && \
20924 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
20926 rm -f conftest.$ac_ext func.o
20927 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
20928 cf_saveLIBS="$LIBS"
20929 LIBS="conftest.a $LIBS"
20930 if test "$cross_compiling" = yes; then
20931 cf_cv_link_dataonly=unknown
20933 cat >"conftest.$ac_ext" <<_ACEOF
20934 #line 20934 "configure"
20935 #include "confdefs.h"
20939 extern int testfunc();
20940 ${cf_cv_main_return:-return} (!testfunc());
20944 rm -f "conftest$ac_exeext"
20945 if { (eval echo "$as_me:20945: \"$ac_link\"") >&5
20946 (eval $ac_link) 2>&5
20948 echo "$as_me:20948: \$? = $ac_status" >&5
20949 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20950 { (eval echo "$as_me:20950: \"$ac_try\"") >&5
20951 (eval $ac_try) 2>&5
20953 echo "$as_me:20953: \$? = $ac_status" >&5
20954 (exit "$ac_status"); }; }; then
20955 cf_cv_link_dataonly=yes
20957 echo "$as_me: program exited with status $ac_status" >&5
20958 echo "$as_me: failed program was:" >&5
20959 cat "conftest.$ac_ext" >&5
20960 cf_cv_link_dataonly=no
20962 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20964 LIBS="$cf_saveLIBS"
20968 echo "$as_me:20968: result: $cf_cv_link_dataonly" >&5
20969 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
20971 if test "$cf_cv_link_dataonly" = no ; then
20973 cat >>confdefs.h <<\EOF
20974 #define BROKEN_LINKER 1
20980 ### Checks for library functions.
21010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21011 echo "$as_me:21011: checking for $ac_func" >&5
21012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21013 if eval "test \"\${$as_ac_var+set}\" = set"; then
21014 echo $ECHO_N "(cached) $ECHO_C" >&6
21016 cat >"conftest.$ac_ext" <<_ACEOF
21017 #line 21017 "configure"
21018 #include "confdefs.h"
21019 #define $ac_func autoconf_temporary
21020 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21027 /* We use char because int might match the return type of a gcc2
21028 builtin and then its argument prototype would still apply. */
21029 char $ac_func (void);
21035 /* The GNU C library defines stubs for functions which it implements
21036 to always fail with ENOSYS. Some functions are actually named
21037 something starting with __ and the normal name is an alias. */
21038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21039 #error found stub for $ac_func
21042 return $ac_func ();
21047 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21048 if { (eval echo "$as_me:21048: \"$ac_link\"") >&5
21049 (eval $ac_link) 2>&5
21051 echo "$as_me:21051: \$? = $ac_status" >&5
21052 (exit "$ac_status"); } &&
21053 { ac_try='test -s "conftest$ac_exeext"'
21054 { (eval echo "$as_me:21054: \"$ac_try\"") >&5
21055 (eval $ac_try) 2>&5
21057 echo "$as_me:21057: \$? = $ac_status" >&5
21058 (exit "$ac_status"); }; }; then
21059 eval "$as_ac_var=yes"
21061 echo "$as_me: failed program was:" >&5
21062 cat "conftest.$ac_ext" >&5
21063 eval "$as_ac_var=no"
21065 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21067 echo "$as_me:21067: result: `eval echo '${'"$as_ac_var"'}'`" >&5
21068 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
21069 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
21070 cat >>confdefs.h <<EOF
21071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21077 if test "x$ac_cv_func_getopt" = xno && \
21078 test "x$cf_with_progs$cf_with_tests" != xnono; then
21079 { { echo "$as_me:21079: error: getopt is required for building programs" >&5
21080 echo "$as_me: error: getopt is required for building programs" >&2;}
21081 { (exit 1); exit 1; }; }
21084 if test "x$with_safe_sprintf" = xyes
21086 if test "x$ac_cv_func_vsnprintf" = xyes
21088 { echo "$as_me:21088: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
21089 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
21092 cat >>confdefs.h <<\EOF
21093 #define USE_SAFE_SPRINTF 1
21099 if test "x$with_getcap" = "xyes" ; then
21101 echo "$as_me:21101: checking for terminal-capability database functions" >&5
21102 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
21103 if test "${cf_cv_cgetent+set}" = set; then
21104 echo $ECHO_N "(cached) $ECHO_C" >&6
21107 cat >"conftest.$ac_ext" <<_ACEOF
21108 #line 21108 "configure"
21109 #include "confdefs.h"
21111 #include <stdlib.h>
21118 char *db_array = temp;
21119 cgetent(&buf, &db_array, "vt100");
21120 cgetcap(buf, "tc", '=');
21121 cgetmatch(buf, "tc");
21127 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21128 if { (eval echo "$as_me:21128: \"$ac_link\"") >&5
21129 (eval $ac_link) 2>&5
21131 echo "$as_me:21131: \$? = $ac_status" >&5
21132 (exit "$ac_status"); } &&
21133 { ac_try='test -s "conftest$ac_exeext"'
21134 { (eval echo "$as_me:21134: \"$ac_try\"") >&5
21135 (eval $ac_try) 2>&5
21137 echo "$as_me:21137: \$? = $ac_status" >&5
21138 (exit "$ac_status"); }; }; then
21141 echo "$as_me: failed program was:" >&5
21142 cat "conftest.$ac_ext" >&5
21145 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21148 echo "$as_me:21148: result: $cf_cv_cgetent" >&5
21149 echo "${ECHO_T}$cf_cv_cgetent" >&6
21151 if test "$cf_cv_cgetent" = yes
21154 cat >>confdefs.h <<\EOF
21155 #define HAVE_BSD_CGETENT 1
21158 echo "$as_me:21158: checking if cgetent uses const parameter" >&5
21159 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
21160 if test "${cf_cv_cgetent_const+set}" = set; then
21161 echo $ECHO_N "(cached) $ECHO_C" >&6
21164 cat >"conftest.$ac_ext" <<_ACEOF
21165 #line 21165 "configure"
21166 #include "confdefs.h"
21168 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
21169 #include <stdlib.h>
21176 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
21177 const char *db_array = temp;
21178 cgetent(&buf, &db_array, "vt100");
21180 cgetcap(buf, "tc", '=');
21181 cgetmatch(buf, "tc");
21187 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21188 if { (eval echo "$as_me:21188: \"$ac_link\"") >&5
21189 (eval $ac_link) 2>&5
21191 echo "$as_me:21191: \$? = $ac_status" >&5
21192 (exit "$ac_status"); } &&
21193 { ac_try='test -s "conftest$ac_exeext"'
21194 { (eval echo "$as_me:21194: \"$ac_try\"") >&5
21195 (eval $ac_try) 2>&5
21197 echo "$as_me:21197: \$? = $ac_status" >&5
21198 (exit "$ac_status"); }; }; then
21199 cf_cv_cgetent_const=yes
21201 echo "$as_me: failed program was:" >&5
21202 cat "conftest.$ac_ext" >&5
21203 cf_cv_cgetent_const=no
21205 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21208 echo "$as_me:21208: result: $cf_cv_cgetent_const" >&5
21209 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
21210 if test "$cf_cv_cgetent_const" = yes
21213 cat >>confdefs.h <<EOF
21214 #define CGETENT_CONST const
21222 echo "$as_me:21222: checking for isascii" >&5
21223 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
21224 if test "${cf_cv_have_isascii+set}" = set; then
21225 echo $ECHO_N "(cached) $ECHO_C" >&6
21228 cat >"conftest.$ac_ext" <<_ACEOF
21229 #line 21229 "configure"
21230 #include "confdefs.h"
21235 int x = isascii(' ')
21240 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21241 if { (eval echo "$as_me:21241: \"$ac_link\"") >&5
21242 (eval $ac_link) 2>&5
21244 echo "$as_me:21244: \$? = $ac_status" >&5
21245 (exit "$ac_status"); } &&
21246 { ac_try='test -s "conftest$ac_exeext"'
21247 { (eval echo "$as_me:21247: \"$ac_try\"") >&5
21248 (eval $ac_try) 2>&5
21250 echo "$as_me:21250: \$? = $ac_status" >&5
21251 (exit "$ac_status"); }; }; then
21252 cf_cv_have_isascii=yes
21254 echo "$as_me: failed program was:" >&5
21255 cat "conftest.$ac_ext" >&5
21256 cf_cv_have_isascii=no
21258 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21261 echo "$as_me:21261: result: $cf_cv_have_isascii" >&5
21262 echo "${ECHO_T}$cf_cv_have_isascii" >&6
21263 test "$cf_cv_have_isascii" = yes &&
21264 cat >>confdefs.h <<\EOF
21265 #define HAVE_ISASCII 1
21268 if test "$ac_cv_func_sigaction" = yes; then
21269 echo "$as_me:21269: checking whether sigaction needs _POSIX_SOURCE" >&5
21270 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
21271 cat >"conftest.$ac_ext" <<_ACEOF
21272 #line 21272 "configure"
21273 #include "confdefs.h"
21275 #include <sys/types.h>
21276 #include <signal.h>
21280 struct sigaction act
21285 rm -f "conftest.$ac_objext"
21286 if { (eval echo "$as_me:21286: \"$ac_compile\"") >&5
21287 (eval $ac_compile) 2>&5
21289 echo "$as_me:21289: \$? = $ac_status" >&5
21290 (exit "$ac_status"); } &&
21291 { ac_try='test -s "conftest.$ac_objext"'
21292 { (eval echo "$as_me:21292: \"$ac_try\"") >&5
21293 (eval $ac_try) 2>&5
21295 echo "$as_me:21295: \$? = $ac_status" >&5
21296 (exit "$ac_status"); }; }; then
21299 echo "$as_me: failed program was:" >&5
21300 cat "conftest.$ac_ext" >&5
21302 cat >"conftest.$ac_ext" <<_ACEOF
21303 #line 21303 "configure"
21304 #include "confdefs.h"
21306 #define _POSIX_SOURCE
21307 #include <sys/types.h>
21308 #include <signal.h>
21312 struct sigaction act
21317 rm -f "conftest.$ac_objext"
21318 if { (eval echo "$as_me:21318: \"$ac_compile\"") >&5
21319 (eval $ac_compile) 2>&5
21321 echo "$as_me:21321: \$? = $ac_status" >&5
21322 (exit "$ac_status"); } &&
21323 { ac_try='test -s "conftest.$ac_objext"'
21324 { (eval echo "$as_me:21324: \"$ac_try\"") >&5
21325 (eval $ac_try) 2>&5
21327 echo "$as_me:21327: \$? = $ac_status" >&5
21328 (exit "$ac_status"); }; }; then
21331 cat >>confdefs.h <<\EOF
21332 #define _POSIX_SOURCE 1
21336 echo "$as_me: failed program was:" >&5
21337 cat "conftest.$ac_ext" >&5
21340 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21342 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21343 echo "$as_me:21343: result: $sigact_bad" >&5
21344 echo "${ECHO_T}$sigact_bad" >&6
21347 echo "$as_me:21347: checking if nanosleep really works" >&5
21348 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
21349 if test "${cf_cv_func_nanosleep+set}" = set; then
21350 echo $ECHO_N "(cached) $ECHO_C" >&6
21353 if test "$cross_compiling" = yes; then
21354 cf_cv_func_nanosleep=unknown
21356 cat >"conftest.$ac_ext" <<_ACEOF
21357 #line 21357 "configure"
21358 #include "confdefs.h"
21364 #ifdef HAVE_SYS_TIME_H
21365 #include <sys/time.h>
21369 struct timespec ts1, ts2;
21372 ts1.tv_nsec = 750000000;
21376 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
21377 ${cf_cv_main_return:-return}(code != 0);
21381 rm -f "conftest$ac_exeext"
21382 if { (eval echo "$as_me:21382: \"$ac_link\"") >&5
21383 (eval $ac_link) 2>&5
21385 echo "$as_me:21385: \$? = $ac_status" >&5
21386 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21387 { (eval echo "$as_me:21387: \"$ac_try\"") >&5
21388 (eval $ac_try) 2>&5
21390 echo "$as_me:21390: \$? = $ac_status" >&5
21391 (exit "$ac_status"); }; }; then
21392 cf_cv_func_nanosleep=yes
21394 echo "$as_me: program exited with status $ac_status" >&5
21395 echo "$as_me: failed program was:" >&5
21396 cat "conftest.$ac_ext" >&5
21397 cf_cv_func_nanosleep=no
21399 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21402 echo "$as_me:21402: result: $cf_cv_func_nanosleep" >&5
21403 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
21405 test "$cf_cv_func_nanosleep" = "yes" &&
21406 cat >>confdefs.h <<\EOF
21407 #define HAVE_NANOSLEEP 1
21418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21419 echo "$as_me:21419: checking for $ac_header" >&5
21420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21424 cat >"conftest.$ac_ext" <<_ACEOF
21425 #line 21425 "configure"
21426 #include "confdefs.h"
21427 #include <$ac_header>
21429 if { (eval echo "$as_me:21429: \"$ac_cpp "conftest.$ac_ext"\"") >&5
21430 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
21432 $EGREP -v '^ *\+' conftest.er1 >conftest.err
21434 cat conftest.err >&5
21435 echo "$as_me:21435: \$? = $ac_status" >&5
21436 (exit "$ac_status"); } >/dev/null; then
21437 if test -s conftest.err; then
21438 ac_cpp_err=$ac_c_preproc_warn_flag
21445 if test -z "$ac_cpp_err"; then
21446 eval "$as_ac_Header=yes"
21448 echo "$as_me: failed program was:" >&5
21449 cat "conftest.$ac_ext" >&5
21450 eval "$as_ac_Header=no"
21452 rm -f conftest.err "conftest.$ac_ext"
21454 echo "$as_me:21454: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
21455 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
21456 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
21457 cat >>confdefs.h <<EOF
21458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21464 if test "$ac_cv_header_termios_h" = yes ; then
21465 case "$CFLAGS $CPPFLAGS" in
21466 (*-D_POSIX_SOURCE*)
21467 termios_bad=dunno ;;
21468 (*) termios_bad=maybe ;;
21470 if test "$termios_bad" = maybe ; then
21471 echo "$as_me:21471: checking whether termios.h needs _POSIX_SOURCE" >&5
21472 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
21473 cat >"conftest.$ac_ext" <<_ACEOF
21474 #line 21474 "configure"
21475 #include "confdefs.h"
21476 #include <termios.h>
21480 struct termios foo; int x = foo.c_iflag = 1; (void)x
21485 rm -f "conftest.$ac_objext"
21486 if { (eval echo "$as_me:21486: \"$ac_compile\"") >&5
21487 (eval $ac_compile) 2>&5
21489 echo "$as_me:21489: \$? = $ac_status" >&5
21490 (exit "$ac_status"); } &&
21491 { ac_try='test -s "conftest.$ac_objext"'
21492 { (eval echo "$as_me:21492: \"$ac_try\"") >&5
21493 (eval $ac_try) 2>&5
21495 echo "$as_me:21495: \$? = $ac_status" >&5
21496 (exit "$ac_status"); }; }; then
21499 echo "$as_me: failed program was:" >&5
21500 cat "conftest.$ac_ext" >&5
21502 cat >"conftest.$ac_ext" <<_ACEOF
21503 #line 21503 "configure"
21504 #include "confdefs.h"
21506 #define _POSIX_SOURCE
21507 #include <termios.h>
21511 struct termios foo; int x = foo.c_iflag = 2; (void)x
21516 rm -f "conftest.$ac_objext"
21517 if { (eval echo "$as_me:21517: \"$ac_compile\"") >&5
21518 (eval $ac_compile) 2>&5
21520 echo "$as_me:21520: \$? = $ac_status" >&5
21521 (exit "$ac_status"); } &&
21522 { ac_try='test -s "conftest.$ac_objext"'
21523 { (eval echo "$as_me:21523: \"$ac_try\"") >&5
21524 (eval $ac_try) 2>&5
21526 echo "$as_me:21526: \$? = $ac_status" >&5
21527 (exit "$ac_status"); }; }; then
21528 termios_bad=unknown
21530 echo "$as_me: failed program was:" >&5
21531 cat "conftest.$ac_ext" >&5
21533 cat >>confdefs.h <<\EOF
21534 #define _POSIX_SOURCE 1
21538 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21541 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21542 echo "$as_me:21542: result: $termios_bad" >&5
21543 echo "${ECHO_T}$termios_bad" >&6
21547 echo "$as_me:21547: checking for tcgetattr" >&5
21548 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
21549 if test "${cf_cv_have_tcgetattr+set}" = set; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
21553 cat >"conftest.$ac_ext" <<_ACEOF
21554 #line 21554 "configure"
21555 #include "confdefs.h"
21557 #include <sys/types.h>
21558 #ifdef HAVE_UNISTD_H
21559 #include <unistd.h>
21561 #ifdef HAVE_TERMIOS_H
21562 #include <termios.h>
21563 #define TTY struct termios
21565 #ifdef HAVE_TERMIO_H
21566 #include <termio.h>
21567 #define TTY struct termio
21576 tcgetattr(1, &foo);
21581 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21582 if { (eval echo "$as_me:21582: \"$ac_link\"") >&5
21583 (eval $ac_link) 2>&5
21585 echo "$as_me:21585: \$? = $ac_status" >&5
21586 (exit "$ac_status"); } &&
21587 { ac_try='test -s "conftest$ac_exeext"'
21588 { (eval echo "$as_me:21588: \"$ac_try\"") >&5
21589 (eval $ac_try) 2>&5
21591 echo "$as_me:21591: \$? = $ac_status" >&5
21592 (exit "$ac_status"); }; }; then
21593 cf_cv_have_tcgetattr=yes
21595 echo "$as_me: failed program was:" >&5
21596 cat "conftest.$ac_ext" >&5
21597 cf_cv_have_tcgetattr=no
21599 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21601 echo "$as_me:21601: result: $cf_cv_have_tcgetattr" >&5
21602 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
21603 test "$cf_cv_have_tcgetattr" = yes &&
21604 cat >>confdefs.h <<\EOF
21605 #define HAVE_TCGETATTR 1
21608 echo "$as_me:21608: checking for vsscanf function or workaround" >&5
21609 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
21610 if test "${cf_cv_func_vsscanf+set}" = set; then
21611 echo $ECHO_N "(cached) $ECHO_C" >&6
21614 cat >"conftest.$ac_ext" <<_ACEOF
21615 #line 21615 "configure"
21616 #include "confdefs.h"
21618 #include <stdarg.h>
21625 vsscanf("from", "%d", ap)
21630 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21631 if { (eval echo "$as_me:21631: \"$ac_link\"") >&5
21632 (eval $ac_link) 2>&5
21634 echo "$as_me:21634: \$? = $ac_status" >&5
21635 (exit "$ac_status"); } &&
21636 { ac_try='test -s "conftest$ac_exeext"'
21637 { (eval echo "$as_me:21637: \"$ac_try\"") >&5
21638 (eval $ac_try) 2>&5
21640 echo "$as_me:21640: \$? = $ac_status" >&5
21641 (exit "$ac_status"); }; }; then
21642 cf_cv_func_vsscanf=vsscanf
21644 echo "$as_me: failed program was:" >&5
21645 cat "conftest.$ac_ext" >&5
21647 cat >"conftest.$ac_ext" <<_ACEOF
21648 #line 21648 "configure"
21649 #include "confdefs.h"
21651 #include <stdarg.h>
21658 char *str = "from";
21660 strbuf._flag = _IOREAD;
21661 strbuf._ptr = strbuf._base = (unsigned char *) str;
21662 strbuf._cnt = strlen(str);
21663 strbuf._file = _NFILE;
21664 return (vfscanf(&strbuf, "%d", ap))
21669 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21670 if { (eval echo "$as_me:21670: \"$ac_link\"") >&5
21671 (eval $ac_link) 2>&5
21673 echo "$as_me:21673: \$? = $ac_status" >&5
21674 (exit "$ac_status"); } &&
21675 { ac_try='test -s "conftest$ac_exeext"'
21676 { (eval echo "$as_me:21676: \"$ac_try\"") >&5
21677 (eval $ac_try) 2>&5
21679 echo "$as_me:21679: \$? = $ac_status" >&5
21680 (exit "$ac_status"); }; }; then
21681 cf_cv_func_vsscanf=vfscanf
21683 echo "$as_me: failed program was:" >&5
21684 cat "conftest.$ac_ext" >&5
21686 cat >"conftest.$ac_ext" <<_ACEOF
21687 #line 21687 "configure"
21688 #include "confdefs.h"
21690 #include <stdarg.h>
21697 char *str = "from";
21699 strbuf._flag = _IOREAD;
21700 strbuf._ptr = strbuf._base = (unsigned char *) str;
21701 strbuf._cnt = strlen(str);
21702 strbuf._file = _NFILE;
21703 return (_doscan(&strbuf, "%d", ap))
21708 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21709 if { (eval echo "$as_me:21709: \"$ac_link\"") >&5
21710 (eval $ac_link) 2>&5
21712 echo "$as_me:21712: \$? = $ac_status" >&5
21713 (exit "$ac_status"); } &&
21714 { ac_try='test -s "conftest$ac_exeext"'
21715 { (eval echo "$as_me:21715: \"$ac_try\"") >&5
21716 (eval $ac_try) 2>&5
21718 echo "$as_me:21718: \$? = $ac_status" >&5
21719 (exit "$ac_status"); }; }; then
21720 cf_cv_func_vsscanf=_doscan
21722 echo "$as_me: failed program was:" >&5
21723 cat "conftest.$ac_ext" >&5
21725 cf_cv_func_vsscanf=no
21727 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21729 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21731 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21733 echo "$as_me:21733: result: $cf_cv_func_vsscanf" >&5
21734 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
21736 case "$cf_cv_func_vsscanf" in
21738 cat >>confdefs.h <<\EOF
21739 #define HAVE_VSSCANF 1
21743 cat >>confdefs.h <<\EOF
21744 #define HAVE_VFSCANF 1
21748 cat >>confdefs.h <<\EOF
21749 #define HAVE__DOSCAN 1
21758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21759 echo "$as_me:21759: checking for $ac_header" >&5
21760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21764 cat >"conftest.$ac_ext" <<_ACEOF
21765 #line 21765 "configure"
21766 #include "confdefs.h"
21767 #include <$ac_header>
21769 if { (eval echo "$as_me:21769: \"$ac_cpp "conftest.$ac_ext"\"") >&5
21770 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
21772 $EGREP -v '^ *\+' conftest.er1 >conftest.err
21774 cat conftest.err >&5
21775 echo "$as_me:21775: \$? = $ac_status" >&5
21776 (exit "$ac_status"); } >/dev/null; then
21777 if test -s conftest.err; then
21778 ac_cpp_err=$ac_c_preproc_warn_flag
21785 if test -z "$ac_cpp_err"; then
21786 eval "$as_ac_Header=yes"
21788 echo "$as_me: failed program was:" >&5
21789 cat "conftest.$ac_ext" >&5
21790 eval "$as_ac_Header=no"
21792 rm -f conftest.err "conftest.$ac_ext"
21794 echo "$as_me:21794: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
21795 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
21796 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
21797 cat >>confdefs.h <<EOF
21798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21804 echo "$as_me:21804: checking for working mkstemp" >&5
21805 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
21806 if test "${cf_cv_func_mkstemp+set}" = set; then
21807 echo $ECHO_N "(cached) $ECHO_C" >&6
21811 if test "$cross_compiling" = yes; then
21812 cf_cv_func_mkstemp=maybe
21814 cat >"conftest.$ac_ext" <<_ACEOF
21815 #line 21815 "configure"
21816 #include "confdefs.h"
21818 #include <sys/types.h>
21819 #ifdef HAVE_UNISTD_H
21820 #include <unistd.h>
21822 #include <stdlib.h>
21824 #include <string.h>
21825 #include <sys/stat.h>
21828 char *tmpl = "conftestXXXXXX";
21836 for (n = 0; n < 2; ++n) {
21837 strcpy(name[n], tmpl);
21838 if ((fd = mkstemp(name[n])) >= 0) {
21839 if (!strcmp(name[n], tmpl)
21840 || stat(name[n], &sb) != 0
21841 || (sb.st_mode & S_IFMT) != S_IFREG
21842 || (sb.st_mode & 077) != 0) {
21849 && !strcmp(name[0], name[1]))
21851 ${cf_cv_main_return:-return}(result);
21855 rm -f "conftest$ac_exeext"
21856 if { (eval echo "$as_me:21856: \"$ac_link\"") >&5
21857 (eval $ac_link) 2>&5
21859 echo "$as_me:21859: \$? = $ac_status" >&5
21860 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21861 { (eval echo "$as_me:21861: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21864 echo "$as_me:21864: \$? = $ac_status" >&5
21865 (exit "$ac_status"); }; }; then
21866 cf_cv_func_mkstemp=yes
21869 echo "$as_me: program exited with status $ac_status" >&5
21870 echo "$as_me: failed program was:" >&5
21871 cat "conftest.$ac_ext" >&5
21872 cf_cv_func_mkstemp=no
21875 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21879 echo "$as_me:21879: result: $cf_cv_func_mkstemp" >&5
21880 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
21881 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
21882 echo "$as_me:21882: checking for mkstemp" >&5
21883 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
21884 if test "${ac_cv_func_mkstemp+set}" = set; then
21885 echo $ECHO_N "(cached) $ECHO_C" >&6
21887 cat >"conftest.$ac_ext" <<_ACEOF
21888 #line 21888 "configure"
21889 #include "confdefs.h"
21890 #define mkstemp autoconf_temporary
21891 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21898 /* We use char because int might match the return type of a gcc2
21899 builtin and then its argument prototype would still apply. */
21900 char mkstemp (void);
21906 /* The GNU C library defines stubs for functions which it implements
21907 to always fail with ENOSYS. Some functions are actually named
21908 something starting with __ and the normal name is an alias. */
21909 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
21910 #error found stub for mkstemp
21918 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21919 if { (eval echo "$as_me:21919: \"$ac_link\"") >&5
21920 (eval $ac_link) 2>&5
21922 echo "$as_me:21922: \$? = $ac_status" >&5
21923 (exit "$ac_status"); } &&
21924 { ac_try='test -s "conftest$ac_exeext"'
21925 { (eval echo "$as_me:21925: \"$ac_try\"") >&5
21926 (eval $ac_try) 2>&5
21928 echo "$as_me:21928: \$? = $ac_status" >&5
21929 (exit "$ac_status"); }; }; then
21930 ac_cv_func_mkstemp=yes
21932 echo "$as_me: failed program was:" >&5
21933 cat "conftest.$ac_ext" >&5
21934 ac_cv_func_mkstemp=no
21936 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21938 echo "$as_me:21938: result: $ac_cv_func_mkstemp" >&5
21939 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
21942 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
21944 cat >>confdefs.h <<\EOF
21945 #define HAVE_MKSTEMP 1
21950 # setup for prototype of fallback for vsscanf()
21952 if test "$cf_cv_func_vsscanf" = vsscanf ; then
21958 if test "x$cross_compiling" = xyes ; then
21959 { echo "$as_me:21959: WARNING: cross compiling: assume setvbuf params not reversed" >&5
21960 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
21962 echo "$as_me:21962: checking whether setvbuf arguments are reversed" >&5
21963 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
21964 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
21965 echo $ECHO_N "(cached) $ECHO_C" >&6
21967 if test "$cross_compiling" = yes; then
21968 { { echo "$as_me:21968: error: cannot run test program while cross compiling" >&5
21969 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21970 { (exit 1); exit 1; }; }
21972 cat >"conftest.$ac_ext" <<_ACEOF
21973 #line 21973 "configure"
21974 #include "confdefs.h"
21976 /* If setvbuf has the reversed format, exit 0. */
21980 /* This call has the arguments reversed.
21981 A reversed system may check and see that the address of main
21982 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
21983 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
21984 $ac_main_return(1);
21985 putc('\r', stdout);
21986 $ac_main_return(0); /* Non-reversed systems segv here. */
21989 rm -f "conftest$ac_exeext"
21990 if { (eval echo "$as_me:21990: \"$ac_link\"") >&5
21991 (eval $ac_link) 2>&5
21993 echo "$as_me:21993: \$? = $ac_status" >&5
21994 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21995 { (eval echo "$as_me:21995: \"$ac_try\"") >&5
21996 (eval $ac_try) 2>&5
21998 echo "$as_me:21998: \$? = $ac_status" >&5
21999 (exit "$ac_status"); }; }; then
22000 ac_cv_func_setvbuf_reversed=yes
22002 echo "$as_me: program exited with status $ac_status" >&5
22003 echo "$as_me: failed program was:" >&5
22004 cat "conftest.$ac_ext" >&5
22005 ac_cv_func_setvbuf_reversed=no
22007 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22009 rm -f core ./core.* ./*.core
22011 echo "$as_me:22011: result: $ac_cv_func_setvbuf_reversed" >&5
22012 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
22013 if test $ac_cv_func_setvbuf_reversed = yes; then
22015 cat >>confdefs.h <<\EOF
22016 #define SETVBUF_REVERSED 1
22022 echo "$as_me:22022: checking for intptr_t" >&5
22023 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
22024 if test "${ac_cv_type_intptr_t+set}" = set; then
22025 echo $ECHO_N "(cached) $ECHO_C" >&6
22027 cat >"conftest.$ac_ext" <<_ACEOF
22028 #line 22028 "configure"
22029 #include "confdefs.h"
22030 $ac_includes_default
22034 if ((intptr_t *) 0)
22036 if (sizeof (intptr_t))
22042 rm -f "conftest.$ac_objext"
22043 if { (eval echo "$as_me:22043: \"$ac_compile\"") >&5
22044 (eval $ac_compile) 2>&5
22046 echo "$as_me:22046: \$? = $ac_status" >&5
22047 (exit "$ac_status"); } &&
22048 { ac_try='test -s "conftest.$ac_objext"'
22049 { (eval echo "$as_me:22049: \"$ac_try\"") >&5
22050 (eval $ac_try) 2>&5
22052 echo "$as_me:22052: \$? = $ac_status" >&5
22053 (exit "$ac_status"); }; }; then
22054 ac_cv_type_intptr_t=yes
22056 echo "$as_me: failed program was:" >&5
22057 cat "conftest.$ac_ext" >&5
22058 ac_cv_type_intptr_t=no
22060 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22062 echo "$as_me:22062: result: $ac_cv_type_intptr_t" >&5
22063 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
22064 if test "$ac_cv_type_intptr_t" = yes; then
22068 cat >>confdefs.h <<EOF
22069 #define intptr_t long
22074 echo "$as_me:22074: checking for ssize_t" >&5
22075 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22076 if test "${ac_cv_type_ssize_t+set}" = set; then
22077 echo $ECHO_N "(cached) $ECHO_C" >&6
22079 cat >"conftest.$ac_ext" <<_ACEOF
22080 #line 22080 "configure"
22081 #include "confdefs.h"
22082 $ac_includes_default
22088 if (sizeof (ssize_t))
22094 rm -f "conftest.$ac_objext"
22095 if { (eval echo "$as_me:22095: \"$ac_compile\"") >&5
22096 (eval $ac_compile) 2>&5
22098 echo "$as_me:22098: \$? = $ac_status" >&5
22099 (exit "$ac_status"); } &&
22100 { ac_try='test -s "conftest.$ac_objext"'
22101 { (eval echo "$as_me:22101: \"$ac_try\"") >&5
22102 (eval $ac_try) 2>&5
22104 echo "$as_me:22104: \$? = $ac_status" >&5
22105 (exit "$ac_status"); }; }; then
22106 ac_cv_type_ssize_t=yes
22108 echo "$as_me: failed program was:" >&5
22109 cat "conftest.$ac_ext" >&5
22110 ac_cv_type_ssize_t=no
22112 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22114 echo "$as_me:22114: result: $ac_cv_type_ssize_t" >&5
22115 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22116 if test "$ac_cv_type_ssize_t" = yes; then
22120 cat >>confdefs.h <<EOF
22121 #define ssize_t int
22126 echo "$as_me:22126: checking for type sigaction_t" >&5
22127 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
22128 if test "${cf_cv_type_sigaction+set}" = set; then
22129 echo $ECHO_N "(cached) $ECHO_C" >&6
22132 cat >"conftest.$ac_ext" <<_ACEOF
22133 #line 22133 "configure"
22134 #include "confdefs.h"
22136 #include <signal.h>
22145 rm -f "conftest.$ac_objext"
22146 if { (eval echo "$as_me:22146: \"$ac_compile\"") >&5
22147 (eval $ac_compile) 2>&5
22149 echo "$as_me:22149: \$? = $ac_status" >&5
22150 (exit "$ac_status"); } &&
22151 { ac_try='test -s "conftest.$ac_objext"'
22152 { (eval echo "$as_me:22152: \"$ac_try\"") >&5
22153 (eval $ac_try) 2>&5
22155 echo "$as_me:22155: \$? = $ac_status" >&5
22156 (exit "$ac_status"); }; }; then
22157 cf_cv_type_sigaction=yes
22159 echo "$as_me: failed program was:" >&5
22160 cat "conftest.$ac_ext" >&5
22161 cf_cv_type_sigaction=no
22163 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22166 echo "$as_me:22166: result: $cf_cv_type_sigaction" >&5
22167 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
22168 test "$cf_cv_type_sigaction" = yes &&
22169 cat >>confdefs.h <<\EOF
22170 #define HAVE_TYPE_SIGACTION 1
22173 echo "$as_me:22173: checking declaration of size-change" >&5
22174 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
22175 if test "${cf_cv_sizechange+set}" = set; then
22176 echo $ECHO_N "(cached) $ECHO_C" >&6
22179 cf_cv_sizechange=unknown
22180 cf_save_CPPFLAGS="$CPPFLAGS"
22182 for cf_opts in "" "NEED_PTEM_H"
22185 CPPFLAGS="$cf_save_CPPFLAGS"
22186 if test -n "$cf_opts"
22189 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22190 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
22193 cat >"conftest.$ac_ext" <<_ACEOF
22194 #line 22194 "configure"
22195 #include "confdefs.h"
22196 #include <sys/types.h>
22197 #ifdef HAVE_TERMIOS_H
22198 #include <termios.h>
22200 #ifdef HAVE_TERMIO_H
22201 #include <termio.h>
22206 /* This is a workaround for SCO: they neglected to define struct winsize in
22207 * termios.h -- it's only in termio.h and ptem.h
22209 #include <sys/stream.h>
22210 #include <sys/ptem.h>
22213 #ifdef HAVE_SYS_IOCTL_H
22214 #include <sys/ioctl.h>
22222 struct ttysize win; /* SunOS 3.0... */
22223 int y = win.ts_lines = 2;
22224 int x = win.ts_cols = 1;
22229 struct winsize win; /* everything else */
22230 int y = win.ws_row = 2;
22231 int x = win.ws_col = 1;
22235 no TIOCGSIZE or TIOCGWINSZ
22236 #endif /* TIOCGWINSZ */
22237 #endif /* TIOCGSIZE */
22243 rm -f "conftest.$ac_objext"
22244 if { (eval echo "$as_me:22244: \"$ac_compile\"") >&5
22245 (eval $ac_compile) 2>&5
22247 echo "$as_me:22247: \$? = $ac_status" >&5
22248 (exit "$ac_status"); } &&
22249 { ac_try='test -s "conftest.$ac_objext"'
22250 { (eval echo "$as_me:22250: \"$ac_try\"") >&5
22251 (eval $ac_try) 2>&5
22253 echo "$as_me:22253: \$? = $ac_status" >&5
22254 (exit "$ac_status"); }; }; then
22255 cf_cv_sizechange=yes
22257 echo "$as_me: failed program was:" >&5
22258 cat "conftest.$ac_ext" >&5
22259 cf_cv_sizechange=no
22261 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22263 CPPFLAGS="$cf_save_CPPFLAGS"
22264 if test "$cf_cv_sizechange" = yes ; then
22265 echo "size-change succeeded ($cf_opts)" >&5
22266 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
22272 echo "$as_me:22272: result: $cf_cv_sizechange" >&5
22273 echo "${ECHO_T}$cf_cv_sizechange" >&6
22274 if test "$cf_cv_sizechange" != no ; then
22276 cat >>confdefs.h <<\EOF
22277 #define HAVE_SIZECHANGE 1
22280 case "$cf_cv_sizechange" in
22282 cat >>confdefs.h <<EOF
22283 #define $cf_cv_sizechange 1
22290 echo "$as_me:22290: checking for memmove" >&5
22291 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
22292 if test "${ac_cv_func_memmove+set}" = set; then
22293 echo $ECHO_N "(cached) $ECHO_C" >&6
22295 cat >"conftest.$ac_ext" <<_ACEOF
22296 #line 22296 "configure"
22297 #include "confdefs.h"
22298 #define memmove autoconf_temporary
22299 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22306 /* We use char because int might match the return type of a gcc2
22307 builtin and then its argument prototype would still apply. */
22308 char memmove (void);
22314 /* The GNU C library defines stubs for functions which it implements
22315 to always fail with ENOSYS. Some functions are actually named
22316 something starting with __ and the normal name is an alias. */
22317 #if defined (__stub_memmove) || defined (__stub___memmove)
22318 #error found stub for memmove
22326 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22327 if { (eval echo "$as_me:22327: \"$ac_link\"") >&5
22328 (eval $ac_link) 2>&5
22330 echo "$as_me:22330: \$? = $ac_status" >&5
22331 (exit "$ac_status"); } &&
22332 { ac_try='test -s "conftest$ac_exeext"'
22333 { (eval echo "$as_me:22333: \"$ac_try\"") >&5
22334 (eval $ac_try) 2>&5
22336 echo "$as_me:22336: \$? = $ac_status" >&5
22337 (exit "$ac_status"); }; }; then
22338 ac_cv_func_memmove=yes
22340 echo "$as_me: failed program was:" >&5
22341 cat "conftest.$ac_ext" >&5
22342 ac_cv_func_memmove=no
22344 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22346 echo "$as_me:22346: result: $ac_cv_func_memmove" >&5
22347 echo "${ECHO_T}$ac_cv_func_memmove" >&6
22348 if test "$ac_cv_func_memmove" = yes; then
22352 echo "$as_me:22352: checking for bcopy" >&5
22353 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
22354 if test "${ac_cv_func_bcopy+set}" = set; then
22355 echo $ECHO_N "(cached) $ECHO_C" >&6
22357 cat >"conftest.$ac_ext" <<_ACEOF
22358 #line 22358 "configure"
22359 #include "confdefs.h"
22360 #define bcopy autoconf_temporary
22361 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22368 /* We use char because int might match the return type of a gcc2
22369 builtin and then its argument prototype would still apply. */
22376 /* The GNU C library defines stubs for functions which it implements
22377 to always fail with ENOSYS. Some functions are actually named
22378 something starting with __ and the normal name is an alias. */
22379 #if defined (__stub_bcopy) || defined (__stub___bcopy)
22380 #error found stub for bcopy
22388 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22389 if { (eval echo "$as_me:22389: \"$ac_link\"") >&5
22390 (eval $ac_link) 2>&5
22392 echo "$as_me:22392: \$? = $ac_status" >&5
22393 (exit "$ac_status"); } &&
22394 { ac_try='test -s "conftest$ac_exeext"'
22395 { (eval echo "$as_me:22395: \"$ac_try\"") >&5
22396 (eval $ac_try) 2>&5
22398 echo "$as_me:22398: \$? = $ac_status" >&5
22399 (exit "$ac_status"); }; }; then
22400 ac_cv_func_bcopy=yes
22402 echo "$as_me: failed program was:" >&5
22403 cat "conftest.$ac_ext" >&5
22404 ac_cv_func_bcopy=no
22406 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22408 echo "$as_me:22408: result: $ac_cv_func_bcopy" >&5
22409 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
22410 if test "$ac_cv_func_bcopy" = yes; then
22412 echo "$as_me:22412: checking if bcopy does overlapping moves" >&5
22413 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
22414 if test "${cf_cv_good_bcopy+set}" = set; then
22415 echo $ECHO_N "(cached) $ECHO_C" >&6
22418 if test "$cross_compiling" = yes; then
22419 cf_cv_good_bcopy=unknown
22421 cat >"conftest.$ac_ext" <<_ACEOF
22422 #line 22422 "configure"
22423 #include "confdefs.h"
22426 static char data[] = "abcdefghijklmnopqrstuwwxyz";
22428 bcopy(data, temp, sizeof(data));
22429 bcopy(temp+10, temp, 15);
22430 bcopy(temp+5, temp+15, 10);
22431 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
22435 rm -f "conftest$ac_exeext"
22436 if { (eval echo "$as_me:22436: \"$ac_link\"") >&5
22437 (eval $ac_link) 2>&5
22439 echo "$as_me:22439: \$? = $ac_status" >&5
22440 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22441 { (eval echo "$as_me:22441: \"$ac_try\"") >&5
22442 (eval $ac_try) 2>&5
22444 echo "$as_me:22444: \$? = $ac_status" >&5
22445 (exit "$ac_status"); }; }; then
22446 cf_cv_good_bcopy=yes
22448 echo "$as_me: program exited with status $ac_status" >&5
22449 echo "$as_me: failed program was:" >&5
22450 cat "conftest.$ac_ext" >&5
22451 cf_cv_good_bcopy=no
22453 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22457 echo "$as_me:22457: result: $cf_cv_good_bcopy" >&5
22458 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
22461 cf_cv_good_bcopy=no
22464 if test "$cf_cv_good_bcopy" = yes ; then
22466 cat >>confdefs.h <<\EOF
22467 #define USE_OK_BCOPY 1
22472 cat >>confdefs.h <<\EOF
22473 #define USE_MY_MEMMOVE 1
22480 tty >/dev/null 2>&1 || {
22481 for ac_func in posix_openpt
22483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22484 echo "$as_me:22484: checking for $ac_func" >&5
22485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22486 if eval "test \"\${$as_ac_var+set}\" = set"; then
22487 echo $ECHO_N "(cached) $ECHO_C" >&6
22489 cat >"conftest.$ac_ext" <<_ACEOF
22490 #line 22490 "configure"
22491 #include "confdefs.h"
22492 #define $ac_func autoconf_temporary
22493 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22500 /* We use char because int might match the return type of a gcc2
22501 builtin and then its argument prototype would still apply. */
22502 char $ac_func (void);
22508 /* The GNU C library defines stubs for functions which it implements
22509 to always fail with ENOSYS. Some functions are actually named
22510 something starting with __ and the normal name is an alias. */
22511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22512 #error found stub for $ac_func
22515 return $ac_func ();
22520 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22521 if { (eval echo "$as_me:22521: \"$ac_link\"") >&5
22522 (eval $ac_link) 2>&5
22524 echo "$as_me:22524: \$? = $ac_status" >&5
22525 (exit "$ac_status"); } &&
22526 { ac_try='test -s "conftest$ac_exeext"'
22527 { (eval echo "$as_me:22527: \"$ac_try\"") >&5
22528 (eval $ac_try) 2>&5
22530 echo "$as_me:22530: \$? = $ac_status" >&5
22531 (exit "$ac_status"); }; }; then
22532 eval "$as_ac_var=yes"
22534 echo "$as_me: failed program was:" >&5
22535 cat "conftest.$ac_ext" >&5
22536 eval "$as_ac_var=no"
22538 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22540 echo "$as_me:22540: result: `eval echo '${'"$as_ac_var"'}'`" >&5
22541 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
22542 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
22543 cat >>confdefs.h <<EOF
22544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22550 echo "$as_me:22550: checking if poll really works" >&5
22551 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
22552 if test "${cf_cv_working_poll+set}" = set; then
22553 echo $ECHO_N "(cached) $ECHO_C" >&6
22556 if test "$cross_compiling" = yes; then
22557 cf_cv_working_poll=unknown
22559 cat >"conftest.$ac_ext" <<_ACEOF
22560 #line 22560 "configure"
22561 #include "confdefs.h"
22563 #include <stdlib.h>
22565 #include <unistd.h>
22570 #include <sys/poll.h>
22573 struct pollfd myfds;
22576 /* check for Darwin bug with respect to "devices" */
22577 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
22580 myfds.events = POLLIN;
22583 ret = poll(&myfds, 1, 100);
22585 if (ret < 0 || (myfds.revents & POLLNVAL)) {
22590 fd = open("/dev/tty", 2); /* O_RDWR */
22592 #ifdef HAVE_POSIX_OPENPT
22594 fd = posix_openpt(O_RDWR);
22599 /* also check with standard input */
22601 myfds.events = POLLIN;
22603 ret = poll(&myfds, 1, 100);
22608 ${cf_cv_main_return:-return}(ret < 0);
22611 rm -f "conftest$ac_exeext"
22612 if { (eval echo "$as_me:22612: \"$ac_link\"") >&5
22613 (eval $ac_link) 2>&5
22615 echo "$as_me:22615: \$? = $ac_status" >&5
22616 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22617 { (eval echo "$as_me:22617: \"$ac_try\"") >&5
22618 (eval $ac_try) 2>&5
22620 echo "$as_me:22620: \$? = $ac_status" >&5
22621 (exit "$ac_status"); }; }; then
22622 cf_cv_working_poll=yes
22624 echo "$as_me: program exited with status $ac_status" >&5
22625 echo "$as_me: failed program was:" >&5
22626 cat "conftest.$ac_ext" >&5
22627 cf_cv_working_poll=no
22629 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22632 echo "$as_me:22632: result: $cf_cv_working_poll" >&5
22633 echo "${ECHO_T}$cf_cv_working_poll" >&6
22634 test "$cf_cv_working_poll" = "yes" &&
22635 cat >>confdefs.h <<\EOF
22636 #define HAVE_WORKING_POLL 1
22639 echo "$as_me:22639: checking for va_copy" >&5
22640 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22641 if test "${cf_cv_have_va_copy+set}" = set; then
22642 echo $ECHO_N "(cached) $ECHO_C" >&6
22645 cat >"conftest.$ac_ext" <<_ACEOF
22646 #line 22646 "configure"
22647 #include "confdefs.h"
22649 #include <stdarg.h>
22655 static va_list dst;
22656 static va_list src;
22662 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22663 if { (eval echo "$as_me:22663: \"$ac_link\"") >&5
22664 (eval $ac_link) 2>&5
22666 echo "$as_me:22666: \$? = $ac_status" >&5
22667 (exit "$ac_status"); } &&
22668 { ac_try='test -s "conftest$ac_exeext"'
22669 { (eval echo "$as_me:22669: \"$ac_try\"") >&5
22670 (eval $ac_try) 2>&5
22672 echo "$as_me:22672: \$? = $ac_status" >&5
22673 (exit "$ac_status"); }; }; then
22674 cf_cv_have_va_copy=yes
22676 echo "$as_me: failed program was:" >&5
22677 cat "conftest.$ac_ext" >&5
22678 cf_cv_have_va_copy=no
22680 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22682 echo "$as_me:22682: result: $cf_cv_have_va_copy" >&5
22683 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
22685 if test "$cf_cv_have_va_copy" = yes;
22688 cat >>confdefs.h <<\EOF
22689 #define HAVE_VA_COPY 1
22692 else # !cf_cv_have_va_copy
22694 echo "$as_me:22694: checking for __va_copy" >&5
22695 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
22696 if test "${cf_cv_have___va_copy+set}" = set; then
22697 echo $ECHO_N "(cached) $ECHO_C" >&6
22700 cat >"conftest.$ac_ext" <<_ACEOF
22701 #line 22701 "configure"
22702 #include "confdefs.h"
22704 #include <stdarg.h>
22710 static va_list dst;
22711 static va_list src;
22712 __va_copy(dst, src)
22717 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22718 if { (eval echo "$as_me:22718: \"$ac_link\"") >&5
22719 (eval $ac_link) 2>&5
22721 echo "$as_me:22721: \$? = $ac_status" >&5
22722 (exit "$ac_status"); } &&
22723 { ac_try='test -s "conftest$ac_exeext"'
22724 { (eval echo "$as_me:22724: \"$ac_try\"") >&5
22725 (eval $ac_try) 2>&5
22727 echo "$as_me:22727: \$? = $ac_status" >&5
22728 (exit "$ac_status"); }; }; then
22729 cf_cv_have___va_copy=yes
22731 echo "$as_me: failed program was:" >&5
22732 cat "conftest.$ac_ext" >&5
22733 cf_cv_have___va_copy=no
22735 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22737 echo "$as_me:22737: result: $cf_cv_have___va_copy" >&5
22738 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
22740 if test "$cf_cv_have___va_copy" = yes
22743 cat >>confdefs.h <<\EOF
22744 #define HAVE___VA_COPY 1
22747 else # !cf_cv_have___va_copy
22749 echo "$as_me:22749: checking for __builtin_va_copy" >&5
22750 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
22751 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
22752 echo $ECHO_N "(cached) $ECHO_C" >&6
22755 cat >"conftest.$ac_ext" <<_ACEOF
22756 #line 22756 "configure"
22757 #include "confdefs.h"
22759 #include <stdarg.h>
22765 static va_list dst;
22766 static va_list src;
22767 __builtin_va_copy(dst, src)
22772 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22773 if { (eval echo "$as_me:22773: \"$ac_link\"") >&5
22774 (eval $ac_link) 2>&5
22776 echo "$as_me:22776: \$? = $ac_status" >&5
22777 (exit "$ac_status"); } &&
22778 { ac_try='test -s "conftest$ac_exeext"'
22779 { (eval echo "$as_me:22779: \"$ac_try\"") >&5
22780 (eval $ac_try) 2>&5
22782 echo "$as_me:22782: \$? = $ac_status" >&5
22783 (exit "$ac_status"); }; }; then
22784 cf_cv_have___builtin_va_copy=yes
22786 echo "$as_me: failed program was:" >&5
22787 cat "conftest.$ac_ext" >&5
22788 cf_cv_have___builtin_va_copy=no
22790 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22792 echo "$as_me:22792: result: $cf_cv_have___builtin_va_copy" >&5
22793 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
22795 test "$cf_cv_have___builtin_va_copy" = yes &&
22797 cat >>confdefs.h <<\EOF
22798 #define HAVE___BUILTIN_VA_COPY 1
22801 fi # cf_cv_have___va_copy
22803 fi # cf_cv_have_va_copy
22805 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
22810 echo "$as_me:22810: checking if we can simply copy va_list" >&5
22811 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
22812 if test "${cf_cv_pointer_va_list+set}" = set; then
22813 echo $ECHO_N "(cached) $ECHO_C" >&6
22816 cat >"conftest.$ac_ext" <<_ACEOF
22817 #line 22817 "configure"
22818 #include "confdefs.h"
22820 #include <stdarg.h>
22833 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22834 if { (eval echo "$as_me:22834: \"$ac_link\"") >&5
22835 (eval $ac_link) 2>&5
22837 echo "$as_me:22837: \$? = $ac_status" >&5
22838 (exit "$ac_status"); } &&
22839 { ac_try='test -s "conftest$ac_exeext"'
22840 { (eval echo "$as_me:22840: \"$ac_try\"") >&5
22841 (eval $ac_try) 2>&5
22843 echo "$as_me:22843: \$? = $ac_status" >&5
22844 (exit "$ac_status"); }; }; then
22845 cf_cv_pointer_va_list=yes
22847 echo "$as_me: failed program was:" >&5
22848 cat "conftest.$ac_ext" >&5
22849 cf_cv_pointer_va_list=no
22851 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22853 echo "$as_me:22853: result: $cf_cv_pointer_va_list" >&5
22854 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
22856 if test "$cf_cv_pointer_va_list" = no
22858 echo "$as_me:22858: checking if we can copy va_list indirectly" >&5
22859 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
22860 if test "${cf_cv_array_va_list+set}" = set; then
22861 echo $ECHO_N "(cached) $ECHO_C" >&6
22864 cat >"conftest.$ac_ext" <<_ACEOF
22865 #line 22865 "configure"
22866 #include "confdefs.h"
22868 #include <stdarg.h>
22881 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22882 if { (eval echo "$as_me:22882: \"$ac_link\"") >&5
22883 (eval $ac_link) 2>&5
22885 echo "$as_me:22885: \$? = $ac_status" >&5
22886 (exit "$ac_status"); } &&
22887 { ac_try='test -s "conftest$ac_exeext"'
22888 { (eval echo "$as_me:22888: \"$ac_try\"") >&5
22889 (eval $ac_try) 2>&5
22891 echo "$as_me:22891: \$? = $ac_status" >&5
22892 (exit "$ac_status"); }; }; then
22893 cf_cv_array_va_list=yes
22895 echo "$as_me: failed program was:" >&5
22896 cat "conftest.$ac_ext" >&5
22897 cf_cv_array_va_list=no
22899 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22901 echo "$as_me:22901: result: $cf_cv_array_va_list" >&5
22902 echo "${ECHO_T}$cf_cv_array_va_list" >&6
22903 test "$cf_cv_array_va_list" = yes &&
22904 cat >>confdefs.h <<\EOF
22905 #define ARRAY_VA_LIST 1
22912 echo "$as_me:22912: checking for pid_t" >&5
22913 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22914 if test "${ac_cv_type_pid_t+set}" = set; then
22915 echo $ECHO_N "(cached) $ECHO_C" >&6
22917 cat >"conftest.$ac_ext" <<_ACEOF
22918 #line 22918 "configure"
22919 #include "confdefs.h"
22920 $ac_includes_default
22926 if (sizeof (pid_t))
22932 rm -f "conftest.$ac_objext"
22933 if { (eval echo "$as_me:22933: \"$ac_compile\"") >&5
22934 (eval $ac_compile) 2>&5
22936 echo "$as_me:22936: \$? = $ac_status" >&5
22937 (exit "$ac_status"); } &&
22938 { ac_try='test -s "conftest.$ac_objext"'
22939 { (eval echo "$as_me:22939: \"$ac_try\"") >&5
22940 (eval $ac_try) 2>&5
22942 echo "$as_me:22942: \$? = $ac_status" >&5
22943 (exit "$ac_status"); }; }; then
22944 ac_cv_type_pid_t=yes
22946 echo "$as_me: failed program was:" >&5
22947 cat "conftest.$ac_ext" >&5
22948 ac_cv_type_pid_t=no
22950 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22952 echo "$as_me:22952: result: $ac_cv_type_pid_t" >&5
22953 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22954 if test "$ac_cv_type_pid_t" = yes; then
22958 cat >>confdefs.h <<EOF
22964 for ac_header in unistd.h vfork.h
22966 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22967 echo "$as_me:22967: checking for $ac_header" >&5
22968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22970 echo $ECHO_N "(cached) $ECHO_C" >&6
22972 cat >"conftest.$ac_ext" <<_ACEOF
22973 #line 22973 "configure"
22974 #include "confdefs.h"
22975 #include <$ac_header>
22977 if { (eval echo "$as_me:22977: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22978 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22980 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22982 cat conftest.err >&5
22983 echo "$as_me:22983: \$? = $ac_status" >&5
22984 (exit "$ac_status"); } >/dev/null; then
22985 if test -s conftest.err; then
22986 ac_cpp_err=$ac_c_preproc_warn_flag
22993 if test -z "$ac_cpp_err"; then
22994 eval "$as_ac_Header=yes"
22996 echo "$as_me: failed program was:" >&5
22997 cat "conftest.$ac_ext" >&5
22998 eval "$as_ac_Header=no"
23000 rm -f conftest.err "conftest.$ac_ext"
23002 echo "$as_me:23002: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
23003 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
23004 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
23005 cat >>confdefs.h <<EOF
23006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23012 for ac_func in fork vfork
23014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23015 echo "$as_me:23015: checking for $ac_func" >&5
23016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23017 if eval "test \"\${$as_ac_var+set}\" = set"; then
23018 echo $ECHO_N "(cached) $ECHO_C" >&6
23020 cat >"conftest.$ac_ext" <<_ACEOF
23021 #line 23021 "configure"
23022 #include "confdefs.h"
23023 #define $ac_func autoconf_temporary
23024 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23031 /* We use char because int might match the return type of a gcc2
23032 builtin and then its argument prototype would still apply. */
23033 char $ac_func (void);
23039 /* The GNU C library defines stubs for functions which it implements
23040 to always fail with ENOSYS. Some functions are actually named
23041 something starting with __ and the normal name is an alias. */
23042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23043 #error found stub for $ac_func
23046 return $ac_func ();
23051 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23052 if { (eval echo "$as_me:23052: \"$ac_link\"") >&5
23053 (eval $ac_link) 2>&5
23055 echo "$as_me:23055: \$? = $ac_status" >&5
23056 (exit "$ac_status"); } &&
23057 { ac_try='test -s "conftest$ac_exeext"'
23058 { (eval echo "$as_me:23058: \"$ac_try\"") >&5
23059 (eval $ac_try) 2>&5
23061 echo "$as_me:23061: \$? = $ac_status" >&5
23062 (exit "$ac_status"); }; }; then
23063 eval "$as_ac_var=yes"
23065 echo "$as_me: failed program was:" >&5
23066 cat "conftest.$ac_ext" >&5
23067 eval "$as_ac_var=no"
23069 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23071 echo "$as_me:23071: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23072 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23073 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23074 cat >>confdefs.h <<EOF
23075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23081 ac_cv_func_fork_works=$ac_cv_func_fork
23082 if test "x$ac_cv_func_fork" = xyes; then
23083 echo "$as_me:23083: checking for working fork" >&5
23084 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23085 if test "${ac_cv_func_fork_works+set}" = set; then
23086 echo $ECHO_N "(cached) $ECHO_C" >&6
23088 if test "$cross_compiling" = yes; then
23089 ac_cv_func_fork_works=cross
23091 cat >"conftest.$ac_ext" <<_ACEOF
23092 /* By Rüdiger Kuhlmann. */
23093 #include <sys/types.h>
23095 # include <unistd.h>
23097 /* Some systems only have a dummy stub for fork() */
23101 $ac_main_return (1);
23102 $ac_main_return (0);
23105 rm -f "conftest$ac_exeext"
23106 if { (eval echo "$as_me:23106: \"$ac_link\"") >&5
23107 (eval $ac_link) 2>&5
23109 echo "$as_me:23109: \$? = $ac_status" >&5
23110 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23111 { (eval echo "$as_me:23111: \"$ac_try\"") >&5
23112 (eval $ac_try) 2>&5
23114 echo "$as_me:23114: \$? = $ac_status" >&5
23115 (exit "$ac_status"); }; }; then
23116 ac_cv_func_fork_works=yes
23118 echo "$as_me: program exited with status $ac_status" >&5
23119 echo "$as_me: failed program was:" >&5
23120 cat "conftest.$ac_ext" >&5
23121 ac_cv_func_fork_works=no
23123 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23126 echo "$as_me:23126: result: $ac_cv_func_fork_works" >&5
23127 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23130 if test "x$ac_cv_func_fork_works" = xcross; then
23132 *-*-amigaos* | *-*-msdosdjgpp*)
23133 # Override, as these systems have only a dummy fork() stub
23134 ac_cv_func_fork_works=no
23137 ac_cv_func_fork_works=yes
23140 { echo "$as_me:23140: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
23141 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
23143 ac_cv_func_vfork_works=$ac_cv_func_vfork
23144 if test "x$ac_cv_func_vfork" = xyes; then
23145 echo "$as_me:23145: checking for working vfork" >&5
23146 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23147 if test "${ac_cv_func_vfork_works+set}" = set; then
23148 echo $ECHO_N "(cached) $ECHO_C" >&6
23150 if test "$cross_compiling" = yes; then
23151 ac_cv_func_vfork_works=cross
23153 cat >"conftest.$ac_ext" <<_ACEOF
23154 #line 23154 "configure"
23155 #include "confdefs.h"
23156 /* Thanks to Paul Eggert for this test. */
23158 #include <sys/types.h>
23159 #include <sys/stat.h>
23161 # include <unistd.h>
23164 # include <vfork.h>
23166 /* On some sparc systems, changes by the child to local and incoming
23167 argument registers are propagated back to the parent. The compiler
23168 is told about this with #include <vfork.h>, but some compilers
23169 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23170 static variable whose address is put into a register that is
23171 clobbered by the vfork. */
23174 sparc_address_test (int arg)
23176 sparc_address_test (arg) int arg;
23179 static pid_t child;
23197 pid_t parent = getpid ();
23200 sparc_address_test ();
23205 /* Here is another test for sparc vfork register problems. This
23206 test uses lots of local variables, at least as many local
23207 variables as main has allocated so far including compiler
23208 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23209 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23210 reuse the register of parent for one of the local variables,
23211 since it will think that parent can't possibly be used any more
23212 in this routine. Assigning to the local variable will thus
23213 munge parent in the parent process. */
23215 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23216 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23217 /* Convince the compiler that p..p7 are live; otherwise, it might
23218 use the same hardware register for all 8 local variables. */
23219 if (p != p1 || p != p2 || p != p3 || p != p4
23220 || p != p5 || p != p6 || p != p7)
23223 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23224 from child file descriptors. If the child closes a descriptor
23225 before it execs or exits, this munges the parent's descriptor
23226 as well. Test for this by closing stdout in the child. */
23227 _exit(close(fileno(stdout)) != 0);
23232 while (wait(&status) != child)
23235 /* Was there some problem with vforking? */
23238 /* Did the child fail? (This shouldn't happen.) */
23241 /* Did the vfork/compiler bug occur? */
23242 || parent != getpid()
23244 /* Did the file descriptor bug occur? */
23245 || fstat(fileno(stdout), &st) != 0
23250 rm -f "conftest$ac_exeext"
23251 if { (eval echo "$as_me:23251: \"$ac_link\"") >&5
23252 (eval $ac_link) 2>&5
23254 echo "$as_me:23254: \$? = $ac_status" >&5
23255 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23256 { (eval echo "$as_me:23256: \"$ac_try\"") >&5
23257 (eval $ac_try) 2>&5
23259 echo "$as_me:23259: \$? = $ac_status" >&5
23260 (exit "$ac_status"); }; }; then
23261 ac_cv_func_vfork_works=yes
23263 echo "$as_me: program exited with status $ac_status" >&5
23264 echo "$as_me: failed program was:" >&5
23265 cat "conftest.$ac_ext" >&5
23266 ac_cv_func_vfork_works=no
23268 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23271 echo "$as_me:23271: result: $ac_cv_func_vfork_works" >&5
23272 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23275 if test "x$ac_cv_func_fork_works" = xcross; then
23276 ac_cv_func_vfork_works=ac_cv_func_vfork
23277 { echo "$as_me:23277: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
23278 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
23281 if test "x$ac_cv_func_vfork_works" = xyes; then
23283 cat >>confdefs.h <<\EOF
23284 #define HAVE_WORKING_VFORK 1
23289 cat >>confdefs.h <<\EOF
23294 if test "x$ac_cv_func_fork_works" = xyes; then
23296 cat >>confdefs.h <<\EOF
23297 #define HAVE_WORKING_FORK 1
23302 echo "$as_me:23302: checking if fopen accepts explicit binary mode" >&5
23303 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
23304 if test "${cf_cv_fopen_bin_r+set}" = set; then
23305 echo $ECHO_N "(cached) $ECHO_C" >&6
23308 if test "$cross_compiling" = yes; then
23309 cf_cv_fopen_bin_r=unknown
23311 cat >"conftest.$ac_ext" <<_ACEOF
23312 #line 23312 "configure"
23313 #include "confdefs.h"
23317 FILE *fp = fopen("conftest.tmp", "wb");
23321 for (p = 0; p < 256; ++p) {
23325 fp = fopen("conftest.tmp", "rb");
23327 for (p = 0; p < 256; ++p) {
23340 ${cf_cv_main_return:-return} (rc);
23344 rm -f "conftest$ac_exeext"
23345 if { (eval echo "$as_me:23345: \"$ac_link\"") >&5
23346 (eval $ac_link) 2>&5
23348 echo "$as_me:23348: \$? = $ac_status" >&5
23349 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23350 { (eval echo "$as_me:23350: \"$ac_try\"") >&5
23351 (eval $ac_try) 2>&5
23353 echo "$as_me:23353: \$? = $ac_status" >&5
23354 (exit "$ac_status"); }; }; then
23355 cf_cv_fopen_bin_r=yes
23357 echo "$as_me: program exited with status $ac_status" >&5
23358 echo "$as_me: failed program was:" >&5
23359 cat "conftest.$ac_ext" >&5
23360 cf_cv_fopen_bin_r=no
23362 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23366 echo "$as_me:23366: result: $cf_cv_fopen_bin_r" >&5
23367 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
23368 test "x$cf_cv_fopen_bin_r" != xno &&
23369 cat >>confdefs.h <<\EOF
23370 #define USE_FOPEN_BIN_R 1
23373 # special check for test/ditto.c
23375 echo "$as_me:23375: checking for openpty in -lutil" >&5
23376 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
23377 if test "${ac_cv_lib_util_openpty+set}" = set; then
23378 echo $ECHO_N "(cached) $ECHO_C" >&6
23380 ac_check_lib_save_LIBS=$LIBS
23381 LIBS="-lutil $LIBS"
23382 cat >"conftest.$ac_ext" <<_ACEOF
23383 #line 23383 "configure"
23384 #include "confdefs.h"
23386 /* Override any gcc2 internal prototype to avoid an error. */
23390 /* We use char because int might match the return type of a gcc2
23391 builtin and then its argument prototype would still apply. */
23401 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23402 if { (eval echo "$as_me:23402: \"$ac_link\"") >&5
23403 (eval $ac_link) 2>&5
23405 echo "$as_me:23405: \$? = $ac_status" >&5
23406 (exit "$ac_status"); } &&
23407 { ac_try='test -s "conftest$ac_exeext"'
23408 { (eval echo "$as_me:23408: \"$ac_try\"") >&5
23409 (eval $ac_try) 2>&5
23411 echo "$as_me:23411: \$? = $ac_status" >&5
23412 (exit "$ac_status"); }; }; then
23413 ac_cv_lib_util_openpty=yes
23415 echo "$as_me: failed program was:" >&5
23416 cat "conftest.$ac_ext" >&5
23417 ac_cv_lib_util_openpty=no
23419 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23420 LIBS=$ac_check_lib_save_LIBS
23422 echo "$as_me:23422: result: $ac_cv_lib_util_openpty" >&5
23423 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
23424 if test "$ac_cv_lib_util_openpty" = yes; then
23430 echo "$as_me:23430: checking for openpty header" >&5
23431 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
23432 if test "${cf_cv_func_openpty+set}" = set; then
23433 echo $ECHO_N "(cached) $ECHO_C" >&6
23436 cf_save_LIBS="$LIBS"
23437 test "$cf_cv_lib_util" = yes && {
23438 cf_add_libs="$LIBS"
23441 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23442 # filter duplicates
23443 for cf_add_1lib in $cf_add_0lib; do
23444 for cf_add_2lib in $cf_add_libs; do
23445 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23450 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23452 LIBS="$cf_add_libs"
23454 for cf_header in pty.h libutil.h util.h
23456 cat >"conftest.$ac_ext" <<_ACEOF
23457 #line 23457 "configure"
23458 #include "confdefs.h"
23460 #include <$cf_header>
23466 int x = openpty((int *)0, (int *)0, (char *)0,
23467 (struct termios *)0, (struct winsize *)0);
23473 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23474 if { (eval echo "$as_me:23474: \"$ac_link\"") >&5
23475 (eval $ac_link) 2>&5
23477 echo "$as_me:23477: \$? = $ac_status" >&5
23478 (exit "$ac_status"); } &&
23479 { ac_try='test -s "conftest$ac_exeext"'
23480 { (eval echo "$as_me:23480: \"$ac_try\"") >&5
23481 (eval $ac_try) 2>&5
23483 echo "$as_me:23483: \$? = $ac_status" >&5
23484 (exit "$ac_status"); }; }; then
23486 cf_cv_func_openpty=$cf_header
23490 echo "$as_me: failed program was:" >&5
23491 cat "conftest.$ac_ext" >&5
23493 cf_cv_func_openpty=no
23496 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23498 LIBS="$cf_save_LIBS"
23501 echo "$as_me:23501: result: $cf_cv_func_openpty" >&5
23502 echo "${ECHO_T}$cf_cv_func_openpty" >&6
23504 if test "$cf_cv_func_openpty" != no ; then
23506 cat >>confdefs.h <<EOF
23507 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
23510 cat >>confdefs.h <<\EOF
23511 #define USE_XTERM_PTY 1
23514 if test "x$cf_cv_lib_util" = xyes ; then
23516 cf_add_libs="$TEST_LIBS"
23519 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23520 # filter duplicates
23521 for cf_add_1lib in $cf_add_0lib; do
23522 for cf_add_2lib in $cf_add_libs; do
23523 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23528 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23530 TEST_LIBS="$cf_add_libs"
23535 if test "$with_hashed_db" != no ; then
23537 cat >>confdefs.h <<\EOF
23538 #define USE_HASHED_DB 1
23541 case $with_hashed_db in
23545 if test -d "$with_hashed_db" ; then
23547 if test -n "$with_hashed_db/include" ; then
23548 for cf_add_incdir in $with_hashed_db/include
23550 while test "$cf_add_incdir" != /usr/include
23552 if test -d "$cf_add_incdir"
23555 if test -n "$CFLAGS$CPPFLAGS" ; then
23556 # a loop is needed to ensure we can add subdirs of existing dirs
23557 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
23558 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
23559 cf_have_incdir=yes; break
23564 if test "$cf_have_incdir" = no ; then
23565 if test "$cf_add_incdir" = /usr/local/include ; then
23566 if test "$GCC" = yes
23568 cf_save_CPPFLAGS=$CPPFLAGS
23570 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23571 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
23573 cat >"conftest.$ac_ext" <<_ACEOF
23574 #line 23574 "configure"
23575 #include "confdefs.h"
23585 rm -f "conftest.$ac_objext"
23586 if { (eval echo "$as_me:23586: \"$ac_compile\"") >&5
23587 (eval $ac_compile) 2>&5
23589 echo "$as_me:23589: \$? = $ac_status" >&5
23590 (exit "$ac_status"); } &&
23591 { ac_try='test -s "conftest.$ac_objext"'
23592 { (eval echo "$as_me:23592: \"$ac_try\"") >&5
23593 (eval $ac_try) 2>&5
23595 echo "$as_me:23595: \$? = $ac_status" >&5
23596 (exit "$ac_status"); }; }; then
23599 echo "$as_me: failed program was:" >&5
23600 cat "conftest.$ac_ext" >&5
23603 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23604 CPPFLAGS=$cf_save_CPPFLAGS
23609 if test "$cf_have_incdir" = no ; then
23610 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
23612 echo "${as_me:-configure}:23612: testing adding $cf_add_incdir to include-path ..." 1>&5
23614 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
23616 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
23617 test "$cf_top_incdir" = "$cf_add_incdir" && break
23618 cf_add_incdir="$cf_top_incdir"
23629 if test -n "$with_hashed_db/lib" ; then
23630 for cf_add_libdir in $with_hashed_db/lib
23632 if test "$cf_add_libdir" = /usr/lib ; then
23634 elif test -d "$cf_add_libdir"
23637 if test -n "$LDFLAGS$LIBS" ; then
23638 # a loop is needed to ensure we can add subdirs of existing dirs
23639 for cf_test_libdir in $LDFLAGS $LIBS ; do
23640 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
23641 cf_have_libdir=yes; break
23645 if test "$cf_have_libdir" = no ; then
23646 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
23648 echo "${as_me:-configure}:23648: testing adding $cf_add_libdir to library-path ..." 1>&5
23650 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
23657 case "$with_hashed_db" in
23659 { echo "$as_me:23659: WARNING: no such directory $with_hashed_db" >&5
23660 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
23666 test "x$prefix" != "xNONE" && \
23667 test -d "$prefix" && \
23669 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
23670 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
23671 test -d "$prefix/include/$with_hashed_db" && cf_search="$cf_search $prefix/include/$with_hashed_db"
23672 test -d "$prefix/include/$with_hashed_db/include" && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
23673 test -d "$prefix/$with_hashed_db/include" && cf_search="$cf_search $prefix/$with_hashed_db/include"
23674 test -d "$prefix/$with_hashed_db/include/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
23677 for cf_subdir_prefix in \
23686 test "x$cf_subdir_prefix" != "x$prefix" && \
23687 test -d "$cf_subdir_prefix" && \
23688 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
23689 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
23690 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
23691 test -d "$cf_subdir_prefix/include/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
23692 test -d "$cf_subdir_prefix/include/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
23693 test -d "$cf_subdir_prefix/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
23694 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"
23699 for cf_item in $cf_search
23702 (*/$with_hashed_db)
23704 if test -n "$cf_item" ; then
23705 for cf_add_incdir in $cf_item
23707 while test "$cf_add_incdir" != /usr/include
23709 if test -d "$cf_add_incdir"
23712 if test -n "$CFLAGS$CPPFLAGS" ; then
23713 # a loop is needed to ensure we can add subdirs of existing dirs
23714 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
23715 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
23716 cf_have_incdir=yes; break
23721 if test "$cf_have_incdir" = no ; then
23722 if test "$cf_add_incdir" = /usr/local/include ; then
23723 if test "$GCC" = yes
23725 cf_save_CPPFLAGS=$CPPFLAGS
23727 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23728 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
23730 cat >"conftest.$ac_ext" <<_ACEOF
23731 #line 23731 "configure"
23732 #include "confdefs.h"
23742 rm -f "conftest.$ac_objext"
23743 if { (eval echo "$as_me:23743: \"$ac_compile\"") >&5
23744 (eval $ac_compile) 2>&5
23746 echo "$as_me:23746: \$? = $ac_status" >&5
23747 (exit "$ac_status"); } &&
23748 { ac_try='test -s "conftest.$ac_objext"'
23749 { (eval echo "$as_me:23749: \"$ac_try\"") >&5
23750 (eval $ac_try) 2>&5
23752 echo "$as_me:23752: \$? = $ac_status" >&5
23753 (exit "$ac_status"); }; }; then
23756 echo "$as_me: failed program was:" >&5
23757 cat "conftest.$ac_ext" >&5
23760 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23761 CPPFLAGS=$cf_save_CPPFLAGS
23766 if test "$cf_have_incdir" = no ; then
23767 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
23769 echo "${as_me:-configure}:23769: testing adding $cf_add_incdir to include-path ..." 1>&5
23771 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
23773 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
23774 test "$cf_top_incdir" = "$cf_add_incdir" && break
23775 cf_add_incdir="$cf_top_incdir"
23792 test "x$prefix" != "xNONE" && \
23793 test -d "$prefix" && \
23795 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
23796 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
23797 test -d "$prefix/lib/$with_hashed_db" && cf_search="$cf_search $prefix/lib/$with_hashed_db"
23798 test -d "$prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
23799 test -d "$prefix/$with_hashed_db/lib" && cf_search="$cf_search $prefix/$with_hashed_db/lib"
23800 test -d "$prefix/$with_hashed_db/lib/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
23803 for cf_subdir_prefix in \
23812 test "x$cf_subdir_prefix" != "x$prefix" && \
23813 test -d "$cf_subdir_prefix" && \
23814 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
23815 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
23816 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
23817 test -d "$cf_subdir_prefix/lib/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
23818 test -d "$cf_subdir_prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
23819 test -d "$cf_subdir_prefix/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
23820 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"
23825 for cf_item in $cf_search
23828 (*/$with_hashed_db)
23830 if test -n "$cf_item" ; then
23831 for cf_add_libdir in $cf_item
23833 if test "$cf_add_libdir" = /usr/lib ; then
23835 elif test -d "$cf_add_libdir"
23838 if test -n "$LDFLAGS$LIBS" ; then
23839 # a loop is needed to ensure we can add subdirs of existing dirs
23840 for cf_test_libdir in $LDFLAGS $LIBS ; do
23841 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
23842 cf_have_libdir=yes; break
23846 if test "$cf_have_libdir" = no ; then
23847 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
23849 echo "${as_me:-configure}:23849: testing adding $cf_add_libdir to library-path ..." 1>&5
23851 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
23866 echo "$as_me:23866: checking for db.h" >&5
23867 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
23868 if test "${ac_cv_header_db_h+set}" = set; then
23869 echo $ECHO_N "(cached) $ECHO_C" >&6
23871 cat >"conftest.$ac_ext" <<_ACEOF
23872 #line 23872 "configure"
23873 #include "confdefs.h"
23876 if { (eval echo "$as_me:23876: \"$ac_cpp "conftest.$ac_ext"\"") >&5
23877 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
23879 $EGREP -v '^ *\+' conftest.er1 >conftest.err
23881 cat conftest.err >&5
23882 echo "$as_me:23882: \$? = $ac_status" >&5
23883 (exit "$ac_status"); } >/dev/null; then
23884 if test -s conftest.err; then
23885 ac_cpp_err=$ac_c_preproc_warn_flag
23892 if test -z "$ac_cpp_err"; then
23893 ac_cv_header_db_h=yes
23895 echo "$as_me: failed program was:" >&5
23896 cat "conftest.$ac_ext" >&5
23897 ac_cv_header_db_h=no
23899 rm -f conftest.err "conftest.$ac_ext"
23901 echo "$as_me:23901: result: $ac_cv_header_db_h" >&5
23902 echo "${ECHO_T}$ac_cv_header_db_h" >&6
23903 if test "$ac_cv_header_db_h" = yes; then
23905 echo "$as_me:23905: checking for version of db" >&5
23906 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
23907 if test "${cf_cv_hashed_db_version+set}" = set; then
23908 echo $ECHO_N "(cached) $ECHO_C" >&6
23911 cf_cv_hashed_db_version=unknown
23913 for cf_db_version in 1 2 3 4 5 6
23916 echo "${as_me:-configure}:23916: testing checking for db version $cf_db_version ..." 1>&5
23918 cat >"conftest.$ac_ext" <<_ACEOF
23919 #line 23919 "configure"
23920 #include "confdefs.h"
23922 $ac_includes_default
23925 #ifdef DB_VERSION_MAJOR
23926 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
23927 #if $cf_db_version == DB_VERSION_MAJOR
23933 #if $cf_db_version == 1
23934 /* ok: assuming this is DB 1.8.5 */
23948 rm -f "conftest.$ac_objext"
23949 if { (eval echo "$as_me:23949: \"$ac_compile\"") >&5
23950 (eval $ac_compile) 2>&5
23952 echo "$as_me:23952: \$? = $ac_status" >&5
23953 (exit "$ac_status"); } &&
23954 { ac_try='test -s "conftest.$ac_objext"'
23955 { (eval echo "$as_me:23955: \"$ac_try\"") >&5
23956 (eval $ac_try) 2>&5
23958 echo "$as_me:23958: \$? = $ac_status" >&5
23959 (exit "$ac_status"); }; }; then
23961 cf_cv_hashed_db_version=$cf_db_version
23965 echo "$as_me: failed program was:" >&5
23966 cat "conftest.$ac_ext" >&5
23968 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23972 echo "$as_me:23972: result: $cf_cv_hashed_db_version" >&5
23973 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
23975 if test "$cf_cv_hashed_db_version" = unknown ; then
23976 { { echo "$as_me:23976: error: Cannot determine version of db" >&5
23977 echo "$as_me: error: Cannot determine version of db" >&2;}
23978 { (exit 1); exit 1; }; }
23981 echo "$as_me:23981: checking for db libraries" >&5
23982 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
23983 if test "${cf_cv_hashed_db_libs+set}" = set; then
23984 echo $ECHO_N "(cached) $ECHO_C" >&6
23987 cf_cv_hashed_db_libs=unknown
23988 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
23990 cf_save_libs="$LIBS"
23991 if test -n "$cf_db_libs"; then
23993 cf_add_libs="$LIBS"
23996 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23997 # filter duplicates
23998 for cf_add_1lib in $cf_add_0lib; do
23999 for cf_add_2lib in $cf_add_libs; do
24000 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24005 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24007 LIBS="$cf_add_libs"
24011 echo "${as_me:-configure}:24011: testing checking for library $cf_db_libs ..." 1>&5
24013 cat >"conftest.$ac_ext" <<_ACEOF
24014 #line 24014 "configure"
24015 #include "confdefs.h"
24017 $ac_includes_default
24024 char *path = "/tmp/foo";
24025 #ifdef DB_VERSION_MAJOR
24026 #if DB_VERSION_MAJOR >= 4
24028 db_create(&result, NULL, 0);
24029 result->open(result,
24036 #elif DB_VERSION_MAJOR >= 3
24038 db_create(&result, NULL, 0);
24039 result->open(result,
24045 #elif DB_VERSION_MAJOR >= 2
24054 #endif /* DB_VERSION_MAJOR */
24056 DB *result = dbopen(path,
24062 ${cf_cv_main_return:-return}(result != 0)
24068 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24069 if { (eval echo "$as_me:24069: \"$ac_link\"") >&5
24070 (eval $ac_link) 2>&5
24072 echo "$as_me:24072: \$? = $ac_status" >&5
24073 (exit "$ac_status"); } &&
24074 { ac_try='test -s "conftest$ac_exeext"'
24075 { (eval echo "$as_me:24075: \"$ac_try\"") >&5
24076 (eval $ac_try) 2>&5
24078 echo "$as_me:24078: \$? = $ac_status" >&5
24079 (exit "$ac_status"); }; }; then
24081 if test -n "$cf_db_libs" ; then
24082 cf_cv_hashed_db_libs=$cf_db_libs
24084 cf_cv_hashed_db_libs=default
24086 LIBS="$cf_save_libs"
24090 echo "$as_me: failed program was:" >&5
24091 cat "conftest.$ac_ext" >&5
24093 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24094 LIBS="$cf_save_libs"
24098 echo "$as_me:24098: result: $cf_cv_hashed_db_libs" >&5
24099 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
24101 if test "$cf_cv_hashed_db_libs" = unknown ; then
24102 { { echo "$as_me:24102: error: Cannot determine library for db" >&5
24103 echo "$as_me: error: Cannot determine library for db" >&2;}
24104 { (exit 1); exit 1; }; }
24105 elif test "$cf_cv_hashed_db_libs" != default ; then
24107 cf_add_libs="$LIBS"
24110 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24111 # filter duplicates
24112 for cf_add_1lib in $cf_add_0lib; do
24113 for cf_add_2lib in $cf_add_libs; do
24114 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24119 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24121 LIBS="$cf_add_libs"
24128 { { echo "$as_me:24128: error: Cannot find db.h" >&5
24129 echo "$as_me: error: Cannot find db.h" >&2;}
24130 { (exit 1); exit 1; }; }
24136 if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then
24137 CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24138 CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24141 # Just in case, check if the C compiler has a bool type.
24143 echo "$as_me:24143: checking if we should include stdbool.h" >&5
24144 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
24146 if test "${cf_cv_header_stdbool_h+set}" = set; then
24147 echo $ECHO_N "(cached) $ECHO_C" >&6
24150 cat >"conftest.$ac_ext" <<_ACEOF
24151 #line 24151 "configure"
24152 #include "confdefs.h"
24162 rm -f "conftest.$ac_objext"
24163 if { (eval echo "$as_me:24163: \"$ac_compile\"") >&5
24164 (eval $ac_compile) 2>&5
24166 echo "$as_me:24166: \$? = $ac_status" >&5
24167 (exit "$ac_status"); } &&
24168 { ac_try='test -s "conftest.$ac_objext"'
24169 { (eval echo "$as_me:24169: \"$ac_try\"") >&5
24170 (eval $ac_try) 2>&5
24172 echo "$as_me:24172: \$? = $ac_status" >&5
24173 (exit "$ac_status"); }; }; then
24174 cf_cv_header_stdbool_h=0
24176 echo "$as_me: failed program was:" >&5
24177 cat "conftest.$ac_ext" >&5
24178 cat >"conftest.$ac_ext" <<_ACEOF
24179 #line 24179 "configure"
24180 #include "confdefs.h"
24183 #include <stdbool.h>
24194 rm -f "conftest.$ac_objext"
24195 if { (eval echo "$as_me:24195: \"$ac_compile\"") >&5
24196 (eval $ac_compile) 2>&5
24198 echo "$as_me:24198: \$? = $ac_status" >&5
24199 (exit "$ac_status"); } &&
24200 { ac_try='test -s "conftest.$ac_objext"'
24201 { (eval echo "$as_me:24201: \"$ac_try\"") >&5
24202 (eval $ac_try) 2>&5
24204 echo "$as_me:24204: \$? = $ac_status" >&5
24205 (exit "$ac_status"); }; }; then
24206 cf_cv_header_stdbool_h=1
24208 echo "$as_me: failed program was:" >&5
24209 cat "conftest.$ac_ext" >&5
24210 cf_cv_header_stdbool_h=0
24212 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24214 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24217 if test "$cf_cv_header_stdbool_h" = 1
24218 then echo "$as_me:24218: result: yes" >&5
24219 echo "${ECHO_T}yes" >&6
24220 else echo "$as_me:24220: result: no" >&5
24221 echo "${ECHO_T}no" >&6
24224 echo "$as_me:24224: checking for builtin bool type" >&5
24225 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
24227 if test "${cf_cv_cc_bool_type+set}" = set; then
24228 echo $ECHO_N "(cached) $ECHO_C" >&6
24231 cat >"conftest.$ac_ext" <<_ACEOF
24232 #line 24232 "configure"
24233 #include "confdefs.h"
24236 #include <sys/types.h>
24246 rm -f "conftest.$ac_objext"
24247 if { (eval echo "$as_me:24247: \"$ac_compile\"") >&5
24248 (eval $ac_compile) 2>&5
24250 echo "$as_me:24250: \$? = $ac_status" >&5
24251 (exit "$ac_status"); } &&
24252 { ac_try='test -s "conftest.$ac_objext"'
24253 { (eval echo "$as_me:24253: \"$ac_try\"") >&5
24254 (eval $ac_try) 2>&5
24256 echo "$as_me:24256: \$? = $ac_status" >&5
24257 (exit "$ac_status"); }; }; then
24258 cf_cv_cc_bool_type=1
24260 echo "$as_me: failed program was:" >&5
24261 cat "conftest.$ac_ext" >&5
24262 cf_cv_cc_bool_type=0
24264 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24268 if test "$cf_cv_cc_bool_type" = 1
24269 then echo "$as_me:24269: result: yes" >&5
24270 echo "${ECHO_T}yes" >&6
24271 else echo "$as_me:24271: result: no" >&5
24272 echo "${ECHO_T}no" >&6
24275 # Check for C++ compiler characteristics (and ensure that it's there!)
24276 if test -n "$CXX" ; then
24278 ac_cpp='$CXXCPP $CPPFLAGS'
24279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
24280 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
24281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24282 ac_main_return="return"
24284 if test -n "$GXX" ; then
24287 LIBS="$LIBS $CXXLIBS"
24288 echo "$as_me:24288: checking if we already have C++ library" >&5
24289 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
24290 cat >"conftest.$ac_ext" <<_ACEOF
24291 #line 24291 "configure"
24292 #include "confdefs.h"
24294 #include <iostream>
24299 std::cout << "Hello World!" << std::endl;
24304 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24305 if { (eval echo "$as_me:24305: \"$ac_link\"") >&5
24306 (eval $ac_link) 2>&5
24308 echo "$as_me:24308: \$? = $ac_status" >&5
24309 (exit "$ac_status"); } &&
24310 { ac_try='test -s "conftest$ac_exeext"'
24311 { (eval echo "$as_me:24311: \"$ac_try\"") >&5
24312 (eval $ac_try) 2>&5
24314 echo "$as_me:24314: \$? = $ac_status" >&5
24315 (exit "$ac_status"); }; }; then
24316 cf_have_libstdcpp=yes
24318 echo "$as_me: failed program was:" >&5
24319 cat "conftest.$ac_ext" >&5
24320 cf_have_libstdcpp=no
24322 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24323 echo "$as_me:24323: result: $cf_have_libstdcpp" >&5
24324 echo "${ECHO_T}$cf_have_libstdcpp" >&6
24327 if test "$cf_have_libstdcpp" != yes
24329 case "$cf_cv_system_name" in
24331 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
24332 cf_stdcpp_libname=stdcpp
24334 cf_stdcpp_libname=stdc++
24338 cf_stdcpp_libname=stdc++
24342 echo "$as_me:24342: checking for library $cf_stdcpp_libname" >&5
24343 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
24344 if test "${cf_cv_libstdcpp+set}" = set; then
24345 echo $ECHO_N "(cached) $ECHO_C" >&6
24349 LIBS="$LIBS $CXXLIBS"
24351 cf_add_libs="$LIBS"
24354 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24355 # filter duplicates
24356 for cf_add_1lib in $cf_add_0lib; do
24357 for cf_add_2lib in $cf_add_libs; do
24358 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24363 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24365 LIBS="$cf_add_libs"
24367 cat >"conftest.$ac_ext" <<_ACEOF
24368 #line 24368 "configure"
24369 #include "confdefs.h"
24371 #include <iostream>
24376 std::cout << "Hello World!" << std::endl;
24381 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24382 if { (eval echo "$as_me:24382: \"$ac_link\"") >&5
24383 (eval $ac_link) 2>&5
24385 echo "$as_me:24385: \$? = $ac_status" >&5
24386 (exit "$ac_status"); } &&
24387 { ac_try='test -s "conftest$ac_exeext"'
24388 { (eval echo "$as_me:24388: \"$ac_try\"") >&5
24389 (eval $ac_try) 2>&5
24391 echo "$as_me:24391: \$? = $ac_status" >&5
24392 (exit "$ac_status"); }; }; then
24393 cf_cv_libstdcpp=yes
24395 echo "$as_me: failed program was:" >&5
24396 cat "conftest.$ac_ext" >&5
24399 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24403 echo "$as_me:24403: result: $cf_cv_libstdcpp" >&5
24404 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
24405 test "$cf_cv_libstdcpp" = yes && {
24406 cf_add_libs="$CXXLIBS"
24409 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24410 # filter duplicates
24411 for cf_add_1lib in $cf_add_0lib; do
24412 for cf_add_2lib in $cf_add_libs; do
24413 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24418 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24420 CXXLIBS="$cf_add_libs"
24425 echo "$as_me:24425: checking whether $CXX understands -c and -o together" >&5
24426 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
24427 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
24428 echo $ECHO_N "(cached) $ECHO_C" >&6
24431 cat > conftest.$ac_ext <<CF_EOF
24434 ${cf_cv_main_return:-return}(0);
24437 # We do the test twice because some compilers refuse to overwrite an
24438 # existing .o file with -o, though they will create one.
24439 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
24440 if { (eval echo "$as_me:24440: \"$ac_try\"") >&5
24441 (eval $ac_try) 2>&5
24443 echo "$as_me:24443: \$? = $ac_status" >&5
24444 (exit "$ac_status"); } &&
24445 test -f conftest2.$ac_objext && { (eval echo "$as_me:24445: \"$ac_try\"") >&5
24446 (eval $ac_try) 2>&5
24448 echo "$as_me:24448: \$? = $ac_status" >&5
24449 (exit "$ac_status"); };
24451 eval cf_cv_prog_CXX_c_o=yes
24453 eval cf_cv_prog_CXX_c_o=no
24458 if test "$cf_cv_prog_CXX_c_o" = yes; then
24459 echo "$as_me:24459: result: yes" >&5
24460 echo "${ECHO_T}yes" >&6
24462 echo "$as_me:24462: result: no" >&5
24463 echo "${ECHO_T}no" >&6
24466 case "$GXX_VERSION" in
24467 (1.*|2.[0-6]*|[1-9][0-9].*)
24472 cf_cxx_library=unknown
24473 case "$cf_cv_system_name" in
24481 if test "$GXX" = yes; then
24482 echo "$as_me:24482: checking for lib$cf_gpp_libname" >&5
24483 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
24486 cf_add_libs="$LIBS"
24489 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24490 # filter duplicates
24491 for cf_add_1lib in $cf_add_0lib; do
24492 for cf_add_2lib in $cf_add_libs; do
24493 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24498 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24500 LIBS="$cf_add_libs"
24502 cat >"conftest.$ac_ext" <<_ACEOF
24503 #line 24503 "configure"
24504 #include "confdefs.h"
24506 #include <$cf_gpp_libname/builtin.h>
24511 two_arg_error_handler_t foo2 = lib_error_handler
24516 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24517 if { (eval echo "$as_me:24517: \"$ac_link\"") >&5
24518 (eval $ac_link) 2>&5
24520 echo "$as_me:24520: \$? = $ac_status" >&5
24521 (exit "$ac_status"); } &&
24522 { ac_try='test -s "conftest$ac_exeext"'
24523 { (eval echo "$as_me:24523: \"$ac_try\"") >&5
24524 (eval $ac_try) 2>&5
24526 echo "$as_me:24526: \$? = $ac_status" >&5
24527 (exit "$ac_status"); }; }; then
24530 cf_add_libs="$CXXLIBS"
24533 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24534 # filter duplicates
24535 for cf_add_1lib in $cf_add_0lib; do
24536 for cf_add_2lib in $cf_add_libs; do
24537 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24542 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24544 CXXLIBS="$cf_add_libs"
24546 if test "$cf_gpp_libname" = cpp ; then
24548 cat >>confdefs.h <<\EOF
24549 #define HAVE_GPP_BUILTIN_H 1
24554 cat >>confdefs.h <<\EOF
24555 #define HAVE_GXX_BUILTIN_H 1
24560 echo "$as_me: failed program was:" >&5
24561 cat "conftest.$ac_ext" >&5
24562 cat >"conftest.$ac_ext" <<_ACEOF
24563 #line 24563 "configure"
24564 #include "confdefs.h"
24566 #include <builtin.h>
24571 two_arg_error_handler_t foo2 = lib_error_handler
24576 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24577 if { (eval echo "$as_me:24577: \"$ac_link\"") >&5
24578 (eval $ac_link) 2>&5
24580 echo "$as_me:24580: \$? = $ac_status" >&5
24581 (exit "$ac_status"); } &&
24582 { ac_try='test -s "conftest$ac_exeext"'
24583 { (eval echo "$as_me:24583: \"$ac_try\"") >&5
24584 (eval $ac_try) 2>&5
24586 echo "$as_me:24586: \$? = $ac_status" >&5
24587 (exit "$ac_status"); }; }; then
24590 cf_add_libs="$CXXLIBS"
24593 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24594 # filter duplicates
24595 for cf_add_1lib in $cf_add_0lib; do
24596 for cf_add_2lib in $cf_add_libs; do
24597 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24602 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24604 CXXLIBS="$cf_add_libs"
24606 cat >>confdefs.h <<\EOF
24607 #define HAVE_BUILTIN_H 1
24611 echo "$as_me: failed program was:" >&5
24612 cat "conftest.$ac_ext" >&5
24615 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24617 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24619 echo "$as_me:24619: result: $cf_cxx_library" >&5
24620 echo "${ECHO_T}$cf_cxx_library" >&6
24630 ac_cpp='$CXXCPP $CPPFLAGS'
24631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
24632 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
24633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24634 ac_main_return="return"
24635 echo "$as_me:24635: checking how to run the C++ preprocessor" >&5
24636 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
24637 if test -z "$CXXCPP"; then
24638 if test "${ac_cv_prog_CXXCPP+set}" = set; then
24639 echo $ECHO_N "(cached) $ECHO_C" >&6
24641 # Double quotes because CXXCPP needs to be expanded
24642 for CXXCPP in "$CXX -E" "/lib/cpp"
24644 ac_preproc_ok=false
24645 for ac_cxx_preproc_warn_flag in '' yes
24647 # Use a header file that comes with gcc, so configuring glibc
24648 # with a fresh cross-compiler works.
24649 # On the NeXT, cc -E runs the code through the compiler's parser,
24650 # not just through cpp. "Syntax error" is here to catch this case.
24651 cat >"conftest.$ac_ext" <<_ACEOF
24652 #line 24652 "configure"
24653 #include "confdefs.h"
24654 #include <assert.h>
24657 if { (eval echo "$as_me:24657: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24658 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24660 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24662 cat conftest.err >&5
24663 echo "$as_me:24663: \$? = $ac_status" >&5
24664 (exit "$ac_status"); } >/dev/null; then
24665 if test -s conftest.err; then
24666 ac_cpp_err=$ac_cxx_preproc_warn_flag
24673 if test -z "$ac_cpp_err"; then
24676 echo "$as_me: failed program was:" >&5
24677 cat "conftest.$ac_ext" >&5
24678 # Broken: fails on valid input.
24681 rm -f conftest.err "conftest.$ac_ext"
24683 # OK, works on sane cases. Now check whether non-existent headers
24684 # can be detected and how.
24685 cat >"conftest.$ac_ext" <<_ACEOF
24686 #line 24686 "configure"
24687 #include "confdefs.h"
24688 #include <ac_nonexistent.h>
24690 if { (eval echo "$as_me:24690: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24691 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24693 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24695 cat conftest.err >&5
24696 echo "$as_me:24696: \$? = $ac_status" >&5
24697 (exit "$ac_status"); } >/dev/null; then
24698 if test -s conftest.err; then
24699 ac_cpp_err=$ac_cxx_preproc_warn_flag
24706 if test -z "$ac_cpp_err"; then
24707 # Broken: success on invalid input.
24710 echo "$as_me: failed program was:" >&5
24711 cat "conftest.$ac_ext" >&5
24712 # Passes both tests.
24716 rm -f conftest.err "conftest.$ac_ext"
24719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24720 rm -f conftest.err "conftest.$ac_ext"
24721 if $ac_preproc_ok; then
24726 ac_cv_prog_CXXCPP=$CXXCPP
24729 CXXCPP=$ac_cv_prog_CXXCPP
24731 ac_cv_prog_CXXCPP=$CXXCPP
24733 echo "$as_me:24733: result: $CXXCPP" >&5
24734 echo "${ECHO_T}$CXXCPP" >&6
24735 ac_preproc_ok=false
24736 for ac_cxx_preproc_warn_flag in '' yes
24738 # Use a header file that comes with gcc, so configuring glibc
24739 # with a fresh cross-compiler works.
24740 # On the NeXT, cc -E runs the code through the compiler's parser,
24741 # not just through cpp. "Syntax error" is here to catch this case.
24742 cat >"conftest.$ac_ext" <<_ACEOF
24743 #line 24743 "configure"
24744 #include "confdefs.h"
24745 #include <assert.h>
24748 if { (eval echo "$as_me:24748: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24749 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24751 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24753 cat conftest.err >&5
24754 echo "$as_me:24754: \$? = $ac_status" >&5
24755 (exit "$ac_status"); } >/dev/null; then
24756 if test -s conftest.err; then
24757 ac_cpp_err=$ac_cxx_preproc_warn_flag
24764 if test -z "$ac_cpp_err"; then
24767 echo "$as_me: failed program was:" >&5
24768 cat "conftest.$ac_ext" >&5
24769 # Broken: fails on valid input.
24772 rm -f conftest.err "conftest.$ac_ext"
24774 # OK, works on sane cases. Now check whether non-existent headers
24775 # can be detected and how.
24776 cat >"conftest.$ac_ext" <<_ACEOF
24777 #line 24777 "configure"
24778 #include "confdefs.h"
24779 #include <ac_nonexistent.h>
24781 if { (eval echo "$as_me:24781: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24782 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24784 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24786 cat conftest.err >&5
24787 echo "$as_me:24787: \$? = $ac_status" >&5
24788 (exit "$ac_status"); } >/dev/null; then
24789 if test -s conftest.err; then
24790 ac_cpp_err=$ac_cxx_preproc_warn_flag
24797 if test -z "$ac_cpp_err"; then
24798 # Broken: success on invalid input.
24801 echo "$as_me: failed program was:" >&5
24802 cat "conftest.$ac_ext" >&5
24803 # Passes both tests.
24807 rm -f conftest.err "conftest.$ac_ext"
24810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24811 rm -f conftest.err "conftest.$ac_ext"
24812 if $ac_preproc_ok; then
24815 { { echo "$as_me:24815: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
24816 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
24817 { (exit 1); exit 1; }; }
24821 ac_cpp='$CXXCPP $CPPFLAGS'
24822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
24823 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
24824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24825 ac_main_return="return"
24827 for ac_header in typeinfo
24829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24830 echo "$as_me:24830: checking for $ac_header" >&5
24831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24833 echo $ECHO_N "(cached) $ECHO_C" >&6
24835 cat >"conftest.$ac_ext" <<_ACEOF
24836 #line 24836 "configure"
24837 #include "confdefs.h"
24838 #include <$ac_header>
24840 if { (eval echo "$as_me:24840: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24841 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24843 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24845 cat conftest.err >&5
24846 echo "$as_me:24846: \$? = $ac_status" >&5
24847 (exit "$ac_status"); } >/dev/null; then
24848 if test -s conftest.err; then
24849 ac_cpp_err=$ac_cxx_preproc_warn_flag
24856 if test -z "$ac_cpp_err"; then
24857 eval "$as_ac_Header=yes"
24859 echo "$as_me: failed program was:" >&5
24860 cat "conftest.$ac_ext" >&5
24861 eval "$as_ac_Header=no"
24863 rm -f conftest.err "conftest.$ac_ext"
24865 echo "$as_me:24865: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
24866 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
24867 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
24868 cat >>confdefs.h <<EOF
24869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24875 for ac_header in iostream
24877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24878 echo "$as_me:24878: checking for $ac_header" >&5
24879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24881 echo $ECHO_N "(cached) $ECHO_C" >&6
24883 cat >"conftest.$ac_ext" <<_ACEOF
24884 #line 24884 "configure"
24885 #include "confdefs.h"
24886 #include <$ac_header>
24888 if { (eval echo "$as_me:24888: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24889 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24891 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24893 cat conftest.err >&5
24894 echo "$as_me:24894: \$? = $ac_status" >&5
24895 (exit "$ac_status"); } >/dev/null; then
24896 if test -s conftest.err; then
24897 ac_cpp_err=$ac_cxx_preproc_warn_flag
24904 if test -z "$ac_cpp_err"; then
24905 eval "$as_ac_Header=yes"
24907 echo "$as_me: failed program was:" >&5
24908 cat "conftest.$ac_ext" >&5
24909 eval "$as_ac_Header=no"
24911 rm -f conftest.err "conftest.$ac_ext"
24913 echo "$as_me:24913: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
24914 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
24915 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
24916 cat >>confdefs.h <<EOF
24917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24923 if test x"$ac_cv_header_iostream" = xyes ; then
24924 echo "$as_me:24924: checking if iostream uses std-namespace" >&5
24925 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
24926 cat >"conftest.$ac_ext" <<_ACEOF
24927 #line 24927 "configure"
24928 #include "confdefs.h"
24930 #include <iostream>
24937 cerr << "testing" << endl;
24943 rm -f "conftest.$ac_objext"
24944 if { (eval echo "$as_me:24944: \"$ac_compile\"") >&5
24945 (eval $ac_compile) 2>&5
24947 echo "$as_me:24947: \$? = $ac_status" >&5
24948 (exit "$ac_status"); } &&
24949 { ac_try='test -s "conftest.$ac_objext"'
24950 { (eval echo "$as_me:24950: \"$ac_try\"") >&5
24951 (eval $ac_try) 2>&5
24953 echo "$as_me:24953: \$? = $ac_status" >&5
24954 (exit "$ac_status"); }; }; then
24955 cf_iostream_namespace=yes
24957 echo "$as_me: failed program was:" >&5
24958 cat "conftest.$ac_ext" >&5
24959 cf_iostream_namespace=no
24961 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24962 echo "$as_me:24962: result: $cf_iostream_namespace" >&5
24963 echo "${ECHO_T}$cf_iostream_namespace" >&6
24964 if test "$cf_iostream_namespace" = yes ; then
24966 cat >>confdefs.h <<\EOF
24967 #define IOSTREAM_NAMESPACE 1
24973 echo "$as_me:24973: checking if we should include stdbool.h" >&5
24974 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
24976 if test "${cf_cv_header_stdbool_h+set}" = set; then
24977 echo $ECHO_N "(cached) $ECHO_C" >&6
24980 cat >"conftest.$ac_ext" <<_ACEOF
24981 #line 24981 "configure"
24982 #include "confdefs.h"
24992 rm -f "conftest.$ac_objext"
24993 if { (eval echo "$as_me:24993: \"$ac_compile\"") >&5
24994 (eval $ac_compile) 2>&5
24996 echo "$as_me:24996: \$? = $ac_status" >&5
24997 (exit "$ac_status"); } &&
24998 { ac_try='test -s "conftest.$ac_objext"'
24999 { (eval echo "$as_me:24999: \"$ac_try\"") >&5
25000 (eval $ac_try) 2>&5
25002 echo "$as_me:25002: \$? = $ac_status" >&5
25003 (exit "$ac_status"); }; }; then
25004 cf_cv_header_stdbool_h=0
25006 echo "$as_me: failed program was:" >&5
25007 cat "conftest.$ac_ext" >&5
25008 cat >"conftest.$ac_ext" <<_ACEOF
25009 #line 25009 "configure"
25010 #include "confdefs.h"
25013 #include <stdbool.h>
25024 rm -f "conftest.$ac_objext"
25025 if { (eval echo "$as_me:25025: \"$ac_compile\"") >&5
25026 (eval $ac_compile) 2>&5
25028 echo "$as_me:25028: \$? = $ac_status" >&5
25029 (exit "$ac_status"); } &&
25030 { ac_try='test -s "conftest.$ac_objext"'
25031 { (eval echo "$as_me:25031: \"$ac_try\"") >&5
25032 (eval $ac_try) 2>&5
25034 echo "$as_me:25034: \$? = $ac_status" >&5
25035 (exit "$ac_status"); }; }; then
25036 cf_cv_header_stdbool_h=1
25038 echo "$as_me: failed program was:" >&5
25039 cat "conftest.$ac_ext" >&5
25040 cf_cv_header_stdbool_h=0
25042 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25044 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25047 if test "$cf_cv_header_stdbool_h" = 1
25048 then echo "$as_me:25048: result: yes" >&5
25049 echo "${ECHO_T}yes" >&6
25050 else echo "$as_me:25050: result: no" >&5
25051 echo "${ECHO_T}no" >&6
25054 echo "$as_me:25054: checking for builtin bool type" >&5
25055 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25057 if test "${cf_cv_builtin_bool+set}" = set; then
25058 echo $ECHO_N "(cached) $ECHO_C" >&6
25061 cat >"conftest.$ac_ext" <<_ACEOF
25062 #line 25062 "configure"
25063 #include "confdefs.h"
25066 #include <sys/types.h>
25076 rm -f "conftest.$ac_objext"
25077 if { (eval echo "$as_me:25077: \"$ac_compile\"") >&5
25078 (eval $ac_compile) 2>&5
25080 echo "$as_me:25080: \$? = $ac_status" >&5
25081 (exit "$ac_status"); } &&
25082 { ac_try='test -s "conftest.$ac_objext"'
25083 { (eval echo "$as_me:25083: \"$ac_try\"") >&5
25084 (eval $ac_try) 2>&5
25086 echo "$as_me:25086: \$? = $ac_status" >&5
25087 (exit "$ac_status"); }; }; then
25088 cf_cv_builtin_bool=1
25090 echo "$as_me: failed program was:" >&5
25091 cat "conftest.$ac_ext" >&5
25092 cf_cv_builtin_bool=0
25094 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25098 if test "$cf_cv_builtin_bool" = 1
25099 then echo "$as_me:25099: result: yes" >&5
25100 echo "${ECHO_T}yes" >&6
25101 else echo "$as_me:25101: result: no" >&5
25102 echo "${ECHO_T}no" >&6
25105 echo "$as_me:25105: checking for bool" >&5
25106 echo $ECHO_N "checking for bool... $ECHO_C" >&6
25107 if test "${ac_cv_type_bool+set}" = set; then
25108 echo $ECHO_N "(cached) $ECHO_C" >&6
25110 cat >"conftest.$ac_ext" <<_ACEOF
25111 #line 25111 "configure"
25112 #include "confdefs.h"
25114 #include <stdlib.h>
25117 #if defined(__cplusplus)
25119 #ifdef HAVE_GXX_BUILTIN_H
25120 #include <g++/builtin.h>
25121 #elif HAVE_GPP_BUILTIN_H
25122 #include <gpp/builtin.h>
25123 #elif HAVE_BUILTIN_H
25124 #include <builtin.h>
25129 #if $cf_cv_header_stdbool_h
25130 #include <stdbool.h>
25146 rm -f "conftest.$ac_objext"
25147 if { (eval echo "$as_me:25147: \"$ac_compile\"") >&5
25148 (eval $ac_compile) 2>&5
25150 echo "$as_me:25150: \$? = $ac_status" >&5
25151 (exit "$ac_status"); } &&
25152 { ac_try='test -s "conftest.$ac_objext"'
25153 { (eval echo "$as_me:25153: \"$ac_try\"") >&5
25154 (eval $ac_try) 2>&5
25156 echo "$as_me:25156: \$? = $ac_status" >&5
25157 (exit "$ac_status"); }; }; then
25158 ac_cv_type_bool=yes
25160 echo "$as_me: failed program was:" >&5
25161 cat "conftest.$ac_ext" >&5
25164 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25166 echo "$as_me:25166: result: $ac_cv_type_bool" >&5
25167 echo "${ECHO_T}$ac_cv_type_bool" >&6
25169 echo "$as_me:25169: checking size of bool" >&5
25170 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
25171 if test "${ac_cv_sizeof_bool+set}" = set; then
25172 echo $ECHO_N "(cached) $ECHO_C" >&6
25174 if test "$ac_cv_type_bool" = yes; then
25175 if test "$cross_compiling" = yes; then
25176 # Depending upon the size, compute the lo and hi bounds.
25177 cat >"conftest.$ac_ext" <<_ACEOF
25178 #line 25178 "configure"
25179 #include "confdefs.h"
25181 #include <stdlib.h>
25184 #if defined(__cplusplus)
25186 #ifdef HAVE_GXX_BUILTIN_H
25187 #include <g++/builtin.h>
25188 #elif HAVE_GPP_BUILTIN_H
25189 #include <gpp/builtin.h>
25190 #elif HAVE_BUILTIN_H
25191 #include <builtin.h>
25196 #if $cf_cv_header_stdbool_h
25197 #include <stdbool.h>
25205 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
25210 rm -f "conftest.$ac_objext"
25211 if { (eval echo "$as_me:25211: \"$ac_compile\"") >&5
25212 (eval $ac_compile) 2>&5
25214 echo "$as_me:25214: \$? = $ac_status" >&5
25215 (exit "$ac_status"); } &&
25216 { ac_try='test -s "conftest.$ac_objext"'
25217 { (eval echo "$as_me:25217: \"$ac_try\"") >&5
25218 (eval $ac_try) 2>&5
25220 echo "$as_me:25220: \$? = $ac_status" >&5
25221 (exit "$ac_status"); }; }; then
25224 cat >"conftest.$ac_ext" <<_ACEOF
25225 #line 25225 "configure"
25226 #include "confdefs.h"
25228 #include <stdlib.h>
25231 #if defined(__cplusplus)
25233 #ifdef HAVE_GXX_BUILTIN_H
25234 #include <g++/builtin.h>
25235 #elif HAVE_GPP_BUILTIN_H
25236 #include <gpp/builtin.h>
25237 #elif HAVE_BUILTIN_H
25238 #include <builtin.h>
25243 #if $cf_cv_header_stdbool_h
25244 #include <stdbool.h>
25252 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
25257 rm -f "conftest.$ac_objext"
25258 if { (eval echo "$as_me:25258: \"$ac_compile\"") >&5
25259 (eval $ac_compile) 2>&5
25261 echo "$as_me:25261: \$? = $ac_status" >&5
25262 (exit "$ac_status"); } &&
25263 { ac_try='test -s "conftest.$ac_objext"'
25264 { (eval echo "$as_me:25264: \"$ac_try\"") >&5
25265 (eval $ac_try) 2>&5
25267 echo "$as_me:25267: \$? = $ac_status" >&5
25268 (exit "$ac_status"); }; }; then
25269 ac_hi=$ac_mid; break
25271 echo "$as_me: failed program was:" >&5
25272 cat "conftest.$ac_ext" >&5
25273 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
25275 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25278 echo "$as_me: failed program was:" >&5
25279 cat "conftest.$ac_ext" >&5
25282 cat >"conftest.$ac_ext" <<_ACEOF
25283 #line 25283 "configure"
25284 #include "confdefs.h"
25286 #include <stdlib.h>
25289 #if defined(__cplusplus)
25291 #ifdef HAVE_GXX_BUILTIN_H
25292 #include <g++/builtin.h>
25293 #elif HAVE_GPP_BUILTIN_H
25294 #include <gpp/builtin.h>
25295 #elif HAVE_BUILTIN_H
25296 #include <builtin.h>
25301 #if $cf_cv_header_stdbool_h
25302 #include <stdbool.h>
25310 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
25315 rm -f "conftest.$ac_objext"
25316 if { (eval echo "$as_me:25316: \"$ac_compile\"") >&5
25317 (eval $ac_compile) 2>&5
25319 echo "$as_me:25319: \$? = $ac_status" >&5
25320 (exit "$ac_status"); } &&
25321 { ac_try='test -s "conftest.$ac_objext"'
25322 { (eval echo "$as_me:25322: \"$ac_try\"") >&5
25323 (eval $ac_try) 2>&5
25325 echo "$as_me:25325: \$? = $ac_status" >&5
25326 (exit "$ac_status"); }; }; then
25327 ac_lo=$ac_mid; break
25329 echo "$as_me: failed program was:" >&5
25330 cat "conftest.$ac_ext" >&5
25331 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
25333 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25336 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25337 # Binary search between lo and hi bounds.
25338 while test "x$ac_lo" != "x$ac_hi"; do
25339 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
25340 cat >"conftest.$ac_ext" <<_ACEOF
25341 #line 25341 "configure"
25342 #include "confdefs.h"
25344 #include <stdlib.h>
25347 #if defined(__cplusplus)
25349 #ifdef HAVE_GXX_BUILTIN_H
25350 #include <g++/builtin.h>
25351 #elif HAVE_GPP_BUILTIN_H
25352 #include <gpp/builtin.h>
25353 #elif HAVE_BUILTIN_H
25354 #include <builtin.h>
25359 #if $cf_cv_header_stdbool_h
25360 #include <stdbool.h>
25368 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
25373 rm -f "conftest.$ac_objext"
25374 if { (eval echo "$as_me:25374: \"$ac_compile\"") >&5
25375 (eval $ac_compile) 2>&5
25377 echo "$as_me:25377: \$? = $ac_status" >&5
25378 (exit "$ac_status"); } &&
25379 { ac_try='test -s "conftest.$ac_objext"'
25380 { (eval echo "$as_me:25380: \"$ac_try\"") >&5
25381 (eval $ac_try) 2>&5
25383 echo "$as_me:25383: \$? = $ac_status" >&5
25384 (exit "$ac_status"); }; }; then
25387 echo "$as_me: failed program was:" >&5
25388 cat "conftest.$ac_ext" >&5
25389 ac_lo=`expr "$ac_mid" + 1`
25391 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25393 ac_cv_sizeof_bool=$ac_lo
25395 if test "$cross_compiling" = yes; then
25396 { { echo "$as_me:25396: error: cannot run test program while cross compiling" >&5
25397 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
25398 { (exit 1); exit 1; }; }
25400 cat >"conftest.$ac_ext" <<_ACEOF
25401 #line 25401 "configure"
25402 #include "confdefs.h"
25404 #include <stdlib.h>
25407 #if defined(__cplusplus)
25409 #ifdef HAVE_GXX_BUILTIN_H
25410 #include <g++/builtin.h>
25411 #elif HAVE_GPP_BUILTIN_H
25412 #include <gpp/builtin.h>
25413 #elif HAVE_BUILTIN_H
25414 #include <builtin.h>
25419 #if $cf_cv_header_stdbool_h
25420 #include <stdbool.h>
25428 FILE *f = fopen ("conftest.val", "w");
25430 $ac_main_return (1);
25431 fprintf (f, "%ld", (long)(sizeof (bool)));
25437 rm -f "conftest$ac_exeext"
25438 if { (eval echo "$as_me:25438: \"$ac_link\"") >&5
25439 (eval $ac_link) 2>&5
25441 echo "$as_me:25441: \$? = $ac_status" >&5
25442 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
25443 { (eval echo "$as_me:25443: \"$ac_try\"") >&5
25444 (eval $ac_try) 2>&5
25446 echo "$as_me:25446: \$? = $ac_status" >&5
25447 (exit "$ac_status"); }; }; then
25448 ac_cv_sizeof_bool=`cat conftest.val`
25450 echo "$as_me: program exited with status $ac_status" >&5
25451 echo "$as_me: failed program was:" >&5
25452 cat "conftest.$ac_ext" >&5
25454 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
25459 ac_cv_sizeof_bool=0
25462 echo "$as_me:25462: result: $ac_cv_sizeof_bool" >&5
25463 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
25464 cat >>confdefs.h <<EOF
25465 #define SIZEOF_BOOL $ac_cv_sizeof_bool
25468 echo "$as_me:25468: checking for type of bool" >&5
25469 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
25470 if test "${cf_cv_type_of_bool+set}" = set; then
25471 echo $ECHO_N "(cached) $ECHO_C" >&6
25475 if test "$cross_compiling" = yes; then
25477 case x$ac_cv_sizeof_bool in
25478 (x1) cf_cv_type_of_bool="unsigned char";;
25479 (x2) cf_cv_type_of_bool="unsigned short";;
25480 (x4) cf_cv_type_of_bool="unsigned int";;
25481 (x8) cf_cv_type_of_bool="unsigned long";;
25482 (*) cf_cv_type_of_bool=unknown;;
25486 cat >"conftest.$ac_ext" <<_ACEOF
25487 #line 25487 "configure"
25488 #include "confdefs.h"
25490 #include <stdlib.h>
25493 #if defined(__cplusplus)
25495 #ifdef HAVE_GXX_BUILTIN_H
25496 #include <g++/builtin.h>
25497 #elif HAVE_GPP_BUILTIN_H
25498 #include <gpp/builtin.h>
25499 #elif HAVE_BUILTIN_H
25500 #include <builtin.h>
25505 #if $cf_cv_header_stdbool_h
25506 #include <stdbool.h>
25513 FILE *fp = fopen("cf_test.out", "w");
25516 if ((bool)(-x) >= 0)
25517 fputs("unsigned ", fp);
25518 if (sizeof(x) == sizeof(int)) fputs("int", fp);
25519 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
25520 else if (sizeof(x) == sizeof(short))fputs("short",fp);
25521 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
25524 ${cf_cv_main_return:-return}(0);
25528 rm -f "conftest$ac_exeext"
25529 if { (eval echo "$as_me:25529: \"$ac_link\"") >&5
25530 (eval $ac_link) 2>&5
25532 echo "$as_me:25532: \$? = $ac_status" >&5
25533 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
25534 { (eval echo "$as_me:25534: \"$ac_try\"") >&5
25535 (eval $ac_try) 2>&5
25537 echo "$as_me:25537: \$? = $ac_status" >&5
25538 (exit "$ac_status"); }; }; then
25539 cf_cv_type_of_bool=`cat cf_test.out`
25540 if test -z "$cf_cv_type_of_bool"; then
25541 cf_cv_type_of_bool=unknown
25544 echo "$as_me: program exited with status $ac_status" >&5
25545 echo "$as_me: failed program was:" >&5
25546 cat "conftest.$ac_ext" >&5
25547 cf_cv_type_of_bool=unknown
25549 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
25554 echo "$as_me:25554: result: $cf_cv_type_of_bool" >&5
25555 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
25557 if test "$cf_cv_type_of_bool" = unknown ; then
25558 case .$NCURSES_BOOL in
25559 (.auto|.) NCURSES_BOOL=unsigned;;
25561 { echo "$as_me:25561: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
25562 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
25563 cf_cv_type_of_bool=$NCURSES_BOOL
25566 echo "$as_me:25566: checking for special defines needed for etip.h" >&5
25567 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
25568 cf_save_CXXFLAGS="$CXXFLAGS"
25571 # etip.h includes ncurses.h which includes ncurses_dll.h
25572 # But ncurses_dll.h is generated - fix here.
25573 test -d include || mkdir include
25574 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
25576 for cf_math in "" MATH_H
25578 for cf_excp in "" MATH_EXCEPTION
25580 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
25581 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
25582 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
25583 cat >"conftest.$ac_ext" <<_ACEOF
25584 #line 25584 "configure"
25585 #include "confdefs.h"
25587 #include <etip.h.in>
25597 rm -f "conftest.$ac_objext"
25598 if { (eval echo "$as_me:25598: \"$ac_compile\"") >&5
25599 (eval $ac_compile) 2>&5
25601 echo "$as_me:25601: \$? = $ac_status" >&5
25602 (exit "$ac_status"); } &&
25603 { ac_try='test -s "conftest.$ac_objext"'
25604 { (eval echo "$as_me:25604: \"$ac_try\"") >&5
25605 (eval $ac_try) 2>&5
25607 echo "$as_me:25607: \$? = $ac_status" >&5
25608 (exit "$ac_status"); }; }; then
25610 test -n "$cf_math" && cat >>confdefs.h <<EOF
25611 #define ETIP_NEEDS_${cf_math} 1
25614 test -n "$cf_excp" && cat >>confdefs.h <<EOF
25615 #define ETIP_NEEDS_${cf_excp} 1
25618 cf_result="$cf_math $cf_excp"
25622 echo "$as_me: failed program was:" >&5
25623 cat "conftest.$ac_ext" >&5
25625 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25628 echo "$as_me:25628: result: $cf_result" >&5
25629 echo "${ECHO_T}$cf_result" >&6
25630 CXXFLAGS="$cf_save_CXXFLAGS"
25632 if test -n "$CXX"; then
25633 echo "$as_me:25633: checking if $CXX accepts parameter initialization" >&5
25634 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
25635 if test "${cf_cv_cpp_param_init+set}" = set; then
25636 echo $ECHO_N "(cached) $ECHO_C" >&6
25640 ac_cpp='$CXXCPP $CPPFLAGS'
25641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25642 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25644 ac_main_return="return"
25646 if test "$cross_compiling" = yes; then
25647 cf_cv_cpp_param_init=unknown
25649 cat >"conftest.$ac_ext" <<_ACEOF
25650 #line 25650 "configure"
25651 #include "confdefs.h"
25661 TEST::TEST(int x = 1) // some compilers do not like second initializer
25668 rm -f "conftest$ac_exeext"
25669 if { (eval echo "$as_me:25669: \"$ac_link\"") >&5
25670 (eval $ac_link) 2>&5
25672 echo "$as_me:25672: \$? = $ac_status" >&5
25673 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
25674 { (eval echo "$as_me:25674: \"$ac_try\"") >&5
25675 (eval $ac_try) 2>&5
25677 echo "$as_me:25677: \$? = $ac_status" >&5
25678 (exit "$ac_status"); }; }; then
25679 cf_cv_cpp_param_init=yes
25681 echo "$as_me: program exited with status $ac_status" >&5
25682 echo "$as_me: failed program was:" >&5
25683 cat "conftest.$ac_ext" >&5
25684 cf_cv_cpp_param_init=no
25686 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
25689 ac_cpp='$CXXCPP $CPPFLAGS'
25690 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25691 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25692 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25693 ac_main_return="return"
25696 echo "$as_me:25696: result: $cf_cv_cpp_param_init" >&5
25697 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
25699 test "$cf_cv_cpp_param_init" = yes &&
25700 cat >>confdefs.h <<\EOF
25701 #define CPP_HAS_PARAM_INIT 1
25704 if test -n "$CXX"; then
25706 echo "$as_me:25706: checking if $CXX accepts static_cast" >&5
25707 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
25708 if test "${cf_cv_cpp_static_cast+set}" = set; then
25709 echo $ECHO_N "(cached) $ECHO_C" >&6
25713 ac_cpp='$CXXCPP $CPPFLAGS'
25714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25715 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25717 ac_main_return="return"
25719 cat >"conftest.$ac_ext" <<_ACEOF
25720 #line 25720 "configure"
25721 #include "confdefs.h"
25726 NCursesPanel(int nlines,
25736 template<class T> class NCursesUserPanel : public NCursesPanel
25739 NCursesUserPanel (int nlines,
25743 const T* p_UserData = static_cast<T*>(0))
25744 : NCursesPanel (nlines, ncols, begin_y, begin_x)
25747 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
25751 virtual ~NCursesUserPanel() {};
25758 const char* p_UserData = static_cast<char*>(0)
25763 rm -f "conftest.$ac_objext"
25764 if { (eval echo "$as_me:25764: \"$ac_compile\"") >&5
25765 (eval $ac_compile) 2>&5
25767 echo "$as_me:25767: \$? = $ac_status" >&5
25768 (exit "$ac_status"); } &&
25769 { ac_try='test -s "conftest.$ac_objext"'
25770 { (eval echo "$as_me:25770: \"$ac_try\"") >&5
25771 (eval $ac_try) 2>&5
25773 echo "$as_me:25773: \$? = $ac_status" >&5
25774 (exit "$ac_status"); }; }; then
25775 cf_cv_cpp_static_cast=yes
25777 echo "$as_me: failed program was:" >&5
25778 cat "conftest.$ac_ext" >&5
25779 cf_cv_cpp_static_cast=no
25781 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25784 ac_cpp='$CXXCPP $CPPFLAGS'
25785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25786 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25788 ac_main_return="return"
25791 echo "$as_me:25791: result: $cf_cv_cpp_static_cast" >&5
25792 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
25796 test "$cf_cv_cpp_static_cast" = yes &&
25797 cat >>confdefs.h <<\EOF
25798 #define CPP_HAS_STATIC_CAST 1
25802 CXX_ARFLAGS='$(ARFLAGS)'
25803 case "$cf_cv_system_name" in
25805 if test "$GXX" != yes ; then
25807 CXX_ARFLAGS='-ar -o'
25811 CXXLDFLAGS="-u main"
25814 if test "$GXX" != yes ; then
25816 CXX_ARFLAGS='-xar -o'
25823 cf_cv_builtin_bool=1
25825 # Just because we are not configuring against C++ right now does not
25826 # mean that a user will not want to use C++. Some distributors disable
25827 # the C++ portion of this configuration as a shortcut (or just to avoid
25828 # compiling the demo in the c++ directory). So we need a reasonable
25829 # default for the 'bool' type.
25831 # Caveat: since the storage of the bool type is not standardized, it
25834 if test "$NCURSES_BOOL" != auto ; then
25835 cf_cv_type_of_bool=$NCURSES_BOOL
25836 cf_cv_header_stdbool_h=0
25838 if test "$cf_cv_header_stdbool_h" = 1 ; then
25840 echo "$as_me:25840: checking for bool" >&5
25841 echo $ECHO_N "checking for bool... $ECHO_C" >&6
25842 if test "${ac_cv_type_bool+set}" = set; then
25843 echo $ECHO_N "(cached) $ECHO_C" >&6
25845 cat >"conftest.$ac_ext" <<_ACEOF
25846 #line 25846 "configure"
25847 #include "confdefs.h"
25849 #include <stdlib.h>
25852 #if defined(__cplusplus)
25854 #ifdef HAVE_GXX_BUILTIN_H
25855 #include <g++/builtin.h>
25856 #elif HAVE_GPP_BUILTIN_H
25857 #include <gpp/builtin.h>
25858 #elif HAVE_BUILTIN_H
25859 #include <builtin.h>
25864 #if $cf_cv_header_stdbool_h
25865 #include <stdbool.h>
25881 rm -f "conftest.$ac_objext"
25882 if { (eval echo "$as_me:25882: \"$ac_compile\"") >&5
25883 (eval $ac_compile) 2>&5
25885 echo "$as_me:25885: \$? = $ac_status" >&5
25886 (exit "$ac_status"); } &&
25887 { ac_try='test -s "conftest.$ac_objext"'
25888 { (eval echo "$as_me:25888: \"$ac_try\"") >&5
25889 (eval $ac_try) 2>&5
25891 echo "$as_me:25891: \$? = $ac_status" >&5
25892 (exit "$ac_status"); }; }; then
25893 ac_cv_type_bool=yes
25895 echo "$as_me: failed program was:" >&5
25896 cat "conftest.$ac_ext" >&5
25899 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25901 echo "$as_me:25901: result: $ac_cv_type_bool" >&5
25902 echo "${ECHO_T}$ac_cv_type_bool" >&6
25904 echo "$as_me:25904: checking size of bool" >&5
25905 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
25906 if test "${ac_cv_sizeof_bool+set}" = set; then
25907 echo $ECHO_N "(cached) $ECHO_C" >&6
25909 if test "$ac_cv_type_bool" = yes; then
25910 if test "$cross_compiling" = yes; then
25911 # Depending upon the size, compute the lo and hi bounds.
25912 cat >"conftest.$ac_ext" <<_ACEOF
25913 #line 25913 "configure"
25914 #include "confdefs.h"
25916 #include <stdlib.h>
25919 #if defined(__cplusplus)
25921 #ifdef HAVE_GXX_BUILTIN_H
25922 #include <g++/builtin.h>
25923 #elif HAVE_GPP_BUILTIN_H
25924 #include <gpp/builtin.h>
25925 #elif HAVE_BUILTIN_H
25926 #include <builtin.h>
25931 #if $cf_cv_header_stdbool_h
25932 #include <stdbool.h>
25940 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
25945 rm -f "conftest.$ac_objext"
25946 if { (eval echo "$as_me:25946: \"$ac_compile\"") >&5
25947 (eval $ac_compile) 2>&5
25949 echo "$as_me:25949: \$? = $ac_status" >&5
25950 (exit "$ac_status"); } &&
25951 { ac_try='test -s "conftest.$ac_objext"'
25952 { (eval echo "$as_me:25952: \"$ac_try\"") >&5
25953 (eval $ac_try) 2>&5
25955 echo "$as_me:25955: \$? = $ac_status" >&5
25956 (exit "$ac_status"); }; }; then
25959 cat >"conftest.$ac_ext" <<_ACEOF
25960 #line 25960 "configure"
25961 #include "confdefs.h"
25963 #include <stdlib.h>
25966 #if defined(__cplusplus)
25968 #ifdef HAVE_GXX_BUILTIN_H
25969 #include <g++/builtin.h>
25970 #elif HAVE_GPP_BUILTIN_H
25971 #include <gpp/builtin.h>
25972 #elif HAVE_BUILTIN_H
25973 #include <builtin.h>
25978 #if $cf_cv_header_stdbool_h
25979 #include <stdbool.h>
25987 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
25992 rm -f "conftest.$ac_objext"
25993 if { (eval echo "$as_me:25993: \"$ac_compile\"") >&5
25994 (eval $ac_compile) 2>&5
25996 echo "$as_me:25996: \$? = $ac_status" >&5
25997 (exit "$ac_status"); } &&
25998 { ac_try='test -s "conftest.$ac_objext"'
25999 { (eval echo "$as_me:25999: \"$ac_try\"") >&5
26000 (eval $ac_try) 2>&5
26002 echo "$as_me:26002: \$? = $ac_status" >&5
26003 (exit "$ac_status"); }; }; then
26004 ac_hi=$ac_mid; break
26006 echo "$as_me: failed program was:" >&5
26007 cat "conftest.$ac_ext" >&5
26008 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26010 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26013 echo "$as_me: failed program was:" >&5
26014 cat "conftest.$ac_ext" >&5
26017 cat >"conftest.$ac_ext" <<_ACEOF
26018 #line 26018 "configure"
26019 #include "confdefs.h"
26021 #include <stdlib.h>
26024 #if defined(__cplusplus)
26026 #ifdef HAVE_GXX_BUILTIN_H
26027 #include <g++/builtin.h>
26028 #elif HAVE_GPP_BUILTIN_H
26029 #include <gpp/builtin.h>
26030 #elif HAVE_BUILTIN_H
26031 #include <builtin.h>
26036 #if $cf_cv_header_stdbool_h
26037 #include <stdbool.h>
26045 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
26050 rm -f "conftest.$ac_objext"
26051 if { (eval echo "$as_me:26051: \"$ac_compile\"") >&5
26052 (eval $ac_compile) 2>&5
26054 echo "$as_me:26054: \$? = $ac_status" >&5
26055 (exit "$ac_status"); } &&
26056 { ac_try='test -s "conftest.$ac_objext"'
26057 { (eval echo "$as_me:26057: \"$ac_try\"") >&5
26058 (eval $ac_try) 2>&5
26060 echo "$as_me:26060: \$? = $ac_status" >&5
26061 (exit "$ac_status"); }; }; then
26062 ac_lo=$ac_mid; break
26064 echo "$as_me: failed program was:" >&5
26065 cat "conftest.$ac_ext" >&5
26066 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
26068 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26071 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26072 # Binary search between lo and hi bounds.
26073 while test "x$ac_lo" != "x$ac_hi"; do
26074 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
26075 cat >"conftest.$ac_ext" <<_ACEOF
26076 #line 26076 "configure"
26077 #include "confdefs.h"
26079 #include <stdlib.h>
26082 #if defined(__cplusplus)
26084 #ifdef HAVE_GXX_BUILTIN_H
26085 #include <g++/builtin.h>
26086 #elif HAVE_GPP_BUILTIN_H
26087 #include <gpp/builtin.h>
26088 #elif HAVE_BUILTIN_H
26089 #include <builtin.h>
26094 #if $cf_cv_header_stdbool_h
26095 #include <stdbool.h>
26103 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26108 rm -f "conftest.$ac_objext"
26109 if { (eval echo "$as_me:26109: \"$ac_compile\"") >&5
26110 (eval $ac_compile) 2>&5
26112 echo "$as_me:26112: \$? = $ac_status" >&5
26113 (exit "$ac_status"); } &&
26114 { ac_try='test -s "conftest.$ac_objext"'
26115 { (eval echo "$as_me:26115: \"$ac_try\"") >&5
26116 (eval $ac_try) 2>&5
26118 echo "$as_me:26118: \$? = $ac_status" >&5
26119 (exit "$ac_status"); }; }; then
26122 echo "$as_me: failed program was:" >&5
26123 cat "conftest.$ac_ext" >&5
26124 ac_lo=`expr "$ac_mid" + 1`
26126 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26128 ac_cv_sizeof_bool=$ac_lo
26130 if test "$cross_compiling" = yes; then
26131 { { echo "$as_me:26131: error: cannot run test program while cross compiling" >&5
26132 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
26133 { (exit 1); exit 1; }; }
26135 cat >"conftest.$ac_ext" <<_ACEOF
26136 #line 26136 "configure"
26137 #include "confdefs.h"
26139 #include <stdlib.h>
26142 #if defined(__cplusplus)
26144 #ifdef HAVE_GXX_BUILTIN_H
26145 #include <g++/builtin.h>
26146 #elif HAVE_GPP_BUILTIN_H
26147 #include <gpp/builtin.h>
26148 #elif HAVE_BUILTIN_H
26149 #include <builtin.h>
26154 #if $cf_cv_header_stdbool_h
26155 #include <stdbool.h>
26163 FILE *f = fopen ("conftest.val", "w");
26165 $ac_main_return (1);
26166 fprintf (f, "%ld", (long)(sizeof (bool)));
26172 rm -f "conftest$ac_exeext"
26173 if { (eval echo "$as_me:26173: \"$ac_link\"") >&5
26174 (eval $ac_link) 2>&5
26176 echo "$as_me:26176: \$? = $ac_status" >&5
26177 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26178 { (eval echo "$as_me:26178: \"$ac_try\"") >&5
26179 (eval $ac_try) 2>&5
26181 echo "$as_me:26181: \$? = $ac_status" >&5
26182 (exit "$ac_status"); }; }; then
26183 ac_cv_sizeof_bool=`cat conftest.val`
26185 echo "$as_me: program exited with status $ac_status" >&5
26186 echo "$as_me: failed program was:" >&5
26187 cat "conftest.$ac_ext" >&5
26189 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26194 ac_cv_sizeof_bool=0
26197 echo "$as_me:26197: result: $ac_cv_sizeof_bool" >&5
26198 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
26199 cat >>confdefs.h <<EOF
26200 #define SIZEOF_BOOL $ac_cv_sizeof_bool
26203 echo "$as_me:26203: checking for type of bool" >&5
26204 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
26205 if test "${cf_cv_type_of_bool+set}" = set; then
26206 echo $ECHO_N "(cached) $ECHO_C" >&6
26210 if test "$cross_compiling" = yes; then
26212 case x$ac_cv_sizeof_bool in
26213 (x1) cf_cv_type_of_bool="unsigned char";;
26214 (x2) cf_cv_type_of_bool="unsigned short";;
26215 (x4) cf_cv_type_of_bool="unsigned int";;
26216 (x8) cf_cv_type_of_bool="unsigned long";;
26217 (*) cf_cv_type_of_bool=unknown;;
26221 cat >"conftest.$ac_ext" <<_ACEOF
26222 #line 26222 "configure"
26223 #include "confdefs.h"
26225 #include <stdlib.h>
26228 #if defined(__cplusplus)
26230 #ifdef HAVE_GXX_BUILTIN_H
26231 #include <g++/builtin.h>
26232 #elif HAVE_GPP_BUILTIN_H
26233 #include <gpp/builtin.h>
26234 #elif HAVE_BUILTIN_H
26235 #include <builtin.h>
26240 #if $cf_cv_header_stdbool_h
26241 #include <stdbool.h>
26248 FILE *fp = fopen("cf_test.out", "w");
26251 if ((bool)(-x) >= 0)
26252 fputs("unsigned ", fp);
26253 if (sizeof(x) == sizeof(int)) fputs("int", fp);
26254 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
26255 else if (sizeof(x) == sizeof(short))fputs("short",fp);
26256 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
26259 ${cf_cv_main_return:-return}(0);
26263 rm -f "conftest$ac_exeext"
26264 if { (eval echo "$as_me:26264: \"$ac_link\"") >&5
26265 (eval $ac_link) 2>&5
26267 echo "$as_me:26267: \$? = $ac_status" >&5
26268 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26269 { (eval echo "$as_me:26269: \"$ac_try\"") >&5
26270 (eval $ac_try) 2>&5
26272 echo "$as_me:26272: \$? = $ac_status" >&5
26273 (exit "$ac_status"); }; }; then
26274 cf_cv_type_of_bool=`cat cf_test.out`
26275 if test -z "$cf_cv_type_of_bool"; then
26276 cf_cv_type_of_bool=unknown
26279 echo "$as_me: program exited with status $ac_status" >&5
26280 echo "$as_me: failed program was:" >&5
26281 cat "conftest.$ac_ext" >&5
26282 cf_cv_type_of_bool=unknown
26284 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26289 echo "$as_me:26289: result: $cf_cv_type_of_bool" >&5
26290 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26292 if test "$cf_cv_type_of_bool" = unknown ; then
26293 case .$NCURSES_BOOL in
26294 (.auto|.) NCURSES_BOOL=unsigned;;
26296 { echo "$as_me:26296: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
26297 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
26298 cf_cv_type_of_bool=$NCURSES_BOOL
26302 echo "$as_me:26302: checking for fallback type of bool" >&5
26303 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
26304 case "$host_cpu" in
26305 (i?86) cf_cv_type_of_bool=char ;;
26306 (*) cf_cv_type_of_bool=int ;;
26308 echo "$as_me:26308: result: $cf_cv_type_of_bool" >&5
26309 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26314 # If the C compiler did not declare bool, and we did not determine that the C++
26315 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
26316 # ncurses library use the same type as C++ bool. Note that this allows one to
26317 # specify the type of bool in a configure-script option and postpone
26318 # integration with the C++ compiler provided that the types are compatible.
26320 if test "$cf_cv_cc_bool_type" = 1
26322 # oops: C has a bool. Unlikely, but C++ could differ.
26324 elif test "$cf_cv_builtin_bool" = 0
26329 # this is the normal case
26330 USE_CXX_BOOL='defined(__cplusplus)'
26333 if test -f "${srcdir}/Ada95/Makefile.in" ; then
26335 if test "$cf_with_ada" != "no" ; then
26336 if test "$with_libtool" != "no"; then
26337 { echo "$as_me:26337: WARNING: libtool does not support Ada - disabling feature" >&5
26338 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
26343 if test "$cf_with_ada" != "no" ; then
26345 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
26348 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
26350 unset ac_cv_path_cf_TEMP_gnat
26352 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
26353 set dummy $cf_prog_gnat; ac_word=$2
26354 echo "$as_me:26354: checking for $ac_word" >&5
26355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26356 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
26357 echo $ECHO_N "(cached) $ECHO_C" >&6
26359 case $cf_TEMP_gnat in
26361 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
26364 ac_save_IFS=$IFS; IFS=$ac_path_separator
26366 for ac_dir in $ac_dummy; do
26368 test -z "$ac_dir" && ac_dir=.
26369 if $as_executable_p "$ac_dir/$ac_word"; then
26370 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
26371 echo "$as_me:26371: found $ac_dir/$ac_word" >&5
26376 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
26380 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
26382 if test -n "$cf_TEMP_gnat"; then
26383 echo "$as_me:26383: result: $cf_TEMP_gnat" >&5
26384 echo "${ECHO_T}$cf_TEMP_gnat" >&6
26386 echo "$as_me:26386: result: no" >&5
26387 echo "${ECHO_T}no" >&6
26390 eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat"
26392 if test "x$cf_TEMP_gnat" != xno; then
26393 unset cf_cv_gnat_version
26396 echo "$as_me:26396: checking for $cf_prog_gnat version" >&5
26397 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
26398 if test "${cf_cv_gnat_version+set}" = set; then
26399 echo $ECHO_N "(cached) $ECHO_C" >&6
26402 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
26403 grep '[0-9].[0-9][0-9]*' |\
26404 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
26407 echo "$as_me:26407: result: $cf_cv_gnat_version" >&5
26408 echo "${ECHO_T}$cf_cv_gnat_version" >&6
26409 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
26410 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
26413 eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat"
26416 unset cf_cv_gnat_version
26417 unset ac_cv_path_cf_TEMP_gnat
26420 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
26422 cf_cv_prog_gnat_correct=no
26424 cf_ada_make=gnatmake
26425 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
26426 # gprconfig is newer than gnatmake; we can continue...
26429 rm -rf ./conftest* ./*~conftest*
26430 if mkdir conftest.src
26434 for cf_gprconfig in Ada C
26436 echo "$as_me:26436: checking for gprconfig name for $cf_gprconfig" >&5
26437 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
26438 if test "$cf_gprconfig" = C
26440 for cf_gprconfig_param in \
26441 "$cf_gprconfig,,,,GNATGCC" \
26442 "$cf_gprconfig,,,,GCC" \
26445 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
26446 test -n "$cf_gprconfig_value" && break
26449 cf_gprconfig_param=$cf_gprconfig
26450 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
26452 if test -n "$cf_gprconfig_value"
26454 eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value"
26455 echo "$as_me:26455: result: $cf_gprconfig_value" >&5
26456 echo "${ECHO_T}$cf_gprconfig_value" >&6
26458 echo "$as_me:26458: result: missing" >&5
26459 echo "${ECHO_T}missing" >&6
26465 rm -rf ./conftest* ./*~conftest*
26468 if test "x$cf_ada_config" != "x#"
26471 echo "$as_me:26471: checking for gnat version" >&5
26472 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
26473 if test "${cf_cv_gnat_version+set}" = set; then
26474 echo $ECHO_N "(cached) $ECHO_C" >&6
26477 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
26478 grep '[0-9].[0-9][0-9]*' |\
26479 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
26482 echo "$as_me:26482: result: $cf_cv_gnat_version" >&5
26483 echo "${ECHO_T}$cf_cv_gnat_version" >&6
26484 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
26486 case "$cf_cv_gnat_version" in
26487 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
26488 cf_cv_prog_gnat_correct=yes
26491 { echo "$as_me:26491: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
26492 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
26493 cf_cv_prog_gnat_correct=no
26497 # Extract the first word of "m4", so it can be a program name with args.
26498 set dummy m4; ac_word=$2
26499 echo "$as_me:26499: checking for $ac_word" >&5
26500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26501 if test "${ac_cv_prog_M4_exists+set}" = set; then
26502 echo $ECHO_N "(cached) $ECHO_C" >&6
26504 if test -n "$M4_exists"; then
26505 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
26507 ac_save_IFS=$IFS; IFS=$ac_path_separator
26509 for ac_dir in $ac_dummy; do
26511 test -z "$ac_dir" && ac_dir=.
26512 $as_executable_p "$ac_dir/$ac_word" || continue
26513 ac_cv_prog_M4_exists="yes"
26514 echo "$as_me:26514: found $ac_dir/$ac_word" >&5
26518 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
26521 M4_exists=$ac_cv_prog_M4_exists
26522 if test -n "$M4_exists"; then
26523 echo "$as_me:26523: result: $M4_exists" >&5
26524 echo "${ECHO_T}$M4_exists" >&6
26526 echo "$as_me:26526: result: no" >&5
26527 echo "${ECHO_T}no" >&6
26530 if test "$ac_cv_prog_M4_exists" = no; then
26531 cf_cv_prog_gnat_correct=no
26532 { echo "$as_me:26532: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
26533 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
26535 if test "$cf_cv_prog_gnat_correct" = yes; then
26536 echo "$as_me:26536: checking if GNAT works" >&5
26537 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
26539 rm -rf ./conftest* ./*~conftest*
26540 cat >>conftest.ads <<CF_EOF
26541 procedure conftest;
26543 cat >>conftest.adb <<CF_EOF
26546 procedure conftest is
26548 Text_IO.Put ("Hello World");
26550 GNAT.OS_Lib.OS_Exit (0);
26553 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
26554 if ( ./conftest 1>&5 2>&1 ) ; then
26555 cf_cv_prog_gnat_correct=yes
26557 cf_cv_prog_gnat_correct=no
26560 cf_cv_prog_gnat_correct=no
26562 rm -rf ./conftest* ./*~conftest*
26564 echo "$as_me:26564: result: $cf_cv_prog_gnat_correct" >&5
26565 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
26568 cf_cv_prog_gnat_correct=no
26572 if test "x$cf_cv_prog_gnat_correct" = xyes; then
26574 ADAFLAGS="$ADAFLAGS -gnatpn"
26576 echo "$as_me:26576: checking optimization options for ADAFLAGS" >&5
26577 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
26581 ADAFLAGS="$ADAFLAGS -g"
26587 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
26589 ADAFLAGS="$ADAFLAGS $cf_O_flag"
26593 echo "$as_me:26593: result: $ADAFLAGS" >&5
26594 echo "${ECHO_T}$ADAFLAGS" >&6
26596 echo "$as_me:26596: checking if GNATPREP supports -T option" >&5
26597 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
26598 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
26599 echo $ECHO_N "(cached) $ECHO_C" >&6
26602 cf_cv_gnatprep_opt_t=no
26603 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
26606 echo "$as_me:26606: result: $cf_cv_gnatprep_opt_t" >&5
26607 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
26608 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
26610 echo "$as_me:26610: checking if GNAT supports generics" >&5
26611 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
26612 case "$cf_cv_gnat_version" in
26613 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
26614 cf_gnat_generics=yes
26617 cf_gnat_generics=no
26620 echo "$as_me:26620: result: $cf_gnat_generics" >&5
26621 echo "${ECHO_T}$cf_gnat_generics" >&6
26623 if test "$cf_gnat_generics" = yes
26625 cf_compile_generics=generics
26626 cf_generic_objects="\${GENOBJS}"
26628 cf_compile_generics=
26629 cf_generic_objects=
26632 echo "$as_me:26632: checking if GNAT supports SIGINT" >&5
26633 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
26634 if test "${cf_cv_gnat_sigint+set}" = set; then
26635 echo $ECHO_N "(cached) $ECHO_C" >&6
26638 rm -rf ./conftest* ./*~conftest*
26639 cat >>conftest.ads <<CF_EOF
26640 with Ada.Interrupts.Names;
26642 package ConfTest is
26644 pragma Warnings (Off); -- the next pragma exists since 3.11p
26645 pragma Unreserve_All_Interrupts;
26646 pragma Warnings (On);
26648 protected Process is
26650 function Continue return Boolean;
26651 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
26653 Done : Boolean := False;
26658 cat >>conftest.adb <<CF_EOF
26659 package body ConfTest is
26660 protected body Process is
26665 function Continue return Boolean is
26672 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
26673 cf_cv_gnat_sigint=yes
26675 cf_cv_gnat_sigint=no
26677 rm -rf ./conftest* ./*~conftest*
26680 echo "$as_me:26680: result: $cf_cv_gnat_sigint" >&5
26681 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
26683 if test "$cf_cv_gnat_sigint" = yes ; then
26686 USE_GNAT_SIGINT="#"
26689 cf_gnat_libraries=no
26690 cf_gnat_projects=no
26692 if test "$enable_gnat_projects" != no ; then
26693 echo "$as_me:26693: checking if GNAT supports project files" >&5
26694 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
26695 case "$cf_cv_gnat_version" in
26699 case "$cf_cv_system_name" in
26703 rm -rf ./conftest* ./*~conftest*
26704 if mkdir conftest.src conftest.bin conftest.lib
26707 rm -rf ./conftest* ./*~conftest*
26708 cat >>library.gpr <<CF_EOF
26710 Kind := External ("LIB_KIND");
26711 for Library_Name use "ConfTest";
26712 for Object_Dir use ".";
26713 for Library_ALI_Dir use External("LIBRARY_DIR");
26714 for Library_Version use External ("SONAME");
26715 for Library_Kind use Kind;
26716 for Library_Dir use External("BUILD_DIR");
26717 Source_Dir := External ("SOURCE_DIR");
26718 for Source_Dirs use (Source_Dir);
26721 cat >>confpackage.ads <<CF_EOF
26722 package ConfPackage is
26723 procedure conftest;
26726 cat >>confpackage.adb <<CF_EOF
26728 package body ConfPackage is
26729 procedure conftest is
26731 Text_IO.Put ("Hello World");
26736 if ( "$cf_ada_make" $ADAFLAGS \
26738 -XBUILD_DIR="`cd ../conftest.bin;pwd`" \
26739 -XLIBRARY_DIR="`cd ../conftest.lib;pwd`" \
26740 -XSOURCE_DIR="`pwd`" \
26741 -XSONAME=libConfTest.so.1 \
26742 -XLIB_KIND=static 1>&5 2>&1 ) ; then
26743 cf_gnat_projects=yes
26747 if test -f conftest.lib/confpackage.ali
26749 cf_gnat_libraries=yes
26751 rm -rf ./conftest* ./*~conftest*
26756 echo "$as_me:26756: result: $cf_gnat_projects" >&5
26757 echo "${ECHO_T}$cf_gnat_projects" >&6
26758 fi # enable_gnat_projects
26760 if test "$cf_gnat_projects" = yes
26762 echo "$as_me:26762: checking if GNAT supports libraries" >&5
26763 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
26764 echo "$as_me:26764: result: $cf_gnat_libraries" >&5
26765 echo "${ECHO_T}$cf_gnat_libraries" >&6
26768 USE_OLD_MAKERULES=""
26769 USE_GNAT_PROJECTS="#"
26770 USE_GNAT_MAKE_GPR="#"
26771 USE_GNAT_GPRBUILD="#"
26773 if test "$cf_gnat_projects" = yes
26775 USE_OLD_MAKERULES="#"
26776 USE_GNAT_PROJECTS=""
26777 if test "$cf_cv_VERSION_GPRBUILD" != no
26779 USE_GNAT_GPRBUILD=""
26780 elif test "$cf_cv_VERSION_GNATMAKE" != no
26782 USE_GNAT_MAKE_GPR=""
26784 { echo "$as_me:26784: WARNING: use old makefile rules since tools are missing" >&5
26785 echo "$as_me: WARNING: use old makefile rules since tools are missing" >&2;}
26789 if test "$cf_gnat_libraries" = yes
26791 USE_GNAT_LIBRARIES=""
26793 USE_GNAT_LIBRARIES="#"
26796 echo "$as_me:26796: checking for ada-compiler" >&5
26797 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
26799 # Check whether --with-ada-compiler or --without-ada-compiler was given.
26800 if test "${with_ada_compiler+set}" = set; then
26801 withval="$with_ada_compiler"
26802 cf_ada_compiler=$withval
26804 cf_ada_compiler=gnatmake
26807 echo "$as_me:26807: result: $cf_ada_compiler" >&5
26808 echo "${ECHO_T}$cf_ada_compiler" >&6
26810 cf_ada_package=terminal_interface
26812 echo "$as_me:26812: checking for ada-include" >&5
26813 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
26815 # Check whether --with-ada-include or --without-ada-include was given.
26816 if test "${with_ada_include+set}" = set; then
26817 withval="$with_ada_include"
26820 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
26821 fi; if test -n "$prefix/share/ada/adainclude" ; then
26823 if test "x$prefix" != xNONE; then
26824 cf_path_syntax="$prefix"
26826 cf_path_syntax="$ac_default_prefix"
26829 case ".$withval" in
26830 (.\$\(*\)*|.\'*\'*)
26834 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
26836 (.\$\{*prefix\}*|.\$\{*dir\}*)
26837 eval withval="$withval"
26838 case ".$withval" in
26840 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
26845 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
26848 { { echo "$as_me:26848: error: expected a pathname, not \"$withval\"" >&5
26849 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
26850 { (exit 1); exit 1; }; }
26855 eval ADA_INCLUDE="$withval"
26857 echo "$as_me:26857: result: $ADA_INCLUDE" >&5
26858 echo "${ECHO_T}$ADA_INCLUDE" >&6
26860 echo "$as_me:26860: checking for ada-objects" >&5
26861 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
26863 # Check whether --with-ada-objects or --without-ada-objects was given.
26864 if test "${with_ada_objects+set}" = set; then
26865 withval="$with_ada_objects"
26868 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
26869 fi; if test -n "$prefix/lib/ada/adalib" ; then
26871 if test "x$prefix" != xNONE; then
26872 cf_path_syntax="$prefix"
26874 cf_path_syntax="$ac_default_prefix"
26877 case ".$withval" in
26878 (.\$\(*\)*|.\'*\'*)
26882 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
26884 (.\$\{*prefix\}*|.\$\{*dir\}*)
26885 eval withval="$withval"
26886 case ".$withval" in
26888 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
26893 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
26896 { { echo "$as_me:26896: error: expected a pathname, not \"$withval\"" >&5
26897 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
26898 { (exit 1); exit 1; }; }
26903 eval ADA_OBJECTS="$withval"
26905 echo "$as_me:26905: result: $ADA_OBJECTS" >&5
26906 echo "${ECHO_T}$ADA_OBJECTS" >&6
26908 echo "$as_me:26908: checking if an Ada95 shared-library should be built" >&5
26909 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
26911 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
26912 if test "${with_ada_sharedlib+set}" = set; then
26913 withval="$with_ada_sharedlib"
26914 with_ada_sharedlib=$withval
26916 with_ada_sharedlib=no
26918 echo "$as_me:26918: result: $with_ada_sharedlib" >&5
26919 echo "${ECHO_T}$with_ada_sharedlib" >&6
26921 if test "x$with_ada_sharedlib" != xno
26923 if test "x$cf_gnat_projects" != xyes
26925 { echo "$as_me:26925: WARNING: disabling shared-library since GNAT projects are not supported" >&5
26926 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
26927 with_ada_sharedlib=no
26931 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
26932 MAKE_ADA_SHAREDLIB="#"
26934 if test "x$with_ada_sharedlib" != xno
26936 MAKE_ADA_SHAREDLIB=
26937 if test "x$with_ada_sharedlib" != xyes
26939 ADA_SHAREDLIB="$with_ada_sharedlib"
26943 # allow the Ada binding to be renamed
26945 echo "$as_me:26945: checking for ada-libname" >&5
26946 echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
26948 # Check whether --with-ada-libname or --without-ada-libname was given.
26949 if test "${with_ada_libname+set}" = set; then
26950 withval="$with_ada_libname"
26951 ADA_LIBNAME=$withval
26953 ADA_LIBNAME=AdaCurses
26955 case "x$ADA_LIBNAME" in
26957 ADA_LIBNAME=AdaCurses
26961 echo "$as_me:26961: result: $ADA_LIBNAME" >&5
26962 echo "${ECHO_T}$ADA_LIBNAME" >&6
26970 # do this "late" to avoid conflict with header-checks
26971 if test "x$with_widec" = xyes ; then
26972 echo "$as_me:26972: checking for wchar_t" >&5
26973 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
26974 if test "${ac_cv_type_wchar_t+set}" = set; then
26975 echo $ECHO_N "(cached) $ECHO_C" >&6
26977 cat >"conftest.$ac_ext" <<_ACEOF
26978 #line 26978 "configure"
26979 #include "confdefs.h"
26980 $ac_includes_default
26986 if (sizeof (wchar_t))
26992 rm -f "conftest.$ac_objext"
26993 if { (eval echo "$as_me:26993: \"$ac_compile\"") >&5
26994 (eval $ac_compile) 2>&5
26996 echo "$as_me:26996: \$? = $ac_status" >&5
26997 (exit "$ac_status"); } &&
26998 { ac_try='test -s "conftest.$ac_objext"'
26999 { (eval echo "$as_me:26999: \"$ac_try\"") >&5
27000 (eval $ac_try) 2>&5
27002 echo "$as_me:27002: \$? = $ac_status" >&5
27003 (exit "$ac_status"); }; }; then
27004 ac_cv_type_wchar_t=yes
27006 echo "$as_me: failed program was:" >&5
27007 cat "conftest.$ac_ext" >&5
27008 ac_cv_type_wchar_t=no
27010 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27012 echo "$as_me:27012: result: $ac_cv_type_wchar_t" >&5
27013 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
27015 echo "$as_me:27015: checking size of wchar_t" >&5
27016 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
27017 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
27018 echo $ECHO_N "(cached) $ECHO_C" >&6
27020 if test "$ac_cv_type_wchar_t" = yes; then
27021 if test "$cross_compiling" = yes; then
27022 # Depending upon the size, compute the lo and hi bounds.
27023 cat >"conftest.$ac_ext" <<_ACEOF
27024 #line 27024 "configure"
27025 #include "confdefs.h"
27026 $ac_includes_default
27030 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
27035 rm -f "conftest.$ac_objext"
27036 if { (eval echo "$as_me:27036: \"$ac_compile\"") >&5
27037 (eval $ac_compile) 2>&5
27039 echo "$as_me:27039: \$? = $ac_status" >&5
27040 (exit "$ac_status"); } &&
27041 { ac_try='test -s "conftest.$ac_objext"'
27042 { (eval echo "$as_me:27042: \"$ac_try\"") >&5
27043 (eval $ac_try) 2>&5
27045 echo "$as_me:27045: \$? = $ac_status" >&5
27046 (exit "$ac_status"); }; }; then
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_hi=$ac_mid; break
27075 echo "$as_me: failed program was:" >&5
27076 cat "conftest.$ac_ext" >&5
27077 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
27079 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27082 echo "$as_me: failed program was:" >&5
27083 cat "conftest.$ac_ext" >&5
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
27110 ac_lo=$ac_mid; break
27112 echo "$as_me: failed program was:" >&5
27113 cat "conftest.$ac_ext" >&5
27114 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
27116 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27119 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27120 # Binary search between lo and hi bounds.
27121 while test "x$ac_lo" != "x$ac_hi"; do
27122 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
27123 cat >"conftest.$ac_ext" <<_ACEOF
27124 #line 27124 "configure"
27125 #include "confdefs.h"
27126 $ac_includes_default
27130 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
27135 rm -f "conftest.$ac_objext"
27136 if { (eval echo "$as_me:27136: \"$ac_compile\"") >&5
27137 (eval $ac_compile) 2>&5
27139 echo "$as_me:27139: \$? = $ac_status" >&5
27140 (exit "$ac_status"); } &&
27141 { ac_try='test -s "conftest.$ac_objext"'
27142 { (eval echo "$as_me:27142: \"$ac_try\"") >&5
27143 (eval $ac_try) 2>&5
27145 echo "$as_me:27145: \$? = $ac_status" >&5
27146 (exit "$ac_status"); }; }; then
27149 echo "$as_me: failed program was:" >&5
27150 cat "conftest.$ac_ext" >&5
27151 ac_lo=`expr "$ac_mid" + 1`
27153 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27155 ac_cv_sizeof_wchar_t=$ac_lo
27157 if test "$cross_compiling" = yes; then
27158 { { echo "$as_me:27158: error: cannot run test program while cross compiling" >&5
27159 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
27160 { (exit 1); exit 1; }; }
27162 cat >"conftest.$ac_ext" <<_ACEOF
27163 #line 27163 "configure"
27164 #include "confdefs.h"
27165 $ac_includes_default
27169 FILE *f = fopen ("conftest.val", "w");
27171 $ac_main_return (1);
27172 fprintf (f, "%ld", (long)(sizeof (wchar_t)));
27178 rm -f "conftest$ac_exeext"
27179 if { (eval echo "$as_me:27179: \"$ac_link\"") >&5
27180 (eval $ac_link) 2>&5
27182 echo "$as_me:27182: \$? = $ac_status" >&5
27183 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27184 { (eval echo "$as_me:27184: \"$ac_try\"") >&5
27185 (eval $ac_try) 2>&5
27187 echo "$as_me:27187: \$? = $ac_status" >&5
27188 (exit "$ac_status"); }; }; then
27189 ac_cv_sizeof_wchar_t=`cat conftest.val`
27191 echo "$as_me: program exited with status $ac_status" >&5
27192 echo "$as_me: failed program was:" >&5
27193 cat "conftest.$ac_ext" >&5
27195 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27200 ac_cv_sizeof_wchar_t=0
27203 echo "$as_me:27203: result: $ac_cv_sizeof_wchar_t" >&5
27204 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
27205 cat >>confdefs.h <<EOF
27206 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
27209 # cross-compiling to mingw can run into the problem that attempting to
27210 # link with the regex library fails, causing the test to not set this to
27211 # a number. "recent" autoconf does not address this problem either -TD
27212 if test -z "$ac_cv_sizeof_wchar_t"
27214 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
27216 echo "${as_me:-configure}:27216: testing test failed (assume 2) ..." 1>&5
27218 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
27219 mv confdefs.tmp confdefs.h
27220 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
27224 ### Construct the ncurses library-subsets, if any, from this set of keywords:
27225 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
27227 ### ticlib modules may be a separate library, otherwise contained in termlib.
27228 ### termlib modules may be a separate library, otherwise contained in ncurses.
27230 ### The of "+" or " " between the tokens controls the way the script
27231 ### chooses to split module lists into libraries.
27233 ### (see CF_LIB_RULES).
27234 echo "$as_me:27234: checking for library subsets" >&5
27235 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
27238 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
27239 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
27240 if test "$with_ticlib" != no ; then
27241 LIB_SUBSETS="${LIB_SUBSETS} "
27243 LIB_SUBSETS="${LIB_SUBSETS}+"
27247 LIB_SUBSETS="${LIB_SUBSETS}termlib"
27248 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
27250 if test "$with_termlib" != no ; then
27251 LIB_SUBSETS="${LIB_SUBSETS} "
27253 LIB_SUBSETS="${LIB_SUBSETS}+"
27256 LIB_SUBSETS="${LIB_SUBSETS}base"
27258 # Most term-driver calls are to tinfo, but some like init_pair are to the
27259 # base library (so it resides in base).
27260 if test "$with_term_driver" != no ; then
27261 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
27262 case "$cf_cv_system_name" in
27263 (*mingw32*|*mingw64*)
27264 if test "x$with_exp_win32" = xyes ; then
27265 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32"
27267 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
27269 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
27272 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
27275 elif test "x$with_exp_win32" = xyes ; then
27276 case "$cf_cv_system_name" in
27277 (*mingw32*|*mingw64*)
27278 LIB_SUBSETS="${LIB_SUBSETS}+port_win32"
27285 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
27286 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
27288 echo "$as_me:27288: result: $LIB_SUBSETS" >&5
27289 echo "${ECHO_T}$LIB_SUBSETS" >&6
27291 ### Construct the list of include-directories to be generated
27293 if test "$srcdir" != "."; then
27294 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
27296 CPPFLAGS="-I../include $CPPFLAGS"
27297 if test "$srcdir" != "."; then
27298 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
27300 CPPFLAGS="-I. $CPPFLAGS"
27302 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
27303 if test "$srcdir" != "."; then
27304 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
27306 if test "$GCC" != yes; then
27307 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27308 elif test "$includedir" != "/usr/include"; then
27309 if test "$includedir" = '${prefix}/include' ; then
27310 if test x$prefix != x/usr ; then
27311 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27314 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27318 ### Build up pieces for makefile rules
27319 echo "$as_me:27319: checking default library suffix" >&5
27320 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
27322 case $DFT_LWR_MODEL in
27323 (libtool) DFT_ARG_SUFFIX='' ;;
27324 (normal) DFT_ARG_SUFFIX='' ;;
27325 (debug) DFT_ARG_SUFFIX='_g' ;;
27326 (profile) DFT_ARG_SUFFIX='_p' ;;
27327 (shared) DFT_ARG_SUFFIX='' ;;
27329 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
27330 echo "$as_me:27330: result: $DFT_ARG_SUFFIX" >&5
27331 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
27333 echo "$as_me:27333: checking default library-dependency suffix" >&5
27334 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
27336 case X$DFT_LWR_MODEL in
27338 DFT_LIB_SUFFIX='.la'
27339 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27342 case "$cf_cv_system_name" in
27344 DFT_LIB_SUFFIX='_g.lib'
27347 DFT_LIB_SUFFIX='_g.a'
27350 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27353 case "$cf_cv_system_name" in
27355 DFT_LIB_SUFFIX='_p.lib'
27358 DFT_LIB_SUFFIX='_p.a'
27361 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27364 case "$cf_cv_system_name" in
27366 DFT_LIB_SUFFIX='.so'
27367 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27370 DFT_LIB_SUFFIX='.dll'
27371 DFT_DEP_SUFFIX='.dll.lib'
27373 (cygwin*|msys*|mingw*)
27374 DFT_LIB_SUFFIX='.dll'
27375 DFT_DEP_SUFFIX='.dll.a'
27378 DFT_LIB_SUFFIX='.dylib'
27379 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27384 DFT_LIB_SUFFIX='.so'
27385 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27388 DFT_LIB_SUFFIX='.sl'
27389 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27394 DFT_LIB_SUFFIX='.so'
27395 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27402 DFT_LIB_SUFFIX='.lib'
27405 DFT_LIB_SUFFIX='.a'
27408 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27411 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
27413 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
27414 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
27416 echo "$as_me:27416: result: $DFT_DEP_SUFFIX" >&5
27417 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
27419 echo "$as_me:27419: checking default object directory" >&5
27420 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
27422 case $DFT_LWR_MODEL in
27423 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
27424 (normal) DFT_OBJ_SUBDIR='objects' ;;
27425 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
27426 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
27428 case "$cf_cv_system_name" in
27430 DFT_OBJ_SUBDIR='objects' ;;
27432 DFT_OBJ_SUBDIR='obj_s' ;;
27435 echo "$as_me:27435: result: $DFT_OBJ_SUBDIR" >&5
27436 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
27438 if test "x$cf_with_cxx" = xyes ; then
27439 echo "$as_me:27439: checking c++ library-dependency suffix" >&5
27440 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
27441 if test "$with_libtool" != "no"; then
27442 # libtool thinks it can make c++ shared libraries (perhaps only g++)
27443 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
27444 elif test "$with_shared_cxx" != "no"; then
27445 # also for g++ users...
27446 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
27448 # we normally make a static library because C/C++ library rules differ
27452 CXX_LIB_SUFFIX='.la'
27453 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27456 case "$cf_cv_system_name" in
27458 CXX_LIB_SUFFIX='_g.lib'
27461 CXX_LIB_SUFFIX='_g.a'
27464 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27467 case "$cf_cv_system_name" in
27469 CXX_LIB_SUFFIX='_p.lib'
27472 CXX_LIB_SUFFIX='_p.a'
27475 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27478 case "$cf_cv_system_name" in
27480 CXX_LIB_SUFFIX='.so'
27481 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27484 CXX_LIB_SUFFIX='.dll'
27485 CXX_DEP_SUFFIX='.dll.lib'
27487 (cygwin*|msys*|mingw*)
27488 CXX_LIB_SUFFIX='.dll'
27489 CXX_DEP_SUFFIX='.dll.a'
27492 CXX_LIB_SUFFIX='.dylib'
27493 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27498 CXX_LIB_SUFFIX='.so'
27499 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27502 CXX_LIB_SUFFIX='.sl'
27503 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27508 CXX_LIB_SUFFIX='.so'
27509 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27516 CXX_LIB_SUFFIX='.lib'
27519 CXX_LIB_SUFFIX='.a'
27522 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27525 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
27527 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
27528 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
27532 echo "$as_me:27532: result: $CXX_LIB_SUFFIX" >&5
27533 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
27537 # do not want -ldl in build except as needed for -lncurses dependency
27538 if test "x$with_dlsym" = xyes ; then
27539 if test "$DFT_LWR_MODEL" = shared || \
27540 test "$DFT_LWR_MODEL" = libtool ; then
27542 # remove dl library from $LIBS
27543 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
27547 ### Set up low-level terminfo dependencies for makefiles.
27549 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
27550 # do not need libdl
27552 if test "x$with_dlsym" = xyes ; then
27554 # remove dl library from $SHLIB_LIST
27555 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
27559 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
27560 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
27561 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
27562 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
27564 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
27567 if test "$with_ticlib" != no ; then
27569 if test "x$with_ticlib" != xyes ; then
27570 TICS_NAME=$with_ticlib
27571 TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
27572 TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27573 TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27574 TICS_LIB_SUFFIX="${with_ticlib}"
27576 TICS_SUFFIX=${DFT_LIB_SUFFIX}
27577 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
27578 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
27579 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
27581 TICS_LDFLAGS="-L${LIB_DIR}"
27582 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
27584 TICS_SUFFIX=${DFT_LIB_SUFFIX}
27585 TICS_LDFLAGS="-L${LIB_DIR}"
27586 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
27589 if test "$with_termlib" != no ; then
27591 if test "x$with_termlib" != xyes ; then
27592 TINFO_NAME=$with_termlib
27593 TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
27594 TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27595 TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27596 TINFO_LIB_SUFFIX="${with_termlib}"
27598 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
27599 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
27600 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
27601 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
27604 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
27605 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
27606 if test "$DFT_LWR_MODEL" = "libtool"; then
27607 TEST_ARGS="${TEST_DEPS}"
27608 TEST_ARG2="${TEST_DEP2}"
27609 TINFO_LDFLAGS="-L${LIB_DIR}"
27610 TINFO_LIBS="$TEST_ARGS"
27611 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
27612 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
27614 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
27615 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
27616 if test "x$with_term_driver" != xno ; then
27617 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
27618 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
27619 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
27621 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
27622 TINFO_LIBS="$TEST_ARGS"
27624 TINFO_LDFLAGS="-L${LIB_DIR}"
27625 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
27628 # the next lines are needed for linking libtic over libncurses
27629 TINFO_NAME=${LIB_NAME}
27630 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
27631 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
27632 if test "x$with_tic_depends" = xyes ; then
27633 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
27635 TICS_LIST="$SHLIB_LIST"
27638 TINFO_LDFLAGS="-L${LIB_DIR}"
27639 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
27642 if test "$DFT_LWR_MODEL" = shared ; then
27643 case "$cf_cv_system_name" in
27645 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
27651 if test "x$with_dlsym" = xyes ; then
27653 # remove dl library from $TICS_LIST
27654 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
27658 if test "$DFT_LWR_MODEL" = "libtool"; then
27663 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
27665 case "$DFT_LWR_MODEL" in
27666 (normal|debug|profile)
27668 if test "$GCC" = yes ; then
27669 case "$cf_cv_system_name" in
27670 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
27674 (*) # normally, except when broken
27675 LDFLAGS_STATIC=-static
27676 LDFLAGS_SHARED=-dynamic
27680 case "$cf_cv_system_name" in
27681 (aix[4-7]*) # from ld manpage
27682 LDFLAGS_STATIC=-bstatic
27683 LDFLAGS_SHARED=-bdynamic
27685 (hpux*) # from ld manpage for hpux10.20, hpux11.11
27686 # We could also use just "archive" and "shared".
27687 LDFLAGS_STATIC=-Wl,-a,archive_shared
27688 LDFLAGS_SHARED=-Wl,-a,shared_archive
27690 (irix*) # from ld manpage IRIX64
27691 LDFLAGS_STATIC=-Bstatic
27692 LDFLAGS_SHARED=-Bdynamic
27694 (osf[45]*) # from ld manpage osf4.0d, osf5.1
27695 # alternative "-oldstyle_liblookup" (not in cc manpage)
27696 LDFLAGS_STATIC=-noso
27697 LDFLAGS_SHARED=-so_archive
27700 LDFLAGS_STATIC=-Bstatic
27701 LDFLAGS_SHARED=-Bdynamic
27706 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
27708 echo "$as_me:27708: checking if linker supports switching between static/dynamic" >&5
27709 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
27711 rm -f libconftest.a
27712 cat >conftest.$ac_ext <<EOF
27713 #line 27713 "configure"
27715 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
27717 if { (eval echo "$as_me:27717: \"$ac_compile\"") >&5
27718 (eval $ac_compile) 2>&5
27720 echo "$as_me:27720: \$? = $ac_status" >&5
27721 (exit "$ac_status"); } ; then
27722 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
27723 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
27727 cf_save_LIBS="$LIBS"
27729 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
27730 cat >"conftest.$ac_ext" <<_ACEOF
27731 #line 27731 "configure"
27732 #include "confdefs.h"
27734 #line 27734 "configure"
27736 int cf_ldflags_static(FILE *fp);
27742 return cf_ldflags_static(stdin);
27748 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
27749 if { (eval echo "$as_me:27749: \"$ac_link\"") >&5
27750 (eval $ac_link) 2>&5
27752 echo "$as_me:27752: \$? = $ac_status" >&5
27753 (exit "$ac_status"); } &&
27754 { ac_try='test -s "conftest$ac_exeext"'
27755 { (eval echo "$as_me:27755: \"$ac_try\"") >&5
27756 (eval $ac_try) 2>&5
27758 echo "$as_me:27758: \$? = $ac_status" >&5
27759 (exit "$ac_status"); }; }; then
27761 # some linkers simply ignore the -dynamic
27762 case x`file "conftest$ac_exeext" 2>/dev/null` in
27764 cf_ldflags_static=no
27767 cf_ldflags_static=yes
27772 echo "$as_me: failed program was:" >&5
27773 cat "conftest.$ac_ext" >&5
27774 cf_ldflags_static=no
27776 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
27778 rm -f libconftest.*
27779 LIBS="$cf_save_LIBS"
27781 echo "$as_me:27781: result: $cf_ldflags_static" >&5
27782 echo "${ECHO_T}$cf_ldflags_static" >&6
27784 if test "$cf_ldflags_static" != yes
27797 echo "$as_me:27797: checking where we will install curses.h" >&5
27798 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
27801 if test "$with_overwrite" = no && \
27802 { test "x$includedir" = 'x${prefix}/include' || \
27803 test "x$includedir" = "x${prefix}/include"; }
27805 includesubdir="/ncurses${USE_LIB_SUFFIX}"
27807 echo "$as_me:27807: result: ${includedir}${includesubdir}" >&5
27808 echo "${ECHO_T}${includedir}${includesubdir}" >&6
27810 ### Resolve a conflict between normal and wide-curses by forcing applications
27811 ### that will need libutf8 to add it to their configure script.
27812 if test "$with_overwrite" != no ; then
27813 if test "$NCURSES_LIBUTF8" = 1 ; then
27814 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
27815 { echo "$as_me:27815: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
27816 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
27819 WITH_OVERWRITE=$with_overwrite
27821 ### At least on MinGW a shared library build without libtool
27822 ### requires adding the additional libs to the link list.
27823 case "$cf_cv_system_name" in
27824 (*mingw32*|*mingw64*)
27825 if test "$DFT_LWR_MODEL" != "libtool"; then
27826 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
27832 # used to separate tack out of the tree
27835 ### predefined stuff for the test programs
27837 cat >>confdefs.h <<\EOF
27838 #define HAVE_SLK_COLOR 1
27841 # pkgsrc uses these
27843 echo "$as_me:27843: checking for desired basename for form library" >&5
27844 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
27846 # Check whether --with-form-libname or --without-form-libname was given.
27847 if test "${with_form_libname+set}" = set; then
27848 withval="$with_form_libname"
27849 with_lib_basename=$withval
27851 with_lib_basename=form
27853 FORM_NAME="$with_lib_basename"
27855 case "x$FORM_NAME" in
27863 echo "$as_me:27863: result: $FORM_NAME" >&5
27864 echo "${ECHO_T}$FORM_NAME" >&6
27866 echo "$as_me:27866: checking for desired basename for menu library" >&5
27867 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
27869 # Check whether --with-menu-libname or --without-menu-libname was given.
27870 if test "${with_menu_libname+set}" = set; then
27871 withval="$with_menu_libname"
27872 with_lib_basename=$withval
27874 with_lib_basename=menu
27876 MENU_NAME="$with_lib_basename"
27878 case "x$MENU_NAME" in
27886 echo "$as_me:27886: result: $MENU_NAME" >&5
27887 echo "${ECHO_T}$MENU_NAME" >&6
27889 echo "$as_me:27889: checking for desired basename for panel library" >&5
27890 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
27892 # Check whether --with-panel-libname or --without-panel-libname was given.
27893 if test "${with_panel_libname+set}" = set; then
27894 withval="$with_panel_libname"
27895 with_lib_basename=$withval
27897 with_lib_basename=panel
27899 PANEL_NAME="$with_lib_basename"
27901 case "x$PANEL_NAME" in
27909 echo "$as_me:27909: result: $PANEL_NAME" >&5
27910 echo "${ECHO_T}$PANEL_NAME" >&6
27912 echo "$as_me:27912: checking for desired basename for cxx library" >&5
27913 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
27915 # Check whether --with-cxx-libname or --without-cxx-libname was given.
27916 if test "${with_cxx_libname+set}" = set; then
27917 withval="$with_cxx_libname"
27918 with_lib_basename=$withval
27920 with_lib_basename=ncurses++
27922 CXX_NAME="$with_lib_basename"
27924 case "x$CXX_NAME" in
27932 echo "$as_me:27932: result: $CXX_NAME" >&5
27933 echo "${ECHO_T}$CXX_NAME" >&6
27935 ### Construct the list of subdirectories for which we'll customize makefiles
27936 ### with the appropriate compile-rules.
27938 echo "$as_me:27938: checking for src modules" >&5
27939 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
27941 # dependencies and linker-arguments for test-programs
27942 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
27943 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
27944 if test "$DFT_LWR_MODEL" = "libtool"; then
27945 TEST_ARGS="${TEST_DEPS}"
27946 TEST_ARG2="${TEST_DEP2}"
27948 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
27949 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
27952 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
27954 for cf_dir in $modules_to_build
27956 if test -f "$srcdir/$cf_dir/modules" ; then
27958 # We may/may not have tack in the distribution, though the
27960 if test "$cf_dir" = tack ; then
27961 if test "x$cf_with_tack" != "xyes"; then
27966 if test -z "$cf_cv_src_modules"; then
27967 cf_cv_src_modules=$cf_dir
27969 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
27972 # Make the ncurses_cfg.h file record the library interface files as
27973 # well. These are header files that are the same name as their
27974 # directory. Ncurses is the only library that does not follow
27976 if test "$cf_dir" = tack ; then
27978 elif test -f "$srcdir/${cf_dir}/${cf_dir}.h" ; then
27980 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
27982 cat >>confdefs.h <<EOF
27983 #define HAVE_${cf_have_include}_H 1
27986 cat >>confdefs.h <<EOF
27987 #define HAVE_LIB${cf_have_include} 1
27990 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
27992 eval TEST_ROOT="\$${cf_map_lib_basename}_NAME"
27994 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
27995 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
27996 if test "$DFT_LWR_MODEL" = "libtool"; then
27997 TEST_ARGS="${TEST_DEPS}"
27998 TEST_ARG2="${TEST_DEP2}"
28000 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
28001 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
28003 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
28007 echo "$as_me:28007: result: $cf_cv_src_modules" >&5
28008 echo "${ECHO_T}$cf_cv_src_modules" >&6
28010 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
28011 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
28014 if test "x$cf_with_manpages" != xno ; then
28015 SRC_SUBDIRS="$SRC_SUBDIRS man"
28017 SRC_SUBDIRS="$SRC_SUBDIRS include"
28018 for cf_dir in $cf_cv_src_modules
28020 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
28022 if test "x$cf_with_tests" != "xno" ; then
28023 SRC_SUBDIRS="$SRC_SUBDIRS test"
28025 # always make this, to install the ncurses-config script
28026 SRC_SUBDIRS="$SRC_SUBDIRS misc"
28027 if test "$cf_with_cxx_binding" != no; then
28028 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
28029 SRC_SUBDIRS="$SRC_SUBDIRS c++"
28032 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
28033 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
28036 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f "$srcdir/Ada95/Makefile.in" ; then
28037 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
28038 ADA_SUBDIRS="gen src"
28039 if test "x$cf_with_tests" != "xno" ; then
28040 ADA_SUBDIRS="$ADA_SUBDIRS samples"
28045 for cf_dir in $SRC_SUBDIRS
28047 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
28050 if test -n "$ADA_SUBDIRS"; then
28051 for cf_dir in $ADA_SUBDIRS
28053 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
28058 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
28059 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
28060 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
28061 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
28065 for cf_item in $cf_list_models
28069 (libtool) cf_subdir='obj_lo' ;;
28070 (normal) cf_subdir='objects' ;;
28071 (debug) cf_subdir='obj_g' ;;
28072 (profile) cf_subdir='obj_p' ;;
28074 case "$cf_cv_system_name" in
28076 cf_subdir='objects' ;;
28078 cf_subdir='obj_s' ;;
28082 for cf_item2 in $DIRS_TO_MAKE
28084 test "$cf_item2" = "$cf_subdir" && break
28086 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
28088 for cf_dir in $DIRS_TO_MAKE
28090 test ! -d "$cf_dir" && mkdir "$cf_dir"
28093 # symbols that differ when compiling Ada95 by itself.
28094 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
28096 # values to use as strings
28098 cat >>confdefs.h <<EOF
28099 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
28102 cat >>confdefs.h <<EOF
28103 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
28106 ### Define substitutions for header files to avoid name-pollution
28108 if test "x$cf_cv_have_tcgetattr" = xyes ; then
28114 if test "x$ac_cv_header_stdint_h" = xyes ; then
28120 if test "x$ac_cv_header_termio_h" = xyes ; then
28126 if test "x$ac_cv_header_termios_h" = xyes ; then
28132 ################################################################################
28133 test "x$use_database" = xyes && \
28134 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
28136 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
28137 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
28139 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
28140 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
28143 if test "x$cf_with_tests" != xno ; then
28149 ADAHTML_DIR=../../doc/html/ada
28151 # workaround for OS/2 (20151017)
28152 case "$cf_cv_system_name" in
28154 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
28161 # workaround for g++ versus Solaris (20131116)
28162 case "$cf_cv_system_name" in
28164 case "x$CPPFLAGS" in
28165 (*-D_XOPEN_SOURCE_EXTENDED*)
28166 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
28168 echo "${as_me:-configure}:28168: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
28170 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
28171 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
28177 # Help to automatically enable the extended curses features when using either
28178 # the *-config or the ".pc" files by adding defines.
28179 echo "$as_me:28179: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
28180 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
28182 for cf_loop1 in $CPPFLAGS_after_XOPEN
28185 for cf_loop2 in $CPPFLAGS_before_XOPEN
28187 if test "x$cf_loop1" = "x$cf_loop2"
28193 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
28195 echo "$as_me:28195: result: $PKG_CFLAGS" >&5
28196 echo "${ECHO_T}$PKG_CFLAGS" >&6
28198 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
28199 case "x$NCURSES_OSPEED" in
28208 cat >>confdefs.h <<EOF
28209 #define NCURSES_OSPEED_COMPAT $cf_compatible
28212 case "x$cf_cv_typeof_chtype" in
28213 (xshort|xint|xlong)
28214 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
28218 case "x$cf_cv_typeof_mmask_t" in
28219 (xshort|xint|xlong)
28220 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
28224 # substitute into misc/Makefile to suppress
28225 # (un)install.data from the
28226 # (un)install rules.
28227 if test "x$cf_with_db_install" = "xno"; then
28229 MISC_UNINSTALL_DATA=
28231 MISC_INSTALL_DATA=install.data
28232 MISC_UNINSTALL_DATA=uninstall.data
28235 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
28238 MAKE_DATABASE="$MAKE_TERMINFO"
28241 if test -n "$PACKAGE"
28243 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
28245 echo "package: $PACKAGE"
28251 if test -n "$RESULTING_SYMS"
28253 cf_filter_syms=$cf_dft_filter_syms
28254 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
28256 echo "${as_me:-configure}:28256: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
28260 if test "x$WILDCARD_SYMS" = xno
28265 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
28267 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
28268 if test "$cf_filter_syms" = yes
28270 RESULTING_SYMS=resulting.map
28273 if test "x$cross_compiling" = xyes ; then
28274 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
28277 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
28281 # This is used for the *-config script and *.pc data files.
28283 echo "$as_me:28283: checking for linker search path" >&5
28284 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
28285 if test "${cf_cv_ld_searchpath+set}" = set; then
28286 echo $ECHO_N "(cached) $ECHO_C" >&6
28289 if test "$cross_compiling" != yes ; then
28291 # GNU binutils' ld does not involve permissions which may stop ldconfig.
28292 cf_pathlist=`ld --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
28294 # The -NX options tell newer versions of Linux ldconfig to not attempt to
28295 # update the cache, which makes it run faster.
28296 test -z "$cf_pathlist" && \
28297 cf_pathlist=`(ldconfig -NX -v) 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
28299 test -z "$cf_pathlist" &&
28300 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
28302 # This works with OpenBSD 6.5, which lists only filenames
28303 test -z "$cf_pathlist" &&
28304 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
28306 if test -z "$cf_pathlist"
28308 # dyld default path with MacOS
28309 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
28311 # do this to bypass check
28312 cf_cv_ld_searchpath='$HOME/lib'
28313 cf_pathlist="/usr/local/lib /lib /usr/lib"
28317 if test -z "$cf_pathlist"
28319 # Solaris is "SunOS"
28320 if test -f /usr/bin/isainfo && test "x`uname -s`" = xSunOS
28322 case x`(isainfo -b)` in
28324 cf_pathlist="$cf_pathlist /lib/64 /usr/lib/64"
28327 test -d /usr/ccs/lib && cf_pathlist="$cf_pathlist /usr/ccs/lib"
28328 cf_pathlist="$cf_pathlist /lib /usr/lib"
28331 { echo "$as_me:28331: WARNING: problem with Solaris architecture" >&5
28332 echo "$as_me: WARNING: problem with Solaris architecture" >&2;}
28338 if test -z "$cf_pathlist"
28341 if test x"`uname -s`" = xHP-UX
28343 case x`getconf LONG_BIT` in
28345 cf_pathlist="/usr/lib/hpux64"
28348 cf_pathlist="/usr/lib/hpux32"
28356 # If nothing else, assume it is conventional
28357 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
28359 # Finally, check that this is only directories
28360 for cf_path in $0 $cf_pathlist
28362 if test -d "$cf_path"; then
28363 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
28364 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
28368 # Ensure that it is nonempty
28369 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
28372 echo "$as_me:28372: result: $cf_cv_ld_searchpath" >&5
28373 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
28375 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
28377 cat >>confdefs.h <<\EOF
28378 #define HAVE_CURSES_DATA_BOOLNAMES 1
28381 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"
28382 ac_config_commands="$ac_config_commands default"
28383 cat >confcache <<\_ACEOF
28384 # This file is a shell script that caches the results of configure
28385 # tests run on this system so they can be shared between configure
28386 # scripts and configure runs, see configure's option --config-cache.
28387 # It is not useful on other systems. If it contains results you don't
28388 # want to keep, you may remove or edit it.
28390 # config.status only pays attention to the cache file if you give it
28391 # the --recheck option to rerun configure.
28393 # `ac_cv_env_foo' variables (set or unset) will be overriden when
28394 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28395 # following values.
28399 # The following way of writing the cache mishandles newlines in values,
28400 # but we know of no workaround that is simple, portable, and efficient.
28401 # So, don't put newlines in cache variables' values.
28402 # Ultrix sh set writes to stderr and can't be redirected directly,
28403 # and sets the high bit in the cache file unless we assign to the vars.
28406 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28408 # `set' does not quote correctly, so add quotes (double-quote
28409 # substitution turns \\\\ into \\, and sed turns \\ into \).
28412 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28415 # `set' quotes correctly as required by POSIX, so do not add quotes.
28417 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28424 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28426 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28428 if cmp -s $cache_file confcache; then :; else
28429 if test -w $cache_file; then
28430 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28431 cat confcache >$cache_file
28433 echo "not updating unwritable cache $cache_file"
28438 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28439 # Let make expand exec_prefix.
28440 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28442 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28443 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28444 # trailing colons and then remove the whole line if VPATH becomes empty
28445 # (actually we leave an empty line to preserve line numbers).
28446 if test "x$srcdir" = x.; then
28447 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28448 s/:*\$(srcdir):*/:/;
28449 s/:*\${srcdir}:*/:/;
28451 s/^\([^=]*=[ ]*\):*/\1/;
28457 DEFS=-DHAVE_CONFIG_H
28459 : "${CONFIG_STATUS=./config.status}"
28460 ac_clean_files_save=$ac_clean_files
28461 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28462 { echo "$as_me:28462: creating $CONFIG_STATUS" >&5
28463 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28464 cat >"$CONFIG_STATUS" <<_ACEOF
28466 # Generated automatically by configure.
28467 # Run this file to recreate the current configuration.
28468 # Compiler output produced by configure, useful for debugging
28469 # configure, is in config.log if it exists.
28472 SHELL=\${CONFIG_SHELL-$SHELL}
28473 ac_cs_invocation="\$0 \$@"
28475 CLICOLOR_FORCE= GREP_OPTIONS=
28476 unset CLICOLOR_FORCE GREP_OPTIONS
28479 cat >>"$CONFIG_STATUS" <<\_ACEOF
28480 # Be Bourne compatible
28481 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28484 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28488 # Name of the executable.
28489 as_me=`echo "$0" |sed 's,.*[\\/],,'`
28491 if expr a : '\(a\)' >/dev/null 2>&1; then
28497 rm -f conf$$ conf$$.exe conf$$.file
28499 if ln -s conf$$.file conf$$ 2>/dev/null; then
28500 # We could just check for DJGPP; but this test a) works b) is more generic
28501 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28502 if test -f conf$$.exe; then
28503 # Don't use ln at all; we don't have any links
28508 elif ln conf$$.file conf$$ 2>/dev/null; then
28513 rm -f conf$$ conf$$.exe conf$$.file
28515 as_executable_p="test -f"
28517 # Support unset when possible.
28518 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28525 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
28526 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
28527 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
28528 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
28529 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
28530 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
28531 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
28532 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
28535 # We need space, tab and new line, in precisely that order.
28541 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
28547 # Files that config.status was made for.
28548 if test -n "$ac_config_files"; then
28549 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
28552 if test -n "$ac_config_headers"; then
28553 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
28556 if test -n "$ac_config_links"; then
28557 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
28560 if test -n "$ac_config_commands"; then
28561 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
28564 cat >>"$CONFIG_STATUS" <<\EOF
28567 \`$as_me' instantiates files from templates according to the
28568 current configuration.
28570 Usage: $0 [OPTIONS] [FILE]...
28572 -h, --help print this help, then exit
28573 -V, --version print version number, then exit
28574 -d, --debug don't remove temporary files
28575 --recheck update $as_me by reconfiguring in the same conditions
28576 --file=FILE[:TEMPLATE]
28577 instantiate the configuration file FILE
28578 --header=FILE[:TEMPLATE]
28579 instantiate the configuration header FILE
28581 Configuration files:
28584 Configuration headers:
28587 Configuration commands:
28590 Report bugs to <dickey@invisible-island.net>."
28593 cat >>"$CONFIG_STATUS" <<EOF
28596 configured by $0, generated by GNU Autoconf 2.52.20210509,
28597 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28599 Copyright 2003-2020,2021 Thomas E. Dickey
28600 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
28601 Free Software Foundation, Inc.
28602 This config.status script is free software; the Free Software Foundation
28603 gives unlimited permission to copy, distribute and modify it."
28608 cat >>"$CONFIG_STATUS" <<\EOF
28609 # If no file are specified by the user, then we need to provide default
28610 # value. By we need to know if files were specified by the user.
28616 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28617 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28619 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
28623 *) # This is not an option, so the user has probably given explicit
28625 ac_need_defaults=false;;
28629 # Handling of the options.
28631 cat >>"$CONFIG_STATUS" <<EOF
28632 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28633 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
28634 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
28636 cat >>"$CONFIG_STATUS" <<\EOF
28637 --version | --vers* | -V )
28638 echo "$ac_cs_version"; exit 0 ;;
28640 # Conflict between --help and --header
28641 { { echo "$as_me:28641: error: ambiguous option: $1
28642 Try \`$0 --help' for more information." >&5
28643 echo "$as_me: error: ambiguous option: $1
28644 Try \`$0 --help' for more information." >&2;}
28645 { (exit 1); exit 1; }; };;
28646 --help | --hel | -h )
28647 echo "$ac_cs_usage"; exit 0 ;;
28648 --debug | --d* | -d )
28650 --file | --fil | --fi | --f )
28652 CONFIG_FILES="$CONFIG_FILES $1"
28653 ac_need_defaults=false;;
28654 --header | --heade | --head | --hea )
28656 CONFIG_HEADERS="$CONFIG_HEADERS $1"
28657 ac_need_defaults=false;;
28659 # This is an error.
28660 -*) { { echo "$as_me:28660: error: unrecognized option: $1
28661 Try \`$0 --help' for more information." >&5
28662 echo "$as_me: error: unrecognized option: $1
28663 Try \`$0 --help' for more information." >&2;}
28664 { (exit 1); exit 1; }; } ;;
28666 *) ac_config_targets="$ac_config_targets $1" ;;
28675 ## ----------------------- ##
28676 ## Running config.status. ##
28677 ## ----------------------- ##
28679 This file was extended by $as_me 2.52.20210509, executed with
28680 CONFIG_FILES = $CONFIG_FILES
28681 CONFIG_HEADERS = $CONFIG_HEADERS
28682 CONFIG_LINKS = $CONFIG_LINKS
28683 CONFIG_COMMANDS = $CONFIG_COMMANDS
28684 > "$ac_cs_invocation"
28685 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28690 cat >>"$CONFIG_STATUS" <<EOF
28692 # INIT-COMMANDS section.
28695 ### Special initialization commands, used to pass information from the
28696 ### configuration-run into config.status
28698 ALTERNATE_SYMS="$ALTERNATE_SYMS"
28700 CXX_NAME="$CXX_NAME"
28701 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
28702 DFT_LWR_MODEL="$DFT_LWR_MODEL"
28704 EXTRA_SUFFIX="$EXTRA_SUFFIX"
28705 FORM_NAME="$FORM_NAME"
28706 LDCONFIG="$LDCONFIG"
28707 LIBTOOL_VERSION="$LIBTOOL_VERSION"
28708 LIB_NAME="$LIB_NAME"
28709 LIB_PREFIX="$LIB_PREFIX"
28710 LIB_SUBSETS="$LIB_SUBSETS"
28711 LIB_SUFFIX="$LIB_SUFFIX"
28712 LIB_TRACING="$LIB_TRACING"
28714 MAKE_TERMINFO="$MAKE_TERMINFO"
28715 MENU_NAME="$MENU_NAME"
28716 NCURSES_MAJOR="$NCURSES_MAJOR"
28717 NCURSES_MINOR="$NCURSES_MINOR"
28718 NCURSES_OSPEED="$NCURSES_OSPEED"
28719 NCURSES_PATCH="$NCURSES_PATCH"
28720 PANEL_NAME="$PANEL_NAME"
28721 SRC_SUBDIRS="$SRC_SUBDIRS"
28722 TERMINFO="$TERMINFO"
28723 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
28724 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
28725 TICS_NAME="$TICS_NAME"
28726 TICS_SUFFIX="$TICS_SUFFIX"
28727 TIC_PATH="$TIC_PATH"
28728 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
28729 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
28730 TINFO_NAME="$TINFO_NAME"
28731 TINFO_SUFFIX="$TINFO_SUFFIX"
28732 UNALTERED_SYMS="$UNALTERED_SYMS"
28733 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
28734 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
28735 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
28736 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
28737 WILDCARD_SYMS="$WILDCARD_SYMS"
28738 WITH_CURSES_H="$with_curses_h"
28739 WITH_ECHO="${enable_echo:=yes}"
28740 WITH_OVERWRITE="$with_overwrite"
28741 cf_LIST_MODELS="$cf_list_models"
28742 cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE
28743 cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD
28744 cf_cv_abi_version="$cf_cv_abi_version"
28745 cf_cv_do_relink="$cf_cv_do_relink"
28746 cf_cv_do_reranlib="$cf_cv_do_reranlib"
28747 cf_cv_do_symlinks="$cf_cv_do_symlinks"
28748 cf_cv_enable_lp64="$cf_cv_enable_lp64"
28749 cf_cv_enable_opaque="$cf_cv_enable_opaque"
28750 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
28751 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
28752 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
28753 cf_cv_rel_version="$cf_cv_rel_version"
28754 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
28755 cf_cv_shared_soname='$cf_cv_shared_soname'
28756 cf_cv_shlib_version="$cf_cv_shlib_version"
28757 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
28758 cf_cv_system_name="$cf_cv_system_name"
28759 cf_cv_term_driver="$with_term_driver"
28760 cf_with_ada="$cf_with_ada"
28761 cf_with_cxx_binding="$cf_with_cxx_binding"
28762 cf_with_db_install="$cf_with_db_install"
28763 cf_with_manpages="$cf_with_manpages"
28764 cf_with_tests="$cf_with_tests"
28767 with_shared_cxx="$with_shared_cxx"
28771 cat >>"$CONFIG_STATUS" <<\EOF
28772 for ac_config_target in $ac_config_targets
28774 case "$ac_config_target" in
28775 # Handling of arguments.
28776 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
28777 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
28778 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
28779 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
28780 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
28781 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
28782 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28783 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
28784 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
28785 *) { { echo "$as_me:28785: error: invalid argument: $ac_config_target" >&5
28786 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28787 { (exit 1); exit 1; }; };;
28791 # If the user did not use the arguments to specify the items to instantiate,
28792 # then the envvar interface is used. Set only those that are not.
28793 # We use the long form for the default assignment because of an extremely
28794 # bizarre bug on SunOS 4.1.3.
28795 if "$ac_need_defaults"; then
28796 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28797 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28798 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28801 # Create a temporary directory, and hook for its removal unless debugging.
28804 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
28805 trap '{ (exit 1); exit 1; }' 1 2 13 15
28808 # Create a (secure) tmp directory for tmp files.
28811 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
28812 test -n "$tmp" && test -d "$tmp"
28815 tmp=$TMPDIR/cs$$-$RANDOM
28816 (umask 077 && mkdir $tmp)
28819 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
28820 { (exit 1); exit 1; }
28825 cat >>"$CONFIG_STATUS" <<EOF
28828 # CONFIG_FILES section.
28831 # No need to generate the scripts if there are no CONFIG_FILES.
28832 # This happens for instance when ./config.status config.h
28833 if test -n "\$CONFIG_FILES"; then
28834 # Protect against being on the right side of a sed subst in config.status.
28835 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
28836 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
28837 s,@SHELL@,$SHELL,;t t
28838 s,@exec_prefix@,$exec_prefix,;t t
28839 s,@prefix@,$prefix,;t t
28840 s,@program_transform_name@,$program_transform_name,;t t
28841 s,@bindir@,$bindir,;t t
28842 s,@sbindir@,$sbindir,;t t
28843 s,@libexecdir@,$libexecdir,;t t
28844 s,@datarootdir@,$datarootdir,;t t
28845 s,@datadir@,$datadir,;t t
28846 s,@sysconfdir@,$sysconfdir,;t t
28847 s,@sharedstatedir@,$sharedstatedir,;t t
28848 s,@localstatedir@,$localstatedir,;t t
28849 s,@runstatedir@,$runstatedir,;t t
28850 s,@libdir@,$libdir,;t t
28851 s,@includedir@,$includedir,;t t
28852 s,@oldincludedir@,$oldincludedir,;t t
28853 s,@infodir@,$infodir,;t t
28854 s,@mandir@,$mandir,;t t
28855 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
28856 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
28857 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
28858 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
28859 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
28860 s,@build_alias@,$build_alias,;t t
28861 s,@host_alias@,$host_alias,;t t
28862 s,@target_alias@,$target_alias,;t t
28863 s,@ECHO_C@,$ECHO_C,;t t
28864 s,@ECHO_N@,$ECHO_N,;t t
28865 s,@ECHO_T@,$ECHO_T,;t t
28866 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
28867 s,@DEFS@,$DEFS,;t t
28868 s,@LIBS@,$LIBS,;t t
28869 s,@top_builddir@,$top_builddir,;t t
28870 s,@GREP@,$GREP,;t t
28871 s,@EGREP@,$EGREP,;t t
28872 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
28873 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
28874 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
28875 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
28876 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
28877 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
28878 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
28879 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
28880 s,@VERSION@,$VERSION,;t t
28881 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
28882 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
28883 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
28884 s,@PACKAGE@,$PACKAGE,;t t
28885 s,@build@,$build,;t t
28886 s,@build_cpu@,$build_cpu,;t t
28887 s,@build_vendor@,$build_vendor,;t t
28888 s,@build_os@,$build_os,;t t
28889 s,@host@,$host,;t t
28890 s,@host_cpu@,$host_cpu,;t t
28891 s,@host_vendor@,$host_vendor,;t t
28892 s,@host_os@,$host_os,;t t
28893 s,@target@,$target,;t t
28894 s,@target_cpu@,$target_cpu,;t t
28895 s,@target_vendor@,$target_vendor,;t t
28896 s,@target_os@,$target_os,;t t
28897 s,@FGREP@,$FGREP,;t t
28899 s,@CFLAGS@,$CFLAGS,;t t
28900 s,@LDFLAGS@,$LDFLAGS,;t t
28901 s,@CPPFLAGS@,$CPPFLAGS,;t t
28902 s,@ac_ct_CC@,$ac_ct_CC,;t t
28903 s,@EXEEXT@,$EXEEXT,;t t
28904 s,@OBJEXT@,$OBJEXT,;t t
28905 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
28907 s,@LDCONFIG@,$LDCONFIG,;t t
28909 s,@CXXFLAGS@,$CXXFLAGS,;t t
28910 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
28912 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
28913 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
28914 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
28915 s,@LINT@,$LINT,;t t
28916 s,@LINT_OPTS@,$LINT_OPTS,;t t
28917 s,@LN_S@,$LN_S,;t t
28918 s,@cf_config_suffix@,$cf_config_suffix,;t t
28919 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
28920 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
28921 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
28922 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
28923 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
28924 s,@SET_MAKE@,$SET_MAKE,;t t
28925 s,@CTAGS@,$CTAGS,;t t
28926 s,@ETAGS@,$ETAGS,;t t
28927 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
28928 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
28929 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
28930 s,@RANLIB@,$RANLIB,;t t
28931 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
28933 s,@ac_ct_LD@,$ac_ct_LD,;t t
28935 s,@ac_ct_AR@,$ac_ct_AR,;t t
28937 s,@ac_ct_NM@,$ac_ct_NM,;t t
28938 s,@ARFLAGS@,$ARFLAGS,;t t
28939 s,@DESTDIR@,$DESTDIR,;t t
28940 s,@BUILD_CC@,$BUILD_CC,;t t
28941 s,@BUILD_CPP@,$BUILD_CPP,;t t
28942 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
28943 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
28944 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
28945 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
28946 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
28947 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
28948 s,@cf_list_models@,$cf_list_models,;t t
28949 s,@ABI_VERSION@,$ABI_VERSION,;t t
28950 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
28951 s,@LIBTOOL@,$LIBTOOL,;t t
28952 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
28953 s,@LT_UNDEF@,$LT_UNDEF,;t t
28954 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
28955 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
28956 s,@LIB_CREATE@,$LIB_CREATE,;t t
28957 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
28958 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
28959 s,@LIB_PREP@,$LIB_PREP,;t t
28960 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
28961 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
28962 s,@LIB_LINK@,$LIB_LINK,;t t
28963 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
28964 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
28965 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
28966 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
28967 s,@TICS_NAME@,$TICS_NAME,;t t
28968 s,@TINFO_NAME@,$TINFO_NAME,;t t
28969 s,@LIB_NAME@,$LIB_NAME,;t t
28970 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
28971 s,@CC_G_OPT@,$CC_G_OPT,;t t
28972 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
28973 s,@LD_MODEL@,$LD_MODEL,;t t
28974 s,@shlibdir@,$shlibdir,;t t
28975 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
28976 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
28977 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
28978 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
28979 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
28980 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
28981 s,@LINK_PROGS@,$LINK_PROGS,;t t
28982 s,@LINK_TESTS@,$LINK_TESTS,;t t
28983 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
28984 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
28985 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
28986 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
28987 s,@RPATH_LIST@,$RPATH_LIST,;t t
28988 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
28989 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
28990 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
28991 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
28992 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
28993 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
28994 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
28995 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
28996 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
28998 s,@ac_ct_TIC@,$ac_ct_TIC,;t t
28999 s,@INFOCMP@,$INFOCMP,;t t
29000 s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t
29001 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
29002 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
29003 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
29004 s,@XTERM_KBS@,$XTERM_KBS,;t t
29005 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
29006 s,@TERMINFO@,$TERMINFO,;t t
29007 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
29008 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
29009 s,@TERMPATH@,$TERMPATH,;t t
29010 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
29011 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
29012 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
29013 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
29014 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
29015 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
29016 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
29017 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
29018 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
29019 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
29020 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
29021 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
29022 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
29023 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
29024 s,@RGB_PATH@,$RGB_PATH,;t t
29025 s,@no_x11_rgb@,$no_x11_rgb,;t t
29026 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
29027 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
29028 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
29029 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
29030 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
29031 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
29032 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
29033 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
29034 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
29035 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
29036 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
29037 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
29038 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
29039 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
29040 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
29041 s,@PTHREAD@,$PTHREAD,;t t
29042 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
29043 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
29044 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
29045 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
29046 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
29047 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
29048 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
29049 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
29050 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
29051 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
29052 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
29053 s,@NCURSES_WGETCH_EVENTS@,$NCURSES_WGETCH_EVENTS,;t t
29054 s,@EXP_WIN32_DRIVER@,$EXP_WIN32_DRIVER,;t t
29055 s,@INTERNALS_HDR@,$INTERNALS_HDR,;t t
29056 s,@ECHO_LT@,$ECHO_LT,;t t
29057 s,@ECHO_LD@,$ECHO_LD,;t t
29058 s,@RULE_CC@,$RULE_CC,;t t
29059 s,@SHOW_CC@,$SHOW_CC,;t t
29060 s,@ECHO_CC@,$ECHO_CC,;t t
29061 s,@ECHO_LINK@,$ECHO_LINK,;t t
29062 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
29063 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
29064 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
29065 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
29066 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
29067 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
29068 s,@ADAFLAGS@,$ADAFLAGS,;t t
29069 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
29070 s,@ADA_TRACE@,$ADA_TRACE,;t t
29071 s,@MATH_LIB@,$MATH_LIB,;t t
29072 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
29073 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
29074 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
29075 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
29076 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
29077 s,@TEST_LIBS@,$TEST_LIBS,;t t
29078 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
29079 s,@CXXCPP@,$CXXCPP,;t t
29080 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
29081 s,@CXX_AR@,$CXX_AR,;t t
29082 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
29083 s,@CXXLIBS@,$CXXLIBS,;t t
29084 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
29085 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
29086 s,@M4_exists@,$M4_exists,;t t
29087 s,@cf_ada_make@,$cf_ada_make,;t t
29088 s,@cf_ada_config@,$cf_ada_config,;t t
29089 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
29090 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
29091 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
29092 s,@cf_compile_generics@,$cf_compile_generics,;t t
29093 s,@cf_generic_objects@,$cf_generic_objects,;t t
29094 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
29095 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
29096 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
29097 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
29098 s,@USE_GNAT_MAKE_GPR@,$USE_GNAT_MAKE_GPR,;t t
29099 s,@USE_GNAT_GPRBUILD@,$USE_GNAT_GPRBUILD,;t t
29100 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
29101 s,@cf_ada_package@,$cf_ada_package,;t t
29102 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
29103 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
29104 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
29105 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
29106 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
29107 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
29108 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
29109 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
29110 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
29111 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
29112 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
29113 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
29114 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
29115 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
29116 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
29117 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
29118 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
29119 s,@TICS_LIBS@,$TICS_LIBS,;t t
29120 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
29121 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
29122 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
29123 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
29124 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
29125 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
29126 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
29127 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
29128 s,@includesubdir@,$includesubdir,;t t
29129 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
29130 s,@TICS_LIST@,$TICS_LIST,;t t
29131 s,@TINFO_LIST@,$TINFO_LIST,;t t
29132 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
29133 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
29134 s,@FORM_NAME@,$FORM_NAME,;t t
29135 s,@MENU_NAME@,$MENU_NAME,;t t
29136 s,@PANEL_NAME@,$PANEL_NAME,;t t
29137 s,@CXX_NAME@,$CXX_NAME,;t t
29138 s,@TEST_ARGS@,$TEST_ARGS,;t t
29139 s,@TEST_DEPS@,$TEST_DEPS,;t t
29140 s,@TEST_ARG2@,$TEST_ARG2,;t t
29141 s,@TEST_DEP2@,$TEST_DEP2,;t t
29142 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
29143 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
29144 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
29145 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
29146 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
29147 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
29148 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
29149 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
29150 s,@cross_compiling@,$cross_compiling,;t t
29151 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
29152 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
29153 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
29154 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
29155 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
29156 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
29157 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
29158 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
29159 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
29160 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
29161 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
29162 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
29167 cat >>"$CONFIG_STATUS" <<\EOF
29168 # Split the substitutions into bite-sized pieces for seds with
29169 # small command number limits, like on Digital OSF/1 and HP-UX.
29170 ac_max_sed_lines=48
29171 ac_sed_frag=1 # Number of current file.
29172 ac_beg=1 # First line for current file.
29173 ac_end=$ac_max_sed_lines # Line after last line for current file.
29176 while "$ac_more_lines"; do
29177 if test "$ac_beg" -gt 1; then
29178 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29180 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29182 if test ! -s $tmp/subs.frag; then
29183 ac_more_lines=false
29185 # The purpose of the label and of the branching condition is to
29186 # speed up the sed processing (if there are no `@' at all, there
29187 # is no need to browse any of the substitutions).
29188 # These are the two extra sed commands mentioned above.
29190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29191 # It is possible to make a multiline substitution using escaped newlines.
29192 # Ensure that we do not split the substitution between script fragments.
29194 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
29195 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
29196 if test -s $tmp/subs.next; then
29197 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
29198 if test ! -s $tmp/subs.edit; then
29199 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
29200 if test ! -s $tmp/subs.edit; then
29201 if test "$ac_beg" -gt 1; then
29202 ac_end=`expr "$ac_end" - 1`
29209 if test -z "$ac_sed_cmds"; then
29210 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29212 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29214 ac_sed_frag=`expr "$ac_sed_frag" + 1`
29216 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
29219 if test -z "$ac_sed_cmds"; then
29222 fi # test -n "$CONFIG_FILES"
29225 cat >>"$CONFIG_STATUS" <<\EOF
29226 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29227 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29229 - | *:- | *:-:* ) # input from stdin
29231 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29232 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29233 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29234 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29235 * ) ac_file_in=$ac_file.in ;;
29238 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29239 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29240 X"$ac_file" : 'X\(//\)[^/]' \| \
29241 X"$ac_file" : 'X\(//\)$' \| \
29242 X"$ac_file" : 'X\(/\)' \| \
29243 . : '\(.\)' 2>/dev/null ||
29245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29247 /^X\(\/\/\)$/{ s//\1/; q; }
29248 /^X\(\/\).*/{ s//\1/; q; }
29250 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
29251 { case "$ac_dir" in
29252 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
29256 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
29257 case $as_mkdir_dir in
29258 # Skip DOS drivespec
29259 ?:) as_incr_dir=$as_mkdir_dir ;;
29261 as_incr_dir=$as_incr_dir/$as_mkdir_dir
29262 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
29267 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
29268 # A "../" for each directory in $ac_dir_suffix.
29269 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
29271 ac_dir_suffix= ac_dots=
29276 if test -z "$ac_dots"; then
29279 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
29281 [\\/]* | ?:[\\/]* )
29282 ac_srcdir="$srcdir$ac_dir_suffix";
29283 ac_top_srcdir="$srcdir" ;;
29284 *) # Relative path.
29285 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
29286 ac_top_srcdir="$ac_dots$srcdir" ;;
29290 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29291 *) ac_INSTALL=$ac_dots$INSTALL ;;
29294 if test x"$ac_file" != x-; then
29295 { echo "$as_me:29295: creating $ac_file" >&5
29296 echo "$as_me: creating $ac_file" >&6;}
29299 # Let's still pretend it is `configure' which instantiates (i.e., don't
29300 # use $as_me), people would be surprised to read:
29301 # /* config.h. Generated automatically by config.status. */
29302 configure_input="Generated automatically from `echo $ac_file_in |
29303 sed 's,.*/,,'` by configure."
29305 # First look for the input files in the build tree, otherwise in the
29307 ac_file_inputs=`IFS=:
29308 for f in $ac_file_in; do
29310 -) echo $tmp/stdin ;;
29312 # Absolute (can't be DOS-style, as IFS=:)
29313 test -f "$f" || { { echo "$as_me:29313: error: cannot find input file: $f" >&5
29314 echo "$as_me: error: cannot find input file: $f" >&2;}
29315 { (exit 1); exit 1; }; }
29318 if test -f "$f"; then
29321 elif test -f "$srcdir/$f"; then
29326 { { echo "$as_me:29326: error: cannot find input file: $f" >&5
29327 echo "$as_me: error: cannot find input file: $f" >&2;}
29328 { (exit 1); exit 1; }; }
29331 done` || { (exit 1); exit 1; }
29333 cat >>"$CONFIG_STATUS" <<\EOF
29334 ac_warn_datarootdir=no
29335 if test x"$ac_file" != x-; then
29336 for ac_item in $ac_file_inputs
29338 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
29339 if test -n "$ac_seen"; then
29340 ac_used=`grep '@datarootdir@' "$ac_item"`
29341 if test -z "$ac_used"; then
29342 { echo "$as_me:29342: WARNING: datarootdir was used implicitly but not set:
29344 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
29346 ac_warn_datarootdir=yes
29349 ac_seen=`grep '${datarootdir}' "$ac_item"`
29350 if test -n "$ac_seen"; then
29351 { echo "$as_me:29351: WARNING: datarootdir was used explicitly but not set:
29353 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
29355 ac_warn_datarootdir=yes
29360 if test "x$ac_warn_datarootdir" = xyes; then
29361 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
29365 cat >>"$CONFIG_STATUS" <<EOF
29369 cat >>"$CONFIG_STATUS" <<\EOF
29371 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29372 s,@configure_input@,$configure_input,;t t
29373 s,@srcdir@,$ac_srcdir,;t t
29374 s,@top_srcdir@,$ac_top_srcdir,;t t
29375 s,@INSTALL@,$ac_INSTALL,;t t
29376 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29378 if test x"$ac_file" != x-; then
29379 cp "$tmp/out" "$ac_file"
29381 for ac_name in prefix exec_prefix datarootdir
29383 ac_seen=`${FGREP-fgrep} -n '${'$ac_name'[:=].*}' "$ac_file"`
29384 if test -n "$ac_seen"; then
29385 ac_init=`${EGREP-egrep} '[ ]*'$ac_name'[ ]*=' "$ac_file"`
29386 if test -z "$ac_init"; then
29387 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
29388 { echo "$as_me:29388: WARNING: Variable $ac_name is used but was not set:
29390 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
29395 ${EGREP-egrep} -n '@[a-z_][a-z_0-9]+@' "$ac_file" >$tmp/out
29396 ${EGREP-egrep} -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>$tmp/out
29397 if test -s $tmp/out; then
29398 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
29399 { echo "$as_me:29399: WARNING: Some variables may not be substituted:
29401 echo "$as_me: WARNING: Some variables may not be substituted:
29411 cat >>"$CONFIG_STATUS" <<\EOF
29414 # CONFIG_HEADER section.
29417 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29418 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29420 # ac_d sets the value in "#define NAME VALUE" lines.
29421 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29422 ac_dB='[ ].*$,\1#\2'
29425 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
29426 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29427 ac_iB='\([ ]\),\1#\2define\3'
29430 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29431 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29432 ac_uB='$,\1#\2define\3'
29436 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29437 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29439 - | *:- | *:-:* ) # input from stdin
29441 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29442 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29443 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29444 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29445 * ) ac_file_in=$ac_file.in ;;
29448 test x"$ac_file" != x- && { echo "$as_me:29448: creating $ac_file" >&5
29449 echo "$as_me: creating $ac_file" >&6;}
29451 # First look for the input files in the build tree, otherwise in the
29453 ac_file_inputs=`IFS=:
29454 for f in $ac_file_in; do
29456 -) echo $tmp/stdin ;;
29458 # Absolute (can't be DOS-style, as IFS=:)
29459 test -f "$f" || { { echo "$as_me:29459: error: cannot find input file: $f" >&5
29460 echo "$as_me: error: cannot find input file: $f" >&2;}
29461 { (exit 1); exit 1; }; }
29464 if test -f "$f"; then
29467 elif test -f "$srcdir/$f"; then
29472 { { echo "$as_me:29472: error: cannot find input file: $f" >&5
29473 echo "$as_me: error: cannot find input file: $f" >&2;}
29474 { (exit 1); exit 1; }; }
29477 done` || { (exit 1); exit 1; }
29478 # Remove the trailing spaces.
29479 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29483 # Transform confdefs.h into a list of #define's. We won't use it as a sed
29484 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
29485 # be either 'cat' or 'sort'.
29486 cat confdefs.h | uniq >conftest.vals
29488 # Break up conftest.vals because some shells have a limit on
29489 # the size of here documents, and old seds have small limits too.
29491 rm -f conftest.tail
29492 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
29493 while grep . conftest.vals >/dev/null
29495 # Write chunks of a limited-size here document to conftest.frag.
29496 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS"
29497 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
29498 echo 'CEOF' >> "$CONFIG_STATUS"
29499 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail
29500 rm -f conftest.vals
29501 mv conftest.tail conftest.vals
29503 rm -f conftest.vals
29505 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
29507 echo ' cat >> conftest.edit <<CEOF
29508 /@DEFS@/r conftest.frag
29511 sed -f conftest.edit $tmp/in > $tmp/out
29513 mv $tmp/out $tmp/in
29514 rm -f conftest.edit conftest.frag
29515 ' >> "$CONFIG_STATUS"
29517 cat >>"$CONFIG_STATUS" <<\EOF
29518 # Let's still pretend it is `configure' which instantiates (i.e., don't
29519 # use $as_me), people would be surprised to read:
29520 # /* config.h. Generated automatically by config.status. */
29521 if test x"$ac_file" = x-; then
29522 echo "/* Generated automatically by configure. */" >$tmp/config.h
29524 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
29526 cat $tmp/in >>$tmp/config.h
29528 if test x"$ac_file" != x-; then
29529 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
29530 { echo "$as_me:29530: $ac_file is unchanged" >&5
29531 echo "$as_me: $ac_file is unchanged" >&6;}
29533 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29534 X"$ac_file" : 'X\(//\)[^/]' \| \
29535 X"$ac_file" : 'X\(//\)$' \| \
29536 X"$ac_file" : 'X\(/\)' \| \
29537 . : '\(.\)' 2>/dev/null ||
29539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29540 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29541 /^X\(\/\/\)$/{ s//\1/; q; }
29542 /^X\(\/\).*/{ s//\1/; q; }
29544 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
29545 { case "$ac_dir" in
29546 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
29550 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
29551 case $as_mkdir_dir in
29552 # Skip DOS drivespec
29553 ?:) as_incr_dir=$as_mkdir_dir ;;
29555 as_incr_dir=$as_incr_dir/$as_mkdir_dir
29556 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
29563 mv "$tmp/config.h" "$ac_file"
29567 rm -f $tmp/config.h
29571 cat >>"$CONFIG_STATUS" <<\EOF
29573 # CONFIG_COMMANDS section.
29575 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29576 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29577 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29581 if test "x$cf_with_tests" != xno ; then
29585 if test ! -d "$srcdir/$cf_dir" ; then
29587 elif test -f "$srcdir/$cf_dir/programs" ; then
29588 $AWK -f "$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile
29594 cf_prefix=$LIB_PREFIX
29596 case "$cf_cv_shlib_version" in
29597 (cygdll|msysdll|mingw|msvcdll)
29598 TINFO_NAME=$TINFO_ARG_SUFFIX
29603 if test -n "$TINFO_SUFFIX" ; then
29604 case "$TINFO_SUFFIX" in
29606 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
29607 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^tw'$EXTRA_SUFFIX'//'`
29610 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
29611 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^t'$EXTRA_SUFFIX'//'`
29614 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
29615 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^w'$EXTRA_SUFFIX'//'`
29620 for cf_dir in $SRC_SUBDIRS
29622 if test ! -d "$srcdir/$cf_dir" ; then
29624 elif test -f "$srcdir/$cf_dir/modules" ; then
29629 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
29631 cf_awk_program="$cf_awk_program\
29632 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
29633 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
29637 if test "x$WILDCARD_SYMS" = xno
29639 cf_awk_program="$cf_awk_program\
29640 /[ ]_\\*;/ { skip=1; next; }\
29644 if test "x$cf_awk_program" != "x"
29646 cat >>$cf_dir/Makefile <<CF_EOF
29648 # Generated by CF_LIB_RULES
29649 resulting.map: $UNALTERED_SYMS
29650 $AWK 'BEGIN { skip = 1; last=""; } \
29652 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
29653 skip = 0; last = \$\$0; } \
29654 END { print last; }' < "$UNALTERED_SYMS" >\$@
29657 rm -f resulting.map
29661 for cf_item in $cf_LIST_MODELS
29667 cf_depsuf=$cf_suffix
29670 case "$cf_cv_system_name" in
29678 cf_depsuf=$cf_suffix
29681 case "$cf_cv_system_name" in
29689 cf_depsuf=$cf_suffix
29692 case "$cf_cv_system_name" in
29695 cf_depsuf=$cf_suffix
29699 cf_depsuf='.dll.lib'
29701 (cygwin*|msys*|mingw*)
29707 cf_depsuf=$cf_suffix
29713 cf_depsuf=$cf_suffix
29717 cf_depsuf=$cf_suffix
29723 cf_depsuf=$cf_suffix
29736 cf_depsuf=$cf_suffix
29739 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
29741 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
29742 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
29745 if test "$cf_dir" = "c++"
29748 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
29750 eval cf_libname="\$${cf_map_lib_basename}_NAME"
29754 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
29756 eval cf_libname="\$${cf_map_lib_basename}_NAME"
29759 test -z "$cf_libname" && cf_libname="$cf_dir"
29760 if test "$cf_item" = shared ; then
29761 if test -n "${LIB_SUFFIX}"
29763 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
29765 cf_shared_suffix="$cf_suffix"
29767 if test "$cf_cv_do_symlinks" = yes ; then
29770 case "$cf_cv_shlib_version" in
29772 cf_version_name=REL_VERSION
29775 cf_version_name=ABI_VERSION
29779 if test -n "$cf_version_name"
29781 case "$cf_cv_system_name" in
29784 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
29787 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
29791 if test -n "${USE_LIB_SUFFIX}"
29793 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
29795 cf_shared_suffix="$cf_suffix"
29798 # cygwin needs import library, and has unique naming convention
29799 # use autodetected ${cf_prefix} for import lib and static lib, but
29800 # use 'cyg' prefix for shared lib.
29801 case "$cf_cv_shlib_version" in
29803 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
29804 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
29807 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
29808 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
29811 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
29812 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
29815 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
29816 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
29822 if test -n "$cf_add_lib"
29824 Libs_To_Make="$Libs_To_Make $cf_add_lib"
29828 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
29829 Libs_To_Make="$Libs_To_Make $cf_add_lib"
29832 if test "$cf_dir" = ncurses ; then
29833 cf_subsets="$LIB_SUBSETS"
29834 cf_r_parts="$cf_subsets"
29835 cf_liblist="$Libs_To_Make"
29837 while test -n "$cf_r_parts"
29839 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
29840 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
29841 if test "$cf_l_parts" != "$cf_r_parts" ; then
29843 case "$cf_l_parts" in
29845 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
29848 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
29854 if test -n "$cf_add_lib"; then
29855 Libs_To_Make="$cf_add_lib $Libs_To_Make"
29862 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
29865 if test "$cf_dir" = c++; then
29866 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
29868 for cf_item in $Libs_To_Make
29874 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
29877 for cf_test in $cf_list
29879 if test "$cf_test" = "$cf_item"
29881 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
29886 test -n "$cf_item" && cf_list="$cf_list $cf_item"
29888 Libs_To_Make="$cf_list"
29892 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
29893 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
29894 "$cf_dir/Makefile" >$cf_dir/Makefile.out
29895 mv "$cf_dir/Makefile.out" "$cf_dir/Makefile"
29897 $AWK -f "$srcdir/mk-0th.awk" \
29898 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
29899 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
29901 for cf_subset in $cf_subsets
29904 for cf_item in $cf_LIST_MODELS
29907 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
29909 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
29912 if test "$CXX_MODEL" = SHARED; then
29913 case "$cf_cv_shlib_version" in
29914 (cygdll|msysdll|mingw|msvcdll)
29915 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
29917 echo "${as_me:-configure}:29917: testing overriding CXX_MODEL to SHARED ..." 1>&5
29919 with_shared_cxx=yes
29922 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
29930 cf_depsuf=$cf_suffix
29933 case "$cf_cv_system_name" in
29941 cf_depsuf=$cf_suffix
29944 case "$cf_cv_system_name" in
29952 cf_depsuf=$cf_suffix
29955 case "$cf_cv_system_name" in
29958 cf_depsuf=$cf_suffix
29962 cf_depsuf='.dll.lib'
29964 (cygwin*|msys*|mingw*)
29970 cf_depsuf=$cf_suffix
29976 cf_depsuf=$cf_suffix
29980 cf_depsuf=$cf_suffix
29986 cf_depsuf=$cf_suffix
29999 cf_depsuf=$cf_suffix
30002 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30004 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30005 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30009 (libtool) cf_subdir='obj_lo' ;;
30010 (normal) cf_subdir='objects' ;;
30011 (debug) cf_subdir='obj_g' ;;
30012 (profile) cf_subdir='obj_p' ;;
30014 case "$cf_cv_system_name" in
30016 cf_subdir='objects' ;;
30018 cf_subdir='obj_s' ;;
30022 # Test for case where we build libtinfo with a different name.
30024 if test "$cf_dir" = ncurses ; then
30025 case "$cf_subset" in
30027 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30030 cf_libname=$TINFO_LIB_SUFFIX
30033 cf_libname=$TICS_LIB_SUFFIX
30036 elif test "$cf_dir" = c++ ; then
30038 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30040 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30042 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30045 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30047 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30049 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30051 if test -n "${USE_ARG_SUFFIX}" ; then
30052 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
30053 cf_suffix=`echo "$cf_suffix" |sed -e "s%^${USE_LIB_SUFFIX}%%"`
30056 # These dependencies really are for development, not
30057 # builds, but they are useful in porting, too.
30058 cf_depend="../include/ncurses_cfg.h"
30059 if test "$srcdir" = "."; then
30062 cf_reldir="\${srcdir}"
30065 if test -f "$srcdir/$cf_dir/$cf_dir.priv.h" ; then
30066 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
30067 elif test -f "$srcdir/$cf_dir/curses.priv.h" ; then
30068 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
30072 old_cf_suffix="$cf_suffix"
30073 if test "$cf_cv_shlib_version_infix" = yes ; then
30074 if test -n "$USE_LIB_SUFFIX" ; then
30075 case "$USE_LIB_SUFFIX" in
30077 cf_libname=`echo "$cf_libname" | sed 's/tw'$EXTRA_SUFFIX'$//'`
30078 cf_suffix=`echo "$cf_suffix" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30079 cf_dir_suffix=tw$EXTRA_SUFFIX
30082 cf_libname=`echo "$cf_libname" | sed 's/t'$EXTRA_SUFFIX'$//'`
30083 cf_suffix=`echo "$cf_suffix" | sed 's/^t'$EXTRA_SUFFIX'//'`
30084 cf_dir_suffix=t$EXTRA_SUFFIX
30087 cf_libname=`echo "$cf_libname" | sed 's/w'$EXTRA_SUFFIX'$//'`
30088 cf_suffix=`echo "$cf_suffix" | sed 's/^w'$EXTRA_SUFFIX'//'`
30089 cf_dir_suffix=w$EXTRA_SUFFIX
30092 cf_libname=`echo "$cf_libname" | sed 's/'$EXTRA_SUFFIX'$//'`
30093 cf_suffix=`echo "$cf_suffix" | sed 's/^'$EXTRA_SUFFIX'//'`
30094 cf_dir_suffix=$EXTRA_SUFFIX
30100 $AWK -f "$srcdir/mk-1st.awk" \
30101 name=${cf_libname}${cf_dir_suffix} \
30102 traces=$LIB_TRACING \
30104 CXX_MODEL=$CXX_MODEL \
30106 prefix=$cf_prefix \
30107 suffix=$cf_suffix \
30108 subset=$cf_subset \
30109 driver=$cf_cv_term_driver \
30111 TermlibRoot=$TINFO_NAME \
30112 TermlibSuffix=$TINFO_SUFFIX \
30113 ShlibVer=$cf_cv_shlib_version \
30114 ShlibVerInfix=$cf_cv_shlib_version_infix \
30115 ReLink=${cf_cv_do_relink:-no} \
30116 ReRanlib=${cf_cv_do_reranlib:-yes} \
30117 DoLinks=$cf_cv_do_symlinks \
30118 rmSoLocs=$cf_cv_rm_so_locs \
30119 ldconfig="$LDCONFIG" \
30120 overwrite=$WITH_OVERWRITE \
30121 depend="$cf_depend" \
30123 libtool_version="$LIBTOOL_VERSION" \
30124 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30126 cf_suffix="$old_cf_suffix"
30128 for cf_subdir2 in $cf_subdirs lib
30130 test "$cf_subdir" = "$cf_subdir2" && break
30132 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
30133 $AWK -f "$srcdir/mk-2nd.awk" \
30135 traces=$LIB_TRACING \
30138 subset=$cf_subset \
30141 crenames=$cf_cv_prog_CC_c_o \
30142 cxxrenames=$cf_cv_prog_CXX_c_o \
30143 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30144 cf_subdirs="$cf_subdirs $cf_subdir"
30149 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >>Makefile
30152 for cf_dir in $SRC_SUBDIRS
30154 if test ! -d "$srcdir/$cf_dir" ; then
30158 if test -f "$cf_dir/Makefile" ; then
30161 echo 'libs \' >> Makefile
30162 echo 'install.libs \' >> Makefile
30163 echo 'uninstall.libs ::' >> Makefile
30164 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >> Makefile
30169 if test -f "$srcdir/$cf_dir/modules" ; then
30171 if test -f "$srcdir/$cf_dir/headers" ; then
30172 cat >> Makefile <<CF_EOF
30173 install.includes \\
30174 uninstall.includes \\
30178 echo 'lint \' >> Makefile
30180 cat >> Makefile <<CF_EOF
30186 uninstall.$cf_dir ::
30187 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
30189 elif test -f "$srcdir/$cf_dir/headers" ; then
30190 cat >> Makefile <<CF_EOF
30195 install.includes \\
30196 uninstall.includes ::
30197 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
30202 if test "x$cf_with_db_install" = xyes; then
30203 cat >> Makefile <<CF_EOF
30205 install.libs uninstall.libs \\
30206 install.data uninstall.data ::
30207 $MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
30210 cat >> Makefile <<CF_EOF
30212 install.libs uninstall.libs ::
30213 ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
30217 if test "x$cf_with_manpages" = xyes; then
30218 cat >> Makefile <<CF_EOF
30222 ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ )
30226 cat >> Makefile <<CF_EOF
30229 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
30230 rm -f headers.sh headers.sed mk_shared_lib.sh
30231 rm -f edit_man.* man_alias.*
30232 rm -rf \${DIRS_TO_MAKE}
30235 # Special case: tack's manpage lives in its own directory.
30236 if test "x$cf_with_manpages" = xyes; then
30237 if test "x$cf_with_tack" = "xyes"; then
30238 cat >> Makefile <<CF_EOF
30242 ( cd tack && \${MAKE} \${TOP_MFLAGS} \$@ )
30247 rm -f headers.sed headers.sh
30249 echo creating headers.sh
30250 cat >headers.sh <<CF_EOF
30252 # This shell script is generated by the 'configure' script. It is invoked in a
30253 # subdirectory of the build tree. It generates a sed-script in the parent
30254 # directory that is used to adjust includes for header files that reside in a
30255 # subdirectory of /usr/include, etc.
30257 while test \$# != 3
30259 PRG="\$PRG \$1"; shift
30264 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
30265 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
30266 echo installing \$SRC in \$DST
30269 if test "$WITH_CURSES_H" = yes; then
30270 cat >>headers.sh <<CF_EOF
30273 END=\`basename \$DST\`
30274 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
30276 NAME=\`basename \$i\`
30277 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
30281 echo "" >> \$TMPSED
30287 cat >>headers.sh <<CF_EOF
30290 END=\`basename \$DST\`
30291 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
30293 NAME=\`basename \$i\`
30294 if test "\$NAME" = "curses.h"
30296 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
30299 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
30303 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
30308 cat >>headers.sh <<CF_EOF
30310 sed -f \$TMPSED \$SRC > \$TMPSRC
30311 NAME=\`basename \$SRC\`
30313 if test "$WITH_CURSES_H" != yes; then
30314 cat >>headers.sh <<CF_EOF
30315 test "\$NAME" = "curses.h" && NAME=ncurses.h
30318 cat >>headers.sh <<CF_EOF
30319 # Just in case someone gzip'd manpages, remove the conflicting copy.
30320 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
30322 eval \$PRG \$TMPSRC \$DST/\$NAME
30323 rm -f \$TMPSRC \$TMPSED
30326 chmod 0755 headers.sh
30328 for cf_dir in $SRC_SUBDIRS
30330 if test ! -d "$srcdir/$cf_dir" ; then
30334 if test -f "$srcdir/$cf_dir/headers" ; then
30335 $AWK -f "$srcdir/mk-hdr.awk" \
30336 subset="$LIB_SUBSETS" \
30337 compat="$WITH_CURSES_H" \
30338 "$srcdir/$cf_dir/headers" >>$cf_dir/Makefile
30341 if test -f "$srcdir/$cf_dir/modules" ; then
30342 if test "$cf_dir" != "c++" ; then
30343 cat >>$cf_dir/Makefile <<"CF_EOF"
30344 depend : ${AUTO_SRC}
30345 makedepend -- ${CPPFLAGS} -- ${C_SRC}
30347 # DO NOT DELETE THIS LINE -- make depend depends on it.
30353 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
30354 if test -z "$USE_OLD_MAKERULES" ; then
30355 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile
30363 cat >>"$CONFIG_STATUS" <<\EOF
30365 { (exit 0); exit 0; }
30367 chmod +x "$CONFIG_STATUS"
30368 ac_clean_files=$ac_clean_files_save
30370 # configure is writing to config.log, and then calls config.status.
30371 # config.status does its own redirection, appending to config.log.
30372 # Unfortunately, on DOS this fails, as config.log is still kept open
30373 # by configure, so config.status won't be able to write to it; its
30374 # output is simply discarded. So we exec the FD to /dev/null,
30375 # effectively closing config.log, so it can be properly (re)opened and
30376 # appended to by config.status. When coming back to configure, we
30377 # need to make the FD available again.
30378 if test "$no_create" != yes; then
30381 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
30383 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30384 # would make configure fail if this is the last instruction.
30385 "$ac_cs_success" || { (exit 1); exit 1; }
30387 ${MAKE:-make} preinstall