2 # From configure.in Revision: 1.756 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20230114.
6 # Copyright 2003-2022,2023 Thomas E. Dickey
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Avoid depending upon Character Ranges.
13 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits='0123456789'
17 as_cr_alnum=$as_cr_Letters$as_cr_digits
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
33 # Name of the executable.
34 as_me=`echo "$0" |sed 's,.*[\\/],,'`
36 if expr a : '\(a\)' >/dev/null 2>&1; then
42 rm -f conf$$ conf$$.exe conf$$.file
44 if ln -s conf$$.file conf$$ 2>/dev/null; then
45 # We could just check for DJGPP; but this test a) works b) is more generic
46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 if test -f conf$$.exe; then
48 # Don't use ln at all; we don't have any links
53 elif ln conf$$.file conf$$ 2>/dev/null; then
58 rm -f conf$$ conf$$.exe conf$$.file
60 as_executable_p="test -f"
62 # Support unset when possible.
63 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
70 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
80 # We need space, tab and new line, in precisely that order.
86 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
89 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 # so uname gets run too.
91 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
98 ac_default_prefix=/usr/local
103 SHELL=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
106 # This variable seems obsolete. It should probably be removed, and
107 # only ac_max_sed_lines should be used.
108 : "${ac_max_here_lines=38}"
110 ac_unique_file="ncurses/base/lib_initscr.c"
111 # Factoring default headers for most tests.
112 ac_includes_default="\
115 # include <sys/types.h>
118 # include <sys/stat.h>
129 # if !STDC_HEADERS && HAVE_MEMORY_H
135 # include <strings.h>
138 # include <inttypes.h>
148 # Initialize some variables set by options.
150 ac_init_version=false
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
160 program_transform_name=s,x,x,
168 # Installation directory options.
169 # These are left unexpanded so users can "make install exec_prefix=/foo"
170 # and all the variables that are supposed to be based on exec_prefix
171 # by default will actually change.
172 # Use braces instead of parens because sh, perl, etc. also accept them.
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datarootdir='${prefix}/share'
177 datadir='${datarootdir}'
178 sysconfdir='${prefix}/etc'
179 sharedstatedir='${prefix}/com'
180 localstatedir='${prefix}/var'
181 runstatedir='${localstatedir}/run'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${datarootdir}/info'
186 mandir='${datarootdir}/man'
188 # Identity of this package.
198 # If the previous option needs an argument, assign it.
199 if test -n "$ac_prev"; then
200 eval "$ac_prev=\$ac_option"
205 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
207 # Accept the important Cygnus configure options, so we can diagnose typos.
211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
216 -build | --build | --buil | --bui | --bu)
217 ac_prev=build_alias ;;
218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
219 build_alias=$ac_optarg ;;
221 -cache-file | --cache-file | --cache-fil | --cache-fi \
222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
223 ac_prev=cache_file ;;
224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
226 cache_file=$ac_optarg ;;
229 cache_file=config.cache ;;
231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
235 datadir=$ac_optarg ;;
237 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
238 | --dataroo | --dataro | --datar)
239 ac_prev=datarootdir ;;
240 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
241 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
242 datarootdir=$ac_optarg ;;
244 -disable-* | --disable-*)
245 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
246 # Reject names that are not valid shell variable names.
247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
249 { (exit 1); exit 1; }; }
250 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
251 eval "enable_$ac_feature=no" ;;
253 -enable-* | --enable-*)
254 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
255 # Reject names that are not valid shell variable names.
256 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
257 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
258 { (exit 1); exit 1; }; }
259 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
261 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
264 eval "enable_$ac_feature='$ac_optarg'" ;;
266 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
267 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
268 | --exec | --exe | --ex)
269 ac_prev=exec_prefix ;;
270 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
271 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
272 | --exec=* | --exe=* | --ex=*)
273 exec_prefix=$ac_optarg ;;
275 -gas | --gas | --ga | --g)
276 # Obsolete; use --with-gas.
279 -help | --help | --hel | --he | -h)
281 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
282 ac_init_help=recursive ;;
283 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
284 ac_init_help=short ;;
286 -host | --host | --hos | --ho)
287 ac_prev=host_alias ;;
288 -host=* | --host=* | --hos=* | --ho=*)
289 host_alias=$ac_optarg ;;
291 -includedir | --includedir | --includedi | --included | --include \
292 | --includ | --inclu | --incl | --inc)
293 ac_prev=includedir ;;
294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
295 | --includ=* | --inclu=* | --incl=* | --inc=*)
296 includedir=$ac_optarg ;;
298 -infodir | --infodir | --infodi | --infod | --info | --inf)
300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
301 infodir=$ac_optarg ;;
303 -libdir | --libdir | --libdi | --libd)
305 -libdir=* | --libdir=* | --libdi=* | --libd=*)
308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
309 | --libexe | --libex | --libe)
310 ac_prev=libexecdir ;;
311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
312 | --libexe=* | --libex=* | --libe=*)
313 libexecdir=$ac_optarg ;;
315 -localstatedir | --localstatedir | --localstatedi | --localstated \
316 | --localstate | --localstat | --localsta | --localst \
317 | --locals | --local | --loca | --loc | --lo)
318 ac_prev=localstatedir ;;
319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
320 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
321 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
322 localstatedir=$ac_optarg ;;
324 -runstatedir | --runstatedir | --runstatedi | --runstated \
325 | --runstate | --runstat | --runsta | --runst \
326 | --runs | --run | --ru)
327 ac_prev=runstatedir ;;
328 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
329 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
330 | --runs=* | --run=* | --ru=*)
331 runstatedir=$ac_optarg ;;
333 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
335 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
339 # Obsolete; use --without-fp.
342 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
346 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
347 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
350 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
351 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
352 | --oldin | --oldi | --old | --ol | --o)
353 ac_prev=oldincludedir ;;
354 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
355 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
356 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
357 oldincludedir=$ac_optarg ;;
359 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
361 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
364 -program-prefix | --program-prefix | --program-prefi | --program-pref \
365 | --program-pre | --program-pr | --program-p)
366 ac_prev=program_prefix ;;
367 -program-prefix=* | --program-prefix=* | --program-prefi=* \
368 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
369 program_prefix=$ac_optarg ;;
371 -program-suffix | --program-suffix | --program-suffi | --program-suff \
372 | --program-suf | --program-su | --program-s)
373 ac_prev=program_suffix ;;
374 -program-suffix=* | --program-suffix=* | --program-suffi=* \
375 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
376 program_suffix=$ac_optarg ;;
378 -program-transform-name | --program-transform-name \
379 | --program-transform-nam | --program-transform-na \
380 | --program-transform-n | --program-transform- \
381 | --program-transform | --program-transfor \
382 | --program-transfo | --program-transf \
383 | --program-trans | --program-tran \
384 | --progr-tra | --program-tr | --program-t)
385 ac_prev=program_transform_name ;;
386 -program-transform-name=* | --program-transform-name=* \
387 | --program-transform-nam=* | --program-transform-na=* \
388 | --program-transform-n=* | --program-transform-=* \
389 | --program-transform=* | --program-transfor=* \
390 | --program-transfo=* | --program-transf=* \
391 | --program-trans=* | --program-tran=* \
392 | --progr-tra=* | --program-tr=* | --program-t=*)
393 program_transform_name=$ac_optarg ;;
395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
396 | -silent | --silent | --silen | --sile | --sil)
399 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
401 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
403 sbindir=$ac_optarg ;;
405 -sharedstatedir | --sharedstatedir | --sharedstatedi \
406 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
407 | --sharedst | --shareds | --shared | --share | --shar \
409 ac_prev=sharedstatedir ;;
410 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
411 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
412 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
414 sharedstatedir=$ac_optarg ;;
416 -site | --site | --sit)
418 -site=* | --site=* | --sit=*)
421 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
423 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
426 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
427 | --syscon | --sysco | --sysc | --sys | --sy)
428 ac_prev=sysconfdir ;;
429 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
430 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
431 sysconfdir=$ac_optarg ;;
433 -target | --target | --targe | --targ | --tar | --ta | --t)
434 ac_prev=target_alias ;;
435 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
436 target_alias=$ac_optarg ;;
438 -v | -verbose | --verbose | --verbos | --verbo | --verb)
441 -version | --version | --versio | --versi | --vers | -V)
445 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
446 # Reject names that are not valid shell variable names.
447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
448 { echo "$as_me: error: invalid package name: $ac_package" >&2
449 { (exit 1); exit 1; }; }
450 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
452 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
455 eval "with_$ac_package='$ac_optarg'" ;;
457 -without-* | --without-*)
458 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
459 # Reject names that are not valid shell variable names.
460 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
461 { echo "$as_me: error: invalid package name: $ac_package" >&2
462 { (exit 1); exit 1; }; }
463 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
464 eval "with_$ac_package=no" ;;
467 # Obsolete; use --with-x.
470 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
471 | --x-incl | --x-inc | --x-in | --x-i)
472 ac_prev=x_includes ;;
473 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
474 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
475 x_includes=$ac_optarg ;;
477 -x-libraries | --x-libraries | --x-librarie | --x-librari \
478 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
479 ac_prev=x_libraries ;;
480 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
481 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
482 x_libraries=$ac_optarg ;;
484 -*) { echo "$as_me: error: unrecognized option: $ac_option
485 Try \`$0 --help' for more information." >&2
486 { (exit 1); exit 1; }; }
490 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
491 # Reject names that are not valid shell variable names.
492 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
493 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
494 { (exit 1); exit 1; }; }
495 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
496 eval "$ac_envvar='$ac_optarg'"
497 export "$ac_envvar" ;;
500 # FIXME: should be removed in autoconf 3.0.
501 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
502 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
503 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
504 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}"
510 if test -n "$ac_prev"; then
511 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
512 { echo "$as_me: error: missing argument to $ac_option" >&2
513 { (exit 1); exit 1; }; }
516 # Be sure to have absolute paths.
517 for ac_var in exec_prefix prefix
519 eval ac_val=$`echo "$ac_var"`
521 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # Be sure to have absolute paths.
528 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
529 localstatedir libdir includedir oldincludedir infodir mandir
531 eval ac_val=$`echo "$ac_var"`
533 [\\/$]* | ?:[\\/]* ) ;;
534 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
535 { (exit 1); exit 1; }; };;
539 # There might be people who depend on the old broken behavior: `$host'
540 # used to hold the argument of --host etc.
545 # FIXME: should be removed in autoconf 3.0.
546 if test "x$host_alias" != x; then
547 if test "x$build_alias" = x; then
548 cross_compiling=maybe
549 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
550 If a cross compiler is detected then cross compile mode will be used." >&2
551 elif test "x$build_alias" != "x$host_alias"; then
557 test -n "$host_alias" && ac_tool_prefix=$host_alias-
559 test "$silent" = yes && exec 6>/dev/null
561 # Find the source files, if location was not specified.
562 if test -z "$srcdir"; then
563 ac_srcdir_defaulted=yes
564 # Try the directory containing this script, then its parent.
566 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
567 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
569 if test ! -r "$srcdir/$ac_unique_file"; then
573 ac_srcdir_defaulted=no
575 if test ! -r "$srcdir/$ac_unique_file"; then
576 if test "$ac_srcdir_defaulted" = yes; then
577 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
578 { (exit 1); exit 1; }; }
580 { echo "$as_me: error: cannot find sources in $srcdir" >&2
581 { (exit 1); exit 1; }; }
584 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
585 ac_env_build_alias_set=${build_alias+set}
586 ac_env_build_alias_value=$build_alias
587 ac_cv_env_build_alias_set=${build_alias+set}
588 ac_cv_env_build_alias_value=$build_alias
589 ac_env_host_alias_set=${host_alias+set}
590 ac_env_host_alias_value=$host_alias
591 ac_cv_env_host_alias_set=${host_alias+set}
592 ac_cv_env_host_alias_value=$host_alias
593 ac_env_target_alias_set=${target_alias+set}
594 ac_env_target_alias_value=$target_alias
595 ac_cv_env_target_alias_set=${target_alias+set}
596 ac_cv_env_target_alias_value=$target_alias
597 ac_env_CC_set=${CC+set}
599 ac_cv_env_CC_set=${CC+set}
600 ac_cv_env_CC_value=$CC
601 ac_env_CFLAGS_set=${CFLAGS+set}
602 ac_env_CFLAGS_value=$CFLAGS
603 ac_cv_env_CFLAGS_set=${CFLAGS+set}
604 ac_cv_env_CFLAGS_value=$CFLAGS
605 ac_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_env_LDFLAGS_value=$LDFLAGS
607 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
608 ac_cv_env_LDFLAGS_value=$LDFLAGS
609 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_env_CPPFLAGS_value=$CPPFLAGS
611 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
612 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
613 ac_env_CPP_set=${CPP+set}
614 ac_env_CPP_value=$CPP
615 ac_cv_env_CPP_set=${CPP+set}
616 ac_cv_env_CPP_value=$CPP
617 ac_env_CXX_set=${CXX+set}
618 ac_env_CXX_value=$CXX
619 ac_cv_env_CXX_set=${CXX+set}
620 ac_cv_env_CXX_value=$CXX
621 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
622 ac_env_CXXFLAGS_value=$CXXFLAGS
623 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
624 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
625 ac_env_CXXCPP_set=${CXXCPP+set}
626 ac_env_CXXCPP_value=$CXXCPP
627 ac_cv_env_CXXCPP_set=${CXXCPP+set}
628 ac_cv_env_CXXCPP_value=$CXXCPP
631 # Report the --help message.
633 if test "$ac_init_help" = "long"; then
634 # Omit some internal or obsolete options to make the list less imposing.
635 # This message is too long to be a string in the A/UX 3.1 sh.
637 \`configure' configures this package to adapt to many kinds of systems.
639 Usage: $0 [OPTION]... [VAR=VALUE]...
641 To assign environment variables (e.g., CC, CFLAGS...), specify them as
642 VAR=VALUE. See below for descriptions of some of the useful variables.
644 Defaults for the options are specified in brackets.
647 -h, --help display this help and exit
648 --help=short display options specific to this package
649 --help=recursive display the short help of all the included packages
650 -V, --version display version information and exit
651 -q, --quiet, --silent do not print \`checking...' messages
652 --cache-file=FILE cache test results in FILE [disabled]
653 -C, --config-cache alias for \`--cache-file=config.cache'
654 -n, --no-create do not create output files
655 --srcdir=DIR find the sources in DIR [configure dir or \`..']
660 Installation directories:
661 --prefix=PREFIX install architecture-independent files in PREFIX
663 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
666 By default, \`make install' will install all the files in
667 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
668 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
669 for instance \`--prefix=\$HOME'.
671 For better control, use the options below.
673 Fine tuning of the installation directories:
674 --bindir=DIR user executables [EPREFIX/bin]
675 --sbindir=DIR system admin executables [EPREFIX/sbin]
676 --libexecdir=DIR program executables [EPREFIX/libexec]
677 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
678 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
679 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
680 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
681 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
682 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
683 --libdir=DIR object code libraries [EPREFIX/lib]
684 --includedir=DIR C header files [PREFIX/include]
685 --oldincludedir=DIR C header files for non-gcc [/usr/include]
686 --infodir=DIR info documentation [DATAROOTDIR/info]
687 --mandir=DIR man documentation [DATAROOTDIR/man]
693 --program-prefix=PREFIX prepend PREFIX to installed program names
694 --program-suffix=SUFFIX append SUFFIX to installed program names
695 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
698 --build=BUILD configure for building on BUILD [guessed]
699 --host=HOST build programs to run on HOST [BUILD]
700 --target=TARGET configure for building compilers for TARGET [HOST]
704 if test -n "$ac_init_help"; then
709 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
710 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
713 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
714 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
716 --with-rel-version=XXX override derived release version
717 --with-abi-version=XXX override derived ABI version
718 --with-system-type=XXX test: override derived host system-type
719 --with-abi-altered=XXX override visible ABI version, for packaging
720 --without-ada suppress check for Ada compiler, don't build demo
721 --without-cxx do not adjust ncurses bool to match C++
722 --without-cxx-binding do not build C++ binding and demo
723 --disable-db-install suppress install of terminal database
724 --without-manpages suppress install of manpages
725 --without-progs suppress build/install with programs (e.g., tic)
726 --without-tack suppress build/install with tack program
727 --without-tests suppress build/install with test-programs
728 --without-curses-h install curses.h as ncurses.h only
729 --with-config-suffix=X suffixes ncursesXX-config file
730 --with-pkg-config{=path} enable/disable use of pkg-config
731 --with-pkg-config-libdir=XXX use given directory for installing pc-files
732 --enable-pc-files generate and install .pc files for pkg-config
733 --with-pc-suffix suffixes pc-files
734 --enable-mixed-case tic should assume mixed-case filenames
735 --with-install-prefix prefixes actual install-location ($DESTDIR)
736 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
737 --with-build-cc=XXX the build C compiler ($BUILD_CC)
738 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
739 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
740 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
741 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
742 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
743 Options to Specify the Libraries Built/Used:
744 --disable-libtool-version enable to use libtool's incompatible naming scheme
745 --with-libtool generate libraries with libtool
746 --with-shared generate shared-libraries
747 --with-normal generate normal-libraries (default)
748 --with-debug generate debug-libraries (default)
749 --with-profile generate profile-libraries
750 --with-cxx-shared generate C++ shared-libraries
751 --with-lib-prefix override library-prefix
752 --with-termlib generate separate terminfo library
753 --with-ticlib generate separate tic library
754 --enable-rpath use rpath option when generating shared libraries
755 --disable-relink relink shared libraries during install
756 --with-shlib-version=X Specify rel or abi version for shared libs
757 --with-libtool-opts=XXX specify additional libtool options
758 --with-export-syms=XXX limit exported symbols using libtool
759 --with-versioned-syms=X markup versioned symbols using ld
760 --with-gpm use Alessandro Rubini's GPM library
761 --without-dlsym do not use dlsym() to load GPM dynamically
762 --with-pcre2 use PCRE2 for regular-expressions
763 --with-sysmouse use sysmouse (FreeBSD console)
764 --disable-lib-suffixes disable library suffixes
765 --disable-rpath-hack don't add rpath options for additional libraries
766 --disable-pkg-ldflags disable extra LDFLAGS for package-scripts
767 Fine-Tuning Your Configuration:
768 --with-extra-suffix=X append extra suffix to header/library paths
769 --disable-overwrite put headers in subdir, omit link to -lcurses
770 --disable-database do not use terminfo, only fallbacks/termcap
771 --with-database=XXX specify terminfo source to install
772 --with-hashed-db specify hashed-database library
773 --with-fallbacks=XXX specify list of fallback terminal descriptions
774 --with-tic-path=XXX specify path of tic for fallbacks
775 --with-infocmp-path=XXX specify path of infocmp for fallbacks
776 --without-xterm-new specify if xterm terminfo should be old version
777 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
778 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
779 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
780 --disable-big-core assume machine has little memory
781 --disable-big-strings assume compiler has only standard-size strings
782 --enable-termcap compile in termcap fallback support
783 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
784 --enable-getcap fast termcap load, no xrefs to terminfo
785 --enable-getcap-cache cache translated termcaps in ~/.terminfo
786 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
787 --disable-root-environ restrict root use of ncurses environment variables
788 --disable-root-access restrict file-access when running setuid
789 --enable-symlinks make tic use symbolic links not hard links
790 --enable-broken_linker compile with broken-linker support code
791 --enable-bsdpad recognize BSD-style prefix padding
792 --enable-widec compile with wide-char/UTF-8 code
793 --disable-lp64 allow chtype to be long (ignore _LP64)
794 --disable-largefile omit support for large files
795 --disable-tparm-varargs compile tparm() without varargs interface
796 --disable-tic-depends link tic library without explicit dependency on ncurses library
797 --enable-wattr-macros enable wattr* macros
798 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
799 --with-bool=TYPE override fallback type of bool variable
800 --with-caps=alt compile with alternate Caps file
801 --with-chtype=TYPE override type of chtype
802 --with-ospeed=TYPE override type of ospeed variable
803 --with-mmask-t=TYPE override type of mmask_t
804 --with-ccharw-max=XXX override size CCHARW_MAX
805 --enable-signed-char compile using signed Boolean's in term.h
806 --with-tparm-arg=TYPE override parameter type of tparm
807 --with-rcs-ids compile-in RCS identifiers
808 Options to Specify How Manpages are Installed:
809 --with-manpage-format specify manpage-format: gzip/compress/bzip2/xz,
810 BSDI/normal and optionally formatted/catonly,
812 --with-manpage-renames specify manpage-renaming
813 --with-manpage-aliases specify manpage-aliases using .so
814 --with-manpage-symlinks specify manpage-aliases using symlinks
815 --with-manpage-tbl specify manpage processing with tbl
817 --disable-ext-funcs disable function-extensions
818 --enable-sp-funcs enable SCREEN-extensions
819 --enable-term-driver enable terminal-driver
820 --enable-const compile with extra/non-standard const
821 --enable-ext-colors compile for 256-color support
822 --enable-ext-mouse compile for extended mouse-encoding
823 --enable-ext-putwin compile with extended putwin/screendump
824 --enable-no-padding compile with $NCURSES_NO_PADDING code
825 --enable-sigwinch compile with SIGWINCH handler
826 --enable-tcap-names compile with user-definable terminal capabilities
828 --with-pthread use POSIX thread library
829 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
830 --enable-weak-symbols enable weak-symbols for pthreads
831 --enable-reentrant compile with reentrant code
832 --enable-opaque-curses make curses WINDOW, etc., "opaque"
833 --enable-opaque-form make form-library structures "opaque"
834 --enable-opaque-menu make menu-library structures "opaque"
835 --enable-opaque-panel make panel-library structures "opaque"
836 --with-wrap-prefix=XXX override prefix used for public variables
838 --without-develop disable development options
839 --enable-hard-tabs compile with hard-tabs code
840 --enable-xmc-glitch compile with support for xmc (magic-cookie)
842 --disable-assumed-color do not assume anything about default-colors
843 --disable-hashmap compile without hashmap scrolling-optimization
844 --enable-colorfgbg compile-in experimental $COLORFGBG code
845 --enable-fvisibility compile with -fvisibility=hidden
846 --enable-interop compile-in interop bindings
847 --enable-safe-sprintf compile with experimental safe-sprintf code
848 --disable-scroll-hints compile without scroll-hints code
849 --enable-wgetch-events compile with wgetch-events code
850 --enable-exp-win32 compile with experimental-Windows driver
851 Testing/development Options:
852 --disable-echo do not display "compiling" commands
853 --disable-stripping do not strip (debug info) installed executables
854 --enable-warnings test: turn on gcc compiler warnings
855 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics
856 --enable-string-hacks work around bogus compiler/loader warnings
857 --enable-assertions test: turn on generation of assertion code
858 --with-dmalloc test: use Gray Watson's dmalloc library
859 --with-dbmalloc test: use Conor Cahill's dbmalloc library
860 --with-valgrind test: use valgrind
861 --disable-leaks test: free permanent memory, analyze leaks
862 --enable-expanded test: generate functions for certain macros
863 --disable-macros test: use functions rather than macros
864 --with-trace test: add trace() function to all models of ncurses
865 --disable-gnat-projects test: disable GNAT projects even if usable
867 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
868 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
869 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
870 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
871 --with-ada-libname=XXX override default Ada library-name
872 --with-form-libname=XXX override form basename of library
873 --with-menu-libname=XXX override menu basename of library
874 --with-panel-libname=XXX override panel basename of library
875 --with-cxx-libname=XXX override ncurses++ basename of library
877 Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
885 CXX C++ compiler command
886 CXXFLAGS C++ compiler flags
887 CXXCPP C++ preprocessor
889 Use these variables to override the choices made by `configure' or to help
890 it to find libraries and programs with nonstandard names/locations.
895 if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
898 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
900 # A "../" for each directory in /$ac_subdir.
901 ac_dots=`echo "$ac_subdir" |
902 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
905 .) # No --srcdir option. We are building in place.
906 ac_sub_srcdir="$srcdir" ;;
907 [\\/]* | ?:[\\/]* ) # Absolute path.
908 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
910 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f "$ac_sub_srcdir/configure.gnu"; then
916 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
917 elif test -f "$ac_sub_srcdir/configure"; then
919 $SHELL "$ac_sub_srcdir/configure" --help=recursive
920 elif test -f "$ac_sub_srcdir/configure.ac" ||
921 test -f "$ac_sub_srcdir/configure.in"; then
923 "$ac_configure" --help
925 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
931 test -n "$ac_init_help" && exit 0
932 if "$ac_init_version"; then
935 Copyright 2003-2022,2023 Thomas E. Dickey
936 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
937 Free Software Foundation, Inc.
938 This configure script is free software; the Free Software Foundation
939 gives unlimited permission to copy, distribute and modify it.
945 This file contains any messages produced by compilers while
946 running configure, to aid debugging if configure makes a mistake.
948 It was created by $as_me, which was
949 generated by GNU Autoconf 2.52.20230114. Invocation command line was
960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
964 uname -v = `(uname -v) 2>/dev/null || echo unknown`
966 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
967 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
969 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
970 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
971 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
972 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
973 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
974 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
975 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
989 # Keep a trace of the command line.
990 # Strip out --no-create and --no-recursion so they do not pile up.
991 # Also quote any args containing shell meta-characters.
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998 | --no-cr | --no-c) ;;
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1001 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1002 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1003 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1005 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1008 # Get rid of the leading space.
1011 # When interrupted or exit'd, cleanup temporary files, and complete
1012 # config.log. We remove comments because anyway the quotes in there
1013 # would cause problems or look ugly.
1014 trap 'exit_status=$?
1015 # Save into config.log some information that might help in debugging.
1017 echo "## ----------------- ##" >&5
1018 echo "## Cache variables. ##" >&5
1019 echo "## ----------------- ##" >&5
1021 # The following way of writing the cache mishandles newlines in values,
1024 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1027 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1032 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1036 sed "/^$/d" confdefs.h >conftest.log
1037 if test -s conftest.log; then
1039 echo "## ------------ ##" >&5
1040 echo "## confdefs.h. ##" >&5
1041 echo "## ------------ ##" >&5
1043 cat conftest.log >&5
1046 test "$ac_signal" != 0 &&
1047 echo "$as_me: caught signal $ac_signal" >&5
1048 echo "$as_me: exit $exit_status" >&5
1049 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1052 for ac_signal in 1 2 13 15; do
1053 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
1057 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1058 rm -rf conftest* confdefs.h
1059 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1062 # Let the site file select an alternate cache file if it wants to.
1063 # Prefer explicitly selected file to automatically selected ones.
1064 if test -z "$CONFIG_SITE"; then
1065 if test "x$prefix" != xNONE; then
1066 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1068 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1071 for ac_site_file in $CONFIG_SITE; do
1072 if test -r "$ac_site_file"; then
1073 { echo "$as_me:1073: loading site script $ac_site_file" >&5
1074 echo "$as_me: loading site script $ac_site_file" >&6;}
1075 cat "$ac_site_file" >&5
1080 if test -r "$cache_file"; then
1081 # Some versions of bash will fail to source /dev/null (special
1082 # files actually), so we avoid doing that.
1083 if test -f "$cache_file"; then
1084 { echo "$as_me:1084: loading cache $cache_file" >&5
1085 echo "$as_me: loading cache $cache_file" >&6;}
1087 [\\/]* | ?:[\\/]* ) . $cache_file;;
1088 *) . ./$cache_file;;
1092 { echo "$as_me:1092: creating cache $cache_file" >&5
1093 echo "$as_me: creating cache $cache_file" >&6;}
1097 # Check that the precious variables saved in the cache have kept the same
1099 ac_cache_corrupted=false
1100 for ac_var in `(set) 2>&1 |
1101 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1102 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1103 eval ac_new_set=\$ac_env_${ac_var}_set
1104 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1105 eval ac_new_val="\$ac_env_${ac_var}_value"
1106 case "$ac_old_set,$ac_new_set" in
1108 { echo "$as_me:1108: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1109 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1110 ac_cache_corrupted=: ;;
1112 { echo "$as_me:1112: error: \`$ac_var' was not set in the previous run" >&5
1113 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1114 ac_cache_corrupted=: ;;
1117 if test "x$ac_old_val" != "x$ac_new_val"; then
1118 { echo "$as_me:1118: error: \`$ac_var' has changed since the previous run:" >&5
1119 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1120 { echo "$as_me:1120: former value: $ac_old_val" >&5
1121 echo "$as_me: former value: $ac_old_val" >&2;}
1122 { echo "$as_me:1122: current value: $ac_new_val" >&5
1123 echo "$as_me: current value: $ac_new_val" >&2;}
1124 ac_cache_corrupted=:
1127 # Pass precious variables to config.status. It doesn't matter if
1128 # we pass some twice (in addition to the command line arguments).
1129 if test "$ac_new_set" = set; then
1130 case "$ac_new_val" in
1131 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1132 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1133 ac_configure_args="$ac_configure_args '$ac_arg'"
1135 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1140 if "$ac_cache_corrupted"; then
1141 { echo "$as_me:1141: error: changes in the environment can compromise the build" >&5
1142 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1143 { { echo "$as_me:1143: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1144 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1145 { (exit 1); exit 1; }; }
1149 ac_cpp='$CPP $CPPFLAGS'
1150 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1151 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1153 ac_main_return="return"
1155 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1157 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1169 echo "#! $SHELL" >conftest.sh
1170 echo "exit 0" >>conftest.sh
1171 chmod +x conftest.sh
1172 if { (echo "$as_me:1172: PATH=\".;.\"; conftest.sh") >&5
1173 (PATH=".;."; conftest.sh) 2>&5
1175 echo "$as_me:1175: \$? = $ac_status" >&5
1176 (exit "$ac_status"); }; then
1177 ac_path_separator=';'
1181 PATH_SEPARATOR="$ac_path_separator"
1184 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1188 for ac_prog in ggrep grep
1190 # Extract the first word of "$ac_prog", so it can be a program name with args.
1191 set dummy $ac_prog; ac_word=$2
1192 echo "$as_me:1192: checking for $ac_word" >&5
1193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1194 if test "${ac_cv_prog_GREP+set}" = set; then
1195 echo $ECHO_N "(cached) $ECHO_C" >&6
1197 if test -n "$GREP"; then
1198 ac_cv_prog_GREP="$GREP" # Let the user override the test.
1200 ac_save_IFS=$IFS; IFS=$ac_path_separator
1202 for ac_dir in $ac_dummy; do
1204 test -z "$ac_dir" && ac_dir=.
1205 $as_executable_p "$ac_dir/$ac_word" || continue
1206 ac_cv_prog_GREP="$ac_prog"
1207 echo "$as_me:1207: found $ac_dir/$ac_word" >&5
1213 GREP=$ac_cv_prog_GREP
1214 if test -n "$GREP"; then
1215 echo "$as_me:1215: result: $GREP" >&5
1216 echo "${ECHO_T}$GREP" >&6
1218 echo "$as_me:1218: result: no" >&5
1219 echo "${ECHO_T}no" >&6
1222 test -n "$GREP" && break
1224 test -n "$GREP" || GREP=": "
1226 echo "$as_me:1226: checking for egrep" >&5
1227 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1228 if test "${ac_cv_path_EGREP+set}" = set; then
1229 echo $ECHO_N "(cached) $ECHO_C" >&6
1231 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1232 then ac_cv_path_EGREP="$GREP -E"
1234 for ac_prog in gegrep egrep
1236 # Extract the first word of "$ac_prog", so it can be a program name with args.
1237 set dummy $ac_prog; ac_word=$2
1238 echo "$as_me:1238: checking for $ac_word" >&5
1239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1240 if test "${ac_cv_path_EGREP+set}" = set; then
1241 echo $ECHO_N "(cached) $ECHO_C" >&6
1245 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
1248 ac_save_IFS=$IFS; IFS=$ac_path_separator
1250 for ac_dir in $ac_dummy; do
1252 test -z "$ac_dir" && ac_dir=.
1253 if $as_executable_p "$ac_dir/$ac_word"; then
1254 ac_cv_path_EGREP="$ac_dir/$ac_word"
1255 echo "$as_me:1255: found $ac_dir/$ac_word" >&5
1263 EGREP=$ac_cv_path_EGREP
1265 if test -n "$EGREP"; then
1266 echo "$as_me:1266: result: $EGREP" >&5
1267 echo "${ECHO_T}$EGREP" >&6
1269 echo "$as_me:1269: result: no" >&5
1270 echo "${ECHO_T}no" >&6
1273 test -n "$EGREP" && break
1275 test -n "$EGREP" || EGREP=": "
1277 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:1277: error: cannot find workable egrep" >&5
1278 echo "$as_me: error: cannot find workable egrep" >&2;}
1279 { (exit 1); exit 1; }; }
1282 echo "$as_me:1282: result: $ac_cv_path_EGREP" >&5
1283 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
1284 EGREP="$ac_cv_path_EGREP"
1286 NCURSES_MAJOR="`${EGREP-egrep} '^NCURSES_MAJOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1287 NCURSES_MINOR="`${EGREP-egrep} '^NCURSES_MINOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1288 NCURSES_PATCH="`${EGREP-egrep} '^NCURSES_PATCH[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1289 cf_cv_abi_version=${NCURSES_MAJOR}
1290 cf_cv_abi_default=${NCURSES_MAJOR}
1291 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1292 cf_cv_timestamp=`date`
1293 echo "$as_me:1293: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_default ($cf_cv_timestamp)" >&5
1294 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_default ($cf_cv_timestamp)" >&6
1296 if test -f "$srcdir/VERSION" ; then
1297 echo "$as_me:1297: checking for package version" >&5
1298 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1300 # if there are not enough fields, cut returns the last one...
1301 cf_field1=`sed -e '2,$d' "$srcdir/VERSION" |cut -f1`
1302 cf_field2=`sed -e '2,$d' "$srcdir/VERSION" |cut -f2`
1303 cf_field3=`sed -e '2,$d' "$srcdir/VERSION" |cut -f3`
1305 # this is how CF_BUNDLED_INTL uses $VERSION:
1306 VERSION="$cf_field1"
1308 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1309 test -z "$VERSION_MAJOR" && { { echo "$as_me:1309: error: missing major-version" >&5
1310 echo "$as_me: error: missing major-version" >&2;}
1311 { (exit 1); exit 1; }; }
1313 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1314 test -z "$VERSION_MINOR" && { { echo "$as_me:1314: error: missing minor-version" >&5
1315 echo "$as_me: error: missing minor-version" >&2;}
1316 { (exit 1); exit 1; }; }
1318 echo "$as_me:1318: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1319 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1321 echo "$as_me:1321: checking for package patch date" >&5
1322 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1323 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1324 case .$VERSION_PATCH in
1326 { { echo "$as_me:1326: error: missing patch-date $VERSION_PATCH" >&5
1327 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1328 { (exit 1); exit 1; }; }
1330 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1333 { { echo "$as_me:1333: error: illegal patch-date $VERSION_PATCH" >&5
1334 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1335 { (exit 1); exit 1; }; }
1338 echo "$as_me:1338: result: $VERSION_PATCH" >&5
1339 echo "${ECHO_T}$VERSION_PATCH" >&6
1341 { { echo "$as_me:1341: error: did not find $srcdir/VERSION" >&5
1342 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1343 { (exit 1); exit 1; }; }
1346 # show the actual data that we have for versions:
1347 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1349 echo "${as_me:-configure}:1349: testing ABI VERSION $VERSION ..." 1>&5
1351 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1353 echo "${as_me:-configure}:1353: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1355 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1357 echo "${as_me:-configure}:1357: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1359 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1361 echo "${as_me:-configure}:1361: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1366 cat >>confdefs.h <<EOF
1367 #define PACKAGE "$PACKAGE"
1370 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1372 cat >>confdefs.h <<EOF
1373 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1376 cat >>confdefs.h <<EOF
1377 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1380 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1382 # Check whether --with-rel-version or --without-rel-version was given.
1383 if test "${with_rel_version+set}" = set; then
1384 withval="$with_rel_version"
1385 { echo "$as_me:1385: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1386 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1387 cf_cv_rel_version=$withval
1390 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1391 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1393 if test -n "$NCURSES_MAJOR" ; then
1394 case $NCURSES_MAJOR in
1398 { { echo "$as_me:1398: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1399 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1400 { (exit 1); exit 1; }; }
1404 { { echo "$as_me:1404: error: Release major-version value is empty" >&5
1405 echo "$as_me: error: Release major-version value is empty" >&2;}
1406 { (exit 1); exit 1; }; }
1409 if test -n "$NCURSES_MINOR" ; then
1410 case $NCURSES_MINOR in
1414 { { echo "$as_me:1414: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1415 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1416 { (exit 1); exit 1; }; }
1420 { { echo "$as_me:1420: error: Release minor-version value is empty" >&5
1421 echo "$as_me: error: Release minor-version value is empty" >&2;}
1422 { (exit 1); exit 1; }; }
1425 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1427 # Check whether --with-abi-version or --without-abi-version was given.
1428 if test "${with_abi_version+set}" = set; then
1429 withval="$with_abi_version"
1431 if test "x$cf_cv_abi_version" != "x$withval"
1433 { echo "$as_me:1433: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1434 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1435 case "$cf_cv_rel_version" in
1437 cf_cv_rel_version=$withval.0
1440 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1444 cf_cv_abi_version=$withval
1447 if test -n "$cf_cv_abi_version" ; then
1448 case $cf_cv_abi_version in
1452 { { echo "$as_me:1452: error: ABI version is not a number: $cf_cv_abi_version" >&5
1453 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1454 { (exit 1); exit 1; }; }
1458 { { echo "$as_me:1458: error: ABI version value is empty" >&5
1459 echo "$as_me: error: ABI version value is empty" >&2;}
1460 { (exit 1); exit 1; }; }
1463 cf_cv_abi_default=$cf_cv_abi_version
1465 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1467 case "$cf_cv_rel_version" in
1469 cf_cv_rel_version=$with_abi_version.0
1475 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1476 if test -f "$ac_dir/install-sh"; then
1478 ac_install_sh="$ac_aux_dir/install-sh -c"
1480 elif test -f "$ac_dir/install.sh"; then
1482 ac_install_sh="$ac_aux_dir/install.sh -c"
1484 elif test -f "$ac_dir/shtool"; then
1486 ac_install_sh="$ac_aux_dir/shtool install -c"
1490 if test -z "$ac_aux_dir"; then
1491 { { echo "$as_me:1491: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1492 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1493 { (exit 1); exit 1; }; }
1495 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1496 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1497 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1499 # Make sure we can run config.sub.
1500 $ac_config_sub sun4 >/dev/null 2>&1 ||
1501 { { echo "$as_me:1501: error: cannot run $ac_config_sub" >&5
1502 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1503 { (exit 1); exit 1; }; }
1505 echo "$as_me:1505: checking build system type" >&5
1506 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1507 if test "${ac_cv_build+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 ac_cv_build_alias=$build_alias
1511 test -z "$ac_cv_build_alias" &&
1512 ac_cv_build_alias=`$ac_config_guess`
1513 test -z "$ac_cv_build_alias" &&
1514 { { echo "$as_me:1514: error: cannot guess build type; you must specify one" >&5
1515 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1516 { (exit 1); exit 1; }; }
1517 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1518 { { echo "$as_me:1518: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1519 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1520 { (exit 1); exit 1; }; }
1523 echo "$as_me:1523: result: $ac_cv_build" >&5
1524 echo "${ECHO_T}$ac_cv_build" >&6
1526 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1527 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1528 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1530 echo "$as_me:1530: checking host system type" >&5
1531 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1532 if test "${ac_cv_host+set}" = set; then
1533 echo $ECHO_N "(cached) $ECHO_C" >&6
1535 ac_cv_host_alias=$host_alias
1536 test -z "$ac_cv_host_alias" &&
1537 ac_cv_host_alias=$ac_cv_build_alias
1538 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1539 { { echo "$as_me:1539: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1540 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1541 { (exit 1); exit 1; }; }
1544 echo "$as_me:1544: result: $ac_cv_host" >&5
1545 echo "${ECHO_T}$ac_cv_host" >&6
1547 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1548 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1549 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1551 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1552 echo "$as_me:1552: checking target system type" >&5
1553 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1554 if test "${ac_cv_target+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
1557 ac_cv_target_alias=$target_alias
1558 test "x$ac_cv_target_alias" = "x" &&
1559 ac_cv_target_alias=$ac_cv_host_alias
1560 ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` ||
1561 { { echo "$as_me:1561: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1562 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1563 { (exit 1); exit 1; }; }
1566 echo "$as_me:1566: result: $ac_cv_target" >&5
1567 echo "${ECHO_T}$ac_cv_target" >&6
1568 target=$ac_cv_target
1569 target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1570 target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1571 target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1573 # The aliases save the names the user supplied, while $host etc.
1574 # will get canonicalized.
1575 test -n "$target_alias" &&
1576 test "$program_prefix$program_suffix$program_transform_name" = \
1578 program_prefix=${target_alias}-
1579 system_name="$host_os"
1581 system_name="`(uname -s -r) 2>/dev/null`"
1582 if test -z "$system_name" ; then
1583 system_name="`(hostname) 2>/dev/null`"
1586 test -n "$system_name" &&
1587 cat >>confdefs.h <<EOF
1588 #define SYSTEM_NAME "$system_name"
1591 if test "${cf_cv_system_name+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 cf_cv_system_name="$system_name"
1597 test -z "$system_name" && system_name="$cf_cv_system_name"
1598 test -n "$cf_cv_system_name" && echo "$as_me:1598: result: Configuring for $cf_cv_system_name" >&5
1599 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1601 if test ".$system_name" != ".$cf_cv_system_name" ; then
1602 echo "$as_me:1602: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1603 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1604 { { echo "$as_me:1604: error: \"Please remove config.cache and try again.\"" >&5
1605 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1606 { (exit 1); exit 1; }; }
1609 # Check whether --with-system-type or --without-system-type was given.
1610 if test "${with_system_type+set}" = set; then
1611 withval="$with_system_type"
1612 { echo "$as_me:1612: WARNING: overriding system type to $withval" >&5
1613 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1614 cf_cv_system_name=$withval
1619 ### Save the given $CFLAGS to allow user-override.
1620 cf_user_CFLAGS="$CFLAGS"
1622 ### Default install-location
1623 echo "$as_me:1623: checking for fgrep" >&5
1624 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
1625 if test "${ac_cv_path_FGREP+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
1629 then ac_cv_path_FGREP="$GREP -F"
1631 for ac_prog in gfgrep fgrep
1633 # Extract the first word of "$ac_prog", so it can be a program name with args.
1634 set dummy $ac_prog; ac_word=$2
1635 echo "$as_me:1635: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_path_FGREP+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
1645 ac_save_IFS=$IFS; IFS=$ac_path_separator
1647 for ac_dir in $ac_dummy; do
1649 test -z "$ac_dir" && ac_dir=.
1650 if $as_executable_p "$ac_dir/$ac_word"; then
1651 ac_cv_path_FGREP="$ac_dir/$ac_word"
1652 echo "$as_me:1652: found $ac_dir/$ac_word" >&5
1660 FGREP=$ac_cv_path_FGREP
1662 if test -n "$FGREP"; then
1663 echo "$as_me:1663: result: $FGREP" >&5
1664 echo "${ECHO_T}$FGREP" >&6
1666 echo "$as_me:1666: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1670 test -n "$FGREP" && break
1672 test -n "$FGREP" || FGREP=": "
1674 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:1674: error: cannot find workable fgrep" >&5
1675 echo "$as_me: error: cannot find workable fgrep" >&2;}
1676 { (exit 1); exit 1; }; }
1679 echo "$as_me:1679: result: $ac_cv_path_FGREP" >&5
1680 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
1681 FGREP="$ac_cv_path_FGREP"
1683 echo "$as_me:1683: checking for prefix" >&5
1684 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1685 if test "x$prefix" = "xNONE" ; then
1686 case "$cf_cv_system_name" in
1687 # non-vendor systems don't have a conflict
1688 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1691 (*) prefix=$ac_default_prefix
1695 echo "$as_me:1695: result: $prefix" >&5
1696 echo "${ECHO_T}$prefix" >&6
1698 if test "x$prefix" = "xNONE" ; then
1699 echo "$as_me:1699: checking for default include-directory" >&5
1700 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1701 test -n "$verbose" && echo 1>&6
1704 "$includedir/ncurses" \
1706 "$prefix/include/ncurses" \
1707 /usr/local/include \
1708 /usr/local/include/ncurses \
1710 /usr/include/ncurses
1712 cf_dir=`eval echo "$cf_symbol"`
1713 if test -f "$cf_dir/curses.h" ; then
1714 if ( ${FGREP-fgrep} NCURSES_VERSION "$cf_dir/curses.h" >/dev/null 2>&1 ) ; then
1715 includedir="$cf_symbol"
1716 test -n "$verbose" && echo $ECHO_N " found " 1>&6
1720 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1722 echo "$as_me:1722: result: $includedir" >&5
1723 echo "${ECHO_T}$includedir" >&6
1726 ### Defaults for ncurses ABI
1731 cf_dft_ext_colors=no
1734 cf_dft_ext_putwin=no
1735 cf_dft_ext_spfuncs=no
1736 cf_dft_filter_syms=no
1739 cf_dft_opaque_curses=no
1740 cf_dft_ordinate_type=short
1741 cf_dft_signed_char=no
1742 cf_dft_tparm_arg=long
1746 case x$cf_cv_abi_default in
1748 cf_dft_chtype=uint32_t
1749 cf_dft_ext_colors=yes
1750 cf_dft_ext_const=yes
1751 cf_dft_ext_mouse=yes
1752 cf_dft_ext_putwin=yes
1753 cf_dft_ext_spfuncs=yes
1754 cf_dft_filter_syms=yes
1756 cf_dft_mmask_t=uint32_t
1757 cf_dft_tparm_arg=intptr_t
1758 cf_dft_with_lp64=yes
1763 case x$cf_cv_abi_default in
1766 cf_dft_mmask_t=uint64_t
1767 cf_dft_opaque_curses=yes
1768 cf_dft_ordinate_type=int
1769 cf_dft_signed_char=yes
1770 # also: remove the wgetch-events feature in ABI 7
1774 ### override ABI version, e.g., packagers
1776 # Check whether --with-abi-altered or --without-abi-altered was given.
1777 if test "${with_abi_altered+set}" = set; then
1778 withval="$with_abi_altered"
1780 if test -n "$withval" ; then
1785 { { echo "$as_me:1785: error: ABI altered is not a number: $withval" >&5
1786 echo "$as_me: error: ABI altered is not a number: $withval" >&2;}
1787 { (exit 1); exit 1; }; }
1791 { { echo "$as_me:1791: error: ABI altered value is empty" >&5
1792 echo "$as_me: error: ABI altered value is empty" >&2;}
1793 { (exit 1); exit 1; }; }
1796 if test "$cf_cv_abi_version" != "$withval"
1798 { echo "$as_me:1798: WARNING: altering visible ABI from $cf_cv_abi_version to $withval" >&5
1799 echo "$as_me: WARNING: altering visible ABI from $cf_cv_abi_version to $withval" >&2;}
1800 cf_cv_abi_version=$withval
1805 ### Checks for programs.
1807 # Check whether --with-ada or --without-ada was given.
1808 if test "${with_ada+set}" = set; then
1810 cf_with_ada=$withval
1815 if test "x$cf_with_ada" = xyes
1817 cf_prog_cc="gnatgcc gcc cc"
1823 ac_cpp='$CPP $CPPFLAGS'
1824 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1825 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1827 ac_main_return="return"
1828 if test -n "$ac_tool_prefix"; then
1829 for ac_prog in $cf_prog_cc
1831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1833 echo "$as_me:1833: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1838 if test -n "$CC"; then
1839 ac_cv_prog_CC="$CC" # Let the user override the test.
1841 ac_save_IFS=$IFS; IFS=$ac_path_separator
1843 for ac_dir in $ac_dummy; do
1845 test -z "$ac_dir" && ac_dir=.
1846 $as_executable_p "$ac_dir/$ac_word" || continue
1847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1848 echo "$as_me:1848: found $ac_dir/$ac_word" >&5
1855 if test -n "$CC"; then
1856 echo "$as_me:1856: result: $CC" >&5
1857 echo "${ECHO_T}$CC" >&6
1859 echo "$as_me:1859: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1863 test -n "$CC" && break
1866 if test -z "$CC"; then
1868 for ac_prog in $cf_prog_cc
1870 # Extract the first word of "$ac_prog", so it can be a program name with args.
1871 set dummy $ac_prog; ac_word=$2
1872 echo "$as_me:1872: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 if test -n "$ac_ct_CC"; then
1878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1880 ac_save_IFS=$IFS; IFS=$ac_path_separator
1882 for ac_dir in $ac_dummy; do
1884 test -z "$ac_dir" && ac_dir=.
1885 $as_executable_p "$ac_dir/$ac_word" || continue
1886 ac_cv_prog_ac_ct_CC="$ac_prog"
1887 echo "$as_me:1887: found $ac_dir/$ac_word" >&5
1893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1894 if test -n "$ac_ct_CC"; then
1895 echo "$as_me:1895: result: $ac_ct_CC" >&5
1896 echo "${ECHO_T}$ac_ct_CC" >&6
1898 echo "$as_me:1898: result: no" >&5
1899 echo "${ECHO_T}no" >&6
1902 test -n "$ac_ct_CC" && break
1908 test -z "$CC" && { { echo "$as_me:1908: error: no acceptable cc found in \$PATH" >&5
1909 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1910 { (exit 1); exit 1; }; }
1912 # Provide some information about the compiler.
1913 echo "$as_me:1913:" \
1914 "checking for C compiler version" >&5
1915 ac_compiler=`set X $ac_compile; echo "$2"`
1916 { (eval echo "$as_me:1916: \"$ac_compiler --version </dev/null >&5\"") >&5
1917 (eval $ac_compiler --version </dev/null >&5) 2>&5
1919 echo "$as_me:1919: \$? = $ac_status" >&5
1920 (exit "$ac_status"); }
1921 { (eval echo "$as_me:1921: \"$ac_compiler -v </dev/null >&5\"") >&5
1922 (eval $ac_compiler -v </dev/null >&5) 2>&5
1924 echo "$as_me:1924: \$? = $ac_status" >&5
1925 (exit "$ac_status"); }
1926 { (eval echo "$as_me:1926: \"$ac_compiler -V </dev/null >&5\"") >&5
1927 (eval $ac_compiler -V </dev/null >&5) 2>&5
1929 echo "$as_me:1929: \$? = $ac_status" >&5
1930 (exit "$ac_status"); }
1932 cat >"conftest.$ac_ext" <<_ACEOF
1933 #line 1933 "configure"
1934 #include "confdefs.h"
1944 ac_clean_files_save=$ac_clean_files
1945 ac_clean_files="$ac_clean_files a.out a.exe"
1946 # Try to create an executable without -o first, disregard a.out.
1947 # It will help us diagnose broken compilers, and finding out an intuition
1949 echo "$as_me:1949: checking for C compiler default output" >&5
1950 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1951 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1952 if { (eval echo "$as_me:1952: \"$ac_link_default\"") >&5
1953 (eval $ac_link_default) 2>&5
1955 echo "$as_me:1955: \$? = $ac_status" >&5
1956 (exit "$ac_status"); }; then
1957 # Find the output, starting from the most likely. This scheme is
1958 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1960 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1961 ls a.out conftest 2>/dev/null;
1962 ls a.* conftest.* 2>/dev/null`; do
1964 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1965 a.out ) # We found the default executable, but exeext='' is most
1968 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1969 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1976 echo "$as_me: failed program was:" >&5
1977 cat "conftest.$ac_ext" >&5
1978 { { echo "$as_me:1978: error: C compiler cannot create executables" >&5
1979 echo "$as_me: error: C compiler cannot create executables" >&2;}
1980 { (exit 77); exit 77; }; }
1983 ac_exeext=$ac_cv_exeext
1984 echo "$as_me:1984: result: $ac_file" >&5
1985 echo "${ECHO_T}$ac_file" >&6
1987 # Check the compiler produces executables we can run. If not, either
1988 # the compiler is broken, or we cross compile.
1989 echo "$as_me:1989: checking whether the C compiler works" >&5
1990 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1991 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1992 # If not cross compiling, check that we can run a simple program.
1993 if test "$cross_compiling" != yes; then
1994 if { ac_try='./$ac_file'
1995 { (eval echo "$as_me:1995: \"$ac_try\"") >&5
1998 echo "$as_me:1998: \$? = $ac_status" >&5
1999 (exit "$ac_status"); }; }; then
2002 if test "$cross_compiling" = maybe; then
2005 { { echo "$as_me:2005: error: cannot run C compiled programs.
2006 If you meant to cross compile, use \`--host'." >&5
2007 echo "$as_me: error: cannot run C compiled programs.
2008 If you meant to cross compile, use \`--host'." >&2;}
2009 { (exit 1); exit 1; }; }
2013 echo "$as_me:2013: result: yes" >&5
2014 echo "${ECHO_T}yes" >&6
2016 rm -f a.out a.exe "conftest$ac_cv_exeext"
2017 ac_clean_files=$ac_clean_files_save
2018 # Check the compiler produces executables we can run. If not, either
2019 # the compiler is broken, or we cross compile.
2020 echo "$as_me:2020: checking whether we are cross compiling" >&5
2021 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2022 echo "$as_me:2022: result: $cross_compiling" >&5
2023 echo "${ECHO_T}$cross_compiling" >&6
2025 echo "$as_me:2025: checking for executable suffix" >&5
2026 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2027 if { (eval echo "$as_me:2027: \"$ac_link\"") >&5
2028 (eval $ac_link) 2>&5
2030 echo "$as_me:2030: \$? = $ac_status" >&5
2031 (exit "$ac_status"); }; then
2032 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2033 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2034 # work properly (i.e., refer to `conftest.exe'), while it won't with
2036 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2038 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2039 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2046 { { echo "$as_me:2046: error: cannot compute EXEEXT: cannot compile and link" >&5
2047 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2048 { (exit 1); exit 1; }; }
2051 rm -f "conftest$ac_cv_exeext"
2052 echo "$as_me:2052: result: $ac_cv_exeext" >&5
2053 echo "${ECHO_T}$ac_cv_exeext" >&6
2055 rm -f "conftest.$ac_ext"
2056 EXEEXT=$ac_cv_exeext
2058 echo "$as_me:2058: checking for object suffix" >&5
2059 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2060 if test "${ac_cv_objext+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 cat >"conftest.$ac_ext" <<_ACEOF
2064 #line 2064 "configure"
2065 #include "confdefs.h"
2075 rm -f conftest.o conftest.obj
2076 if { (eval echo "$as_me:2076: \"$ac_compile\"") >&5
2077 (eval $ac_compile) 2>&5
2079 echo "$as_me:2079: \$? = $ac_status" >&5
2080 (exit "$ac_status"); }; then
2081 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2083 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
2084 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2089 echo "$as_me: failed program was:" >&5
2090 cat "conftest.$ac_ext" >&5
2091 { { echo "$as_me:2091: error: cannot compute OBJEXT: cannot compile" >&5
2092 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2093 { (exit 1); exit 1; }; }
2096 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
2098 echo "$as_me:2098: result: $ac_cv_objext" >&5
2099 echo "${ECHO_T}$ac_cv_objext" >&6
2100 OBJEXT=$ac_cv_objext
2102 echo "$as_me:2102: checking whether we are using the GNU C compiler" >&5
2103 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2104 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 cat >"conftest.$ac_ext" <<_ACEOF
2108 #line 2108 "configure"
2109 #include "confdefs.h"
2122 rm -f "conftest.$ac_objext"
2123 if { (eval echo "$as_me:2123: \"$ac_compile\"") >&5
2124 (eval $ac_compile) 2>&5
2126 echo "$as_me:2126: \$? = $ac_status" >&5
2127 (exit "$ac_status"); } &&
2128 { ac_try='test -s "conftest.$ac_objext"'
2129 { (eval echo "$as_me:2129: \"$ac_try\"") >&5
2132 echo "$as_me:2132: \$? = $ac_status" >&5
2133 (exit "$ac_status"); }; }; then
2136 echo "$as_me: failed program was:" >&5
2137 cat "conftest.$ac_ext" >&5
2140 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2141 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2144 echo "$as_me:2144: result: $ac_cv_c_compiler_gnu" >&5
2145 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2146 GCC=`test $ac_compiler_gnu = yes && echo yes`
2147 ac_test_CFLAGS=${CFLAGS+set}
2148 ac_save_CFLAGS=$CFLAGS
2150 echo "$as_me:2150: checking whether $CC accepts -g" >&5
2151 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2152 if test "${ac_cv_prog_cc_g+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 cat >"conftest.$ac_ext" <<_ACEOF
2156 #line 2156 "configure"
2157 #include "confdefs.h"
2167 rm -f "conftest.$ac_objext"
2168 if { (eval echo "$as_me:2168: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>&5
2171 echo "$as_me:2171: \$? = $ac_status" >&5
2172 (exit "$ac_status"); } &&
2173 { ac_try='test -s "conftest.$ac_objext"'
2174 { (eval echo "$as_me:2174: \"$ac_try\"") >&5
2177 echo "$as_me:2177: \$? = $ac_status" >&5
2178 (exit "$ac_status"); }; }; then
2181 echo "$as_me: failed program was:" >&5
2182 cat "conftest.$ac_ext" >&5
2185 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2187 echo "$as_me:2187: result: $ac_cv_prog_cc_g" >&5
2188 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2189 if test "$ac_test_CFLAGS" = set; then
2190 CFLAGS=$ac_save_CFLAGS
2191 elif test $ac_cv_prog_cc_g = yes; then
2192 if test "$GCC" = yes; then
2198 if test "$GCC" = yes; then
2204 # Some people use a C++ compiler to compile C. Since we use `exit',
2205 # in C++ we need to declare it. In case someone uses the same compiler
2206 # for both compiling C and C++ we need to have the C++ compiler decide
2207 # the declaration of exit, since it's the most demanding environment.
2208 cat >"conftest.$ac_ext" <<_ACEOF
2213 rm -f "conftest.$ac_objext"
2214 if { (eval echo "$as_me:2214: \"$ac_compile\"") >&5
2215 (eval $ac_compile) 2>&5
2217 echo "$as_me:2217: \$? = $ac_status" >&5
2218 (exit "$ac_status"); } &&
2219 { ac_try='test -s "conftest.$ac_objext"'
2220 { (eval echo "$as_me:2220: \"$ac_try\"") >&5
2223 echo "$as_me:2223: \$? = $ac_status" >&5
2224 (exit "$ac_status"); }; }; then
2225 for ac_declaration in \
2227 '#include <stdlib.h>' \
2228 'extern "C" void std::exit (int) throw (); using std::exit;' \
2229 'extern "C" void std::exit (int); using std::exit;' \
2230 'extern "C" void exit (int) throw ();' \
2231 'extern "C" void exit (int);' \
2234 cat >"conftest.$ac_ext" <<_ACEOF
2235 #line 2235 "configure"
2236 #include "confdefs.h"
2247 rm -f "conftest.$ac_objext"
2248 if { (eval echo "$as_me:2248: \"$ac_compile\"") >&5
2249 (eval $ac_compile) 2>&5
2251 echo "$as_me:2251: \$? = $ac_status" >&5
2252 (exit "$ac_status"); } &&
2253 { ac_try='test -s "conftest.$ac_objext"'
2254 { (eval echo "$as_me:2254: \"$ac_try\"") >&5
2257 echo "$as_me:2257: \$? = $ac_status" >&5
2258 (exit "$ac_status"); }; }; then
2261 echo "$as_me: failed program was:" >&5
2262 cat "conftest.$ac_ext" >&5
2265 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2266 cat >"conftest.$ac_ext" <<_ACEOF
2267 #line 2267 "configure"
2268 #include "confdefs.h"
2278 rm -f "conftest.$ac_objext"
2279 if { (eval echo "$as_me:2279: \"$ac_compile\"") >&5
2280 (eval $ac_compile) 2>&5
2282 echo "$as_me:2282: \$? = $ac_status" >&5
2283 (exit "$ac_status"); } &&
2284 { ac_try='test -s "conftest.$ac_objext"'
2285 { (eval echo "$as_me:2285: \"$ac_try\"") >&5
2288 echo "$as_me:2288: \$? = $ac_status" >&5
2289 (exit "$ac_status"); }; }; then
2292 echo "$as_me: failed program was:" >&5
2293 cat "conftest.$ac_ext" >&5
2295 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2298 if test -n "$ac_declaration"; then
2299 echo '#ifdef __cplusplus' >>confdefs.h
2300 echo "$ac_declaration" >>confdefs.h
2301 echo '#endif' >>confdefs.h
2305 echo "$as_me: failed program was:" >&5
2306 cat "conftest.$ac_ext" >&5
2308 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2310 ac_cpp='$CPP $CPPFLAGS'
2311 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2312 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314 ac_main_return="return"
2317 if test "$GCC" = yes ; then
2318 echo "$as_me:2318: checking version of $CC" >&5
2319 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2320 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.].*//'`"
2321 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2322 echo "$as_me:2322: result: $GCC_VERSION" >&5
2323 echo "${ECHO_T}$GCC_VERSION" >&6
2328 if test "$GCC" = yes ; then
2331 echo "$as_me:2331: checking if this is really Intel C compiler" >&5
2332 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2333 cf_save_CFLAGS="$CFLAGS"
2334 CFLAGS="$CFLAGS -no-gcc"
2335 cat >"conftest.$ac_ext" <<_ACEOF
2336 #line 2336 "configure"
2337 #include "confdefs.h"
2343 #ifdef __INTEL_COMPILER
2345 #error __INTEL_COMPILER is not defined
2352 rm -f "conftest.$ac_objext"
2353 if { (eval echo "$as_me:2353: \"$ac_compile\"") >&5
2354 (eval $ac_compile) 2>&5
2356 echo "$as_me:2356: \$? = $ac_status" >&5
2357 (exit "$ac_status"); } &&
2358 { ac_try='test -s "conftest.$ac_objext"'
2359 { (eval echo "$as_me:2359: \"$ac_try\"") >&5
2362 echo "$as_me:2362: \$? = $ac_status" >&5
2363 (exit "$ac_status"); }; }; then
2365 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2368 echo "$as_me: failed program was:" >&5
2369 cat "conftest.$ac_ext" >&5
2371 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2372 CFLAGS="$cf_save_CFLAGS"
2373 echo "$as_me:2373: result: $INTEL_COMPILER" >&5
2374 echo "${ECHO_T}$INTEL_COMPILER" >&6
2381 if test "$GCC" = yes ; then
2382 echo "$as_me:2382: checking if this is really Clang C compiler" >&5
2383 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2384 cf_save_CFLAGS="$CFLAGS"
2385 cat >"conftest.$ac_ext" <<_ACEOF
2386 #line 2386 "configure"
2387 #include "confdefs.h"
2395 #error __clang__ is not defined
2402 rm -f "conftest.$ac_objext"
2403 if { (eval echo "$as_me:2403: \"$ac_compile\"") >&5
2404 (eval $ac_compile) 2>&5
2406 echo "$as_me:2406: \$? = $ac_status" >&5
2407 (exit "$ac_status"); } &&
2408 { ac_try='test -s "conftest.$ac_objext"'
2409 { (eval echo "$as_me:2409: \"$ac_try\"") >&5
2412 echo "$as_me:2412: \$? = $ac_status" >&5
2413 (exit "$ac_status"); }; }; then
2417 echo "$as_me: failed program was:" >&5
2418 cat "conftest.$ac_ext" >&5
2420 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2421 CFLAGS="$cf_save_CFLAGS"
2422 echo "$as_me:2422: result: $CLANG_COMPILER" >&5
2423 echo "${ECHO_T}$CLANG_COMPILER" >&6
2428 if test "x$CLANG_COMPILER" = "xyes" ; then
2430 (c[1-9][0-9]|*/c[1-9][0-9])
2431 { echo "$as_me:2431: WARNING: replacing broken compiler alias $CC" >&5
2432 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
2433 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
2438 echo "$as_me:2438: checking version of $CC" >&5
2439 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2440 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.].*//'`"
2441 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2442 echo "$as_me:2442: result: $CLANG_VERSION" >&5
2443 echo "${ECHO_T}$CLANG_VERSION" >&6
2445 for cf_clang_opt in \
2446 -Qunused-arguments \
2447 -Wno-error=implicit-function-declaration
2449 echo "$as_me:2449: checking if option $cf_clang_opt works" >&5
2450 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2451 cf_save_CFLAGS="$CFLAGS"
2452 CFLAGS="$CFLAGS $cf_clang_opt"
2453 cat >"conftest.$ac_ext" <<_ACEOF
2454 #line 2454 "configure"
2455 #include "confdefs.h"
2462 printf("hello!\\n");
2467 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2468 if { (eval echo "$as_me:2468: \"$ac_link\"") >&5
2469 (eval $ac_link) 2>&5
2471 echo "$as_me:2471: \$? = $ac_status" >&5
2472 (exit "$ac_status"); } &&
2473 { ac_try='test -s "conftest$ac_exeext"'
2474 { (eval echo "$as_me:2474: \"$ac_try\"") >&5
2477 echo "$as_me:2477: \$? = $ac_status" >&5
2478 (exit "$ac_status"); }; }; then
2482 echo "$as_me: failed program was:" >&5
2483 cat "conftest.$ac_ext" >&5
2487 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2488 echo "$as_me:2488: result: $cf_clang_optok" >&5
2489 echo "${ECHO_T}$cf_clang_optok" >&6
2490 CFLAGS="$cf_save_CFLAGS"
2491 if test "$cf_clang_optok" = yes; then
2492 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2494 echo "${as_me:-configure}:2494: testing adding option $cf_clang_opt ..." 1>&5
2496 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2497 CFLAGS="${CFLAGS}$cf_clang_opt"
2503 echo "$as_me:2503: checking for $CC option to accept ANSI C" >&5
2504 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2505 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 ac_cv_prog_cc_stdc=no
2510 cat >"conftest.$ac_ext" <<_ACEOF
2511 #line 2511 "configure"
2512 #include "confdefs.h"
2515 #include <sys/types.h>
2516 #include <sys/stat.h>
2517 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2518 struct buf { int x; };
2519 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2520 static char *e (char **p, int i)
2524 static char *f (char * (*g) (char **, int), char **p, ...)
2529 s = g (p, va_arg (v,int));
2533 int test (int i, double x);
2534 struct s1 {int (*f) (int a);};
2535 struct s2 {int (*f) (double a);};
2536 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2542 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2547 # Don't try gcc -ansi; that turns off useful extensions and
2548 # breaks some systems' header files.
2549 # AIX -qlanglvl=ansi
2550 # Ultrix and OSF/1 -std1
2551 # HP-UX 10.20 and later -Ae
2552 # HP-UX older versions -Aa -D_HPUX_SOURCE
2553 # SVR4 -Xc -D__EXTENSIONS__
2554 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2556 CC="$ac_save_CC $ac_arg"
2557 rm -f "conftest.$ac_objext"
2558 if { (eval echo "$as_me:2558: \"$ac_compile\"") >&5
2559 (eval $ac_compile) 2>&5
2561 echo "$as_me:2561: \$? = $ac_status" >&5
2562 (exit "$ac_status"); } &&
2563 { ac_try='test -s "conftest.$ac_objext"'
2564 { (eval echo "$as_me:2564: \"$ac_try\"") >&5
2567 echo "$as_me:2567: \$? = $ac_status" >&5
2568 (exit "$ac_status"); }; }; then
2569 ac_cv_prog_cc_stdc=$ac_arg
2572 echo "$as_me: failed program was:" >&5
2573 cat "conftest.$ac_ext" >&5
2575 rm -f "conftest.$ac_objext"
2577 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2582 case "x$ac_cv_prog_cc_stdc" in
2584 echo "$as_me:2584: result: none needed" >&5
2585 echo "${ECHO_T}none needed" >&6 ;;
2587 echo "$as_me:2587: result: $ac_cv_prog_cc_stdc" >&5
2588 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2589 CC="$CC $ac_cv_prog_cc_stdc" ;;
2592 # This should have been defined by AC_PROG_CC
2595 echo "$as_me:2595: checking \$CFLAGS variable" >&5
2596 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2599 echo "$as_me:2599: result: broken" >&5
2600 echo "${ECHO_T}broken" >&6
2601 { echo "$as_me:2601: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2602 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2605 for cf_arg in $cf_flags
2611 cf_new_extra_cppflags=
2613 for cf_add_cflags in $cf_arg
2615 case "$cf_fix_cppflags" in
2617 case "$cf_add_cflags" in
2618 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2619 case "$cf_add_cflags" in
2621 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2623 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2624 && test -z "${cf_tst_cflags}" \
2625 && cf_fix_cppflags=yes
2627 if test "$cf_fix_cppflags" = yes ; then
2629 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2630 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2633 elif test "${cf_tst_cflags}" = "\"'" ; then
2635 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2636 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2646 case "$cf_add_cflags" in
2648 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2650 CPPFLAGS=`echo "$CPPFLAGS" | \
2651 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2652 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2657 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2658 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2665 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2666 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2673 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2674 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2676 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2678 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2679 && test -z "${cf_tst_cflags}" \
2680 && cf_fix_cppflags=no
2685 if test -n "$cf_new_cflags" ; then
2687 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2688 CFLAGS="${CFLAGS}$cf_new_cflags"
2692 if test -n "$cf_new_cppflags" ; then
2694 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2695 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2699 if test -n "$cf_new_extra_cppflags" ; then
2701 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2702 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2709 echo "$as_me:2709: result: ok" >&5
2710 echo "${ECHO_T}ok" >&6
2714 echo "$as_me:2714: checking \$CC variable" >&5
2715 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2718 echo "$as_me:2718: result: broken" >&5
2719 echo "${ECHO_T}broken" >&6
2720 { echo "$as_me:2720: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2721 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2723 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2724 cf_flags=`echo "$CC" | sed -e "s%^$cf_prog%%"`
2726 for cf_arg in $cf_flags
2734 cf_new_extra_cppflags=
2736 for cf_add_cflags in $cf_arg
2738 case "$cf_fix_cppflags" in
2740 case "$cf_add_cflags" in
2741 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2742 case "$cf_add_cflags" in
2744 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2746 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2747 && test -z "${cf_tst_cflags}" \
2748 && cf_fix_cppflags=yes
2750 if test "$cf_fix_cppflags" = yes ; then
2752 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2753 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2756 elif test "${cf_tst_cflags}" = "\"'" ; then
2758 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2759 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2769 case "$cf_add_cflags" in
2771 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2773 CPPFLAGS=`echo "$CPPFLAGS" | \
2774 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2775 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2780 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2781 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2788 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2789 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2796 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2797 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2799 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2801 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2802 && test -z "${cf_tst_cflags}" \
2803 && cf_fix_cppflags=no
2808 if test -n "$cf_new_cflags" ; then
2810 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2811 CFLAGS="${CFLAGS}$cf_new_cflags"
2815 if test -n "$cf_new_cppflags" ; then
2817 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2818 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2822 if test -n "$cf_new_extra_cppflags" ; then
2824 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2825 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2835 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2837 echo "${as_me:-configure}:2837: testing resulting CC: '$CC' ..." 1>&5
2839 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2841 echo "${as_me:-configure}:2841: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2843 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2845 echo "${as_me:-configure}:2845: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2849 echo "$as_me:2849: result: ok" >&5
2850 echo "${ECHO_T}ok" >&6
2855 ac_cpp='$CPP $CPPFLAGS'
2856 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2857 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2859 ac_main_return="return"
2860 echo "$as_me:2860: checking how to run the C preprocessor" >&5
2861 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2862 # On Suns, sometimes $CPP names a directory.
2863 if test -n "$CPP" && test -d "$CPP"; then
2866 if test -z "$CPP"; then
2867 if test "${ac_cv_prog_CPP+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 # Double quotes because CPP needs to be expanded
2871 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2874 for ac_c_preproc_warn_flag in '' yes
2876 # Use a header file that comes with gcc, so configuring glibc
2877 # with a fresh cross-compiler works.
2878 # On the NeXT, cc -E runs the code through the compiler's parser,
2879 # not just through cpp. "Syntax error" is here to catch this case.
2880 cat >"conftest.$ac_ext" <<_ACEOF
2881 #line 2881 "configure"
2882 #include "confdefs.h"
2886 if { (eval echo "$as_me:2886: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2887 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2889 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2891 cat conftest.err >&5
2892 echo "$as_me:2892: \$? = $ac_status" >&5
2893 (exit "$ac_status"); } >/dev/null; then
2894 if test -s conftest.err; then
2895 ac_cpp_err=$ac_c_preproc_warn_flag
2902 if test -z "$ac_cpp_err"; then
2905 echo "$as_me: failed program was:" >&5
2906 cat "conftest.$ac_ext" >&5
2907 # Broken: fails on valid input.
2910 rm -f conftest.err "conftest.$ac_ext"
2912 # OK, works on sane cases. Now check whether non-existent headers
2913 # can be detected and how.
2914 cat >"conftest.$ac_ext" <<_ACEOF
2915 #line 2915 "configure"
2916 #include "confdefs.h"
2917 #include <ac_nonexistent.h>
2919 if { (eval echo "$as_me:2919: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2920 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2922 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2924 cat conftest.err >&5
2925 echo "$as_me:2925: \$? = $ac_status" >&5
2926 (exit "$ac_status"); } >/dev/null; then
2927 if test -s conftest.err; then
2928 ac_cpp_err=$ac_c_preproc_warn_flag
2935 if test -z "$ac_cpp_err"; then
2936 # Broken: success on invalid input.
2939 echo "$as_me: failed program was:" >&5
2940 cat "conftest.$ac_ext" >&5
2941 # Passes both tests.
2945 rm -f conftest.err "conftest.$ac_ext"
2948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2949 rm -f conftest.err "conftest.$ac_ext"
2950 if $ac_preproc_ok; then
2962 echo "$as_me:2962: result: $CPP" >&5
2963 echo "${ECHO_T}$CPP" >&6
2965 for ac_c_preproc_warn_flag in '' yes
2967 # Use a header file that comes with gcc, so configuring glibc
2968 # with a fresh cross-compiler works.
2969 # On the NeXT, cc -E runs the code through the compiler's parser,
2970 # not just through cpp. "Syntax error" is here to catch this case.
2971 cat >"conftest.$ac_ext" <<_ACEOF
2972 #line 2972 "configure"
2973 #include "confdefs.h"
2977 if { (eval echo "$as_me:2977: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2978 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2980 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2982 cat conftest.err >&5
2983 echo "$as_me:2983: \$? = $ac_status" >&5
2984 (exit "$ac_status"); } >/dev/null; then
2985 if test -s conftest.err; then
2986 ac_cpp_err=$ac_c_preproc_warn_flag
2993 if test -z "$ac_cpp_err"; then
2996 echo "$as_me: failed program was:" >&5
2997 cat "conftest.$ac_ext" >&5
2998 # Broken: fails on valid input.
3001 rm -f conftest.err "conftest.$ac_ext"
3003 # OK, works on sane cases. Now check whether non-existent headers
3004 # can be detected and how.
3005 cat >"conftest.$ac_ext" <<_ACEOF
3006 #line 3006 "configure"
3007 #include "confdefs.h"
3008 #include <ac_nonexistent.h>
3010 if { (eval echo "$as_me:3010: \"$ac_cpp "conftest.$ac_ext"\"") >&5
3011 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
3013 $EGREP -v '^ *\+' conftest.er1 >conftest.err
3015 cat conftest.err >&5
3016 echo "$as_me:3016: \$? = $ac_status" >&5
3017 (exit "$ac_status"); } >/dev/null; then
3018 if test -s conftest.err; then
3019 ac_cpp_err=$ac_c_preproc_warn_flag
3026 if test -z "$ac_cpp_err"; then
3027 # Broken: success on invalid input.
3030 echo "$as_me: failed program was:" >&5
3031 cat "conftest.$ac_ext" >&5
3032 # Passes both tests.
3036 rm -f conftest.err "conftest.$ac_ext"
3039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3040 rm -f conftest.err "conftest.$ac_ext"
3041 if $ac_preproc_ok; then
3044 { { echo "$as_me:3044: error: C preprocessor \"$CPP\" fails sanity check" >&5
3045 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3046 { (exit 1); exit 1; }; }
3050 ac_cpp='$CPP $CPPFLAGS'
3051 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3052 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3054 ac_main_return="return"
3056 if test $ac_cv_c_compiler_gnu = yes; then
3057 echo "$as_me:3057: checking whether $CC needs -traditional" >&5
3058 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3059 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3060 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 ac_pattern="Autoconf.*'x'"
3063 cat >"conftest.$ac_ext" <<_ACEOF
3064 #line 3064 "configure"
3065 #include "confdefs.h"
3067 int Autoconf = TIOCGETP;
3069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3070 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3071 ac_cv_prog_gcc_traditional=yes
3073 ac_cv_prog_gcc_traditional=no
3077 if test $ac_cv_prog_gcc_traditional = no; then
3078 cat >"conftest.$ac_ext" <<_ACEOF
3079 #line 3079 "configure"
3080 #include "confdefs.h"
3082 int Autoconf = TCGETA;
3084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3085 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3086 ac_cv_prog_gcc_traditional=yes
3092 echo "$as_me:3092: result: $ac_cv_prog_gcc_traditional" >&5
3093 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3094 if test $ac_cv_prog_gcc_traditional = yes; then
3095 CC="$CC -traditional"
3099 echo "$as_me:3099: checking whether $CC understands -c and -o together" >&5
3100 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
3101 if test "${cf_cv_prog_CC_c_o+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 cat > conftest.$ac_ext <<CF_EOF
3108 ${cf_cv_main_return:-return}(0);
3111 # We do the test twice because some compilers refuse to overwrite an
3112 # existing .o file with -o, though they will create one.
3113 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3114 if { (eval echo "$as_me:3114: \"$ac_try\"") >&5
3117 echo "$as_me:3117: \$? = $ac_status" >&5
3118 (exit "$ac_status"); } &&
3119 test -f conftest2.$ac_objext && { (eval echo "$as_me:3119: \"$ac_try\"") >&5
3122 echo "$as_me:3122: \$? = $ac_status" >&5
3123 (exit "$ac_status"); };
3125 eval cf_cv_prog_CC_c_o=yes
3127 eval cf_cv_prog_CC_c_o=no
3132 if test "$cf_cv_prog_CC_c_o" = yes; then
3133 echo "$as_me:3133: result: yes" >&5
3134 echo "${ECHO_T}yes" >&6
3136 echo "$as_me:3136: result: no" >&5
3137 echo "${ECHO_T}no" >&6
3140 if test "$cross_compiling" = yes ; then
3143 case "$cf_cv_system_name" in
3144 (dragonfly*|mirbsd*|freebsd*)
3145 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
3147 (*) LDPATH=$PATH:/sbin:/usr/sbin
3148 # Extract the first word of "ldconfig", so it can be a program name with args.
3149 set dummy ldconfig; ac_word=$2
3150 echo "$as_me:3150: checking for $ac_word" >&5
3151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3152 if test "${ac_cv_path_LDCONFIG+set}" = set; then
3153 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3160 ac_save_IFS=$IFS; IFS=$ac_path_separator
3162 for ac_dir in $ac_dummy; do
3164 test -z "$ac_dir" && ac_dir=.
3165 if $as_executable_p "$ac_dir/$ac_word"; then
3166 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3167 echo "$as_me:3167: found $ac_dir/$ac_word" >&5
3175 LDCONFIG=$ac_cv_path_LDCONFIG
3177 if test -n "$LDCONFIG"; then
3178 echo "$as_me:3178: result: $LDCONFIG" >&5
3179 echo "${ECHO_T}$LDCONFIG" >&6
3181 echo "$as_me:3181: result: no" >&5
3182 echo "${ECHO_T}no" >&6
3189 echo "$as_me:3189: checking if you want to ensure bool is consistent with C++" >&5
3190 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
3192 # Check whether --with-cxx or --without-cxx was given.
3193 if test "${with_cxx+set}" = set; then
3195 cf_with_cxx=$withval
3199 echo "$as_me:3199: result: $cf_with_cxx" >&5
3200 echo "${ECHO_T}$cf_with_cxx" >&6
3201 if test "X$cf_with_cxx" = Xno ; then
3205 # with autoconf 2.13, we can change the error to a warning:
3207 ac_cpp='$CXXCPP $CPPFLAGS'
3208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3209 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3211 ac_main_return="return"
3212 if test -n "$ac_tool_prefix"; then
3213 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3217 echo "$as_me:3217: checking for $ac_word" >&5
3218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3219 if test "${ac_cv_prog_CXX+set}" = set; then
3220 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 if test -n "$CXX"; then
3223 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3225 ac_save_IFS=$IFS; IFS=$ac_path_separator
3227 for ac_dir in $ac_dummy; do
3229 test -z "$ac_dir" && ac_dir=.
3230 $as_executable_p "$ac_dir/$ac_word" || continue
3231 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3232 echo "$as_me:3232: found $ac_dir/$ac_word" >&5
3239 if test -n "$CXX"; then
3240 echo "$as_me:3240: result: $CXX" >&5
3241 echo "${ECHO_T}$CXX" >&6
3243 echo "$as_me:3243: result: no" >&5
3244 echo "${ECHO_T}no" >&6
3247 test -n "$CXX" && break
3250 if test -z "$CXX"; then
3252 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3254 # Extract the first word of "$ac_prog", so it can be a program name with args.
3255 set dummy $ac_prog; ac_word=$2
3256 echo "$as_me:3256: checking for $ac_word" >&5
3257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3258 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 if test -n "$ac_ct_CXX"; then
3262 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3264 ac_save_IFS=$IFS; IFS=$ac_path_separator
3266 for ac_dir in $ac_dummy; do
3268 test -z "$ac_dir" && ac_dir=.
3269 $as_executable_p "$ac_dir/$ac_word" || continue
3270 ac_cv_prog_ac_ct_CXX="$ac_prog"
3271 echo "$as_me:3271: found $ac_dir/$ac_word" >&5
3277 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3278 if test -n "$ac_ct_CXX"; then
3279 echo "$as_me:3279: result: $ac_ct_CXX" >&5
3280 echo "${ECHO_T}$ac_ct_CXX" >&6
3282 echo "$as_me:3282: result: no" >&5
3283 echo "${ECHO_T}no" >&6
3286 test -n "$ac_ct_CXX" && break
3288 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3293 # Provide some information about the compiler.
3294 echo "$as_me:3294:" \
3295 "checking for C++ compiler version" >&5
3296 ac_compiler=`set X $ac_compile; echo $2`
3297 { (eval echo "$as_me:3297: \"$ac_compiler --version </dev/null >&5\"") >&5
3298 (eval $ac_compiler --version </dev/null >&5) 2>&5
3300 echo "$as_me:3300: \$? = $ac_status" >&5
3301 (exit "$ac_status"); }
3302 { (eval echo "$as_me:3302: \"$ac_compiler -v </dev/null >&5\"") >&5
3303 (eval $ac_compiler -v </dev/null >&5) 2>&5
3305 echo "$as_me:3305: \$? = $ac_status" >&5
3306 (exit "$ac_status"); }
3307 { (eval echo "$as_me:3307: \"$ac_compiler -V </dev/null >&5\"") >&5
3308 (eval $ac_compiler -V </dev/null >&5) 2>&5
3310 echo "$as_me:3310: \$? = $ac_status" >&5
3311 (exit "$ac_status"); }
3313 echo "$as_me:3313: checking whether we are using the GNU C++ compiler" >&5
3314 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3315 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 cat >"conftest.$ac_ext" <<_ACEOF
3319 #line 3319 "configure"
3320 #include "confdefs.h"
3333 rm -f "conftest.$ac_objext"
3334 if { (eval echo "$as_me:3334: \"$ac_compile\"") >&5
3335 (eval $ac_compile) 2>&5
3337 echo "$as_me:3337: \$? = $ac_status" >&5
3338 (exit "$ac_status"); } &&
3339 { ac_try='test -s "conftest.$ac_objext"'
3340 { (eval echo "$as_me:3340: \"$ac_try\"") >&5
3343 echo "$as_me:3343: \$? = $ac_status" >&5
3344 (exit "$ac_status"); }; }; then
3347 echo "$as_me: failed program was:" >&5
3348 cat "conftest.$ac_ext" >&5
3351 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3352 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3355 echo "$as_me:3355: result: $ac_cv_cxx_compiler_gnu" >&5
3356 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3357 GXX=`test $ac_compiler_gnu = yes && echo yes`
3358 ac_test_CXXFLAGS=${CXXFLAGS+set}
3359 ac_save_CXXFLAGS=$CXXFLAGS
3361 echo "$as_me:3361: checking whether $CXX accepts -g" >&5
3362 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3363 if test "${ac_cv_prog_cxx_g+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 cat >"conftest.$ac_ext" <<_ACEOF
3367 #line 3367 "configure"
3368 #include "confdefs.h"
3378 rm -f "conftest.$ac_objext"
3379 if { (eval echo "$as_me:3379: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>&5
3382 echo "$as_me:3382: \$? = $ac_status" >&5
3383 (exit "$ac_status"); } &&
3384 { ac_try='test -s "conftest.$ac_objext"'
3385 { (eval echo "$as_me:3385: \"$ac_try\"") >&5
3388 echo "$as_me:3388: \$? = $ac_status" >&5
3389 (exit "$ac_status"); }; }; then
3390 ac_cv_prog_cxx_g=yes
3392 echo "$as_me: failed program was:" >&5
3393 cat "conftest.$ac_ext" >&5
3396 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3398 echo "$as_me:3398: result: $ac_cv_prog_cxx_g" >&5
3399 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3400 if test "$ac_test_CXXFLAGS" = set; then
3401 CXXFLAGS=$ac_save_CXXFLAGS
3402 elif test $ac_cv_prog_cxx_g = yes; then
3403 if test "$GXX" = yes; then
3409 if test "$GXX" = yes; then
3415 for ac_declaration in \
3417 '#include <stdlib.h>' \
3418 'extern "C" void std::exit (int) throw (); using std::exit;' \
3419 'extern "C" void std::exit (int); using std::exit;' \
3420 'extern "C" void exit (int) throw ();' \
3421 'extern "C" void exit (int);' \
3424 cat >"conftest.$ac_ext" <<_ACEOF
3425 #line 3425 "configure"
3426 #include "confdefs.h"
3437 rm -f "conftest.$ac_objext"
3438 if { (eval echo "$as_me:3438: \"$ac_compile\"") >&5
3439 (eval $ac_compile) 2>&5
3441 echo "$as_me:3441: \$? = $ac_status" >&5
3442 (exit "$ac_status"); } &&
3443 { ac_try='test -s "conftest.$ac_objext"'
3444 { (eval echo "$as_me:3444: \"$ac_try\"") >&5
3447 echo "$as_me:3447: \$? = $ac_status" >&5
3448 (exit "$ac_status"); }; }; then
3451 echo "$as_me: failed program was:" >&5
3452 cat "conftest.$ac_ext" >&5
3455 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3456 cat >"conftest.$ac_ext" <<_ACEOF
3457 #line 3457 "configure"
3458 #include "confdefs.h"
3468 rm -f "conftest.$ac_objext"
3469 if { (eval echo "$as_me:3469: \"$ac_compile\"") >&5
3470 (eval $ac_compile) 2>&5
3472 echo "$as_me:3472: \$? = $ac_status" >&5
3473 (exit "$ac_status"); } &&
3474 { ac_try='test -s "conftest.$ac_objext"'
3475 { (eval echo "$as_me:3475: \"$ac_try\"") >&5
3478 echo "$as_me:3478: \$? = $ac_status" >&5
3479 (exit "$ac_status"); }; }; then
3482 echo "$as_me: failed program was:" >&5
3483 cat "conftest.$ac_ext" >&5
3485 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3488 if test -n "$ac_declaration"; then
3489 echo '#ifdef __cplusplus' >>confdefs.h
3490 echo "$ac_declaration" >>confdefs.h
3491 echo '#endif' >>confdefs.h
3495 ac_cpp='$CPP $CPPFLAGS'
3496 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3497 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499 ac_main_return="return"
3502 ac_cpp='$CXXCPP $CPPFLAGS'
3503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3504 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3506 ac_main_return="return"
3508 if test "x$cf_with_cxx" != xno
3510 # Several of the C++ configurations do not work, particularly when
3511 # cross-compiling (20140913 -TD)
3512 echo "$as_me:3512: checking if $CXX works" >&5
3513 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3515 save_CPPFLAGS="$CPPFLAGS"
3516 eval cf_includedir=${includedir}
3517 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3519 cat >"conftest.$ac_ext" <<_ACEOF
3520 #line 3520 "configure"
3521 #include "confdefs.h"
3530 printf("Hello world!\n")
3536 rm -f "conftest.$ac_objext"
3537 if { (eval echo "$as_me:3537: \"$ac_compile\"") >&5
3538 (eval $ac_compile) 2>&5
3540 echo "$as_me:3540: \$? = $ac_status" >&5
3541 (exit "$ac_status"); } &&
3542 { ac_try='test -s "conftest.$ac_objext"'
3543 { (eval echo "$as_me:3543: \"$ac_try\"") >&5
3546 echo "$as_me:3546: \$? = $ac_status" >&5
3547 (exit "$ac_status"); }; }; then
3550 echo "$as_me: failed program was:" >&5
3551 cat "conftest.$ac_ext" >&5
3554 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3555 CPPFLAGS="$save_CPPFLAGS"
3557 echo "$as_me:3557: result: $cf_cxx_works" >&5
3558 echo "${ECHO_T}$cf_cxx_works" >&6
3559 if test "x$cf_cxx_works" = xno
3561 { echo "$as_me:3561: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3562 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3563 cf_with_cxx=no; CXX=""; GXX="";
3567 ac_cpp='$CPP $CPPFLAGS'
3568 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3569 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571 ac_main_return="return"
3573 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3574 if test "$CXX" = "g++" ; then
3575 # Extract the first word of "g++", so it can be a program name with args.
3576 set dummy g++; ac_word=$2
3577 echo "$as_me:3577: checking for $ac_word" >&5
3578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3579 if test "${ac_cv_path_CXX+set}" = set; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3587 ac_save_IFS=$IFS; IFS=$ac_path_separator
3589 for ac_dir in $ac_dummy; do
3591 test -z "$ac_dir" && ac_dir=.
3592 if $as_executable_p "$ac_dir/$ac_word"; then
3593 ac_cv_path_CXX="$ac_dir/$ac_word"
3594 echo "$as_me:3594: found $ac_dir/$ac_word" >&5
3604 if test -n "$CXX"; then
3605 echo "$as_me:3605: result: $CXX" >&5
3606 echo "${ECHO_T}$CXX" >&6
3608 echo "$as_me:3608: result: no" >&5
3609 echo "${ECHO_T}no" >&6
3615 { echo "$as_me:3615: WARNING: You don't have any C++ compiler, too bad" >&5
3616 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3617 cf_with_cxx=no; CXX=""; GXX="";
3623 if test "$GXX" = yes; then
3624 echo "$as_me:3624: checking version of ${CXX:-g++}" >&5
3625 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3626 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3627 if test -z "$GXX_VERSION"
3632 echo "$as_me:3632: result: $GXX_VERSION" >&5
3633 echo "${ECHO_T}$GXX_VERSION" >&6
3636 case "$GXX_VERSION" in
3640 { echo "$as_me:3640: WARNING: templates do not work" >&5
3641 echo "$as_me: WARNING: templates do not work" >&2;}
3645 echo "$as_me:3645: checking if you want to build C++ binding and demo" >&5
3646 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3648 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3649 if test "${with_cxx_binding+set}" = set; then
3650 withval="$with_cxx_binding"
3651 cf_with_cxx_binding=$withval
3653 cf_with_cxx_binding=$cf_with_cxx
3655 echo "$as_me:3655: result: $cf_with_cxx_binding" >&5
3656 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3658 echo "$as_me:3658: checking if you want to build with Ada" >&5
3659 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3660 echo "$as_me:3660: result: $cf_with_ada" >&5
3661 echo "${ECHO_T}$cf_with_ada" >&6
3663 echo "$as_me:3663: checking if you want to install terminal database" >&5
3664 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3666 # Check whether --enable-db-install or --disable-db-install was given.
3667 if test "${enable_db_install+set}" = set; then
3668 enableval="$enable_db_install"
3669 cf_with_db_install=$enableval
3671 cf_with_db_install=yes
3673 echo "$as_me:3673: result: $cf_with_db_install" >&5
3674 echo "${ECHO_T}$cf_with_db_install" >&6
3676 echo "$as_me:3676: checking if you want to install manpages" >&5
3677 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3679 # Check whether --with-manpages or --without-manpages was given.
3680 if test "${with_manpages+set}" = set; then
3681 withval="$with_manpages"
3682 cf_with_manpages=$withval
3684 cf_with_manpages=yes
3686 echo "$as_me:3686: result: $cf_with_manpages" >&5
3687 echo "${ECHO_T}$cf_with_manpages" >&6
3689 echo "$as_me:3689: checking if you want to build programs such as tic" >&5
3690 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3692 # Check whether --with-progs or --without-progs was given.
3693 if test "${with_progs+set}" = set; then
3694 withval="$with_progs"
3695 cf_with_progs=$withval
3699 echo "$as_me:3699: result: $cf_with_progs" >&5
3700 echo "${ECHO_T}$cf_with_progs" >&6
3702 if test -f "$srcdir/tack/tack.h" ; then
3703 if test "x$cross_compiling" = xyes ; then
3704 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3706 echo "${as_me:-configure}:3706: testing ignoring tack because we are cross-compiling ..." 1>&5
3710 echo "$as_me:3710: checking if you want to build the tack program" >&5
3711 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3713 # Check whether --with-tack or --without-tack was given.
3714 if test "${with_tack+set}" = set; then
3715 withval="$with_tack"
3716 cf_with_tack=$withval
3718 cf_with_tack=$cf_with_progs
3720 echo "$as_me:3720: result: $cf_with_tack" >&5
3721 echo "${ECHO_T}$cf_with_tack" >&6
3727 echo "$as_me:3727: checking if you want to build test-programs" >&5
3728 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3730 # Check whether --with-tests or --without-tests was given.
3731 if test "${with_tests+set}" = set; then
3732 withval="$with_tests"
3733 cf_with_tests=$withval
3737 echo "$as_me:3737: result: $cf_with_tests" >&5
3738 echo "${ECHO_T}$cf_with_tests" >&6
3740 echo "$as_me:3740: checking if you wish to install curses.h" >&5
3741 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3743 # Check whether --with-curses-h or --without-curses-h was given.
3744 if test "${with_curses_h+set}" = set; then
3745 withval="$with_curses_h"
3746 with_curses_h=$withval
3750 echo "$as_me:3750: result: $with_curses_h" >&5
3751 echo "${ECHO_T}$with_curses_h" >&6
3753 modules_to_build="ncurses"
3754 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3755 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3756 modules_to_build="$modules_to_build panel menu form"
3758 test "$program_prefix" != NONE &&
3759 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3760 # Use a double $ so make ignores it.
3761 test "$program_suffix" != NONE &&
3762 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3763 # Double any \ or $. echo might interpret backslashes.
3764 # By default was `s,x,x', remove it if useless.
3765 cat <<\_ACEOF >conftest.sed
3766 s/[\\$]/&&/g;s/;s,x,x,$//
3768 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3771 for ac_prog in mawk gawk nawk awk
3773 # Extract the first word of "$ac_prog", so it can be a program name with args.
3774 set dummy $ac_prog; ac_word=$2
3775 echo "$as_me:3775: checking for $ac_word" >&5
3776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3777 if test "${ac_cv_prog_AWK+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 if test -n "$AWK"; then
3781 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3783 ac_save_IFS=$IFS; IFS=$ac_path_separator
3785 for ac_dir in $ac_dummy; do
3787 test -z "$ac_dir" && ac_dir=.
3788 $as_executable_p "$ac_dir/$ac_word" || continue
3789 ac_cv_prog_AWK="$ac_prog"
3790 echo "$as_me:3790: found $ac_dir/$ac_word" >&5
3797 if test -n "$AWK"; then
3798 echo "$as_me:3798: result: $AWK" >&5
3799 echo "${ECHO_T}$AWK" >&6
3801 echo "$as_me:3801: result: no" >&5
3802 echo "${ECHO_T}no" >&6
3805 test -n "$AWK" && break
3808 test -z "$AWK" && { { echo "$as_me:3808: error: No awk program found" >&5
3809 echo "$as_me: error: No awk program found" >&2;}
3810 { (exit 1); exit 1; }; }
3812 # Find a good install program. We prefer a C program (faster),
3813 # so one script is as good as another. But avoid the broken or
3814 # incompatible versions:
3815 # SysV /etc/install, /usr/sbin/install
3816 # SunOS /usr/etc/install
3817 # IRIX /sbin/install
3819 # AmigaOS /C/install, which installs bootblocks on floppy discs
3820 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3821 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3822 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3823 # ./install, which can be erroneously created by make from ./install.sh.
3824 echo "$as_me:3824: checking for a BSD compatible install" >&5
3825 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3826 if test -z "$INSTALL"; then
3827 if test "${ac_cv_path_install+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 ac_save_IFS=$IFS; IFS=$ac_path_separator
3831 for ac_dir in $PATH; do
3833 # Account for people who put trailing slashes in PATH elements.
3835 / | ./ | .// | /cC/* \
3836 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3839 # OSF1 and SCO ODT 3.0 have their own names for install.
3840 # Don't use installbsd from OSF since it installs stuff as root
3842 for ac_prog in ginstall scoinst install; do
3843 if $as_executable_p "$ac_dir/$ac_prog"; then
3844 if test $ac_prog = install &&
3845 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3846 # AIX install. It has an incompatible calling convention.
3848 elif test $ac_prog = install &&
3849 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3850 # program-specific install script used by HP pwplus--don't use.
3853 ac_cv_path_install="$ac_dir/$ac_prog -c"
3863 if test "${ac_cv_path_install+set}" = set; then
3864 INSTALL=$ac_cv_path_install
3866 # As a last resort, use the slow shell script. We don't cache a
3867 # path for INSTALL within a source directory, because that will
3868 # break other packages using the cache if that directory is
3869 # removed, or if the path is relative.
3870 INSTALL=$ac_install_sh
3873 echo "$as_me:3873: result: $INSTALL" >&5
3874 echo "${ECHO_T}$INSTALL" >&6
3876 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3877 # It thinks the first close brace ends the variable substitution.
3878 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3880 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3882 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3888 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
3889 test -z "$cf_dir" && cf_dir=.
3890 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
3894 for ac_prog in lint cppcheck splint
3896 # Extract the first word of "$ac_prog", so it can be a program name with args.
3897 set dummy $ac_prog; ac_word=$2
3898 echo "$as_me:3898: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_prog_LINT+set}" = set; then
3901 echo $ECHO_N "(cached) $ECHO_C" >&6
3903 if test -n "$LINT"; then
3904 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3906 ac_save_IFS=$IFS; IFS=$ac_path_separator
3908 for ac_dir in $ac_dummy; do
3910 test -z "$ac_dir" && ac_dir=.
3911 $as_executable_p "$ac_dir/$ac_word" || continue
3912 ac_cv_prog_LINT="$ac_prog"
3913 echo "$as_me:3913: found $ac_dir/$ac_word" >&5
3919 LINT=$ac_cv_prog_LINT
3920 if test -n "$LINT"; then
3921 echo "$as_me:3921: result: $LINT" >&5
3922 echo "${ECHO_T}$LINT" >&6
3924 echo "$as_me:3924: result: no" >&5
3925 echo "${ECHO_T}no" >&6
3928 test -n "$LINT" && break
3932 (xcppcheck|x*/cppcheck)
3933 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3937 echo "$as_me:3937: checking whether ln -s works" >&5
3938 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3940 if test "$LN_S" = "ln -s"; then
3941 echo "$as_me:3941: result: yes" >&5
3942 echo "${ECHO_T}yes" >&6
3944 echo "$as_me:3944: result: no, using $LN_S" >&5
3945 echo "${ECHO_T}no, using $LN_S" >&6
3948 echo "$as_me:3948: checking if $LN_S -f options work" >&5
3949 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3951 rm -f conf$$.src conf$$dst
3953 echo first >conf$$.src
3954 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3959 rm -f conf$$.dst conf$$src
3960 echo "$as_me:3960: result: $cf_prog_ln_sf" >&5
3961 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3963 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3965 echo "$as_me:3965: checking for long file names" >&5
3966 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3967 if test "${ac_cv_sys_long_file_names+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 ac_cv_sys_long_file_names=yes
3971 # Test for long file names in all the places we know might matter:
3972 # . the current directory, where building will happen
3973 # $prefix/lib where we will be installing things
3974 # $exec_prefix/lib likewise
3975 # eval it to expand exec_prefix.
3976 # $TMPDIR if set, where it might want to write temporary files
3977 # if $TMPDIR is not set:
3978 # /tmp where it might want to write temporary files
3981 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3984 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3986 for ac_dir in . $ac_tmpdirs `eval echo "$prefix/lib" "$exec_prefix/lib"` ; do
3987 test -d "$ac_dir" || continue
3988 test -w "$ac_dir" || continue # It is less confusing to not echo anything here.
3989 ac_xdir=$ac_dir/cf$$
3990 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
3991 ac_tf1=$ac_xdir/conftest9012345
3992 ac_tf2=$ac_xdir/conftest9012346
3993 (echo 1 >"$ac_tf1") 2>/dev/null
3994 (echo 2 >"$ac_tf2") 2>/dev/null
3995 ac_val=`cat "$ac_tf1" 2>/dev/null`
3996 if test ! -f "$ac_tf1" || test "$ac_val" != 1; then
3997 ac_cv_sys_long_file_names=no
3998 rm -rf "$ac_xdir" 2>/dev/null
4001 rm -rf "$ac_xdir" 2>/dev/null
4004 echo "$as_me:4004: result: $ac_cv_sys_long_file_names" >&5
4005 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
4006 if test "$ac_cv_sys_long_file_names" = yes; then
4008 cat >>confdefs.h <<\EOF
4009 #define HAVE_LONG_FILE_NAMES 1
4014 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
4015 # of package conflict.
4018 # Check whether --with-config-suffix or --without-config-suffix was given.
4019 if test "${with_config_suffix+set}" = set; then
4020 withval="$with_config_suffix"
4023 { echo "$as_me:4023: WARNING: expected a value for config-suffix option" >&5
4024 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
4026 (*) cf_config_suffix="$withval"
4031 # If we find pkg-config, check if we should install the ".pc" files.
4033 echo "$as_me:4033: checking if you want to use pkg-config" >&5
4034 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4036 # Check whether --with-pkg-config or --without-pkg-config was given.
4037 if test "${with_pkg_config+set}" = set; then
4038 withval="$with_pkg_config"
4039 cf_pkg_config=$withval
4043 echo "$as_me:4043: result: $cf_pkg_config" >&5
4044 echo "${ECHO_T}$cf_pkg_config" >&6
4046 case "$cf_pkg_config" in
4052 if test -n "$ac_tool_prefix"; then
4053 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4054 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4055 echo "$as_me:4055: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4065 ac_save_IFS=$IFS; IFS=$ac_path_separator
4067 for ac_dir in $ac_dummy; do
4069 test -z "$ac_dir" && ac_dir=.
4070 if $as_executable_p "$ac_dir/$ac_word"; then
4071 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4072 echo "$as_me:4072: found $ac_dir/$ac_word" >&5
4080 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4082 if test -n "$PKG_CONFIG"; then
4083 echo "$as_me:4083: result: $PKG_CONFIG" >&5
4084 echo "${ECHO_T}$PKG_CONFIG" >&6
4086 echo "$as_me:4086: result: no" >&5
4087 echo "${ECHO_T}no" >&6
4091 if test -z "$ac_cv_path_PKG_CONFIG"; then
4092 ac_pt_PKG_CONFIG=$PKG_CONFIG
4093 # Extract the first word of "pkg-config", so it can be a program name with args.
4094 set dummy pkg-config; ac_word=$2
4095 echo "$as_me:4095: checking for $ac_word" >&5
4096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4097 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 case $ac_pt_PKG_CONFIG in
4102 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4105 ac_save_IFS=$IFS; IFS=$ac_path_separator
4107 for ac_dir in $ac_dummy; do
4109 test -z "$ac_dir" && ac_dir=.
4110 if $as_executable_p "$ac_dir/$ac_word"; then
4111 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4112 echo "$as_me:4112: found $ac_dir/$ac_word" >&5
4117 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4121 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4123 if test -n "$ac_pt_PKG_CONFIG"; then
4124 echo "$as_me:4124: result: $ac_pt_PKG_CONFIG" >&5
4125 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4127 echo "$as_me:4127: result: no" >&5
4128 echo "${ECHO_T}no" >&6
4131 PKG_CONFIG=$ac_pt_PKG_CONFIG
4133 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4142 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4143 if test "$PKG_CONFIG" != none ; then
4145 if test "x$prefix" != xNONE; then
4146 cf_path_syntax="$prefix"
4148 cf_path_syntax="$ac_default_prefix"
4151 case ".$PKG_CONFIG" in
4156 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4158 (.\$\{*prefix\}*|.\$\{*dir\}*)
4159 eval PKG_CONFIG="$PKG_CONFIG"
4160 case ".$PKG_CONFIG" in
4162 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4167 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4170 { { echo "$as_me:4170: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4171 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4172 { (exit 1); exit 1; }; }
4176 elif test "x$cf_pkg_config" != xno ; then
4177 { echo "$as_me:4177: WARNING: pkg-config is not installed" >&5
4178 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4181 case "$PKG_CONFIG" in
4183 echo "$as_me:4183: checking for pkg-config library directory" >&5
4184 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
4187 echo "$as_me:4187: checking for $PKG_CONFIG library directory" >&5
4188 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
4192 # if $PKG_CONFIG_LIBDIR is set, try to use that
4193 if test -n "$PKG_CONFIG_PATH"; then
4194 cf_search_path=`echo "$PKG_CONFIG_PATH" | sed -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
4195 elif test -n "$PKG_CONFIG_LIBDIR"; then
4196 cf_search_path=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
4201 # if the option is used, let that override. otherwise default to "libdir"
4203 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
4204 if test "${with_pkg_config_libdir+set}" = set; then
4205 withval="$with_pkg_config_libdir"
4206 cf_search_path=$withval
4208 test "x$PKG_CONFIG" != xnone && test -z "$cf_search_path" && cf_search_path=libdir
4211 case "x$cf_search_path" in
4213 PKG_CONFIG_LIBDIR='${libdir}/pkgconfig'
4214 echo "$as_me:4214: result: $PKG_CONFIG_LIBDIR" >&5
4215 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4224 PKG_CONFIG_LIBDIR="$cf_search_path"
4225 echo "$as_me:4225: result: $PKG_CONFIG_LIBDIR" >&5
4226 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4230 echo "$as_me:4230: result: auto" >&5
4231 echo "${ECHO_T}auto" >&6
4233 # Look for the library directory using the same prefix as the executable
4234 echo "$as_me:4234: checking for search-list" >&5
4235 echo $ECHO_N "checking for search-list... $ECHO_C" >&6
4236 if test "x$PKG_CONFIG" != xnone
4238 # works for pkg-config since version 0.24 (2009)
4239 # works for pkgconf since version 0.8.3 (2012)
4240 for cf_pkg_program in \
4241 `echo "$PKG_CONFIG" | sed -e 's,^.*/,,'` \
4245 cf_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null | tr : ' '`
4246 test -n "$cf_search_path" && break
4249 # works for pkg-config since import in 2005 of original 2001 HP code.
4250 test -z "$cf_search_path" && \
4252 "$PKG_CONFIG" --debug --exists no-such-package 2>&1 | $AWK "\
4253 /^Scanning directory (#[1-9][0-9]* )?'.*'$/{ \
4254 sub(\"^[^']*'\",\"\"); \
4255 sub(\"'.*\",\"\"); \
4256 printf \" %s\", \\$0; } \
4261 echo "$as_me:4261: result: $cf_search_path" >&5
4262 echo "${ECHO_T}$cf_search_path" >&6
4265 { { echo "$as_me:4265: error: Unexpected option value: $cf_search_path" >&5
4266 echo "$as_me: error: Unexpected option value: $cf_search_path" >&2;}
4267 { (exit 1); exit 1; }; }
4271 if test -n "$cf_search_path"
4273 echo "$as_me:4273: checking for first directory" >&5
4274 echo $ECHO_N "checking for first directory... $ECHO_C" >&6
4275 cf_pkg_config_path=none
4276 for cf_config in $cf_search_path
4278 if test -d "$cf_config"
4280 cf_pkg_config_path=$cf_config
4284 echo "$as_me:4284: result: $cf_pkg_config_path" >&5
4285 echo "${ECHO_T}$cf_pkg_config_path" >&6
4287 if test "x$cf_pkg_config_path" != xnone ; then
4288 # limit this to the first directory found
4289 PKG_CONFIG_LIBDIR="$cf_pkg_config_path"
4292 if test -z "$PKG_CONFIG_LIBDIR" && test -n "$cf_search_path"
4294 echo "$as_me:4294: checking for workaround" >&5
4295 echo $ECHO_N "checking for workaround... $ECHO_C" >&6
4296 if test "$prefix" = "NONE" ; then
4297 cf_prefix="$ac_default_prefix"
4301 eval cf_libdir=$libdir
4302 cf_libdir=`echo "$cf_libdir" | sed -e "s,^NONE,$cf_prefix,"`
4304 for cf_config in $cf_search_path
4307 $cf_libdir/pkgconfig)
4308 PKG_CONFIG_LIBDIR=$cf_libdir/pkgconfig
4312 test -z "$cf_backup" && cf_backup=$cf_config
4316 test -z "$PKG_CONFIG_LIBDIR" && PKG_CONFIG_LIBDIR=$cf_backup
4317 echo "$as_me:4317: result: $PKG_CONFIG_LIBDIR" >&5
4318 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4322 if test "x$PKG_CONFIG" != xnone
4324 echo "$as_me:4324: checking if we should install .pc files for $PKG_CONFIG" >&5
4325 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4327 echo "$as_me:4327: checking if we should install .pc files" >&5
4328 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4331 # Check whether --enable-pc-files or --disable-pc-files was given.
4332 if test "${enable_pc_files+set}" = set; then
4333 enableval="$enable_pc_files"
4334 enable_pc_files=$enableval
4338 echo "$as_me:4338: result: $enable_pc_files" >&5
4339 echo "${ECHO_T}$enable_pc_files" >&6
4341 if test "x$enable_pc_files" != xno
4344 case "x$PKG_CONFIG_LIBDIR" in
4346 { echo "$as_me:4346: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4347 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4350 cf_pkg_config_libdir="$PKG_CONFIG_LIBDIR"
4352 if test "x$prefix" != xNONE; then
4353 cf_path_syntax="$prefix"
4355 cf_path_syntax="$ac_default_prefix"
4358 case ".$cf_pkg_config_libdir" in
4363 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4365 (.\$\{*prefix\}*|.\$\{*dir\}*)
4366 eval cf_pkg_config_libdir="$cf_pkg_config_libdir"
4367 case ".$cf_pkg_config_libdir" in
4369 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4374 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4377 { { echo "$as_me:4377: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&5
4378 echo "$as_me: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&2;}
4379 { (exit 1); exit 1; }; }
4389 if test -z "$MAKE_PC_FILES"
4391 echo "$as_me:4391: checking for suffix to add to pc-files" >&5
4392 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
4394 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4395 if test "${with_pc_suffix+set}" = set; then
4396 withval="$with_pc_suffix"
4401 (*) PC_MODULE_SUFFIX="$withval"
4405 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4406 echo "$as_me:4406: result: $PC_MODULE_SUFFIX" >&5
4407 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4408 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4412 echo "$as_me:4412: checking if we should assume mixed-case filenames" >&5
4413 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4415 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4416 if test "${enable_mixed_case+set}" = set; then
4417 enableval="$enable_mixed_case"
4418 enable_mixedcase=$enableval
4420 enable_mixedcase=auto
4422 echo "$as_me:4422: result: $enable_mixedcase" >&5
4423 echo "${ECHO_T}$enable_mixedcase" >&6
4424 if test "$enable_mixedcase" = "auto" ; then
4426 echo "$as_me:4426: checking if filesystem supports mixed-case filenames" >&5
4427 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4428 if test "${cf_cv_mixedcase+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 if test "$cross_compiling" = yes ; then
4433 case "$target_alias" in
4434 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
4442 rm -f conftest CONFTEST
4444 if test -f CONFTEST ; then
4449 rm -f conftest CONFTEST
4453 echo "$as_me:4453: result: $cf_cv_mixedcase" >&5
4454 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4455 test "$cf_cv_mixedcase" = yes &&
4456 cat >>confdefs.h <<\EOF
4457 #define MIXEDCASE_FILENAMES 1
4461 cf_cv_mixedcase=$enable_mixedcase
4462 if test "x$enable_mixedcase" = "xyes" ; then
4464 cat >>confdefs.h <<\EOF
4465 #define MIXEDCASE_FILENAMES 1
4471 # do this after mixed-case option (tags/TAGS is not as important as tic).
4472 echo "$as_me:4472: checking whether ${MAKE-make} sets \${MAKE}" >&5
4473 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4474 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4475 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 cat >conftest.make <<\EOF
4480 @echo 'ac_maketemp="${MAKE}"'
4482 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4483 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4484 if test -n "$ac_maketemp"; then
4485 eval ac_cv_prog_make_${ac_make}_set=yes
4487 eval ac_cv_prog_make_${ac_make}_set=no
4491 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4492 echo "$as_me:4492: result: yes" >&5
4493 echo "${ECHO_T}yes" >&6
4496 echo "$as_me:4496: result: no" >&5
4497 echo "${ECHO_T}no" >&6
4498 SET_MAKE="MAKE=${MAKE-make}"
4501 echo "$as_me:4501: checking for \".PHONY\" make-support" >&5
4502 echo $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6
4503 if test "${cf_cv_make_PHONY+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 mkdir conftest || exit 1
4511 cat >makefile <<'CF_EOF'
4515 @echo "** making $@ $(DATA)"
4517 @echo "** making $@ $(DATA)"
4519 @echo "** making $@ $(DATA)"
4522 @echo "** making $@ $(DATA)"
4525 for cf_data in 1 2 3
4527 ${MAKE:-make} always DATA=$cf_data
4528 ${MAKE:-make} once DATA=$cf_data
4529 ${MAKE:-make} -t always once
4530 if test -f always ; then
4531 echo "no (case 1)" > ../conftest.tmp
4532 elif test ! -f always.out ; then
4533 echo "no (case 2)" > ../conftest.tmp
4534 elif test ! -f once.out ; then
4535 echo "no (case 3)" > ../conftest.tmp
4536 elif ! cmp -s always.out once.out ; then
4537 echo "no (case 4)" > ../conftest.tmp
4538 diff always.out once.out
4540 cf_check="`cat always.out`"
4541 if test "x$cf_check" != "x$cf_data" ; then
4542 echo "no (case 5)" > ../conftest.tmp
4544 echo yes > ../conftest.tmp
4552 cf_cv_make_PHONY="`cat conftest.tmp`"
4556 echo "$as_me:4556: result: $cf_cv_make_PHONY" >&5
4557 echo "${ECHO_T}$cf_cv_make_PHONY" >&6
4560 test "x$cf_cv_make_PHONY" = xyes && MAKE_PHONY=
4561 test "x$cf_cv_make_PHONY" != xyes && MAKE_NO_PHONY=
4563 for ac_prog in exctags ctags
4565 # Extract the first word of "$ac_prog", so it can be a program name with args.
4566 set dummy $ac_prog; ac_word=$2
4567 echo "$as_me:4567: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569 if test "${ac_cv_prog_CTAGS+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 if test -n "$CTAGS"; then
4573 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4575 ac_save_IFS=$IFS; IFS=$ac_path_separator
4577 for ac_dir in $ac_dummy; do
4579 test -z "$ac_dir" && ac_dir=.
4580 $as_executable_p "$ac_dir/$ac_word" || continue
4581 ac_cv_prog_CTAGS="$ac_prog"
4582 echo "$as_me:4582: found $ac_dir/$ac_word" >&5
4588 CTAGS=$ac_cv_prog_CTAGS
4589 if test -n "$CTAGS"; then
4590 echo "$as_me:4590: result: $CTAGS" >&5
4591 echo "${ECHO_T}$CTAGS" >&6
4593 echo "$as_me:4593: result: no" >&5
4594 echo "${ECHO_T}no" >&6
4597 test -n "$CTAGS" && break
4600 for ac_prog in exetags etags
4602 # Extract the first word of "$ac_prog", so it can be a program name with args.
4603 set dummy $ac_prog; ac_word=$2
4604 echo "$as_me:4604: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606 if test "${ac_cv_prog_ETAGS+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 if test -n "$ETAGS"; then
4610 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4612 ac_save_IFS=$IFS; IFS=$ac_path_separator
4614 for ac_dir in $ac_dummy; do
4616 test -z "$ac_dir" && ac_dir=.
4617 $as_executable_p "$ac_dir/$ac_word" || continue
4618 ac_cv_prog_ETAGS="$ac_prog"
4619 echo "$as_me:4619: found $ac_dir/$ac_word" >&5
4625 ETAGS=$ac_cv_prog_ETAGS
4626 if test -n "$ETAGS"; then
4627 echo "$as_me:4627: result: $ETAGS" >&5
4628 echo "${ECHO_T}$ETAGS" >&6
4630 echo "$as_me:4630: result: no" >&5
4631 echo "${ECHO_T}no" >&6
4634 test -n "$ETAGS" && break
4637 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4638 set dummy ${CTAGS:-ctags}; ac_word=$2
4639 echo "$as_me:4639: checking for $ac_word" >&5
4640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4641 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 if test -n "$MAKE_LOWER_TAGS"; then
4645 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4647 ac_save_IFS=$IFS; IFS=$ac_path_separator
4649 for ac_dir in $ac_dummy; do
4651 test -z "$ac_dir" && ac_dir=.
4652 $as_executable_p "$ac_dir/$ac_word" || continue
4653 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4654 echo "$as_me:4654: found $ac_dir/$ac_word" >&5
4658 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4661 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4662 if test -n "$MAKE_LOWER_TAGS"; then
4663 echo "$as_me:4663: result: $MAKE_LOWER_TAGS" >&5
4664 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4666 echo "$as_me:4666: result: no" >&5
4667 echo "${ECHO_T}no" >&6
4670 if test "$cf_cv_mixedcase" = yes ; then
4671 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4672 set dummy ${ETAGS:-etags}; ac_word=$2
4673 echo "$as_me:4673: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4675 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 if test -n "$MAKE_UPPER_TAGS"; then
4679 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4681 ac_save_IFS=$IFS; IFS=$ac_path_separator
4683 for ac_dir in $ac_dummy; do
4685 test -z "$ac_dir" && ac_dir=.
4686 $as_executable_p "$ac_dir/$ac_word" || continue
4687 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4688 echo "$as_me:4688: found $ac_dir/$ac_word" >&5
4692 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4695 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4696 if test -n "$MAKE_UPPER_TAGS"; then
4697 echo "$as_me:4697: result: $MAKE_UPPER_TAGS" >&5
4698 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4700 echo "$as_me:4700: result: no" >&5
4701 echo "${ECHO_T}no" >&6
4708 if test "$MAKE_UPPER_TAGS" = yes ; then
4714 if test "$MAKE_LOWER_TAGS" = yes ; then
4720 echo "$as_me:4720: checking for makeflags variable" >&5
4721 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4722 if test "${cf_cv_makeflags+set}" = set; then
4723 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4729 cat >cf_makeflags.tmp <<CF_EOF
4732 @ echo '.$cf_option'
4734 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | ${FGREP-fgrep} -v "ing directory" | sed -e 's,[ ]*$,,'`
4735 case "$cf_result" in
4737 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`"
4738 case "$cf_result" in
4739 (.*CC=*) cf_cv_makeflags=
4741 (*) cf_cv_makeflags=$cf_option
4750 echo "${as_me:-configure}:4750: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4755 rm -f cf_makeflags.tmp
4758 echo "$as_me:4758: result: $cf_cv_makeflags" >&5
4759 echo "${ECHO_T}$cf_cv_makeflags" >&6
4761 if test -n "$ac_tool_prefix"; then
4762 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4763 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4764 echo "$as_me:4764: checking for $ac_word" >&5
4765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4766 if test "${ac_cv_prog_RANLIB+set}" = set; then
4767 echo $ECHO_N "(cached) $ECHO_C" >&6
4769 if test -n "$RANLIB"; then
4770 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4772 ac_save_IFS=$IFS; IFS=$ac_path_separator
4774 for ac_dir in $ac_dummy; do
4776 test -z "$ac_dir" && ac_dir=.
4777 $as_executable_p "$ac_dir/$ac_word" || continue
4778 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4779 echo "$as_me:4779: found $ac_dir/$ac_word" >&5
4785 RANLIB=$ac_cv_prog_RANLIB
4786 if test -n "$RANLIB"; then
4787 echo "$as_me:4787: result: $RANLIB" >&5
4788 echo "${ECHO_T}$RANLIB" >&6
4790 echo "$as_me:4790: result: no" >&5
4791 echo "${ECHO_T}no" >&6
4795 if test -z "$ac_cv_prog_RANLIB"; then
4796 ac_ct_RANLIB=$RANLIB
4797 # Extract the first word of "ranlib", so it can be a program name with args.
4798 set dummy ranlib; ac_word=$2
4799 echo "$as_me:4799: checking for $ac_word" >&5
4800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4801 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 if test -n "$ac_ct_RANLIB"; then
4805 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4807 ac_save_IFS=$IFS; IFS=$ac_path_separator
4809 for ac_dir in $ac_dummy; do
4811 test -z "$ac_dir" && ac_dir=.
4812 $as_executable_p "$ac_dir/$ac_word" || continue
4813 ac_cv_prog_ac_ct_RANLIB="ranlib"
4814 echo "$as_me:4814: found $ac_dir/$ac_word" >&5
4818 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4821 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4822 if test -n "$ac_ct_RANLIB"; then
4823 echo "$as_me:4823: result: $ac_ct_RANLIB" >&5
4824 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4826 echo "$as_me:4826: result: no" >&5
4827 echo "${ECHO_T}no" >&6
4830 RANLIB=$ac_ct_RANLIB
4832 RANLIB="$ac_cv_prog_RANLIB"
4835 if test -n "$ac_tool_prefix"; then
4836 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4837 set dummy ${ac_tool_prefix}ld; ac_word=$2
4838 echo "$as_me:4838: checking for $ac_word" >&5
4839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4840 if test "${ac_cv_prog_LD+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 if test -n "$LD"; then
4844 ac_cv_prog_LD="$LD" # Let the user override the test.
4846 ac_save_IFS=$IFS; IFS=$ac_path_separator
4848 for ac_dir in $ac_dummy; do
4850 test -z "$ac_dir" && ac_dir=.
4851 $as_executable_p "$ac_dir/$ac_word" || continue
4852 ac_cv_prog_LD="${ac_tool_prefix}ld"
4853 echo "$as_me:4853: found $ac_dir/$ac_word" >&5
4860 if test -n "$LD"; then
4861 echo "$as_me:4861: result: $LD" >&5
4862 echo "${ECHO_T}$LD" >&6
4864 echo "$as_me:4864: result: no" >&5
4865 echo "${ECHO_T}no" >&6
4869 if test -z "$ac_cv_prog_LD"; then
4871 # Extract the first word of "ld", so it can be a program name with args.
4872 set dummy ld; ac_word=$2
4873 echo "$as_me:4873: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4875 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 if test -n "$ac_ct_LD"; then
4879 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4881 ac_save_IFS=$IFS; IFS=$ac_path_separator
4883 for ac_dir in $ac_dummy; do
4885 test -z "$ac_dir" && ac_dir=.
4886 $as_executable_p "$ac_dir/$ac_word" || continue
4887 ac_cv_prog_ac_ct_LD="ld"
4888 echo "$as_me:4888: found $ac_dir/$ac_word" >&5
4892 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4895 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4896 if test -n "$ac_ct_LD"; then
4897 echo "$as_me:4897: result: $ac_ct_LD" >&5
4898 echo "${ECHO_T}$ac_ct_LD" >&6
4900 echo "$as_me:4900: result: no" >&5
4901 echo "${ECHO_T}no" >&6
4909 if test -n "$ac_tool_prefix"; then
4910 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4911 set dummy ${ac_tool_prefix}ar; ac_word=$2
4912 echo "$as_me:4912: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4914 if test "${ac_cv_prog_AR+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 if test -n "$AR"; then
4918 ac_cv_prog_AR="$AR" # Let the user override the test.
4920 ac_save_IFS=$IFS; IFS=$ac_path_separator
4922 for ac_dir in $ac_dummy; do
4924 test -z "$ac_dir" && ac_dir=.
4925 $as_executable_p "$ac_dir/$ac_word" || continue
4926 ac_cv_prog_AR="${ac_tool_prefix}ar"
4927 echo "$as_me:4927: found $ac_dir/$ac_word" >&5
4934 if test -n "$AR"; then
4935 echo "$as_me:4935: result: $AR" >&5
4936 echo "${ECHO_T}$AR" >&6
4938 echo "$as_me:4938: result: no" >&5
4939 echo "${ECHO_T}no" >&6
4943 if test -z "$ac_cv_prog_AR"; then
4945 # Extract the first word of "ar", so it can be a program name with args.
4946 set dummy ar; ac_word=$2
4947 echo "$as_me:4947: checking for $ac_word" >&5
4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4949 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 if test -n "$ac_ct_AR"; then
4953 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4955 ac_save_IFS=$IFS; IFS=$ac_path_separator
4957 for ac_dir in $ac_dummy; do
4959 test -z "$ac_dir" && ac_dir=.
4960 $as_executable_p "$ac_dir/$ac_word" || continue
4961 ac_cv_prog_ac_ct_AR="ar"
4962 echo "$as_me:4962: found $ac_dir/$ac_word" >&5
4966 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4969 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4970 if test -n "$ac_ct_AR"; then
4971 echo "$as_me:4971: result: $ac_ct_AR" >&5
4972 echo "${ECHO_T}$ac_ct_AR" >&6
4974 echo "$as_me:4974: result: no" >&5
4975 echo "${ECHO_T}no" >&6
4983 if test -n "$ac_tool_prefix"; then
4984 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4985 set dummy ${ac_tool_prefix}nm; ac_word=$2
4986 echo "$as_me:4986: checking for $ac_word" >&5
4987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4988 if test "${ac_cv_prog_NM+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 if test -n "$NM"; then
4992 ac_cv_prog_NM="$NM" # Let the user override the test.
4994 ac_save_IFS=$IFS; IFS=$ac_path_separator
4996 for ac_dir in $ac_dummy; do
4998 test -z "$ac_dir" && ac_dir=.
4999 $as_executable_p "$ac_dir/$ac_word" || continue
5000 ac_cv_prog_NM="${ac_tool_prefix}nm"
5001 echo "$as_me:5001: found $ac_dir/$ac_word" >&5
5008 if test -n "$NM"; then
5009 echo "$as_me:5009: result: $NM" >&5
5010 echo "${ECHO_T}$NM" >&6
5012 echo "$as_me:5012: result: no" >&5
5013 echo "${ECHO_T}no" >&6
5017 if test -z "$ac_cv_prog_NM"; then
5019 # Extract the first word of "nm", so it can be a program name with args.
5020 set dummy nm; ac_word=$2
5021 echo "$as_me:5021: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 if test -n "$ac_ct_NM"; then
5027 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5029 ac_save_IFS=$IFS; IFS=$ac_path_separator
5031 for ac_dir in $ac_dummy; do
5033 test -z "$ac_dir" && ac_dir=.
5034 $as_executable_p "$ac_dir/$ac_word" || continue
5035 ac_cv_prog_ac_ct_NM="nm"
5036 echo "$as_me:5036: found $ac_dir/$ac_word" >&5
5040 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
5043 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5044 if test -n "$ac_ct_NM"; then
5045 echo "$as_me:5045: result: $ac_ct_NM" >&5
5046 echo "${ECHO_T}$ac_ct_NM" >&6
5048 echo "$as_me:5048: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5057 if test -n "$ac_tool_prefix"; then
5058 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5059 set dummy ${ac_tool_prefix}ar; ac_word=$2
5060 echo "$as_me:5060: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5062 if test "${ac_cv_prog_AR+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 if test -n "$AR"; then
5066 ac_cv_prog_AR="$AR" # Let the user override the test.
5068 ac_save_IFS=$IFS; IFS=$ac_path_separator
5070 for ac_dir in $ac_dummy; do
5072 test -z "$ac_dir" && ac_dir=.
5073 $as_executable_p "$ac_dir/$ac_word" || continue
5074 ac_cv_prog_AR="${ac_tool_prefix}ar"
5075 echo "$as_me:5075: found $ac_dir/$ac_word" >&5
5082 if test -n "$AR"; then
5083 echo "$as_me:5083: result: $AR" >&5
5084 echo "${ECHO_T}$AR" >&6
5086 echo "$as_me:5086: result: no" >&5
5087 echo "${ECHO_T}no" >&6
5091 if test -z "$ac_cv_prog_AR"; then
5093 # Extract the first word of "ar", so it can be a program name with args.
5094 set dummy ar; ac_word=$2
5095 echo "$as_me:5095: checking for $ac_word" >&5
5096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5097 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 if test -n "$ac_ct_AR"; then
5101 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5103 ac_save_IFS=$IFS; IFS=$ac_path_separator
5105 for ac_dir in $ac_dummy; do
5107 test -z "$ac_dir" && ac_dir=.
5108 $as_executable_p "$ac_dir/$ac_word" || continue
5109 ac_cv_prog_ac_ct_AR="ar"
5110 echo "$as_me:5110: found $ac_dir/$ac_word" >&5
5114 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5117 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5118 if test -n "$ac_ct_AR"; then
5119 echo "$as_me:5119: result: $ac_ct_AR" >&5
5120 echo "${ECHO_T}$ac_ct_AR" >&6
5122 echo "$as_me:5122: result: no" >&5
5123 echo "${ECHO_T}no" >&6
5131 echo "$as_me:5131: checking for options to update archives" >&5
5132 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
5133 if test "${cf_cv_ar_flags+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 case "$cf_cv_system_name" in
5140 cat >mk_static_lib.sh <<-EOF
5145 exec \$MSVC_BIN -out:"\$out" \$@
5147 chmod +x mk_static_lib.sh
5148 AR=`pwd`/mk_static_lib.sh
5151 cf_cv_ar_flags=unknown
5152 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
5155 # check if $ARFLAGS already contains this choice
5156 if test "x$ARFLAGS" != "x" ; then
5157 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
5158 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
5164 rm -f "conftest.$ac_cv_objext"
5167 cat >"conftest.$ac_ext" <<EOF
5168 #line 5168 "configure"
5169 int testdata[3] = { 123, 456, 789 };
5171 if { (eval echo "$as_me:5171: \"$ac_compile\"") >&5
5172 (eval $ac_compile) 2>&5
5174 echo "$as_me:5174: \$? = $ac_status" >&5
5175 (exit "$ac_status"); } ; then
5176 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
5177 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null
5178 if test -f conftest.a ; then
5179 cf_cv_ar_flags="$cf_ar_flags"
5183 test -n "$verbose" && echo " cannot compile test-program" 1>&6
5185 echo "${as_me:-configure}:5185: testing cannot compile test-program ..." 1>&5
5190 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext"
5195 echo "$as_me:5195: result: $cf_cv_ar_flags" >&5
5196 echo "${ECHO_T}$cf_cv_ar_flags" >&6
5198 if test -n "$ARFLAGS" ; then
5199 if test -n "$cf_cv_ar_flags" ; then
5200 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
5203 ARFLAGS=$cf_cv_ar_flags
5206 echo "$as_me:5206: checking if you have specified an install-prefix" >&5
5207 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
5209 # Check whether --with-install-prefix or --without-install-prefix was given.
5210 if test "${with_install_prefix+set}" = set; then
5211 withval="$with_install_prefix"
5215 (*) DESTDIR="$withval"
5219 echo "$as_me:5219: result: $DESTDIR" >&5
5220 echo "${ECHO_T}$DESTDIR" >&6
5222 ###############################################################################
5224 # If we're cross-compiling, allow the user to override the tools and their
5225 # options. The configure script is oriented toward identifying the host
5226 # compiler, etc., but we need a build compiler to generate parts of the source.
5228 case "$cf_cv_system_name" in
5230 LDFLAGS="$LDFLAGS user32.lib"
5235 if test "$cross_compiling" = yes ; then
5237 # defaults that we might want to override
5238 : ${BUILD_CFLAGS:=''}
5239 : ${BUILD_CPPFLAGS:=''}
5240 : ${BUILD_LDFLAGS:=''}
5242 : ${BUILD_EXEEXT:='$x'}
5243 : ${BUILD_OBJEXT:='o'}
5245 # Check whether --with-build-cc or --without-build-cc was given.
5246 if test "${with_build_cc+set}" = set; then
5247 withval="$with_build_cc"
5250 for ac_prog in gcc clang c99 c89 cc cl
5252 # Extract the first word of "$ac_prog", so it can be a program name with args.
5253 set dummy $ac_prog; ac_word=$2
5254 echo "$as_me:5254: checking for $ac_word" >&5
5255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5256 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 if test -n "$BUILD_CC"; then
5260 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5262 ac_save_IFS=$IFS; IFS=$ac_path_separator
5264 for ac_dir in $ac_dummy; do
5266 test -z "$ac_dir" && ac_dir=.
5267 $as_executable_p "$ac_dir/$ac_word" || continue
5268 ac_cv_prog_BUILD_CC="$ac_prog"
5269 echo "$as_me:5269: found $ac_dir/$ac_word" >&5
5275 BUILD_CC=$ac_cv_prog_BUILD_CC
5276 if test -n "$BUILD_CC"; then
5277 echo "$as_me:5277: result: $BUILD_CC" >&5
5278 echo "${ECHO_T}$BUILD_CC" >&6
5280 echo "$as_me:5280: result: no" >&5
5281 echo "${ECHO_T}no" >&6
5284 test -n "$BUILD_CC" && break
5286 test -n "$BUILD_CC" || BUILD_CC="none"
5289 echo "$as_me:5289: checking for native build C compiler" >&5
5290 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
5291 echo "$as_me:5291: result: $BUILD_CC" >&5
5292 echo "${ECHO_T}$BUILD_CC" >&6
5294 echo "$as_me:5294: checking for native build C preprocessor" >&5
5295 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
5297 # Check whether --with-build-cpp or --without-build-cpp was given.
5298 if test "${with_build_cpp+set}" = set; then
5299 withval="$with_build_cpp"
5300 BUILD_CPP="$withval"
5302 BUILD_CPP='${BUILD_CC} -E'
5304 echo "$as_me:5304: result: $BUILD_CPP" >&5
5305 echo "${ECHO_T}$BUILD_CPP" >&6
5307 echo "$as_me:5307: checking for native build C flags" >&5
5308 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
5310 # Check whether --with-build-cflags or --without-build-cflags was given.
5311 if test "${with_build_cflags+set}" = set; then
5312 withval="$with_build_cflags"
5313 BUILD_CFLAGS="$withval"
5315 echo "$as_me:5315: result: $BUILD_CFLAGS" >&5
5316 echo "${ECHO_T}$BUILD_CFLAGS" >&6
5318 echo "$as_me:5318: checking for native build C preprocessor-flags" >&5
5319 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
5321 # Check whether --with-build-cppflags or --without-build-cppflags was given.
5322 if test "${with_build_cppflags+set}" = set; then
5323 withval="$with_build_cppflags"
5324 BUILD_CPPFLAGS="$withval"
5326 echo "$as_me:5326: result: $BUILD_CPPFLAGS" >&5
5327 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
5329 echo "$as_me:5329: checking for native build linker-flags" >&5
5330 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
5332 # Check whether --with-build-ldflags or --without-build-ldflags was given.
5333 if test "${with_build_ldflags+set}" = set; then
5334 withval="$with_build_ldflags"
5335 BUILD_LDFLAGS="$withval"
5337 echo "$as_me:5337: result: $BUILD_LDFLAGS" >&5
5338 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
5340 echo "$as_me:5340: checking for native build linker-libraries" >&5
5341 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
5343 # Check whether --with-build-libs or --without-build-libs was given.
5344 if test "${with_build_libs+set}" = set; then
5345 withval="$with_build_libs"
5346 BUILD_LIBS="$withval"
5348 echo "$as_me:5348: result: $BUILD_LIBS" >&5
5349 echo "${ECHO_T}$BUILD_LIBS" >&6
5351 # this assumes we're on Unix.
5355 : ${BUILD_CC:='${CC}'}
5357 echo "$as_me:5357: checking if the build-compiler \"$BUILD_CC\" works" >&5
5358 echo $ECHO_N "checking if the build-compiler \"$BUILD_CC\" works... $ECHO_C" >&6
5360 cf_save_crossed=$cross_compiling
5361 cf_save_ac_link=$ac_link
5363 cf_build_cppflags=$BUILD_CPPFLAGS
5364 test "$cf_build_cppflags" = "#" && cf_build_cppflags=
5365 ac_link='$BUILD_CC -o "conftest$ac_exeext" $BUILD_CFLAGS $cf_build_cppflags $BUILD_LDFLAGS "conftest.$ac_ext" $BUILD_LIBS >&5'
5367 if test "$cross_compiling" = yes; then
5368 cf_ok_build_cc=unknown
5370 cat >"conftest.$ac_ext" <<_ACEOF
5371 #line 5371 "configure"
5372 #include "confdefs.h"
5374 int main(int argc, char *argv[])
5376 ${cf_cv_main_return:-return}(argc < 0 || argv == 0 || argv[0] == 0);
5380 rm -f "conftest$ac_exeext"
5381 if { (eval echo "$as_me:5381: \"$ac_link\"") >&5
5382 (eval $ac_link) 2>&5
5384 echo "$as_me:5384: \$? = $ac_status" >&5
5385 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
5386 { (eval echo "$as_me:5386: \"$ac_try\"") >&5
5389 echo "$as_me:5389: \$? = $ac_status" >&5
5390 (exit "$ac_status"); }; }; then
5393 echo "$as_me: program exited with status $ac_status" >&5
5394 echo "$as_me: failed program was:" >&5
5395 cat "conftest.$ac_ext" >&5
5398 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
5401 cross_compiling=$cf_save_crossed
5402 ac_link=$cf_save_ac_link
5404 echo "$as_me:5404: result: $cf_ok_build_cc" >&5
5405 echo "${ECHO_T}$cf_ok_build_cc" >&6
5407 if test "$cf_ok_build_cc" != yes
5409 { { echo "$as_me:5409: error: Cross-build requires two compilers.
5410 Use --with-build-cc to specify the native compiler." >&5
5411 echo "$as_me: error: Cross-build requires two compilers.
5412 Use --with-build-cc to specify the native compiler." >&2;}
5413 { (exit 1); exit 1; }; }
5417 : ${BUILD_CC:='${CC}'}
5418 : ${BUILD_CPP:='${CPP}'}
5419 : ${BUILD_CFLAGS:='${CFLAGS}'}
5420 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
5421 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
5422 : ${BUILD_LIBS:='${LIBS}'}
5423 : ${BUILD_EXEEXT:='$x'}
5424 : ${BUILD_OBJEXT:='o'}
5427 ###############################################################################
5429 ### Options to allow the user to specify the set of libraries which are used.
5430 ### Use "--without-normal --with-shared" to allow the default model to be
5431 ### shared, for example.
5434 echo "$as_me:5434: checking if libtool -version-number should be used" >&5
5435 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5437 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5438 if test "${enable_libtool_version+set}" = set; then
5439 enableval="$enable_libtool_version"
5440 test "$enableval" != no && enableval=yes
5441 if test "$enableval" != "yes" ; then
5442 cf_libtool_version=no
5444 cf_libtool_version=yes
5448 cf_libtool_version=yes
5451 echo "$as_me:5451: result: $cf_libtool_version" >&5
5452 echo "${ECHO_T}$cf_libtool_version" >&6
5454 if test "$cf_libtool_version" = yes ; then
5455 LIBTOOL_VERSION="-version-number"
5457 LIBTOOL_VERSION="-version-info"
5460 { echo "$as_me:5460: WARNING: VERSION was not set" >&5
5461 echo "$as_me: WARNING: VERSION was not set" >&2;}
5464 ABI_VERSION="$VERSION"
5465 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5467 echo "${as_me:-configure}:5467: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5471 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5472 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5474 echo "${as_me:-configure}:5474: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5478 { echo "$as_me:5478: WARNING: unexpected VERSION value: $VERSION" >&5
5479 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5486 # common library maintenance symbols that are convenient for libtool scripts:
5487 LIB_CREATE='${AR} -cr'
5488 LIB_OBJECT='${OBJECTS}'
5492 # symbols used to prop libtool up to enable it to determine what it should be
5500 echo "$as_me:5500: checking if you want to build libraries with libtool" >&5
5501 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5503 # Check whether --with-libtool or --without-libtool was given.
5504 if test "${with_libtool+set}" = set; then
5505 withval="$with_libtool"
5506 with_libtool=$withval
5510 echo "$as_me:5510: result: $with_libtool" >&5
5511 echo "${ECHO_T}$with_libtool" >&6
5512 if test "$with_libtool" != "no"; then
5514 if test "$with_libtool" != "yes" ; then
5516 if test "x$prefix" != xNONE; then
5517 cf_path_syntax="$prefix"
5519 cf_path_syntax="$ac_default_prefix"
5522 case ".$with_libtool" in
5527 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5529 (.\$\{*prefix\}*|.\$\{*dir\}*)
5530 eval with_libtool="$with_libtool"
5531 case ".$with_libtool" in
5533 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5538 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5541 { { echo "$as_me:5541: error: expected a pathname, not \"$with_libtool\"" >&5
5542 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5543 { (exit 1); exit 1; }; }
5547 LIBTOOL=$with_libtool
5549 if test -n "$ac_tool_prefix"; then
5550 for ac_prog in libtool glibtool
5552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5554 echo "$as_me:5554: checking for $ac_word" >&5
5555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5556 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 if test -n "$LIBTOOL"; then
5560 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5562 ac_save_IFS=$IFS; IFS=$ac_path_separator
5564 for ac_dir in $ac_dummy; do
5566 test -z "$ac_dir" && ac_dir=.
5567 $as_executable_p "$ac_dir/$ac_word" || continue
5568 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5569 echo "$as_me:5569: found $ac_dir/$ac_word" >&5
5575 LIBTOOL=$ac_cv_prog_LIBTOOL
5576 if test -n "$LIBTOOL"; then
5577 echo "$as_me:5577: result: $LIBTOOL" >&5
5578 echo "${ECHO_T}$LIBTOOL" >&6
5580 echo "$as_me:5580: result: no" >&5
5581 echo "${ECHO_T}no" >&6
5584 test -n "$LIBTOOL" && break
5587 if test -z "$LIBTOOL"; then
5588 ac_ct_LIBTOOL=$LIBTOOL
5589 for ac_prog in libtool glibtool
5591 # Extract the first word of "$ac_prog", so it can be a program name with args.
5592 set dummy $ac_prog; ac_word=$2
5593 echo "$as_me:5593: checking for $ac_word" >&5
5594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5595 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 if test -n "$ac_ct_LIBTOOL"; then
5599 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5601 ac_save_IFS=$IFS; IFS=$ac_path_separator
5603 for ac_dir in $ac_dummy; do
5605 test -z "$ac_dir" && ac_dir=.
5606 $as_executable_p "$ac_dir/$ac_word" || continue
5607 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5608 echo "$as_me:5608: found $ac_dir/$ac_word" >&5
5614 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5615 if test -n "$ac_ct_LIBTOOL"; then
5616 echo "$as_me:5616: result: $ac_ct_LIBTOOL" >&5
5617 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5619 echo "$as_me:5619: result: no" >&5
5620 echo "${ECHO_T}no" >&6
5623 test -n "$ac_ct_LIBTOOL" && break
5625 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5627 LIBTOOL=$ac_ct_LIBTOOL
5630 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5632 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.].*//'`
5634 cf_cv_libtool_version=
5636 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5638 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5641 unset ac_cv_prog_ac_ct_LIBTOOL
5645 if test -n "$ac_tool_prefix"; then
5646 for ac_prog in glibtool
5648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5650 echo "$as_me:5650: checking for $ac_word" >&5
5651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5652 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 if test -n "$LIBTOOL"; then
5656 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5658 ac_save_IFS=$IFS; IFS=$ac_path_separator
5660 for ac_dir in $ac_dummy; do
5662 test -z "$ac_dir" && ac_dir=.
5663 $as_executable_p "$ac_dir/$ac_word" || continue
5664 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5665 echo "$as_me:5665: found $ac_dir/$ac_word" >&5
5671 LIBTOOL=$ac_cv_prog_LIBTOOL
5672 if test -n "$LIBTOOL"; then
5673 echo "$as_me:5673: result: $LIBTOOL" >&5
5674 echo "${ECHO_T}$LIBTOOL" >&6
5676 echo "$as_me:5676: result: no" >&5
5677 echo "${ECHO_T}no" >&6
5680 test -n "$LIBTOOL" && break
5683 if test -z "$LIBTOOL"; then
5684 ac_ct_LIBTOOL=$LIBTOOL
5685 for ac_prog in glibtool
5687 # Extract the first word of "$ac_prog", so it can be a program name with args.
5688 set dummy $ac_prog; ac_word=$2
5689 echo "$as_me:5689: checking for $ac_word" >&5
5690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5691 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 if test -n "$ac_ct_LIBTOOL"; then
5695 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5697 ac_save_IFS=$IFS; IFS=$ac_path_separator
5699 for ac_dir in $ac_dummy; do
5701 test -z "$ac_dir" && ac_dir=.
5702 $as_executable_p "$ac_dir/$ac_word" || continue
5703 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5704 echo "$as_me:5704: found $ac_dir/$ac_word" >&5
5710 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5711 if test -n "$ac_ct_LIBTOOL"; then
5712 echo "$as_me:5712: result: $ac_ct_LIBTOOL" >&5
5713 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5715 echo "$as_me:5715: result: no" >&5
5716 echo "${ECHO_T}no" >&6
5719 test -n "$ac_ct_LIBTOOL" && break
5721 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5723 LIBTOOL=$ac_ct_LIBTOOL
5726 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5728 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.].*//'`
5730 cf_cv_libtool_version=
5732 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5736 if test -z "$LIBTOOL" ; then
5737 { { echo "$as_me:5737: error: Cannot find libtool" >&5
5738 echo "$as_me: error: Cannot find libtool" >&2;}
5739 { (exit 1); exit 1; }; }
5741 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5742 LIB_OBJECT='${OBJECTS:.o=.lo}'
5744 LIB_CLEAN='${LIBTOOL} --mode=clean'
5745 LIB_COMPILE='${LIBTOOL} --mode=compile'
5746 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5747 LIB_INSTALL='${LIBTOOL} --mode=install'
5748 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5751 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5753 echo "$as_me:5753: checking version of $LIBTOOL" >&5
5754 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5756 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5758 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.].*//'`
5760 cf_cv_libtool_version=
5762 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5764 echo "$as_me:5764: result: $cf_cv_libtool_version" >&5
5765 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5766 if test -n "$cf_cv_libtool_version"
5768 cf_check_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' -e 's,[()],...,g' -e 's,[ ],-,g' -e '2,$d'`
5769 case "x$cf_check_libtool_version" in
5770 (*...GNU-libtool...*)
5773 { { echo "$as_me:5773: error: This is not GNU libtool" >&5
5774 echo "$as_me: error: This is not GNU libtool" >&2;}
5775 { (exit 1); exit 1; }; }
5779 { { echo "$as_me:5779: error: No version found for $LIBTOOL" >&5
5780 echo "$as_me: error: No version found for $LIBTOOL" >&2;}
5781 { (exit 1); exit 1; }; }
5784 { { echo "$as_me:5784: error: GNU libtool has not been found" >&5
5785 echo "$as_me: error: GNU libtool has not been found" >&2;}
5786 { (exit 1); exit 1; }; }
5789 # special hack to add -no-undefined (which libtool should do for itself)
5791 case "$cf_cv_system_name" in
5792 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5793 LT_UNDEF=-no-undefined
5797 # special hack to add --tag option for C++ compiler
5798 case "$cf_cv_libtool_version" in
5799 (1.[5-9]*|[2-9].[0-9.a-z]*)
5800 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5801 LIBTOOL="$LIBTOOL --tag=CC"
5804 LIBTOOL_CXX="$LIBTOOL"
5812 test -z "$LIBTOOL" && ECHO_LT=
5814 if test "$with_libtool" != "no" ; then
5816 cf_list_models="$cf_list_models libtool"
5820 echo "$as_me:5820: checking if you want to build shared libraries" >&5
5821 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5823 # Check whether --with-shared or --without-shared was given.
5824 if test "${with_shared+set}" = set; then
5825 withval="$with_shared"
5826 with_shared=$withval
5830 echo "$as_me:5830: result: $with_shared" >&5
5831 echo "${ECHO_T}$with_shared" >&6
5832 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5834 echo "$as_me:5834: checking if you want to build static libraries" >&5
5835 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5837 # Check whether --with-normal or --without-normal was given.
5838 if test "${with_normal+set}" = set; then
5839 withval="$with_normal"
5840 with_normal=$withval
5844 echo "$as_me:5844: result: $with_normal" >&5
5845 echo "${ECHO_T}$with_normal" >&6
5846 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5848 echo "$as_me:5848: checking if you want to build debug libraries" >&5
5849 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5851 # Check whether --with-debug or --without-debug was given.
5852 if test "${with_debug+set}" = set; then
5853 withval="$with_debug"
5858 echo "$as_me:5858: result: $with_debug" >&5
5859 echo "${ECHO_T}$with_debug" >&6
5860 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5862 echo "$as_me:5862: checking if you want to build profiling libraries" >&5
5863 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5865 # Check whether --with-profile or --without-profile was given.
5866 if test "${with_profile+set}" = set; then
5867 withval="$with_profile"
5868 with_profile=$withval
5872 echo "$as_me:5872: result: $with_profile" >&5
5873 echo "${ECHO_T}$with_profile" >&6
5874 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5878 if test "X$cf_with_cxx_binding" != Xno; then
5879 if test "x$with_shared" = "xyes"; then
5880 echo "$as_me:5880: checking if you want to build C++ shared libraries" >&5
5881 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5883 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5884 if test "${with_cxx_shared+set}" = set; then
5885 withval="$with_cxx_shared"
5886 with_shared_cxx=$withval
5890 echo "$as_me:5890: result: $with_shared_cxx" >&5
5891 echo "${ECHO_T}$with_shared_cxx" >&6
5895 ###############################################################################
5897 echo "$as_me:5897: checking for specified models" >&5
5898 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5899 test -z "$cf_list_models" && cf_list_models=normal
5900 test "$with_libtool" != "no" && cf_list_models=libtool
5901 echo "$as_me:5901: result: $cf_list_models" >&5
5902 echo "${ECHO_T}$cf_list_models" >&6
5904 ### Use the first model as the default, and save its suffix for use in building
5905 ### up test-applications.
5906 echo "$as_me:5906: checking for default model" >&5
5907 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5908 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5909 echo "$as_me:5909: result: $DFT_LWR_MODEL" >&5
5910 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5912 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5923 echo "$as_me:5923: checking if you want to have a library-prefix" >&5
5924 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5926 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5927 if test "${with_lib_prefix+set}" = set; then
5928 withval="$with_lib_prefix"
5929 with_lib_prefix=$withval
5931 with_lib_prefix=auto
5933 echo "$as_me:5933: result: $with_lib_prefix" >&5
5934 echo "${ECHO_T}$with_lib_prefix" >&6
5936 if test "$with_lib_prefix" = auto
5939 case "$cf_cv_system_name" in
5941 if test "$DFT_LWR_MODEL" = libtool; then
5950 (*) LIB_PREFIX='lib'
5953 cf_prefix=$LIB_PREFIX
5955 elif test "$with_lib_prefix" = no
5959 LIB_PREFIX=$with_lib_prefix
5964 echo "$as_me:5964: checking for PATH separator" >&5
5965 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5966 case "$cf_cv_system_name" in
5967 (os2*) PATH_SEPARATOR=';' ;;
5968 (*) ${PATH_SEPARATOR:=':'} ;;
5971 echo "$as_me:5971: result: $PATH_SEPARATOR" >&5
5972 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5974 # headers needed for checks...
5975 echo "$as_me:5975: checking for ANSI C header files" >&5
5976 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5977 if test "${ac_cv_header_stdc+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 cat >"conftest.$ac_ext" <<_ACEOF
5981 #line 5981 "configure"
5982 #include "confdefs.h"
5989 if { (eval echo "$as_me:5989: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5990 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5992 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5994 cat conftest.err >&5
5995 echo "$as_me:5995: \$? = $ac_status" >&5
5996 (exit "$ac_status"); } >/dev/null; then
5997 if test -s conftest.err; then
5998 ac_cpp_err=$ac_c_preproc_warn_flag
6005 if test -z "$ac_cpp_err"; then
6006 ac_cv_header_stdc=yes
6008 echo "$as_me: failed program was:" >&5
6009 cat "conftest.$ac_ext" >&5
6010 ac_cv_header_stdc=no
6012 rm -f conftest.err "conftest.$ac_ext"
6014 if test $ac_cv_header_stdc = yes; then
6015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6016 cat >"conftest.$ac_ext" <<_ACEOF
6017 #line 6017 "configure"
6018 #include "confdefs.h"
6022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6023 $EGREP "memchr" >/dev/null 2>&1; then
6026 ac_cv_header_stdc=no
6032 if test $ac_cv_header_stdc = yes; then
6033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6034 cat >"conftest.$ac_ext" <<_ACEOF
6035 #line 6035 "configure"
6036 #include "confdefs.h"
6040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6041 $EGREP "free" >/dev/null 2>&1; then
6044 ac_cv_header_stdc=no
6050 if test $ac_cv_header_stdc = yes; then
6051 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6052 if test "$cross_compiling" = yes; then
6055 cat >"conftest.$ac_ext" <<_ACEOF
6056 #line 6056 "configure"
6057 #include "confdefs.h"
6059 #if ((' ' & 0x0FF) == 0x020)
6060 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6061 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6063 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6064 || ('j' <= (c) && (c) <= 'r') \
6065 || ('s' <= (c) && (c) <= 'z'))
6066 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6069 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6074 for (i = 0; i < 256; i++)
6075 if (XOR (islower (i), ISLOWER (i))
6076 || toupper (i) != TOUPPER (i))
6078 $ac_main_return (0);
6081 rm -f "conftest$ac_exeext"
6082 if { (eval echo "$as_me:6082: \"$ac_link\"") >&5
6083 (eval $ac_link) 2>&5
6085 echo "$as_me:6085: \$? = $ac_status" >&5
6086 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
6087 { (eval echo "$as_me:6087: \"$ac_try\"") >&5
6090 echo "$as_me:6090: \$? = $ac_status" >&5
6091 (exit "$ac_status"); }; }; then
6094 echo "$as_me: program exited with status $ac_status" >&5
6095 echo "$as_me: failed program was:" >&5
6096 cat "conftest.$ac_ext" >&5
6097 ac_cv_header_stdc=no
6099 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6103 echo "$as_me:6103: result: $ac_cv_header_stdc" >&5
6104 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6105 if test $ac_cv_header_stdc = yes; then
6107 cat >>confdefs.h <<\EOF
6108 #define STDC_HEADERS 1
6113 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6115 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6116 inttypes.h stdint.h unistd.h
6118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6119 echo "$as_me:6119: checking for $ac_header" >&5
6120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 cat >"conftest.$ac_ext" <<_ACEOF
6125 #line 6125 "configure"
6126 #include "confdefs.h"
6127 $ac_includes_default
6128 #include <$ac_header>
6130 rm -f "conftest.$ac_objext"
6131 if { (eval echo "$as_me:6131: \"$ac_compile\"") >&5
6132 (eval $ac_compile) 2>&5
6134 echo "$as_me:6134: \$? = $ac_status" >&5
6135 (exit "$ac_status"); } &&
6136 { ac_try='test -s "conftest.$ac_objext"'
6137 { (eval echo "$as_me:6137: \"$ac_try\"") >&5
6140 echo "$as_me:6140: \$? = $ac_status" >&5
6141 (exit "$ac_status"); }; }; then
6142 eval "$as_ac_Header=yes"
6144 echo "$as_me: failed program was:" >&5
6145 cat "conftest.$ac_ext" >&5
6146 eval "$as_ac_Header=no"
6148 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6150 echo "$as_me:6150: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6151 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6152 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6153 cat >>confdefs.h <<EOF
6154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6160 echo "$as_me:6160: checking whether exit is declared" >&5
6161 echo $ECHO_N "checking whether exit is declared... $ECHO_C" >&6
6162 if test "${ac_cv_have_decl_exit+set}" = set; then
6163 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 cat >"conftest.$ac_ext" <<_ACEOF
6166 #line 6166 "configure"
6167 #include "confdefs.h"
6168 $ac_includes_default
6173 char *p = (char *) exit; (void) p;
6180 rm -f "conftest.$ac_objext"
6181 if { (eval echo "$as_me:6181: \"$ac_compile\"") >&5
6182 (eval $ac_compile) 2>&5
6184 echo "$as_me:6184: \$? = $ac_status" >&5
6185 (exit "$ac_status"); } &&
6186 { ac_try='test -s "conftest.$ac_objext"'
6187 { (eval echo "$as_me:6187: \"$ac_try\"") >&5
6190 echo "$as_me:6190: \$? = $ac_status" >&5
6191 (exit "$ac_status"); }; }; then
6192 ac_cv_have_decl_exit=yes
6194 echo "$as_me: failed program was:" >&5
6195 cat "conftest.$ac_ext" >&5
6196 ac_cv_have_decl_exit=no
6198 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6200 echo "$as_me:6200: result: $ac_cv_have_decl_exit" >&5
6201 echo "${ECHO_T}$ac_cv_have_decl_exit" >&6
6204 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6205 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6206 echo "$as_me:6206: checking for $ac_hdr that defines DIR" >&5
6207 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 cat >"conftest.$ac_ext" <<_ACEOF
6212 #line 6212 "configure"
6213 #include "confdefs.h"
6214 #include <sys/types.h>
6226 rm -f "conftest.$ac_objext"
6227 if { (eval echo "$as_me:6227: \"$ac_compile\"") >&5
6228 (eval $ac_compile) 2>&5
6230 echo "$as_me:6230: \$? = $ac_status" >&5
6231 (exit "$ac_status"); } &&
6232 { ac_try='test -s "conftest.$ac_objext"'
6233 { (eval echo "$as_me:6233: \"$ac_try\"") >&5
6236 echo "$as_me:6236: \$? = $ac_status" >&5
6237 (exit "$ac_status"); }; }; then
6238 eval "$as_ac_Header=yes"
6240 echo "$as_me: failed program was:" >&5
6241 cat "conftest.$ac_ext" >&5
6242 eval "$as_ac_Header=no"
6244 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6246 echo "$as_me:6246: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6247 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6248 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6249 cat >>confdefs.h <<EOF
6250 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6253 ac_header_dirent=$ac_hdr; break
6257 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6258 if test $ac_header_dirent = dirent.h; then
6259 echo "$as_me:6259: checking for opendir in -ldir" >&5
6260 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
6261 if test "${ac_cv_lib_dir_opendir+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 ac_check_lib_save_LIBS=$LIBS
6266 cat >"conftest.$ac_ext" <<_ACEOF
6267 #line 6267 "configure"
6268 #include "confdefs.h"
6270 /* Override any gcc2 internal prototype to avoid an error. */
6274 /* We use char because int might match the return type of a gcc2
6275 builtin and then its argument prototype would still apply. */
6285 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6286 if { (eval echo "$as_me:6286: \"$ac_link\"") >&5
6287 (eval $ac_link) 2>&5
6289 echo "$as_me:6289: \$? = $ac_status" >&5
6290 (exit "$ac_status"); } &&
6291 { ac_try='test -s "conftest$ac_exeext"'
6292 { (eval echo "$as_me:6292: \"$ac_try\"") >&5
6295 echo "$as_me:6295: \$? = $ac_status" >&5
6296 (exit "$ac_status"); }; }; then
6297 ac_cv_lib_dir_opendir=yes
6299 echo "$as_me: failed program was:" >&5
6300 cat "conftest.$ac_ext" >&5
6301 ac_cv_lib_dir_opendir=no
6303 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6304 LIBS=$ac_check_lib_save_LIBS
6306 echo "$as_me:6306: result: $ac_cv_lib_dir_opendir" >&5
6307 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
6308 if test "$ac_cv_lib_dir_opendir" = yes; then
6313 echo "$as_me:6313: checking for opendir in -lx" >&5
6314 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
6315 if test "${ac_cv_lib_x_opendir+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6318 ac_check_lib_save_LIBS=$LIBS
6320 cat >"conftest.$ac_ext" <<_ACEOF
6321 #line 6321 "configure"
6322 #include "confdefs.h"
6324 /* Override any gcc2 internal prototype to avoid an error. */
6328 /* We use char because int might match the return type of a gcc2
6329 builtin and then its argument prototype would still apply. */
6339 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6340 if { (eval echo "$as_me:6340: \"$ac_link\"") >&5
6341 (eval $ac_link) 2>&5
6343 echo "$as_me:6343: \$? = $ac_status" >&5
6344 (exit "$ac_status"); } &&
6345 { ac_try='test -s "conftest$ac_exeext"'
6346 { (eval echo "$as_me:6346: \"$ac_try\"") >&5
6349 echo "$as_me:6349: \$? = $ac_status" >&5
6350 (exit "$ac_status"); }; }; then
6351 ac_cv_lib_x_opendir=yes
6353 echo "$as_me: failed program was:" >&5
6354 cat "conftest.$ac_ext" >&5
6355 ac_cv_lib_x_opendir=no
6357 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6358 LIBS=$ac_check_lib_save_LIBS
6360 echo "$as_me:6360: result: $ac_cv_lib_x_opendir" >&5
6361 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
6362 if test "$ac_cv_lib_x_opendir" = yes; then
6368 ###############################################################################
6370 echo "$as_me:6370: checking if you want to build a separate terminfo library" >&5
6371 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
6373 # Check whether --with-termlib or --without-termlib was given.
6374 if test "${with_termlib+set}" = set; then
6375 withval="$with_termlib"
6376 with_termlib=$withval
6380 echo "$as_me:6380: result: $with_termlib" >&5
6381 echo "${ECHO_T}$with_termlib" >&6
6383 echo "$as_me:6383: checking if you want to build a separate tic library" >&5
6384 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
6386 # Check whether --with-ticlib or --without-ticlib was given.
6387 if test "${with_ticlib+set}" = set; then
6388 withval="$with_ticlib"
6389 with_ticlib=$withval
6393 echo "$as_me:6393: result: $with_ticlib" >&5
6394 echo "${ECHO_T}$with_ticlib" >&6
6396 if test X"$CC_G_OPT" = X"" ; then
6398 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
6401 if test X"$CXX_G_OPT" = X"" ; then
6403 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
6406 echo "$as_me:6406: checking for default loader flags" >&5
6407 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
6408 case "$DFT_LWR_MODEL" in
6409 (libtool) LD_MODEL='' ;;
6410 (normal) LD_MODEL='' ;;
6411 (debug) LD_MODEL=$CC_G_OPT ;;
6412 (profile) LD_MODEL='-pg';;
6413 (shared) LD_MODEL='' ;;
6415 echo "$as_me:6415: result: $LD_MODEL" >&5
6416 echo "${ECHO_T}$LD_MODEL" >&6
6418 case "$DFT_LWR_MODEL" in
6421 echo "$as_me:6421: checking if rpath option should be used" >&5
6422 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
6424 # Check whether --enable-rpath or --disable-rpath was given.
6425 if test "${enable_rpath+set}" = set; then
6426 enableval="$enable_rpath"
6427 cf_cv_enable_rpath=$enableval
6429 cf_cv_enable_rpath=no
6431 echo "$as_me:6431: result: $cf_cv_enable_rpath" >&5
6432 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
6434 echo "$as_me:6434: checking if shared libraries should be relinked during install" >&5
6435 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
6437 # Check whether --enable-relink or --disable-relink was given.
6438 if test "${enable_relink+set}" = set; then
6439 enableval="$enable_relink"
6440 cf_cv_do_relink=$enableval
6444 echo "$as_me:6444: result: $cf_cv_do_relink" >&5
6445 echo "${ECHO_T}$cf_cv_do_relink" >&6
6449 # we will build libraries one-level down.
6453 if test "x$cf_cv_enable_rpath" != xno
6455 echo "$as_me:6455: checking for an rpath option" >&5
6456 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
6457 case "$cf_cv_system_name" in
6459 if test "$GCC" = yes; then
6460 LD_RPATH_OPT="-Wl,-rpath,"
6462 LD_RPATH_OPT="-rpath "
6465 (linux*|gnu*|k*bsd*-gnu|freebsd*)
6466 LD_RPATH_OPT="-Wl,-rpath,"
6468 (openbsd[2-9].*|mirbsd*)
6469 LD_RPATH_OPT="-Wl,-rpath,"
6472 LD_RPATH_OPT="-rpath "
6475 LD_RPATH_OPT="-Wl,-rpath,"
6478 LD_RPATH_OPT="-rpath "
6486 echo "$as_me:6486: result: $LD_RPATH_OPT" >&5
6487 echo "${ECHO_T}$LD_RPATH_OPT" >&6
6489 case "x$LD_RPATH_OPT" in
6491 echo "$as_me:6491: checking if we need a space after rpath option" >&5
6492 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
6493 cf_save_LIBS="$LIBS"
6498 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6500 for cf_add_1lib in $cf_add_0lib; do
6501 for cf_add_2lib in $cf_add_libs; do
6502 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6507 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6511 cat >"conftest.$ac_ext" <<_ACEOF
6512 #line 6512 "configure"
6513 #include "confdefs.h"
6523 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6524 if { (eval echo "$as_me:6524: \"$ac_link\"") >&5
6525 (eval $ac_link) 2>&5
6527 echo "$as_me:6527: \$? = $ac_status" >&5
6528 (exit "$ac_status"); } &&
6529 { ac_try='test -s "conftest$ac_exeext"'
6530 { (eval echo "$as_me:6530: \"$ac_try\"") >&5
6533 echo "$as_me:6533: \$? = $ac_status" >&5
6534 (exit "$ac_status"); }; }; then
6537 echo "$as_me: failed program was:" >&5
6538 cat "conftest.$ac_ext" >&5
6541 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6542 LIBS="$cf_save_LIBS"
6543 echo "$as_me:6543: result: $cf_rpath_space" >&5
6544 echo "${ECHO_T}$cf_rpath_space" >&6
6545 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
6554 INSTALL_LIB="-m 644"
6555 : ${rel_builddir:=.}
6561 cf_cv_do_symlinks=no
6563 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
6565 echo "$as_me:6565: checking if release/abi version should be used for shared libs" >&5
6566 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
6568 # Check whether --with-shlib-version or --without-shlib-version was given.
6569 if test "${with_shlib_version+set}" = set; then
6570 withval="$with_shlib_version"
6571 test -z "$withval" && withval=auto
6574 cf_cv_shlib_version=auto
6577 cf_cv_shlib_version=$withval
6580 echo "$as_me:6580: result: $withval" >&5
6581 echo "${ECHO_T}$withval" >&6
6582 { { echo "$as_me:6582: error: option value must be one of: rel, abi, or auto" >&5
6583 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
6584 { (exit 1); exit 1; }; }
6589 cf_cv_shlib_version=auto
6591 echo "$as_me:6591: result: $cf_cv_shlib_version" >&5
6592 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6597 # Some less-capable ports of gcc support only -fpic
6601 if test "$GCC" = yes
6605 case "$cf_cv_system_name" in
6606 (*linux*) # e.g., PGI compiler
6612 if test "$cf_try_fPIC" = yes
6614 echo "$as_me:6614: checking which $CC option to use" >&5
6615 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6616 cf_save_CFLAGS="$CFLAGS"
6617 for CC_SHARED_OPTS in -fPIC -fpic ''
6619 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6620 cat >"conftest.$ac_ext" <<_ACEOF
6621 #line 6621 "configure"
6622 #include "confdefs.h"
6632 rm -f "conftest.$ac_objext"
6633 if { (eval echo "$as_me:6633: \"$ac_compile\"") >&5
6634 (eval $ac_compile) 2>&5
6636 echo "$as_me:6636: \$? = $ac_status" >&5
6637 (exit "$ac_status"); } &&
6638 { ac_try='test -s "conftest.$ac_objext"'
6639 { (eval echo "$as_me:6639: \"$ac_try\"") >&5
6642 echo "$as_me:6642: \$? = $ac_status" >&5
6643 (exit "$ac_status"); }; }; then
6646 echo "$as_me: failed program was:" >&5
6647 cat "conftest.$ac_ext" >&5
6649 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6651 echo "$as_me:6651: result: $CC_SHARED_OPTS" >&5
6652 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6653 CFLAGS="$cf_save_CFLAGS"
6656 cf_cv_shlib_version_infix=no
6658 case "$cf_cv_system_name" in
6659 (aix4.3-9*|aix[5-7]*)
6660 if test "$GCC" = yes; then
6661 CC_SHARED_OPTS='-Wl,-brtl'
6662 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6664 CC_SHARED_OPTS='-brtl'
6665 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6666 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6670 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6674 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6675 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6676 cf_cv_shlib_version=cygdll
6677 cf_cv_shlib_version_infix=cygdll
6680 cat >mk_shared_lib.sh <<-CF_EOF
6683 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6686 Linking shared library
6687 ** SHARED_LIB \$SHARED_LIB
6688 ** IMPORT_LIB \$IMPORT_LIB
6690 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6692 chmod +x mk_shared_lib.sh
6696 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6697 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6698 cf_cv_shlib_version=msysdll
6699 cf_cv_shlib_version_infix=msysdll
6702 cat >mk_shared_lib.sh <<-CF_EOF
6705 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6708 Linking shared library
6709 ** SHARED_LIB \$SHARED_LIB
6710 ** IMPORT_LIB \$IMPORT_LIB
6712 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6714 chmod +x mk_shared_lib.sh
6717 cf_try_cflags="no-cpp-precomp"
6718 CC_SHARED_OPTS="-dynamic"
6719 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6720 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6721 cf_cv_shlib_version_infix=yes
6722 echo "$as_me:6722: checking if ld -search_paths_first works" >&5
6723 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6724 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 cf_save_LDFLAGS=$LDFLAGS
6729 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6730 cat >"conftest.$ac_ext" <<_ACEOF
6731 #line 6731 "configure"
6732 #include "confdefs.h"
6742 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6743 if { (eval echo "$as_me:6743: \"$ac_link\"") >&5
6744 (eval $ac_link) 2>&5
6746 echo "$as_me:6746: \$? = $ac_status" >&5
6747 (exit "$ac_status"); } &&
6748 { ac_try='test -s "conftest$ac_exeext"'
6749 { (eval echo "$as_me:6749: \"$ac_try\"") >&5
6752 echo "$as_me:6752: \$? = $ac_status" >&5
6753 (exit "$ac_status"); }; }; then
6754 cf_cv_ldflags_search_paths_first=yes
6756 echo "$as_me: failed program was:" >&5
6757 cat "conftest.$ac_ext" >&5
6758 cf_cv_ldflags_search_paths_first=no
6760 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6761 LDFLAGS=$cf_save_LDFLAGS
6763 echo "$as_me:6763: result: $cf_cv_ldflags_search_paths_first" >&5
6764 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6765 if test "$cf_cv_ldflags_search_paths_first" = yes; then
6766 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6771 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6772 if test "$cf_cv_shlib_version" = rel; then
6773 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6775 cf_cv_shared_soname='`basename $@`'
6778 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6781 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6782 if test "$GCC" != yes; then
6785 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
6786 INSTALL_LIB="-m 555"
6789 # (tested with gcc 2.7.2 -- I don't have c89)
6790 if test "$GCC" = yes; then
6791 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6794 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6796 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
6797 # HP-UX shared libraries must be executable, and should be
6798 # readonly to exploit a quirk in the memory manager.
6799 INSTALL_LIB="-m 555"
6802 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6803 if test "$cf_cv_shlib_version" = rel; then
6804 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6806 cf_shared_soname='`basename $@`'
6809 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
6812 if test "$cf_cv_enable_rpath" = yes ; then
6813 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6815 # tested with IRIX 5.2 and 'cc'.
6816 if test "$GCC" != yes; then
6817 CC_SHARED_OPTS='-KPIC'
6818 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
6820 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
6822 cf_cv_rm_so_locs=yes
6824 (linux*|gnu*|k*bsd*-gnu)
6825 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6826 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6827 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6829 if test "$cf_cv_enable_rpath" = yes ; then
6830 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6833 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6834 if test "$cf_cv_shlib_version" = rel; then
6835 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6837 cf_cv_shared_soname='`basename $@`'
6840 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6843 cf_cv_shlib_version=msvcdll
6844 cf_cv_shlib_version_infix=msvcdll
6847 if test "$DFT_LWR_MODEL" = "shared" ; then
6848 LOCAL_LDFLAGS="-link -dll"
6849 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6850 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
6853 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
6854 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
6855 cat >mk_shared_lib.sh <<-CF_EOF
6858 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
6863 Linking shared library
6864 ** SHARED LIB \$SHARED_LIB
6865 ** IMPORT_LIB \$IMPORT_LIB
6867 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
6868 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
6869 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
6871 chmod +x mk_shared_lib.sh
6872 cat >mk_prog.sh <<-CF_EOF
6875 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
6878 ldopts=("/subsystem:console")
6881 while test \$# -gt 0; do
6884 # ignore -link argument
6887 # ignore runtime-library option
6902 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
6905 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
6911 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
6912 ldopts+=("\${linkarg}")
6920 ldopts+=("-out:\$1")
6929 if [ "\$isdll" -ne 0 ]; then
6930 for lib in \${libs[*]}; do
6931 ldopts+=("\$lib.dll.lib")
6934 for lib in \${libs[*]}; do
6935 ldopts+=("\$lib.lib")
6940 ** ld options: "\${ldopts[@]}"
6942 exec \$LD \${ldopts[@]}
6945 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
6946 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
6949 cf_cv_shlib_version=mingw
6950 cf_cv_shlib_version_infix=mingw
6953 if test "$DFT_LWR_MODEL" = "shared" ; then
6954 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6955 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6956 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6959 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6960 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6961 cat >mk_shared_lib.sh <<-CF_EOF
6964 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6967 Linking shared library
6968 ** SHARED_LIB \$SHARED_LIB
6969 ** IMPORT_LIB \$IMPORT_LIB
6971 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6973 chmod +x mk_shared_lib.sh
6975 (openbsd[2-9].*|mirbsd*)
6976 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6977 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6978 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6980 if test "$cf_cv_enable_rpath" = yes ; then
6981 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6983 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6985 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6986 if test "$cf_cv_shlib_version" = rel; then
6987 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6989 cf_cv_shared_soname='`basename $@`'
6992 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6996 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
7000 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
7002 (nto-qnx*|openbsd*|freebsd[12].*)
7003 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7004 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
7005 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7007 (dragonfly*|freebsd*)
7008 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7009 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7010 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7011 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
7012 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7015 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7016 if test "$cf_cv_shlib_version" = rel; then
7017 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7019 cf_cv_shared_soname='`basename $@`'
7022 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7025 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7026 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7027 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7028 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7029 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7030 if test "$cf_cv_shlib_version" = auto; then
7031 if test -f /usr/libexec/ld.elf_so; then
7032 cf_cv_shlib_version=abi
7034 cf_cv_shlib_version=rel
7038 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7039 if test "$cf_cv_shlib_version" = rel; then
7040 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7042 cf_cv_shared_soname='`basename $@`'
7045 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
7047 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
7051 # tested with OSF/1 V3.2 and 'cc'
7052 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
7053 # link with shared libs).
7054 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
7057 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
7060 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
7061 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
7062 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7063 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7065 cf_cv_rm_so_locs=yes
7067 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
7068 # tested with osr5.0.5
7069 if test "$GCC" != yes; then
7070 CC_SHARED_OPTS='-belf -KPIC'
7072 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
7073 if test "$cf_cv_enable_rpath" = yes ; then
7074 # only way is to set LD_RUN_PATH but no switch for it
7077 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7078 LINK_PROGS='LD_RUN_PATH=${libdir}'
7079 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
7082 # tested with SunOS 4.1.1 and gcc 2.7.0
7083 if test "$GCC" != yes; then
7084 CC_SHARED_OPTS='-KPIC'
7086 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
7087 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7090 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
7091 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
7092 if test "$DFT_LWR_MODEL" = "shared" ; then
7093 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
7094 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7096 if test "$cf_cv_enable_rpath" = yes ; then
7097 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
7100 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7101 if test "$cf_cv_shlib_version" = rel; then
7102 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7104 cf_cv_shared_soname='`basename $@`'
7107 if test "$GCC" != yes; then
7108 cf_save_CFLAGS="$CFLAGS"
7109 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
7111 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
7112 cat >"conftest.$ac_ext" <<_ACEOF
7113 #line 7113 "configure"
7114 #include "confdefs.h"
7124 rm -f "conftest.$ac_objext"
7125 if { (eval echo "$as_me:7125: \"$ac_compile\"") >&5
7126 (eval $ac_compile) 2>&5
7128 echo "$as_me:7128: \$? = $ac_status" >&5
7129 (exit "$ac_status"); } &&
7130 { ac_try='test -s "conftest.$ac_objext"'
7131 { (eval echo "$as_me:7131: \"$ac_try\"") >&5
7134 echo "$as_me:7134: \$? = $ac_status" >&5
7135 (exit "$ac_status"); }; }; then
7138 echo "$as_me: failed program was:" >&5
7139 cat "conftest.$ac_ext" >&5
7141 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
7143 CFLAGS="$cf_save_CFLAGS"
7144 CC_SHARED_OPTS=$cf_shared_opts
7145 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
7147 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
7150 (sysv5uw7*|unix_sv*)
7151 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
7152 if test "$GCC" != yes; then
7153 CC_SHARED_OPTS='-KPIC'
7155 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
7158 CC_SHARED_OPTS='unknown'
7159 MK_SHARED_LIB='echo unknown'
7163 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
7164 case "$cf_cv_shlib_version" in
7166 case "$MK_SHARED_LIB" in
7168 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
7171 { echo "$as_me:7171: WARNING: ignored --with-shlib-version" >&5
7172 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
7178 if test -n "$cf_try_cflags"
7180 cat > conftest.$ac_ext <<EOF
7181 #line 7181 "${as_me:-configure}"
7183 int main(int argc, char *argv[])
7186 return (argv[argc-1] == 0) ;
7189 cf_save_CFLAGS="$CFLAGS"
7190 for cf_opt in $cf_try_cflags
7192 CFLAGS="$cf_save_CFLAGS -$cf_opt"
7193 echo "$as_me:7193: checking if CFLAGS option -$cf_opt works" >&5
7194 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
7195 if { (eval echo "$as_me:7195: \"$ac_compile\"") >&5
7196 (eval $ac_compile) 2>&5
7198 echo "$as_me:7198: \$? = $ac_status" >&5
7199 (exit "$ac_status"); }; then
7200 echo "$as_me:7200: result: yes" >&5
7201 echo "${ECHO_T}yes" >&6
7202 cf_save_CFLAGS="$CFLAGS"
7204 echo "$as_me:7204: result: no" >&5
7205 echo "${ECHO_T}no" >&6
7208 CFLAGS="$cf_save_CFLAGS"
7211 # RPATH_LIST is a colon-separated list of directories
7212 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
7213 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
7215 test "$cf_cv_rm_so_locs" = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
7217 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
7219 echo "${as_me:-configure}:7219: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
7221 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7223 echo "${as_me:-configure}:7223: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7225 for model in $cf_list_models ; do
7229 echo "$as_me:7229: checking for additional libtool options" >&5
7230 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
7232 # Check whether --with-libtool-opts or --without-libtool-opts was given.
7233 if test "${with_libtool_opts+set}" = set; then
7234 withval="$with_libtool_opts"
7235 with_libtool_opts=$withval
7237 with_libtool_opts=no
7239 echo "$as_me:7239: result: $with_libtool_opts" >&5
7240 echo "${ECHO_T}$with_libtool_opts" >&6
7242 case .$with_libtool_opts in
7246 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
7250 echo "$as_me:7250: checking if exported-symbols file should be used" >&5
7251 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
7253 # Check whether --with-export-syms or --without-export-syms was given.
7254 if test "${with_export_syms+set}" = set; then
7255 withval="$with_export_syms"
7256 with_export_syms=$withval
7260 if test "x$with_export_syms" = xyes
7262 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
7265 echo "$as_me:7265: result: $with_export_syms" >&5
7266 echo "${ECHO_T}$with_export_syms" >&6
7267 if test "x$with_export_syms" != xno
7269 EXPORT_SYMS="-export-symbols $with_export_syms"
7275 if test "$CC_SHARED_OPTS" = "unknown"; then
7276 { { echo "$as_me:7276: error: Shared libraries are not supported in this version" >&5
7277 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
7278 { (exit 1); exit 1; }; }
7280 # workaround for inept transition to PIE vs PIC...
7281 echo "$as_me:7281: checking if current CFLAGS link properly" >&5
7282 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
7283 cat >"conftest.$ac_ext" <<_ACEOF
7284 #line 7284 "configure"
7285 #include "confdefs.h"
7290 printf("Hello work\\n");
7295 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7296 if { (eval echo "$as_me:7296: \"$ac_link\"") >&5
7297 (eval $ac_link) 2>&5
7299 echo "$as_me:7299: \$? = $ac_status" >&5
7300 (exit "$ac_status"); } &&
7301 { ac_try='test -s "conftest$ac_exeext"'
7302 { (eval echo "$as_me:7302: \"$ac_try\"") >&5
7305 echo "$as_me:7305: \$? = $ac_status" >&5
7306 (exit "$ac_status"); }; }; then
7309 echo "$as_me: failed program was:" >&5
7310 cat "conftest.$ac_ext" >&5
7313 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7314 echo "$as_me:7314: result: $cf_cflags_work" >&5
7315 echo "${ECHO_T}$cf_cflags_work" >&6
7316 if test "$cf_cflags_work" = no
7318 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
7320 echo "${as_me:-configure}:7320: testing try to work around by appending shared-options ..." 1>&5
7322 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
7325 echo "$as_me:7325: checking if versioned-symbols file should be used" >&5
7326 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
7328 # Check whether --with-versioned-syms or --without-versioned-syms was given.
7329 if test "${with_versioned_syms+set}" = set; then
7330 withval="$with_versioned_syms"
7331 with_versioned_syms=$withval
7333 with_versioned_syms=no
7335 case "x$with_versioned_syms" in
7337 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
7343 test -f "$with_versioned_syms" || { { echo "$as_me:7343: error: expected a filename: $with_versioned_syms" >&5
7344 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
7345 { (exit 1); exit 1; }; }
7348 test -f "$with_versioned_syms" || { { echo "$as_me:7348: error: expected a filename: $with_versioned_syms" >&5
7349 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
7350 { (exit 1); exit 1; }; }
7351 with_versioned_syms=`pwd`/"$with_versioned_syms"
7354 echo "$as_me:7354: result: $with_versioned_syms" >&5
7355 echo "${ECHO_T}$with_versioned_syms" >&6
7361 if test "x$with_versioned_syms" != xno
7363 RESULTING_SYMS=$with_versioned_syms
7364 case "x$MK_SHARED_LIB" in
7366 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
7367 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
7368 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7370 echo "${as_me:-configure}:7370: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7374 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
7375 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
7376 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7378 echo "${as_me:-configure}:7378: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7382 { echo "$as_me:7382: WARNING: this system does not support versioned-symbols" >&5
7383 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
7387 # Linux ld can selectively override scope, e.g., of symbols beginning with
7388 # "_" by first declaring some as global, and then using a wildcard to
7389 # declare the others as local. Some other loaders cannot do this. Check
7390 # by constructing a (very) simple shared library and inspecting its
7392 if test "x$VERSIONED_SYMS" != "x"
7394 echo "$as_me:7394: checking if wildcards can be used to selectively omit symbols" >&5
7395 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
7401 cat >conftest.ver <<EOF
7430 cat >conftest.$ac_ext <<EOF
7431 #line 7431 "configure"
7432 int _ismissing(void) { return 1; }
7433 int _localf1(void) { return 1; }
7434 int _localf2(void) { return 2; }
7435 int globalf1(void) { return 1; }
7436 int globalf2(void) { return 2; }
7437 int _sublocalf1(void) { return 1; }
7438 int _sublocalf2(void) { return 2; }
7439 int subglobalf1(void) { return 1; }
7440 int subglobalf2(void) { return 2; }
7442 cat >conftest.mk <<EOF
7445 CPPFLAGS=${CPPFLAGS}
7448 VERSIONED_SYMS=${VERSIONED_SYMS}
7449 RESULTING_SYMS=conftest.ver
7450 MK_SHARED_LIB=${MK_SHARED_LIB}
7451 conftest.so: conftest.$ac_cv_objext
7452 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
7455 # compile source, make library
7456 if make -f conftest.mk 2>&5 >/dev/null
7458 # test for missing symbol in either Data or Text section
7459 cf_missing="`nm -P conftest.so 2>&5 |${FGREP-fgrep} _ismissing | ${EGREP-egrep} '[ ][DT][ ]'`"
7460 test -n "$cf_missing" && WILDCARD_SYMS=yes
7462 echo "$as_me:7462: result: $WILDCARD_SYMS" >&5
7463 echo "${ECHO_T}$WILDCARD_SYMS" >&6
7472 ### Checks for special libraries, must be done up-front.
7475 echo "$as_me:7475: checking if you want to link with the GPM mouse library" >&5
7476 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
7478 # Check whether --with-gpm or --without-gpm was given.
7479 if test "${with_gpm+set}" = set; then
7485 echo "$as_me:7485: result: $with_gpm" >&5
7486 echo "${ECHO_T}$with_gpm" >&6
7488 if test "$with_gpm" != no ; then
7489 echo "$as_me:7489: checking for gpm.h" >&5
7490 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
7491 if test "${ac_cv_header_gpm_h+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 cat >"conftest.$ac_ext" <<_ACEOF
7495 #line 7495 "configure"
7496 #include "confdefs.h"
7499 if { (eval echo "$as_me:7499: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7500 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7502 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7504 cat conftest.err >&5
7505 echo "$as_me:7505: \$? = $ac_status" >&5
7506 (exit "$ac_status"); } >/dev/null; then
7507 if test -s conftest.err; then
7508 ac_cpp_err=$ac_c_preproc_warn_flag
7515 if test -z "$ac_cpp_err"; then
7516 ac_cv_header_gpm_h=yes
7518 echo "$as_me: failed program was:" >&5
7519 cat "conftest.$ac_ext" >&5
7520 ac_cv_header_gpm_h=no
7522 rm -f conftest.err "conftest.$ac_ext"
7524 echo "$as_me:7524: result: $ac_cv_header_gpm_h" >&5
7525 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
7526 if test "$ac_cv_header_gpm_h" = yes; then
7528 cat >>confdefs.h <<\EOF
7529 #define HAVE_GPM_H 1
7532 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
7533 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
7535 echo "${as_me:-configure}:7535: testing assuming we really have GPM library ..." 1>&5
7537 cat >>confdefs.h <<\EOF
7538 #define HAVE_LIBGPM 1
7543 echo "$as_me:7543: checking for Gpm_Open in -lgpm" >&5
7544 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7545 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 ac_check_lib_save_LIBS=$LIBS
7550 cat >"conftest.$ac_ext" <<_ACEOF
7551 #line 7551 "configure"
7552 #include "confdefs.h"
7554 /* Override any gcc2 internal prototype to avoid an error. */
7558 /* We use char because int might match the return type of a gcc2
7559 builtin and then its argument prototype would still apply. */
7569 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7570 if { (eval echo "$as_me:7570: \"$ac_link\"") >&5
7571 (eval $ac_link) 2>&5
7573 echo "$as_me:7573: \$? = $ac_status" >&5
7574 (exit "$ac_status"); } &&
7575 { ac_try='test -s "conftest$ac_exeext"'
7576 { (eval echo "$as_me:7576: \"$ac_try\"") >&5
7579 echo "$as_me:7579: \$? = $ac_status" >&5
7580 (exit "$ac_status"); }; }; then
7581 ac_cv_lib_gpm_Gpm_Open=yes
7583 echo "$as_me: failed program was:" >&5
7584 cat "conftest.$ac_ext" >&5
7585 ac_cv_lib_gpm_Gpm_Open=no
7587 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7588 LIBS=$ac_check_lib_save_LIBS
7590 echo "$as_me:7590: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7591 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7592 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
7596 if test "$with_gpm" = maybe; then
7597 { echo "$as_me:7597: WARNING: Cannot link with GPM library" >&5
7598 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
7601 { { echo "$as_me:7601: error: Cannot link with GPM library" >&5
7602 echo "$as_me: error: Cannot link with GPM library" >&2;}
7603 { (exit 1); exit 1; }; }
7612 test "$with_gpm" != maybe && { echo "$as_me:7612: WARNING: Cannot find GPM header" >&5
7613 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
7620 if test "$with_gpm" != no ; then
7621 echo "$as_me:7621: checking if you want to load GPM dynamically" >&5
7622 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
7624 # Check whether --with-dlsym or --without-dlsym was given.
7625 if test "${with_dlsym+set}" = set; then
7626 withval="$with_dlsym"
7631 echo "$as_me:7631: result: $with_dlsym" >&5
7632 echo "${ECHO_T}$with_dlsym" >&6
7633 if test "x$with_dlsym" = xyes ; then
7636 echo "$as_me:7636: checking for dlsym" >&5
7637 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
7638 if test "${ac_cv_func_dlsym+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 cat >"conftest.$ac_ext" <<_ACEOF
7642 #line 7642 "configure"
7643 #include "confdefs.h"
7644 #define dlsym autoconf_temporary
7645 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7652 /* We use char because int might match the return type of a gcc2
7653 builtin and then its argument prototype would still apply. */
7660 /* The GNU C library defines stubs for functions which it implements
7661 to always fail with ENOSYS. Some functions are actually named
7662 something starting with __ and the normal name is an alias. */
7663 #if defined (__stub_dlsym) || defined (__stub___dlsym)
7664 #error found stub for dlsym
7672 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7673 if { (eval echo "$as_me:7673: \"$ac_link\"") >&5
7674 (eval $ac_link) 2>&5
7676 echo "$as_me:7676: \$? = $ac_status" >&5
7677 (exit "$ac_status"); } &&
7678 { ac_try='test -s "conftest$ac_exeext"'
7679 { (eval echo "$as_me:7679: \"$ac_try\"") >&5
7682 echo "$as_me:7682: \$? = $ac_status" >&5
7683 (exit "$ac_status"); }; }; then
7684 ac_cv_func_dlsym=yes
7686 echo "$as_me: failed program was:" >&5
7687 cat "conftest.$ac_ext" >&5
7690 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7692 echo "$as_me:7692: result: $ac_cv_func_dlsym" >&5
7693 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
7694 if test "$ac_cv_func_dlsym" = yes; then
7699 echo "$as_me:7699: checking for dlsym in -ldl" >&5
7700 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
7701 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
7702 echo $ECHO_N "(cached) $ECHO_C" >&6
7704 ac_check_lib_save_LIBS=$LIBS
7706 cat >"conftest.$ac_ext" <<_ACEOF
7707 #line 7707 "configure"
7708 #include "confdefs.h"
7710 /* Override any gcc2 internal prototype to avoid an error. */
7714 /* We use char because int might match the return type of a gcc2
7715 builtin and then its argument prototype would still apply. */
7725 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7726 if { (eval echo "$as_me:7726: \"$ac_link\"") >&5
7727 (eval $ac_link) 2>&5
7729 echo "$as_me:7729: \$? = $ac_status" >&5
7730 (exit "$ac_status"); } &&
7731 { ac_try='test -s "conftest$ac_exeext"'
7732 { (eval echo "$as_me:7732: \"$ac_try\"") >&5
7735 echo "$as_me:7735: \$? = $ac_status" >&5
7736 (exit "$ac_status"); }; }; then
7737 ac_cv_lib_dl_dlsym=yes
7739 echo "$as_me: failed program was:" >&5
7740 cat "conftest.$ac_ext" >&5
7741 ac_cv_lib_dl_dlsym=no
7743 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7744 LIBS=$ac_check_lib_save_LIBS
7746 echo "$as_me:7746: result: $ac_cv_lib_dl_dlsym" >&5
7747 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
7748 if test "$ac_cv_lib_dl_dlsym" = yes; then
7756 if test "$cf_have_dlsym" = yes ; then
7757 test "$cf_have_libdl" = yes && {
7761 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7763 for cf_add_1lib in $cf_add_0lib; do
7764 for cf_add_2lib in $cf_add_libs; do
7765 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7770 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7775 echo "$as_me:7775: checking whether able to link to dl*() functions" >&5
7776 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
7777 cat >"conftest.$ac_ext" <<_ACEOF
7778 #line 7778 "configure"
7779 #include "confdefs.h"
7786 if ((obj = dlopen("filename", 0)) != 0) {
7787 if (dlsym(obj, "symbolname") == 0) {
7795 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7796 if { (eval echo "$as_me:7796: \"$ac_link\"") >&5
7797 (eval $ac_link) 2>&5
7799 echo "$as_me:7799: \$? = $ac_status" >&5
7800 (exit "$ac_status"); } &&
7801 { ac_try='test -s "conftest$ac_exeext"'
7802 { (eval echo "$as_me:7802: \"$ac_try\"") >&5
7805 echo "$as_me:7805: \$? = $ac_status" >&5
7806 (exit "$ac_status"); }; }; then
7808 cat >>confdefs.h <<\EOF
7809 #define HAVE_LIBDL 1
7813 echo "$as_me: failed program was:" >&5
7814 cat "conftest.$ac_ext" >&5
7816 { { echo "$as_me:7816: error: Cannot link test program for libdl" >&5
7817 echo "$as_me: error: Cannot link test program for libdl" >&2;}
7818 { (exit 1); exit 1; }; }
7820 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7821 echo "$as_me:7821: result: ok" >&5
7822 echo "${ECHO_T}ok" >&6
7824 { { echo "$as_me:7824: error: Cannot find dlsym function" >&5
7825 echo "$as_me: error: Cannot find dlsym function" >&2;}
7826 { (exit 1); exit 1; }; }
7829 if test "x$with_gpm" != xyes ; then
7830 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
7832 echo "${as_me:-configure}:7832: testing assuming soname for gpm is $with_gpm ..." 1>&5
7834 cf_cv_gpm_soname="$with_gpm"
7837 echo "$as_me:7837: checking for soname of gpm library" >&5
7838 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
7839 if test "${cf_cv_gpm_soname+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 cf_cv_gpm_soname=unknown
7844 if test "$cross_compiling" != yes ; then
7845 cat >conftest.$ac_ext <<CF_EOF
7849 if (Gpm_Open(0,0)) Gpm_Close();
7850 ${cf_cv_main_return:-return}(0);
7853 cf_save_LIBS="$LIBS"
7858 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7860 for cf_add_1lib in $cf_add_0lib; do
7861 for cf_add_2lib in $cf_add_libs; do
7862 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7867 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7871 if { (eval echo "$as_me:7871: \"$ac_compile\"") >&5
7872 (eval $ac_compile) 2>&5
7874 echo "$as_me:7874: \$? = $ac_status" >&5
7875 (exit "$ac_status"); } ; then
7876 if { (eval echo "$as_me:7876: \"$ac_link\"") >&5
7877 (eval $ac_link) 2>&5
7879 echo "$as_me:7879: \$? = $ac_status" >&5
7880 (exit "$ac_status"); } ; then
7881 cf_cv_gpm_soname="`ldd \"conftest$ac_exeext\" 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | ${FGREP-fgrep} libgpm.`"
7882 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
7886 LIBS="$cf_save_LIBS"
7890 echo "$as_me:7890: result: $cf_cv_gpm_soname" >&5
7891 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
7894 test "$cf_cv_gpm_soname" != "unknown" &&
7895 cat >>confdefs.h <<EOF
7896 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
7899 SHLIB_LIST="-ldl $SHLIB_LIST"
7901 cf_add_libs="$PRIVATE_LIBS"
7904 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7906 for cf_add_1lib in $cf_add_0lib; do
7907 for cf_add_2lib in $cf_add_libs; do
7908 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7913 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7915 PRIVATE_LIBS="$cf_add_libs"
7918 SHLIB_LIST="-lgpm $SHLIB_LIST"
7920 cf_add_libs="$TEST_LIBS"
7923 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7925 for cf_add_1lib in $cf_add_0lib; do
7926 for cf_add_2lib in $cf_add_libs; do
7927 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7932 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7934 TEST_LIBS="$cf_add_libs"
7936 cf_add_libs="$PRIVATE_LIBS"
7939 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7941 for cf_add_1lib in $cf_add_0lib; do
7942 for cf_add_2lib in $cf_add_libs; do
7943 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7948 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7950 PRIVATE_LIBS="$cf_add_libs"
7954 cat >>confdefs.h <<\EOF
7955 #define HAVE_LIBGPM 1
7958 echo "$as_me:7958: checking for Gpm_Wgetch in -lgpm" >&5
7959 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
7960 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7963 ac_check_lib_save_LIBS=$LIBS
7965 cat >"conftest.$ac_ext" <<_ACEOF
7966 #line 7966 "configure"
7967 #include "confdefs.h"
7969 /* Override any gcc2 internal prototype to avoid an error. */
7973 /* We use char because int might match the return type of a gcc2
7974 builtin and then its argument prototype would still apply. */
7984 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7985 if { (eval echo "$as_me:7985: \"$ac_link\"") >&5
7986 (eval $ac_link) 2>&5
7988 echo "$as_me:7988: \$? = $ac_status" >&5
7989 (exit "$ac_status"); } &&
7990 { ac_try='test -s "conftest$ac_exeext"'
7991 { (eval echo "$as_me:7991: \"$ac_try\"") >&5
7994 echo "$as_me:7994: \$? = $ac_status" >&5
7995 (exit "$ac_status"); }; }; then
7996 ac_cv_lib_gpm_Gpm_Wgetch=yes
7998 echo "$as_me: failed program was:" >&5
7999 cat "conftest.$ac_ext" >&5
8000 ac_cv_lib_gpm_Gpm_Wgetch=no
8002 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8003 LIBS=$ac_check_lib_save_LIBS
8005 echo "$as_me:8005: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
8006 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
8007 if test "$ac_cv_lib_gpm_Gpm_Wgetch" = yes; then
8009 echo "$as_me:8009: checking if GPM is weakly bound to curses library" >&5
8010 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
8011 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 cf_cv_check_gpm_wgetch=unknown
8016 if test "$cross_compiling" != yes ; then
8018 cat >conftest.$ac_ext <<CF_EOF
8023 ${cf_cv_main_return:-return}(0);
8027 cf_save_LIBS="$LIBS"
8028 # This only works if we can look at the symbol table. If a shared
8029 # library is stripped for install, we cannot use that. So we're forced
8030 # to rely on the static library, noting that some packagers may not
8032 LIBS="-static -lgpm -dynamic $LIBS"
8033 if { (eval echo "$as_me:8033: \"$ac_compile\"") >&5
8034 (eval $ac_compile) 2>&5
8036 echo "$as_me:8036: \$? = $ac_status" >&5
8037 (exit "$ac_status"); } ; then
8038 if { (eval echo "$as_me:8038: \"$ac_link\"") >&5
8039 (eval $ac_link) 2>&5
8041 echo "$as_me:8041: \$? = $ac_status" >&5
8042 (exit "$ac_status"); } ; then
8043 cf_cv_check_gpm_wgetch="`nm \"conftest$ac_exeext\" | ${EGREP-egrep} '\<wgetch\>' | ${EGREP-egrep} '\<[vVwW]\>'`"
8044 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
8045 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
8049 LIBS="$cf_save_LIBS"
8053 echo "$as_me:8053: result: $cf_cv_check_gpm_wgetch" >&5
8054 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
8056 if test "$cf_cv_check_gpm_wgetch" != yes ; then
8057 { echo "$as_me:8057: WARNING: GPM library is already linked with curses - read the FAQ" >&5
8058 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
8065 echo "$as_me:8065: checking if you want to use PCRE2 for regular-expressions" >&5
8066 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
8068 # Check whether --with-pcre2 or --without-pcre2 was given.
8069 if test "${with_pcre2+set}" = set; then
8070 withval="$with_pcre2"
8073 test -z "$with_pcre2" && with_pcre2=no
8074 echo "$as_me:8074: result: $with_pcre2" >&5
8075 echo "${ECHO_T}$with_pcre2" >&6
8077 if test "x$with_pcre2" != xno ; then
8079 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre
8082 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then
8083 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6
8085 echo "${as_me:-configure}:8085: testing found package $cf_with_pcre2 ..." 1>&5
8087 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`"
8088 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`"
8089 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
8091 echo "${as_me:-configure}:8091: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
8093 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6
8095 echo "${as_me:-configure}:8095: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
8100 cf_new_extra_cppflags=
8102 for cf_add_cflags in $cf_pkgconfig_incs
8104 case "$cf_fix_cppflags" in
8106 case "$cf_add_cflags" in
8107 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8108 case "$cf_add_cflags" in
8110 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8112 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8113 && test -z "${cf_tst_cflags}" \
8114 && cf_fix_cppflags=yes
8116 if test "$cf_fix_cppflags" = yes ; then
8118 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8119 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8122 elif test "${cf_tst_cflags}" = "\"'" ; then
8124 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8125 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8135 case "$cf_add_cflags" in
8137 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8139 CPPFLAGS=`echo "$CPPFLAGS" | \
8140 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8141 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8146 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8147 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8154 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8155 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8162 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8163 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8165 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
8167 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8168 && test -z "${cf_tst_cflags}" \
8169 && cf_fix_cppflags=no
8174 if test -n "$cf_new_cflags" ; then
8176 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8177 CFLAGS="${CFLAGS}$cf_new_cflags"
8181 if test -n "$cf_new_cppflags" ; then
8183 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8184 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8188 if test -n "$cf_new_extra_cppflags" ; then
8190 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8191 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8198 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8200 for cf_add_1lib in $cf_add_0lib; do
8201 for cf_add_2lib in $cf_add_libs; do
8202 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8207 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8211 cf_with_pcre2_ok=yes; break
8219 cf_with_pcre2_ok=yes || { { echo "$as_me:8219: error: Cannot find PCRE2 library" >&5
8220 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
8221 { (exit 1); exit 1; }; }
8223 cat >>confdefs.h <<\EOF
8224 #define HAVE_LIB_PCRE2 1
8227 # if pkgconfig gave no results, look for the libraries directly
8229 (*pcre2-posix*|*pcreposix*)
8232 echo "$as_me:8232: checking for regcomp in -lpcre2-posix" >&5
8233 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
8234 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 ac_check_lib_save_LIBS=$LIBS
8238 LIBS="-lpcre2-posix $LIBS"
8239 cat >"conftest.$ac_ext" <<_ACEOF
8240 #line 8240 "configure"
8241 #include "confdefs.h"
8243 /* Override any gcc2 internal prototype to avoid an error. */
8247 /* We use char because int might match the return type of a gcc2
8248 builtin and then its argument prototype would still apply. */
8258 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8259 if { (eval echo "$as_me:8259: \"$ac_link\"") >&5
8260 (eval $ac_link) 2>&5
8262 echo "$as_me:8262: \$? = $ac_status" >&5
8263 (exit "$ac_status"); } &&
8264 { ac_try='test -s "conftest$ac_exeext"'
8265 { (eval echo "$as_me:8265: \"$ac_try\"") >&5
8268 echo "$as_me:8268: \$? = $ac_status" >&5
8269 (exit "$ac_status"); }; }; then
8270 ac_cv_lib_pcre2_posix_regcomp=yes
8272 echo "$as_me: failed program was:" >&5
8273 cat "conftest.$ac_ext" >&5
8274 ac_cv_lib_pcre2_posix_regcomp=no
8276 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8277 LIBS=$ac_check_lib_save_LIBS
8279 echo "$as_me:8279: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
8280 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
8281 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then
8286 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8288 for cf_add_1lib in $cf_add_0lib; do
8289 for cf_add_2lib in $cf_add_libs; do
8290 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8295 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8300 echo "$as_me:8300: checking for regcomp in -lpcreposix" >&5
8301 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
8302 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 ac_check_lib_save_LIBS=$LIBS
8306 LIBS="-lpcreposix $LIBS"
8307 cat >"conftest.$ac_ext" <<_ACEOF
8308 #line 8308 "configure"
8309 #include "confdefs.h"
8311 /* Override any gcc2 internal prototype to avoid an error. */
8315 /* We use char because int might match the return type of a gcc2
8316 builtin and then its argument prototype would still apply. */
8326 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8327 if { (eval echo "$as_me:8327: \"$ac_link\"") >&5
8328 (eval $ac_link) 2>&5
8330 echo "$as_me:8330: \$? = $ac_status" >&5
8331 (exit "$ac_status"); } &&
8332 { ac_try='test -s "conftest$ac_exeext"'
8333 { (eval echo "$as_me:8333: \"$ac_try\"") >&5
8336 echo "$as_me:8336: \$? = $ac_status" >&5
8337 (exit "$ac_status"); }; }; then
8338 ac_cv_lib_pcreposix_regcomp=yes
8340 echo "$as_me: failed program was:" >&5
8341 cat "conftest.$ac_ext" >&5
8342 ac_cv_lib_pcreposix_regcomp=no
8344 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8345 LIBS=$ac_check_lib_save_LIBS
8347 echo "$as_me:8347: result: $ac_cv_lib_pcreposix_regcomp" >&5
8348 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
8349 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
8354 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8356 for cf_add_1lib in $cf_add_0lib; do
8357 for cf_add_2lib in $cf_add_libs; do
8358 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8363 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8368 { { echo "$as_me:8368: error: Cannot find PCRE2 POSIX library" >&5
8369 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
8370 { (exit 1); exit 1; }; }
8378 # either way, check for the library header files
8380 for ac_header in pcre2posix.h pcreposix.h
8382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8383 echo "$as_me:8383: checking for $ac_header" >&5
8384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8388 cat >"conftest.$ac_ext" <<_ACEOF
8389 #line 8389 "configure"
8390 #include "confdefs.h"
8391 #include <$ac_header>
8393 if { (eval echo "$as_me:8393: \"$ac_cpp "conftest.$ac_ext"\"") >&5
8394 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
8396 $EGREP -v '^ *\+' conftest.er1 >conftest.err
8398 cat conftest.err >&5
8399 echo "$as_me:8399: \$? = $ac_status" >&5
8400 (exit "$ac_status"); } >/dev/null; then
8401 if test -s conftest.err; then
8402 ac_cpp_err=$ac_c_preproc_warn_flag
8409 if test -z "$ac_cpp_err"; then
8410 eval "$as_ac_Header=yes"
8412 echo "$as_me: failed program was:" >&5
8413 cat "conftest.$ac_ext" >&5
8414 eval "$as_ac_Header=no"
8416 rm -f conftest.err "conftest.$ac_ext"
8418 echo "$as_me:8418: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
8419 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
8420 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
8421 cat >>confdefs.h <<EOF
8422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8428 for ac_func in PCRE2regcomp
8430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8431 echo "$as_me:8431: checking for $ac_func" >&5
8432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8433 if eval "test \"\${$as_ac_var+set}\" = set"; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 cat >"conftest.$ac_ext" <<_ACEOF
8437 #line 8437 "configure"
8438 #include "confdefs.h"
8439 #define $ac_func autoconf_temporary
8440 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8447 /* We use char because int might match the return type of a gcc2
8448 builtin and then its argument prototype would still apply. */
8449 char $ac_func (void);
8455 /* The GNU C library defines stubs for functions which it implements
8456 to always fail with ENOSYS. Some functions are actually named
8457 something starting with __ and the normal name is an alias. */
8458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8459 #error found stub for $ac_func
8467 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8468 if { (eval echo "$as_me:8468: \"$ac_link\"") >&5
8469 (eval $ac_link) 2>&5
8471 echo "$as_me:8471: \$? = $ac_status" >&5
8472 (exit "$ac_status"); } &&
8473 { ac_try='test -s "conftest$ac_exeext"'
8474 { (eval echo "$as_me:8474: \"$ac_try\"") >&5
8477 echo "$as_me:8477: \$? = $ac_status" >&5
8478 (exit "$ac_status"); }; }; then
8479 eval "$as_ac_var=yes"
8481 echo "$as_me: failed program was:" >&5
8482 cat "conftest.$ac_ext" >&5
8483 eval "$as_ac_var=no"
8485 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8487 echo "$as_me:8487: result: `eval echo '${'"$as_ac_var"'}'`" >&5
8488 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
8489 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
8490 cat >>confdefs.h <<EOF
8491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8499 # not everyone has "test -c"
8500 if test -c /dev/sysmouse 2>/dev/null ; then
8501 echo "$as_me:8501: checking if you want to use sysmouse" >&5
8502 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
8504 # Check whether --with-sysmouse or --without-sysmouse was given.
8505 if test "${with_sysmouse+set}" = set; then
8506 withval="$with_sysmouse"
8507 cf_with_sysmouse=$withval
8509 cf_with_sysmouse=maybe
8511 if test "$cf_with_sysmouse" != no ; then
8512 cat >"conftest.$ac_ext" <<_ACEOF
8513 #line 8513 "configure"
8514 #include "confdefs.h"
8516 #include <osreldate.h>
8517 #if (__FreeBSD_version >= 400017)
8518 #include <sys/consio.h>
8519 #include <sys/fbio.h>
8521 #include <machine/console.h>
8528 struct mouse_info the_mouse;
8529 ioctl(0, CONS_MOUSECTL, &the_mouse);
8535 rm -f "conftest.$ac_objext"
8536 if { (eval echo "$as_me:8536: \"$ac_compile\"") >&5
8537 (eval $ac_compile) 2>&5
8539 echo "$as_me:8539: \$? = $ac_status" >&5
8540 (exit "$ac_status"); } &&
8541 { ac_try='test -s "conftest.$ac_objext"'
8542 { (eval echo "$as_me:8542: \"$ac_try\"") >&5
8545 echo "$as_me:8545: \$? = $ac_status" >&5
8546 (exit "$ac_status"); }; }; then
8547 cf_with_sysmouse=yes
8549 echo "$as_me: failed program was:" >&5
8550 cat "conftest.$ac_ext" >&5
8553 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8555 echo "$as_me:8555: result: $cf_with_sysmouse" >&5
8556 echo "${ECHO_T}$cf_with_sysmouse" >&6
8557 test "$cf_with_sysmouse" = yes &&
8558 cat >>confdefs.h <<\EOF
8559 #define USE_SYSMOUSE 1
8564 # pretend that ncurses==ncursesw==ncursest
8565 echo "$as_me:8565: checking if you want to disable library suffixes" >&5
8566 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
8568 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
8569 if test "${enable_lib_suffixes+set}" = set; then
8570 enableval="$enable_lib_suffixes"
8571 test "$enableval" != no && enableval=yes
8572 if test "$enableval" != "yes" ; then
8573 disable_lib_suffixes=yes
8575 disable_lib_suffixes=no
8579 disable_lib_suffixes=no
8582 echo "$as_me:8582: result: $disable_lib_suffixes" >&5
8583 echo "${ECHO_T}$disable_lib_suffixes" >&6
8585 ### If we're building with rpath, try to link non-standard libs that way too.
8586 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
8588 echo "$as_me:8588: checking if rpath-hack should be disabled" >&5
8589 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
8591 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
8592 if test "${enable_rpath_hack+set}" = set; then
8593 enableval="$enable_rpath_hack"
8594 test "$enableval" != no && enableval=yes
8595 if test "$enableval" != "yes" ; then
8596 enable_rpath_hack=no
8598 enable_rpath_hack=yes
8602 enable_rpath_hack=yes
8605 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
8606 echo "$as_me:8606: result: $cf_disable_rpath_hack" >&5
8607 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
8609 if test "$enable_rpath_hack" = yes ; then
8611 echo "$as_me:8611: checking for updated LDFLAGS" >&5
8612 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
8613 if test -n "$LD_RPATH_OPT" ; then
8614 echo "$as_me:8614: result: maybe" >&5
8615 echo "${ECHO_T}maybe" >&6
8619 # Extract the first word of "$ac_prog", so it can be a program name with args.
8620 set dummy $ac_prog; ac_word=$2
8621 echo "$as_me:8621: checking for $ac_word" >&5
8622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8623 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 if test -n "$cf_ldd_prog"; then
8627 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
8629 ac_save_IFS=$IFS; IFS=$ac_path_separator
8631 for ac_dir in $ac_dummy; do
8633 test -z "$ac_dir" && ac_dir=.
8634 $as_executable_p "$ac_dir/$ac_word" || continue
8635 ac_cv_prog_cf_ldd_prog="$ac_prog"
8636 echo "$as_me:8636: found $ac_dir/$ac_word" >&5
8642 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
8643 if test -n "$cf_ldd_prog"; then
8644 echo "$as_me:8644: result: $cf_ldd_prog" >&5
8645 echo "${ECHO_T}$cf_ldd_prog" >&6
8647 echo "$as_me:8647: result: no" >&5
8648 echo "${ECHO_T}no" >&6
8651 test -n "$cf_ldd_prog" && break
8653 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
8655 cf_rpath_list="/usr/lib /lib"
8656 if test "$cf_ldd_prog" != no
8660 cat >"conftest.$ac_ext" <<_ACEOF
8661 #line 8661 "configure"
8662 #include "confdefs.h"
8672 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8673 if { (eval echo "$as_me:8673: \"$ac_link\"") >&5
8674 (eval $ac_link) 2>&5
8676 echo "$as_me:8676: \$? = $ac_status" >&5
8677 (exit "$ac_status"); } &&
8678 { ac_try='test -s "conftest$ac_exeext"'
8679 { (eval echo "$as_me:8679: \"$ac_try\"") >&5
8682 echo "$as_me:8682: \$? = $ac_status" >&5
8683 (exit "$ac_status"); }; }; then
8684 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
8685 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
8687 echo "$as_me: failed program was:" >&5
8688 cat "conftest.$ac_ext" >&5
8690 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8692 # If we passed the link-test, but get a "not found" on a given library,
8693 # this could be due to inept reconfiguration of gcc to make it only
8694 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
8695 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
8696 # /usr/local libraries.
8697 if test -n "$cf_rpath_oops"
8699 for cf_rpath_src in $cf_rpath_oops
8701 for cf_rpath_dir in \
8706 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
8708 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
8710 echo "${as_me:-configure}:8710: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
8712 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
8720 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8722 echo "${as_me:-configure}:8722: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8724 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
8726 echo "${as_me:-configure}:8726: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
8729 for cf_rpath_src in $LDFLAGS
8731 case "$cf_rpath_src" in
8734 # check if this refers to a directory which we will ignore
8736 if test -n "$cf_rpath_list"
8738 for cf_rpath_item in $cf_rpath_list
8740 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8748 if test "$cf_rpath_skip" = no
8750 # transform the option
8751 if test "$LD_RPATH_OPT" = "-R " ; then
8752 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8754 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8757 # if we have not already added this, add it now
8758 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8759 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8761 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8763 echo "${as_me:-configure}:8763: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8765 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8770 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8772 LDFLAGS=$cf_rpath_dst
8774 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
8776 echo "${as_me:-configure}:8776: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
8778 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
8780 echo "${as_me:-configure}:8780: testing ...checking LIBS $LIBS ..." 1>&5
8783 for cf_rpath_src in $LIBS
8785 case "$cf_rpath_src" in
8788 # check if this refers to a directory which we will ignore
8790 if test -n "$cf_rpath_list"
8792 for cf_rpath_item in $cf_rpath_list
8794 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8802 if test "$cf_rpath_skip" = no
8804 # transform the option
8805 if test "$LD_RPATH_OPT" = "-R " ; then
8806 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8808 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8811 # if we have not already added this, add it now
8812 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8813 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8815 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8817 echo "${as_me:-configure}:8817: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8819 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8824 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8828 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
8830 echo "${as_me:-configure}:8830: testing ...checked LIBS $LIBS ..." 1>&5
8832 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8834 echo "${as_me:-configure}:8834: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8837 echo "$as_me:8837: result: no" >&5
8838 echo "${ECHO_T}no" >&6
8845 ### Depending on the system, someone may use rpath to build ncurses but not
8846 # want users of the package to rely upon that feature. Give those people an
8847 # option to suppress that detail from EXTRA_LDFLAGS.
8848 EXTRA_PKG_LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
8849 if test -n "$EXTRA_PKG_LDFLAGS"
8851 echo "$as_me:8851: checking if you want to disable extra LDFLAGS for package-scripts" >&5
8852 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
8854 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
8855 if test "${enable_pkg_ldflags+set}" = set; then
8856 enableval="$enable_pkg_ldflags"
8857 test "$enableval" != no && enableval=yes
8858 if test "$enableval" != "yes" ; then
8859 disable_pkg_ldflags=yes
8861 disable_pkg_ldflags=no
8865 disable_pkg_ldflags=no
8868 echo "$as_me:8868: result: $disable_pkg_ldflags" >&5
8869 echo "${ECHO_T}$disable_pkg_ldflags" >&6
8870 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
8873 ###############################################################################
8875 ### use option --with-extra-suffix to append suffix to headers and libraries
8876 echo "$as_me:8876: checking if you wish to append extra suffix to header/library paths" >&5
8877 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
8880 # Check whether --with-extra-suffix or --without-extra-suffix was given.
8881 if test "${with_extra_suffix+set}" = set; then
8882 withval="$with_extra_suffix"
8887 EXTRA_SUFFIX=$cf_cv_abi_version
8890 EXTRA_SUFFIX=$withval
8895 echo "$as_me:8895: result: $EXTRA_SUFFIX" >&5
8896 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
8898 ### use option --disable-overwrite to leave out the link to -lcurses
8899 echo "$as_me:8899: checking if you wish to install ncurses overwriting curses" >&5
8900 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
8902 # Check whether --enable-overwrite or --disable-overwrite was given.
8903 if test "${enable_overwrite+set}" = set; then
8904 enableval="$enable_overwrite"
8905 with_overwrite=$enableval
8907 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
8909 echo "$as_me:8909: result: $with_overwrite" >&5
8910 echo "${ECHO_T}$with_overwrite" >&6
8912 echo "$as_me:8912: checking if external terminfo-database is used" >&5
8913 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
8915 # Check whether --enable-database or --disable-database was given.
8916 if test "${enable_database+set}" = set; then
8917 enableval="$enable_database"
8918 use_database=$enableval
8922 echo "$as_me:8922: result: $use_database" >&5
8923 echo "${ECHO_T}$use_database" >&6
8927 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
8930 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
8934 NCURSES_USE_DATABASE=0
8935 if test "$use_database" != no ; then
8936 NCURSES_USE_DATABASE=1
8938 echo "$as_me:8938: checking which terminfo source-file will be installed" >&5
8939 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
8941 # Check whether --with-database or --without-database was given.
8942 if test "${with_database+set}" = set; then
8943 withval="$with_database"
8944 TERMINFO_SRC=$withval
8946 echo "$as_me:8946: result: $TERMINFO_SRC" >&5
8947 echo "${ECHO_T}$TERMINFO_SRC" >&6
8949 echo "$as_me:8949: checking whether to use hashed database instead of directory/tree" >&5
8950 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
8952 # Check whether --with-hashed-db or --without-hashed-db was given.
8953 if test "${with_hashed_db+set}" = set; then
8954 withval="$with_hashed_db"
8959 echo "$as_me:8959: result: $with_hashed_db" >&5
8960 echo "${ECHO_T}$with_hashed_db" >&6
8965 echo "$as_me:8965: checking for list of fallback descriptions" >&5
8966 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
8968 # Check whether --with-fallbacks or --without-fallbacks was given.
8969 if test "${with_fallbacks+set}" = set; then
8970 withval="$with_fallbacks"
8971 with_fallback=$withval
8975 echo "$as_me:8975: result: $with_fallback" >&5
8976 echo "${ECHO_T}$with_fallback" >&6
8978 case ".$with_fallback" in
8983 { echo "$as_me:8983: WARNING: expected a list of terminal descriptions" >&5
8984 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8987 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8991 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8992 # tree for generating the terminal descriptions that will be compiled into the
8993 # library. If your toolchain is old, it may not handle current terminal
8994 # databases. Use configure-options to point to the tools which will be used,
8995 # rather than the first ones found on the $PATH.
8996 if test -n "$ac_tool_prefix"; then
8997 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args.
8998 set dummy ${ac_tool_prefix}tic; ac_word=$2
8999 echo "$as_me:8999: checking for $ac_word" >&5
9000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9001 if test "${ac_cv_prog_TIC+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 if test -n "$TIC"; then
9005 ac_cv_prog_TIC="$TIC" # Let the user override the test.
9007 ac_save_IFS=$IFS; IFS=$ac_path_separator
9009 for ac_dir in $ac_dummy; do
9011 test -z "$ac_dir" && ac_dir=.
9012 $as_executable_p "$ac_dir/$ac_word" || continue
9013 ac_cv_prog_TIC="${ac_tool_prefix}tic"
9014 echo "$as_me:9014: found $ac_dir/$ac_word" >&5
9021 if test -n "$TIC"; then
9022 echo "$as_me:9022: result: $TIC" >&5
9023 echo "${ECHO_T}$TIC" >&6
9025 echo "$as_me:9025: result: no" >&5
9026 echo "${ECHO_T}no" >&6
9030 if test -z "$ac_cv_prog_TIC"; then
9032 # Extract the first word of "tic", so it can be a program name with args.
9033 set dummy tic; ac_word=$2
9034 echo "$as_me:9034: checking for $ac_word" >&5
9035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9036 if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then
9037 echo $ECHO_N "(cached) $ECHO_C" >&6
9039 if test -n "$ac_ct_TIC"; then
9040 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test.
9042 ac_save_IFS=$IFS; IFS=$ac_path_separator
9044 for ac_dir in $ac_dummy; do
9046 test -z "$ac_dir" && ac_dir=.
9047 $as_executable_p "$ac_dir/$ac_word" || continue
9048 ac_cv_prog_ac_ct_TIC="tic"
9049 echo "$as_me:9049: found $ac_dir/$ac_word" >&5
9055 ac_ct_TIC=$ac_cv_prog_ac_ct_TIC
9056 if test -n "$ac_ct_TIC"; then
9057 echo "$as_me:9057: result: $ac_ct_TIC" >&5
9058 echo "${ECHO_T}$ac_ct_TIC" >&6
9060 echo "$as_me:9060: result: no" >&5
9061 echo "${ECHO_T}no" >&6
9066 TIC="$ac_cv_prog_TIC"
9069 if test -n "$ac_tool_prefix"; then
9070 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args.
9071 set dummy ${ac_tool_prefix}infocmp; ac_word=$2
9072 echo "$as_me:9072: checking for $ac_word" >&5
9073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9074 if test "${ac_cv_prog_INFOCMP+set}" = set; then
9075 echo $ECHO_N "(cached) $ECHO_C" >&6
9077 if test -n "$INFOCMP"; then
9078 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test.
9080 ac_save_IFS=$IFS; IFS=$ac_path_separator
9082 for ac_dir in $ac_dummy; do
9084 test -z "$ac_dir" && ac_dir=.
9085 $as_executable_p "$ac_dir/$ac_word" || continue
9086 ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp"
9087 echo "$as_me:9087: found $ac_dir/$ac_word" >&5
9093 INFOCMP=$ac_cv_prog_INFOCMP
9094 if test -n "$INFOCMP"; then
9095 echo "$as_me:9095: result: $INFOCMP" >&5
9096 echo "${ECHO_T}$INFOCMP" >&6
9098 echo "$as_me:9098: result: no" >&5
9099 echo "${ECHO_T}no" >&6
9103 if test -z "$ac_cv_prog_INFOCMP"; then
9104 ac_ct_INFOCMP=$INFOCMP
9105 # Extract the first word of "infocmp", so it can be a program name with args.
9106 set dummy infocmp; ac_word=$2
9107 echo "$as_me:9107: checking for $ac_word" >&5
9108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9109 if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9112 if test -n "$ac_ct_INFOCMP"; then
9113 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test.
9115 ac_save_IFS=$IFS; IFS=$ac_path_separator
9117 for ac_dir in $ac_dummy; do
9119 test -z "$ac_dir" && ac_dir=.
9120 $as_executable_p "$ac_dir/$ac_word" || continue
9121 ac_cv_prog_ac_ct_INFOCMP="infocmp"
9122 echo "$as_me:9122: found $ac_dir/$ac_word" >&5
9128 ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP
9129 if test -n "$ac_ct_INFOCMP"; then
9130 echo "$as_me:9130: result: $ac_ct_INFOCMP" >&5
9131 echo "${ECHO_T}$ac_ct_INFOCMP" >&6
9133 echo "$as_me:9133: result: no" >&5
9134 echo "${ECHO_T}no" >&6
9137 INFOCMP=$ac_ct_INFOCMP
9139 INFOCMP="$ac_cv_prog_INFOCMP"
9142 if test -n "$FALLBACK_LIST"
9145 # Check whether --with-tic-path or --without-tic-path was given.
9146 if test "${with_tic_path+set}" = set; then
9147 withval="$with_tic_path"
9148 echo "$as_me:9148: checking for tic program for fallbacks" >&5
9149 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
9151 echo "$as_me:9151: result: $TIC" >&5
9152 echo "${ECHO_T}$TIC" >&6
9154 if test "x$prefix" != xNONE; then
9155 cf_path_syntax="$prefix"
9157 cf_path_syntax="$ac_default_prefix"
9165 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9167 (.\$\{*prefix\}*|.\$\{*dir\}*)
9171 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
9176 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
9179 { { echo "$as_me:9179: error: expected a pathname, not \"$TIC\"" >&5
9180 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
9181 { (exit 1); exit 1; }; }
9187 test -z "$TIC" && TIC="tic"
9188 for ac_prog in $TIC tic
9190 # Extract the first word of "$ac_prog", so it can be a program name with args.
9191 set dummy $ac_prog; ac_word=$2
9192 echo "$as_me:9192: checking for $ac_word" >&5
9193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9194 if test "${ac_cv_path_TIC+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
9202 ac_save_IFS=$IFS; IFS=$ac_path_separator
9203 ac_dummy="$PATH:/usr/local/ncurses/bin"
9204 for ac_dir in $ac_dummy; do
9206 test -z "$ac_dir" && ac_dir=.
9207 if $as_executable_p "$ac_dir/$ac_word"; then
9208 ac_cv_path_TIC="$ac_dir/$ac_word"
9209 echo "$as_me:9209: found $ac_dir/$ac_word" >&5
9219 if test -n "$TIC"; then
9220 echo "$as_me:9220: result: $TIC" >&5
9221 echo "${ECHO_T}$TIC" >&6
9223 echo "$as_me:9223: result: no" >&5
9224 echo "${ECHO_T}no" >&6
9227 test -n "$TIC" && break
9229 test -n "$TIC" || TIC="$TIC"
9233 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
9234 for cf_temp in $ac_cv_path_TIC
9236 if test -z "$cf_path_prog" ; then
9237 if test "$with_full_paths" = yes ; then
9239 if test "x$prefix" != xNONE; then
9240 cf_path_syntax="$prefix"
9242 cf_path_syntax="$ac_default_prefix"
9250 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9252 (.\$\{*prefix\}*|.\$\{*dir\}*)
9253 eval cf_temp="$cf_temp"
9256 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9261 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9268 cf_path_prog="$cf_temp"
9270 cf_path_prog="`basename "$cf_temp"`"
9272 elif test -z "$cf_path_args" ; then
9273 cf_path_args="$cf_temp"
9275 cf_path_args="$cf_path_args $cf_temp"
9280 if test -n "$cf_path_prog" ; then
9282 echo "${as_me:-configure}:9282: testing defining path for ${cf_path_prog} ..." 1>&5
9284 cat >>confdefs.h <<EOF
9285 #define TIC_PATH "$cf_path_prog"
9288 test -n "$cf_path_args" &&
9289 cat >>confdefs.h <<EOF
9290 #define TIC_ARGS "$cf_path_args"
9297 { echo "$as_me:9297: WARNING: no tic program found for fallbacks" >&5
9298 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
9303 # Check whether --with-infocmp-path or --without-infocmp-path was given.
9304 if test "${with_infocmp_path+set}" = set; then
9305 withval="$with_infocmp_path"
9306 echo "$as_me:9306: checking for infocmp program for fallbacks" >&5
9307 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
9309 echo "$as_me:9309: result: $INFOCMP" >&5
9310 echo "${ECHO_T}$INFOCMP" >&6
9312 if test "x$prefix" != xNONE; then
9313 cf_path_syntax="$prefix"
9315 cf_path_syntax="$ac_default_prefix"
9323 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9325 (.\$\{*prefix\}*|.\$\{*dir\}*)
9326 eval INFOCMP="$INFOCMP"
9329 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
9334 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
9337 { { echo "$as_me:9337: error: expected a pathname, not \"$INFOCMP\"" >&5
9338 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
9339 { (exit 1); exit 1; }; }
9345 test -z "$INFOCMP" && INFOCMP="infocmp"
9346 for ac_prog in $INFOCMP infocmp
9348 # Extract the first word of "$ac_prog", so it can be a program name with args.
9349 set dummy $ac_prog; ac_word=$2
9350 echo "$as_me:9350: checking for $ac_word" >&5
9351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9352 if test "${ac_cv_path_INFOCMP+set}" = set; then
9353 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
9360 ac_save_IFS=$IFS; IFS=$ac_path_separator
9361 ac_dummy="$PATH:/usr/local/ncurses/bin"
9362 for ac_dir in $ac_dummy; do
9364 test -z "$ac_dir" && ac_dir=.
9365 if $as_executable_p "$ac_dir/$ac_word"; then
9366 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
9367 echo "$as_me:9367: found $ac_dir/$ac_word" >&5
9375 INFOCMP=$ac_cv_path_INFOCMP
9377 if test -n "$INFOCMP"; then
9378 echo "$as_me:9378: result: $INFOCMP" >&5
9379 echo "${ECHO_T}$INFOCMP" >&6
9381 echo "$as_me:9381: result: no" >&5
9382 echo "${ECHO_T}no" >&6
9385 test -n "$INFOCMP" && break
9387 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
9391 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
9392 for cf_temp in $ac_cv_path_INFOCMP
9394 if test -z "$cf_path_prog" ; then
9395 if test "$with_full_paths" = yes ; then
9397 if test "x$prefix" != xNONE; then
9398 cf_path_syntax="$prefix"
9400 cf_path_syntax="$ac_default_prefix"
9408 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9410 (.\$\{*prefix\}*|.\$\{*dir\}*)
9411 eval cf_temp="$cf_temp"
9414 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9419 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9426 cf_path_prog="$cf_temp"
9428 cf_path_prog="`basename "$cf_temp"`"
9430 elif test -z "$cf_path_args" ; then
9431 cf_path_args="$cf_temp"
9433 cf_path_args="$cf_path_args $cf_temp"
9438 if test -n "$cf_path_prog" ; then
9440 echo "${as_me:-configure}:9440: testing defining path for ${cf_path_prog} ..." 1>&5
9442 cat >>confdefs.h <<EOF
9443 #define INFOCMP_PATH "$cf_path_prog"
9446 test -n "$cf_path_args" &&
9447 cat >>confdefs.h <<EOF
9448 #define INFOCMP_ARGS "$cf_path_args"
9453 if test -z "$INFOCMP"
9455 { echo "$as_me:9455: WARNING: no infocmp program found for fallbacks" >&5
9456 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
9461 test -z "$TIC" && FALLBACK_LIST=
9462 test -z "$INFOCMP" && FALLBACK_LIST=
9463 if test -z "$FALLBACK_LIST"
9465 { echo "$as_me:9465: WARNING: ignoring fallback option because tic/infocmp are not available" >&5
9466 echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;}
9471 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
9473 echo "$as_me:9473: checking if you want modern xterm or antique" >&5
9474 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
9476 # Check whether --with-xterm-new or --without-xterm-new was given.
9477 if test "${with_xterm_new+set}" = set; then
9478 withval="$with_xterm_new"
9479 with_xterm_new=$withval
9483 case "$with_xterm_new" in
9484 (no) with_xterm_new=xterm-old;;
9485 (*) with_xterm_new=xterm-new;;
9487 echo "$as_me:9487: result: $with_xterm_new" >&5
9488 echo "${ECHO_T}$with_xterm_new" >&6
9489 WHICH_XTERM=$with_xterm_new
9492 (*linux-gnu|*cygwin|*mingw32|*msys)
9500 echo "$as_me:9500: checking if xterm backspace sends BS or DEL" >&5
9501 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
9503 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
9504 if test "${with_xterm_kbs+set}" = set; then
9505 withval="$with_xterm_kbs"
9506 with_xterm_kbs=$withval
9510 case x$with_xterm_kbs in
9511 (xyes|xno|xBS|xbs|x8)
9518 with_xterm_kbs=$withval
9521 echo "$as_me:9521: result: $with_xterm_kbs" >&5
9522 echo "${ECHO_T}$with_xterm_kbs" >&6
9523 XTERM_KBS=$with_xterm_kbs
9525 if test "x$with_xterm_kbs" != "x$want_xterm_kbs"
9527 { echo "$as_me:9527: WARNING: expected --with-xterm-kbs=$want_xterm_kbs for $host_os" >&5
9528 echo "$as_me: WARNING: expected --with-xterm-kbs=$want_xterm_kbs for $host_os" >&2;}
9532 if test "$use_database" = no ; then
9533 TERMINFO="${datadir}/terminfo"
9537 echo "$as_me:9537: checking for list of terminfo directories" >&5
9538 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
9540 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
9541 if test "${with_terminfo_dirs+set}" = set; then
9542 withval="$with_terminfo_dirs"
9545 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
9547 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9549 for cf_src_path in $withval
9552 if test "x$prefix" != xNONE; then
9553 cf_path_syntax="$prefix"
9555 cf_path_syntax="$ac_default_prefix"
9558 case ".$cf_src_path" in
9563 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9565 (.\$\{*prefix\}*|.\$\{*dir\}*)
9566 eval cf_src_path="$cf_src_path"
9567 case ".$cf_src_path" in
9569 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9574 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9577 { { echo "$as_me:9577: error: expected a pathname, not \"$cf_src_path\"" >&5
9578 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9579 { (exit 1); exit 1; }; }
9583 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9584 cf_dst_path="${cf_dst_path}${cf_src_path}"
9588 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9589 # so we have to check/work around. We do prefer the result of "eval"...
9590 eval cf_dst_eval="$cf_dst_path"
9591 case "x$cf_dst_eval" in
9593 TERMINFO_DIRS=$cf_dst_path
9596 TERMINFO_DIRS="$cf_dst_eval"
9600 echo "$as_me:9600: result: $TERMINFO_DIRS" >&5
9601 echo "${ECHO_T}$TERMINFO_DIRS" >&6
9602 test -n "$TERMINFO_DIRS" &&
9603 cat >>confdefs.h <<EOF
9604 #define TERMINFO_DIRS "$TERMINFO_DIRS"
9607 case "x$TERMINFO" in
9609 { echo "$as_me:9609: WARNING: ignoring non-directory/file TERMINFO value" >&5
9610 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
9615 echo "$as_me:9615: checking for default terminfo directory" >&5
9616 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
9618 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
9619 if test "${with_default_terminfo_dir+set}" = set; then
9620 withval="$with_default_terminfo_dir"
9623 withval="${TERMINFO:-${datadir}/terminfo}"
9624 fi; if test -n "${datadir}/terminfo" ; then
9626 if test "x$prefix" != xNONE; then
9627 cf_path_syntax="$prefix"
9629 cf_path_syntax="$ac_default_prefix"
9637 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9639 (.\$\{*prefix\}*|.\$\{*dir\}*)
9640 eval withval="$withval"
9643 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9648 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9651 { { echo "$as_me:9651: error: expected a pathname, not \"$withval\"" >&5
9652 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
9653 { (exit 1); exit 1; }; }
9658 eval TERMINFO="$withval"
9660 echo "$as_me:9660: result: $TERMINFO" >&5
9661 echo "${ECHO_T}$TERMINFO" >&6
9663 cat >>confdefs.h <<EOF
9664 #define TERMINFO "$TERMINFO"
9669 ### use option --disable-big-core to make tic run on small machines
9670 ### We need 4Mb, check if we can allocate 50% more than that.
9671 echo "$as_me:9671: checking if big-core option selected" >&5
9672 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
9674 # Check whether --enable-big-core or --disable-big-core was given.
9675 if test "${enable_big_core+set}" = set; then
9676 enableval="$enable_big_core"
9677 with_big_core=$enableval
9679 if test "$cross_compiling" = yes; then
9682 cat >"conftest.$ac_ext" <<_ACEOF
9683 #line 9683 "configure"
9684 #include "confdefs.h"
9689 unsigned long n = 6000000L;
9690 char *s = malloc(n);
9693 ${cf_cv_main_return:-return}(s == 0);
9696 rm -f "conftest$ac_exeext"
9697 if { (eval echo "$as_me:9697: \"$ac_link\"") >&5
9698 (eval $ac_link) 2>&5
9700 echo "$as_me:9700: \$? = $ac_status" >&5
9701 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9702 { (eval echo "$as_me:9702: \"$ac_try\"") >&5
9705 echo "$as_me:9705: \$? = $ac_status" >&5
9706 (exit "$ac_status"); }; }; then
9709 echo "$as_me: program exited with status $ac_status" >&5
9710 echo "$as_me: failed program was:" >&5
9711 cat "conftest.$ac_ext" >&5
9714 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9717 echo "$as_me:9717: result: $with_big_core" >&5
9718 echo "${ECHO_T}$with_big_core" >&6
9719 test "x$with_big_core" = "xyes" &&
9720 cat >>confdefs.h <<\EOF
9721 #define HAVE_BIG_CORE 1
9724 ### ISO C only guarantees 512-char strings, we have tables which load faster
9725 ### when constructed using "big" strings. More than the C compiler, the awk
9726 ### program is a limit on most vendor UNIX systems. Check that we can build.
9727 echo "$as_me:9727: checking if big-strings option selected" >&5
9728 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
9730 # Check whether --enable-big-strings or --disable-big-strings was given.
9731 if test "${enable_big_strings+set}" = set; then
9732 enableval="$enable_big_strings"
9733 with_big_strings=$enableval
9738 eval with_big_strings=no
9741 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
9742 | $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
9743 eval with_big_strings=yes
9745 eval with_big_strings=no
9751 echo "$as_me:9751: result: $with_big_strings" >&5
9752 echo "${ECHO_T}$with_big_strings" >&6
9755 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
9757 ### use option --enable-termcap to compile in the termcap fallback support
9758 echo "$as_me:9758: checking if you want termcap-fallback support" >&5
9759 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
9761 # Check whether --enable-termcap or --disable-termcap was given.
9762 if test "${enable_termcap+set}" = set; then
9763 enableval="$enable_termcap"
9764 with_termcap=$enableval
9768 echo "$as_me:9768: result: $with_termcap" >&5
9769 echo "${ECHO_T}$with_termcap" >&6
9771 NCURSES_USE_TERMCAP=0
9772 if test "x$with_termcap" != "xyes" ; then
9773 if test "$use_database" = no ; then
9774 if test -z "$with_fallback" ; then
9775 { { echo "$as_me:9775: error: You have disabled the database w/o specifying fallbacks" >&5
9776 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
9777 { (exit 1); exit 1; }; }
9781 cat >>confdefs.h <<\EOF
9782 #define PURE_TERMINFO 1
9787 if test "$with_ticlib" != no ; then
9788 { { echo "$as_me:9788: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
9789 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
9790 { (exit 1); exit 1; }; }
9793 NCURSES_USE_TERMCAP=1
9794 echo "$as_me:9794: checking for list of termcap files" >&5
9795 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
9797 # Check whether --with-termpath or --without-termpath was given.
9798 if test "${with_termpath+set}" = set; then
9799 withval="$with_termpath"
9802 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
9804 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9806 for cf_src_path in $withval
9809 if test "x$prefix" != xNONE; then
9810 cf_path_syntax="$prefix"
9812 cf_path_syntax="$ac_default_prefix"
9815 case ".$cf_src_path" in
9820 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9822 (.\$\{*prefix\}*|.\$\{*dir\}*)
9823 eval cf_src_path="$cf_src_path"
9824 case ".$cf_src_path" in
9826 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9831 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9834 { { echo "$as_me:9834: error: expected a pathname, not \"$cf_src_path\"" >&5
9835 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9836 { (exit 1); exit 1; }; }
9840 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9841 cf_dst_path="${cf_dst_path}${cf_src_path}"
9845 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9846 # so we have to check/work around. We do prefer the result of "eval"...
9847 eval cf_dst_eval="$cf_dst_path"
9848 case "x$cf_dst_eval" in
9850 TERMPATH=$cf_dst_path
9853 TERMPATH="$cf_dst_eval"
9857 echo "$as_me:9857: result: $TERMPATH" >&5
9858 echo "${ECHO_T}$TERMPATH" >&6
9859 test -n "$TERMPATH" &&
9860 cat >>confdefs.h <<EOF
9861 #define TERMPATH "$TERMPATH"
9864 ### use option --enable-getcap to use a hacked getcap for reading termcaps
9865 echo "$as_me:9865: checking if fast termcap-loader is needed" >&5
9866 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
9868 # Check whether --enable-getcap or --disable-getcap was given.
9869 if test "${enable_getcap+set}" = set; then
9870 enableval="$enable_getcap"
9871 with_getcap=$enableval
9875 echo "$as_me:9875: result: $with_getcap" >&5
9876 echo "${ECHO_T}$with_getcap" >&6
9877 test "x$with_getcap" = "xyes" &&
9878 cat >>confdefs.h <<\EOF
9879 #define USE_GETCAP 1
9882 echo "$as_me:9882: checking if translated termcaps will be cached in ~/.terminfo" >&5
9883 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
9885 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
9886 if test "${enable_getcap_cache+set}" = set; then
9887 enableval="$enable_getcap_cache"
9888 with_getcap_cache=$enableval
9890 with_getcap_cache=no
9892 echo "$as_me:9892: result: $with_getcap_cache" >&5
9893 echo "${ECHO_T}$with_getcap_cache" >&6
9894 test "x$with_getcap_cache" = "xyes" &&
9895 cat >>confdefs.h <<\EOF
9896 #define USE_GETCAP_CACHE 1
9901 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
9902 echo "$as_me:9902: checking if ~/.terminfo is wanted" >&5
9903 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
9905 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
9906 if test "${enable_home_terminfo+set}" = set; then
9907 enableval="$enable_home_terminfo"
9908 with_home_terminfo=$enableval
9910 with_home_terminfo=yes
9912 echo "$as_me:9912: result: $with_home_terminfo" >&5
9913 echo "${ECHO_T}$with_home_terminfo" >&6
9914 test "x$with_home_terminfo" = "xyes" &&
9915 cat >>confdefs.h <<\EOF
9916 #define USE_HOME_TERMINFO 1
9919 echo "$as_me:9919: checking if you want to permit root to use ncurses environment variables" >&5
9920 echo $ECHO_N "checking if you want to permit root to use ncurses environment variables... $ECHO_C" >&6
9922 # Check whether --enable-root-environ or --disable-root-environ was given.
9923 if test "${enable_root_environ+set}" = set; then
9924 enableval="$enable_root_environ"
9925 with_root_environ=$enableval
9927 with_root_environ=yes
9929 echo "$as_me:9929: result: $with_root_environ" >&5
9930 echo "${ECHO_T}$with_root_environ" >&6
9931 test "x$with_root_environ" = xyes &&
9932 cat >>confdefs.h <<\EOF
9933 #define USE_ROOT_ENVIRON 1
9936 echo "$as_me:9936: checking if you want to permit setuid programs to access all files" >&5
9937 echo $ECHO_N "checking if you want to permit setuid programs to access all files... $ECHO_C" >&6
9939 # Check whether --enable-root-environ or --disable-root-environ was given.
9940 if test "${enable_root_environ+set}" = set; then
9941 enableval="$enable_root_environ"
9942 with_root_access=$enableval
9944 with_root_access=yes
9946 echo "$as_me:9946: result: $with_root_access" >&5
9947 echo "${ECHO_T}$with_root_access" >&6
9948 test "x$with_root_access" = xyes &&
9949 cat >>confdefs.h <<\EOF
9950 #define USE_ROOT_ACCESS 1
9953 ### Use option --enable-symlinks to make tic use symlinks, not hard links
9954 ### to reduce storage requirements for the terminfo database.
9960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9961 echo "$as_me:9961: checking for $ac_header" >&5
9962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9964 echo $ECHO_N "(cached) $ECHO_C" >&6
9966 cat >"conftest.$ac_ext" <<_ACEOF
9967 #line 9967 "configure"
9968 #include "confdefs.h"
9969 #include <$ac_header>
9971 if { (eval echo "$as_me:9971: \"$ac_cpp "conftest.$ac_ext"\"") >&5
9972 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
9974 $EGREP -v '^ *\+' conftest.er1 >conftest.err
9976 cat conftest.err >&5
9977 echo "$as_me:9977: \$? = $ac_status" >&5
9978 (exit "$ac_status"); } >/dev/null; then
9979 if test -s conftest.err; then
9980 ac_cpp_err=$ac_c_preproc_warn_flag
9987 if test -z "$ac_cpp_err"; then
9988 eval "$as_ac_Header=yes"
9990 echo "$as_me: failed program was:" >&5
9991 cat "conftest.$ac_ext" >&5
9992 eval "$as_ac_Header=no"
9994 rm -f conftest.err "conftest.$ac_ext"
9996 echo "$as_me:9996: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
9997 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
9998 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
9999 cat >>confdefs.h <<EOF
10000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10011 echo "$as_me:10011: checking for $ac_func" >&5
10012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10013 if eval "test \"\${$as_ac_var+set}\" = set"; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 cat >"conftest.$ac_ext" <<_ACEOF
10017 #line 10017 "configure"
10018 #include "confdefs.h"
10019 #define $ac_func autoconf_temporary
10020 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
10027 /* We use char because int might match the return type of a gcc2
10028 builtin and then its argument prototype would still apply. */
10029 char $ac_func (void);
10035 /* The GNU C library defines stubs for functions which it implements
10036 to always fail with ENOSYS. Some functions are actually named
10037 something starting with __ and the normal name is an alias. */
10038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10039 #error found stub for $ac_func
10042 return $ac_func ();
10047 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10048 if { (eval echo "$as_me:10048: \"$ac_link\"") >&5
10049 (eval $ac_link) 2>&5
10051 echo "$as_me:10051: \$? = $ac_status" >&5
10052 (exit "$ac_status"); } &&
10053 { ac_try='test -s "conftest$ac_exeext"'
10054 { (eval echo "$as_me:10054: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10057 echo "$as_me:10057: \$? = $ac_status" >&5
10058 (exit "$ac_status"); }; }; then
10059 eval "$as_ac_var=yes"
10061 echo "$as_me: failed program was:" >&5
10062 cat "conftest.$ac_ext" >&5
10063 eval "$as_ac_var=no"
10065 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10067 echo "$as_me:10067: result: `eval echo '${'"$as_ac_var"'}'`" >&5
10068 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
10069 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
10070 cat >>confdefs.h <<EOF
10071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10077 if test "$cross_compiling" = yes ; then
10083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10084 echo "$as_me:10084: checking for $ac_func" >&5
10085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10086 if eval "test \"\${$as_ac_var+set}\" = set"; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 cat >"conftest.$ac_ext" <<_ACEOF
10090 #line 10090 "configure"
10091 #include "confdefs.h"
10092 #define $ac_func autoconf_temporary
10093 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
10100 /* We use char because int might match the return type of a gcc2
10101 builtin and then its argument prototype would still apply. */
10102 char $ac_func (void);
10108 /* The GNU C library defines stubs for functions which it implements
10109 to always fail with ENOSYS. Some functions are actually named
10110 something starting with __ and the normal name is an alias. */
10111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10112 #error found stub for $ac_func
10115 return $ac_func ();
10120 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10121 if { (eval echo "$as_me:10121: \"$ac_link\"") >&5
10122 (eval $ac_link) 2>&5
10124 echo "$as_me:10124: \$? = $ac_status" >&5
10125 (exit "$ac_status"); } &&
10126 { ac_try='test -s "conftest$ac_exeext"'
10127 { (eval echo "$as_me:10127: \"$ac_try\"") >&5
10128 (eval $ac_try) 2>&5
10130 echo "$as_me:10130: \$? = $ac_status" >&5
10131 (exit "$ac_status"); }; }; then
10132 eval "$as_ac_var=yes"
10134 echo "$as_me: failed program was:" >&5
10135 cat "conftest.$ac_ext" >&5
10136 eval "$as_ac_var=no"
10138 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10140 echo "$as_me:10140: result: `eval echo '${'"$as_ac_var"'}'`" >&5
10141 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
10142 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
10143 cat >>confdefs.h <<EOF
10144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10151 echo "$as_me:10151: checking if link/symlink functions work" >&5
10152 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
10153 if test "${cf_cv_link_funcs+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10158 for cf_func in link symlink ; do
10159 if test "$cross_compiling" = yes; then
10161 eval 'ac_cv_func_'$cf_func'=error'
10163 cat >"conftest.$ac_ext" <<_ACEOF
10164 #line 10164 "configure"
10165 #include "confdefs.h"
10167 $ac_includes_default
10172 char *src = "conftest.tmp";
10173 char *dst = "conftest.chk";
10174 struct stat src_sb, dst_sb;
10175 FILE *fp = fopen(src, "w");
10176 if (fp == 0) { fail = 3; } else {
10177 fclose(fp); stat(src, &src_sb);
10178 if ($cf_func(src, dst) < 0) {
10180 } else if (stat(dst, &dst_sb) < 0) {
10183 long diff = (dst_sb.st_mtime - src_sb.st_mtime);
10184 if (diff < 0) diff = -diff;
10185 if (diff > 2) fail = 3;
10189 unlink(dst); unlink(src);
10191 remove(dst); remove(src);
10193 ${cf_cv_main_return:-return} (fail);
10197 rm -f "conftest$ac_exeext"
10198 if { (eval echo "$as_me:10198: \"$ac_link\"") >&5
10199 (eval $ac_link) 2>&5
10201 echo "$as_me:10201: \$? = $ac_status" >&5
10202 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
10203 { (eval echo "$as_me:10203: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:10206: \$? = $ac_status" >&5
10207 (exit "$ac_status"); }; }; then
10209 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
10210 eval 'ac_cv_func_'$cf_func'=yes'
10212 echo "$as_me: program exited with status $ac_status" >&5
10213 echo "$as_me: failed program was:" >&5
10214 cat "conftest.$ac_ext" >&5
10216 eval 'ac_cv_func_'$cf_func'=no'
10218 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
10221 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
10224 echo "$as_me:10224: result: $cf_cv_link_funcs" >&5
10225 echo "${ECHO_T}$cf_cv_link_funcs" >&6
10226 test "$ac_cv_func_link" = yes &&
10227 cat >>confdefs.h <<\EOF
10228 #define HAVE_LINK 1
10231 test "$ac_cv_func_symlink" = yes &&
10232 cat >>confdefs.h <<\EOF
10233 #define HAVE_SYMLINK 1
10241 # soft links (symbolic links) are useful for some systems where hard links do
10242 # not work, or to make it simpler to copy terminfo trees around.
10243 if test "x$ac_cv_func_symlink" = xyes ; then
10244 echo "$as_me:10244: checking if tic should use symbolic links" >&5
10245 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
10247 # Check whether --enable-symlinks or --disable-symlinks was given.
10248 if test "${enable_symlinks+set}" = set; then
10249 enableval="$enable_symlinks"
10250 with_symlinks=$enableval
10254 echo "$as_me:10254: result: $with_symlinks" >&5
10255 echo "${ECHO_T}$with_symlinks" >&6
10258 # If we have hard links and did not choose to use soft links instead, there is
10259 # no reason to make this choice optional - use the hard links.
10260 if test "$with_symlinks" = no ; then
10261 echo "$as_me:10261: checking if tic should use hard links" >&5
10262 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
10263 if test "x$ac_cv_func_link" = xyes ; then
10268 echo "$as_me:10268: result: $with_links" >&5
10269 echo "${ECHO_T}$with_links" >&6
10272 test "x$with_links" = xyes &&
10273 cat >>confdefs.h <<\EOF
10274 #define USE_LINKS 1
10277 test "x$with_symlinks" = xyes &&
10278 cat >>confdefs.h <<\EOF
10279 #define USE_SYMLINKS 1
10282 ### use option --enable-broken-linker to force on use of broken-linker support
10284 echo "$as_me:10284: checking if you want broken-linker support code" >&5
10285 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
10287 # Check whether --enable-broken_linker or --disable-broken_linker was given.
10288 if test "${enable_broken_linker+set}" = set; then
10289 enableval="$enable_broken_linker"
10290 with_broken_linker=$enableval
10292 with_broken_linker=no
10294 echo "$as_me:10294: result: $with_broken_linker" >&5
10295 echo "${ECHO_T}$with_broken_linker" >&6
10297 : "${BROKEN_LINKER:=0}"
10298 if test "x$with_broken_linker" = xyes ; then
10300 cat >>confdefs.h <<\EOF
10301 #define BROKEN_LINKER 1
10307 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
10308 echo "$as_me:10308: checking if tputs should process BSD-style prefix padding" >&5
10309 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
10311 # Check whether --enable-bsdpad or --disable-bsdpad was given.
10312 if test "${enable_bsdpad+set}" = set; then
10313 enableval="$enable_bsdpad"
10314 with_bsdpad=$enableval
10318 echo "$as_me:10318: result: $with_bsdpad" >&5
10319 echo "${ECHO_T}$with_bsdpad" >&6
10320 test "x$with_bsdpad" = xyes &&
10321 cat >>confdefs.h <<\EOF
10322 #define BSD_TPUTS 1
10325 ### use option --enable-widec to turn on use of wide-character support
10326 NCURSES_CH_T=chtype
10330 NCURSES_MBSTATE_T=0
10334 # Check to define _XOPEN_SOURCE "automatically"
10335 CPPFLAGS_before_XOPEN="$CPPFLAGS"
10337 echo "$as_me:10337: checking if the POSIX test-macros are already defined" >&5
10338 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
10339 if test "${cf_cv_posix_visible+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 cat >"conftest.$ac_ext" <<_ACEOF
10344 #line 10344 "configure"
10345 #include "confdefs.h"
10351 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
10352 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
10353 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
10354 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
10355 #error conflicting symbols found
10362 rm -f "conftest.$ac_objext"
10363 if { (eval echo "$as_me:10363: \"$ac_compile\"") >&5
10364 (eval $ac_compile) 2>&5
10366 echo "$as_me:10366: \$? = $ac_status" >&5
10367 (exit "$ac_status"); } &&
10368 { ac_try='test -s "conftest.$ac_objext"'
10369 { (eval echo "$as_me:10369: \"$ac_try\"") >&5
10370 (eval $ac_try) 2>&5
10372 echo "$as_me:10372: \$? = $ac_status" >&5
10373 (exit "$ac_status"); }; }; then
10374 cf_cv_posix_visible=no
10376 echo "$as_me: failed program was:" >&5
10377 cat "conftest.$ac_ext" >&5
10378 cf_cv_posix_visible=yes
10380 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10383 echo "$as_me:10383: result: $cf_cv_posix_visible" >&5
10384 echo "${ECHO_T}$cf_cv_posix_visible" >&6
10386 if test "$cf_cv_posix_visible" = no; then
10388 cf_XOPEN_SOURCE=600
10389 cf_POSIX_C_SOURCE=199506L
10394 cf_xopen_source="-D_ALL_SOURCE"
10397 cf_xopen_source="-D_APPLE_C_SOURCE"
10400 cf_xopen_source="-D_DARWIN_C_SOURCE"
10403 (freebsd*|dragonfly*|midnightbsd*)
10404 # 5.x headers associate
10405 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
10406 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
10407 cf_POSIX_C_SOURCE=200112L
10408 cf_XOPEN_SOURCE=600
10409 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10412 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
10415 cf_xopen_source="-D_HPUX_SOURCE"
10418 cf_xopen_source="-D_SGI_SOURCE"
10421 (linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys)
10423 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
10425 echo "$as_me:10425: checking if this is the GNU C library" >&5
10426 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
10427 if test "${cf_cv_gnu_library+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 cat >"conftest.$ac_ext" <<_ACEOF
10432 #line 10432 "configure"
10433 #include "confdefs.h"
10434 #include <sys/types.h>
10439 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
10441 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
10444 # error not GNU C library
10450 rm -f "conftest.$ac_objext"
10451 if { (eval echo "$as_me:10451: \"$ac_compile\"") >&5
10452 (eval $ac_compile) 2>&5
10454 echo "$as_me:10454: \$? = $ac_status" >&5
10455 (exit "$ac_status"); } &&
10456 { ac_try='test -s "conftest.$ac_objext"'
10457 { (eval echo "$as_me:10457: \"$ac_try\"") >&5
10458 (eval $ac_try) 2>&5
10460 echo "$as_me:10460: \$? = $ac_status" >&5
10461 (exit "$ac_status"); }; }; then
10462 cf_cv_gnu_library=yes
10464 echo "$as_me: failed program was:" >&5
10465 cat "conftest.$ac_ext" >&5
10466 cf_cv_gnu_library=no
10468 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10471 echo "$as_me:10471: result: $cf_cv_gnu_library" >&5
10472 echo "${ECHO_T}$cf_cv_gnu_library" >&6
10474 if test x$cf_cv_gnu_library = xyes; then
10476 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
10477 # was changed to help a little. newlib incorporated the change about 4
10479 echo "$as_me:10479: checking if _DEFAULT_SOURCE can be used as a basis" >&5
10480 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
10481 if test "${cf_cv_gnu_library_219+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 cf_save="$CPPFLAGS"
10487 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10488 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10490 cat >"conftest.$ac_ext" <<_ACEOF
10491 #line 10491 "configure"
10492 #include "confdefs.h"
10493 #include <sys/types.h>
10498 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
10500 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
10503 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
10509 rm -f "conftest.$ac_objext"
10510 if { (eval echo "$as_me:10510: \"$ac_compile\"") >&5
10511 (eval $ac_compile) 2>&5
10513 echo "$as_me:10513: \$? = $ac_status" >&5
10514 (exit "$ac_status"); } &&
10515 { ac_try='test -s "conftest.$ac_objext"'
10516 { (eval echo "$as_me:10516: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10519 echo "$as_me:10519: \$? = $ac_status" >&5
10520 (exit "$ac_status"); }; }; then
10521 cf_cv_gnu_library_219=yes
10523 echo "$as_me: failed program was:" >&5
10524 cat "conftest.$ac_ext" >&5
10525 cf_cv_gnu_library_219=no
10527 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10528 CPPFLAGS="$cf_save"
10531 echo "$as_me:10531: result: $cf_cv_gnu_library_219" >&5
10532 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
10534 if test "x$cf_cv_gnu_library_219" = xyes; then
10535 cf_save="$CPPFLAGS"
10536 echo "$as_me:10536: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
10537 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
10538 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 cf_new_extra_cppflags=
10547 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
10549 case "$cf_fix_cppflags" in
10551 case "$cf_add_cflags" in
10552 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10553 case "$cf_add_cflags" in
10555 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10557 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10558 && test -z "${cf_tst_cflags}" \
10559 && cf_fix_cppflags=yes
10561 if test "$cf_fix_cppflags" = yes ; then
10563 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10564 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10567 elif test "${cf_tst_cflags}" = "\"'" ; then
10569 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10570 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10576 case "$CPPFLAGS" in
10580 case "$cf_add_cflags" in
10582 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10584 CPPFLAGS=`echo "$CPPFLAGS" | \
10585 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10586 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10591 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10592 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10599 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10600 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10607 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10608 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10610 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10612 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10613 && test -z "${cf_tst_cflags}" \
10614 && cf_fix_cppflags=no
10619 if test -n "$cf_new_cflags" ; then
10621 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10622 CFLAGS="${CFLAGS}$cf_new_cflags"
10626 if test -n "$cf_new_cppflags" ; then
10628 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10629 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10633 if test -n "$cf_new_extra_cppflags" ; then
10635 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10636 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10640 cat >"conftest.$ac_ext" <<_ACEOF
10641 #line 10641 "configure"
10642 #include "confdefs.h"
10644 #include <limits.h>
10645 #include <sys/types.h>
10651 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
10654 # error GNU C library is too old
10660 rm -f "conftest.$ac_objext"
10661 if { (eval echo "$as_me:10661: \"$ac_compile\"") >&5
10662 (eval $ac_compile) 2>&5
10664 echo "$as_me:10664: \$? = $ac_status" >&5
10665 (exit "$ac_status"); } &&
10666 { ac_try='test -s "conftest.$ac_objext"'
10667 { (eval echo "$as_me:10667: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10670 echo "$as_me:10670: \$? = $ac_status" >&5
10671 (exit "$ac_status"); }; }; then
10672 cf_cv_gnu_dftsrc_219=yes
10674 echo "$as_me: failed program was:" >&5
10675 cat "conftest.$ac_ext" >&5
10676 cf_cv_gnu_dftsrc_219=no
10678 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10681 echo "$as_me:10681: result: $cf_cv_gnu_dftsrc_219" >&5
10682 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
10683 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
10685 cf_cv_gnu_dftsrc_219=maybe
10688 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
10690 echo "$as_me:10690: checking if we must define _GNU_SOURCE" >&5
10691 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
10692 if test "${cf_cv_gnu_source+set}" = set; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 cat >"conftest.$ac_ext" <<_ACEOF
10697 #line 10697 "configure"
10698 #include "confdefs.h"
10699 #include <sys/types.h>
10704 #ifndef _XOPEN_SOURCE
10705 #error expected _XOPEN_SOURCE to be defined
10711 rm -f "conftest.$ac_objext"
10712 if { (eval echo "$as_me:10712: \"$ac_compile\"") >&5
10713 (eval $ac_compile) 2>&5
10715 echo "$as_me:10715: \$? = $ac_status" >&5
10716 (exit "$ac_status"); } &&
10717 { ac_try='test -s "conftest.$ac_objext"'
10718 { (eval echo "$as_me:10718: \"$ac_try\"") >&5
10719 (eval $ac_try) 2>&5
10721 echo "$as_me:10721: \$? = $ac_status" >&5
10722 (exit "$ac_status"); }; }; then
10723 cf_cv_gnu_source=no
10725 echo "$as_me: failed program was:" >&5
10726 cat "conftest.$ac_ext" >&5
10727 cf_save="$CPPFLAGS"
10732 cf_new_extra_cppflags=
10734 for cf_add_cflags in -D_GNU_SOURCE
10736 case "$cf_fix_cppflags" in
10738 case "$cf_add_cflags" in
10739 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10740 case "$cf_add_cflags" in
10742 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10744 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10745 && test -z "${cf_tst_cflags}" \
10746 && cf_fix_cppflags=yes
10748 if test "$cf_fix_cppflags" = yes ; then
10750 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10751 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10754 elif test "${cf_tst_cflags}" = "\"'" ; then
10756 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10757 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10763 case "$CPPFLAGS" in
10767 case "$cf_add_cflags" in
10769 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10771 CPPFLAGS=`echo "$CPPFLAGS" | \
10772 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10773 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10778 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10779 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10786 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10787 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10794 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10795 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10797 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10799 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10800 && test -z "${cf_tst_cflags}" \
10801 && cf_fix_cppflags=no
10806 if test -n "$cf_new_cflags" ; then
10808 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10809 CFLAGS="${CFLAGS}$cf_new_cflags"
10813 if test -n "$cf_new_cppflags" ; then
10815 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10816 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10820 if test -n "$cf_new_extra_cppflags" ; then
10822 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10823 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10827 cat >"conftest.$ac_ext" <<_ACEOF
10828 #line 10828 "configure"
10829 #include "confdefs.h"
10830 #include <sys/types.h>
10835 #ifdef _XOPEN_SOURCE
10836 #error expected _XOPEN_SOURCE to be undefined
10842 rm -f "conftest.$ac_objext"
10843 if { (eval echo "$as_me:10843: \"$ac_compile\"") >&5
10844 (eval $ac_compile) 2>&5
10846 echo "$as_me:10846: \$? = $ac_status" >&5
10847 (exit "$ac_status"); } &&
10848 { ac_try='test -s "conftest.$ac_objext"'
10849 { (eval echo "$as_me:10849: \"$ac_try\"") >&5
10850 (eval $ac_try) 2>&5
10852 echo "$as_me:10852: \$? = $ac_status" >&5
10853 (exit "$ac_status"); }; }; then
10854 cf_cv_gnu_source=no
10856 echo "$as_me: failed program was:" >&5
10857 cat "conftest.$ac_ext" >&5
10858 cf_cv_gnu_source=yes
10860 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10861 CPPFLAGS="$cf_save"
10864 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10867 echo "$as_me:10867: result: $cf_cv_gnu_source" >&5
10868 echo "${ECHO_T}$cf_cv_gnu_source" >&6
10870 if test "$cf_cv_gnu_source" = yes
10872 echo "$as_me:10872: checking if we should also define _DEFAULT_SOURCE" >&5
10873 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
10874 if test "${cf_cv_default_source+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10879 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
10881 cat >"conftest.$ac_ext" <<_ACEOF
10882 #line 10882 "configure"
10883 #include "confdefs.h"
10884 #include <sys/types.h>
10889 #ifdef _DEFAULT_SOURCE
10890 #error expected _DEFAULT_SOURCE to be undefined
10896 rm -f "conftest.$ac_objext"
10897 if { (eval echo "$as_me:10897: \"$ac_compile\"") >&5
10898 (eval $ac_compile) 2>&5
10900 echo "$as_me:10900: \$? = $ac_status" >&5
10901 (exit "$ac_status"); } &&
10902 { ac_try='test -s "conftest.$ac_objext"'
10903 { (eval echo "$as_me:10903: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10906 echo "$as_me:10906: \$? = $ac_status" >&5
10907 (exit "$ac_status"); }; }; then
10908 cf_cv_default_source=no
10910 echo "$as_me: failed program was:" >&5
10911 cat "conftest.$ac_ext" >&5
10912 cf_cv_default_source=yes
10914 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10917 echo "$as_me:10917: result: $cf_cv_default_source" >&5
10918 echo "${ECHO_T}$cf_cv_default_source" >&6
10919 if test "$cf_cv_default_source" = yes
10922 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10923 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10933 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
10936 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
10939 if test "$cf_cv_posix_visible" = no; then
10941 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10943 cf_save_CFLAGS="$CFLAGS"
10944 cf_save_CPPFLAGS="$CPPFLAGS"
10946 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10947 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10948 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10950 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10951 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10952 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10954 echo "$as_me:10954: checking if we should define _POSIX_C_SOURCE" >&5
10955 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10956 if test "${cf_cv_posix_c_source+set}" = set; then
10957 echo $ECHO_N "(cached) $ECHO_C" >&6
10960 echo "${as_me:-configure}:10960: testing if the symbol is already defined go no further ..." 1>&5
10962 cat >"conftest.$ac_ext" <<_ACEOF
10963 #line 10963 "configure"
10964 #include "confdefs.h"
10965 #include <sys/types.h>
10970 #ifndef _POSIX_C_SOURCE
10971 #error _POSIX_C_SOURCE is not defined
10977 rm -f "conftest.$ac_objext"
10978 if { (eval echo "$as_me:10978: \"$ac_compile\"") >&5
10979 (eval $ac_compile) 2>&5
10981 echo "$as_me:10981: \$? = $ac_status" >&5
10982 (exit "$ac_status"); } &&
10983 { ac_try='test -s "conftest.$ac_objext"'
10984 { (eval echo "$as_me:10984: \"$ac_try\"") >&5
10985 (eval $ac_try) 2>&5
10987 echo "$as_me:10987: \$? = $ac_status" >&5
10988 (exit "$ac_status"); }; }; then
10989 cf_cv_posix_c_source=no
10991 echo "$as_me: failed program was:" >&5
10992 cat "conftest.$ac_ext" >&5
10993 cf_want_posix_source=no
10994 case .$cf_POSIX_C_SOURCE in
10996 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10999 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11000 cf_want_posix_source=yes
11003 cf_want_posix_source=yes
11006 if test "$cf_want_posix_source" = yes ; then
11007 cat >"conftest.$ac_ext" <<_ACEOF
11008 #line 11008 "configure"
11009 #include "confdefs.h"
11010 #include <sys/types.h>
11015 #ifdef _POSIX_SOURCE
11016 #error _POSIX_SOURCE is defined
11022 rm -f "conftest.$ac_objext"
11023 if { (eval echo "$as_me:11023: \"$ac_compile\"") >&5
11024 (eval $ac_compile) 2>&5
11026 echo "$as_me:11026: \$? = $ac_status" >&5
11027 (exit "$ac_status"); } &&
11028 { ac_try='test -s "conftest.$ac_objext"'
11029 { (eval echo "$as_me:11029: \"$ac_try\"") >&5
11030 (eval $ac_try) 2>&5
11032 echo "$as_me:11032: \$? = $ac_status" >&5
11033 (exit "$ac_status"); }; }; then
11036 echo "$as_me: failed program was:" >&5
11037 cat "conftest.$ac_ext" >&5
11038 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11040 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11043 echo "${as_me:-configure}:11043: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11045 CFLAGS="$cf_trim_CFLAGS"
11046 CPPFLAGS="$cf_trim_CPPFLAGS"
11048 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11049 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11051 echo "${as_me:-configure}:11051: testing if the second compile does not leave our definition intact error ..." 1>&5
11053 cat >"conftest.$ac_ext" <<_ACEOF
11054 #line 11054 "configure"
11055 #include "confdefs.h"
11056 #include <sys/types.h>
11061 #ifndef _POSIX_C_SOURCE
11062 #error _POSIX_C_SOURCE is not defined
11068 rm -f "conftest.$ac_objext"
11069 if { (eval echo "$as_me:11069: \"$ac_compile\"") >&5
11070 (eval $ac_compile) 2>&5
11072 echo "$as_me:11072: \$? = $ac_status" >&5
11073 (exit "$ac_status"); } &&
11074 { ac_try='test -s "conftest.$ac_objext"'
11075 { (eval echo "$as_me:11075: \"$ac_try\"") >&5
11076 (eval $ac_try) 2>&5
11078 echo "$as_me:11078: \$? = $ac_status" >&5
11079 (exit "$ac_status"); }; }; then
11082 echo "$as_me: failed program was:" >&5
11083 cat "conftest.$ac_ext" >&5
11084 cf_cv_posix_c_source=no
11086 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11087 CFLAGS="$cf_save_CFLAGS"
11088 CPPFLAGS="$cf_save_CPPFLAGS"
11091 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11094 echo "$as_me:11094: result: $cf_cv_posix_c_source" >&5
11095 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11097 if test "$cf_cv_posix_c_source" != no ; then
11098 CFLAGS="$cf_trim_CFLAGS"
11099 CPPFLAGS="$cf_trim_CPPFLAGS"
11104 cf_new_extra_cppflags=
11106 for cf_add_cflags in $cf_cv_posix_c_source
11108 case "$cf_fix_cppflags" in
11110 case "$cf_add_cflags" in
11111 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11112 case "$cf_add_cflags" in
11114 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11116 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11117 && test -z "${cf_tst_cflags}" \
11118 && cf_fix_cppflags=yes
11120 if test "$cf_fix_cppflags" = yes ; then
11122 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11123 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11126 elif test "${cf_tst_cflags}" = "\"'" ; then
11128 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11129 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11135 case "$CPPFLAGS" in
11139 case "$cf_add_cflags" in
11141 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11143 CPPFLAGS=`echo "$CPPFLAGS" | \
11144 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11145 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11150 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11151 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11158 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11159 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11166 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11167 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11169 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11171 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11172 && test -z "${cf_tst_cflags}" \
11173 && cf_fix_cppflags=no
11178 if test -n "$cf_new_cflags" ; then
11180 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11181 CFLAGS="${CFLAGS}$cf_new_cflags"
11185 if test -n "$cf_new_cppflags" ; then
11187 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11188 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11192 if test -n "$cf_new_extra_cppflags" ; then
11194 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11195 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11201 fi # cf_cv_posix_visible
11205 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
11208 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
11209 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
11210 # Abusing the conformance level is a workaround.
11211 { echo "$as_me:11211: WARNING: this system does not provide usable locale support" >&5
11212 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
11213 cf_xopen_source="-D_BSD_SOURCE"
11214 cf_XOPEN_SOURCE=700
11217 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
11218 cf_xopen_source="-D_BSD_SOURCE"
11219 cf_XOPEN_SOURCE=600
11222 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
11225 cf_xopen_source="-D_OSF_SOURCE"
11228 cf_xopen_source="-D_QNX_SOURCE"
11231 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
11234 cf_xopen_source="-D__EXTENSIONS__"
11235 cf_cv_xopen_source=broken
11237 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
11243 echo "$as_me:11243: checking if we should define _XOPEN_SOURCE" >&5
11244 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11245 if test "${cf_cv_xopen_source+set}" = set; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11249 cat >"conftest.$ac_ext" <<_ACEOF
11250 #line 11250 "configure"
11251 #include "confdefs.h"
11253 $ac_includes_default
11259 #ifndef _XOPEN_SOURCE
11260 #error _XOPEN_SOURCE is not defined
11267 rm -f "conftest.$ac_objext"
11268 if { (eval echo "$as_me:11268: \"$ac_compile\"") >&5
11269 (eval $ac_compile) 2>&5
11271 echo "$as_me:11271: \$? = $ac_status" >&5
11272 (exit "$ac_status"); } &&
11273 { ac_try='test -s "conftest.$ac_objext"'
11274 { (eval echo "$as_me:11274: \"$ac_try\"") >&5
11275 (eval $ac_try) 2>&5
11277 echo "$as_me:11277: \$? = $ac_status" >&5
11278 (exit "$ac_status"); }; }; then
11279 cf_cv_xopen_source=no
11281 echo "$as_me: failed program was:" >&5
11282 cat "conftest.$ac_ext" >&5
11283 cf_save="$CPPFLAGS"
11285 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11286 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11288 cat >"conftest.$ac_ext" <<_ACEOF
11289 #line 11289 "configure"
11290 #include "confdefs.h"
11292 $ac_includes_default
11298 #ifndef _XOPEN_SOURCE
11299 #error _XOPEN_SOURCE is not defined
11306 rm -f "conftest.$ac_objext"
11307 if { (eval echo "$as_me:11307: \"$ac_compile\"") >&5
11308 (eval $ac_compile) 2>&5
11310 echo "$as_me:11310: \$? = $ac_status" >&5
11311 (exit "$ac_status"); } &&
11312 { ac_try='test -s "conftest.$ac_objext"'
11313 { (eval echo "$as_me:11313: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11316 echo "$as_me:11316: \$? = $ac_status" >&5
11317 (exit "$ac_status"); }; }; then
11318 cf_cv_xopen_source=no
11320 echo "$as_me: failed program was:" >&5
11321 cat "conftest.$ac_ext" >&5
11322 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11324 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11325 CPPFLAGS="$cf_save"
11328 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11331 echo "$as_me:11331: result: $cf_cv_xopen_source" >&5
11332 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11334 if test "$cf_cv_xopen_source" != no ; then
11336 CFLAGS=`echo "$CFLAGS" | \
11337 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11338 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11340 CPPFLAGS=`echo "$CPPFLAGS" | \
11341 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11342 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11344 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11346 for cf_add_cflags in $cf_temp_xopen_source
11348 case "x$cf_add_cflags" in
11351 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11354 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11355 test "$CFLAGS" != "$cf_old_cflag" || break
11357 CFLAGS="$cf_old_cflag"
11360 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11363 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11364 test "$CPPFLAGS" != "$cf_old_cflag" || break
11366 CPPFLAGS="$cf_old_cflag"
11375 cf_new_extra_cppflags=
11377 for cf_add_cflags in $cf_add_cflags
11379 case "$cf_fix_cppflags" in
11381 case "$cf_add_cflags" in
11382 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11383 case "$cf_add_cflags" in
11385 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11387 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11388 && test -z "${cf_tst_cflags}" \
11389 && cf_fix_cppflags=yes
11391 if test "$cf_fix_cppflags" = yes ; then
11393 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11394 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11397 elif test "${cf_tst_cflags}" = "\"'" ; then
11399 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11400 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11406 case "$CPPFLAGS" in
11410 case "$cf_add_cflags" in
11412 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11414 CPPFLAGS=`echo "$CPPFLAGS" | \
11415 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11416 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11421 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11422 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11429 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11430 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11437 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11438 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11440 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11442 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11443 && test -z "${cf_tst_cflags}" \
11444 && cf_fix_cppflags=no
11449 if test -n "$cf_new_cflags" ; then
11451 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11452 CFLAGS="${CFLAGS}$cf_new_cflags"
11456 if test -n "$cf_new_cppflags" ; then
11458 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11459 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11463 if test -n "$cf_new_extra_cppflags" ; then
11465 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11466 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11474 cf_save_xopen_cppflags="$CPPFLAGS"
11476 if test "$cf_cv_posix_visible" = no; then
11478 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
11480 cf_save_CFLAGS="$CFLAGS"
11481 cf_save_CPPFLAGS="$CPPFLAGS"
11483 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
11484 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11485 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11487 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
11488 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11489 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11491 echo "$as_me:11491: checking if we should define _POSIX_C_SOURCE" >&5
11492 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
11493 if test "${cf_cv_posix_c_source+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 echo "${as_me:-configure}:11497: testing if the symbol is already defined go no further ..." 1>&5
11499 cat >"conftest.$ac_ext" <<_ACEOF
11500 #line 11500 "configure"
11501 #include "confdefs.h"
11502 #include <sys/types.h>
11507 #ifndef _POSIX_C_SOURCE
11508 #error _POSIX_C_SOURCE is not defined
11514 rm -f "conftest.$ac_objext"
11515 if { (eval echo "$as_me:11515: \"$ac_compile\"") >&5
11516 (eval $ac_compile) 2>&5
11518 echo "$as_me:11518: \$? = $ac_status" >&5
11519 (exit "$ac_status"); } &&
11520 { ac_try='test -s "conftest.$ac_objext"'
11521 { (eval echo "$as_me:11521: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11524 echo "$as_me:11524: \$? = $ac_status" >&5
11525 (exit "$ac_status"); }; }; then
11526 cf_cv_posix_c_source=no
11528 echo "$as_me: failed program was:" >&5
11529 cat "conftest.$ac_ext" >&5
11530 cf_want_posix_source=no
11531 case .$cf_POSIX_C_SOURCE in
11533 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11536 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11537 cf_want_posix_source=yes
11540 cf_want_posix_source=yes
11543 if test "$cf_want_posix_source" = yes ; then
11544 cat >"conftest.$ac_ext" <<_ACEOF
11545 #line 11545 "configure"
11546 #include "confdefs.h"
11547 #include <sys/types.h>
11552 #ifdef _POSIX_SOURCE
11553 #error _POSIX_SOURCE is defined
11559 rm -f "conftest.$ac_objext"
11560 if { (eval echo "$as_me:11560: \"$ac_compile\"") >&5
11561 (eval $ac_compile) 2>&5
11563 echo "$as_me:11563: \$? = $ac_status" >&5
11564 (exit "$ac_status"); } &&
11565 { ac_try='test -s "conftest.$ac_objext"'
11566 { (eval echo "$as_me:11566: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11569 echo "$as_me:11569: \$? = $ac_status" >&5
11570 (exit "$ac_status"); }; }; then
11573 echo "$as_me: failed program was:" >&5
11574 cat "conftest.$ac_ext" >&5
11575 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11577 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11580 echo "${as_me:-configure}:11580: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11582 CFLAGS="$cf_trim_CFLAGS"
11583 CPPFLAGS="$cf_trim_CPPFLAGS"
11585 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11586 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11588 echo "${as_me:-configure}:11588: testing if the second compile does not leave our definition intact error ..." 1>&5
11590 cat >"conftest.$ac_ext" <<_ACEOF
11591 #line 11591 "configure"
11592 #include "confdefs.h"
11593 #include <sys/types.h>
11598 #ifndef _POSIX_C_SOURCE
11599 #error _POSIX_C_SOURCE is not defined
11605 rm -f "conftest.$ac_objext"
11606 if { (eval echo "$as_me:11606: \"$ac_compile\"") >&5
11607 (eval $ac_compile) 2>&5
11609 echo "$as_me:11609: \$? = $ac_status" >&5
11610 (exit "$ac_status"); } &&
11611 { ac_try='test -s "conftest.$ac_objext"'
11612 { (eval echo "$as_me:11612: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11615 echo "$as_me:11615: \$? = $ac_status" >&5
11616 (exit "$ac_status"); }; }; then
11619 echo "$as_me: failed program was:" >&5
11620 cat "conftest.$ac_ext" >&5
11621 cf_cv_posix_c_source=no
11623 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11624 CFLAGS="$cf_save_CFLAGS"
11625 CPPFLAGS="$cf_save_CPPFLAGS"
11628 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11631 echo "$as_me:11631: result: $cf_cv_posix_c_source" >&5
11632 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11634 if test "$cf_cv_posix_c_source" != no ; then
11635 CFLAGS="$cf_trim_CFLAGS"
11636 CPPFLAGS="$cf_trim_CPPFLAGS"
11641 cf_new_extra_cppflags=
11643 for cf_add_cflags in $cf_cv_posix_c_source
11645 case "$cf_fix_cppflags" in
11647 case "$cf_add_cflags" in
11648 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11649 case "$cf_add_cflags" in
11651 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11653 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11654 && test -z "${cf_tst_cflags}" \
11655 && cf_fix_cppflags=yes
11657 if test "$cf_fix_cppflags" = yes ; then
11659 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11660 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11663 elif test "${cf_tst_cflags}" = "\"'" ; then
11665 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11666 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11672 case "$CPPFLAGS" in
11676 case "$cf_add_cflags" in
11678 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11680 CPPFLAGS=`echo "$CPPFLAGS" | \
11681 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11682 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11687 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11688 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11695 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11696 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11703 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11704 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11706 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11708 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11709 && test -z "${cf_tst_cflags}" \
11710 && cf_fix_cppflags=no
11715 if test -n "$cf_new_cflags" ; then
11717 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11718 CFLAGS="${CFLAGS}$cf_new_cflags"
11722 if test -n "$cf_new_cppflags" ; then
11724 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11725 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11729 if test -n "$cf_new_extra_cppflags" ; then
11731 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11732 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11738 fi # cf_cv_posix_visible
11740 # Some of these niche implementations use copy/paste, double-check...
11741 if test "$cf_cv_xopen_source" != no ; then
11742 test -n "$verbose" && echo " checking if _POSIX_C_SOURCE inteferes" 1>&6
11744 echo "${as_me:-configure}:11744: testing checking if _POSIX_C_SOURCE inteferes ..." 1>&5
11746 cat >"conftest.$ac_ext" <<_ACEOF
11747 #line 11747 "configure"
11748 #include "confdefs.h"
11750 $ac_includes_default
11756 #ifndef _XOPEN_SOURCE
11757 #error _XOPEN_SOURCE is not defined
11764 rm -f "conftest.$ac_objext"
11765 if { (eval echo "$as_me:11765: \"$ac_compile\"") >&5
11766 (eval $ac_compile) 2>&5
11768 echo "$as_me:11768: \$? = $ac_status" >&5
11769 (exit "$ac_status"); } &&
11770 { ac_try='test -s "conftest.$ac_objext"'
11771 { (eval echo "$as_me:11771: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11774 echo "$as_me:11774: \$? = $ac_status" >&5
11775 (exit "$ac_status"); }; }; then
11778 echo "$as_me: failed program was:" >&5
11779 cat "conftest.$ac_ext" >&5
11781 { echo "$as_me:11781: WARNING: _POSIX_C_SOURCE definition is not usable" >&5
11782 echo "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;}
11783 CPPFLAGS="$cf_save_xopen_cppflags"
11785 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11790 if test -n "$cf_xopen_source" ; then
11792 for cf_add_cflags in $cf_xopen_source
11794 case "x$cf_add_cflags" in
11797 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11800 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11801 test "$CFLAGS" != "$cf_old_cflag" || break
11802 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
11804 echo "${as_me:-configure}:11804: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
11806 CFLAGS="$cf_old_cflag"
11809 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11812 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11813 test "$CPPFLAGS" != "$cf_old_cflag" || break
11814 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
11816 echo "${as_me:-configure}:11816: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
11818 CPPFLAGS="$cf_old_cflag"
11827 cf_new_extra_cppflags=
11829 for cf_add_cflags in $cf_add_cflags
11831 case "$cf_fix_cppflags" in
11833 case "$cf_add_cflags" in
11834 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11835 case "$cf_add_cflags" in
11837 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11839 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11840 && test -z "${cf_tst_cflags}" \
11841 && cf_fix_cppflags=yes
11843 if test "$cf_fix_cppflags" = yes ; then
11845 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11846 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11849 elif test "${cf_tst_cflags}" = "\"'" ; then
11851 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11852 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11858 case "$CPPFLAGS" in
11862 case "$cf_add_cflags" in
11864 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11866 CPPFLAGS=`echo "$CPPFLAGS" | \
11867 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11868 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11873 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11874 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11881 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11882 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11889 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11890 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11892 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11894 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11895 && test -z "${cf_tst_cflags}" \
11896 && cf_fix_cppflags=no
11901 if test -n "$cf_new_cflags" ; then
11902 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11904 echo "${as_me:-configure}:11904: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11906 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11907 CFLAGS="${CFLAGS}$cf_new_cflags"
11911 if test -n "$cf_new_cppflags" ; then
11912 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11914 echo "${as_me:-configure}:11914: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11916 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11917 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11921 if test -n "$cf_new_extra_cppflags" ; then
11922 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11924 echo "${as_me:-configure}:11924: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11926 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11927 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11935 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
11936 echo "$as_me:11936: checking if _XOPEN_SOURCE really is set" >&5
11937 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
11938 cat >"conftest.$ac_ext" <<_ACEOF
11939 #line 11939 "configure"
11940 #include "confdefs.h"
11941 #include <stdlib.h>
11946 #ifndef _XOPEN_SOURCE
11947 #error _XOPEN_SOURCE is not defined
11953 rm -f "conftest.$ac_objext"
11954 if { (eval echo "$as_me:11954: \"$ac_compile\"") >&5
11955 (eval $ac_compile) 2>&5
11957 echo "$as_me:11957: \$? = $ac_status" >&5
11958 (exit "$ac_status"); } &&
11959 { ac_try='test -s "conftest.$ac_objext"'
11960 { (eval echo "$as_me:11960: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11963 echo "$as_me:11963: \$? = $ac_status" >&5
11964 (exit "$ac_status"); }; }; then
11965 cf_XOPEN_SOURCE_set=yes
11967 echo "$as_me: failed program was:" >&5
11968 cat "conftest.$ac_ext" >&5
11969 cf_XOPEN_SOURCE_set=no
11971 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11972 echo "$as_me:11972: result: $cf_XOPEN_SOURCE_set" >&5
11973 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
11974 if test "$cf_XOPEN_SOURCE_set" = yes
11976 cat >"conftest.$ac_ext" <<_ACEOF
11977 #line 11977 "configure"
11978 #include "confdefs.h"
11979 #include <stdlib.h>
11984 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11985 #error (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11991 rm -f "conftest.$ac_objext"
11992 if { (eval echo "$as_me:11992: \"$ac_compile\"") >&5
11993 (eval $ac_compile) 2>&5
11995 echo "$as_me:11995: \$? = $ac_status" >&5
11996 (exit "$ac_status"); } &&
11997 { ac_try='test -s "conftest.$ac_objext"'
11998 { (eval echo "$as_me:11998: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12001 echo "$as_me:12001: \$? = $ac_status" >&5
12002 (exit "$ac_status"); }; }; then
12003 cf_XOPEN_SOURCE_set_ok=yes
12005 echo "$as_me: failed program was:" >&5
12006 cat "conftest.$ac_ext" >&5
12007 cf_XOPEN_SOURCE_set_ok=no
12009 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12010 if test "$cf_XOPEN_SOURCE_set_ok" = no
12012 { echo "$as_me:12012: WARNING: _XOPEN_SOURCE is lower than requested" >&5
12013 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
12017 echo "$as_me:12017: checking if we should define _XOPEN_SOURCE" >&5
12018 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
12019 if test "${cf_cv_xopen_source+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 cat >"conftest.$ac_ext" <<_ACEOF
12024 #line 12024 "configure"
12025 #include "confdefs.h"
12027 $ac_includes_default
12033 #ifndef _XOPEN_SOURCE
12034 #error _XOPEN_SOURCE is not defined
12041 rm -f "conftest.$ac_objext"
12042 if { (eval echo "$as_me:12042: \"$ac_compile\"") >&5
12043 (eval $ac_compile) 2>&5
12045 echo "$as_me:12045: \$? = $ac_status" >&5
12046 (exit "$ac_status"); } &&
12047 { ac_try='test -s "conftest.$ac_objext"'
12048 { (eval echo "$as_me:12048: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:12051: \$? = $ac_status" >&5
12052 (exit "$ac_status"); }; }; then
12053 cf_cv_xopen_source=no
12055 echo "$as_me: failed program was:" >&5
12056 cat "conftest.$ac_ext" >&5
12057 cf_save="$CPPFLAGS"
12059 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12060 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
12062 cat >"conftest.$ac_ext" <<_ACEOF
12063 #line 12063 "configure"
12064 #include "confdefs.h"
12066 $ac_includes_default
12072 #ifndef _XOPEN_SOURCE
12073 #error _XOPEN_SOURCE is not defined
12080 rm -f "conftest.$ac_objext"
12081 if { (eval echo "$as_me:12081: \"$ac_compile\"") >&5
12082 (eval $ac_compile) 2>&5
12084 echo "$as_me:12084: \$? = $ac_status" >&5
12085 (exit "$ac_status"); } &&
12086 { ac_try='test -s "conftest.$ac_objext"'
12087 { (eval echo "$as_me:12087: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12090 echo "$as_me:12090: \$? = $ac_status" >&5
12091 (exit "$ac_status"); }; }; then
12092 cf_cv_xopen_source=no
12094 echo "$as_me: failed program was:" >&5
12095 cat "conftest.$ac_ext" >&5
12096 cf_cv_xopen_source=$cf_XOPEN_SOURCE
12098 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12099 CPPFLAGS="$cf_save"
12102 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12105 echo "$as_me:12105: result: $cf_cv_xopen_source" >&5
12106 echo "${ECHO_T}$cf_cv_xopen_source" >&6
12108 if test "$cf_cv_xopen_source" != no ; then
12110 CFLAGS=`echo "$CFLAGS" | \
12111 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12112 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12114 CPPFLAGS=`echo "$CPPFLAGS" | \
12115 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12116 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12118 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
12120 for cf_add_cflags in $cf_temp_xopen_source
12122 case "x$cf_add_cflags" in
12125 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
12128 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
12129 test "$CFLAGS" != "$cf_old_cflag" || break
12131 CFLAGS="$cf_old_cflag"
12134 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
12137 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
12138 test "$CPPFLAGS" != "$cf_old_cflag" || break
12140 CPPFLAGS="$cf_old_cflag"
12149 cf_new_extra_cppflags=
12151 for cf_add_cflags in $cf_add_cflags
12153 case "$cf_fix_cppflags" in
12155 case "$cf_add_cflags" in
12156 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12157 case "$cf_add_cflags" in
12159 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12161 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12162 && test -z "${cf_tst_cflags}" \
12163 && cf_fix_cppflags=yes
12165 if test "$cf_fix_cppflags" = yes ; then
12167 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12168 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12171 elif test "${cf_tst_cflags}" = "\"'" ; then
12173 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12174 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12180 case "$CPPFLAGS" in
12184 case "$cf_add_cflags" in
12186 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12188 CPPFLAGS=`echo "$CPPFLAGS" | \
12189 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12190 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12195 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12196 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12203 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12204 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12211 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12212 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12214 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12216 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12217 && test -z "${cf_tst_cflags}" \
12218 && cf_fix_cppflags=no
12223 if test -n "$cf_new_cflags" ; then
12225 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12226 CFLAGS="${CFLAGS}$cf_new_cflags"
12230 if test -n "$cf_new_cppflags" ; then
12232 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12233 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12237 if test -n "$cf_new_extra_cppflags" ; then
12239 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12240 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12250 fi # cf_cv_posix_visible
12252 CPPFLAGS_after_XOPEN="$CPPFLAGS"
12254 # Work around breakage on OS X
12256 echo "$as_me:12256: checking if SIGWINCH is defined" >&5
12257 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
12258 if test "${cf_cv_define_sigwinch+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 cat >"conftest.$ac_ext" <<_ACEOF
12263 #line 12263 "configure"
12264 #include "confdefs.h"
12266 #include <sys/types.h>
12267 #include <sys/signal.h>
12272 int x = SIGWINCH; (void)x
12277 rm -f "conftest.$ac_objext"
12278 if { (eval echo "$as_me:12278: \"$ac_compile\"") >&5
12279 (eval $ac_compile) 2>&5
12281 echo "$as_me:12281: \$? = $ac_status" >&5
12282 (exit "$ac_status"); } &&
12283 { ac_try='test -s "conftest.$ac_objext"'
12284 { (eval echo "$as_me:12284: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12287 echo "$as_me:12287: \$? = $ac_status" >&5
12288 (exit "$ac_status"); }; }; then
12289 cf_cv_define_sigwinch=yes
12291 echo "$as_me: failed program was:" >&5
12292 cat "conftest.$ac_ext" >&5
12293 cat >"conftest.$ac_ext" <<_ACEOF
12294 #line 12294 "configure"
12295 #include "confdefs.h"
12297 #undef _XOPEN_SOURCE
12298 #undef _POSIX_SOURCE
12299 #undef _POSIX_C_SOURCE
12300 #include <sys/types.h>
12301 #include <sys/signal.h>
12306 int x = SIGWINCH; (void)x
12311 rm -f "conftest.$ac_objext"
12312 if { (eval echo "$as_me:12312: \"$ac_compile\"") >&5
12313 (eval $ac_compile) 2>&5
12315 echo "$as_me:12315: \$? = $ac_status" >&5
12316 (exit "$ac_status"); } &&
12317 { ac_try='test -s "conftest.$ac_objext"'
12318 { (eval echo "$as_me:12318: \"$ac_try\"") >&5
12319 (eval $ac_try) 2>&5
12321 echo "$as_me:12321: \$? = $ac_status" >&5
12322 (exit "$ac_status"); }; }; then
12323 cf_cv_define_sigwinch=maybe
12325 echo "$as_me: failed program was:" >&5
12326 cat "conftest.$ac_ext" >&5
12327 cf_cv_define_sigwinch=no
12329 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12332 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12335 echo "$as_me:12335: result: $cf_cv_define_sigwinch" >&5
12336 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
12338 if test "$cf_cv_define_sigwinch" = maybe ; then
12339 echo "$as_me:12339: checking for actual SIGWINCH definition" >&5
12340 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
12341 if test "${cf_cv_fixup_sigwinch+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 cf_cv_fixup_sigwinch=unknown
12347 while test "$cf_sigwinch" != 1
12349 cat >"conftest.$ac_ext" <<_ACEOF
12350 #line 12350 "configure"
12351 #include "confdefs.h"
12353 #undef _XOPEN_SOURCE
12354 #undef _POSIX_SOURCE
12355 #undef _POSIX_C_SOURCE
12356 #include <sys/types.h>
12357 #include <sys/signal.h>
12363 #if SIGWINCH != $cf_sigwinch
12364 #error SIGWINCH is not $cf_sigwinch
12366 int x = SIGWINCH; (void)x
12371 rm -f "conftest.$ac_objext"
12372 if { (eval echo "$as_me:12372: \"$ac_compile\"") >&5
12373 (eval $ac_compile) 2>&5
12375 echo "$as_me:12375: \$? = $ac_status" >&5
12376 (exit "$ac_status"); } &&
12377 { ac_try='test -s "conftest.$ac_objext"'
12378 { (eval echo "$as_me:12378: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12381 echo "$as_me:12381: \$? = $ac_status" >&5
12382 (exit "$ac_status"); }; }; then
12383 cf_cv_fixup_sigwinch=$cf_sigwinch
12386 echo "$as_me: failed program was:" >&5
12387 cat "conftest.$ac_ext" >&5
12389 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12391 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
12395 echo "$as_me:12395: result: $cf_cv_fixup_sigwinch" >&5
12396 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
12398 if test "$cf_cv_fixup_sigwinch" != unknown ; then
12399 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
12403 # Checks for CODESET support.
12405 echo "$as_me:12405: checking for nl_langinfo and CODESET" >&5
12406 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12407 if test "${am_cv_langinfo_codeset+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12410 cat >"conftest.$ac_ext" <<_ACEOF
12411 #line 12411 "configure"
12412 #include "confdefs.h"
12414 $ac_includes_default
12415 #include <langinfo.h>
12419 char* cs = nl_langinfo(CODESET); (void)cs
12424 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12425 if { (eval echo "$as_me:12425: \"$ac_link\"") >&5
12426 (eval $ac_link) 2>&5
12428 echo "$as_me:12428: \$? = $ac_status" >&5
12429 (exit "$ac_status"); } &&
12430 { ac_try='test -s "conftest$ac_exeext"'
12431 { (eval echo "$as_me:12431: \"$ac_try\"") >&5
12432 (eval $ac_try) 2>&5
12434 echo "$as_me:12434: \$? = $ac_status" >&5
12435 (exit "$ac_status"); }; }; then
12436 am_cv_langinfo_codeset=yes
12438 echo "$as_me: failed program was:" >&5
12439 cat "conftest.$ac_ext" >&5
12440 am_cv_langinfo_codeset=no
12442 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12445 echo "$as_me:12445: result: $am_cv_langinfo_codeset" >&5
12446 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12447 if test "$am_cv_langinfo_codeset" = yes; then
12449 cat >>confdefs.h <<\EOF
12450 #define HAVE_LANGINFO_CODESET 1
12455 # use these variables to work around a defect in gcc's fixincludes.
12456 NCURSES_OK_WCHAR_T=
12459 echo "$as_me:12459: checking if you want wide-character code" >&5
12460 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
12462 # Check whether --enable-widec or --disable-widec was given.
12463 if test "${enable_widec+set}" = set; then
12464 enableval="$enable_widec"
12465 with_widec=$enableval
12469 echo "$as_me:12469: result: $with_widec" >&5
12470 echo "${ECHO_T}$with_widec" >&6
12472 NCURSES_WCWIDTH_GRAPHICS=1
12474 if test "x$with_widec" = xyes ; then
12475 if test "x$disable_lib_suffixes" = xno ; then
12476 LIB_SUFFIX="w${LIB_SUFFIX}"
12479 cat >>confdefs.h <<\EOF
12480 #define USE_WIDEC_SUPPORT 1
12483 cat >>confdefs.h <<\EOF
12484 #define NCURSES_WIDECHAR 1
12487 case "$CPPFLAGS" in
12491 { echo "$as_me:12491: WARNING: _XOPEN_SOURCE feature test macro appears to be predefined" >&5
12492 echo "$as_me: WARNING: _XOPEN_SOURCE feature test macro appears to be predefined" >&2;}
12493 # CPPFLAGS="$CPPFLAGS -DNCURSES_WIDECHAR"
12494 CPPFLAGS_after_XOPEN="$CPPFLAGS_after_XOPEN -DNCURSES_WIDECHAR"
12503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12504 echo "$as_me:12504: checking for $ac_header" >&5
12505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12509 cat >"conftest.$ac_ext" <<_ACEOF
12510 #line 12510 "configure"
12511 #include "confdefs.h"
12512 #include <$ac_header>
12514 if { (eval echo "$as_me:12514: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12515 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12517 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12519 cat conftest.err >&5
12520 echo "$as_me:12520: \$? = $ac_status" >&5
12521 (exit "$ac_status"); } >/dev/null; then
12522 if test -s conftest.err; then
12523 ac_cpp_err=$ac_c_preproc_warn_flag
12530 if test -z "$ac_cpp_err"; then
12531 eval "$as_ac_Header=yes"
12533 echo "$as_me: failed program was:" >&5
12534 cat "conftest.$ac_ext" >&5
12535 eval "$as_ac_Header=no"
12537 rm -f conftest.err "conftest.$ac_ext"
12539 echo "$as_me:12539: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12540 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12541 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12542 cat >>confdefs.h <<EOF
12543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12549 echo "$as_me:12549: checking if wchar.h can be used as is" >&5
12550 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
12551 if test "${cf_cv_wchar_h_okay+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12555 cat >"conftest.$ac_ext" <<_ACEOF
12556 #line 12556 "configure"
12557 #include "confdefs.h"
12559 $ac_includes_default
12560 #ifdef HAVE_WCHAR_H
12563 #ifdef HAVE_WCTYPE_H
12564 #include <wctype.h>
12572 int bar = iswpunct(foo)
12577 rm -f "conftest.$ac_objext"
12578 if { (eval echo "$as_me:12578: \"$ac_compile\"") >&5
12579 (eval $ac_compile) 2>&5
12581 echo "$as_me:12581: \$? = $ac_status" >&5
12582 (exit "$ac_status"); } &&
12583 { ac_try='test -s "conftest.$ac_objext"'
12584 { (eval echo "$as_me:12584: \"$ac_try\"") >&5
12585 (eval $ac_try) 2>&5
12587 echo "$as_me:12587: \$? = $ac_status" >&5
12588 (exit "$ac_status"); }; }; then
12589 cf_cv_wchar_h_okay=yes
12591 echo "$as_me: failed program was:" >&5
12592 cat "conftest.$ac_ext" >&5
12593 cf_cv_wchar_h_okay=no
12595 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12597 echo "$as_me:12597: result: $cf_cv_wchar_h_okay" >&5
12598 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
12600 if test "$cf_cv_wchar_h_okay" = no
12603 echo "$as_me:12603: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
12604 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
12605 cat >"conftest.$ac_ext" <<_ACEOF
12606 #line 12606 "configure"
12607 #include "confdefs.h"
12608 #include <sys/types.h>
12614 #ifndef _XOPEN_SOURCE_EXTENDED
12615 #error _XOPEN_SOURCE_EXTENDED is not defined
12621 rm -f "conftest.$ac_objext"
12622 if { (eval echo "$as_me:12622: \"$ac_compile\"") >&5
12623 (eval $ac_compile) 2>&5
12625 echo "$as_me:12625: \$? = $ac_status" >&5
12626 (exit "$ac_status"); } &&
12627 { ac_try='test -s "conftest.$ac_objext"'
12628 { (eval echo "$as_me:12628: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12631 echo "$as_me:12631: \$? = $ac_status" >&5
12632 (exit "$ac_status"); }; }; then
12635 echo "$as_me: failed program was:" >&5
12636 cat "conftest.$ac_ext" >&5
12639 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12640 echo "$as_me:12640: result: $cf_result" >&5
12641 echo "${ECHO_T}$cf_result" >&6
12643 if test "$cf_result" = yes ; then
12644 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12645 elif test "x" != "x" ; then
12646 echo "$as_me:12646: checking checking for compatible value versus " >&5
12647 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
12648 cat >"conftest.$ac_ext" <<_ACEOF
12649 #line 12649 "configure"
12650 #include "confdefs.h"
12651 #include <sys/types.h>
12657 #if _XOPEN_SOURCE_EXTENDED- < 0
12658 #error _XOPEN_SOURCE_EXTENDED- is negative
12664 rm -f "conftest.$ac_objext"
12665 if { (eval echo "$as_me:12665: \"$ac_compile\"") >&5
12666 (eval $ac_compile) 2>&5
12668 echo "$as_me:12668: \$? = $ac_status" >&5
12669 (exit "$ac_status"); } &&
12670 { ac_try='test -s "conftest.$ac_objext"'
12671 { (eval echo "$as_me:12671: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12674 echo "$as_me:12674: \$? = $ac_status" >&5
12675 (exit "$ac_status"); }; }; then
12678 echo "$as_me: failed program was:" >&5
12679 cat "conftest.$ac_ext" >&5
12682 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12683 echo "$as_me:12683: result: $cf_result" >&5
12684 echo "${ECHO_T}$cf_result" >&6
12685 if test "$cf_result" = no ; then
12686 # perhaps we can override it - try...
12687 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
12693 echo "$as_me:12693: checking if wcwidth agrees graphics are single-width" >&5
12694 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
12695 if test "${cf_cv_wcwidth_graphics+set}" = set; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 cat >conftest.in <<CF_EOF
12701 0x250c upper left corner
12702 0x2514 lower left corner
12703 0x2510 upper right corner
12704 0x2518 lower right corner
12705 0x251c tee pointing left
12706 0x2524 tee pointing right
12707 0x2534 tee pointing up
12708 0x252c tee pointing down
12709 0x2500 horizontal line
12710 0x2502 vertical line
12711 0x253c large plus or crossover
12715 0x2592 checker board (stipple)
12716 0x00b0 degree symbol
12719 - Teletype 5410v1 symbols
12720 0x2190 arrow pointing left
12721 0x2192 arrow pointing right
12722 0x2193 arrow pointing down
12723 0x2191 arrow pointing up
12724 0x2592 board of squares
12725 0x2603 lantern symbol
12726 0x25ae solid square block
12727 - these defaults were invented for ncurses
12730 0x2264 less-than-or-equal-to
12731 0x2265 greater-than-or-equal-to
12734 0x00a3 pound-sterling symbol
12735 - thick-line-drawing
12736 0x250f upper left corner
12737 0x2517 lower left corner
12738 0x2513 upper right corner
12739 0x251b lower right corner
12740 0x2523 tee pointing left
12741 0x252b tee pointing right
12742 0x253b tee pointing up
12743 0x2533 tee pointing down
12744 0x2501 horizontal line
12745 0x2503 vertical line
12746 0x254b large plus or crossover
12747 - double-line-drawing
12748 0x2554 upper left corner
12749 0x255a lower left corner
12750 0x2557 upper right corner
12751 0x255d lower right corner
12752 0x2563 tee pointing left
12753 0x2560 tee pointing right
12754 0x2569 tee pointing up
12755 0x2566 tee pointing down
12756 0x2550 horizontal line
12757 0x2551 vertical line
12758 0x256c large plus or crossover
12760 if test "$cross_compiling" = yes; then
12761 cf_cv_wcwidth_graphics=unknown
12763 cat >"conftest.$ac_ext" <<_ACEOF
12764 #line 12764 "configure"
12765 #include "confdefs.h"
12767 $ac_includes_default
12769 #include <locale.h>
12779 char buffer[MY_LEN + 1];
12780 char notes[MY_LEN + 1];
12784 if (setlocale(LC_ALL, "en_US.UTF8") ||
12785 setlocale(LC_ALL, "en_US.UTF-8") ||
12786 setlocale(LC_ALL, "en_US.utf8") ||
12787 setlocale(LC_ALL, "en_US.utf-8")) {
12788 if ((fp = fopen("conftest.in", "r")) != 0) {
12789 while (fgets(buffer, MY_LEN, fp) != 0) {
12790 if (*buffer == '-') {
12791 fprintf(stderr, "\\t%s", buffer);
12792 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
12794 if (wcwidth(value) == 1)
12796 fprintf(stderr, "%d\\t%s", wcwidth(value), buffer);
12798 fprintf(stderr, "?\\t%s", buffer);
12803 fprintf(stderr, "%d/%d passed wcwidth/graphics check\\n", passed, totals);
12804 return (totals == passed) ? 0 : 1;
12808 rm -f "conftest$ac_exeext"
12809 if { (eval echo "$as_me:12809: \"$ac_link\"") >&5
12810 (eval $ac_link) 2>&5
12812 echo "$as_me:12812: \$? = $ac_status" >&5
12813 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
12814 { (eval echo "$as_me:12814: \"$ac_try\"") >&5
12815 (eval $ac_try) 2>&5
12817 echo "$as_me:12817: \$? = $ac_status" >&5
12818 (exit "$ac_status"); }; }; then
12819 cf_cv_wcwidth_graphics=yes
12821 echo "$as_me: program exited with status $ac_status" >&5
12822 echo "$as_me: failed program was:" >&5
12823 cat "conftest.$ac_ext" >&5
12824 cf_cv_wcwidth_graphics=no
12826 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
12830 echo "$as_me:12830: result: $cf_cv_wcwidth_graphics" >&5
12831 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
12833 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
12835 # with_overwrite=no
12836 NCURSES_CH_T=cchar_t
12838 for ac_func in putwc btowc wctob wmemchr mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
12840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12841 echo "$as_me:12841: checking for $ac_func" >&5
12842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12843 if eval "test \"\${$as_ac_var+set}\" = set"; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12846 cat >"conftest.$ac_ext" <<_ACEOF
12847 #line 12847 "configure"
12848 #include "confdefs.h"
12849 #define $ac_func autoconf_temporary
12850 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12857 /* We use char because int might match the return type of a gcc2
12858 builtin and then its argument prototype would still apply. */
12859 char $ac_func (void);
12865 /* The GNU C library defines stubs for functions which it implements
12866 to always fail with ENOSYS. Some functions are actually named
12867 something starting with __ and the normal name is an alias. */
12868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12869 #error found stub for $ac_func
12872 return $ac_func ();
12877 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12878 if { (eval echo "$as_me:12878: \"$ac_link\"") >&5
12879 (eval $ac_link) 2>&5
12881 echo "$as_me:12881: \$? = $ac_status" >&5
12882 (exit "$ac_status"); } &&
12883 { ac_try='test -s "conftest$ac_exeext"'
12884 { (eval echo "$as_me:12884: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12887 echo "$as_me:12887: \$? = $ac_status" >&5
12888 (exit "$ac_status"); }; }; then
12889 eval "$as_ac_var=yes"
12891 echo "$as_me: failed program was:" >&5
12892 cat "conftest.$ac_ext" >&5
12893 eval "$as_ac_var=no"
12895 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12897 echo "$as_me:12897: result: `eval echo '${'"$as_ac_var"'}'`" >&5
12898 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
12899 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
12900 cat >>confdefs.h <<EOF
12901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12907 if test "x$ac_cv_func_putwc" != xyes ; then
12909 for ac_header in wchar.h
12911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12912 echo "$as_me:12912: checking for $ac_header" >&5
12913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 cat >"conftest.$ac_ext" <<_ACEOF
12918 #line 12918 "configure"
12919 #include "confdefs.h"
12920 #include <$ac_header>
12922 if { (eval echo "$as_me:12922: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12923 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12925 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12927 cat conftest.err >&5
12928 echo "$as_me:12928: \$? = $ac_status" >&5
12929 (exit "$ac_status"); } >/dev/null; then
12930 if test -s conftest.err; then
12931 ac_cpp_err=$ac_c_preproc_warn_flag
12938 if test -z "$ac_cpp_err"; then
12939 eval "$as_ac_Header=yes"
12941 echo "$as_me: failed program was:" >&5
12942 cat "conftest.$ac_ext" >&5
12943 eval "$as_ac_Header=no"
12945 rm -f conftest.err "conftest.$ac_ext"
12947 echo "$as_me:12947: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12948 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12949 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12950 cat >>confdefs.h <<EOF
12951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12957 echo "$as_me:12957: checking for multibyte character support" >&5
12958 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
12959 if test "${cf_cv_utf8_lib+set}" = set; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 cf_save_LIBS="$LIBS"
12964 cat >"conftest.$ac_ext" <<_ACEOF
12965 #line 12965 "configure"
12966 #include "confdefs.h"
12968 $ac_includes_default
12969 #ifdef HAVE_WCHAR_H
12981 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12982 if { (eval echo "$as_me:12982: \"$ac_link\"") >&5
12983 (eval $ac_link) 2>&5
12985 echo "$as_me:12985: \$? = $ac_status" >&5
12986 (exit "$ac_status"); } &&
12987 { ac_try='test -s "conftest$ac_exeext"'
12988 { (eval echo "$as_me:12988: \"$ac_try\"") >&5
12989 (eval $ac_try) 2>&5
12991 echo "$as_me:12991: \$? = $ac_status" >&5
12992 (exit "$ac_status"); }; }; then
12995 echo "$as_me: failed program was:" >&5
12996 cat "conftest.$ac_ext" >&5
12998 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
12999 # will be set on completion of the AC_TRY_LINK below.
13000 cf_cv_header_path_utf8=
13001 cf_cv_library_path_utf8=
13003 echo "${as_me:-configure}:13003: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
13005 cf_save_LIBS="$LIBS"
13007 cat >"conftest.$ac_ext" <<_ACEOF
13008 #line 13008 "configure"
13009 #include "confdefs.h"
13011 #include <libutf8.h>
13020 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13021 if { (eval echo "$as_me:13021: \"$ac_link\"") >&5
13022 (eval $ac_link) 2>&5
13024 echo "$as_me:13024: \$? = $ac_status" >&5
13025 (exit "$ac_status"); } &&
13026 { ac_try='test -s "conftest$ac_exeext"'
13027 { (eval echo "$as_me:13027: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13030 echo "$as_me:13030: \$? = $ac_status" >&5
13031 (exit "$ac_status"); }; }; then
13033 cf_cv_find_linkage_utf8=yes
13034 cf_cv_header_path_utf8=/usr/include
13035 cf_cv_library_path_utf8=/usr/lib
13038 echo "$as_me: failed program was:" >&5
13039 cat "conftest.$ac_ext" >&5
13041 LIBS="-lutf8 $cf_save_LIBS"
13043 cat >"conftest.$ac_ext" <<_ACEOF
13044 #line 13044 "configure"
13045 #include "confdefs.h"
13047 #include <libutf8.h>
13056 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13057 if { (eval echo "$as_me:13057: \"$ac_link\"") >&5
13058 (eval $ac_link) 2>&5
13060 echo "$as_me:13060: \$? = $ac_status" >&5
13061 (exit "$ac_status"); } &&
13062 { ac_try='test -s "conftest$ac_exeext"'
13063 { (eval echo "$as_me:13063: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13066 echo "$as_me:13066: \$? = $ac_status" >&5
13067 (exit "$ac_status"); }; }; then
13069 cf_cv_find_linkage_utf8=yes
13070 cf_cv_header_path_utf8=/usr/include
13071 cf_cv_library_path_utf8=/usr/lib
13072 cf_cv_library_file_utf8="-lutf8"
13075 echo "$as_me: failed program was:" >&5
13076 cat "conftest.$ac_ext" >&5
13078 cf_cv_find_linkage_utf8=no
13079 LIBS="$cf_save_LIBS"
13081 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
13083 echo "${as_me:-configure}:13083: testing find linkage for utf8 library ..." 1>&5
13085 echo "${as_me:-configure}:13085: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
13087 cf_save_CPPFLAGS="$CPPFLAGS"
13088 cf_test_CPPFLAGS="$CPPFLAGS"
13092 # collect the current set of include-directories from compiler flags
13093 cf_header_path_list=""
13094 if test -n "${CFLAGS}${CPPFLAGS}" ; then
13095 for cf_header_path in $CPPFLAGS $CFLAGS
13097 case "$cf_header_path" in
13099 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
13101 test "x$cf_header_path" != "xNONE" && \
13102 test -d "$cf_header_path" && \
13104 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
13105 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
13106 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
13107 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include"
13108 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
13109 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
13112 cf_header_path_list="$cf_header_path_list $cf_search"
13118 # add the variations for the package we are looking for
13122 test "x$prefix" != "xNONE" && \
13123 test -d "$prefix" && \
13125 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
13126 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
13127 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
13128 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
13129 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
13130 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
13133 for cf_subdir_prefix in \
13142 test "x$cf_subdir_prefix" != "x$prefix" && \
13143 test -d "$cf_subdir_prefix" && \
13144 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
13145 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
13146 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
13147 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
13148 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
13149 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
13150 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
13155 test "$includedir" != NONE && \
13156 test "$includedir" != "/usr/include" && \
13157 test -d "$includedir" && {
13158 test -d "$includedir" && cf_search="$cf_search $includedir"
13159 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
13162 test "$oldincludedir" != NONE && \
13163 test "$oldincludedir" != "/usr/include" && \
13164 test -d "$oldincludedir" && {
13165 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
13166 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
13169 cf_search="$cf_search $cf_header_path_list"
13171 for cf_cv_header_path_utf8 in $cf_search
13173 if test -d "$cf_cv_header_path_utf8" ; then
13174 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
13176 echo "${as_me:-configure}:13176: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
13178 CPPFLAGS="$cf_save_CPPFLAGS"
13180 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13181 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
13183 cat >"conftest.$ac_ext" <<_ACEOF
13184 #line 13184 "configure"
13185 #include "confdefs.h"
13187 #include <libutf8.h>
13196 rm -f "conftest.$ac_objext"
13197 if { (eval echo "$as_me:13197: \"$ac_compile\"") >&5
13198 (eval $ac_compile) 2>&5
13200 echo "$as_me:13200: \$? = $ac_status" >&5
13201 (exit "$ac_status"); } &&
13202 { ac_try='test -s "conftest.$ac_objext"'
13203 { (eval echo "$as_me:13203: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13206 echo "$as_me:13206: \$? = $ac_status" >&5
13207 (exit "$ac_status"); }; }; then
13209 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
13211 echo "${as_me:-configure}:13211: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
13213 cf_cv_find_linkage_utf8=maybe
13214 cf_test_CPPFLAGS="$CPPFLAGS"
13217 echo "$as_me: failed program was:" >&5
13218 cat "conftest.$ac_ext" >&5
13220 CPPFLAGS="$cf_save_CPPFLAGS"
13223 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13227 if test "$cf_cv_find_linkage_utf8" = maybe ; then
13229 echo "${as_me:-configure}:13229: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
13231 cf_save_LIBS="$LIBS"
13232 cf_save_LDFLAGS="$LDFLAGS"
13234 if test "$cf_cv_find_linkage_utf8" != yes ; then
13237 cf_library_path_list=""
13238 if test -n "${LDFLAGS}${LIBS}" ; then
13239 for cf_library_path in $LDFLAGS $LIBS
13241 case "$cf_library_path" in
13243 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
13245 test "x$cf_library_path" != "xNONE" && \
13246 test -d "$cf_library_path" && \
13248 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
13249 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
13250 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
13251 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
13252 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
13253 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
13256 cf_library_path_list="$cf_library_path_list $cf_search"
13264 test "x$prefix" != "xNONE" && \
13265 test -d "$prefix" && \
13267 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
13268 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
13269 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
13270 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
13271 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
13272 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
13275 for cf_subdir_prefix in \
13284 test "x$cf_subdir_prefix" != "x$prefix" && \
13285 test -d "$cf_subdir_prefix" && \
13286 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
13287 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
13288 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
13289 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
13290 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
13291 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
13292 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
13297 cf_search="$cf_library_path_list $cf_search"
13299 for cf_cv_library_path_utf8 in $cf_search
13301 if test -d "$cf_cv_library_path_utf8" ; then
13302 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
13304 echo "${as_me:-configure}:13304: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
13306 CPPFLAGS="$cf_test_CPPFLAGS"
13307 LIBS="-lutf8 $cf_save_LIBS"
13308 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
13309 cat >"conftest.$ac_ext" <<_ACEOF
13310 #line 13310 "configure"
13311 #include "confdefs.h"
13313 #include <libutf8.h>
13322 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13323 if { (eval echo "$as_me:13323: \"$ac_link\"") >&5
13324 (eval $ac_link) 2>&5
13326 echo "$as_me:13326: \$? = $ac_status" >&5
13327 (exit "$ac_status"); } &&
13328 { ac_try='test -s "conftest$ac_exeext"'
13329 { (eval echo "$as_me:13329: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13332 echo "$as_me:13332: \$? = $ac_status" >&5
13333 (exit "$ac_status"); }; }; then
13335 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
13337 echo "${as_me:-configure}:13337: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
13339 cf_cv_find_linkage_utf8=yes
13340 cf_cv_library_file_utf8="-lutf8"
13343 echo "$as_me: failed program was:" >&5
13344 cat "conftest.$ac_ext" >&5
13346 CPPFLAGS="$cf_save_CPPFLAGS"
13347 LIBS="$cf_save_LIBS"
13348 LDFLAGS="$cf_save_LDFLAGS"
13351 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13354 CPPFLAGS="$cf_save_CPPFLAGS"
13355 LDFLAGS="$cf_save_LDFLAGS"
13359 cf_cv_find_linkage_utf8=no
13363 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13366 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13368 LIBS="$cf_save_LIBS"
13370 if test "$cf_cv_find_linkage_utf8" = yes ; then
13371 cf_cv_utf8_lib=add-on
13377 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13379 echo "$as_me:13379: result: $cf_cv_utf8_lib" >&5
13380 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
13382 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
13383 # ncurses/ncursesw:
13384 if test "$cf_cv_utf8_lib" = "add-on" ; then
13386 cat >>confdefs.h <<\EOF
13387 #define HAVE_LIBUTF8_H 1
13390 if test -n "$cf_cv_header_path_utf8" ; then
13391 for cf_add_incdir in $cf_cv_header_path_utf8
13393 while test "$cf_add_incdir" != /usr/include
13395 if test -d "$cf_add_incdir"
13398 if test -n "$CFLAGS$CPPFLAGS" ; then
13399 # a loop is needed to ensure we can add subdirs of existing dirs
13400 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
13401 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
13402 cf_have_incdir=yes; break
13407 if test "$cf_have_incdir" = no ; then
13408 if test "$cf_add_incdir" = /usr/local/include ; then
13409 if test "$GCC" = yes
13411 cf_save_CPPFLAGS=$CPPFLAGS
13413 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13414 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
13416 cat >"conftest.$ac_ext" <<_ACEOF
13417 #line 13417 "configure"
13418 #include "confdefs.h"
13428 rm -f "conftest.$ac_objext"
13429 if { (eval echo "$as_me:13429: \"$ac_compile\"") >&5
13430 (eval $ac_compile) 2>&5
13432 echo "$as_me:13432: \$? = $ac_status" >&5
13433 (exit "$ac_status"); } &&
13434 { ac_try='test -s "conftest.$ac_objext"'
13435 { (eval echo "$as_me:13435: \"$ac_try\"") >&5
13436 (eval $ac_try) 2>&5
13438 echo "$as_me:13438: \$? = $ac_status" >&5
13439 (exit "$ac_status"); }; }; then
13442 echo "$as_me: failed program was:" >&5
13443 cat "conftest.$ac_ext" >&5
13446 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13447 CPPFLAGS=$cf_save_CPPFLAGS
13452 if test "$cf_have_incdir" = no ; then
13453 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
13455 echo "${as_me:-configure}:13455: testing adding $cf_add_incdir to include-path ..." 1>&5
13457 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
13459 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
13460 test "$cf_top_incdir" = "$cf_add_incdir" && break
13461 cf_add_incdir="$cf_top_incdir"
13472 if test -n "$cf_cv_library_path_utf8" ; then
13473 for cf_add_libdir in $cf_cv_library_path_utf8
13475 if test "$cf_add_libdir" = /usr/lib ; then
13477 elif test -d "$cf_add_libdir"
13480 if test -n "$LDFLAGS$LIBS" ; then
13481 # a loop is needed to ensure we can add subdirs of existing dirs
13482 for cf_test_libdir in $LDFLAGS $LIBS ; do
13483 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
13484 cf_have_libdir=yes; break
13488 if test "$cf_have_libdir" = no ; then
13489 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
13491 echo "${as_me:-configure}:13491: testing adding $cf_add_libdir to library-path ..." 1>&5
13493 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
13499 cf_add_libs="$LIBS"
13502 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13503 # filter duplicates
13504 for cf_add_1lib in $cf_add_0lib; do
13505 for cf_add_2lib in $cf_add_libs; do
13506 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13511 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13513 LIBS="$cf_add_libs"
13517 if test "$cf_cv_utf8_lib" != no ; then
13522 # This is needed on Tru64 5.0 to declare mbstate_t
13523 echo "$as_me:13523: checking if we must include wchar.h to declare mbstate_t" >&5
13524 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
13525 if test "${cf_cv_mbstate_t+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 cat >"conftest.$ac_ext" <<_ACEOF
13530 #line 13530 "configure"
13531 #include "confdefs.h"
13533 #include <stdlib.h>
13534 #include <stdarg.h>
13536 #ifdef HAVE_LIBUTF8_H
13537 #include <libutf8.h>
13547 rm -f "conftest.$ac_objext"
13548 if { (eval echo "$as_me:13548: \"$ac_compile\"") >&5
13549 (eval $ac_compile) 2>&5
13551 echo "$as_me:13551: \$? = $ac_status" >&5
13552 (exit "$ac_status"); } &&
13553 { ac_try='test -s "conftest.$ac_objext"'
13554 { (eval echo "$as_me:13554: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13557 echo "$as_me:13557: \$? = $ac_status" >&5
13558 (exit "$ac_status"); }; }; then
13561 echo "$as_me: failed program was:" >&5
13562 cat "conftest.$ac_ext" >&5
13563 cat >"conftest.$ac_ext" <<_ACEOF
13564 #line 13564 "configure"
13565 #include "confdefs.h"
13567 #include <stdlib.h>
13568 #include <stdarg.h>
13571 #ifdef HAVE_LIBUTF8_H
13572 #include <libutf8.h>
13582 rm -f "conftest.$ac_objext"
13583 if { (eval echo "$as_me:13583: \"$ac_compile\"") >&5
13584 (eval $ac_compile) 2>&5
13586 echo "$as_me:13586: \$? = $ac_status" >&5
13587 (exit "$ac_status"); } &&
13588 { ac_try='test -s "conftest.$ac_objext"'
13589 { (eval echo "$as_me:13589: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13592 echo "$as_me:13592: \$? = $ac_status" >&5
13593 (exit "$ac_status"); }; }; then
13594 cf_cv_mbstate_t=yes
13596 echo "$as_me: failed program was:" >&5
13597 cat "conftest.$ac_ext" >&5
13598 cf_cv_mbstate_t=unknown
13600 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13602 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13604 echo "$as_me:13604: result: $cf_cv_mbstate_t" >&5
13605 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
13607 if test "$cf_cv_mbstate_t" = yes ; then
13609 cat >>confdefs.h <<\EOF
13610 #define NEED_WCHAR_H 1
13616 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
13617 if test "$cf_cv_mbstate_t" = unknown ; then
13618 NCURSES_MBSTATE_T=1
13621 # This is needed on Tru64 5.0 to declare wchar_t
13622 echo "$as_me:13622: checking if we must include wchar.h to declare wchar_t" >&5
13623 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
13624 if test "${cf_cv_wchar_t+set}" = set; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13628 cat >"conftest.$ac_ext" <<_ACEOF
13629 #line 13629 "configure"
13630 #include "confdefs.h"
13632 #include <stdlib.h>
13633 #include <stdarg.h>
13635 #ifdef HAVE_LIBUTF8_H
13636 #include <libutf8.h>
13646 rm -f "conftest.$ac_objext"
13647 if { (eval echo "$as_me:13647: \"$ac_compile\"") >&5
13648 (eval $ac_compile) 2>&5
13650 echo "$as_me:13650: \$? = $ac_status" >&5
13651 (exit "$ac_status"); } &&
13652 { ac_try='test -s "conftest.$ac_objext"'
13653 { (eval echo "$as_me:13653: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13656 echo "$as_me:13656: \$? = $ac_status" >&5
13657 (exit "$ac_status"); }; }; then
13660 echo "$as_me: failed program was:" >&5
13661 cat "conftest.$ac_ext" >&5
13662 cat >"conftest.$ac_ext" <<_ACEOF
13663 #line 13663 "configure"
13664 #include "confdefs.h"
13666 #include <stdlib.h>
13667 #include <stdarg.h>
13670 #ifdef HAVE_LIBUTF8_H
13671 #include <libutf8.h>
13681 rm -f "conftest.$ac_objext"
13682 if { (eval echo "$as_me:13682: \"$ac_compile\"") >&5
13683 (eval $ac_compile) 2>&5
13685 echo "$as_me:13685: \$? = $ac_status" >&5
13686 (exit "$ac_status"); } &&
13687 { ac_try='test -s "conftest.$ac_objext"'
13688 { (eval echo "$as_me:13688: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13691 echo "$as_me:13691: \$? = $ac_status" >&5
13692 (exit "$ac_status"); }; }; then
13695 echo "$as_me: failed program was:" >&5
13696 cat "conftest.$ac_ext" >&5
13697 cf_cv_wchar_t=unknown
13699 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13701 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13703 echo "$as_me:13703: result: $cf_cv_wchar_t" >&5
13704 echo "${ECHO_T}$cf_cv_wchar_t" >&6
13706 if test "$cf_cv_wchar_t" = yes ; then
13708 cat >>confdefs.h <<\EOF
13709 #define NEED_WCHAR_H 1
13715 # if we do not find wchar_t in either place, use substitution to provide a fallback.
13716 if test "$cf_cv_wchar_t" = unknown ; then
13720 # if we find wchar_t in either place, use substitution to provide a fallback.
13721 if test "$cf_cv_wchar_t" != unknown ; then
13722 NCURSES_OK_WCHAR_T=1
13725 # This is needed on Tru64 5.0 to declare wint_t
13726 echo "$as_me:13726: checking if we must include wchar.h to declare wint_t" >&5
13727 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
13728 if test "${cf_cv_wint_t+set}" = set; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13732 cat >"conftest.$ac_ext" <<_ACEOF
13733 #line 13733 "configure"
13734 #include "confdefs.h"
13736 #include <stdlib.h>
13737 #include <stdarg.h>
13739 #ifdef HAVE_LIBUTF8_H
13740 #include <libutf8.h>
13750 rm -f "conftest.$ac_objext"
13751 if { (eval echo "$as_me:13751: \"$ac_compile\"") >&5
13752 (eval $ac_compile) 2>&5
13754 echo "$as_me:13754: \$? = $ac_status" >&5
13755 (exit "$ac_status"); } &&
13756 { ac_try='test -s "conftest.$ac_objext"'
13757 { (eval echo "$as_me:13757: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13760 echo "$as_me:13760: \$? = $ac_status" >&5
13761 (exit "$ac_status"); }; }; then
13764 echo "$as_me: failed program was:" >&5
13765 cat "conftest.$ac_ext" >&5
13766 cat >"conftest.$ac_ext" <<_ACEOF
13767 #line 13767 "configure"
13768 #include "confdefs.h"
13770 #include <stdlib.h>
13771 #include <stdarg.h>
13774 #ifdef HAVE_LIBUTF8_H
13775 #include <libutf8.h>
13785 rm -f "conftest.$ac_objext"
13786 if { (eval echo "$as_me:13786: \"$ac_compile\"") >&5
13787 (eval $ac_compile) 2>&5
13789 echo "$as_me:13789: \$? = $ac_status" >&5
13790 (exit "$ac_status"); } &&
13791 { ac_try='test -s "conftest.$ac_objext"'
13792 { (eval echo "$as_me:13792: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13795 echo "$as_me:13795: \$? = $ac_status" >&5
13796 (exit "$ac_status"); }; }; then
13799 echo "$as_me: failed program was:" >&5
13800 cat "conftest.$ac_ext" >&5
13801 cf_cv_wint_t=unknown
13803 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13805 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13807 echo "$as_me:13807: result: $cf_cv_wint_t" >&5
13808 echo "${ECHO_T}$cf_cv_wint_t" >&6
13810 if test "$cf_cv_wint_t" = yes ; then
13812 cat >>confdefs.h <<\EOF
13813 #define NEED_WCHAR_H 1
13819 # if we do not find wint_t in either place, use substitution to provide a fallback.
13820 if test "$cf_cv_wint_t" = unknown ; then
13824 # if we find wint_t in either place, use substitution to provide a fallback.
13825 if test "$cf_cv_wint_t" != unknown ; then
13826 NCURSES_OK_WINT_T=1
13829 if test "$NCURSES_MBSTATE_T" != 0; then
13831 cat >>confdefs.h <<\EOF
13832 #define NEED_MBSTATE_T_DEF 1
13838 ### use option --disable-lp64 to allow long chtype
13839 echo "$as_me:13839: checking whether to enable _LP64 definition in curses.h" >&5
13840 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
13842 # Check whether --enable-lp64 or --disable-lp64 was given.
13843 if test "${enable_lp64+set}" = set; then
13844 enableval="$enable_lp64"
13845 with_lp64=$enableval
13847 with_lp64=$cf_dft_with_lp64
13849 echo "$as_me:13849: result: $with_lp64" >&5
13850 echo "${ECHO_T}$with_lp64" >&6
13852 if test "x$with_lp64" = xyes ; then
13853 cf_cv_enable_lp64=1
13855 cf_cv_enable_lp64=0
13858 # Check whether --enable-largefile or --disable-largefile was given.
13859 if test "${enable_largefile+set}" = set; then
13860 enableval="$enable_largefile"
13863 if test "$enable_largefile" != no; then
13865 echo "$as_me:13865: checking for special C compiler options needed for large files" >&5
13866 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
13867 if test "${ac_cv_sys_largefile_CC+set}" = set; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13870 ac_cv_sys_largefile_CC=no
13871 if test "$GCC" != yes; then
13874 # IRIX 6.2 and later do not support large files by default,
13875 # so use the C compiler's -n32 option if that helps.
13876 cat >"conftest.$ac_ext" <<_ACEOF
13877 #line 13877 "configure"
13878 #include "confdefs.h"
13879 #include <sys/types.h>
13880 /* Check that off_t can represent 2**63 - 1 correctly.
13881 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13882 since some C++ compilers masquerading as C compilers
13883 incorrectly reject 9223372036854775807. */
13884 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13885 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13886 && LARGE_OFF_T % 2147483647 == 1)
13896 rm -f "conftest.$ac_objext"
13897 if { (eval echo "$as_me:13897: \"$ac_compile\"") >&5
13898 (eval $ac_compile) 2>&5
13900 echo "$as_me:13900: \$? = $ac_status" >&5
13901 (exit "$ac_status"); } &&
13902 { ac_try='test -s "conftest.$ac_objext"'
13903 { (eval echo "$as_me:13903: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13906 echo "$as_me:13906: \$? = $ac_status" >&5
13907 (exit "$ac_status"); }; }; then
13910 echo "$as_me: failed program was:" >&5
13911 cat "conftest.$ac_ext" >&5
13913 rm -f "conftest.$ac_objext"
13915 rm -f "conftest.$ac_objext"
13916 if { (eval echo "$as_me:13916: \"$ac_compile\"") >&5
13917 (eval $ac_compile) 2>&5
13919 echo "$as_me:13919: \$? = $ac_status" >&5
13920 (exit "$ac_status"); } &&
13921 { ac_try='test -s "conftest.$ac_objext"'
13922 { (eval echo "$as_me:13922: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13925 echo "$as_me:13925: \$? = $ac_status" >&5
13926 (exit "$ac_status"); }; }; then
13927 ac_cv_sys_largefile_CC=' -n32'; break
13929 echo "$as_me: failed program was:" >&5
13930 cat "conftest.$ac_ext" >&5
13932 rm -f "conftest.$ac_objext"
13936 rm -f "conftest.$ac_ext"
13939 echo "$as_me:13939: result: $ac_cv_sys_largefile_CC" >&5
13940 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
13941 if test "$ac_cv_sys_largefile_CC" != no; then
13942 CC=$CC$ac_cv_sys_largefile_CC
13945 echo "$as_me:13945: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13946 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
13947 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 ac_cv_sys_file_offset_bits=no
13952 cat >"conftest.$ac_ext" <<_ACEOF
13953 #line 13953 "configure"
13954 #include "confdefs.h"
13955 #include <sys/types.h>
13956 /* Check that off_t can represent 2**63 - 1 correctly.
13957 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13958 since some C++ compilers masquerading as C compilers
13959 incorrectly reject 9223372036854775807. */
13960 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13961 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13962 && LARGE_OFF_T % 2147483647 == 1)
13972 rm -f "conftest.$ac_objext"
13973 if { (eval echo "$as_me:13973: \"$ac_compile\"") >&5
13974 (eval $ac_compile) 2>&5
13976 echo "$as_me:13976: \$? = $ac_status" >&5
13977 (exit "$ac_status"); } &&
13978 { ac_try='test -s "conftest.$ac_objext"'
13979 { (eval echo "$as_me:13979: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:13982: \$? = $ac_status" >&5
13983 (exit "$ac_status"); }; }; then
13986 echo "$as_me: failed program was:" >&5
13987 cat "conftest.$ac_ext" >&5
13989 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13990 cat >"conftest.$ac_ext" <<_ACEOF
13991 #line 13991 "configure"
13992 #include "confdefs.h"
13993 #define _FILE_OFFSET_BITS 64
13994 #include <sys/types.h>
13995 /* Check that off_t can represent 2**63 - 1 correctly.
13996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13997 since some C++ compilers masquerading as C compilers
13998 incorrectly reject 9223372036854775807. */
13999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14001 && LARGE_OFF_T % 2147483647 == 1)
14011 rm -f "conftest.$ac_objext"
14012 if { (eval echo "$as_me:14012: \"$ac_compile\"") >&5
14013 (eval $ac_compile) 2>&5
14015 echo "$as_me:14015: \$? = $ac_status" >&5
14016 (exit "$ac_status"); } &&
14017 { ac_try='test -s "conftest.$ac_objext"'
14018 { (eval echo "$as_me:14018: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14021 echo "$as_me:14021: \$? = $ac_status" >&5
14022 (exit "$ac_status"); }; }; then
14023 ac_cv_sys_file_offset_bits=64; break
14025 echo "$as_me: failed program was:" >&5
14026 cat "conftest.$ac_ext" >&5
14028 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14032 echo "$as_me:14032: result: $ac_cv_sys_file_offset_bits" >&5
14033 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14034 if test "$ac_cv_sys_file_offset_bits" != no; then
14036 cat >>confdefs.h <<EOF
14037 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14042 echo "$as_me:14042: checking for _LARGE_FILES value needed for large files" >&5
14043 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14044 if test "${ac_cv_sys_large_files+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 ac_cv_sys_large_files=no
14049 cat >"conftest.$ac_ext" <<_ACEOF
14050 #line 14050 "configure"
14051 #include "confdefs.h"
14052 #include <sys/types.h>
14053 /* Check that off_t can represent 2**63 - 1 correctly.
14054 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14055 since some C++ compilers masquerading as C compilers
14056 incorrectly reject 9223372036854775807. */
14057 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14058 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14059 && LARGE_OFF_T % 2147483647 == 1)
14069 rm -f "conftest.$ac_objext"
14070 if { (eval echo "$as_me:14070: \"$ac_compile\"") >&5
14071 (eval $ac_compile) 2>&5
14073 echo "$as_me:14073: \$? = $ac_status" >&5
14074 (exit "$ac_status"); } &&
14075 { ac_try='test -s "conftest.$ac_objext"'
14076 { (eval echo "$as_me:14076: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14079 echo "$as_me:14079: \$? = $ac_status" >&5
14080 (exit "$ac_status"); }; }; then
14083 echo "$as_me: failed program was:" >&5
14084 cat "conftest.$ac_ext" >&5
14086 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14087 cat >"conftest.$ac_ext" <<_ACEOF
14088 #line 14088 "configure"
14089 #include "confdefs.h"
14090 #define _LARGE_FILES 1
14091 #include <sys/types.h>
14092 /* Check that off_t can represent 2**63 - 1 correctly.
14093 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14094 since some C++ compilers masquerading as C compilers
14095 incorrectly reject 9223372036854775807. */
14096 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14097 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14098 && LARGE_OFF_T % 2147483647 == 1)
14108 rm -f "conftest.$ac_objext"
14109 if { (eval echo "$as_me:14109: \"$ac_compile\"") >&5
14110 (eval $ac_compile) 2>&5
14112 echo "$as_me:14112: \$? = $ac_status" >&5
14113 (exit "$ac_status"); } &&
14114 { ac_try='test -s "conftest.$ac_objext"'
14115 { (eval echo "$as_me:14115: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14118 echo "$as_me:14118: \$? = $ac_status" >&5
14119 (exit "$ac_status"); }; }; then
14120 ac_cv_sys_large_files=1; break
14122 echo "$as_me: failed program was:" >&5
14123 cat "conftest.$ac_ext" >&5
14125 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14129 echo "$as_me:14129: result: $ac_cv_sys_large_files" >&5
14130 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
14131 if test "$ac_cv_sys_large_files" != no; then
14133 cat >>confdefs.h <<EOF
14134 #define _LARGE_FILES $ac_cv_sys_large_files
14141 if test "$enable_largefile" != no ; then
14142 echo "$as_me:14142: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14143 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
14144 if test "${ac_cv_sys_largefile_source+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 ac_cv_sys_largefile_source=no
14149 cat >"conftest.$ac_ext" <<_ACEOF
14150 #line 14150 "configure"
14151 #include "confdefs.h"
14161 rm -f "conftest.$ac_objext"
14162 if { (eval echo "$as_me:14162: \"$ac_compile\"") >&5
14163 (eval $ac_compile) 2>&5
14165 echo "$as_me:14165: \$? = $ac_status" >&5
14166 (exit "$ac_status"); } &&
14167 { ac_try='test -s "conftest.$ac_objext"'
14168 { (eval echo "$as_me:14168: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14171 echo "$as_me:14171: \$? = $ac_status" >&5
14172 (exit "$ac_status"); }; }; then
14175 echo "$as_me: failed program was:" >&5
14176 cat "conftest.$ac_ext" >&5
14178 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14179 cat >"conftest.$ac_ext" <<_ACEOF
14180 #line 14180 "configure"
14181 #include "confdefs.h"
14182 #define _LARGEFILE_SOURCE 1
14192 rm -f "conftest.$ac_objext"
14193 if { (eval echo "$as_me:14193: \"$ac_compile\"") >&5
14194 (eval $ac_compile) 2>&5
14196 echo "$as_me:14196: \$? = $ac_status" >&5
14197 (exit "$ac_status"); } &&
14198 { ac_try='test -s "conftest.$ac_objext"'
14199 { (eval echo "$as_me:14199: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14202 echo "$as_me:14202: \$? = $ac_status" >&5
14203 (exit "$ac_status"); }; }; then
14204 ac_cv_sys_largefile_source=1; break
14206 echo "$as_me: failed program was:" >&5
14207 cat "conftest.$ac_ext" >&5
14209 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14213 echo "$as_me:14213: result: $ac_cv_sys_largefile_source" >&5
14214 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
14215 if test "$ac_cv_sys_largefile_source" != no; then
14217 cat >>confdefs.h <<EOF
14218 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14224 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14225 # in glibc 2.1.3, but that breaks too many other things.
14226 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14227 echo "$as_me:14227: checking for fseeko" >&5
14228 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
14229 if test "${ac_cv_func_fseeko+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 cat >"conftest.$ac_ext" <<_ACEOF
14233 #line 14233 "configure"
14234 #include "confdefs.h"
14239 return fseeko && fseeko (stdin, 0, 0);
14244 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14245 if { (eval echo "$as_me:14245: \"$ac_link\"") >&5
14246 (eval $ac_link) 2>&5
14248 echo "$as_me:14248: \$? = $ac_status" >&5
14249 (exit "$ac_status"); } &&
14250 { ac_try='test -s "conftest$ac_exeext"'
14251 { (eval echo "$as_me:14251: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14254 echo "$as_me:14254: \$? = $ac_status" >&5
14255 (exit "$ac_status"); }; }; then
14256 ac_cv_func_fseeko=yes
14258 echo "$as_me: failed program was:" >&5
14259 cat "conftest.$ac_ext" >&5
14260 ac_cv_func_fseeko=no
14262 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14264 echo "$as_me:14264: result: $ac_cv_func_fseeko" >&5
14265 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
14266 if test $ac_cv_func_fseeko = yes; then
14268 cat >>confdefs.h <<\EOF
14269 #define HAVE_FSEEKO 1
14274 # Normally we would collect these definitions in the config.h,
14275 # but (like _XOPEN_SOURCE), some environments rely on having these
14276 # defined before any of the system headers are included. Another
14277 # case comes up with C++, e.g., on AIX the compiler compiles the
14278 # header files by themselves before looking at the body files it is
14279 # told to compile. For ncurses, those header files do not include
14281 if test "$ac_cv_sys_large_files" != no
14284 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14285 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
14288 if test "$ac_cv_sys_largefile_source" != no
14291 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14292 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
14295 if test "$ac_cv_sys_file_offset_bits" != no
14298 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14299 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
14303 echo "$as_me:14303: checking whether to use struct dirent64" >&5
14304 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
14305 if test "${cf_cv_struct_dirent64+set}" = set; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 cat >"conftest.$ac_ext" <<_ACEOF
14310 #line 14310 "configure"
14311 #include "confdefs.h"
14313 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
14314 #include <sys/types.h>
14315 #include <dirent.h>
14321 /* if transitional largefile support is setup, this is true */
14322 extern struct dirent64 * readdir(DIR *);
14323 struct dirent64 *x = readdir((DIR *)0);
14324 struct dirent *y = readdir((DIR *)0);
14332 rm -f "conftest.$ac_objext"
14333 if { (eval echo "$as_me:14333: \"$ac_compile\"") >&5
14334 (eval $ac_compile) 2>&5
14336 echo "$as_me:14336: \$? = $ac_status" >&5
14337 (exit "$ac_status"); } &&
14338 { ac_try='test -s "conftest.$ac_objext"'
14339 { (eval echo "$as_me:14339: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14342 echo "$as_me:14342: \$? = $ac_status" >&5
14343 (exit "$ac_status"); }; }; then
14344 cf_cv_struct_dirent64=yes
14346 echo "$as_me: failed program was:" >&5
14347 cat "conftest.$ac_ext" >&5
14348 cf_cv_struct_dirent64=no
14350 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14353 echo "$as_me:14353: result: $cf_cv_struct_dirent64" >&5
14354 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
14355 test "$cf_cv_struct_dirent64" = yes &&
14356 cat >>confdefs.h <<\EOF
14357 #define HAVE_STRUCT_DIRENT64 1
14362 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
14363 echo "$as_me:14363: checking if you want tparm not to use X/Open fixed-parameter list" >&5
14364 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
14366 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
14367 if test "${enable_tparm_varargs+set}" = set; then
14368 enableval="$enable_tparm_varargs"
14369 with_tparm_varargs=$enableval
14371 with_tparm_varargs=yes
14373 echo "$as_me:14373: result: $with_tparm_varargs" >&5
14374 echo "${ECHO_T}$with_tparm_varargs" >&6
14375 NCURSES_TPARM_VARARGS=0
14376 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
14378 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
14379 if test "$with_ticlib" != no ; then
14380 echo "$as_me:14380: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
14381 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
14383 # Check whether --enable-tic-depends or --disable-tic-depends was given.
14384 if test "${enable_tic_depends+set}" = set; then
14385 enableval="$enable_tic_depends"
14386 with_tic_depends=$enableval
14388 with_tic_depends=yes
14390 echo "$as_me:14390: result: $with_tic_depends" >&5
14391 echo "${ECHO_T}$with_tic_depends" >&6
14393 with_tic_depends=no
14396 ### use option --enable-wattr-macros to enable wattr* macros in curses.h
14397 echo "$as_me:14397: checking if you want to enable wattr* macros" >&5
14398 echo $ECHO_N "checking if you want to enable wattr* macros... $ECHO_C" >&6
14400 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
14401 if test "${enable_wattr_macros+set}" = set; then
14402 enableval="$enable_wattr_macros"
14403 with_wattr_macros=$enableval
14405 with_wattr_macros=no
14407 if [ "x$with_wattr_macros" != xyes ]; then
14408 NCURSES_WATTR_MACROS=0
14409 echo "$as_me:14409: result: no" >&5
14410 echo "${ECHO_T}no" >&6
14412 NCURSES_WATTR_MACROS=1
14413 echo "$as_me:14413: result: yes" >&5
14414 echo "${ECHO_T}yes" >&6
14417 echo "$as_me:14417: checking for X11 rgb file" >&5
14418 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
14420 # Check whether --with-x11-rgb or --without-x11-rgb was given.
14421 if test "${with_x11_rgb+set}" = set; then
14422 withval="$with_x11_rgb"
14428 if test "x$RGB_PATH" = xauto
14430 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
14432 /opt/local/share/X11/rgb.txt \
14433 /opt/X11/share/X11/rgb.txt \
14434 /usr/share/X11/rgb.txt \
14435 /usr/X11/share/X11/rgb.txt \
14436 /usr/X11/lib/X11/rgb.txt \
14437 /usr/lib/X11/rgb.txt \
14439 /usr/pkg/lib/X11/rgb.txt \
14440 /usr/X11R7/lib/X11/rgb.txt \
14441 /usr/X11R6/lib/X11/rgb.txt \
14442 /usr/X11R5/lib/X11/rgb.txt \
14443 /usr/X11R4/lib/X11/rgb.txt \
14444 /usr/local/lib/X11/rgb.txt \
14445 /usr/local/share/X11/rgb.txt \
14446 /usr/lib64/X11/rgb.txt
14448 if test -f "$cf_path" ; then
14449 RGB_PATH="$cf_path"
14456 if test "x$prefix" != xNONE; then
14457 cf_path_syntax="$prefix"
14459 cf_path_syntax="$ac_default_prefix"
14462 case ".$cf_path" in
14463 (.\$\(*\)*|.\'*\'*)
14467 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
14469 (.\$\{*prefix\}*|.\$\{*dir\}*)
14470 eval cf_path="$cf_path"
14471 case ".$cf_path" in
14473 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
14478 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
14481 { { echo "$as_me:14481: error: expected a pathname, not \"$cf_path\"" >&5
14482 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
14483 { (exit 1); exit 1; }; }
14489 echo "$as_me:14489: result: $RGB_PATH" >&5
14490 echo "${ECHO_T}$RGB_PATH" >&6
14492 cat >>confdefs.h <<EOF
14493 #define RGB_PATH "$cf_path"
14497 if test "$RGB_PATH" = no
14502 ### use option --with-bool to override bool's type
14503 echo "$as_me:14503: checking for type of bool" >&5
14504 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
14506 # Check whether --with-bool or --without-bool was given.
14507 if test "${with_bool+set}" = set; then
14508 withval="$with_bool"
14509 NCURSES_BOOL="$withval"
14513 echo "$as_me:14513: result: $NCURSES_BOOL" >&5
14514 echo "${ECHO_T}$NCURSES_BOOL" >&6
14516 echo "$as_me:14516: checking for alternate terminal capabilities file" >&5
14517 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
14519 # Check whether --with-caps or --without-caps was given.
14520 if test "${with_caps+set}" = set; then
14521 withval="$with_caps"
14522 TERMINFO_CAPS=Caps.$withval
14526 if test ! -f "${srcdir}/include/${TERMINFO_CAPS}"
14528 { echo "$as_me:14528: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&5
14529 echo "$as_me: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&2;}
14532 echo "$as_me:14532: result: $TERMINFO_CAPS" >&5
14533 echo "${ECHO_T}$TERMINFO_CAPS" >&6
14535 ### use option --with-chtype to override chtype's type
14536 echo "$as_me:14536: checking for type of chtype" >&5
14537 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
14539 # Check whether --with-chtype or --without-chtype was given.
14540 if test "${with_chtype+set}" = set; then
14541 withval="$with_chtype"
14542 NCURSES_CHTYPE="$withval"
14544 NCURSES_CHTYPE=$cf_dft_chtype
14546 echo "$as_me:14546: result: $NCURSES_CHTYPE" >&5
14547 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
14549 ### use option --with-ospeed to override ospeed's type
14550 echo "$as_me:14550: checking for type of ospeed" >&5
14551 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
14553 # Check whether --with-ospeed or --without-ospeed was given.
14554 if test "${with_ospeed+set}" = set; then
14555 withval="$with_ospeed"
14556 NCURSES_OSPEED="$withval"
14558 NCURSES_OSPEED=short
14560 echo "$as_me:14560: result: $NCURSES_OSPEED" >&5
14561 echo "${ECHO_T}$NCURSES_OSPEED" >&6
14563 ### use option --with-mmask-t to override mmask_t's type
14564 echo "$as_me:14564: checking for type of mmask_t" >&5
14565 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
14567 # Check whether --with-mmask-t or --without-mmask-t was given.
14568 if test "${with_mmask_t+set}" = set; then
14569 withval="$with_mmask_t"
14570 NCURSES_MMASK_T="$withval"
14572 NCURSES_MMASK_T=$cf_dft_mmask_t
14574 echo "$as_me:14574: result: $NCURSES_MMASK_T" >&5
14575 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
14577 ### use option --with-ccharw-max to override CCHARW_MAX size
14578 echo "$as_me:14578: checking for size CCHARW_MAX" >&5
14579 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
14581 # Check whether --with-ccharw-max or --without-ccharw-max was given.
14582 if test "${with_ccharw_max+set}" = set; then
14583 withval="$with_ccharw_max"
14584 NCURSES_CCHARW_MAX="$withval"
14586 NCURSES_CCHARW_MAX=$cf_dft_ccharw_max
14588 echo "$as_me:14588: result: $NCURSES_CCHARW_MAX" >&5
14589 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
14591 echo "$as_me:14591: checking for signed char" >&5
14592 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
14593 if test "${ac_cv_type_signed_char+set}" = set; then
14594 echo $ECHO_N "(cached) $ECHO_C" >&6
14596 cat >"conftest.$ac_ext" <<_ACEOF
14597 #line 14597 "configure"
14598 #include "confdefs.h"
14599 $ac_includes_default
14603 if ((signed char *) 0)
14605 if (sizeof (signed char))
14611 rm -f "conftest.$ac_objext"
14612 if { (eval echo "$as_me:14612: \"$ac_compile\"") >&5
14613 (eval $ac_compile) 2>&5
14615 echo "$as_me:14615: \$? = $ac_status" >&5
14616 (exit "$ac_status"); } &&
14617 { ac_try='test -s "conftest.$ac_objext"'
14618 { (eval echo "$as_me:14618: \"$ac_try\"") >&5
14619 (eval $ac_try) 2>&5
14621 echo "$as_me:14621: \$? = $ac_status" >&5
14622 (exit "$ac_status"); }; }; then
14623 ac_cv_type_signed_char=yes
14625 echo "$as_me: failed program was:" >&5
14626 cat "conftest.$ac_ext" >&5
14627 ac_cv_type_signed_char=no
14629 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14631 echo "$as_me:14631: result: $ac_cv_type_signed_char" >&5
14632 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
14634 echo "$as_me:14634: checking size of signed char" >&5
14635 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
14636 if test "${ac_cv_sizeof_signed_char+set}" = set; then
14637 echo $ECHO_N "(cached) $ECHO_C" >&6
14639 if test "$ac_cv_type_signed_char" = yes; then
14640 if test "$cross_compiling" = yes; then
14641 # Depending upon the size, compute the lo and hi bounds.
14642 cat >"conftest.$ac_ext" <<_ACEOF
14643 #line 14643 "configure"
14644 #include "confdefs.h"
14645 $ac_includes_default
14649 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
14654 rm -f "conftest.$ac_objext"
14655 if { (eval echo "$as_me:14655: \"$ac_compile\"") >&5
14656 (eval $ac_compile) 2>&5
14658 echo "$as_me:14658: \$? = $ac_status" >&5
14659 (exit "$ac_status"); } &&
14660 { ac_try='test -s "conftest.$ac_objext"'
14661 { (eval echo "$as_me:14661: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14664 echo "$as_me:14664: \$? = $ac_status" >&5
14665 (exit "$ac_status"); }; }; then
14668 cat >"conftest.$ac_ext" <<_ACEOF
14669 #line 14669 "configure"
14670 #include "confdefs.h"
14671 $ac_includes_default
14675 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14680 rm -f "conftest.$ac_objext"
14681 if { (eval echo "$as_me:14681: \"$ac_compile\"") >&5
14682 (eval $ac_compile) 2>&5
14684 echo "$as_me:14684: \$? = $ac_status" >&5
14685 (exit "$ac_status"); } &&
14686 { ac_try='test -s "conftest.$ac_objext"'
14687 { (eval echo "$as_me:14687: \"$ac_try\"") >&5
14688 (eval $ac_try) 2>&5
14690 echo "$as_me:14690: \$? = $ac_status" >&5
14691 (exit "$ac_status"); }; }; then
14692 ac_hi=$ac_mid; break
14694 echo "$as_me: failed program was:" >&5
14695 cat "conftest.$ac_ext" >&5
14696 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
14698 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14701 echo "$as_me: failed program was:" >&5
14702 cat "conftest.$ac_ext" >&5
14705 cat >"conftest.$ac_ext" <<_ACEOF
14706 #line 14706 "configure"
14707 #include "confdefs.h"
14708 $ac_includes_default
14712 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
14717 rm -f "conftest.$ac_objext"
14718 if { (eval echo "$as_me:14718: \"$ac_compile\"") >&5
14719 (eval $ac_compile) 2>&5
14721 echo "$as_me:14721: \$? = $ac_status" >&5
14722 (exit "$ac_status"); } &&
14723 { ac_try='test -s "conftest.$ac_objext"'
14724 { (eval echo "$as_me:14724: \"$ac_try\"") >&5
14725 (eval $ac_try) 2>&5
14727 echo "$as_me:14727: \$? = $ac_status" >&5
14728 (exit "$ac_status"); }; }; then
14729 ac_lo=$ac_mid; break
14731 echo "$as_me: failed program was:" >&5
14732 cat "conftest.$ac_ext" >&5
14733 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
14735 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14738 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14739 # Binary search between lo and hi bounds.
14740 while test "x$ac_lo" != "x$ac_hi"; do
14741 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
14742 cat >"conftest.$ac_ext" <<_ACEOF
14743 #line 14743 "configure"
14744 #include "confdefs.h"
14745 $ac_includes_default
14749 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14754 rm -f "conftest.$ac_objext"
14755 if { (eval echo "$as_me:14755: \"$ac_compile\"") >&5
14756 (eval $ac_compile) 2>&5
14758 echo "$as_me:14758: \$? = $ac_status" >&5
14759 (exit "$ac_status"); } &&
14760 { ac_try='test -s "conftest.$ac_objext"'
14761 { (eval echo "$as_me:14761: \"$ac_try\"") >&5
14762 (eval $ac_try) 2>&5
14764 echo "$as_me:14764: \$? = $ac_status" >&5
14765 (exit "$ac_status"); }; }; then
14768 echo "$as_me: failed program was:" >&5
14769 cat "conftest.$ac_ext" >&5
14770 ac_lo=`expr "$ac_mid" + 1`
14772 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14774 ac_cv_sizeof_signed_char=$ac_lo
14776 if test "$cross_compiling" = yes; then
14777 { { echo "$as_me:14777: error: cannot run test program while cross compiling" >&5
14778 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14779 { (exit 1); exit 1; }; }
14781 cat >"conftest.$ac_ext" <<_ACEOF
14782 #line 14782 "configure"
14783 #include "confdefs.h"
14784 $ac_includes_default
14788 FILE *f = fopen ("conftest.val", "w");
14790 $ac_main_return (1);
14791 fprintf (f, "%ld", (long)(sizeof (signed char)));
14797 rm -f "conftest$ac_exeext"
14798 if { (eval echo "$as_me:14798: \"$ac_link\"") >&5
14799 (eval $ac_link) 2>&5
14801 echo "$as_me:14801: \$? = $ac_status" >&5
14802 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
14803 { (eval echo "$as_me:14803: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14806 echo "$as_me:14806: \$? = $ac_status" >&5
14807 (exit "$ac_status"); }; }; then
14808 ac_cv_sizeof_signed_char=`cat conftest.val`
14810 echo "$as_me: program exited with status $ac_status" >&5
14811 echo "$as_me: failed program was:" >&5
14812 cat "conftest.$ac_ext" >&5
14814 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14819 ac_cv_sizeof_signed_char=0
14822 echo "$as_me:14822: result: $ac_cv_sizeof_signed_char" >&5
14823 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
14824 cat >>confdefs.h <<EOF
14825 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14828 if test "$ac_cv_sizeof_signed_char" = 1 ; then
14829 NCURSES_SBOOL="signed char"
14831 NCURSES_SBOOL="char"
14833 echo "$as_me:14833: checking if you want to use signed Boolean array in term.h" >&5
14834 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
14836 # Check whether --enable-signed-char or --disable-signed-char was given.
14837 if test "${enable_signed_char+set}" = set; then
14838 enableval="$enable_signed_char"
14839 with_signed_char=$enableval
14841 with_signed_char=$cf_dft_signed_char
14843 echo "$as_me:14843: result: $with_signed_char" >&5
14844 echo "${ECHO_T}$with_signed_char" >&6
14845 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
14847 ### use option --with-tparm-arg to override tparm's argument type
14848 echo "$as_me:14848: checking for type of tparm args" >&5
14849 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
14851 # Check whether --with-tparm-arg or --without-tparm-arg was given.
14852 if test "${with_tparm_arg+set}" = set; then
14853 withval="$with_tparm_arg"
14854 NCURSES_TPARM_ARG="$withval"
14856 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
14858 echo "$as_me:14858: result: $NCURSES_TPARM_ARG" >&5
14859 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
14861 ### Enable compiling-in rcs id's
14862 echo "$as_me:14862: checking if RCS identifiers should be compiled-in" >&5
14863 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
14865 # Check whether --with-rcs-ids or --without-rcs-ids was given.
14866 if test "${with_rcs_ids+set}" = set; then
14867 withval="$with_rcs_ids"
14868 with_rcs_ids=$withval
14872 echo "$as_me:14872: result: $with_rcs_ids" >&5
14873 echo "${ECHO_T}$with_rcs_ids" >&6
14874 test "x$with_rcs_ids" = xyes &&
14875 cat >>confdefs.h <<\EOF
14876 #define USE_RCS_IDS 1
14879 ###############################################################################
14881 echo "$as_me:14881: checking format of man-pages" >&5
14882 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
14884 # Check whether --with-manpage-format or --without-manpage-format was given.
14885 if test "${with_manpage_format+set}" = set; then
14886 withval="$with_manpage_format"
14887 MANPAGE_FORMAT=$withval
14889 MANPAGE_FORMAT=unknown
14892 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
14893 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
14897 case "$MANPAGE_FORMAT" in
14899 if test -z "$MANPATH" ; then
14900 MANPATH="/usr/man:/usr/share/man"
14903 # look for the 'date' man-page (it is most likely to be installed!)
14909 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
14910 for cf_dir in $MANPATH; do
14911 test -z "$cf_dir" && cf_dir=/usr/man
14912 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
14914 cf_test=`echo "$cf_name" | sed -e 's/*//'`
14915 if test "x$cf_test" = "x$cf_name" ; then
14918 (*.bz2) MANPAGE_FORMAT="$MANPAGE_FORMAT bzip2";;
14919 (*.xz) MANPAGE_FORMAT="$MANPAGE_FORMAT xz";;
14920 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
14921 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
14922 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
14923 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
14937 # if we found a match in either man* or cat*, stop looking
14938 if test -n "$MANPAGE_FORMAT" ; then
14940 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
14941 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
14947 test "$cf_found" = yes && break
14950 # only check the first directory in $MANPATH where we find manpages
14951 if test -n "$MANPAGE_FORMAT" ; then
14955 # if we did not find the example, just assume it is normal
14956 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
14960 for cf_option in $MANPAGE_FORMAT; do
14961 case "$cf_option" in
14962 (xz|bzip2|gzip|compress|BSDI|normal|formatted|catonly)
14965 cf_unknown="$cf_unknown $cf_option"
14972 echo "$as_me:14972: result: $MANPAGE_FORMAT" >&5
14973 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
14974 if test -n "$cf_unknown" ; then
14975 { echo "$as_me:14975: WARNING: Unexpected manpage-format $cf_unknown" >&5
14976 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
14979 cf_manpage_format=no
14980 cf_manpage_inboth=no
14981 cf_manpage_so_strip=
14982 cf_manpage_compress=
14984 for cf_item in $MANPAGE_FORMAT
14988 cf_manpage_format=yes
14989 cf_manpage_inboth=no
14992 cf_manpage_format=yes
14993 cf_manpage_inboth=yes
14996 cf_manpage_so_strip="Z"
14997 cf_manpage_compress=compress
15000 cf_manpage_so_strip="gz"
15001 cf_manpage_compress=gzip
15004 cf_manpage_so_strip="bz2"
15005 cf_manpage_compress=bzip2
15008 cf_manpage_so_strip="xz"
15009 cf_manpage_compress=xz
15014 echo "$as_me:15014: checking for manpage renaming" >&5
15015 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
15017 # Check whether --with-manpage-renames or --without-manpage-renames was given.
15018 if test "${with_manpage_renames+set}" = set; then
15019 withval="$with_manpage_renames"
15020 MANPAGE_RENAMES=$withval
15022 MANPAGE_RENAMES=yes
15025 case ".$MANPAGE_RENAMES" in
15029 # Debian 'man' program?
15030 if test -f /etc/debian_version ; then
15031 MANPAGE_RENAMES=man/man_db.renames
15038 if test "$MANPAGE_RENAMES" = man/man_db.renames ; then
15039 MANPAGE_RENAMES=`pwd`/$MANPAGE_RENAMES
15040 elif test "$MANPAGE_RENAMES" = no ; then
15042 elif test ! -f "$MANPAGE_RENAMES" ; then
15043 { { echo "$as_me:15043: error: not a filename: $MANPAGE_RENAMES" >&5
15044 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
15045 { (exit 1); exit 1; }; }
15048 echo "$as_me:15048: result: $MANPAGE_RENAMES" >&5
15049 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
15051 echo "$as_me:15051: checking if manpage aliases will be installed" >&5
15052 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
15054 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
15055 if test "${with_manpage_aliases+set}" = set; then
15056 withval="$with_manpage_aliases"
15057 MANPAGE_ALIASES=$withval
15059 MANPAGE_ALIASES=yes
15062 echo "$as_me:15062: result: $MANPAGE_ALIASES" >&5
15063 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
15067 cf_use_symlinks=yes
15074 MANPAGE_SYMLINKS=no
15075 if test "$MANPAGE_ALIASES" = yes ; then
15076 echo "$as_me:15076: checking if manpage symlinks should be used" >&5
15077 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
15079 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
15080 if test "${with_manpage_symlinks+set}" = set; then
15081 withval="$with_manpage_symlinks"
15082 MANPAGE_SYMLINKS=$withval
15084 MANPAGE_SYMLINKS=$cf_use_symlinks
15087 if test "$cf_use_symlinks" = no; then
15088 if test "$MANPAGE_SYMLINKS" = yes ; then
15089 { echo "$as_me:15089: WARNING: cannot make symlinks" >&5
15090 echo "$as_me: WARNING: cannot make symlinks" >&2;}
15091 MANPAGE_SYMLINKS=no
15095 echo "$as_me:15095: result: $MANPAGE_SYMLINKS" >&5
15096 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
15099 echo "$as_me:15099: checking for manpage tbl" >&5
15100 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
15102 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
15103 if test "${with_manpage_tbl+set}" = set; then
15104 withval="$with_manpage_tbl"
15105 MANPAGE_TBL=$withval
15110 echo "$as_me:15110: result: $MANPAGE_TBL" >&5
15111 echo "${ECHO_T}$MANPAGE_TBL" >&6
15113 if test "$prefix" = "NONE" ; then
15114 cf_prefix="$ac_default_prefix"
15116 cf_prefix="$prefix"
15119 test ! -d man && mkdir man
15121 cf_edit_man=./edit_man.sh
15122 cf_man_alias=`pwd`/man_alias.sed
15124 cat >$cf_edit_man <<CF_EOF
15126 # this script is generated by the configure-script CF_MAN_PAGES macro.
15128 prefix="$cf_prefix"
15129 datarootdir="$datarootdir"
15132 NCURSES_MAJOR="$NCURSES_MAJOR"
15133 NCURSES_MINOR="$NCURSES_MINOR"
15134 NCURSES_PATCH="$NCURSES_PATCH"
15136 NCURSES_OSPEED="$NCURSES_OSPEED"
15137 TERMINFO="$TERMINFO"
15140 INSTALL_DATA="$INSTALL_DATA"
15142 transform="$program_transform_name"
15144 TMP=\${TMPDIR:=/tmp}/man\$\$
15145 trap "rm -f \$TMP; exit 1" 1 2 3 15
15146 trap "rm -f \$TMP" 0
15158 top_srcdir=\$srcdir/..
15161 if test "\$form" = normal ; then
15162 if test "$cf_manpage_format" = yes ; then
15163 if test "$cf_manpage_inboth" = no ; then
15164 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
15168 cf_subdir=\$mandir/man
15169 cf_tables=$MANPAGE_TBL
15171 cf_subdir=\$mandir/cat
15175 # process the list of source-files
15176 for i in "\$@" ; do
15180 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
15181 if test "\$verb" = installing ; then
15182 if test ! -d "\$cf_subdir\${section}" ; then
15183 mkdir -p "\$cf_subdir\$section"
15187 # replace variables in man page
15188 if test ! -f "$cf_man_alias" ; then
15189 cat >>$cf_man_alias <<-CF_EOF2
15190 s,@DATADIR@,\$datadir,g
15191 s,@TERMINFO@,\${TERMINFO:="no default value"},g
15192 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
15193 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
15194 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
15195 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
15196 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
15199 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
15201 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15202 cf_name=`echo "$cf_name" | sed "$program_transform_name"`
15203 cat >>$cf_edit_man <<-CF_EOF
15204 s,@$cf_NAME@,$cf_name,g
15208 cat >>$cf_edit_man <<CF_EOF
15210 echo "...made $cf_man_alias"
15214 cf_source=\`basename "\$i"\`
15215 cf_full_alias=\$cf_source
15216 test ! -f "\$cf_full_alias" && cf_full_alias="\$srcdir/\$cf_full_alias"
15217 if test ! -f "\$cf_full_alias" ; then
15218 echo ".. skipped \$cf_source"
15223 if test "$MANPAGE_ALIASES" != no ; then
15224 cat >>$cf_edit_man <<CF_EOF
15226 cf_part_alias=\`echo \$cf_full_alias| sed -e 's,^.*/,,'\`
15227 test "$with_curses_h" = yes && nCurses=ncurses.3x
15228 aliases=\`sed -f "\$top_srcdir/man/manlinks.sed" "\$cf_full_alias" |sed -f "$cf_man_alias" | sort -u; test "\$cf_part_alias" = "\$nCurses" && echo curses\`
15232 if test "$MANPAGE_RENAMES" = no ; then
15233 cat >>$cf_edit_man <<CF_EOF
15234 # perform program transformations for section 1 man pages
15235 if test \$section = 1 ; then
15236 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
15238 cf_target=\$cf_subdir\${section}/\$cf_source
15242 cat >>$cf_edit_man <<CF_EOF
15243 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
15244 if test -z "\$cf_target" ; then
15245 echo "? missing rename for \$cf_source"
15246 cf_target="\$cf_source"
15248 cf_target="\$cf_subdir\${section}/\${cf_target}"
15253 cat >>$cf_edit_man <<CF_EOF
15254 sed -f "$cf_man_alias" \\
15257 if test "$MANPAGE_RENAMES" != no ; then
15258 cat >>$cf_edit_man <<CF_EOF
15259 < "\$i" | sed -f `pwd`/edit_man.sed >\$TMP
15262 cat >>$cf_edit_man <<CF_EOF
15267 cat >>$cf_edit_man <<CF_EOF
15268 if test \$cf_tables = yes ; then
15269 tbl \$TMP >\$TMP.out
15274 if test "$with_overwrite" != yes ; then
15275 cat >>$cf_edit_man <<CF_EOF
15276 sed -e "/\\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
15281 if test "$with_curses_h" != yes ; then
15282 cat >>$cf_edit_man <<CF_EOF
15283 sed -e "/\\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
15288 cat >>$cf_edit_man <<CF_EOF
15289 if test "\$form" = format ; then
15290 nroff -man \$TMP >\$TMP.out
15295 if test -n "$cf_manpage_compress" ; then
15296 cat >>$cf_edit_man <<CF_EOF
15297 if test "\$verb" = installing ; then
15298 if ( "$cf_manpage_compress" -f \$TMP )
15300 mv \$TMP.$cf_manpage_so_strip \$TMP
15303 cf_target="\$cf_target.$cf_manpage_so_strip"
15307 case "$MANPAGE_FORMAT" in
15309 cat >>$cf_edit_man <<CF_EOF
15310 if test "\$form" = format ; then
15311 # BSDI installs only .0 suffixes in the cat directories
15312 cf_target="\`echo \$cf_target|sed -e 's/\\.[1-9]\\+[a-z]*/.0/'\`"
15318 cat >>$cf_edit_man <<CF_EOF
15319 suffix=\`basename "\$cf_target" | sed -e 's%^[^.]*%%'\`
15320 if test "\$verb" = installing ; then
15321 echo "\$verb \$cf_target"
15322 \$INSTALL_DATA \$TMP "\$cf_target"
15323 test -d "\$cf_subdir\${section}" &&
15324 test -n "\$aliases" && (
15325 cd "\$cf_subdir\${section}" && (
15326 cf_source=\`echo "\$cf_target" |sed -e 's%^.*/\\([^/][^/]*/[^/][^/]*$\\)%\\1%'\`
15327 test -n "$cf_manpage_so_strip" && cf_source=\`echo "\$cf_source" |sed -e 's%\\.$cf_manpage_so_strip\$%%'\`
15328 cf_target=\`basename "\$cf_target"\`
15329 for cf_alias in \$aliases
15331 if test "\$section" = 1 ; then
15332 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
15335 if test "$MANPAGE_SYMLINKS" = yes ; then
15336 if test -f "\$cf_alias\${suffix}" ; then
15337 if ( cmp -s "\$cf_target" "\$cf_alias\${suffix}" )
15342 echo ".. \$verb alias \$cf_alias\${suffix}"
15346 cat >>$cf_edit_man <<CF_EOF
15347 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
15351 cat >>$cf_edit_man <<CF_EOF
15352 rm -f "\$cf_alias\${suffix}"
15353 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
15357 cat >>$cf_edit_man <<CF_EOF
15358 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
15359 echo ".so \$cf_source" >\$TMP
15361 if test -n "$cf_manpage_compress" ; then
15362 cat >>$cf_edit_man <<CF_EOF
15363 if test -n "$cf_manpage_so_strip" ; then
15364 "$cf_manpage_compress" -f \$TMP
15365 mv \$TMP.$cf_manpage_so_strip \$TMP
15369 cat >>$cf_edit_man <<CF_EOF
15370 echo ".. \$verb alias \$cf_alias\${suffix}"
15371 rm -f "\$cf_alias\${suffix}"
15372 \$INSTALL_DATA \$TMP "\$cf_alias\${suffix}"
15377 elif test "\$verb" = removing ; then
15378 test -f "\$cf_target" && (
15379 echo "\$verb \$cf_target"
15380 rm -f "\$cf_target"
15382 test -d "\$cf_subdir\${section}" &&
15383 test -n "\$aliases" && (
15384 cd "\$cf_subdir\${section}" && (
15385 for cf_alias in \$aliases
15387 if test "\$section" = 1 ; then
15388 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
15391 echo ".. \$verb alias \$cf_alias\${suffix}"
15392 rm -f "\$cf_alias\${suffix}"
15404 if test "$cf_manpage_inboth" = yes ; then
15405 if test "\$form" != format ; then
15406 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
15412 chmod 755 "$cf_edit_man"
15414 ###############################################################################
15416 ### Note that some functions (such as const) are normally disabled anyway.
15417 echo "$as_me:15417: checking if you want to build with function extensions" >&5
15418 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
15420 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
15421 if test "${enable_ext_funcs+set}" = set; then
15422 enableval="$enable_ext_funcs"
15423 with_ext_funcs=$enableval
15427 echo "$as_me:15427: result: $with_ext_funcs" >&5
15428 echo "${ECHO_T}$with_ext_funcs" >&6
15429 if test "x$with_ext_funcs" = xyes ; then
15430 NCURSES_EXT_FUNCS=1
15432 cat >>confdefs.h <<\EOF
15433 #define NCURSES_EXT_FUNCS 1
15436 cat >>confdefs.h <<\EOF
15437 #define HAVE_ASSUME_DEFAULT_COLORS 1
15440 cat >>confdefs.h <<\EOF
15441 #define HAVE_CURSES_VERSION 1
15444 cat >>confdefs.h <<\EOF
15445 #define HAVE_HAS_KEY 1
15448 cat >>confdefs.h <<\EOF
15449 #define HAVE_RESIZETERM 1
15452 cat >>confdefs.h <<\EOF
15453 #define HAVE_RESIZE_TERM 1
15456 cat >>confdefs.h <<\EOF
15457 #define HAVE_TERM_ENTRY_H 1
15460 cat >>confdefs.h <<\EOF
15461 #define HAVE_USE_DEFAULT_COLORS 1
15464 cat >>confdefs.h <<\EOF
15465 #define HAVE_USE_EXTENDED_NAMES 1
15468 cat >>confdefs.h <<\EOF
15469 #define HAVE_USE_SCREEN 1
15472 cat >>confdefs.h <<\EOF
15473 #define HAVE_USE_WINDOW 1
15476 cat >>confdefs.h <<\EOF
15477 #define HAVE_WRESIZE 1
15480 GENERATED_EXT_FUNCS=generated
15481 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
15483 NCURSES_EXT_FUNCS=0
15484 GENERATED_EXT_FUNCS=
15487 echo "$as_me:15487: checking if you want to build with SCREEN extensions" >&5
15488 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
15490 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
15491 if test "${enable_sp_funcs+set}" = set; then
15492 enableval="$enable_sp_funcs"
15493 with_sp_funcs=$enableval
15495 with_sp_funcs=$cf_dft_ext_spfuncs
15497 echo "$as_me:15497: result: $with_sp_funcs" >&5
15498 echo "${ECHO_T}$with_sp_funcs" >&6
15499 if test "x$with_sp_funcs" = xyes ; then
15502 cat >>confdefs.h <<\EOF
15503 #define NCURSES_SP_FUNCS 1
15506 cat >>confdefs.h <<\EOF
15507 #define HAVE_TPUTS_SP 1
15510 GENERATED_SP_FUNCS=generated
15513 GENERATED_SP_FUNCS=
15516 echo "$as_me:15516: checking if you want to build with terminal-driver" >&5
15517 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
15519 # Check whether --enable-term-driver or --disable-term-driver was given.
15520 if test "${enable_term_driver+set}" = set; then
15521 enableval="$enable_term_driver"
15522 with_term_driver=$enableval
15524 with_term_driver=no
15526 echo "$as_me:15526: result: $with_term_driver" >&5
15527 echo "${ECHO_T}$with_term_driver" >&6
15528 if test "x$with_term_driver" = xyes ; then
15530 cat >>confdefs.h <<\EOF
15531 #define USE_TERM_DRIVER 1
15534 if test "x$with_termlib" != xno ; then
15535 { { echo "$as_me:15535: error: The term-driver option conflicts with the termlib option" >&5
15536 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
15537 { (exit 1); exit 1; }; }
15539 if test "x$with_sp_funcs" != xyes ; then
15540 { { echo "$as_me:15540: error: The term-driver option relies upon sp-funcs" >&5
15541 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
15542 { (exit 1); exit 1; }; }
15546 ### use option --enable-const to turn on use of const beyond that in XSI.
15547 echo "$as_me:15547: checking for extended use of const keyword" >&5
15548 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
15550 # Check whether --enable-const or --disable-const was given.
15551 if test "${enable_const+set}" = set; then
15552 enableval="$enable_const"
15553 with_ext_const=$enableval
15555 with_ext_const=$cf_dft_ext_const
15557 echo "$as_me:15557: result: $with_ext_const" >&5
15558 echo "${ECHO_T}$with_ext_const" >&6
15559 NCURSES_CONST='/*nothing*/'
15560 if test "x$with_ext_const" = xyes ; then
15561 NCURSES_CONST=const
15564 ### use option --enable-ext-colors to turn on use of colors beyond 16.
15565 echo "$as_me:15565: checking if you want to use extended colors" >&5
15566 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
15568 # Check whether --enable-ext-colors or --disable-ext-colors was given.
15569 if test "${enable_ext_colors+set}" = set; then
15570 enableval="$enable_ext_colors"
15571 with_ext_colors=$enableval
15573 with_ext_colors=$cf_dft_ext_colors
15575 echo "$as_me:15575: result: $with_ext_colors" >&5
15576 echo "${ECHO_T}$with_ext_colors" >&6
15577 NCURSES_EXT_COLORS=0
15578 if test "x$with_ext_colors" = xyes ; then
15579 if test "x$with_widec" != xyes ; then
15580 { echo "$as_me:15580: WARNING: This option applies only to wide-character library" >&5
15581 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
15583 # cannot be ABI 5 since it changes sizeof(cchar_t)
15585 if test "${with_abi_version+set}" != set; then
15586 case "$cf_cv_rel_version" in
15588 cf_cv_rel_version=6.0
15589 cf_cv_abi_version=6
15590 cf_cv_abi_default=6
15591 { echo "$as_me:15591: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
15592 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
15597 NCURSES_EXT_COLORS=1
15599 cat >>confdefs.h <<\EOF
15600 #define NCURSES_EXT_COLORS 1
15603 cat >>confdefs.h <<\EOF
15604 #define HAVE_ALLOC_PAIR 1
15607 cat >>confdefs.h <<\EOF
15608 #define HAVE_INIT_EXTENDED_COLOR 1
15611 cat >>confdefs.h <<\EOF
15612 #define HAVE_RESET_COLOR_PAIRS 1
15618 ### use option --enable-ext-mouse to modify coding to support 5-button mice
15619 echo "$as_me:15619: checking if you want to use extended mouse encoding" >&5
15620 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
15622 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
15623 if test "${enable_ext_mouse+set}" = set; then
15624 enableval="$enable_ext_mouse"
15625 with_ext_mouse=$enableval
15627 with_ext_mouse=$cf_dft_ext_mouse
15629 echo "$as_me:15629: result: $with_ext_mouse" >&5
15630 echo "${ECHO_T}$with_ext_mouse" >&6
15631 if test "x$with_ext_mouse" = xyes ; then
15633 if test "${with_abi_version+set}" != set; then
15634 case "$cf_cv_rel_version" in
15636 cf_cv_rel_version=6.0
15637 cf_cv_abi_version=6
15638 cf_cv_abi_default=6
15639 { echo "$as_me:15639: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
15640 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
15647 case $cf_cv_abi_default in
15649 NCURSES_MOUSE_VERSION=1
15652 NCURSES_MOUSE_VERSION=2
15655 NCURSES_MOUSE_VERSION=3
15659 ### use option --enable-ext-putwin to turn on extended screendumps
15660 echo "$as_me:15660: checking if you want to use extended putwin/screendump" >&5
15661 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
15663 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
15664 if test "${enable_ext_putwin+set}" = set; then
15665 enableval="$enable_ext_putwin"
15666 with_ext_putwin=$enableval
15668 with_ext_putwin=$cf_dft_ext_putwin
15670 echo "$as_me:15670: result: $with_ext_putwin" >&5
15671 echo "${ECHO_T}$with_ext_putwin" >&6
15672 if test "x$with_ext_putwin" = xyes ; then
15674 cat >>confdefs.h <<\EOF
15675 #define NCURSES_EXT_PUTWIN 1
15680 echo "$as_me:15680: checking if you want \$NCURSES_NO_PADDING code" >&5
15681 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
15683 # Check whether --enable-no-padding or --disable-no-padding was given.
15684 if test "${enable_no_padding+set}" = set; then
15685 enableval="$enable_no_padding"
15686 with_no_padding=$enableval
15688 with_no_padding=$with_ext_funcs
15690 echo "$as_me:15690: result: $with_no_padding" >&5
15691 echo "${ECHO_T}$with_no_padding" >&6
15692 test "x$with_no_padding" = xyes &&
15693 cat >>confdefs.h <<\EOF
15694 #define NCURSES_NO_PADDING 1
15697 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
15698 echo "$as_me:15698: checking if you want SIGWINCH handler" >&5
15699 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
15701 # Check whether --enable-sigwinch or --disable-sigwinch was given.
15702 if test "${enable_sigwinch+set}" = set; then
15703 enableval="$enable_sigwinch"
15704 with_sigwinch=$enableval
15706 with_sigwinch=$with_ext_funcs
15708 echo "$as_me:15708: result: $with_sigwinch" >&5
15709 echo "${ECHO_T}$with_sigwinch" >&6
15710 test "x$with_sigwinch" = xyes &&
15711 cat >>confdefs.h <<\EOF
15712 #define USE_SIGWINCH 1
15715 ### use option --enable-tcap-names to allow user to define new capabilities
15716 echo "$as_me:15716: checking if you want user-definable terminal capabilities like termcap" >&5
15717 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
15719 # Check whether --enable-tcap-names or --disable-tcap-names was given.
15720 if test "${enable_tcap_names+set}" = set; then
15721 enableval="$enable_tcap_names"
15722 with_tcap_names=$enableval
15724 with_tcap_names=$with_ext_funcs
15726 echo "$as_me:15726: result: $with_tcap_names" >&5
15727 echo "${ECHO_T}$with_tcap_names" >&6
15729 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
15731 ##############################################################################
15733 echo "$as_me:15733: checking if you want to link with the pthread library" >&5
15734 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
15736 # Check whether --with-pthread or --without-pthread was given.
15737 if test "${with_pthread+set}" = set; then
15738 withval="$with_pthread"
15739 with_pthread=$withval
15743 echo "$as_me:15743: result: $with_pthread" >&5
15744 echo "${ECHO_T}$with_pthread" >&6
15746 if test "$with_pthread" != no ; then
15747 echo "$as_me:15747: checking for pthread.h" >&5
15748 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
15749 if test "${ac_cv_header_pthread_h+set}" = set; then
15750 echo $ECHO_N "(cached) $ECHO_C" >&6
15752 cat >"conftest.$ac_ext" <<_ACEOF
15753 #line 15753 "configure"
15754 #include "confdefs.h"
15755 #include <pthread.h>
15757 if { (eval echo "$as_me:15757: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15758 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15760 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15762 cat conftest.err >&5
15763 echo "$as_me:15763: \$? = $ac_status" >&5
15764 (exit "$ac_status"); } >/dev/null; then
15765 if test -s conftest.err; then
15766 ac_cpp_err=$ac_c_preproc_warn_flag
15773 if test -z "$ac_cpp_err"; then
15774 ac_cv_header_pthread_h=yes
15776 echo "$as_me: failed program was:" >&5
15777 cat "conftest.$ac_ext" >&5
15778 ac_cv_header_pthread_h=no
15780 rm -f conftest.err "conftest.$ac_ext"
15782 echo "$as_me:15782: result: $ac_cv_header_pthread_h" >&5
15783 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
15784 if test "$ac_cv_header_pthread_h" = yes; then
15786 cat >>confdefs.h <<\EOF
15787 #define HAVE_PTHREADS_H 1
15790 for cf_lib_pthread in pthread c_r
15792 echo "$as_me:15792: checking if we can link with the $cf_lib_pthread library" >&5
15793 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
15794 cf_save_LIBS="$LIBS"
15796 cf_add_libs="$LIBS"
15799 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15800 # filter duplicates
15801 for cf_add_1lib in $cf_add_0lib; do
15802 for cf_add_2lib in $cf_add_libs; do
15803 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15808 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15810 LIBS="$cf_add_libs"
15812 cat >"conftest.$ac_ext" <<_ACEOF
15813 #line 15813 "configure"
15814 #include "confdefs.h"
15816 #include <pthread.h>
15822 int rc = pthread_create(0,0,0,0);
15823 int r2 = pthread_mutexattr_settype(0, 0);
15829 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15830 if { (eval echo "$as_me:15830: \"$ac_link\"") >&5
15831 (eval $ac_link) 2>&5
15833 echo "$as_me:15833: \$? = $ac_status" >&5
15834 (exit "$ac_status"); } &&
15835 { ac_try='test -s "conftest$ac_exeext"'
15836 { (eval echo "$as_me:15836: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15839 echo "$as_me:15839: \$? = $ac_status" >&5
15840 (exit "$ac_status"); }; }; then
15843 echo "$as_me: failed program was:" >&5
15844 cat "conftest.$ac_ext" >&5
15847 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15848 LIBS="$cf_save_LIBS"
15849 echo "$as_me:15849: result: $with_pthread" >&5
15850 echo "${ECHO_T}$with_pthread" >&6
15851 test "$with_pthread" = yes && break
15854 if test "$with_pthread" = yes ; then
15856 cf_add_libs="$LIBS"
15859 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15860 # filter duplicates
15861 for cf_add_1lib in $cf_add_0lib; do
15862 for cf_add_2lib in $cf_add_libs; do
15863 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15868 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15870 LIBS="$cf_add_libs"
15872 cat >>confdefs.h <<\EOF
15873 #define HAVE_LIBPTHREADS 1
15877 { { echo "$as_me:15877: error: Cannot link with pthread library" >&5
15878 echo "$as_me: error: Cannot link with pthread library" >&2;}
15879 { (exit 1); exit 1; }; }
15886 if test "x$with_pthread" != xno; then
15887 echo "$as_me:15887: checking for pthread_kill" >&5
15888 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
15889 if test "${ac_cv_func_pthread_kill+set}" = set; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15892 cat >"conftest.$ac_ext" <<_ACEOF
15893 #line 15893 "configure"
15894 #include "confdefs.h"
15895 #define pthread_kill autoconf_temporary
15896 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15897 #undef pthread_kill
15903 /* We use char because int might match the return type of a gcc2
15904 builtin and then its argument prototype would still apply. */
15905 char pthread_kill (void);
15911 /* The GNU C library defines stubs for functions which it implements
15912 to always fail with ENOSYS. Some functions are actually named
15913 something starting with __ and the normal name is an alias. */
15914 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
15915 #error found stub for pthread_kill
15918 return pthread_kill ();
15923 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15924 if { (eval echo "$as_me:15924: \"$ac_link\"") >&5
15925 (eval $ac_link) 2>&5
15927 echo "$as_me:15927: \$? = $ac_status" >&5
15928 (exit "$ac_status"); } &&
15929 { ac_try='test -s "conftest$ac_exeext"'
15930 { (eval echo "$as_me:15930: \"$ac_try\"") >&5
15931 (eval $ac_try) 2>&5
15933 echo "$as_me:15933: \$? = $ac_status" >&5
15934 (exit "$ac_status"); }; }; then
15935 ac_cv_func_pthread_kill=yes
15937 echo "$as_me: failed program was:" >&5
15938 cat "conftest.$ac_ext" >&5
15939 ac_cv_func_pthread_kill=no
15941 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15943 echo "$as_me:15943: result: $ac_cv_func_pthread_kill" >&5
15944 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
15945 if test "$ac_cv_func_pthread_kill" = yes; then
15947 echo "$as_me:15947: checking if you want to allow EINTR in wgetch with pthreads" >&5
15948 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
15950 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
15951 if test "${enable_pthreads_eintr+set}" = set; then
15952 enableval="$enable_pthreads_eintr"
15953 use_pthreads_eintr=$enableval
15955 use_pthreads_eintr=no
15957 echo "$as_me:15957: result: $use_pthreads_eintr" >&5
15958 echo "${ECHO_T}$use_pthreads_eintr" >&6
15959 if test "x$use_pthreads_eintr" = xyes ; then
15961 cat >>confdefs.h <<\EOF
15962 #define USE_PTHREADS_EINTR 1
15968 echo "$as_me:15968: checking if you want to use weak-symbols for pthreads" >&5
15969 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
15971 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
15972 if test "${enable_weak_symbols+set}" = set; then
15973 enableval="$enable_weak_symbols"
15974 use_weak_symbols=$enableval
15976 use_weak_symbols=no
15978 echo "$as_me:15978: result: $use_weak_symbols" >&5
15979 echo "${ECHO_T}$use_weak_symbols" >&6
15980 if test "x$use_weak_symbols" = xyes ; then
15982 echo "$as_me:15982: checking if $CC supports weak symbols" >&5
15983 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
15984 if test "${cf_cv_weak_symbols+set}" = set; then
15985 echo $ECHO_N "(cached) $ECHO_C" >&6
15988 cat >"conftest.$ac_ext" <<_ACEOF
15989 #line 15989 "configure"
15990 #include "confdefs.h"
15997 #if defined(__GNUC__)
15998 # if defined __USE_ISOC99
15999 # define _cat_pragma(exp) _Pragma(#exp)
16000 # define _weak_pragma(exp) _cat_pragma(weak name)
16002 # define _weak_pragma(exp)
16004 # define _declare(name) __extension__ extern __typeof__(name) name
16005 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
16008 weak_symbol(fopen);
16014 rm -f "conftest.$ac_objext"
16015 if { (eval echo "$as_me:16015: \"$ac_compile\"") >&5
16016 (eval $ac_compile) 2>&5
16018 echo "$as_me:16018: \$? = $ac_status" >&5
16019 (exit "$ac_status"); } &&
16020 { ac_try='test -s "conftest.$ac_objext"'
16021 { (eval echo "$as_me:16021: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16024 echo "$as_me:16024: \$? = $ac_status" >&5
16025 (exit "$ac_status"); }; }; then
16026 cf_cv_weak_symbols=yes
16028 echo "$as_me: failed program was:" >&5
16029 cat "conftest.$ac_ext" >&5
16030 cf_cv_weak_symbols=no
16032 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16035 echo "$as_me:16035: result: $cf_cv_weak_symbols" >&5
16036 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
16039 cf_cv_weak_symbols=no
16042 if test "x$cf_cv_weak_symbols" = xyes ; then
16044 cat >>confdefs.h <<\EOF
16045 #define USE_WEAK_SYMBOLS 1
16052 if test "x$with_pthread" = "xyes" ; then
16054 cat >>confdefs.h <<\EOF
16055 #define USE_PTHREADS 1
16058 enable_reentrant=yes
16059 if test "x$cf_cv_weak_symbols" = xyes ; then
16062 cf_add_libs="$PRIVATE_LIBS"
16065 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16066 # filter duplicates
16067 for cf_add_1lib in $cf_add_0lib; do
16068 for cf_add_2lib in $cf_add_libs; do
16069 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16074 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16076 PRIVATE_LIBS="$cf_add_libs"
16081 # Reentrant code has to be opaque; there's little advantage to making ncurses
16082 # opaque outside of that, so there is no --enable-opaque option. We can use
16083 # this option without --with-pthreads, but this will be always set for
16085 echo "$as_me:16085: checking if you want reentrant code" >&5
16086 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
16088 # Check whether --enable-reentrant or --disable-reentrant was given.
16089 if test "${enable_reentrant+set}" = set; then
16090 enableval="$enable_reentrant"
16091 with_reentrant=$enableval
16095 echo "$as_me:16095: result: $with_reentrant" >&5
16096 echo "${ECHO_T}$with_reentrant" >&6
16097 if test "x$with_reentrant" = xyes ; then
16098 cf_cv_enable_reentrant=1
16099 cf_cv_enable_opaque="NCURSES_INTERNALS"
16101 if test "x$cf_cv_weak_symbols" = xyes ; then
16103 # remove pthread library from $LIBS
16104 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
16106 cf_add_libs="$TEST_LIBS"
16109 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16110 # filter duplicates
16111 for cf_add_1lib in $cf_add_0lib; do
16112 for cf_add_2lib in $cf_add_libs; do
16113 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16118 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16120 TEST_LIBS="$cf_add_libs"
16122 cf_add_libs="$TEST_LIBS2"
16125 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16126 # filter duplicates
16127 for cf_add_1lib in $cf_add_0lib; do
16128 for cf_add_2lib in $cf_add_libs; do
16129 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16134 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16136 TEST_LIBS2="$cf_add_libs"
16138 cf_add_libs="$PRIVATE_LIBS"
16141 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16142 # filter duplicates
16143 for cf_add_1lib in $cf_add_0lib; do
16144 for cf_add_2lib in $cf_add_libs; do
16145 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16150 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16152 PRIVATE_LIBS="$cf_add_libs"
16155 # when not using weak symbols but with_reentrant,
16156 # add 't' to the library suffix on all platforms
16157 # except cygwin, where we only do that if ALSO
16158 # compiling with full thread support.
16160 (*cygwin* | *msys*)
16161 if test "$with_pthread" = "yes" ; then
16162 if test "x$disable_lib_suffixes" = "xno" ; then
16163 LIB_SUFFIX="t${LIB_SUFFIX}"
16167 if test "x$disable_lib_suffixes" = "xno" ; then
16168 LIB_SUFFIX="t${LIB_SUFFIX}"
16174 cat >>confdefs.h <<\EOF
16175 #define USE_REENTRANT 1
16178 if test "${with_abi_version+set}" != set; then
16179 case "$cf_cv_rel_version" in
16181 cf_cv_rel_version=6.0
16182 cf_cv_abi_version=6
16183 cf_cv_abi_default=6
16184 { echo "$as_me:16184: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
16185 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
16191 cf_cv_enable_reentrant=0
16192 cf_cv_enable_opaque="NCURSES_OPAQUE"
16193 NCURSES_SIZE_T=$cf_dft_ordinate_type
16196 echo "$as_me:16196: checking if you want opaque curses-library structures" >&5
16197 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
16199 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
16200 if test "${enable_opaque_curses+set}" = set; then
16201 enableval="$enable_opaque_curses"
16202 test "$enableval" != yes && enableval=no
16203 if test "$enableval" != "no" ; then
16204 enable_opaque_curses=yes
16207 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
16208 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
16214 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
16215 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
16218 echo "$as_me:16218: result: $enable_opaque_curses" >&5
16219 echo "${ECHO_T}$enable_opaque_curses" >&6
16221 test "$cf_cv_enable_reentrant" = 1 && \
16222 test "$enable_opaque_curses" = no && \
16223 { { echo "$as_me:16223: error: reentrant configuration requires opaque library" >&5
16224 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
16225 { (exit 1); exit 1; }; }
16227 echo "$as_me:16227: checking if you want opaque form-library structures" >&5
16228 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
16230 # Check whether --enable-opaque-form or --disable-opaque-form was given.
16231 if test "${enable_opaque_form+set}" = set; then
16232 enableval="$enable_opaque_form"
16233 enable_opaque_form=yes
16235 enable_opaque_form=no
16237 echo "$as_me:16237: result: $enable_opaque_form" >&5
16238 echo "${ECHO_T}$enable_opaque_form" >&6
16240 echo "$as_me:16240: checking if you want opaque menu-library structures" >&5
16241 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
16243 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
16244 if test "${enable_opaque_menu+set}" = set; then
16245 enableval="$enable_opaque_menu"
16246 enable_opaque_menu=yes
16248 enable_opaque_menu=no
16250 echo "$as_me:16250: result: $enable_opaque_menu" >&5
16251 echo "${ECHO_T}$enable_opaque_menu" >&6
16253 echo "$as_me:16253: checking if you want opaque panel-library structures" >&5
16254 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
16256 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
16257 if test "${enable_opaque_panel+set}" = set; then
16258 enableval="$enable_opaque_panel"
16259 enable_opaque_panel=yes
16261 enable_opaque_panel=no
16263 echo "$as_me:16263: result: $enable_opaque_panel" >&5
16264 echo "${ECHO_T}$enable_opaque_panel" >&6
16266 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
16267 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
16268 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
16269 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
16271 ### Allow using a different wrap-prefix
16272 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
16273 echo "$as_me:16273: checking for prefix used to wrap public variables" >&5
16274 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
16276 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
16277 if test "${with_wrap_prefix+set}" = set; then
16278 withval="$with_wrap_prefix"
16279 NCURSES_WRAP_PREFIX=$withval
16281 NCURSES_WRAP_PREFIX=_nc_
16283 echo "$as_me:16283: result: $NCURSES_WRAP_PREFIX" >&5
16284 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
16286 NCURSES_WRAP_PREFIX=_nc_
16289 cat >>confdefs.h <<EOF
16290 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
16293 ###############################################################################
16294 # These options are relatively safe to experiment with.
16296 echo "$as_me:16296: checking if you want all development code" >&5
16297 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
16299 # Check whether --with-develop or --without-develop was given.
16300 if test "${with_develop+set}" = set; then
16301 withval="$with_develop"
16302 with_develop=$withval
16306 echo "$as_me:16306: result: $with_develop" >&5
16307 echo "${ECHO_T}$with_develop" >&6
16309 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
16310 echo "$as_me:16310: checking if you want hard-tabs code" >&5
16311 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
16313 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
16314 if test "${enable_hard_tabs+set}" = set; then
16315 enableval="$enable_hard_tabs"
16318 enable_hard_tabs=$with_develop
16320 echo "$as_me:16320: result: $enable_hard_tabs" >&5
16321 echo "${ECHO_T}$enable_hard_tabs" >&6
16322 test "x$enable_hard_tabs" = xyes &&
16323 cat >>confdefs.h <<\EOF
16324 #define USE_HARD_TABS 1
16327 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
16328 echo "$as_me:16328: checking if you want limited support for xmc" >&5
16329 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
16331 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
16332 if test "${enable_xmc_glitch+set}" = set; then
16333 enableval="$enable_xmc_glitch"
16336 enable_xmc_glitch=$with_develop
16338 echo "$as_me:16338: result: $enable_xmc_glitch" >&5
16339 echo "${ECHO_T}$enable_xmc_glitch" >&6
16340 test "x$enable_xmc_glitch" = xyes &&
16341 cat >>confdefs.h <<\EOF
16342 #define USE_XMC_SUPPORT 1
16345 ###############################################################################
16346 # These are just experimental, probably should not be in a package:
16348 echo "$as_me:16348: checking if you do not want to assume colors are white-on-black" >&5
16349 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
16351 # Check whether --enable-assumed-color or --disable-assumed-color was given.
16352 if test "${enable_assumed_color+set}" = set; then
16353 enableval="$enable_assumed_color"
16354 with_assumed_color=$enableval
16356 with_assumed_color=yes
16358 echo "$as_me:16358: result: $with_assumed_color" >&5
16359 echo "${ECHO_T}$with_assumed_color" >&6
16360 test "x$with_assumed_color" = xyes &&
16361 cat >>confdefs.h <<\EOF
16362 #define USE_ASSUMED_COLOR 1
16365 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
16366 echo "$as_me:16366: checking if you want hashmap scrolling-optimization code" >&5
16367 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
16369 # Check whether --enable-hashmap or --disable-hashmap was given.
16370 if test "${enable_hashmap+set}" = set; then
16371 enableval="$enable_hashmap"
16372 with_hashmap=$enableval
16376 echo "$as_me:16376: result: $with_hashmap" >&5
16377 echo "${ECHO_T}$with_hashmap" >&6
16378 test "x$with_hashmap" = xyes &&
16379 cat >>confdefs.h <<\EOF
16380 #define USE_HASHMAP 1
16383 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
16384 echo "$as_me:16384: checking if you want colorfgbg code" >&5
16385 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
16387 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
16388 if test "${enable_colorfgbg+set}" = set; then
16389 enableval="$enable_colorfgbg"
16390 with_colorfgbg=$enableval
16394 echo "$as_me:16394: result: $with_colorfgbg" >&5
16395 echo "${ECHO_T}$with_colorfgbg" >&6
16396 test "x$with_colorfgbg" = xyes &&
16397 cat >>confdefs.h <<\EOF
16398 #define USE_COLORFGBG 1
16401 ### use option --enable-fvisibility to turn on use of gcc-specific feature
16402 echo "$as_me:16402: checking if you want to use gcc -fvisibility option" >&5
16403 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
16405 # Check whether --enable-fvisibility or --disable-fvisibility was given.
16406 if test "${enable_fvisibility+set}" = set; then
16407 enableval="$enable_fvisibility"
16408 cf_with_fvisibility=$enableval
16410 cf_with_fvisibility=no
16412 echo "$as_me:16412: result: $cf_with_fvisibility" >&5
16413 echo "${ECHO_T}$cf_with_fvisibility" >&6
16416 NCURSES_CXX_IMPEXP=
16417 if test "x$cf_with_fvisibility" = xyes; then
16419 echo "$as_me:16419: checking if $CC -fvisibility=hidden option works" >&5
16420 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
16421 if test "${cf_cv_fvisibility_hidden+set}" = set; then
16422 echo $ECHO_N "(cached) $ECHO_C" >&6
16425 cf_save_cflags="$CFLAGS"
16426 CFLAGS="$CFLAGS -fvisibility=hidden"
16427 cat >"conftest.$ac_ext" <<_ACEOF
16428 #line 16428 "configure"
16429 #include "confdefs.h"
16431 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16437 if (somefunc()) return 1;
16443 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16444 if { (eval echo "$as_me:16444: \"$ac_link\"") >&5
16445 (eval $ac_link) 2>&5
16447 echo "$as_me:16447: \$? = $ac_status" >&5
16448 (exit "$ac_status"); } &&
16449 { ac_try='test -s "conftest$ac_exeext"'
16450 { (eval echo "$as_me:16450: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16453 echo "$as_me:16453: \$? = $ac_status" >&5
16454 (exit "$ac_status"); }; }; then
16455 cf_cv_fvisibility_hidden=yes
16457 echo "$as_me: failed program was:" >&5
16458 cat "conftest.$ac_ext" >&5
16459 cf_cv_fvisibility_hidden=no
16461 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16462 CFLAGS=$cf_save_cflags
16465 echo "$as_me:16465: result: $cf_cv_fvisibility_hidden" >&5
16466 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
16468 if test "x$cf_cv_fvisibility_hidden" = xyes
16474 cf_new_extra_cppflags=
16476 for cf_add_cflags in -fvisibility=hidden
16478 case "$cf_fix_cppflags" in
16480 case "$cf_add_cflags" in
16481 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16482 case "$cf_add_cflags" in
16484 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16486 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16487 && test -z "${cf_tst_cflags}" \
16488 && cf_fix_cppflags=yes
16490 if test "$cf_fix_cppflags" = yes ; then
16492 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16493 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16496 elif test "${cf_tst_cflags}" = "\"'" ; then
16498 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16499 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16505 case "$CPPFLAGS" in
16509 case "$cf_add_cflags" in
16511 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16513 CPPFLAGS=`echo "$CPPFLAGS" | \
16514 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16515 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16520 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16521 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16528 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16529 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16536 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16537 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16539 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16541 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16542 && test -z "${cf_tst_cflags}" \
16543 && cf_fix_cppflags=no
16548 if test -n "$cf_new_cflags" ; then
16550 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16551 CFLAGS="${CFLAGS}$cf_new_cflags"
16555 if test -n "$cf_new_cppflags" ; then
16557 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16558 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16562 if test -n "$cf_new_extra_cppflags" ; then
16564 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16565 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16569 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
16574 ac_cpp='$CXXCPP $CPPFLAGS'
16575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16576 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16578 ac_main_return="return"
16580 echo "$as_me:16580: checking if $CXX -fvisibility=hidden option works" >&5
16581 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
16582 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 cf_save_cflags="$CXXFLAGS"
16587 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
16588 cat >"conftest.$ac_ext" <<_ACEOF
16589 #line 16589 "configure"
16590 #include "confdefs.h"
16592 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16598 if (somefunc()) return 1;
16604 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16605 if { (eval echo "$as_me:16605: \"$ac_link\"") >&5
16606 (eval $ac_link) 2>&5
16608 echo "$as_me:16608: \$? = $ac_status" >&5
16609 (exit "$ac_status"); } &&
16610 { ac_try='test -s "conftest$ac_exeext"'
16611 { (eval echo "$as_me:16611: \"$ac_try\"") >&5
16612 (eval $ac_try) 2>&5
16614 echo "$as_me:16614: \$? = $ac_status" >&5
16615 (exit "$ac_status"); }; }; then
16616 cf_cv_fvisibility_hidden2=yes
16618 echo "$as_me: failed program was:" >&5
16619 cat "conftest.$ac_ext" >&5
16620 cf_cv_fvisibility_hidden2=no
16622 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16623 CXXFLAGS=$cf_save_cflags
16626 echo "$as_me:16626: result: $cf_cv_fvisibility_hidden2" >&5
16627 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
16629 if test "x$cf_cv_fvisibility_hidden2" = xyes
16632 cf_save_CXXFLAGS="$CFLAGS"
16638 cf_new_extra_cppflags=
16640 for cf_add_cflags in -fvisibility=hidden
16642 case "$cf_fix_cppflags" in
16644 case "$cf_add_cflags" in
16645 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16646 case "$cf_add_cflags" in
16648 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16650 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16651 && test -z "${cf_tst_cflags}" \
16652 && cf_fix_cppflags=yes
16654 if test "$cf_fix_cppflags" = yes ; then
16656 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16657 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16660 elif test "${cf_tst_cflags}" = "\"'" ; then
16662 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16663 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16669 case "$CPPFLAGS" in
16673 case "$cf_add_cflags" in
16675 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16677 CPPFLAGS=`echo "$CPPFLAGS" | \
16678 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16679 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16684 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16685 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16692 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16693 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16700 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16701 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16703 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16705 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16706 && test -z "${cf_tst_cflags}" \
16707 && cf_fix_cppflags=no
16712 if test -n "$cf_new_cflags" ; then
16714 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16715 CFLAGS="${CFLAGS}$cf_new_cflags"
16719 if test -n "$cf_new_cppflags" ; then
16721 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16722 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16726 if test -n "$cf_new_extra_cppflags" ; then
16728 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16729 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16734 CFLAGS="$cf_save_CXXFLAGS"
16736 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
16739 ac_cpp='$CPP $CPPFLAGS'
16740 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16741 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16743 ac_main_return="return"
16748 ### use option --enable-interop to turn on use of bindings used for interop
16749 echo "$as_me:16749: checking if you want interop bindings" >&5
16750 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
16752 # Check whether --enable-interop or --disable-interop was given.
16753 if test "${enable_interop+set}" = set; then
16754 enableval="$enable_interop"
16755 with_exp_interop=$enableval
16757 with_exp_interop=$cf_dft_interop
16759 echo "$as_me:16759: result: $with_exp_interop" >&5
16760 echo "${ECHO_T}$with_exp_interop" >&6
16762 NCURSES_INTEROP_FUNCS=0
16763 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
16765 echo "$as_me:16765: checking if you want experimental safe-sprintf code" >&5
16766 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
16768 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
16769 if test "${enable_safe_sprintf+set}" = set; then
16770 enableval="$enable_safe_sprintf"
16771 with_safe_sprintf=$enableval
16773 with_safe_sprintf=no
16775 echo "$as_me:16775: result: $with_safe_sprintf" >&5
16776 echo "${ECHO_T}$with_safe_sprintf" >&6
16778 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
16779 # when hashmap is used scroll hints are useless
16780 if test "$with_hashmap" = no ; then
16781 echo "$as_me:16781: checking if you want to experiment without scrolling-hints code" >&5
16782 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
16784 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
16785 if test "${enable_scroll_hints+set}" = set; then
16786 enableval="$enable_scroll_hints"
16787 with_scroll_hints=$enableval
16789 with_scroll_hints=yes
16791 echo "$as_me:16791: result: $with_scroll_hints" >&5
16792 echo "${ECHO_T}$with_scroll_hints" >&6
16793 test "x$with_scroll_hints" = xyes &&
16794 cat >>confdefs.h <<\EOF
16795 #define USE_SCROLL_HINTS 1
16800 echo "$as_me:16800: checking if you want wgetch-events code" >&5
16801 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
16803 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
16804 if test "${enable_wgetch_events+set}" = set; then
16805 enableval="$enable_wgetch_events"
16806 with_wgetch_events=$enableval
16808 with_wgetch_events=no
16810 echo "$as_me:16810: result: $with_wgetch_events" >&5
16811 echo "${ECHO_T}$with_wgetch_events" >&6
16812 if test "x$with_wgetch_events" = xyes ; then
16814 cat >>confdefs.h <<\EOF
16815 #define NCURSES_WGETCH_EVENTS 1
16818 NCURSES_WGETCH_EVENTS=1
16820 NCURSES_WGETCH_EVENTS=0
16823 case "$cf_cv_system_name" in
16824 (*mingw32*|*mingw64*|*-msvc*)
16825 echo "$as_me:16825: checking if you want experimental-Windows driver" >&5
16826 echo $ECHO_N "checking if you want experimental-Windows driver... $ECHO_C" >&6
16828 # Check whether --enable-exp-win32 or --disable-exp-win32 was given.
16829 if test "${enable_exp_win32+set}" = set; then
16830 enableval="$enable_exp_win32"
16831 with_exp_win32=$enableval
16835 echo "$as_me:16835: result: $with_exp_win32" >&5
16836 echo "${ECHO_T}$with_exp_win32" >&6
16837 if test "x$with_exp_win32" = xyes
16840 cat >>confdefs.h <<\EOF
16841 #define EXP_WIN32_DRIVER 1
16845 INTERNALS_HDR='$(INCDIR)/nc_win32.h'
16847 INTERNALS_HDR='$(INCDIR)/nc_mingw.h'
16857 ###############################################################################
16859 ### use option --disable-echo to suppress full display compiling commands
16861 echo "$as_me:16861: checking if you want to see long compiling messages" >&5
16862 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
16864 # Check whether --enable-echo or --disable-echo was given.
16865 if test "${enable_echo+set}" = set; then
16866 enableval="$enable_echo"
16867 test "$enableval" != no && enableval=yes
16868 if test "$enableval" != "yes" ; then
16871 ECHO_LD='@echo linking $@;'
16872 RULE_CC='@echo compiling $<'
16873 SHOW_CC='@echo compiling $@'
16895 echo "$as_me:16895: result: $enableval" >&5
16896 echo "${ECHO_T}$enableval" >&6
16898 if test "x$enable_echo" = xyes; then
16901 ECHO_LINK='@ echo linking $@ ... ;'
16902 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
16903 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
16906 # --disable-stripping is used for debugging
16908 echo "$as_me:16908: checking if you want to install stripped executables" >&5
16909 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
16911 # Check whether --enable-stripping or --disable-stripping was given.
16912 if test "${enable_stripping+set}" = set; then
16913 enableval="$enable_stripping"
16914 test "$enableval" != no && enableval=yes
16915 if test "$enableval" != "yes" ; then
16916 enable_stripping=no
16918 enable_stripping=yes
16922 enable_stripping=yes
16925 echo "$as_me:16925: result: $enable_stripping" >&5
16926 echo "${ECHO_T}$enable_stripping" >&6
16928 if test "$enable_stripping" = yes
16935 : "${INSTALL:=install}"
16936 echo "$as_me:16936: checking if install accepts -p option" >&5
16937 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
16938 if test "${cf_cv_install_p+set}" = set; then
16939 echo $ECHO_N "(cached) $ECHO_C" >&6
16946 if $INSTALL -p conftest.in conftest.out 2>/dev/null
16948 if test -f conftest.out/conftest.in
16950 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
16951 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
16952 if test -s conftest.err
16956 cf_cv_install_p=yes
16967 echo "$as_me:16967: result: $cf_cv_install_p" >&5
16968 echo "${ECHO_T}$cf_cv_install_p" >&6
16970 echo "$as_me:16970: checking if install needs to be told about ownership" >&5
16971 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
16972 case `$ac_config_guess` in
16981 echo "$as_me:16981: result: $with_install_o" >&5
16982 echo "${ECHO_T}$with_install_o" >&6
16983 if test "x$with_install_o" = xyes
16985 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'`"
16990 # If we're avoiding relinking of shared libraries during install, that is to
16991 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
16992 # the install program has "-p" (for preserving timestamps).
16993 cf_cv_do_reranlib=yes
16994 if test "x$cf_cv_install_p" = xyes
16996 if test "x$cf_cv_do_relink" != xyes
16998 cf_cv_do_reranlib=no
17000 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
17004 ### use option --enable-warnings to turn on all gcc warnings
17006 echo "$as_me:17006: checking if you want to use C11 _Noreturn feature" >&5
17007 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
17009 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
17010 if test "${enable_stdnoreturn+set}" = set; then
17011 enableval="$enable_stdnoreturn"
17012 test "$enableval" != yes && enableval=no
17013 if test "$enableval" != "no" ; then
17014 enable_stdnoreturn=yes
17016 enable_stdnoreturn=no
17020 enable_stdnoreturn=no
17023 echo "$as_me:17023: result: $enable_stdnoreturn" >&5
17024 echo "${ECHO_T}$enable_stdnoreturn" >&6
17026 if test $enable_stdnoreturn = yes; then
17027 echo "$as_me:17027: checking for C11 _Noreturn feature" >&5
17028 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
17029 if test "${cf_cv_c11_noreturn+set}" = set; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17032 cat >"conftest.$ac_ext" <<_ACEOF
17033 #line 17033 "configure"
17034 #include "confdefs.h"
17036 $ac_includes_default
17037 #include <stdnoreturn.h>
17038 static _Noreturn void giveup(void) { exit(0); }
17043 if (feof(stdin)) giveup()
17048 rm -f "conftest.$ac_objext"
17049 if { (eval echo "$as_me:17049: \"$ac_compile\"") >&5
17050 (eval $ac_compile) 2>&5
17052 echo "$as_me:17052: \$? = $ac_status" >&5
17053 (exit "$ac_status"); } &&
17054 { ac_try='test -s "conftest.$ac_objext"'
17055 { (eval echo "$as_me:17055: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17058 echo "$as_me:17058: \$? = $ac_status" >&5
17059 (exit "$ac_status"); }; }; then
17060 cf_cv_c11_noreturn=yes
17062 echo "$as_me: failed program was:" >&5
17063 cat "conftest.$ac_ext" >&5
17064 cf_cv_c11_noreturn=no
17066 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17069 echo "$as_me:17069: result: $cf_cv_c11_noreturn" >&5
17070 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
17072 cf_cv_c11_noreturn=no,
17075 if test "$cf_cv_c11_noreturn" = yes; then
17077 cat >>confdefs.h <<\EOF
17078 #define HAVE_STDNORETURN_H 1
17081 cat >>confdefs.h <<EOF
17082 #define STDC_NORETURN _Noreturn
17085 HAVE_STDNORETURN_H=1
17087 HAVE_STDNORETURN_H=0
17090 if test "$GCC" = yes || test "$GXX" = yes
17093 if test "$GCC" = yes || test "$GXX" = yes
17098 for cf_temp_scan in $CFLAGS
17100 case "x$cf_temp_scan" in
17103 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17104 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17109 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17110 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17115 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17116 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17121 if test "x$CFLAGS" != "x$cf_temp_flags"
17123 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
17125 echo "${as_me:-configure}:17125: testing repairing CFLAGS: $CFLAGS ..." 1>&5
17127 CFLAGS="$cf_temp_flags"
17128 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
17130 echo "${as_me:-configure}:17130: testing ... fixed $CFLAGS ..." 1>&5
17132 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17134 echo "${as_me:-configure}:17134: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17141 if test "$GCC" = yes || test "$GXX" = yes
17146 for cf_temp_scan in $CPPFLAGS
17148 case "x$cf_temp_scan" in
17151 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17152 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17157 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17158 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17163 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17164 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17169 if test "x$CPPFLAGS" != "x$cf_temp_flags"
17171 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
17173 echo "${as_me:-configure}:17173: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
17175 CPPFLAGS="$cf_temp_flags"
17176 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
17178 echo "${as_me:-configure}:17178: testing ... fixed $CPPFLAGS ..." 1>&5
17180 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17182 echo "${as_me:-configure}:17182: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17189 if test "$GCC" = yes || test "$GXX" = yes
17194 for cf_temp_scan in $LDFLAGS
17196 case "x$cf_temp_scan" in
17199 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17200 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17205 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17206 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17211 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17212 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17217 if test "x$LDFLAGS" != "x$cf_temp_flags"
17219 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
17221 echo "${as_me:-configure}:17221: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
17223 LDFLAGS="$cf_temp_flags"
17224 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
17226 echo "${as_me:-configure}:17226: testing ... fixed $LDFLAGS ..." 1>&5
17228 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17230 echo "${as_me:-configure}:17230: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17237 echo "$as_me:17237: checking if you want to turn on gcc warnings" >&5
17238 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
17240 # Check whether --enable-warnings or --disable-warnings was given.
17241 if test "${enable_warnings+set}" = set; then
17242 enableval="$enable_warnings"
17243 test "$enableval" != yes && enableval=no
17244 if test "$enableval" != "no" ; then
17245 enable_warnings=yes
17254 echo "$as_me:17254: result: $enable_warnings" >&5
17255 echo "${ECHO_T}$enable_warnings" >&6
17256 if test "$enable_warnings" = "yes"
17259 if test "x$have_x" = xyes; then
17261 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
17262 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
17263 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
17264 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
17265 for cf_X_CFLAGS in $X_CFLAGS
17267 case "x$cf_X_CFLAGS" in
17269 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
17272 CFLAGS="$CFLAGS $cf_X_CFLAGS"
17277 cat >"conftest.$ac_ext" <<_ACEOF
17278 #line 17278 "configure"
17279 #include "confdefs.h"
17281 #include <stdlib.h>
17282 #include <X11/Intrinsic.h>
17287 String foo = malloc(1); free((void*)foo)
17292 rm -f "conftest.$ac_objext"
17293 if { (eval echo "$as_me:17293: \"$ac_compile\"") >&5
17294 (eval $ac_compile) 2>&5
17296 echo "$as_me:17296: \$? = $ac_status" >&5
17297 (exit "$ac_status"); } &&
17298 { ac_try='test -s "conftest.$ac_objext"'
17299 { (eval echo "$as_me:17299: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17302 echo "$as_me:17302: \$? = $ac_status" >&5
17303 (exit "$ac_status"); }; }; then
17305 echo "$as_me:17305: checking for X11/Xt const-feature" >&5
17306 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
17307 if test "${cf_cv_const_x_string+set}" = set; then
17308 echo $ECHO_N "(cached) $ECHO_C" >&6
17311 cat >"conftest.$ac_ext" <<_ACEOF
17312 #line 17312 "configure"
17313 #include "confdefs.h"
17315 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
17316 #undef XTSTRINGDEFINES /* X11R5 and later */
17317 #include <stdlib.h>
17318 #include <X11/Intrinsic.h>
17323 String foo = malloc(1); *foo = 0
17328 rm -f "conftest.$ac_objext"
17329 if { (eval echo "$as_me:17329: \"$ac_compile\"") >&5
17330 (eval $ac_compile) 2>&5
17332 echo "$as_me:17332: \$? = $ac_status" >&5
17333 (exit "$ac_status"); } &&
17334 { ac_try='test -s "conftest.$ac_objext"'
17335 { (eval echo "$as_me:17335: \"$ac_try\"") >&5
17336 (eval $ac_try) 2>&5
17338 echo "$as_me:17338: \$? = $ac_status" >&5
17339 (exit "$ac_status"); }; }; then
17341 cf_cv_const_x_string=no
17344 echo "$as_me: failed program was:" >&5
17345 cat "conftest.$ac_ext" >&5
17347 cf_cv_const_x_string=yes
17350 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17353 echo "$as_me:17353: result: $cf_cv_const_x_string" >&5
17354 echo "${ECHO_T}$cf_cv_const_x_string" >&6
17356 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
17357 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
17358 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
17360 case "$cf_cv_const_x_string" in
17363 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17364 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
17369 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17370 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
17376 echo "$as_me: failed program was:" >&5
17377 cat "conftest.$ac_ext" >&5
17379 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17381 cat > "conftest.$ac_ext" <<EOF
17382 #line 17382 "${as_me:-configure}"
17383 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17385 if test "$INTEL_COMPILER" = yes
17387 # The "-wdXXX" options suppress warnings:
17388 # remark #1419: external declaration in primary source file
17389 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17390 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17391 # remark #193: zero used for undefined preprocessing identifier
17392 # remark #593: variable "curs_sb_left_arrow" was set but never used
17393 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17394 # remark #869: parameter "tw" was never referenced
17395 # remark #981: operands are evaluated in unspecified order
17396 # warning #279: controlling expression is constant
17398 { echo "$as_me:17398: checking for $CC warning options..." >&5
17399 echo "$as_me: checking for $CC warning options..." >&6;}
17400 cf_save_CFLAGS="$CFLAGS"
17401 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
17413 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17414 if { (eval echo "$as_me:17414: \"$ac_compile\"") >&5
17415 (eval $ac_compile) 2>&5
17417 echo "$as_me:17417: \$? = $ac_status" >&5
17418 (exit "$ac_status"); }; then
17419 test -n "$verbose" && echo "$as_me:17419: result: ... -$cf_opt" >&5
17420 echo "${ECHO_T}... -$cf_opt" >&6
17421 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17424 CFLAGS="$cf_save_CFLAGS"
17425 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
17427 { echo "$as_me:17427: checking for $CC warning options..." >&5
17428 echo "$as_me: checking for $CC warning options..." >&6;}
17429 cf_save_CFLAGS="$CFLAGS"
17431 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
17432 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
17433 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
17434 for cf_opt in W Wall \
17435 Wbad-function-cast \
17438 Wdeclaration-after-statement \
17441 Wmissing-declarations \
17442 Wmissing-prototypes \
17446 Wstrict-prototypes \
17447 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
17449 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17450 if { (eval echo "$as_me:17450: \"$ac_compile\"") >&5
17451 (eval $ac_compile) 2>&5
17453 echo "$as_me:17453: \$? = $ac_status" >&5
17454 (exit "$ac_status"); }; then
17455 test -n "$verbose" && echo "$as_me:17455: result: ... -$cf_opt" >&5
17456 echo "${ECHO_T}... -$cf_opt" >&6
17459 case "$GCC_VERSION" in
17461 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17463 echo "${as_me:-configure}:17463: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17469 case "$GCC_VERSION" in
17471 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17473 echo "${as_me:-configure}:17473: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17479 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17482 CFLAGS="$cf_save_CFLAGS"
17488 if test "$GCC" = yes || test "$GXX" = yes
17490 cat > conftest.i <<EOF
17492 #define GCC_PRINTF 0
17495 #define GCC_SCANF 0
17497 #ifndef GCC_NORETURN
17498 #define GCC_NORETURN /* nothing */
17501 #define GCC_UNUSED /* nothing */
17504 if test "$GCC" = yes
17506 { echo "$as_me:17506: checking for $CC __attribute__ directives..." >&5
17507 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17508 cat > "conftest.$ac_ext" <<EOF
17509 #line 17509 "${as_me:-configure}"
17511 #include "confdefs.h"
17512 #include "conftest.h"
17513 #include "conftest.i"
17515 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17517 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17520 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17522 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17524 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17525 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
17526 extern GCC_NORETURN void foo(void);
17527 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
17529 cf_printf_attribute=no
17530 cf_scanf_attribute=no
17531 for cf_attribute in scanf printf unused noreturn
17534 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17536 cf_directive="__attribute__(($cf_attribute))"
17537 echo "checking for $CC $cf_directive" 1>&5
17539 case "$cf_attribute" in
17541 cf_printf_attribute=yes
17542 cat >conftest.h <<EOF
17543 #define GCC_$cf_ATTRIBUTE 1
17547 cf_scanf_attribute=yes
17548 cat >conftest.h <<EOF
17549 #define GCC_$cf_ATTRIBUTE 1
17553 cat >conftest.h <<EOF
17554 #define GCC_$cf_ATTRIBUTE $cf_directive
17559 if { (eval echo "$as_me:17559: \"$ac_compile\"") >&5
17560 (eval $ac_compile) 2>&5
17562 echo "$as_me:17562: \$? = $ac_status" >&5
17563 (exit "$ac_status"); }; then
17564 test -n "$verbose" && echo "$as_me:17564: result: ... $cf_attribute" >&5
17565 echo "${ECHO_T}... $cf_attribute" >&6
17566 cat conftest.h >>confdefs.h
17567 case "$cf_attribute" in
17570 cat >>confdefs.h <<EOF
17571 #define GCC_NORETURN $cf_directive
17576 cf_value='/* nothing */'
17577 if test "$cf_printf_attribute" != no ; then
17578 cf_value='__attribute__((format(printf,fmt,var)))'
17580 cat >>confdefs.h <<\EOF
17581 #define GCC_PRINTF 1
17586 cat >>confdefs.h <<EOF
17587 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17592 cf_value='/* nothing */'
17593 if test "$cf_scanf_attribute" != no ; then
17594 cf_value='__attribute__((format(scanf,fmt,var)))'
17596 cat >>confdefs.h <<\EOF
17597 #define GCC_SCANF 1
17602 cat >>confdefs.h <<EOF
17603 #define GCC_SCANFLIKE(fmt,var) $cf_value
17609 cat >>confdefs.h <<EOF
17610 #define GCC_UNUSED $cf_directive
17618 ${FGREP-fgrep} define conftest.i >>confdefs.h
17625 if test "x$enable_warnings" = "xyes"; then
17627 ADAFLAGS="$ADAFLAGS -gnatwa -gnatyg"
17629 if test "x$cf_with_cxx" = xyes ; then
17633 if test "$GCC" = yes ; then
17636 echo "$as_me:17636: checking if this is really Intel C++ compiler" >&5
17637 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
17638 cf_save_CFLAGS="$CXXFLAGS"
17639 CXXFLAGS="$CXXFLAGS -no-gcc"
17640 cat >"conftest.$ac_ext" <<_ACEOF
17641 #line 17641 "configure"
17642 #include "confdefs.h"
17648 #ifdef __INTEL_COMPILER
17650 #error __INTEL_COMPILER is not defined
17657 rm -f "conftest.$ac_objext"
17658 if { (eval echo "$as_me:17658: \"$ac_compile\"") >&5
17659 (eval $ac_compile) 2>&5
17661 echo "$as_me:17661: \$? = $ac_status" >&5
17662 (exit "$ac_status"); } &&
17663 { ac_try='test -s "conftest.$ac_objext"'
17664 { (eval echo "$as_me:17664: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17667 echo "$as_me:17667: \$? = $ac_status" >&5
17668 (exit "$ac_status"); }; }; then
17669 INTEL_CPLUSPLUS=yes
17670 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
17673 echo "$as_me: failed program was:" >&5
17674 cat "conftest.$ac_ext" >&5
17676 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17677 CXXFLAGS="$cf_save_CFLAGS"
17678 echo "$as_me:17678: result: $INTEL_CPLUSPLUS" >&5
17679 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
17686 if test "$GCC" = yes ; then
17687 echo "$as_me:17687: checking if this is really Clang C++ compiler" >&5
17688 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
17689 cf_save_CFLAGS="$CXXFLAGS"
17690 cat >"conftest.$ac_ext" <<_ACEOF
17691 #line 17691 "configure"
17692 #include "confdefs.h"
17700 #error __clang__ is not defined
17707 rm -f "conftest.$ac_objext"
17708 if { (eval echo "$as_me:17708: \"$ac_compile\"") >&5
17709 (eval $ac_compile) 2>&5
17711 echo "$as_me:17711: \$? = $ac_status" >&5
17712 (exit "$ac_status"); } &&
17713 { ac_try='test -s "conftest.$ac_objext"'
17714 { (eval echo "$as_me:17714: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17717 echo "$as_me:17717: \$? = $ac_status" >&5
17718 (exit "$ac_status"); }; }; then
17719 CLANG_CPLUSPLUS=yes
17722 echo "$as_me: failed program was:" >&5
17723 cat "conftest.$ac_ext" >&5
17725 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17726 CXXFLAGS="$cf_save_CFLAGS"
17727 echo "$as_me:17727: result: $CLANG_CPLUSPLUS" >&5
17728 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
17733 if test "x$CLANG_CPLUSPLUS" = "xyes" ; then
17735 (c[1-9][0-9]|*/c[1-9][0-9])
17736 { echo "$as_me:17736: WARNING: replacing broken compiler alias $CC" >&5
17737 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
17738 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
17743 echo "$as_me:17743: checking version of $CC" >&5
17744 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
17745 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.].*//'`"
17746 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
17747 echo "$as_me:17747: result: $CLANG_VERSION" >&5
17748 echo "${ECHO_T}$CLANG_VERSION" >&6
17750 for cf_clang_opt in \
17751 -Qunused-arguments \
17752 -Wno-error=implicit-function-declaration
17754 echo "$as_me:17754: checking if option $cf_clang_opt works" >&5
17755 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
17756 cf_save_CFLAGS="$CFLAGS"
17757 CFLAGS="$CFLAGS $cf_clang_opt"
17758 cat >"conftest.$ac_ext" <<_ACEOF
17759 #line 17759 "configure"
17760 #include "confdefs.h"
17767 printf("hello!\\n");
17772 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17773 if { (eval echo "$as_me:17773: \"$ac_link\"") >&5
17774 (eval $ac_link) 2>&5
17776 echo "$as_me:17776: \$? = $ac_status" >&5
17777 (exit "$ac_status"); } &&
17778 { ac_try='test -s "conftest$ac_exeext"'
17779 { (eval echo "$as_me:17779: \"$ac_try\"") >&5
17780 (eval $ac_try) 2>&5
17782 echo "$as_me:17782: \$? = $ac_status" >&5
17783 (exit "$ac_status"); }; }; then
17787 echo "$as_me: failed program was:" >&5
17788 cat "conftest.$ac_ext" >&5
17792 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17793 echo "$as_me:17793: result: $cf_clang_optok" >&5
17794 echo "${ECHO_T}$cf_clang_optok" >&6
17795 CFLAGS="$cf_save_CFLAGS"
17796 if test "$cf_clang_optok" = yes; then
17797 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
17799 echo "${as_me:-configure}:17799: testing adding option $cf_clang_opt ..." 1>&5
17801 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17802 CFLAGS="${CFLAGS}$cf_clang_opt"
17809 ac_cpp='$CXXCPP $CPPFLAGS'
17810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17811 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17813 ac_main_return="return"
17815 cat > conftest.$ac_ext <<EOF
17816 #line 17816 "configure"
17817 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17820 if test "$INTEL_CPLUSPLUS" = yes
17822 # The "-wdXXX" options suppress warnings:
17823 # remark #1419: external declaration in primary source file
17824 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17825 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17826 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17827 # remark #193: zero used for undefined preprocessing identifier
17828 # remark #593: variable "curs_sb_left_arrow" was set but never used
17829 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17830 # remark #869: parameter "tw" was never referenced
17831 # remark #981: operands are evaluated in unspecified order
17832 # warning #269: invalid format string conversion
17834 { echo "$as_me:17834: checking for $CC warning options..." >&5
17835 echo "$as_me: checking for $CC warning options..." >&6;}
17836 cf_save_CXXFLAGS="$CXXFLAGS"
17837 EXTRA_CXXFLAGS="-Wall"
17850 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
17851 if { (eval echo "$as_me:17851: \"$ac_compile\"") >&5
17852 (eval $ac_compile) 2>&5
17854 echo "$as_me:17854: \$? = $ac_status" >&5
17855 (exit "$ac_status"); }; then
17856 test -n "$verbose" && echo "$as_me:17856: result: ... -$cf_opt" >&5
17857 echo "${ECHO_T}... -$cf_opt" >&6
17858 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17861 CXXFLAGS="$cf_save_CXXFLAGS"
17863 elif test "$GXX" = yes
17865 { echo "$as_me:17865: checking for $CXX warning options..." >&5
17866 echo "$as_me: checking for $CXX warning options..." >&6;}
17867 cf_save_CXXFLAGS="$CXXFLAGS"
17868 EXTRA_CXXFLAGS="-W -Wall"
17869 cf_gxx_extra_warnings=""
17870 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
17871 case "$GXX_VERSION" in
17875 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
17882 Wignored-qualifiers \
17884 Woverloaded-virtual \
17892 Wundef $cf_gxx_extra_warnings Wno-unused
17894 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
17895 if { (eval echo "$as_me:17895: \"$ac_compile\"") >&5
17896 (eval $ac_compile) 2>&5
17898 echo "$as_me:17898: \$? = $ac_status" >&5
17899 (exit "$ac_status"); }; then
17900 test -n "$verbose" && echo "$as_me:17900: result: ... -$cf_opt" >&5
17901 echo "${ECHO_T}... -$cf_opt" >&6
17902 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17904 test -n "$verbose" && echo "$as_me:17904: result: ... no -$cf_opt" >&5
17905 echo "${ECHO_T}... no -$cf_opt" >&6
17908 CXXFLAGS="$cf_save_CXXFLAGS"
17913 ac_cpp='$CPP $CPPFLAGS'
17914 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17915 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17917 ac_main_return="return"
17922 echo "$as_me:17922: checking if you want to work around bogus compiler/loader warnings" >&5
17923 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
17925 # Check whether --enable-string-hacks or --disable-string-hacks was given.
17926 if test "${enable_string_hacks+set}" = set; then
17927 enableval="$enable_string_hacks"
17928 enable_string_hacks=$enableval
17930 enable_string_hacks=no
17932 echo "$as_me:17932: result: $enable_string_hacks" >&5
17933 echo "${ECHO_T}$enable_string_hacks" >&6
17935 if test "x$enable_string_hacks" = "xyes"; then
17937 cat >>confdefs.h <<\EOF
17938 #define USE_STRING_HACKS 1
17941 { echo "$as_me:17941: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
17942 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
17943 echo "$as_me:17943: checking for strlcat" >&5
17944 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
17945 if test "${ac_cv_func_strlcat+set}" = set; then
17946 echo $ECHO_N "(cached) $ECHO_C" >&6
17948 cat >"conftest.$ac_ext" <<_ACEOF
17949 #line 17949 "configure"
17950 #include "confdefs.h"
17951 #define strlcat autoconf_temporary
17952 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17959 /* We use char because int might match the return type of a gcc2
17960 builtin and then its argument prototype would still apply. */
17961 char strlcat (void);
17967 /* The GNU C library defines stubs for functions which it implements
17968 to always fail with ENOSYS. Some functions are actually named
17969 something starting with __ and the normal name is an alias. */
17970 #if defined (__stub_strlcat) || defined (__stub___strlcat)
17971 #error found stub for strlcat
17979 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17980 if { (eval echo "$as_me:17980: \"$ac_link\"") >&5
17981 (eval $ac_link) 2>&5
17983 echo "$as_me:17983: \$? = $ac_status" >&5
17984 (exit "$ac_status"); } &&
17985 { ac_try='test -s "conftest$ac_exeext"'
17986 { (eval echo "$as_me:17986: \"$ac_try\"") >&5
17987 (eval $ac_try) 2>&5
17989 echo "$as_me:17989: \$? = $ac_status" >&5
17990 (exit "$ac_status"); }; }; then
17991 ac_cv_func_strlcat=yes
17993 echo "$as_me: failed program was:" >&5
17994 cat "conftest.$ac_ext" >&5
17995 ac_cv_func_strlcat=no
17997 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17999 echo "$as_me:17999: result: $ac_cv_func_strlcat" >&5
18000 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
18001 if test "$ac_cv_func_strlcat" = yes; then
18003 cat >>confdefs.h <<\EOF
18004 #define HAVE_STRLCAT 1
18009 echo "$as_me:18009: checking for strlcat in -lbsd" >&5
18010 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
18011 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18014 ac_check_lib_save_LIBS=$LIBS
18016 cat >"conftest.$ac_ext" <<_ACEOF
18017 #line 18017 "configure"
18018 #include "confdefs.h"
18020 /* Override any gcc2 internal prototype to avoid an error. */
18024 /* We use char because int might match the return type of a gcc2
18025 builtin and then its argument prototype would still apply. */
18035 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18036 if { (eval echo "$as_me:18036: \"$ac_link\"") >&5
18037 (eval $ac_link) 2>&5
18039 echo "$as_me:18039: \$? = $ac_status" >&5
18040 (exit "$ac_status"); } &&
18041 { ac_try='test -s "conftest$ac_exeext"'
18042 { (eval echo "$as_me:18042: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18045 echo "$as_me:18045: \$? = $ac_status" >&5
18046 (exit "$ac_status"); }; }; then
18047 ac_cv_lib_bsd_strlcat=yes
18049 echo "$as_me: failed program was:" >&5
18050 cat "conftest.$ac_ext" >&5
18051 ac_cv_lib_bsd_strlcat=no
18053 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18054 LIBS=$ac_check_lib_save_LIBS
18056 echo "$as_me:18056: result: $ac_cv_lib_bsd_strlcat" >&5
18057 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
18058 if test "$ac_cv_lib_bsd_strlcat" = yes; then
18060 cf_add_libs="$LIBS"
18063 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18064 # filter duplicates
18065 for cf_add_1lib in $cf_add_0lib; do
18066 for cf_add_2lib in $cf_add_libs; do
18067 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18072 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18074 LIBS="$cf_add_libs"
18076 for ac_header in bsd/string.h
18078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18079 echo "$as_me:18079: checking for $ac_header" >&5
18080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18082 echo $ECHO_N "(cached) $ECHO_C" >&6
18084 cat >"conftest.$ac_ext" <<_ACEOF
18085 #line 18085 "configure"
18086 #include "confdefs.h"
18087 #include <$ac_header>
18089 if { (eval echo "$as_me:18089: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18090 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18092 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18094 cat conftest.err >&5
18095 echo "$as_me:18095: \$? = $ac_status" >&5
18096 (exit "$ac_status"); } >/dev/null; then
18097 if test -s conftest.err; then
18098 ac_cpp_err=$ac_c_preproc_warn_flag
18105 if test -z "$ac_cpp_err"; then
18106 eval "$as_ac_Header=yes"
18108 echo "$as_me: failed program was:" >&5
18109 cat "conftest.$ac_ext" >&5
18110 eval "$as_ac_Header=no"
18112 rm -f conftest.err "conftest.$ac_ext"
18114 echo "$as_me:18114: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18115 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18116 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18117 cat >>confdefs.h <<EOF
18118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18124 cat >>confdefs.h <<\EOF
18125 #define HAVE_STRLCAT 1
18132 for ac_func in strlcpy snprintf
18134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18135 echo "$as_me:18135: checking for $ac_func" >&5
18136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18137 if eval "test \"\${$as_ac_var+set}\" = set"; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18140 cat >"conftest.$ac_ext" <<_ACEOF
18141 #line 18141 "configure"
18142 #include "confdefs.h"
18143 #define $ac_func autoconf_temporary
18144 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18151 /* We use char because int might match the return type of a gcc2
18152 builtin and then its argument prototype would still apply. */
18153 char $ac_func (void);
18159 /* The GNU C library defines stubs for functions which it implements
18160 to always fail with ENOSYS. Some functions are actually named
18161 something starting with __ and the normal name is an alias. */
18162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18163 #error found stub for $ac_func
18166 return $ac_func ();
18171 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18172 if { (eval echo "$as_me:18172: \"$ac_link\"") >&5
18173 (eval $ac_link) 2>&5
18175 echo "$as_me:18175: \$? = $ac_status" >&5
18176 (exit "$ac_status"); } &&
18177 { ac_try='test -s "conftest$ac_exeext"'
18178 { (eval echo "$as_me:18178: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18181 echo "$as_me:18181: \$? = $ac_status" >&5
18182 (exit "$ac_status"); }; }; then
18183 eval "$as_ac_var=yes"
18185 echo "$as_me: failed program was:" >&5
18186 cat "conftest.$ac_ext" >&5
18187 eval "$as_ac_var=no"
18189 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18191 echo "$as_me:18191: result: `eval echo '${'"$as_ac_var"'}'`" >&5
18192 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
18193 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
18194 cat >>confdefs.h <<EOF
18195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18203 ### use option --enable-assertions to turn on generation of assertion code
18204 echo "$as_me:18204: checking if you want to enable runtime assertions" >&5
18205 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
18207 # Check whether --enable-assertions or --disable-assertions was given.
18208 if test "${enable_assertions+set}" = set; then
18209 enableval="$enable_assertions"
18210 with_assertions=$enableval
18214 echo "$as_me:18214: result: $with_assertions" >&5
18215 echo "${ECHO_T}$with_assertions" >&6
18218 if test "$with_assertions" = no
18220 CPPFLAGS="$CPPFLAGS -DNDEBUG"
18223 ADAFLAGS="$ADAFLAGS -gnata"
18228 ### use option --disable-leaks to suppress "permanent" leaks, for testing
18230 echo "$as_me:18230: checking if you want to use dmalloc for testing" >&5
18231 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
18233 # Check whether --with-dmalloc or --without-dmalloc was given.
18234 if test "${with_dmalloc+set}" = set; then
18235 withval="$with_dmalloc"
18236 case "x$withval" in
18239 : "${with_cflags:=-g}"
18240 : "${enable_leaks:=no}"
18243 cat >>confdefs.h <<EOF
18244 #define USE_DMALLOC 1
18252 echo "$as_me:18252: result: ${with_dmalloc:-no}" >&5
18253 echo "${ECHO_T}${with_dmalloc:-no}" >&6
18255 case ".$with_cflags" in
18265 cf_new_extra_cppflags=
18267 for cf_add_cflags in -g
18269 case "$cf_fix_cppflags" in
18271 case "$cf_add_cflags" in
18272 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18273 case "$cf_add_cflags" in
18275 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18277 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18278 && test -z "${cf_tst_cflags}" \
18279 && cf_fix_cppflags=yes
18281 if test "$cf_fix_cppflags" = yes ; then
18283 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18284 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18287 elif test "${cf_tst_cflags}" = "\"'" ; then
18289 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18290 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18296 case "$CPPFLAGS" in
18300 case "$cf_add_cflags" in
18302 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18304 CPPFLAGS=`echo "$CPPFLAGS" | \
18305 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18306 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18311 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18312 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18319 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18320 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18327 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18328 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18330 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18332 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18333 && test -z "${cf_tst_cflags}" \
18334 && cf_fix_cppflags=no
18339 if test -n "$cf_new_cflags" ; then
18341 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18342 CFLAGS="${CFLAGS}$cf_new_cflags"
18346 if test -n "$cf_new_cppflags" ; then
18348 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18349 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18353 if test -n "$cf_new_extra_cppflags" ; then
18355 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18356 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18365 if test "$with_dmalloc" = yes ; then
18366 echo "$as_me:18366: checking for dmalloc.h" >&5
18367 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
18368 if test "${ac_cv_header_dmalloc_h+set}" = set; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18371 cat >"conftest.$ac_ext" <<_ACEOF
18372 #line 18372 "configure"
18373 #include "confdefs.h"
18374 #include <dmalloc.h>
18376 if { (eval echo "$as_me:18376: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18377 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18379 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18381 cat conftest.err >&5
18382 echo "$as_me:18382: \$? = $ac_status" >&5
18383 (exit "$ac_status"); } >/dev/null; then
18384 if test -s conftest.err; then
18385 ac_cpp_err=$ac_c_preproc_warn_flag
18392 if test -z "$ac_cpp_err"; then
18393 ac_cv_header_dmalloc_h=yes
18395 echo "$as_me: failed program was:" >&5
18396 cat "conftest.$ac_ext" >&5
18397 ac_cv_header_dmalloc_h=no
18399 rm -f conftest.err "conftest.$ac_ext"
18401 echo "$as_me:18401: result: $ac_cv_header_dmalloc_h" >&5
18402 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
18403 if test "$ac_cv_header_dmalloc_h" = yes; then
18405 echo "$as_me:18405: checking for dmalloc_debug in -ldmalloc" >&5
18406 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
18407 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
18408 echo $ECHO_N "(cached) $ECHO_C" >&6
18410 ac_check_lib_save_LIBS=$LIBS
18411 LIBS="-ldmalloc $LIBS"
18412 cat >"conftest.$ac_ext" <<_ACEOF
18413 #line 18413 "configure"
18414 #include "confdefs.h"
18416 /* Override any gcc2 internal prototype to avoid an error. */
18420 /* We use char because int might match the return type of a gcc2
18421 builtin and then its argument prototype would still apply. */
18422 char dmalloc_debug ();
18431 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18432 if { (eval echo "$as_me:18432: \"$ac_link\"") >&5
18433 (eval $ac_link) 2>&5
18435 echo "$as_me:18435: \$? = $ac_status" >&5
18436 (exit "$ac_status"); } &&
18437 { ac_try='test -s "conftest$ac_exeext"'
18438 { (eval echo "$as_me:18438: \"$ac_try\"") >&5
18439 (eval $ac_try) 2>&5
18441 echo "$as_me:18441: \$? = $ac_status" >&5
18442 (exit "$ac_status"); }; }; then
18443 ac_cv_lib_dmalloc_dmalloc_debug=yes
18445 echo "$as_me: failed program was:" >&5
18446 cat "conftest.$ac_ext" >&5
18447 ac_cv_lib_dmalloc_dmalloc_debug=no
18449 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18450 LIBS=$ac_check_lib_save_LIBS
18452 echo "$as_me:18452: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
18453 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
18454 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
18455 cat >>confdefs.h <<EOF
18456 #define HAVE_LIBDMALLOC 1
18459 LIBS="-ldmalloc $LIBS"
18467 echo "$as_me:18467: checking if you want to use dbmalloc for testing" >&5
18468 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
18470 # Check whether --with-dbmalloc or --without-dbmalloc was given.
18471 if test "${with_dbmalloc+set}" = set; then
18472 withval="$with_dbmalloc"
18473 case "x$withval" in
18476 : "${with_cflags:=-g}"
18477 : "${enable_leaks:=no}"
18480 cat >>confdefs.h <<EOF
18481 #define USE_DBMALLOC 1
18489 echo "$as_me:18489: result: ${with_dbmalloc:-no}" >&5
18490 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
18492 case ".$with_cflags" in
18502 cf_new_extra_cppflags=
18504 for cf_add_cflags in -g
18506 case "$cf_fix_cppflags" in
18508 case "$cf_add_cflags" in
18509 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18510 case "$cf_add_cflags" in
18512 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18514 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18515 && test -z "${cf_tst_cflags}" \
18516 && cf_fix_cppflags=yes
18518 if test "$cf_fix_cppflags" = yes ; then
18520 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18521 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18524 elif test "${cf_tst_cflags}" = "\"'" ; then
18526 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18527 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18533 case "$CPPFLAGS" in
18537 case "$cf_add_cflags" in
18539 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18541 CPPFLAGS=`echo "$CPPFLAGS" | \
18542 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18543 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18548 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18549 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18556 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18557 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18564 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18565 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18567 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18569 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18570 && test -z "${cf_tst_cflags}" \
18571 && cf_fix_cppflags=no
18576 if test -n "$cf_new_cflags" ; then
18578 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18579 CFLAGS="${CFLAGS}$cf_new_cflags"
18583 if test -n "$cf_new_cppflags" ; then
18585 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18586 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18590 if test -n "$cf_new_extra_cppflags" ; then
18592 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18593 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18602 if test "$with_dbmalloc" = yes ; then
18603 echo "$as_me:18603: checking for dbmalloc.h" >&5
18604 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
18605 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18608 cat >"conftest.$ac_ext" <<_ACEOF
18609 #line 18609 "configure"
18610 #include "confdefs.h"
18611 #include <dbmalloc.h>
18613 if { (eval echo "$as_me:18613: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18614 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18616 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18618 cat conftest.err >&5
18619 echo "$as_me:18619: \$? = $ac_status" >&5
18620 (exit "$ac_status"); } >/dev/null; then
18621 if test -s conftest.err; then
18622 ac_cpp_err=$ac_c_preproc_warn_flag
18629 if test -z "$ac_cpp_err"; then
18630 ac_cv_header_dbmalloc_h=yes
18632 echo "$as_me: failed program was:" >&5
18633 cat "conftest.$ac_ext" >&5
18634 ac_cv_header_dbmalloc_h=no
18636 rm -f conftest.err "conftest.$ac_ext"
18638 echo "$as_me:18638: result: $ac_cv_header_dbmalloc_h" >&5
18639 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
18640 if test "$ac_cv_header_dbmalloc_h" = yes; then
18642 echo "$as_me:18642: checking for debug_malloc in -ldbmalloc" >&5
18643 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
18644 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
18647 ac_check_lib_save_LIBS=$LIBS
18648 LIBS="-ldbmalloc $LIBS"
18649 cat >"conftest.$ac_ext" <<_ACEOF
18650 #line 18650 "configure"
18651 #include "confdefs.h"
18653 /* Override any gcc2 internal prototype to avoid an error. */
18657 /* We use char because int might match the return type of a gcc2
18658 builtin and then its argument prototype would still apply. */
18659 char debug_malloc ();
18668 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18669 if { (eval echo "$as_me:18669: \"$ac_link\"") >&5
18670 (eval $ac_link) 2>&5
18672 echo "$as_me:18672: \$? = $ac_status" >&5
18673 (exit "$ac_status"); } &&
18674 { ac_try='test -s "conftest$ac_exeext"'
18675 { (eval echo "$as_me:18675: \"$ac_try\"") >&5
18676 (eval $ac_try) 2>&5
18678 echo "$as_me:18678: \$? = $ac_status" >&5
18679 (exit "$ac_status"); }; }; then
18680 ac_cv_lib_dbmalloc_debug_malloc=yes
18682 echo "$as_me: failed program was:" >&5
18683 cat "conftest.$ac_ext" >&5
18684 ac_cv_lib_dbmalloc_debug_malloc=no
18686 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18687 LIBS=$ac_check_lib_save_LIBS
18689 echo "$as_me:18689: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
18690 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
18691 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
18692 cat >>confdefs.h <<EOF
18693 #define HAVE_LIBDBMALLOC 1
18696 LIBS="-ldbmalloc $LIBS"
18704 echo "$as_me:18704: checking if you want to use valgrind for testing" >&5
18705 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
18707 # Check whether --with-valgrind or --without-valgrind was given.
18708 if test "${with_valgrind+set}" = set; then
18709 withval="$with_valgrind"
18710 case "x$withval" in
18713 : "${with_cflags:=-g}"
18714 : "${enable_leaks:=no}"
18717 cat >>confdefs.h <<EOF
18718 #define USE_VALGRIND 1
18726 echo "$as_me:18726: result: ${with_valgrind:-no}" >&5
18727 echo "${ECHO_T}${with_valgrind:-no}" >&6
18729 case ".$with_cflags" in
18739 cf_new_extra_cppflags=
18741 for cf_add_cflags in -g
18743 case "$cf_fix_cppflags" in
18745 case "$cf_add_cflags" in
18746 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18747 case "$cf_add_cflags" in
18749 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18751 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18752 && test -z "${cf_tst_cflags}" \
18753 && cf_fix_cppflags=yes
18755 if test "$cf_fix_cppflags" = yes ; then
18757 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18758 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18761 elif test "${cf_tst_cflags}" = "\"'" ; then
18763 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18764 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18770 case "$CPPFLAGS" in
18774 case "$cf_add_cflags" in
18776 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18778 CPPFLAGS=`echo "$CPPFLAGS" | \
18779 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18780 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18785 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18786 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18793 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18794 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18801 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18802 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18804 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18806 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18807 && test -z "${cf_tst_cflags}" \
18808 && cf_fix_cppflags=no
18813 if test -n "$cf_new_cflags" ; then
18815 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18816 CFLAGS="${CFLAGS}$cf_new_cflags"
18820 if test -n "$cf_new_cppflags" ; then
18822 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18823 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18827 if test -n "$cf_new_extra_cppflags" ; then
18829 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18830 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18839 echo "$as_me:18839: checking if you want to perform memory-leak testing" >&5
18840 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18842 # Check whether --enable-leaks or --disable-leaks was given.
18843 if test "${enable_leaks+set}" = set; then
18844 enableval="$enable_leaks"
18845 enable_leaks=$enableval
18849 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18850 echo "$as_me:18850: result: $with_no_leaks" >&5
18851 echo "${ECHO_T}$with_no_leaks" >&6
18853 if test "$enable_leaks" = no ; then
18855 cat >>confdefs.h <<\EOF
18859 cat >>confdefs.h <<\EOF
18860 #define YY_NO_LEAKS 1
18865 cat >>confdefs.h <<\EOF
18866 #define HAVE_NC_ALLOC_H 1
18869 ### use option --enable-expanded to generate certain macros as functions
18871 # Check whether --enable-expanded or --disable-expanded was given.
18872 if test "${enable_expanded+set}" = set; then
18873 enableval="$enable_expanded"
18874 test "x$enableval" = xyes &&
18875 cat >>confdefs.h <<\EOF
18876 #define NCURSES_EXPANDED 1
18881 ### use option --disable-macros to suppress macros in favor of functions
18883 # Check whether --enable-macros or --disable-macros was given.
18884 if test "${enable_macros+set}" = set; then
18885 enableval="$enable_macros"
18886 test "$enableval" = no &&
18887 cat >>confdefs.h <<\EOF
18888 #define NCURSES_NOMACROS 1
18893 # Normally we only add trace() to the debug-library. Allow this to be
18894 # extended to all models of the ncurses library:
18896 case "$CFLAGS $CPPFLAGS" in
18902 echo "$as_me:18902: checking whether to add trace feature to all models" >&5
18903 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
18905 # Check whether --with-trace or --without-trace was given.
18906 if test "${with_trace+set}" = set; then
18907 withval="$with_trace"
18908 cf_with_trace=$withval
18910 cf_with_trace=$cf_all_traces
18912 echo "$as_me:18912: result: $cf_with_trace" >&5
18913 echo "${ECHO_T}$cf_with_trace" >&6
18915 if test "x$cf_with_trace" = xyes ; then
18922 cf_new_extra_cppflags=
18924 for cf_add_cflags in -DTRACE
18926 case "$cf_fix_cppflags" in
18928 case "$cf_add_cflags" in
18929 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18930 case "$cf_add_cflags" in
18932 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18934 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18935 && test -z "${cf_tst_cflags}" \
18936 && cf_fix_cppflags=yes
18938 if test "$cf_fix_cppflags" = yes ; then
18940 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18941 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18944 elif test "${cf_tst_cflags}" = "\"'" ; then
18946 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18947 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18953 case "$CPPFLAGS" in
18957 case "$cf_add_cflags" in
18959 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18961 CPPFLAGS=`echo "$CPPFLAGS" | \
18962 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18963 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18968 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18969 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18976 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18977 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18984 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18985 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18987 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18989 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18990 && test -z "${cf_tst_cflags}" \
18991 && cf_fix_cppflags=no
18996 if test -n "$cf_new_cflags" ; then
18998 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18999 CFLAGS="${CFLAGS}$cf_new_cflags"
19003 if test -n "$cf_new_cppflags" ; then
19005 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19006 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19010 if test -n "$cf_new_extra_cppflags" ; then
19012 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19013 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19017 cat >>confdefs.h <<\EOF
19018 #define HAVE__TRACEF 1
19026 echo "$as_me:19026: checking if we want to use GNAT projects" >&5
19027 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
19029 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
19030 if test "${enable_gnat_projects+set}" = set; then
19031 enableval="$enable_gnat_projects"
19032 test "$enableval" != no && enableval=yes
19033 if test "$enableval" != "yes" ; then
19034 enable_gnat_projects=no
19036 enable_gnat_projects=yes
19040 enable_gnat_projects=yes
19043 echo "$as_me:19043: result: $enable_gnat_projects" >&5
19044 echo "${ECHO_T}$enable_gnat_projects" >&6
19046 ### Checks for libraries.
19047 case "$cf_cv_system_name" in
19048 (*mingw32*|*mingw64*)
19049 # Note: WINVER may be a problem with Windows 10
19050 if test "x$with_exp_win32" = xyes ; then
19051 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN"
19053 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
19056 echo "$as_me:19056: checking if ssp library is needed" >&5
19057 echo $ECHO_N "checking if ssp library is needed... $ECHO_C" >&6
19058 if test "${cf_cv_need_libssp+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19062 cat >"conftest.$ac_ext" <<_ACEOF
19063 #line 19063 "configure"
19064 #include "confdefs.h"
19066 #include <sys/types.h>
19067 #include <dirent.h>
19073 DIR *dp = opendir(".");
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 cf_cv_need_libssp=no
19093 echo "$as_me: failed program was:" >&5
19094 cat "conftest.$ac_ext" >&5
19096 cf_save_LIBS="$LIBS"
19098 cat >"conftest.$ac_ext" <<_ACEOF
19099 #line 19099 "configure"
19100 #include "confdefs.h"
19102 #include <sys/types.h>
19103 #include <dirent.h>
19109 DIR *dp = opendir(".");
19115 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19116 if { (eval echo "$as_me:19116: \"$ac_link\"") >&5
19117 (eval $ac_link) 2>&5
19119 echo "$as_me:19119: \$? = $ac_status" >&5
19120 (exit "$ac_status"); } &&
19121 { ac_try='test -s "conftest$ac_exeext"'
19122 { (eval echo "$as_me:19122: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19125 echo "$as_me:19125: \$? = $ac_status" >&5
19126 (exit "$ac_status"); }; }; then
19127 cf_cv_need_libssp=yes
19129 echo "$as_me: failed program was:" >&5
19130 cat "conftest.$ac_ext" >&5
19131 cf_cv_need_libssp=maybe
19133 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19134 LIBS="$cf_save_LIBS"
19137 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19139 echo "$as_me:19139: result: $cf_cv_need_libssp" >&5
19140 echo "${ECHO_T}$cf_cv_need_libssp" >&6
19142 if test "x$cf_cv_need_libssp" = xyes
19145 cf_add_libs="$LIBS"
19148 for cf_add_1lib in -lssp; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19149 # filter duplicates
19150 for cf_add_1lib in $cf_add_0lib; do
19151 for cf_add_2lib in $cf_add_libs; do
19152 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19157 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19159 LIBS="$cf_add_libs"
19168 echo "$as_me:19168: checking if -lm needed for math functions" >&5
19169 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
19170 if test "${cf_cv_need_libm+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19174 cat >"conftest.$ac_ext" <<_ACEOF
19175 #line 19175 "configure"
19176 #include "confdefs.h"
19179 #include <stdlib.h>
19185 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
19190 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19191 if { (eval echo "$as_me:19191: \"$ac_link\"") >&5
19192 (eval $ac_link) 2>&5
19194 echo "$as_me:19194: \$? = $ac_status" >&5
19195 (exit "$ac_status"); } &&
19196 { ac_try='test -s "conftest$ac_exeext"'
19197 { (eval echo "$as_me:19197: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19200 echo "$as_me:19200: \$? = $ac_status" >&5
19201 (exit "$ac_status"); }; }; then
19204 echo "$as_me: failed program was:" >&5
19205 cat "conftest.$ac_ext" >&5
19206 cf_cv_need_libm=yes
19208 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19210 echo "$as_me:19210: result: $cf_cv_need_libm" >&5
19211 echo "${ECHO_T}$cf_cv_need_libm" >&6
19213 if test "$cf_cv_need_libm" = yes
19216 cf_save_LIBS="$LIBS"
19218 echo "$as_me:19218: checking if -lm is available for math functions" >&5
19219 echo $ECHO_N "checking if -lm is available for math functions... $ECHO_C" >&6
19220 if test "${cf_cv_have_libm+set}" = set; then
19221 echo $ECHO_N "(cached) $ECHO_C" >&6
19224 cat >"conftest.$ac_ext" <<_ACEOF
19225 #line 19225 "configure"
19226 #include "confdefs.h"
19229 #include <stdlib.h>
19235 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
19240 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19241 if { (eval echo "$as_me:19241: \"$ac_link\"") >&5
19242 (eval $ac_link) 2>&5
19244 echo "$as_me:19244: \$? = $ac_status" >&5
19245 (exit "$ac_status"); } &&
19246 { ac_try='test -s "conftest$ac_exeext"'
19247 { (eval echo "$as_me:19247: \"$ac_try\"") >&5
19248 (eval $ac_try) 2>&5
19250 echo "$as_me:19250: \$? = $ac_status" >&5
19251 (exit "$ac_status"); }; }; then
19252 cf_cv_have_libm=yes
19254 echo "$as_me: failed program was:" >&5
19255 cat "conftest.$ac_ext" >&5
19258 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19260 echo "$as_me:19260: result: $cf_cv_have_libm" >&5
19261 echo "${ECHO_T}$cf_cv_have_libm" >&6
19262 LIBS="$cf_save_LIBS"
19264 if test "$cf_cv_have_libm" = yes
19269 cf_cv_have_libm=yes
19272 if test "$cf_cv_have_libm" = yes
19275 cat >>confdefs.h <<\EOF
19276 #define HAVE_MATH_FUNCS 1
19281 ### Checks for header files.
19282 echo "$as_me:19282: checking whether time.h and sys/time.h may both be included" >&5
19283 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19284 if test "${ac_cv_header_time+set}" = set; then
19285 echo $ECHO_N "(cached) $ECHO_C" >&6
19287 cat >"conftest.$ac_ext" <<_ACEOF
19288 #line 19288 "configure"
19289 #include "confdefs.h"
19290 #include <sys/types.h>
19291 #include <sys/time.h>
19297 if ((struct tm *) 0)
19303 rm -f "conftest.$ac_objext"
19304 if { (eval echo "$as_me:19304: \"$ac_compile\"") >&5
19305 (eval $ac_compile) 2>&5
19307 echo "$as_me:19307: \$? = $ac_status" >&5
19308 (exit "$ac_status"); } &&
19309 { ac_try='test -s "conftest.$ac_objext"'
19310 { (eval echo "$as_me:19310: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19313 echo "$as_me:19313: \$? = $ac_status" >&5
19314 (exit "$ac_status"); }; }; then
19315 ac_cv_header_time=yes
19317 echo "$as_me: failed program was:" >&5
19318 cat "conftest.$ac_ext" >&5
19319 ac_cv_header_time=no
19321 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19323 echo "$as_me:19323: result: $ac_cv_header_time" >&5
19324 echo "${ECHO_T}$ac_cv_header_time" >&6
19325 if test $ac_cv_header_time = yes; then
19327 cat >>confdefs.h <<\EOF
19328 #define TIME_WITH_SYS_TIME 1
19337 # -lsystre -ltre -lintl -liconv
19338 echo "$as_me:19338: checking for regcomp in -lsystre" >&5
19339 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
19340 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
19341 echo $ECHO_N "(cached) $ECHO_C" >&6
19343 ac_check_lib_save_LIBS=$LIBS
19344 LIBS="-lsystre $LIBS"
19345 cat >"conftest.$ac_ext" <<_ACEOF
19346 #line 19346 "configure"
19347 #include "confdefs.h"
19349 /* Override any gcc2 internal prototype to avoid an error. */
19353 /* We use char because int might match the return type of a gcc2
19354 builtin and then its argument prototype would still apply. */
19364 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19365 if { (eval echo "$as_me:19365: \"$ac_link\"") >&5
19366 (eval $ac_link) 2>&5
19368 echo "$as_me:19368: \$? = $ac_status" >&5
19369 (exit "$ac_status"); } &&
19370 { ac_try='test -s "conftest$ac_exeext"'
19371 { (eval echo "$as_me:19371: \"$ac_try\"") >&5
19372 (eval $ac_try) 2>&5
19374 echo "$as_me:19374: \$? = $ac_status" >&5
19375 (exit "$ac_status"); }; }; then
19376 ac_cv_lib_systre_regcomp=yes
19378 echo "$as_me: failed program was:" >&5
19379 cat "conftest.$ac_ext" >&5
19380 ac_cv_lib_systre_regcomp=no
19382 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19383 LIBS=$ac_check_lib_save_LIBS
19385 echo "$as_me:19385: result: $ac_cv_lib_systre_regcomp" >&5
19386 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
19387 if test "$ac_cv_lib_systre_regcomp" = yes; then
19389 echo "$as_me:19389: checking for libiconv_open in -liconv" >&5
19390 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
19391 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19394 ac_check_lib_save_LIBS=$LIBS
19395 LIBS="-liconv $LIBS"
19396 cat >"conftest.$ac_ext" <<_ACEOF
19397 #line 19397 "configure"
19398 #include "confdefs.h"
19400 /* Override any gcc2 internal prototype to avoid an error. */
19404 /* We use char because int might match the return type of a gcc2
19405 builtin and then its argument prototype would still apply. */
19406 char libiconv_open ();
19415 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19416 if { (eval echo "$as_me:19416: \"$ac_link\"") >&5
19417 (eval $ac_link) 2>&5
19419 echo "$as_me:19419: \$? = $ac_status" >&5
19420 (exit "$ac_status"); } &&
19421 { ac_try='test -s "conftest$ac_exeext"'
19422 { (eval echo "$as_me:19422: \"$ac_try\"") >&5
19423 (eval $ac_try) 2>&5
19425 echo "$as_me:19425: \$? = $ac_status" >&5
19426 (exit "$ac_status"); }; }; then
19427 ac_cv_lib_iconv_libiconv_open=yes
19429 echo "$as_me: failed program was:" >&5
19430 cat "conftest.$ac_ext" >&5
19431 ac_cv_lib_iconv_libiconv_open=no
19433 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19434 LIBS=$ac_check_lib_save_LIBS
19436 echo "$as_me:19436: result: $ac_cv_lib_iconv_libiconv_open" >&5
19437 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
19438 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then
19440 cf_add_libs="$LIBS"
19443 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19444 # filter duplicates
19445 for cf_add_1lib in $cf_add_0lib; do
19446 for cf_add_2lib in $cf_add_libs; do
19447 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19452 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19454 LIBS="$cf_add_libs"
19458 echo "$as_me:19458: checking for libintl_gettext in -lintl" >&5
19459 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
19460 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
19461 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 ac_check_lib_save_LIBS=$LIBS
19464 LIBS="-lintl $LIBS"
19465 cat >"conftest.$ac_ext" <<_ACEOF
19466 #line 19466 "configure"
19467 #include "confdefs.h"
19469 /* Override any gcc2 internal prototype to avoid an error. */
19473 /* We use char because int might match the return type of a gcc2
19474 builtin and then its argument prototype would still apply. */
19475 char libintl_gettext ();
19479 libintl_gettext ();
19484 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19485 if { (eval echo "$as_me:19485: \"$ac_link\"") >&5
19486 (eval $ac_link) 2>&5
19488 echo "$as_me:19488: \$? = $ac_status" >&5
19489 (exit "$ac_status"); } &&
19490 { ac_try='test -s "conftest$ac_exeext"'
19491 { (eval echo "$as_me:19491: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19494 echo "$as_me:19494: \$? = $ac_status" >&5
19495 (exit "$ac_status"); }; }; then
19496 ac_cv_lib_intl_libintl_gettext=yes
19498 echo "$as_me: failed program was:" >&5
19499 cat "conftest.$ac_ext" >&5
19500 ac_cv_lib_intl_libintl_gettext=no
19502 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19503 LIBS=$ac_check_lib_save_LIBS
19505 echo "$as_me:19505: result: $ac_cv_lib_intl_libintl_gettext" >&5
19506 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
19507 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then
19509 cf_add_libs="$LIBS"
19512 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19513 # filter duplicates
19514 for cf_add_1lib in $cf_add_0lib; do
19515 for cf_add_2lib in $cf_add_libs; do
19516 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19521 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19523 LIBS="$cf_add_libs"
19527 echo "$as_me:19527: checking for tre_regcomp in -ltre" >&5
19528 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
19529 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19532 ac_check_lib_save_LIBS=$LIBS
19534 cat >"conftest.$ac_ext" <<_ACEOF
19535 #line 19535 "configure"
19536 #include "confdefs.h"
19538 /* Override any gcc2 internal prototype to avoid an error. */
19542 /* We use char because int might match the return type of a gcc2
19543 builtin and then its argument prototype would still apply. */
19544 char tre_regcomp ();
19553 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19554 if { (eval echo "$as_me:19554: \"$ac_link\"") >&5
19555 (eval $ac_link) 2>&5
19557 echo "$as_me:19557: \$? = $ac_status" >&5
19558 (exit "$ac_status"); } &&
19559 { ac_try='test -s "conftest$ac_exeext"'
19560 { (eval echo "$as_me:19560: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19563 echo "$as_me:19563: \$? = $ac_status" >&5
19564 (exit "$ac_status"); }; }; then
19565 ac_cv_lib_tre_tre_regcomp=yes
19567 echo "$as_me: failed program was:" >&5
19568 cat "conftest.$ac_ext" >&5
19569 ac_cv_lib_tre_tre_regcomp=no
19571 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19572 LIBS=$ac_check_lib_save_LIBS
19574 echo "$as_me:19574: result: $ac_cv_lib_tre_tre_regcomp" >&5
19575 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
19576 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then
19578 cf_add_libs="$LIBS"
19581 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19582 # filter duplicates
19583 for cf_add_1lib in $cf_add_0lib; do
19584 for cf_add_2lib in $cf_add_libs; do
19585 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19590 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19592 LIBS="$cf_add_libs"
19596 cf_add_libs="$LIBS"
19599 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19600 # filter duplicates
19601 for cf_add_1lib in $cf_add_0lib; do
19602 for cf_add_2lib in $cf_add_libs; do
19603 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19608 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19610 LIBS="$cf_add_libs"
19612 cf_regex_func=regcomp
19616 echo "$as_me:19616: checking for regcomp in -lgnurx" >&5
19617 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
19618 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
19619 echo $ECHO_N "(cached) $ECHO_C" >&6
19621 ac_check_lib_save_LIBS=$LIBS
19622 LIBS="-lgnurx $LIBS"
19623 cat >"conftest.$ac_ext" <<_ACEOF
19624 #line 19624 "configure"
19625 #include "confdefs.h"
19627 /* Override any gcc2 internal prototype to avoid an error. */
19631 /* We use char because int might match the return type of a gcc2
19632 builtin and then its argument prototype would still apply. */
19642 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19643 if { (eval echo "$as_me:19643: \"$ac_link\"") >&5
19644 (eval $ac_link) 2>&5
19646 echo "$as_me:19646: \$? = $ac_status" >&5
19647 (exit "$ac_status"); } &&
19648 { ac_try='test -s "conftest$ac_exeext"'
19649 { (eval echo "$as_me:19649: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19652 echo "$as_me:19652: \$? = $ac_status" >&5
19653 (exit "$ac_status"); }; }; then
19654 ac_cv_lib_gnurx_regcomp=yes
19656 echo "$as_me: failed program was:" >&5
19657 cat "conftest.$ac_ext" >&5
19658 ac_cv_lib_gnurx_regcomp=no
19660 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19661 LIBS=$ac_check_lib_save_LIBS
19663 echo "$as_me:19663: result: $ac_cv_lib_gnurx_regcomp" >&5
19664 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
19665 if test "$ac_cv_lib_gnurx_regcomp" = yes; then
19667 cf_add_libs="$LIBS"
19670 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19671 # filter duplicates
19672 for cf_add_1lib in $cf_add_0lib; do
19673 for cf_add_2lib in $cf_add_libs; do
19674 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19679 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19681 LIBS="$cf_add_libs"
19683 cf_regex_func=regcomp
19690 cf_regex_libs="regex re"
19691 echo "$as_me:19691: checking for regcomp" >&5
19692 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
19693 if test "${ac_cv_func_regcomp+set}" = set; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19696 cat >"conftest.$ac_ext" <<_ACEOF
19697 #line 19697 "configure"
19698 #include "confdefs.h"
19699 #define regcomp autoconf_temporary
19700 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19707 /* We use char because int might match the return type of a gcc2
19708 builtin and then its argument prototype would still apply. */
19709 char regcomp (void);
19715 /* The GNU C library defines stubs for functions which it implements
19716 to always fail with ENOSYS. Some functions are actually named
19717 something starting with __ and the normal name is an alias. */
19718 #if defined (__stub_regcomp) || defined (__stub___regcomp)
19719 #error found stub for regcomp
19727 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19728 if { (eval echo "$as_me:19728: \"$ac_link\"") >&5
19729 (eval $ac_link) 2>&5
19731 echo "$as_me:19731: \$? = $ac_status" >&5
19732 (exit "$ac_status"); } &&
19733 { ac_try='test -s "conftest$ac_exeext"'
19734 { (eval echo "$as_me:19734: \"$ac_try\"") >&5
19735 (eval $ac_try) 2>&5
19737 echo "$as_me:19737: \$? = $ac_status" >&5
19738 (exit "$ac_status"); }; }; then
19739 ac_cv_func_regcomp=yes
19741 echo "$as_me: failed program was:" >&5
19742 cat "conftest.$ac_ext" >&5
19743 ac_cv_func_regcomp=no
19745 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19747 echo "$as_me:19747: result: $ac_cv_func_regcomp" >&5
19748 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
19749 if test "$ac_cv_func_regcomp" = yes; then
19750 cf_regex_func=regcomp
19753 for cf_regex_lib in $cf_regex_libs
19755 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
19756 echo "$as_me:19756: checking for regcomp in -l$cf_regex_lib" >&5
19757 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
19758 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19761 ac_check_lib_save_LIBS=$LIBS
19762 LIBS="-l$cf_regex_lib $LIBS"
19763 cat >"conftest.$ac_ext" <<_ACEOF
19764 #line 19764 "configure"
19765 #include "confdefs.h"
19767 /* Override any gcc2 internal prototype to avoid an error. */
19771 /* We use char because int might match the return type of a gcc2
19772 builtin and then its argument prototype would still apply. */
19782 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19783 if { (eval echo "$as_me:19783: \"$ac_link\"") >&5
19784 (eval $ac_link) 2>&5
19786 echo "$as_me:19786: \$? = $ac_status" >&5
19787 (exit "$ac_status"); } &&
19788 { ac_try='test -s "conftest$ac_exeext"'
19789 { (eval echo "$as_me:19789: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19792 echo "$as_me:19792: \$? = $ac_status" >&5
19793 (exit "$ac_status"); }; }; then
19794 eval "$as_ac_Lib=yes"
19796 echo "$as_me: failed program was:" >&5
19797 cat "conftest.$ac_ext" >&5
19798 eval "$as_ac_Lib=no"
19800 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19801 LIBS=$ac_check_lib_save_LIBS
19803 echo "$as_me:19803: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
19804 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
19805 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
19807 cf_add_libs="$LIBS"
19810 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19811 # filter duplicates
19812 for cf_add_1lib in $cf_add_0lib; do
19813 for cf_add_2lib in $cf_add_libs; do
19814 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19819 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19821 LIBS="$cf_add_libs"
19823 cf_regex_func=regcomp
19834 if test "$cf_regex_func" = no ; then
19835 echo "$as_me:19835: checking for compile" >&5
19836 echo $ECHO_N "checking for compile... $ECHO_C" >&6
19837 if test "${ac_cv_func_compile+set}" = set; then
19838 echo $ECHO_N "(cached) $ECHO_C" >&6
19840 cat >"conftest.$ac_ext" <<_ACEOF
19841 #line 19841 "configure"
19842 #include "confdefs.h"
19843 #define compile autoconf_temporary
19844 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19851 /* We use char because int might match the return type of a gcc2
19852 builtin and then its argument prototype would still apply. */
19853 char compile (void);
19859 /* The GNU C library defines stubs for functions which it implements
19860 to always fail with ENOSYS. Some functions are actually named
19861 something starting with __ and the normal name is an alias. */
19862 #if defined (__stub_compile) || defined (__stub___compile)
19863 #error found stub for compile
19871 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19872 if { (eval echo "$as_me:19872: \"$ac_link\"") >&5
19873 (eval $ac_link) 2>&5
19875 echo "$as_me:19875: \$? = $ac_status" >&5
19876 (exit "$ac_status"); } &&
19877 { ac_try='test -s "conftest$ac_exeext"'
19878 { (eval echo "$as_me:19878: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19881 echo "$as_me:19881: \$? = $ac_status" >&5
19882 (exit "$ac_status"); }; }; then
19883 ac_cv_func_compile=yes
19885 echo "$as_me: failed program was:" >&5
19886 cat "conftest.$ac_ext" >&5
19887 ac_cv_func_compile=no
19889 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19891 echo "$as_me:19891: result: $ac_cv_func_compile" >&5
19892 echo "${ECHO_T}$ac_cv_func_compile" >&6
19893 if test "$ac_cv_func_compile" = yes; then
19894 cf_regex_func=compile
19897 echo "$as_me:19897: checking for compile in -lgen" >&5
19898 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
19899 if test "${ac_cv_lib_gen_compile+set}" = set; then
19900 echo $ECHO_N "(cached) $ECHO_C" >&6
19902 ac_check_lib_save_LIBS=$LIBS
19904 cat >"conftest.$ac_ext" <<_ACEOF
19905 #line 19905 "configure"
19906 #include "confdefs.h"
19908 /* Override any gcc2 internal prototype to avoid an error. */
19912 /* We use char because int might match the return type of a gcc2
19913 builtin and then its argument prototype would still apply. */
19923 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19924 if { (eval echo "$as_me:19924: \"$ac_link\"") >&5
19925 (eval $ac_link) 2>&5
19927 echo "$as_me:19927: \$? = $ac_status" >&5
19928 (exit "$ac_status"); } &&
19929 { ac_try='test -s "conftest$ac_exeext"'
19930 { (eval echo "$as_me:19930: \"$ac_try\"") >&5
19931 (eval $ac_try) 2>&5
19933 echo "$as_me:19933: \$? = $ac_status" >&5
19934 (exit "$ac_status"); }; }; then
19935 ac_cv_lib_gen_compile=yes
19937 echo "$as_me: failed program was:" >&5
19938 cat "conftest.$ac_ext" >&5
19939 ac_cv_lib_gen_compile=no
19941 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19942 LIBS=$ac_check_lib_save_LIBS
19944 echo "$as_me:19944: result: $ac_cv_lib_gen_compile" >&5
19945 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
19946 if test "$ac_cv_lib_gen_compile" = yes; then
19948 cf_add_libs="$LIBS"
19951 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19952 # filter duplicates
19953 for cf_add_1lib in $cf_add_0lib; do
19954 for cf_add_2lib in $cf_add_libs; do
19955 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19960 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19962 LIBS="$cf_add_libs"
19964 cf_regex_func=compile
19971 if test "$cf_regex_func" = no ; then
19972 { echo "$as_me:19972: WARNING: cannot find regular expression library" >&5
19973 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
19976 echo "$as_me:19976: checking for regular-expression headers" >&5
19977 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
19978 if test "${cf_cv_regex_hdrs+set}" = set; then
19979 echo $ECHO_N "(cached) $ECHO_C" >&6
19982 cf_cv_regex_hdrs=no
19983 case "$cf_regex_func" in
19985 for cf_regex_hdr in regexp.h regexpr.h
19987 cat >"conftest.$ac_ext" <<_ACEOF
19988 #line 19988 "configure"
19989 #include "confdefs.h"
19990 #include <$cf_regex_hdr>
19995 char *p = compile("", "", "", 0);
19996 int x = step("", "");
20004 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20005 if { (eval echo "$as_me:20005: \"$ac_link\"") >&5
20006 (eval $ac_link) 2>&5
20008 echo "$as_me:20008: \$? = $ac_status" >&5
20009 (exit "$ac_status"); } &&
20010 { ac_try='test -s "conftest$ac_exeext"'
20011 { (eval echo "$as_me:20011: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20014 echo "$as_me:20014: \$? = $ac_status" >&5
20015 (exit "$ac_status"); }; }; then
20017 cf_cv_regex_hdrs=$cf_regex_hdr
20021 echo "$as_me: failed program was:" >&5
20022 cat "conftest.$ac_ext" >&5
20024 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20028 for cf_regex_hdr in regex.h
20030 cat >"conftest.$ac_ext" <<_ACEOF
20031 #line 20031 "configure"
20032 #include "confdefs.h"
20033 #include <sys/types.h>
20034 #include <$cf_regex_hdr>
20040 int x = regcomp(p, "", 0);
20041 int y = regexec(p, "", 0, 0, 0);
20050 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20051 if { (eval echo "$as_me:20051: \"$ac_link\"") >&5
20052 (eval $ac_link) 2>&5
20054 echo "$as_me:20054: \$? = $ac_status" >&5
20055 (exit "$ac_status"); } &&
20056 { ac_try='test -s "conftest$ac_exeext"'
20057 { (eval echo "$as_me:20057: \"$ac_try\"") >&5
20058 (eval $ac_try) 2>&5
20060 echo "$as_me:20060: \$? = $ac_status" >&5
20061 (exit "$ac_status"); }; }; then
20063 cf_cv_regex_hdrs=$cf_regex_hdr
20067 echo "$as_me: failed program was:" >&5
20068 cat "conftest.$ac_ext" >&5
20070 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20076 echo "$as_me:20076: result: $cf_cv_regex_hdrs" >&5
20077 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
20079 case "$cf_cv_regex_hdrs" in
20080 (no) { echo "$as_me:20080: WARNING: no regular expression header found" >&5
20081 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
20083 cat >>confdefs.h <<\EOF
20084 #define HAVE_REGEX_H_FUNCS 1
20088 cat >>confdefs.h <<\EOF
20089 #define HAVE_REGEXP_H_FUNCS 1
20093 cat >>confdefs.h <<\EOF
20094 #define HAVE_REGEXPR_H_FUNCS 1
20116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20117 echo "$as_me:20117: checking for $ac_header" >&5
20118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20122 cat >"conftest.$ac_ext" <<_ACEOF
20123 #line 20123 "configure"
20124 #include "confdefs.h"
20125 #include <$ac_header>
20127 if { (eval echo "$as_me:20127: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20128 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20130 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20132 cat conftest.err >&5
20133 echo "$as_me:20133: \$? = $ac_status" >&5
20134 (exit "$ac_status"); } >/dev/null; then
20135 if test -s conftest.err; then
20136 ac_cpp_err=$ac_c_preproc_warn_flag
20143 if test -z "$ac_cpp_err"; then
20144 eval "$as_ac_Header=yes"
20146 echo "$as_me: failed program was:" >&5
20147 cat "conftest.$ac_ext" >&5
20148 eval "$as_ac_Header=no"
20150 rm -f conftest.err "conftest.$ac_ext"
20152 echo "$as_me:20152: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20153 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20154 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20155 cat >>confdefs.h <<EOF
20156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20162 for ac_header in unistd.h getopt.h
20164 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20165 echo "$as_me:20165: checking for $ac_header" >&5
20166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20168 echo $ECHO_N "(cached) $ECHO_C" >&6
20170 cat >"conftest.$ac_ext" <<_ACEOF
20171 #line 20171 "configure"
20172 #include "confdefs.h"
20173 #include <$ac_header>
20175 if { (eval echo "$as_me:20175: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20176 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20178 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20180 cat conftest.err >&5
20181 echo "$as_me:20181: \$? = $ac_status" >&5
20182 (exit "$ac_status"); } >/dev/null; then
20183 if test -s conftest.err; then
20184 ac_cpp_err=$ac_c_preproc_warn_flag
20191 if test -z "$ac_cpp_err"; then
20192 eval "$as_ac_Header=yes"
20194 echo "$as_me: failed program was:" >&5
20195 cat "conftest.$ac_ext" >&5
20196 eval "$as_ac_Header=no"
20198 rm -f conftest.err "conftest.$ac_ext"
20200 echo "$as_me:20200: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20201 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20202 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20203 cat >>confdefs.h <<EOF
20204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20210 echo "$as_me:20210: checking for header declaring getopt variables" >&5
20211 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
20212 if test "${cf_cv_getopt_header+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20216 cf_cv_getopt_header=none
20217 for cf_header in stdio.h stdlib.h unistd.h getopt.h
20219 cat >"conftest.$ac_ext" <<_ACEOF
20220 #line 20220 "configure"
20221 #include "confdefs.h"
20223 #include <$cf_header>
20227 int x = optind; char *y = optarg; (void)x; (void)y
20232 rm -f "conftest.$ac_objext"
20233 if { (eval echo "$as_me:20233: \"$ac_compile\"") >&5
20234 (eval $ac_compile) 2>&5
20236 echo "$as_me:20236: \$? = $ac_status" >&5
20237 (exit "$ac_status"); } &&
20238 { ac_try='test -s "conftest.$ac_objext"'
20239 { (eval echo "$as_me:20239: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20242 echo "$as_me:20242: \$? = $ac_status" >&5
20243 (exit "$ac_status"); }; }; then
20244 cf_cv_getopt_header=$cf_header
20247 echo "$as_me: failed program was:" >&5
20248 cat "conftest.$ac_ext" >&5
20250 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20254 echo "$as_me:20254: result: $cf_cv_getopt_header" >&5
20255 echo "${ECHO_T}$cf_cv_getopt_header" >&6
20256 if test "$cf_cv_getopt_header" != none ; then
20258 cat >>confdefs.h <<\EOF
20259 #define HAVE_GETOPT_HEADER 1
20263 if test "$cf_cv_getopt_header" = getopt.h ; then
20265 cat >>confdefs.h <<\EOF
20266 #define NEED_GETOPT_H 1
20271 echo "$as_me:20271: checking if external environ is declared" >&5
20272 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
20273 if test "${cf_cv_dcl_environ+set}" = set; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20277 cat >"conftest.$ac_ext" <<_ACEOF
20278 #line 20278 "configure"
20279 #include "confdefs.h"
20281 $ac_includes_default
20285 void* x = (void*) environ; (void)x
20290 rm -f "conftest.$ac_objext"
20291 if { (eval echo "$as_me:20291: \"$ac_compile\"") >&5
20292 (eval $ac_compile) 2>&5
20294 echo "$as_me:20294: \$? = $ac_status" >&5
20295 (exit "$ac_status"); } &&
20296 { ac_try='test -s "conftest.$ac_objext"'
20297 { (eval echo "$as_me:20297: \"$ac_try\"") >&5
20298 (eval $ac_try) 2>&5
20300 echo "$as_me:20300: \$? = $ac_status" >&5
20301 (exit "$ac_status"); }; }; then
20302 cf_cv_dcl_environ=yes
20304 echo "$as_me: failed program was:" >&5
20305 cat "conftest.$ac_ext" >&5
20306 cf_cv_dcl_environ=no
20308 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20311 echo "$as_me:20311: result: $cf_cv_dcl_environ" >&5
20312 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
20314 if test "$cf_cv_dcl_environ" = no ; then
20316 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20318 cat >>confdefs.h <<EOF
20319 #define $cf_result 1
20324 # It's possible (for near-UNIX clones) that the data doesn't exist
20326 echo "$as_me:20326: checking if external environ exists" >&5
20327 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
20328 if test "${cf_cv_have_environ+set}" = set; then
20329 echo $ECHO_N "(cached) $ECHO_C" >&6
20332 cat >"conftest.$ac_ext" <<_ACEOF
20333 #line 20333 "configure"
20334 #include "confdefs.h"
20337 extern int environ;
20347 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20348 if { (eval echo "$as_me:20348: \"$ac_link\"") >&5
20349 (eval $ac_link) 2>&5
20351 echo "$as_me:20351: \$? = $ac_status" >&5
20352 (exit "$ac_status"); } &&
20353 { ac_try='test -s "conftest$ac_exeext"'
20354 { (eval echo "$as_me:20354: \"$ac_try\"") >&5
20355 (eval $ac_try) 2>&5
20357 echo "$as_me:20357: \$? = $ac_status" >&5
20358 (exit "$ac_status"); }; }; then
20359 cf_cv_have_environ=yes
20361 echo "$as_me: failed program was:" >&5
20362 cat "conftest.$ac_ext" >&5
20363 cf_cv_have_environ=no
20365 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20368 echo "$as_me:20368: result: $cf_cv_have_environ" >&5
20369 echo "${ECHO_T}$cf_cv_have_environ" >&6
20371 if test "$cf_cv_have_environ" = yes ; then
20373 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20375 cat >>confdefs.h <<EOF
20376 #define $cf_result 1
20381 echo "$as_me:20381: checking for getenv" >&5
20382 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
20383 if test "${ac_cv_func_getenv+set}" = set; then
20384 echo $ECHO_N "(cached) $ECHO_C" >&6
20386 cat >"conftest.$ac_ext" <<_ACEOF
20387 #line 20387 "configure"
20388 #include "confdefs.h"
20389 #define getenv autoconf_temporary
20390 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20397 /* We use char because int might match the return type of a gcc2
20398 builtin and then its argument prototype would still apply. */
20399 char getenv (void);
20405 /* The GNU C library defines stubs for functions which it implements
20406 to always fail with ENOSYS. Some functions are actually named
20407 something starting with __ and the normal name is an alias. */
20408 #if defined (__stub_getenv) || defined (__stub___getenv)
20409 #error found stub for getenv
20417 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20418 if { (eval echo "$as_me:20418: \"$ac_link\"") >&5
20419 (eval $ac_link) 2>&5
20421 echo "$as_me:20421: \$? = $ac_status" >&5
20422 (exit "$ac_status"); } &&
20423 { ac_try='test -s "conftest$ac_exeext"'
20424 { (eval echo "$as_me:20424: \"$ac_try\"") >&5
20425 (eval $ac_try) 2>&5
20427 echo "$as_me:20427: \$? = $ac_status" >&5
20428 (exit "$ac_status"); }; }; then
20429 ac_cv_func_getenv=yes
20431 echo "$as_me: failed program was:" >&5
20432 cat "conftest.$ac_ext" >&5
20433 ac_cv_func_getenv=no
20435 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20437 echo "$as_me:20437: result: $ac_cv_func_getenv" >&5
20438 echo "${ECHO_T}$ac_cv_func_getenv" >&6
20440 for ac_func in putenv setenv strdup
20442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20443 echo "$as_me:20443: checking for $ac_func" >&5
20444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20445 if eval "test \"\${$as_ac_var+set}\" = set"; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 cat >"conftest.$ac_ext" <<_ACEOF
20449 #line 20449 "configure"
20450 #include "confdefs.h"
20451 #define $ac_func autoconf_temporary
20452 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20459 /* We use char because int might match the return type of a gcc2
20460 builtin and then its argument prototype would still apply. */
20461 char $ac_func (void);
20467 /* The GNU C library defines stubs for functions which it implements
20468 to always fail with ENOSYS. Some functions are actually named
20469 something starting with __ and the normal name is an alias. */
20470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20471 #error found stub for $ac_func
20474 return $ac_func ();
20479 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20480 if { (eval echo "$as_me:20480: \"$ac_link\"") >&5
20481 (eval $ac_link) 2>&5
20483 echo "$as_me:20483: \$? = $ac_status" >&5
20484 (exit "$ac_status"); } &&
20485 { ac_try='test -s "conftest$ac_exeext"'
20486 { (eval echo "$as_me:20486: \"$ac_try\"") >&5
20487 (eval $ac_try) 2>&5
20489 echo "$as_me:20489: \$? = $ac_status" >&5
20490 (exit "$ac_status"); }; }; then
20491 eval "$as_ac_var=yes"
20493 echo "$as_me: failed program was:" >&5
20494 cat "conftest.$ac_ext" >&5
20495 eval "$as_ac_var=no"
20497 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20499 echo "$as_me:20499: result: `eval echo '${'"$as_ac_var"'}'`" >&5
20500 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
20501 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
20502 cat >>confdefs.h <<EOF
20503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20509 echo "$as_me:20509: checking if getenv returns consistent values" >&5
20510 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
20511 if test "${cf_cv_consistent_getenv+set}" = set; then
20512 echo $ECHO_N "(cached) $ECHO_C" >&6
20515 if test "$cross_compiling" = yes; then
20516 cf_cv_consistent_getenv=unknown
20518 cat >"conftest.$ac_ext" <<_ACEOF
20519 #line 20519 "configure"
20520 #include "confdefs.h"
20522 $ac_includes_default
20524 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
20525 extern char **environ; /* POSIX, but some systems are not... */
20528 #if defined(HAVE_STRDUP)
20529 #define str_alloc(s) strdup(s)
20531 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
20534 static void set_value(const char *name, const char *value)
20536 #if defined(HAVE_SETENV)
20537 setenv(name, value, 1);
20538 #elif defined(HAVE_PUTENV)
20540 sprintf(buffer, "%s=%s", name, value);
20541 putenv(str_alloc(buffer));
20543 #error neither putenv/setenv found
20549 size_t numenv, limit, j;
20554 for (numenv = 0; environ[numenv]; ++numenv) ;
20555 limit = numenv + 10;
20556 mynames = (char **) calloc(limit + 1, sizeof(char *));
20557 myvalues = (char **) calloc(limit + 1, sizeof(char *));
20558 mypointer = (char **) calloc(limit + 1, sizeof(char *));
20559 #if defined(HAVE_ENVIRON)
20560 for (j = 0; environ[j]; ++j) {
20561 mynames[j] = str_alloc(environ[j]);
20562 equals = strchr(mynames[j], '=');
20565 myvalues[j] = str_alloc(equals);
20567 myvalues[j] = str_alloc("");
20571 for (j = numenv; j < limit; ++j) {
20579 sprintf(name, "TERM%lu", (unsigned long) k);
20580 for (jk = 0; jk < j; ++jk) {
20581 if (!strcmp(name, mynames[jk])) {
20588 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
20589 set_value(name, value);
20590 mynames[j] = str_alloc(name);
20591 myvalues[j] = str_alloc(value);
20593 for (pass = 0; pass < 3; ++pass) {
20594 for (j = 0; j < limit; ++j) {
20595 char *value = getenv(mynames[j]);
20598 fprintf(stderr, "getenv returned null for %s\\n", mynames[j]);
20599 ${cf_cv_main_return:-return}(1);
20600 } else if (value != mypointer[j]) {
20601 fprintf(stderr, "getenv returned different pointer for %s\\n", mynames[j]);
20602 ${cf_cv_main_return:-return}(1);
20603 } else if (strcmp(value, myvalues[j])) {
20604 fprintf(stderr, "getenv returned different value for %s\\n", mynames[j]);
20605 ${cf_cv_main_return:-return}(1);
20609 mypointer[j] = value;
20610 for (k = 0; k < j; ++k) {
20611 if (mypointer[j] == mypointer[k]) {
20612 fprintf(stderr, "getenv returned same pointer for %s and %s\\n", mynames[j], mynames[k]);
20613 ${cf_cv_main_return:-return}(1);
20619 ${cf_cv_main_return:-return}(0);
20623 rm -f "conftest$ac_exeext"
20624 if { (eval echo "$as_me:20624: \"$ac_link\"") >&5
20625 (eval $ac_link) 2>&5
20627 echo "$as_me:20627: \$? = $ac_status" >&5
20628 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20629 { (eval echo "$as_me:20629: \"$ac_try\"") >&5
20630 (eval $ac_try) 2>&5
20632 echo "$as_me:20632: \$? = $ac_status" >&5
20633 (exit "$ac_status"); }; }; then
20634 cf_cv_consistent_getenv=yes
20636 echo "$as_me: program exited with status $ac_status" >&5
20637 echo "$as_me: failed program was:" >&5
20638 cat "conftest.$ac_ext" >&5
20639 cf_cv_consistent_getenv=no
20641 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20645 echo "$as_me:20645: result: $cf_cv_consistent_getenv" >&5
20646 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
20648 if test "x$cf_cv_consistent_getenv" = xno
20651 cat >>confdefs.h <<\EOF
20652 #define HAVE_CONSISTENT_GETENV 1
20657 if test "x$cf_cv_consistent_getenv" = xno && \
20658 test "x$cf_with_trace" = xyes
20660 { echo "$as_me:20660: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
20661 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
20664 echo "$as_me:20664: checking if sys/time.h works with sys/select.h" >&5
20665 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
20666 if test "${cf_cv_sys_time_select+set}" = set; then
20667 echo $ECHO_N "(cached) $ECHO_C" >&6
20670 cat >"conftest.$ac_ext" <<_ACEOF
20671 #line 20671 "configure"
20672 #include "confdefs.h"
20674 #include <sys/types.h>
20675 #ifdef HAVE_SYS_TIME_H
20676 #include <sys/time.h>
20678 #ifdef HAVE_SYS_SELECT_H
20679 #include <sys/select.h>
20690 rm -f "conftest.$ac_objext"
20691 if { (eval echo "$as_me:20691: \"$ac_compile\"") >&5
20692 (eval $ac_compile) 2>&5
20694 echo "$as_me:20694: \$? = $ac_status" >&5
20695 (exit "$ac_status"); } &&
20696 { ac_try='test -s "conftest.$ac_objext"'
20697 { (eval echo "$as_me:20697: \"$ac_try\"") >&5
20698 (eval $ac_try) 2>&5
20700 echo "$as_me:20700: \$? = $ac_status" >&5
20701 (exit "$ac_status"); }; }; then
20702 cf_cv_sys_time_select=yes
20704 echo "$as_me: failed program was:" >&5
20705 cat "conftest.$ac_ext" >&5
20706 cf_cv_sys_time_select=no
20708 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20712 echo "$as_me:20712: result: $cf_cv_sys_time_select" >&5
20713 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
20714 test "$cf_cv_sys_time_select" = yes &&
20715 cat >>confdefs.h <<\EOF
20716 #define HAVE_SYS_TIME_SELECT 1
20719 ### checks for compiler characteristics
20721 ac_cpp='$CPP $CPPFLAGS'
20722 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
20723 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
20724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20725 ac_main_return="return"
20727 echo "$as_me:20727: checking for an ANSI C-conforming const" >&5
20728 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20729 if test "${ac_cv_c_const+set}" = set; then
20730 echo $ECHO_N "(cached) $ECHO_C" >&6
20732 cat >"conftest.$ac_ext" <<_ACEOF
20733 #line 20733 "configure"
20734 #include "confdefs.h"
20739 /* FIXME: Include the comments suggested by Paul. */
20740 #ifndef __cplusplus
20741 /* Ultrix mips cc rejects this. */
20742 typedef int charset[2];
20744 /* SunOS 4.1.1 cc rejects this. */
20745 char const *const *ccp;
20747 /* NEC SVR4.0.2 mips cc rejects this. */
20748 struct point {int x, y;};
20749 static struct point const zero = {0,0};
20750 /* AIX XL C 1.02.0.0 rejects this.
20751 It does not let you subtract one const X* pointer from another in
20752 an arm of an if-expression whose if-part is not a constant
20754 const char *g = "string";
20755 ccp = &g + (g ? g-g : 0);
20756 /* HPUX 7.0 cc rejects these. */
20759 ccp = (char const *const *) p;
20760 { /* SCO 3.2v4 cc rejects this. */
20762 char const *s = 0 ? (char *) 0 : (char const *) 0;
20766 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20767 int x[] = {25, 17};
20768 const int *foo = &x[0];
20771 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20772 typedef const int *iptr;
20776 { /* AIX XL C 1.02.0.0 rejects this saying
20777 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20778 struct s { int j; const int *ap[3]; };
20779 struct s *b; b->j = 5;
20781 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20782 const int foo = 10;
20790 rm -f "conftest.$ac_objext"
20791 if { (eval echo "$as_me:20791: \"$ac_compile\"") >&5
20792 (eval $ac_compile) 2>&5
20794 echo "$as_me:20794: \$? = $ac_status" >&5
20795 (exit "$ac_status"); } &&
20796 { ac_try='test -s "conftest.$ac_objext"'
20797 { (eval echo "$as_me:20797: \"$ac_try\"") >&5
20798 (eval $ac_try) 2>&5
20800 echo "$as_me:20800: \$? = $ac_status" >&5
20801 (exit "$ac_status"); }; }; then
20804 echo "$as_me: failed program was:" >&5
20805 cat "conftest.$ac_ext" >&5
20808 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20810 echo "$as_me:20810: result: $ac_cv_c_const" >&5
20811 echo "${ECHO_T}$ac_cv_c_const" >&6
20812 if test $ac_cv_c_const = no; then
20814 cat >>confdefs.h <<\EOF
20820 echo "$as_me:20820: checking for inline" >&5
20821 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20822 if test "${ac_cv_c_inline+set}" = set; then
20823 echo $ECHO_N "(cached) $ECHO_C" >&6
20826 for ac_kw in inline __inline__ __inline; do
20827 cat >"conftest.$ac_ext" <<_ACEOF
20828 #line 20828 "configure"
20829 #include "confdefs.h"
20830 #ifndef __cplusplus
20831 static $ac_kw int static_foo () {return 0; }
20832 $ac_kw int foo () {return 0; }
20836 rm -f "conftest.$ac_objext"
20837 if { (eval echo "$as_me:20837: \"$ac_compile\"") >&5
20838 (eval $ac_compile) 2>&5
20840 echo "$as_me:20840: \$? = $ac_status" >&5
20841 (exit "$ac_status"); } &&
20842 { ac_try='test -s "conftest.$ac_objext"'
20843 { (eval echo "$as_me:20843: \"$ac_try\"") >&5
20844 (eval $ac_try) 2>&5
20846 echo "$as_me:20846: \$? = $ac_status" >&5
20847 (exit "$ac_status"); }; }; then
20848 ac_cv_c_inline=$ac_kw; break
20850 echo "$as_me: failed program was:" >&5
20851 cat "conftest.$ac_ext" >&5
20853 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20857 echo "$as_me:20857: result: $ac_cv_c_inline" >&5
20858 echo "${ECHO_T}$ac_cv_c_inline" >&6
20859 case $ac_cv_c_inline in
20862 cat >>confdefs.h <<\EOF
20866 *) cat >>confdefs.h <<EOF
20867 #define inline $ac_cv_c_inline
20873 if test "$ac_cv_c_inline" != no ; then
20874 NCURSES_INLINE=inline
20875 if test "$INTEL_COMPILER" = yes
20878 elif test "$CLANG_COMPILER" = yes
20881 elif test "$GCC" = yes
20883 echo "$as_me:20883: checking if $CC supports options to tune inlining" >&5
20884 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
20885 if test "${cf_cv_gcc_inline+set}" = set; then
20886 echo $ECHO_N "(cached) $ECHO_C" >&6
20889 cf_save_CFLAGS=$CFLAGS
20890 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
20891 cat >"conftest.$ac_ext" <<_ACEOF
20892 #line 20892 "configure"
20893 #include "confdefs.h"
20894 inline int foo(void) { return 1; }
20898 ${cf_cv_main_return:-return} foo()
20903 rm -f "conftest.$ac_objext"
20904 if { (eval echo "$as_me:20904: \"$ac_compile\"") >&5
20905 (eval $ac_compile) 2>&5
20907 echo "$as_me:20907: \$? = $ac_status" >&5
20908 (exit "$ac_status"); } &&
20909 { ac_try='test -s "conftest.$ac_objext"'
20910 { (eval echo "$as_me:20910: \"$ac_try\"") >&5
20911 (eval $ac_try) 2>&5
20913 echo "$as_me:20913: \$? = $ac_status" >&5
20914 (exit "$ac_status"); }; }; then
20915 cf_cv_gcc_inline=yes
20917 echo "$as_me: failed program was:" >&5
20918 cat "conftest.$ac_ext" >&5
20919 cf_cv_gcc_inline=no
20921 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20922 CFLAGS=$cf_save_CFLAGS
20925 echo "$as_me:20925: result: $cf_cv_gcc_inline" >&5
20926 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
20927 if test "$cf_cv_gcc_inline" = yes ; then
20932 cf_new_extra_cppflags=
20934 for cf_add_cflags in --param max-inline-insns-single=1200
20936 case "$cf_fix_cppflags" in
20938 case "$cf_add_cflags" in
20939 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20940 case "$cf_add_cflags" in
20942 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20944 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20945 && test -z "${cf_tst_cflags}" \
20946 && cf_fix_cppflags=yes
20948 if test "$cf_fix_cppflags" = yes ; then
20950 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20951 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20954 elif test "${cf_tst_cflags}" = "\"'" ; then
20956 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20957 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20963 case "$CPPFLAGS" in
20967 case "$cf_add_cflags" in
20969 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20971 CPPFLAGS=`echo "$CPPFLAGS" | \
20972 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20973 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20978 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20979 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20986 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20987 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20994 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20995 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20997 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
20999 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21000 && test -z "${cf_tst_cflags}" \
21001 && cf_fix_cppflags=no
21006 if test -n "$cf_new_cflags" ; then
21008 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
21009 CFLAGS="${CFLAGS}$cf_new_cflags"
21013 if test -n "$cf_new_cppflags" ; then
21015 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21016 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
21020 if test -n "$cf_new_extra_cppflags" ; then
21022 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
21023 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
21031 echo "$as_me:21031: checking for signal global datatype" >&5
21032 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
21033 if test "${cf_cv_sig_atomic_t+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21038 "volatile sig_atomic_t" \
21042 cat >"conftest.$ac_ext" <<_ACEOF
21043 #line 21043 "configure"
21044 #include "confdefs.h"
21046 #include <sys/types.h>
21047 #include <signal.h>
21052 static void handler(int sig)
21060 signal(SIGINT, handler);
21066 rm -f "conftest.$ac_objext"
21067 if { (eval echo "$as_me:21067: \"$ac_compile\"") >&5
21068 (eval $ac_compile) 2>&5
21070 echo "$as_me:21070: \$? = $ac_status" >&5
21071 (exit "$ac_status"); } &&
21072 { ac_try='test -s "conftest.$ac_objext"'
21073 { (eval echo "$as_me:21073: \"$ac_try\"") >&5
21074 (eval $ac_try) 2>&5
21076 echo "$as_me:21076: \$? = $ac_status" >&5
21077 (exit "$ac_status"); }; }; then
21078 cf_cv_sig_atomic_t=$cf_type
21080 echo "$as_me: failed program was:" >&5
21081 cat "conftest.$ac_ext" >&5
21082 cf_cv_sig_atomic_t=no
21084 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21085 test "$cf_cv_sig_atomic_t" != no && break
21090 echo "$as_me:21090: result: $cf_cv_sig_atomic_t" >&5
21091 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
21092 test "$cf_cv_sig_atomic_t" != no &&
21093 cat >>confdefs.h <<EOF
21094 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
21097 if test "$NCURSES_CHTYPE" = auto ; then
21099 echo "$as_me:21099: checking for type of chtype" >&5
21100 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
21101 if test "${cf_cv_typeof_chtype+set}" = set; then
21102 echo $ECHO_N "(cached) $ECHO_C" >&6
21105 if test "$cross_compiling" = yes; then
21106 cf_cv_typeof_chtype=long
21108 cat >"conftest.$ac_ext" <<_ACEOF
21109 #line 21109 "configure"
21110 #include "confdefs.h"
21112 $ac_includes_default
21113 #define WANT_BITS 31
21116 FILE *fp = fopen("cf_test.out", "w");
21118 char *result = "long";
21119 if (sizeof(unsigned long) > sizeof(unsigned int)) {
21122 for (n = 0; n < WANT_BITS; n++) {
21125 if (y != 1 || x == 0) {
21131 * If x is nonzero, an int is big enough for the bits
21134 result = (x != 0) ? "int" : "long";
21139 ${cf_cv_main_return:-return}(0);
21143 rm -f "conftest$ac_exeext"
21144 if { (eval echo "$as_me:21144: \"$ac_link\"") >&5
21145 (eval $ac_link) 2>&5
21147 echo "$as_me:21147: \$? = $ac_status" >&5
21148 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21149 { (eval echo "$as_me:21149: \"$ac_try\"") >&5
21150 (eval $ac_try) 2>&5
21152 echo "$as_me:21152: \$? = $ac_status" >&5
21153 (exit "$ac_status"); }; }; then
21154 cf_cv_typeof_chtype=`cat cf_test.out`
21156 echo "$as_me: program exited with status $ac_status" >&5
21157 echo "$as_me: failed program was:" >&5
21158 cat "conftest.$ac_ext" >&5
21159 cf_cv_typeof_chtype=long
21161 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21167 echo "$as_me:21167: result: $cf_cv_typeof_chtype" >&5
21168 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
21170 cat >>confdefs.h <<EOF
21171 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
21175 cf_cv_typeof_chtype=$NCURSES_CHTYPE
21177 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
21179 echo "$as_me:21179: checking if unsigned literals are legal" >&5
21180 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
21181 if test "${cf_cv_unsigned_literals+set}" = set; then
21182 echo $ECHO_N "(cached) $ECHO_C" >&6
21185 cat >"conftest.$ac_ext" <<_ACEOF
21186 #line 21186 "configure"
21187 #include "confdefs.h"
21192 long x = 1L + 1UL + 1U + 1
21197 rm -f "conftest.$ac_objext"
21198 if { (eval echo "$as_me:21198: \"$ac_compile\"") >&5
21199 (eval $ac_compile) 2>&5
21201 echo "$as_me:21201: \$? = $ac_status" >&5
21202 (exit "$ac_status"); } &&
21203 { ac_try='test -s "conftest.$ac_objext"'
21204 { (eval echo "$as_me:21204: \"$ac_try\"") >&5
21205 (eval $ac_try) 2>&5
21207 echo "$as_me:21207: \$? = $ac_status" >&5
21208 (exit "$ac_status"); }; }; then
21209 cf_cv_unsigned_literals=yes
21211 echo "$as_me: failed program was:" >&5
21212 cat "conftest.$ac_ext" >&5
21213 cf_cv_unsigned_literals=no
21215 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21219 echo "$as_me:21219: result: $cf_cv_unsigned_literals" >&5
21220 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
21223 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
21224 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
21226 if test "$NCURSES_MMASK_T" = auto ; then
21227 cf_cv_typeof_mmask_t=long
21229 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
21231 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
21233 ### Checks for external-data
21235 echo "$as_me:21235: checking if external errno is declared" >&5
21236 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
21237 if test "${cf_cv_dcl_errno+set}" = set; then
21238 echo $ECHO_N "(cached) $ECHO_C" >&6
21241 cat >"conftest.$ac_ext" <<_ACEOF
21242 #line 21242 "configure"
21243 #include "confdefs.h"
21245 $ac_includes_default
21250 int x = (int) errno; (void)x
21255 rm -f "conftest.$ac_objext"
21256 if { (eval echo "$as_me:21256: \"$ac_compile\"") >&5
21257 (eval $ac_compile) 2>&5
21259 echo "$as_me:21259: \$? = $ac_status" >&5
21260 (exit "$ac_status"); } &&
21261 { ac_try='test -s "conftest.$ac_objext"'
21262 { (eval echo "$as_me:21262: \"$ac_try\"") >&5
21263 (eval $ac_try) 2>&5
21265 echo "$as_me:21265: \$? = $ac_status" >&5
21266 (exit "$ac_status"); }; }; then
21267 cf_cv_dcl_errno=yes
21269 echo "$as_me: failed program was:" >&5
21270 cat "conftest.$ac_ext" >&5
21273 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21276 echo "$as_me:21276: result: $cf_cv_dcl_errno" >&5
21277 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
21279 if test "$cf_cv_dcl_errno" = no ; then
21281 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21283 cat >>confdefs.h <<EOF
21284 #define $cf_result 1
21289 # It's possible (for near-UNIX clones) that the data doesn't exist
21291 echo "$as_me:21291: checking if external errno exists" >&5
21292 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
21293 if test "${cf_cv_have_errno+set}" = set; then
21294 echo $ECHO_N "(cached) $ECHO_C" >&6
21297 cat >"conftest.$ac_ext" <<_ACEOF
21298 #line 21298 "configure"
21299 #include "confdefs.h"
21312 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21313 if { (eval echo "$as_me:21313: \"$ac_link\"") >&5
21314 (eval $ac_link) 2>&5
21316 echo "$as_me:21316: \$? = $ac_status" >&5
21317 (exit "$ac_status"); } &&
21318 { ac_try='test -s "conftest$ac_exeext"'
21319 { (eval echo "$as_me:21319: \"$ac_try\"") >&5
21320 (eval $ac_try) 2>&5
21322 echo "$as_me:21322: \$? = $ac_status" >&5
21323 (exit "$ac_status"); }; }; then
21324 cf_cv_have_errno=yes
21326 echo "$as_me: failed program was:" >&5
21327 cat "conftest.$ac_ext" >&5
21328 cf_cv_have_errno=no
21330 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21333 echo "$as_me:21333: result: $cf_cv_have_errno" >&5
21334 echo "${ECHO_T}$cf_cv_have_errno" >&6
21336 if test "$cf_cv_have_errno" = yes ; then
21338 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21340 cat >>confdefs.h <<EOF
21341 #define $cf_result 1
21346 echo "$as_me:21346: checking if data-only library module links" >&5
21347 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
21348 if test "${cf_cv_link_dataonly+set}" = set; then
21349 echo $ECHO_N "(cached) $ECHO_C" >&6
21353 cat >conftest.$ac_ext <<EOF
21354 #line 21354 "configure"
21355 int testdata[3] = { 123, 456, 789 };
21357 if { (eval echo "$as_me:21357: \"$ac_compile\"") >&5
21358 (eval $ac_compile) 2>&5
21360 echo "$as_me:21360: \$? = $ac_status" >&5
21361 (exit "$ac_status"); } ; then
21362 mv conftest.o data.o && \
21363 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
21365 rm -f conftest.$ac_ext data.o
21366 cat >conftest.$ac_ext <<EOF
21367 #line 21367 "configure"
21371 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
21373 extern int testdata[3];
21374 return testdata[0] == 123
21375 && testdata[1] == 456
21376 && testdata[2] == 789;
21380 if { (eval echo "$as_me:21380: \"$ac_compile\"") >&5
21381 (eval $ac_compile) 2>&5
21383 echo "$as_me:21383: \$? = $ac_status" >&5
21384 (exit "$ac_status"); }; then
21385 mv conftest.o func.o && \
21386 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
21388 rm -f conftest.$ac_ext func.o
21389 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
21390 cf_saveLIBS="$LIBS"
21391 LIBS="conftest.a $LIBS"
21392 if test "$cross_compiling" = yes; then
21393 cf_cv_link_dataonly=unknown
21395 cat >"conftest.$ac_ext" <<_ACEOF
21396 #line 21396 "configure"
21397 #include "confdefs.h"
21401 extern int testfunc();
21402 ${cf_cv_main_return:-return} (!testfunc());
21406 rm -f "conftest$ac_exeext"
21407 if { (eval echo "$as_me:21407: \"$ac_link\"") >&5
21408 (eval $ac_link) 2>&5
21410 echo "$as_me:21410: \$? = $ac_status" >&5
21411 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21412 { (eval echo "$as_me:21412: \"$ac_try\"") >&5
21413 (eval $ac_try) 2>&5
21415 echo "$as_me:21415: \$? = $ac_status" >&5
21416 (exit "$ac_status"); }; }; then
21417 cf_cv_link_dataonly=yes
21419 echo "$as_me: program exited with status $ac_status" >&5
21420 echo "$as_me: failed program was:" >&5
21421 cat "conftest.$ac_ext" >&5
21422 cf_cv_link_dataonly=no
21424 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21426 LIBS="$cf_saveLIBS"
21430 echo "$as_me:21430: result: $cf_cv_link_dataonly" >&5
21431 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
21433 if test "$cf_cv_link_dataonly" = no ; then
21435 cat >>confdefs.h <<\EOF
21436 #define BROKEN_LINKER 1
21442 ### Checks for library functions.
21444 echo "$as_me:21444: checking for clock_gettime" >&5
21445 echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6
21446 if test "${cf_cv_func_clock_gettime+set}" = set; then
21447 echo $ECHO_N "(cached) $ECHO_C" >&6
21450 cat >"conftest.$ac_ext" <<_ACEOF
21451 #line 21451 "configure"
21452 #include "confdefs.h"
21457 struct timespec ts;
21458 int rc = clock_gettime(CLOCK_REALTIME, &ts); (void) rc; (void)ts
21463 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21464 if { (eval echo "$as_me:21464: \"$ac_link\"") >&5
21465 (eval $ac_link) 2>&5
21467 echo "$as_me:21467: \$? = $ac_status" >&5
21468 (exit "$ac_status"); } &&
21469 { ac_try='test -s "conftest$ac_exeext"'
21470 { (eval echo "$as_me:21470: \"$ac_try\"") >&5
21471 (eval $ac_try) 2>&5
21473 echo "$as_me:21473: \$? = $ac_status" >&5
21474 (exit "$ac_status"); }; }; then
21475 cf_cv_func_clock_gettime=yes
21477 echo "$as_me: failed program was:" >&5
21478 cat "conftest.$ac_ext" >&5
21479 cf_cv_func_clock_gettime=no
21481 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21484 echo "$as_me:21484: result: $cf_cv_func_clock_gettime" >&5
21485 echo "${ECHO_T}$cf_cv_func_clock_gettime" >&6
21487 if test "$cf_cv_func_clock_gettime" = yes
21490 cat >>confdefs.h <<\EOF
21491 #define HAVE_CLOCK_GETTIME 1
21495 echo "$as_me:21495: checking for gettimeofday" >&5
21496 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
21497 if test "${ac_cv_func_gettimeofday+set}" = set; then
21498 echo $ECHO_N "(cached) $ECHO_C" >&6
21500 cat >"conftest.$ac_ext" <<_ACEOF
21501 #line 21501 "configure"
21502 #include "confdefs.h"
21503 #define gettimeofday autoconf_temporary
21504 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21505 #undef gettimeofday
21511 /* We use char because int might match the return type of a gcc2
21512 builtin and then its argument prototype would still apply. */
21513 char gettimeofday (void);
21519 /* The GNU C library defines stubs for functions which it implements
21520 to always fail with ENOSYS. Some functions are actually named
21521 something starting with __ and the normal name is an alias. */
21522 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
21523 #error found stub for gettimeofday
21526 return gettimeofday ();
21531 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21532 if { (eval echo "$as_me:21532: \"$ac_link\"") >&5
21533 (eval $ac_link) 2>&5
21535 echo "$as_me:21535: \$? = $ac_status" >&5
21536 (exit "$ac_status"); } &&
21537 { ac_try='test -s "conftest$ac_exeext"'
21538 { (eval echo "$as_me:21538: \"$ac_try\"") >&5
21539 (eval $ac_try) 2>&5
21541 echo "$as_me:21541: \$? = $ac_status" >&5
21542 (exit "$ac_status"); }; }; then
21543 ac_cv_func_gettimeofday=yes
21545 echo "$as_me: failed program was:" >&5
21546 cat "conftest.$ac_ext" >&5
21547 ac_cv_func_gettimeofday=no
21549 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21551 echo "$as_me:21551: result: $ac_cv_func_gettimeofday" >&5
21552 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
21553 if test "$ac_cv_func_gettimeofday" = yes; then
21555 cat >>confdefs.h <<\EOF
21556 #define HAVE_GETTIMEOFDAY 1
21561 echo "$as_me:21561: checking for gettimeofday in -lbsd" >&5
21562 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
21563 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
21564 echo $ECHO_N "(cached) $ECHO_C" >&6
21566 ac_check_lib_save_LIBS=$LIBS
21568 cat >"conftest.$ac_ext" <<_ACEOF
21569 #line 21569 "configure"
21570 #include "confdefs.h"
21572 /* Override any gcc2 internal prototype to avoid an error. */
21576 /* We use char because int might match the return type of a gcc2
21577 builtin and then its argument prototype would still apply. */
21578 char gettimeofday ();
21587 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21588 if { (eval echo "$as_me:21588: \"$ac_link\"") >&5
21589 (eval $ac_link) 2>&5
21591 echo "$as_me:21591: \$? = $ac_status" >&5
21592 (exit "$ac_status"); } &&
21593 { ac_try='test -s "conftest$ac_exeext"'
21594 { (eval echo "$as_me:21594: \"$ac_try\"") >&5
21595 (eval $ac_try) 2>&5
21597 echo "$as_me:21597: \$? = $ac_status" >&5
21598 (exit "$ac_status"); }; }; then
21599 ac_cv_lib_bsd_gettimeofday=yes
21601 echo "$as_me: failed program was:" >&5
21602 cat "conftest.$ac_ext" >&5
21603 ac_cv_lib_bsd_gettimeofday=no
21605 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21606 LIBS=$ac_check_lib_save_LIBS
21608 echo "$as_me:21608: result: $ac_cv_lib_bsd_gettimeofday" >&5
21609 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
21610 if test "$ac_cv_lib_bsd_gettimeofday" = yes; then
21612 cat >>confdefs.h <<\EOF
21613 #define HAVE_GETTIMEOFDAY 1
21616 cf_add_libs="$LIBS"
21619 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21620 # filter duplicates
21621 for cf_add_1lib in $cf_add_0lib; do
21622 for cf_add_2lib in $cf_add_libs; do
21623 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21628 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21630 LIBS="$cf_add_libs"
21666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21667 echo "$as_me:21667: checking for $ac_func" >&5
21668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21669 if eval "test \"\${$as_ac_var+set}\" = set"; then
21670 echo $ECHO_N "(cached) $ECHO_C" >&6
21672 cat >"conftest.$ac_ext" <<_ACEOF
21673 #line 21673 "configure"
21674 #include "confdefs.h"
21675 #define $ac_func autoconf_temporary
21676 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21683 /* We use char because int might match the return type of a gcc2
21684 builtin and then its argument prototype would still apply. */
21685 char $ac_func (void);
21691 /* The GNU C library defines stubs for functions which it implements
21692 to always fail with ENOSYS. Some functions are actually named
21693 something starting with __ and the normal name is an alias. */
21694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21695 #error found stub for $ac_func
21698 return $ac_func ();
21703 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21704 if { (eval echo "$as_me:21704: \"$ac_link\"") >&5
21705 (eval $ac_link) 2>&5
21707 echo "$as_me:21707: \$? = $ac_status" >&5
21708 (exit "$ac_status"); } &&
21709 { ac_try='test -s "conftest$ac_exeext"'
21710 { (eval echo "$as_me:21710: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21713 echo "$as_me:21713: \$? = $ac_status" >&5
21714 (exit "$ac_status"); }; }; then
21715 eval "$as_ac_var=yes"
21717 echo "$as_me: failed program was:" >&5
21718 cat "conftest.$ac_ext" >&5
21719 eval "$as_ac_var=no"
21721 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21723 echo "$as_me:21723: result: `eval echo '${'"$as_ac_var"'}'`" >&5
21724 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
21725 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
21726 cat >>confdefs.h <<EOF
21727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21733 echo "$as_me:21733: checking if _PATH_TTYS is defined in ttyent.h" >&5
21734 echo $ECHO_N "checking if _PATH_TTYS is defined in ttyent.h... $ECHO_C" >&6
21735 if test "${cf_cv_PATH_TTYS+set}" = set; then
21736 echo $ECHO_N "(cached) $ECHO_C" >&6
21739 cat >"conftest.$ac_ext" <<_ACEOF
21740 #line 21740 "configure"
21741 #include "confdefs.h"
21744 #include <ttyent.h>
21749 FILE *fp = fopen(_PATH_TTYS, "r"); (void)fp
21754 rm -f "conftest.$ac_objext"
21755 if { (eval echo "$as_me:21755: \"$ac_compile\"") >&5
21756 (eval $ac_compile) 2>&5
21758 echo "$as_me:21758: \$? = $ac_status" >&5
21759 (exit "$ac_status"); } &&
21760 { ac_try='test -s "conftest.$ac_objext"'
21761 { (eval echo "$as_me:21761: \"$ac_try\"") >&5
21762 (eval $ac_try) 2>&5
21764 echo "$as_me:21764: \$? = $ac_status" >&5
21765 (exit "$ac_status"); }; }; then
21766 cf_cv_PATH_TTYS=yes
21768 echo "$as_me: failed program was:" >&5
21769 cat "conftest.$ac_ext" >&5
21772 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21774 echo "$as_me:21774: result: $cf_cv_PATH_TTYS" >&5
21775 echo "${ECHO_T}$cf_cv_PATH_TTYS" >&6
21777 if test $cf_cv_PATH_TTYS = no
21779 for cf_ttys in /etc/ttytype /etc/ttys
21781 if test -f $cf_ttys
21783 cf_cv_PATH_TTYS=maybe
21785 cat >>confdefs.h <<\EOF
21786 #define _PATH_TTYS $cf_ttys
21794 if test $cf_cv_PATH_TTYS != no
21796 echo "$as_me:21796: checking if _PATH_TTYS file exists" >&5
21797 echo $ECHO_N "checking if _PATH_TTYS file exists... $ECHO_C" >&6
21798 if test "${cf_cv_have_PATH_TTYS+set}" = set; then
21799 echo $ECHO_N "(cached) $ECHO_C" >&6
21802 if test "$cross_compiling" = yes; then
21803 cf_cv_have_PATH_TTYS=unknown
21805 cat >"conftest.$ac_ext" <<_ACEOF
21806 #line 21806 "configure"
21807 #include "confdefs.h"
21809 $ac_includes_default
21811 #include <ttyent.h>
21814 FILE *fp = fopen(_PATH_TTYS, "r");
21815 ${cf_cv_main_return:-return} (fp == 0);
21818 rm -f "conftest$ac_exeext"
21819 if { (eval echo "$as_me:21819: \"$ac_link\"") >&5
21820 (eval $ac_link) 2>&5
21822 echo "$as_me:21822: \$? = $ac_status" >&5
21823 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21824 { (eval echo "$as_me:21824: \"$ac_try\"") >&5
21825 (eval $ac_try) 2>&5
21827 echo "$as_me:21827: \$? = $ac_status" >&5
21828 (exit "$ac_status"); }; }; then
21829 cf_cv_have_PATH_TTYS=yes
21831 echo "$as_me: program exited with status $ac_status" >&5
21832 echo "$as_me: failed program was:" >&5
21833 cat "conftest.$ac_ext" >&5
21834 cf_cv_have_PATH_TTYS=no
21836 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21839 echo "$as_me:21839: result: $cf_cv_have_PATH_TTYS" >&5
21840 echo "${ECHO_T}$cf_cv_have_PATH_TTYS" >&6
21841 test "$cf_cv_have_PATH_TTYS" = no && cf_cv_PATH_TTYS=no
21844 if test $cf_cv_PATH_TTYS != no
21847 cat >>confdefs.h <<\EOF
21848 #define HAVE_PATH_TTYS 1
21851 echo "$as_me:21851: checking for getttynam" >&5
21852 echo $ECHO_N "checking for getttynam... $ECHO_C" >&6
21853 if test "${cf_cv_func_getttynam+set}" = set; then
21854 echo $ECHO_N "(cached) $ECHO_C" >&6
21857 cat >"conftest.$ac_ext" <<_ACEOF
21858 #line 21858 "configure"
21859 #include "confdefs.h"
21860 #include <ttyent.h>
21864 struct ttyent *fp = getttynam("/dev/tty"); (void)fp
21869 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21870 if { (eval echo "$as_me:21870: \"$ac_link\"") >&5
21871 (eval $ac_link) 2>&5
21873 echo "$as_me:21873: \$? = $ac_status" >&5
21874 (exit "$ac_status"); } &&
21875 { ac_try='test -s "conftest$ac_exeext"'
21876 { (eval echo "$as_me:21876: \"$ac_try\"") >&5
21877 (eval $ac_try) 2>&5
21879 echo "$as_me:21879: \$? = $ac_status" >&5
21880 (exit "$ac_status"); }; }; then
21881 cf_cv_func_getttynam=yes
21883 echo "$as_me: failed program was:" >&5
21884 cat "conftest.$ac_ext" >&5
21885 cf_cv_func_getttynam=no
21887 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21889 echo "$as_me:21889: result: $cf_cv_func_getttynam" >&5
21890 echo "${ECHO_T}$cf_cv_func_getttynam" >&6
21891 test "$cf_cv_func_getttynam" = yes && cat >>confdefs.h <<\EOF
21892 #define HAVE_GETTTYNAM 1
21897 if test "x$ac_cv_func_getopt" = xno && \
21898 test "x$cf_with_progs$cf_with_tests" != xnono; then
21899 { { echo "$as_me:21899: error: getopt is required for building programs" >&5
21900 echo "$as_me: error: getopt is required for building programs" >&2;}
21901 { (exit 1); exit 1; }; }
21904 if test "x$with_safe_sprintf" = xyes
21906 if test "x$ac_cv_func_vsnprintf" = xyes
21908 { echo "$as_me:21908: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
21909 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
21912 cat >>confdefs.h <<\EOF
21913 #define USE_SAFE_SPRINTF 1
21919 if test "x$with_getcap" = "xyes" ; then
21921 echo "$as_me:21921: checking for terminal-capability database functions" >&5
21922 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
21923 if test "${cf_cv_cgetent+set}" = set; then
21924 echo $ECHO_N "(cached) $ECHO_C" >&6
21927 cat >"conftest.$ac_ext" <<_ACEOF
21928 #line 21928 "configure"
21929 #include "confdefs.h"
21931 $ac_includes_default
21938 char *db_array = temp;
21939 cgetent(&buf, &db_array, "vt100");
21940 cgetcap(buf, "tc", '=');
21941 cgetmatch(buf, "tc");
21947 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21948 if { (eval echo "$as_me:21948: \"$ac_link\"") >&5
21949 (eval $ac_link) 2>&5
21951 echo "$as_me:21951: \$? = $ac_status" >&5
21952 (exit "$ac_status"); } &&
21953 { ac_try='test -s "conftest$ac_exeext"'
21954 { (eval echo "$as_me:21954: \"$ac_try\"") >&5
21955 (eval $ac_try) 2>&5
21957 echo "$as_me:21957: \$? = $ac_status" >&5
21958 (exit "$ac_status"); }; }; then
21961 echo "$as_me: failed program was:" >&5
21962 cat "conftest.$ac_ext" >&5
21965 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21968 echo "$as_me:21968: result: $cf_cv_cgetent" >&5
21969 echo "${ECHO_T}$cf_cv_cgetent" >&6
21971 if test "$cf_cv_cgetent" = yes
21974 cat >>confdefs.h <<\EOF
21975 #define HAVE_BSD_CGETENT 1
21978 echo "$as_me:21978: checking if cgetent uses const parameter" >&5
21979 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
21980 if test "${cf_cv_cgetent_const+set}" = set; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21984 cat >"conftest.$ac_ext" <<_ACEOF
21985 #line 21985 "configure"
21986 #include "confdefs.h"
21988 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
21989 $ac_includes_default
21996 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
21997 const char *db_array = temp;
21998 cgetent(&buf, &db_array, "vt100");
22000 cgetcap(buf, "tc", '=');
22001 cgetmatch(buf, "tc");
22007 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22008 if { (eval echo "$as_me:22008: \"$ac_link\"") >&5
22009 (eval $ac_link) 2>&5
22011 echo "$as_me:22011: \$? = $ac_status" >&5
22012 (exit "$ac_status"); } &&
22013 { ac_try='test -s "conftest$ac_exeext"'
22014 { (eval echo "$as_me:22014: \"$ac_try\"") >&5
22015 (eval $ac_try) 2>&5
22017 echo "$as_me:22017: \$? = $ac_status" >&5
22018 (exit "$ac_status"); }; }; then
22019 cf_cv_cgetent_const=yes
22021 echo "$as_me: failed program was:" >&5
22022 cat "conftest.$ac_ext" >&5
22023 cf_cv_cgetent_const=no
22025 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22028 echo "$as_me:22028: result: $cf_cv_cgetent_const" >&5
22029 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
22030 if test "$cf_cv_cgetent_const" = yes
22033 cat >>confdefs.h <<EOF
22034 #define CGETENT_CONST const
22042 echo "$as_me:22042: checking for isascii" >&5
22043 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
22044 if test "${cf_cv_have_isascii+set}" = set; then
22045 echo $ECHO_N "(cached) $ECHO_C" >&6
22048 cat >"conftest.$ac_ext" <<_ACEOF
22049 #line 22049 "configure"
22050 #include "confdefs.h"
22055 int x = isascii(' ')
22060 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22061 if { (eval echo "$as_me:22061: \"$ac_link\"") >&5
22062 (eval $ac_link) 2>&5
22064 echo "$as_me:22064: \$? = $ac_status" >&5
22065 (exit "$ac_status"); } &&
22066 { ac_try='test -s "conftest$ac_exeext"'
22067 { (eval echo "$as_me:22067: \"$ac_try\"") >&5
22068 (eval $ac_try) 2>&5
22070 echo "$as_me:22070: \$? = $ac_status" >&5
22071 (exit "$ac_status"); }; }; then
22072 cf_cv_have_isascii=yes
22074 echo "$as_me: failed program was:" >&5
22075 cat "conftest.$ac_ext" >&5
22076 cf_cv_have_isascii=no
22078 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22081 echo "$as_me:22081: result: $cf_cv_have_isascii" >&5
22082 echo "${ECHO_T}$cf_cv_have_isascii" >&6
22083 test "$cf_cv_have_isascii" = yes &&
22084 cat >>confdefs.h <<\EOF
22085 #define HAVE_ISASCII 1
22088 if test "$ac_cv_func_sigaction" = yes; then
22089 echo "$as_me:22089: checking whether sigaction needs _POSIX_SOURCE" >&5
22090 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
22091 cat >"conftest.$ac_ext" <<_ACEOF
22092 #line 22092 "configure"
22093 #include "confdefs.h"
22095 #include <sys/types.h>
22096 #include <signal.h>
22100 struct sigaction act
22105 rm -f "conftest.$ac_objext"
22106 if { (eval echo "$as_me:22106: \"$ac_compile\"") >&5
22107 (eval $ac_compile) 2>&5
22109 echo "$as_me:22109: \$? = $ac_status" >&5
22110 (exit "$ac_status"); } &&
22111 { ac_try='test -s "conftest.$ac_objext"'
22112 { (eval echo "$as_me:22112: \"$ac_try\"") >&5
22113 (eval $ac_try) 2>&5
22115 echo "$as_me:22115: \$? = $ac_status" >&5
22116 (exit "$ac_status"); }; }; then
22119 echo "$as_me: failed program was:" >&5
22120 cat "conftest.$ac_ext" >&5
22122 cat >"conftest.$ac_ext" <<_ACEOF
22123 #line 22123 "configure"
22124 #include "confdefs.h"
22126 #define _POSIX_SOURCE
22127 #include <sys/types.h>
22128 #include <signal.h>
22132 struct sigaction act
22137 rm -f "conftest.$ac_objext"
22138 if { (eval echo "$as_me:22138: \"$ac_compile\"") >&5
22139 (eval $ac_compile) 2>&5
22141 echo "$as_me:22141: \$? = $ac_status" >&5
22142 (exit "$ac_status"); } &&
22143 { ac_try='test -s "conftest.$ac_objext"'
22144 { (eval echo "$as_me:22144: \"$ac_try\"") >&5
22145 (eval $ac_try) 2>&5
22147 echo "$as_me:22147: \$? = $ac_status" >&5
22148 (exit "$ac_status"); }; }; then
22151 cat >>confdefs.h <<\EOF
22152 #define _POSIX_SOURCE 1
22156 echo "$as_me: failed program was:" >&5
22157 cat "conftest.$ac_ext" >&5
22160 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22162 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22163 echo "$as_me:22163: result: $sigact_bad" >&5
22164 echo "${ECHO_T}$sigact_bad" >&6
22167 echo "$as_me:22167: checking if nanosleep really works" >&5
22168 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
22169 if test "${cf_cv_func_nanosleep+set}" = set; then
22170 echo $ECHO_N "(cached) $ECHO_C" >&6
22173 if test "$cross_compiling" = yes; then
22174 cf_cv_func_nanosleep=unknown
22176 cat >"conftest.$ac_ext" <<_ACEOF
22177 #line 22177 "configure"
22178 #include "confdefs.h"
22180 $ac_includes_default
22185 #ifdef HAVE_SYS_TIME_H
22186 #include <sys/time.h>
22190 struct timespec ts1, ts2;
22193 ts1.tv_nsec = 750000000;
22197 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
22198 ${cf_cv_main_return:-return}(code != 0);
22202 rm -f "conftest$ac_exeext"
22203 if { (eval echo "$as_me:22203: \"$ac_link\"") >&5
22204 (eval $ac_link) 2>&5
22206 echo "$as_me:22206: \$? = $ac_status" >&5
22207 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22208 { (eval echo "$as_me:22208: \"$ac_try\"") >&5
22209 (eval $ac_try) 2>&5
22211 echo "$as_me:22211: \$? = $ac_status" >&5
22212 (exit "$ac_status"); }; }; then
22213 cf_cv_func_nanosleep=yes
22215 echo "$as_me: program exited with status $ac_status" >&5
22216 echo "$as_me: failed program was:" >&5
22217 cat "conftest.$ac_ext" >&5
22218 cf_cv_func_nanosleep=no
22220 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22223 echo "$as_me:22223: result: $cf_cv_func_nanosleep" >&5
22224 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
22226 test "$cf_cv_func_nanosleep" = "yes" &&
22227 cat >>confdefs.h <<\EOF
22228 #define HAVE_NANOSLEEP 1
22239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22240 echo "$as_me:22240: checking for $ac_header" >&5
22241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22245 cat >"conftest.$ac_ext" <<_ACEOF
22246 #line 22246 "configure"
22247 #include "confdefs.h"
22248 #include <$ac_header>
22250 if { (eval echo "$as_me:22250: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22251 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22253 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22255 cat conftest.err >&5
22256 echo "$as_me:22256: \$? = $ac_status" >&5
22257 (exit "$ac_status"); } >/dev/null; then
22258 if test -s conftest.err; then
22259 ac_cpp_err=$ac_c_preproc_warn_flag
22266 if test -z "$ac_cpp_err"; then
22267 eval "$as_ac_Header=yes"
22269 echo "$as_me: failed program was:" >&5
22270 cat "conftest.$ac_ext" >&5
22271 eval "$as_ac_Header=no"
22273 rm -f conftest.err "conftest.$ac_ext"
22275 echo "$as_me:22275: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22276 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22277 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22278 cat >>confdefs.h <<EOF
22279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22285 if test "$ac_cv_header_termios_h" = yes ; then
22286 case "$CFLAGS $CPPFLAGS" in
22287 (*-D_POSIX_SOURCE*)
22288 termios_bad=dunno ;;
22289 (*) termios_bad=maybe ;;
22291 if test "$termios_bad" = maybe ; then
22292 echo "$as_me:22292: checking whether termios.h needs _POSIX_SOURCE" >&5
22293 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
22294 cat >"conftest.$ac_ext" <<_ACEOF
22295 #line 22295 "configure"
22296 #include "confdefs.h"
22297 #include <termios.h>
22301 struct termios foo; int x = foo.c_iflag = 1; (void)x
22306 rm -f "conftest.$ac_objext"
22307 if { (eval echo "$as_me:22307: \"$ac_compile\"") >&5
22308 (eval $ac_compile) 2>&5
22310 echo "$as_me:22310: \$? = $ac_status" >&5
22311 (exit "$ac_status"); } &&
22312 { ac_try='test -s "conftest.$ac_objext"'
22313 { (eval echo "$as_me:22313: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22316 echo "$as_me:22316: \$? = $ac_status" >&5
22317 (exit "$ac_status"); }; }; then
22320 echo "$as_me: failed program was:" >&5
22321 cat "conftest.$ac_ext" >&5
22323 cat >"conftest.$ac_ext" <<_ACEOF
22324 #line 22324 "configure"
22325 #include "confdefs.h"
22327 #define _POSIX_SOURCE
22328 #include <termios.h>
22332 struct termios foo; int x = foo.c_iflag = 2; (void)x
22337 rm -f "conftest.$ac_objext"
22338 if { (eval echo "$as_me:22338: \"$ac_compile\"") >&5
22339 (eval $ac_compile) 2>&5
22341 echo "$as_me:22341: \$? = $ac_status" >&5
22342 (exit "$ac_status"); } &&
22343 { ac_try='test -s "conftest.$ac_objext"'
22344 { (eval echo "$as_me:22344: \"$ac_try\"") >&5
22345 (eval $ac_try) 2>&5
22347 echo "$as_me:22347: \$? = $ac_status" >&5
22348 (exit "$ac_status"); }; }; then
22349 termios_bad=unknown
22351 echo "$as_me: failed program was:" >&5
22352 cat "conftest.$ac_ext" >&5
22354 cat >>confdefs.h <<\EOF
22355 #define _POSIX_SOURCE 1
22359 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22362 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22363 echo "$as_me:22363: result: $termios_bad" >&5
22364 echo "${ECHO_T}$termios_bad" >&6
22368 echo "$as_me:22368: checking for tcgetattr" >&5
22369 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
22370 if test "${cf_cv_have_tcgetattr+set}" = set; then
22371 echo $ECHO_N "(cached) $ECHO_C" >&6
22374 cat >"conftest.$ac_ext" <<_ACEOF
22375 #line 22375 "configure"
22376 #include "confdefs.h"
22378 #include <sys/types.h>
22379 #ifdef HAVE_UNISTD_H
22380 #include <unistd.h>
22382 #ifdef HAVE_TERMIOS_H
22383 #include <termios.h>
22384 #define TTY struct termios
22386 #ifdef HAVE_TERMIO_H
22387 #include <termio.h>
22388 #define TTY struct termio
22397 tcgetattr(1, &foo);
22402 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22403 if { (eval echo "$as_me:22403: \"$ac_link\"") >&5
22404 (eval $ac_link) 2>&5
22406 echo "$as_me:22406: \$? = $ac_status" >&5
22407 (exit "$ac_status"); } &&
22408 { ac_try='test -s "conftest$ac_exeext"'
22409 { (eval echo "$as_me:22409: \"$ac_try\"") >&5
22410 (eval $ac_try) 2>&5
22412 echo "$as_me:22412: \$? = $ac_status" >&5
22413 (exit "$ac_status"); }; }; then
22414 cf_cv_have_tcgetattr=yes
22416 echo "$as_me: failed program was:" >&5
22417 cat "conftest.$ac_ext" >&5
22418 cf_cv_have_tcgetattr=no
22420 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22422 echo "$as_me:22422: result: $cf_cv_have_tcgetattr" >&5
22423 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
22424 test "$cf_cv_have_tcgetattr" = yes &&
22425 cat >>confdefs.h <<\EOF
22426 #define HAVE_TCGETATTR 1
22429 echo "$as_me:22429: checking for vsscanf function or workaround" >&5
22430 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
22431 if test "${cf_cv_func_vsscanf+set}" = set; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22435 cat >"conftest.$ac_ext" <<_ACEOF
22436 #line 22436 "configure"
22437 #include "confdefs.h"
22439 #include <stdarg.h>
22446 vsscanf("from", "%d", ap)
22451 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22452 if { (eval echo "$as_me:22452: \"$ac_link\"") >&5
22453 (eval $ac_link) 2>&5
22455 echo "$as_me:22455: \$? = $ac_status" >&5
22456 (exit "$ac_status"); } &&
22457 { ac_try='test -s "conftest$ac_exeext"'
22458 { (eval echo "$as_me:22458: \"$ac_try\"") >&5
22459 (eval $ac_try) 2>&5
22461 echo "$as_me:22461: \$? = $ac_status" >&5
22462 (exit "$ac_status"); }; }; then
22463 cf_cv_func_vsscanf=vsscanf
22465 echo "$as_me: failed program was:" >&5
22466 cat "conftest.$ac_ext" >&5
22468 cat >"conftest.$ac_ext" <<_ACEOF
22469 #line 22469 "configure"
22470 #include "confdefs.h"
22472 #include <stdarg.h>
22479 char *str = "from";
22481 strbuf._flag = _IOREAD;
22482 strbuf._ptr = strbuf._base = (unsigned char *) str;
22483 strbuf._cnt = strlen(str);
22484 strbuf._file = _NFILE;
22485 return (vfscanf(&strbuf, "%d", ap))
22490 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22491 if { (eval echo "$as_me:22491: \"$ac_link\"") >&5
22492 (eval $ac_link) 2>&5
22494 echo "$as_me:22494: \$? = $ac_status" >&5
22495 (exit "$ac_status"); } &&
22496 { ac_try='test -s "conftest$ac_exeext"'
22497 { (eval echo "$as_me:22497: \"$ac_try\"") >&5
22498 (eval $ac_try) 2>&5
22500 echo "$as_me:22500: \$? = $ac_status" >&5
22501 (exit "$ac_status"); }; }; then
22502 cf_cv_func_vsscanf=vfscanf
22504 echo "$as_me: failed program was:" >&5
22505 cat "conftest.$ac_ext" >&5
22507 cat >"conftest.$ac_ext" <<_ACEOF
22508 #line 22508 "configure"
22509 #include "confdefs.h"
22511 #include <stdarg.h>
22518 char *str = "from";
22520 strbuf._flag = _IOREAD;
22521 strbuf._ptr = strbuf._base = (unsigned char *) str;
22522 strbuf._cnt = strlen(str);
22523 strbuf._file = _NFILE;
22524 return (_doscan(&strbuf, "%d", ap))
22529 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22530 if { (eval echo "$as_me:22530: \"$ac_link\"") >&5
22531 (eval $ac_link) 2>&5
22533 echo "$as_me:22533: \$? = $ac_status" >&5
22534 (exit "$ac_status"); } &&
22535 { ac_try='test -s "conftest$ac_exeext"'
22536 { (eval echo "$as_me:22536: \"$ac_try\"") >&5
22537 (eval $ac_try) 2>&5
22539 echo "$as_me:22539: \$? = $ac_status" >&5
22540 (exit "$ac_status"); }; }; then
22541 cf_cv_func_vsscanf=_doscan
22543 echo "$as_me: failed program was:" >&5
22544 cat "conftest.$ac_ext" >&5
22546 cf_cv_func_vsscanf=no
22548 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22550 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22552 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22554 echo "$as_me:22554: result: $cf_cv_func_vsscanf" >&5
22555 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
22557 case "$cf_cv_func_vsscanf" in
22559 cat >>confdefs.h <<\EOF
22560 #define HAVE_VSSCANF 1
22564 cat >>confdefs.h <<\EOF
22565 #define HAVE_VFSCANF 1
22569 cat >>confdefs.h <<\EOF
22570 #define HAVE__DOSCAN 1
22579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22580 echo "$as_me:22580: checking for $ac_header" >&5
22581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22583 echo $ECHO_N "(cached) $ECHO_C" >&6
22585 cat >"conftest.$ac_ext" <<_ACEOF
22586 #line 22586 "configure"
22587 #include "confdefs.h"
22588 #include <$ac_header>
22590 if { (eval echo "$as_me:22590: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22591 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22593 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22595 cat conftest.err >&5
22596 echo "$as_me:22596: \$? = $ac_status" >&5
22597 (exit "$ac_status"); } >/dev/null; then
22598 if test -s conftest.err; then
22599 ac_cpp_err=$ac_c_preproc_warn_flag
22606 if test -z "$ac_cpp_err"; then
22607 eval "$as_ac_Header=yes"
22609 echo "$as_me: failed program was:" >&5
22610 cat "conftest.$ac_ext" >&5
22611 eval "$as_ac_Header=no"
22613 rm -f conftest.err "conftest.$ac_ext"
22615 echo "$as_me:22615: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22616 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22617 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22618 cat >>confdefs.h <<EOF
22619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22625 echo "$as_me:22625: checking for working mkstemp" >&5
22626 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
22627 if test "${cf_cv_func_mkstemp+set}" = set; then
22628 echo $ECHO_N "(cached) $ECHO_C" >&6
22632 if test "$cross_compiling" = yes; then
22633 cf_cv_func_mkstemp=maybe
22635 cat >"conftest.$ac_ext" <<_ACEOF
22636 #line 22636 "configure"
22637 #include "confdefs.h"
22639 $ac_includes_default
22643 char *tmpl = "conftestXXXXXX";
22651 for (n = 0; n < 2; ++n) {
22652 strcpy(name[n], tmpl);
22653 if ((fd = mkstemp(name[n])) >= 0) {
22654 if (!strcmp(name[n], tmpl)
22655 || stat(name[n], &sb) != 0
22656 || (sb.st_mode & S_IFMT) != S_IFREG
22657 || (sb.st_mode & 077) != 0) {
22664 && !strcmp(name[0], name[1]))
22666 ${cf_cv_main_return:-return}(result);
22670 rm -f "conftest$ac_exeext"
22671 if { (eval echo "$as_me:22671: \"$ac_link\"") >&5
22672 (eval $ac_link) 2>&5
22674 echo "$as_me:22674: \$? = $ac_status" >&5
22675 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22676 { (eval echo "$as_me:22676: \"$ac_try\"") >&5
22677 (eval $ac_try) 2>&5
22679 echo "$as_me:22679: \$? = $ac_status" >&5
22680 (exit "$ac_status"); }; }; then
22681 cf_cv_func_mkstemp=yes
22684 echo "$as_me: program exited with status $ac_status" >&5
22685 echo "$as_me: failed program was:" >&5
22686 cat "conftest.$ac_ext" >&5
22687 cf_cv_func_mkstemp=no
22690 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22694 echo "$as_me:22694: result: $cf_cv_func_mkstemp" >&5
22695 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
22696 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
22697 echo "$as_me:22697: checking for mkstemp" >&5
22698 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
22699 if test "${ac_cv_func_mkstemp+set}" = set; then
22700 echo $ECHO_N "(cached) $ECHO_C" >&6
22702 cat >"conftest.$ac_ext" <<_ACEOF
22703 #line 22703 "configure"
22704 #include "confdefs.h"
22705 #define mkstemp autoconf_temporary
22706 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22713 /* We use char because int might match the return type of a gcc2
22714 builtin and then its argument prototype would still apply. */
22715 char mkstemp (void);
22721 /* The GNU C library defines stubs for functions which it implements
22722 to always fail with ENOSYS. Some functions are actually named
22723 something starting with __ and the normal name is an alias. */
22724 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
22725 #error found stub for mkstemp
22733 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22734 if { (eval echo "$as_me:22734: \"$ac_link\"") >&5
22735 (eval $ac_link) 2>&5
22737 echo "$as_me:22737: \$? = $ac_status" >&5
22738 (exit "$ac_status"); } &&
22739 { ac_try='test -s "conftest$ac_exeext"'
22740 { (eval echo "$as_me:22740: \"$ac_try\"") >&5
22741 (eval $ac_try) 2>&5
22743 echo "$as_me:22743: \$? = $ac_status" >&5
22744 (exit "$ac_status"); }; }; then
22745 ac_cv_func_mkstemp=yes
22747 echo "$as_me: failed program was:" >&5
22748 cat "conftest.$ac_ext" >&5
22749 ac_cv_func_mkstemp=no
22751 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22753 echo "$as_me:22753: result: $ac_cv_func_mkstemp" >&5
22754 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
22757 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
22759 cat >>confdefs.h <<\EOF
22760 #define HAVE_MKSTEMP 1
22765 # setup for prototype of fallback for vsscanf()
22767 if test "$cf_cv_func_vsscanf" = vsscanf ; then
22773 if test "x$cross_compiling" = xyes ; then
22774 { echo "$as_me:22774: WARNING: cross compiling: assume setvbuf params not reversed" >&5
22775 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
22777 echo "$as_me:22777: checking whether setvbuf arguments are reversed" >&5
22778 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
22779 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
22780 echo $ECHO_N "(cached) $ECHO_C" >&6
22782 if test "$cross_compiling" = yes; then
22783 { { echo "$as_me:22783: error: cannot run test program while cross compiling" >&5
22784 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
22785 { (exit 1); exit 1; }; }
22787 cat >"conftest.$ac_ext" <<_ACEOF
22788 #line 22788 "configure"
22789 #include "confdefs.h"
22791 /* If setvbuf has the reversed format, exit 0. */
22795 /* This call has the arguments reversed.
22796 A reversed system may check and see that the address of main
22797 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
22798 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
22799 $ac_main_return(1);
22800 putc('\r', stdout);
22801 $ac_main_return(0); /* Non-reversed systems segv here. */
22804 rm -f "conftest$ac_exeext"
22805 if { (eval echo "$as_me:22805: \"$ac_link\"") >&5
22806 (eval $ac_link) 2>&5
22808 echo "$as_me:22808: \$? = $ac_status" >&5
22809 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22810 { (eval echo "$as_me:22810: \"$ac_try\"") >&5
22811 (eval $ac_try) 2>&5
22813 echo "$as_me:22813: \$? = $ac_status" >&5
22814 (exit "$ac_status"); }; }; then
22815 ac_cv_func_setvbuf_reversed=yes
22817 echo "$as_me: program exited with status $ac_status" >&5
22818 echo "$as_me: failed program was:" >&5
22819 cat "conftest.$ac_ext" >&5
22820 ac_cv_func_setvbuf_reversed=no
22822 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22824 rm -f core ./core.* ./*.core
22826 echo "$as_me:22826: result: $ac_cv_func_setvbuf_reversed" >&5
22827 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
22828 if test $ac_cv_func_setvbuf_reversed = yes; then
22830 cat >>confdefs.h <<\EOF
22831 #define SETVBUF_REVERSED 1
22837 echo "$as_me:22837: checking for intptr_t" >&5
22838 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
22839 if test "${ac_cv_type_intptr_t+set}" = set; then
22840 echo $ECHO_N "(cached) $ECHO_C" >&6
22842 cat >"conftest.$ac_ext" <<_ACEOF
22843 #line 22843 "configure"
22844 #include "confdefs.h"
22845 $ac_includes_default
22849 if ((intptr_t *) 0)
22851 if (sizeof (intptr_t))
22857 rm -f "conftest.$ac_objext"
22858 if { (eval echo "$as_me:22858: \"$ac_compile\"") >&5
22859 (eval $ac_compile) 2>&5
22861 echo "$as_me:22861: \$? = $ac_status" >&5
22862 (exit "$ac_status"); } &&
22863 { ac_try='test -s "conftest.$ac_objext"'
22864 { (eval echo "$as_me:22864: \"$ac_try\"") >&5
22865 (eval $ac_try) 2>&5
22867 echo "$as_me:22867: \$? = $ac_status" >&5
22868 (exit "$ac_status"); }; }; then
22869 ac_cv_type_intptr_t=yes
22871 echo "$as_me: failed program was:" >&5
22872 cat "conftest.$ac_ext" >&5
22873 ac_cv_type_intptr_t=no
22875 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22877 echo "$as_me:22877: result: $ac_cv_type_intptr_t" >&5
22878 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
22879 if test "$ac_cv_type_intptr_t" = yes; then
22883 cat >>confdefs.h <<EOF
22884 #define intptr_t long
22889 echo "$as_me:22889: checking for ssize_t" >&5
22890 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22891 if test "${ac_cv_type_ssize_t+set}" = set; then
22892 echo $ECHO_N "(cached) $ECHO_C" >&6
22894 cat >"conftest.$ac_ext" <<_ACEOF
22895 #line 22895 "configure"
22896 #include "confdefs.h"
22897 $ac_includes_default
22903 if (sizeof (ssize_t))
22909 rm -f "conftest.$ac_objext"
22910 if { (eval echo "$as_me:22910: \"$ac_compile\"") >&5
22911 (eval $ac_compile) 2>&5
22913 echo "$as_me:22913: \$? = $ac_status" >&5
22914 (exit "$ac_status"); } &&
22915 { ac_try='test -s "conftest.$ac_objext"'
22916 { (eval echo "$as_me:22916: \"$ac_try\"") >&5
22917 (eval $ac_try) 2>&5
22919 echo "$as_me:22919: \$? = $ac_status" >&5
22920 (exit "$ac_status"); }; }; then
22921 ac_cv_type_ssize_t=yes
22923 echo "$as_me: failed program was:" >&5
22924 cat "conftest.$ac_ext" >&5
22925 ac_cv_type_ssize_t=no
22927 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22929 echo "$as_me:22929: result: $ac_cv_type_ssize_t" >&5
22930 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22931 if test "$ac_cv_type_ssize_t" = yes; then
22935 cat >>confdefs.h <<EOF
22936 #define ssize_t int
22941 echo "$as_me:22941: checking for type sigaction_t" >&5
22942 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
22943 if test "${cf_cv_type_sigaction+set}" = set; then
22944 echo $ECHO_N "(cached) $ECHO_C" >&6
22947 cat >"conftest.$ac_ext" <<_ACEOF
22948 #line 22948 "configure"
22949 #include "confdefs.h"
22951 #include <signal.h>
22960 rm -f "conftest.$ac_objext"
22961 if { (eval echo "$as_me:22961: \"$ac_compile\"") >&5
22962 (eval $ac_compile) 2>&5
22964 echo "$as_me:22964: \$? = $ac_status" >&5
22965 (exit "$ac_status"); } &&
22966 { ac_try='test -s "conftest.$ac_objext"'
22967 { (eval echo "$as_me:22967: \"$ac_try\"") >&5
22968 (eval $ac_try) 2>&5
22970 echo "$as_me:22970: \$? = $ac_status" >&5
22971 (exit "$ac_status"); }; }; then
22972 cf_cv_type_sigaction=yes
22974 echo "$as_me: failed program was:" >&5
22975 cat "conftest.$ac_ext" >&5
22976 cf_cv_type_sigaction=no
22978 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22981 echo "$as_me:22981: result: $cf_cv_type_sigaction" >&5
22982 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
22983 test "$cf_cv_type_sigaction" = yes &&
22984 cat >>confdefs.h <<\EOF
22985 #define HAVE_TYPE_SIGACTION 1
22988 echo "$as_me:22988: checking declaration of size-change" >&5
22989 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
22990 if test "${cf_cv_sizechange+set}" = set; then
22991 echo $ECHO_N "(cached) $ECHO_C" >&6
22994 cf_cv_sizechange=unknown
22995 cf_save_CPPFLAGS="$CPPFLAGS"
22997 for cf_opts in "" "NEED_PTEM_H"
23000 CPPFLAGS="$cf_save_CPPFLAGS"
23001 if test -n "$cf_opts"
23004 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23005 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
23008 cat >"conftest.$ac_ext" <<_ACEOF
23009 #line 23009 "configure"
23010 #include "confdefs.h"
23011 #include <sys/types.h>
23012 #ifdef HAVE_TERMIOS_H
23013 #include <termios.h>
23015 #ifdef HAVE_TERMIO_H
23016 #include <termio.h>
23021 /* This is a workaround for SCO: they neglected to define struct winsize in
23022 * termios.h -- it is only in termio.h and ptem.h
23024 #include <sys/stream.h>
23025 #include <sys/ptem.h>
23028 #ifdef HAVE_SYS_IOCTL_H
23029 #include <sys/ioctl.h>
23037 struct ttysize win; /* SunOS 3.0... */
23038 int y = win.ts_lines = 2;
23039 int x = win.ts_cols = 1;
23044 struct winsize win; /* everything else */
23045 int y = win.ws_row = 2;
23046 int x = win.ws_col = 1;
23050 no TIOCGSIZE or TIOCGWINSZ
23051 #endif /* TIOCGWINSZ */
23052 #endif /* TIOCGSIZE */
23058 rm -f "conftest.$ac_objext"
23059 if { (eval echo "$as_me:23059: \"$ac_compile\"") >&5
23060 (eval $ac_compile) 2>&5
23062 echo "$as_me:23062: \$? = $ac_status" >&5
23063 (exit "$ac_status"); } &&
23064 { ac_try='test -s "conftest.$ac_objext"'
23065 { (eval echo "$as_me:23065: \"$ac_try\"") >&5
23066 (eval $ac_try) 2>&5
23068 echo "$as_me:23068: \$? = $ac_status" >&5
23069 (exit "$ac_status"); }; }; then
23070 cf_cv_sizechange=yes
23072 echo "$as_me: failed program was:" >&5
23073 cat "conftest.$ac_ext" >&5
23074 cf_cv_sizechange=no
23076 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23078 CPPFLAGS="$cf_save_CPPFLAGS"
23079 if test "$cf_cv_sizechange" = yes ; then
23080 echo "size-change succeeded ($cf_opts)" >&5
23081 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
23087 echo "$as_me:23087: result: $cf_cv_sizechange" >&5
23088 echo "${ECHO_T}$cf_cv_sizechange" >&6
23089 if test "$cf_cv_sizechange" != no ; then
23091 cat >>confdefs.h <<\EOF
23092 #define HAVE_SIZECHANGE 1
23095 case "$cf_cv_sizechange" in
23097 cat >>confdefs.h <<EOF
23098 #define $cf_cv_sizechange 1
23105 echo "$as_me:23105: checking for memmove" >&5
23106 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
23107 if test "${ac_cv_func_memmove+set}" = set; then
23108 echo $ECHO_N "(cached) $ECHO_C" >&6
23110 cat >"conftest.$ac_ext" <<_ACEOF
23111 #line 23111 "configure"
23112 #include "confdefs.h"
23113 #define memmove autoconf_temporary
23114 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23121 /* We use char because int might match the return type of a gcc2
23122 builtin and then its argument prototype would still apply. */
23123 char memmove (void);
23129 /* The GNU C library defines stubs for functions which it implements
23130 to always fail with ENOSYS. Some functions are actually named
23131 something starting with __ and the normal name is an alias. */
23132 #if defined (__stub_memmove) || defined (__stub___memmove)
23133 #error found stub for memmove
23141 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23142 if { (eval echo "$as_me:23142: \"$ac_link\"") >&5
23143 (eval $ac_link) 2>&5
23145 echo "$as_me:23145: \$? = $ac_status" >&5
23146 (exit "$ac_status"); } &&
23147 { ac_try='test -s "conftest$ac_exeext"'
23148 { (eval echo "$as_me:23148: \"$ac_try\"") >&5
23149 (eval $ac_try) 2>&5
23151 echo "$as_me:23151: \$? = $ac_status" >&5
23152 (exit "$ac_status"); }; }; then
23153 ac_cv_func_memmove=yes
23155 echo "$as_me: failed program was:" >&5
23156 cat "conftest.$ac_ext" >&5
23157 ac_cv_func_memmove=no
23159 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23161 echo "$as_me:23161: result: $ac_cv_func_memmove" >&5
23162 echo "${ECHO_T}$ac_cv_func_memmove" >&6
23163 if test "$ac_cv_func_memmove" = yes; then
23167 echo "$as_me:23167: checking for bcopy" >&5
23168 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
23169 if test "${ac_cv_func_bcopy+set}" = set; then
23170 echo $ECHO_N "(cached) $ECHO_C" >&6
23172 cat >"conftest.$ac_ext" <<_ACEOF
23173 #line 23173 "configure"
23174 #include "confdefs.h"
23175 #define bcopy autoconf_temporary
23176 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23183 /* We use char because int might match the return type of a gcc2
23184 builtin and then its argument prototype would still apply. */
23191 /* The GNU C library defines stubs for functions which it implements
23192 to always fail with ENOSYS. Some functions are actually named
23193 something starting with __ and the normal name is an alias. */
23194 #if defined (__stub_bcopy) || defined (__stub___bcopy)
23195 #error found stub for bcopy
23203 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23204 if { (eval echo "$as_me:23204: \"$ac_link\"") >&5
23205 (eval $ac_link) 2>&5
23207 echo "$as_me:23207: \$? = $ac_status" >&5
23208 (exit "$ac_status"); } &&
23209 { ac_try='test -s "conftest$ac_exeext"'
23210 { (eval echo "$as_me:23210: \"$ac_try\"") >&5
23211 (eval $ac_try) 2>&5
23213 echo "$as_me:23213: \$? = $ac_status" >&5
23214 (exit "$ac_status"); }; }; then
23215 ac_cv_func_bcopy=yes
23217 echo "$as_me: failed program was:" >&5
23218 cat "conftest.$ac_ext" >&5
23219 ac_cv_func_bcopy=no
23221 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23223 echo "$as_me:23223: result: $ac_cv_func_bcopy" >&5
23224 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
23225 if test "$ac_cv_func_bcopy" = yes; then
23227 echo "$as_me:23227: checking if bcopy does overlapping moves" >&5
23228 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
23229 if test "${cf_cv_good_bcopy+set}" = set; then
23230 echo $ECHO_N "(cached) $ECHO_C" >&6
23233 if test "$cross_compiling" = yes; then
23234 cf_cv_good_bcopy=unknown
23236 cat >"conftest.$ac_ext" <<_ACEOF
23237 #line 23237 "configure"
23238 #include "confdefs.h"
23240 $ac_includes_default
23243 static char data[] = "abcdefghijklmnopqrstuwwxyz";
23245 bcopy(data, temp, sizeof(data));
23246 bcopy(temp+10, temp, 15);
23247 bcopy(temp+5, temp+15, 10);
23248 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
23252 rm -f "conftest$ac_exeext"
23253 if { (eval echo "$as_me:23253: \"$ac_link\"") >&5
23254 (eval $ac_link) 2>&5
23256 echo "$as_me:23256: \$? = $ac_status" >&5
23257 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23258 { (eval echo "$as_me:23258: \"$ac_try\"") >&5
23259 (eval $ac_try) 2>&5
23261 echo "$as_me:23261: \$? = $ac_status" >&5
23262 (exit "$ac_status"); }; }; then
23263 cf_cv_good_bcopy=yes
23265 echo "$as_me: program exited with status $ac_status" >&5
23266 echo "$as_me: failed program was:" >&5
23267 cat "conftest.$ac_ext" >&5
23268 cf_cv_good_bcopy=no
23270 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23274 echo "$as_me:23274: result: $cf_cv_good_bcopy" >&5
23275 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
23278 cf_cv_good_bcopy=no
23281 if test "$cf_cv_good_bcopy" = yes ; then
23283 cat >>confdefs.h <<\EOF
23284 #define USE_OK_BCOPY 1
23289 cat >>confdefs.h <<\EOF
23290 #define USE_MY_MEMMOVE 1
23297 tty >/dev/null 2>&1 || {
23298 for ac_func in posix_openpt
23300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23301 echo "$as_me:23301: checking for $ac_func" >&5
23302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23303 if eval "test \"\${$as_ac_var+set}\" = set"; then
23304 echo $ECHO_N "(cached) $ECHO_C" >&6
23306 cat >"conftest.$ac_ext" <<_ACEOF
23307 #line 23307 "configure"
23308 #include "confdefs.h"
23309 #define $ac_func autoconf_temporary
23310 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23317 /* We use char because int might match the return type of a gcc2
23318 builtin and then its argument prototype would still apply. */
23319 char $ac_func (void);
23325 /* The GNU C library defines stubs for functions which it implements
23326 to always fail with ENOSYS. Some functions are actually named
23327 something starting with __ and the normal name is an alias. */
23328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23329 #error found stub for $ac_func
23332 return $ac_func ();
23337 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23338 if { (eval echo "$as_me:23338: \"$ac_link\"") >&5
23339 (eval $ac_link) 2>&5
23341 echo "$as_me:23341: \$? = $ac_status" >&5
23342 (exit "$ac_status"); } &&
23343 { ac_try='test -s "conftest$ac_exeext"'
23344 { (eval echo "$as_me:23344: \"$ac_try\"") >&5
23345 (eval $ac_try) 2>&5
23347 echo "$as_me:23347: \$? = $ac_status" >&5
23348 (exit "$ac_status"); }; }; then
23349 eval "$as_ac_var=yes"
23351 echo "$as_me: failed program was:" >&5
23352 cat "conftest.$ac_ext" >&5
23353 eval "$as_ac_var=no"
23355 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23357 echo "$as_me:23357: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23358 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23359 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23360 cat >>confdefs.h <<EOF
23361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23367 echo "$as_me:23367: checking if poll really works" >&5
23368 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
23369 if test "${cf_cv_working_poll+set}" = set; then
23370 echo $ECHO_N "(cached) $ECHO_C" >&6
23373 if test "$cross_compiling" = yes; then
23374 cf_cv_working_poll=unknown
23376 cat >"conftest.$ac_ext" <<_ACEOF
23377 #line 23377 "configure"
23378 #include "confdefs.h"
23380 $ac_includes_default
23387 #include <sys/poll.h>
23391 struct pollfd myfds;
23394 /* check for Darwin bug with respect to "devices" */
23395 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
23398 myfds.events = POLLIN;
23401 ret = poll(&myfds, 1, 100);
23403 if (ret < 0 || (myfds.revents & POLLNVAL)) {
23408 fd = open("/dev/tty", 2); /* O_RDWR */
23410 #ifdef HAVE_POSIX_OPENPT
23412 fd = posix_openpt(O_RDWR);
23417 /* also check with standard input */
23419 myfds.events = POLLIN;
23421 ret = poll(&myfds, 1, 100);
23426 ${cf_cv_main_return:-return}(ret < 0);
23429 rm -f "conftest$ac_exeext"
23430 if { (eval echo "$as_me:23430: \"$ac_link\"") >&5
23431 (eval $ac_link) 2>&5
23433 echo "$as_me:23433: \$? = $ac_status" >&5
23434 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23435 { (eval echo "$as_me:23435: \"$ac_try\"") >&5
23436 (eval $ac_try) 2>&5
23438 echo "$as_me:23438: \$? = $ac_status" >&5
23439 (exit "$ac_status"); }; }; then
23440 cf_cv_working_poll=yes
23442 echo "$as_me: program exited with status $ac_status" >&5
23443 echo "$as_me: failed program was:" >&5
23444 cat "conftest.$ac_ext" >&5
23445 cf_cv_working_poll=no
23447 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23450 echo "$as_me:23450: result: $cf_cv_working_poll" >&5
23451 echo "${ECHO_T}$cf_cv_working_poll" >&6
23452 test "$cf_cv_working_poll" = "yes" &&
23453 cat >>confdefs.h <<\EOF
23454 #define HAVE_WORKING_POLL 1
23457 echo "$as_me:23457: checking for va_copy" >&5
23458 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
23459 if test "${cf_cv_have_va_copy+set}" = set; then
23460 echo $ECHO_N "(cached) $ECHO_C" >&6
23463 cat >"conftest.$ac_ext" <<_ACEOF
23464 #line 23464 "configure"
23465 #include "confdefs.h"
23467 #include <stdarg.h>
23473 static va_list dst;
23474 static va_list src;
23480 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23481 if { (eval echo "$as_me:23481: \"$ac_link\"") >&5
23482 (eval $ac_link) 2>&5
23484 echo "$as_me:23484: \$? = $ac_status" >&5
23485 (exit "$ac_status"); } &&
23486 { ac_try='test -s "conftest$ac_exeext"'
23487 { (eval echo "$as_me:23487: \"$ac_try\"") >&5
23488 (eval $ac_try) 2>&5
23490 echo "$as_me:23490: \$? = $ac_status" >&5
23491 (exit "$ac_status"); }; }; then
23492 cf_cv_have_va_copy=yes
23494 echo "$as_me: failed program was:" >&5
23495 cat "conftest.$ac_ext" >&5
23496 cf_cv_have_va_copy=no
23498 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23500 echo "$as_me:23500: result: $cf_cv_have_va_copy" >&5
23501 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
23503 if test "$cf_cv_have_va_copy" = yes;
23506 cat >>confdefs.h <<\EOF
23507 #define HAVE_VA_COPY 1
23510 else # !cf_cv_have_va_copy
23512 echo "$as_me:23512: checking for __va_copy" >&5
23513 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
23514 if test "${cf_cv_have___va_copy+set}" = set; then
23515 echo $ECHO_N "(cached) $ECHO_C" >&6
23518 cat >"conftest.$ac_ext" <<_ACEOF
23519 #line 23519 "configure"
23520 #include "confdefs.h"
23522 #include <stdarg.h>
23528 static va_list dst;
23529 static va_list src;
23530 __va_copy(dst, src)
23535 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23536 if { (eval echo "$as_me:23536: \"$ac_link\"") >&5
23537 (eval $ac_link) 2>&5
23539 echo "$as_me:23539: \$? = $ac_status" >&5
23540 (exit "$ac_status"); } &&
23541 { ac_try='test -s "conftest$ac_exeext"'
23542 { (eval echo "$as_me:23542: \"$ac_try\"") >&5
23543 (eval $ac_try) 2>&5
23545 echo "$as_me:23545: \$? = $ac_status" >&5
23546 (exit "$ac_status"); }; }; then
23547 cf_cv_have___va_copy=yes
23549 echo "$as_me: failed program was:" >&5
23550 cat "conftest.$ac_ext" >&5
23551 cf_cv_have___va_copy=no
23553 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23555 echo "$as_me:23555: result: $cf_cv_have___va_copy" >&5
23556 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
23558 if test "$cf_cv_have___va_copy" = yes
23561 cat >>confdefs.h <<\EOF
23562 #define HAVE___VA_COPY 1
23565 else # !cf_cv_have___va_copy
23567 echo "$as_me:23567: checking for __builtin_va_copy" >&5
23568 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
23569 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
23570 echo $ECHO_N "(cached) $ECHO_C" >&6
23573 cat >"conftest.$ac_ext" <<_ACEOF
23574 #line 23574 "configure"
23575 #include "confdefs.h"
23577 #include <stdarg.h>
23583 static va_list dst;
23584 static va_list src;
23585 __builtin_va_copy(dst, src)
23590 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23591 if { (eval echo "$as_me:23591: \"$ac_link\"") >&5
23592 (eval $ac_link) 2>&5
23594 echo "$as_me:23594: \$? = $ac_status" >&5
23595 (exit "$ac_status"); } &&
23596 { ac_try='test -s "conftest$ac_exeext"'
23597 { (eval echo "$as_me:23597: \"$ac_try\"") >&5
23598 (eval $ac_try) 2>&5
23600 echo "$as_me:23600: \$? = $ac_status" >&5
23601 (exit "$ac_status"); }; }; then
23602 cf_cv_have___builtin_va_copy=yes
23604 echo "$as_me: failed program was:" >&5
23605 cat "conftest.$ac_ext" >&5
23606 cf_cv_have___builtin_va_copy=no
23608 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23610 echo "$as_me:23610: result: $cf_cv_have___builtin_va_copy" >&5
23611 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
23613 test "$cf_cv_have___builtin_va_copy" = yes &&
23615 cat >>confdefs.h <<\EOF
23616 #define HAVE___BUILTIN_VA_COPY 1
23619 fi # cf_cv_have___va_copy
23621 fi # cf_cv_have_va_copy
23623 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
23628 echo "$as_me:23628: checking if we can simply copy va_list" >&5
23629 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
23630 if test "${cf_cv_pointer_va_list+set}" = set; then
23631 echo $ECHO_N "(cached) $ECHO_C" >&6
23634 cat >"conftest.$ac_ext" <<_ACEOF
23635 #line 23635 "configure"
23636 #include "confdefs.h"
23638 #include <stdarg.h>
23651 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23652 if { (eval echo "$as_me:23652: \"$ac_link\"") >&5
23653 (eval $ac_link) 2>&5
23655 echo "$as_me:23655: \$? = $ac_status" >&5
23656 (exit "$ac_status"); } &&
23657 { ac_try='test -s "conftest$ac_exeext"'
23658 { (eval echo "$as_me:23658: \"$ac_try\"") >&5
23659 (eval $ac_try) 2>&5
23661 echo "$as_me:23661: \$? = $ac_status" >&5
23662 (exit "$ac_status"); }; }; then
23663 cf_cv_pointer_va_list=yes
23665 echo "$as_me: failed program was:" >&5
23666 cat "conftest.$ac_ext" >&5
23667 cf_cv_pointer_va_list=no
23669 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23671 echo "$as_me:23671: result: $cf_cv_pointer_va_list" >&5
23672 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
23674 if test "$cf_cv_pointer_va_list" = no
23676 echo "$as_me:23676: checking if we can copy va_list indirectly" >&5
23677 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
23678 if test "${cf_cv_array_va_list+set}" = set; then
23679 echo $ECHO_N "(cached) $ECHO_C" >&6
23682 cat >"conftest.$ac_ext" <<_ACEOF
23683 #line 23683 "configure"
23684 #include "confdefs.h"
23686 #include <stdarg.h>
23699 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23700 if { (eval echo "$as_me:23700: \"$ac_link\"") >&5
23701 (eval $ac_link) 2>&5
23703 echo "$as_me:23703: \$? = $ac_status" >&5
23704 (exit "$ac_status"); } &&
23705 { ac_try='test -s "conftest$ac_exeext"'
23706 { (eval echo "$as_me:23706: \"$ac_try\"") >&5
23707 (eval $ac_try) 2>&5
23709 echo "$as_me:23709: \$? = $ac_status" >&5
23710 (exit "$ac_status"); }; }; then
23711 cf_cv_array_va_list=yes
23713 echo "$as_me: failed program was:" >&5
23714 cat "conftest.$ac_ext" >&5
23715 cf_cv_array_va_list=no
23717 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23719 echo "$as_me:23719: result: $cf_cv_array_va_list" >&5
23720 echo "${ECHO_T}$cf_cv_array_va_list" >&6
23721 test "$cf_cv_array_va_list" = yes &&
23722 cat >>confdefs.h <<\EOF
23723 #define ARRAY_VA_LIST 1
23730 echo "$as_me:23730: checking for pid_t" >&5
23731 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
23732 if test "${ac_cv_type_pid_t+set}" = set; then
23733 echo $ECHO_N "(cached) $ECHO_C" >&6
23735 cat >"conftest.$ac_ext" <<_ACEOF
23736 #line 23736 "configure"
23737 #include "confdefs.h"
23738 $ac_includes_default
23744 if (sizeof (pid_t))
23750 rm -f "conftest.$ac_objext"
23751 if { (eval echo "$as_me:23751: \"$ac_compile\"") >&5
23752 (eval $ac_compile) 2>&5
23754 echo "$as_me:23754: \$? = $ac_status" >&5
23755 (exit "$ac_status"); } &&
23756 { ac_try='test -s "conftest.$ac_objext"'
23757 { (eval echo "$as_me:23757: \"$ac_try\"") >&5
23758 (eval $ac_try) 2>&5
23760 echo "$as_me:23760: \$? = $ac_status" >&5
23761 (exit "$ac_status"); }; }; then
23762 ac_cv_type_pid_t=yes
23764 echo "$as_me: failed program was:" >&5
23765 cat "conftest.$ac_ext" >&5
23766 ac_cv_type_pid_t=no
23768 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23770 echo "$as_me:23770: result: $ac_cv_type_pid_t" >&5
23771 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23772 if test "$ac_cv_type_pid_t" = yes; then
23776 cat >>confdefs.h <<EOF
23782 for ac_header in unistd.h vfork.h
23784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23785 echo "$as_me:23785: checking for $ac_header" >&5
23786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23788 echo $ECHO_N "(cached) $ECHO_C" >&6
23790 cat >"conftest.$ac_ext" <<_ACEOF
23791 #line 23791 "configure"
23792 #include "confdefs.h"
23793 #include <$ac_header>
23795 if { (eval echo "$as_me:23795: \"$ac_cpp "conftest.$ac_ext"\"") >&5
23796 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
23798 $EGREP -v '^ *\+' conftest.er1 >conftest.err
23800 cat conftest.err >&5
23801 echo "$as_me:23801: \$? = $ac_status" >&5
23802 (exit "$ac_status"); } >/dev/null; then
23803 if test -s conftest.err; then
23804 ac_cpp_err=$ac_c_preproc_warn_flag
23811 if test -z "$ac_cpp_err"; then
23812 eval "$as_ac_Header=yes"
23814 echo "$as_me: failed program was:" >&5
23815 cat "conftest.$ac_ext" >&5
23816 eval "$as_ac_Header=no"
23818 rm -f conftest.err "conftest.$ac_ext"
23820 echo "$as_me:23820: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
23821 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
23822 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
23823 cat >>confdefs.h <<EOF
23824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23830 for ac_func in fork vfork
23832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23833 echo "$as_me:23833: checking for $ac_func" >&5
23834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23835 if eval "test \"\${$as_ac_var+set}\" = set"; then
23836 echo $ECHO_N "(cached) $ECHO_C" >&6
23838 cat >"conftest.$ac_ext" <<_ACEOF
23839 #line 23839 "configure"
23840 #include "confdefs.h"
23841 #define $ac_func autoconf_temporary
23842 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23849 /* We use char because int might match the return type of a gcc2
23850 builtin and then its argument prototype would still apply. */
23851 char $ac_func (void);
23857 /* The GNU C library defines stubs for functions which it implements
23858 to always fail with ENOSYS. Some functions are actually named
23859 something starting with __ and the normal name is an alias. */
23860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23861 #error found stub for $ac_func
23864 return $ac_func ();
23869 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23870 if { (eval echo "$as_me:23870: \"$ac_link\"") >&5
23871 (eval $ac_link) 2>&5
23873 echo "$as_me:23873: \$? = $ac_status" >&5
23874 (exit "$ac_status"); } &&
23875 { ac_try='test -s "conftest$ac_exeext"'
23876 { (eval echo "$as_me:23876: \"$ac_try\"") >&5
23877 (eval $ac_try) 2>&5
23879 echo "$as_me:23879: \$? = $ac_status" >&5
23880 (exit "$ac_status"); }; }; then
23881 eval "$as_ac_var=yes"
23883 echo "$as_me: failed program was:" >&5
23884 cat "conftest.$ac_ext" >&5
23885 eval "$as_ac_var=no"
23887 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23889 echo "$as_me:23889: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23890 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23891 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23892 cat >>confdefs.h <<EOF
23893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23899 ac_cv_func_fork_works=$ac_cv_func_fork
23900 if test "x$ac_cv_func_fork" = xyes; then
23901 echo "$as_me:23901: checking for working fork" >&5
23902 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23903 if test "${ac_cv_func_fork_works+set}" = set; then
23904 echo $ECHO_N "(cached) $ECHO_C" >&6
23906 if test "$cross_compiling" = yes; then
23907 ac_cv_func_fork_works=cross
23909 cat >"conftest.$ac_ext" <<_ACEOF
23910 /* By Rüdiger Kuhlmann. */
23911 #include <sys/types.h>
23913 # include <unistd.h>
23915 /* Some systems only have a dummy stub for fork() */
23919 $ac_main_return (1);
23920 $ac_main_return (0);
23923 rm -f "conftest$ac_exeext"
23924 if { (eval echo "$as_me:23924: \"$ac_link\"") >&5
23925 (eval $ac_link) 2>&5
23927 echo "$as_me:23927: \$? = $ac_status" >&5
23928 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23929 { (eval echo "$as_me:23929: \"$ac_try\"") >&5
23930 (eval $ac_try) 2>&5
23932 echo "$as_me:23932: \$? = $ac_status" >&5
23933 (exit "$ac_status"); }; }; then
23934 ac_cv_func_fork_works=yes
23936 echo "$as_me: program exited with status $ac_status" >&5
23937 echo "$as_me: failed program was:" >&5
23938 cat "conftest.$ac_ext" >&5
23939 ac_cv_func_fork_works=no
23941 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23944 echo "$as_me:23944: result: $ac_cv_func_fork_works" >&5
23945 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23948 if test "x$ac_cv_func_fork_works" = xcross; then
23950 *-*-amigaos* | *-*-msdosdjgpp*)
23951 # Override, as these systems have only a dummy fork() stub
23952 ac_cv_func_fork_works=no
23955 ac_cv_func_fork_works=yes
23958 { echo "$as_me:23958: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
23959 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
23961 ac_cv_func_vfork_works=$ac_cv_func_vfork
23962 if test "x$ac_cv_func_vfork" = xyes; then
23963 echo "$as_me:23963: checking for working vfork" >&5
23964 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23965 if test "${ac_cv_func_vfork_works+set}" = set; then
23966 echo $ECHO_N "(cached) $ECHO_C" >&6
23968 if test "$cross_compiling" = yes; then
23969 ac_cv_func_vfork_works=cross
23971 cat >"conftest.$ac_ext" <<_ACEOF
23972 #line 23972 "configure"
23973 #include "confdefs.h"
23974 /* Thanks to Paul Eggert for this test. */
23976 #include <sys/types.h>
23977 #include <sys/stat.h>
23979 # include <unistd.h>
23982 # include <vfork.h>
23984 /* On some sparc systems, changes by the child to local and incoming
23985 argument registers are propagated back to the parent. The compiler
23986 is told about this with #include <vfork.h>, but some compilers
23987 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23988 static variable whose address is put into a register that is
23989 clobbered by the vfork. */
23992 sparc_address_test (int arg)
23994 sparc_address_test (arg) int arg;
23997 static pid_t child;
24015 pid_t parent = getpid ();
24018 sparc_address_test ();
24023 /* Here is another test for sparc vfork register problems. This
24024 test uses lots of local variables, at least as many local
24025 variables as main has allocated so far including compiler
24026 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24027 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24028 reuse the register of parent for one of the local variables,
24029 since it will think that parent can't possibly be used any more
24030 in this routine. Assigning to the local variable will thus
24031 munge parent in the parent process. */
24033 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24034 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24035 /* Convince the compiler that p..p7 are live; otherwise, it might
24036 use the same hardware register for all 8 local variables. */
24037 if (p != p1 || p != p2 || p != p3 || p != p4
24038 || p != p5 || p != p6 || p != p7)
24041 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24042 from child file descriptors. If the child closes a descriptor
24043 before it execs or exits, this munges the parent's descriptor
24044 as well. Test for this by closing stdout in the child. */
24045 _exit(close(fileno(stdout)) != 0);
24050 while (wait(&status) != child)
24053 /* Was there some problem with vforking? */
24056 /* Did the child fail? (This shouldn't happen.) */
24059 /* Did the vfork/compiler bug occur? */
24060 || parent != getpid()
24062 /* Did the file descriptor bug occur? */
24063 || fstat(fileno(stdout), &st) != 0
24068 rm -f "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"); } && { ac_try='"./conftest$ac_exeext"'
24074 { (eval echo "$as_me:24074: \"$ac_try\"") >&5
24075 (eval $ac_try) 2>&5
24077 echo "$as_me:24077: \$? = $ac_status" >&5
24078 (exit "$ac_status"); }; }; then
24079 ac_cv_func_vfork_works=yes
24081 echo "$as_me: program exited with status $ac_status" >&5
24082 echo "$as_me: failed program was:" >&5
24083 cat "conftest.$ac_ext" >&5
24084 ac_cv_func_vfork_works=no
24086 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24089 echo "$as_me:24089: result: $ac_cv_func_vfork_works" >&5
24090 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
24093 if test "x$ac_cv_func_fork_works" = xcross; then
24094 ac_cv_func_vfork_works=ac_cv_func_vfork
24095 { echo "$as_me:24095: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
24096 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
24099 if test "x$ac_cv_func_vfork_works" = xyes; then
24101 cat >>confdefs.h <<\EOF
24102 #define HAVE_WORKING_VFORK 1
24107 cat >>confdefs.h <<\EOF
24112 if test "x$ac_cv_func_fork_works" = xyes; then
24114 cat >>confdefs.h <<\EOF
24115 #define HAVE_WORKING_FORK 1
24120 echo "$as_me:24120: checking if fopen accepts explicit binary mode" >&5
24121 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
24122 if test "${cf_cv_fopen_bin_r+set}" = set; then
24123 echo $ECHO_N "(cached) $ECHO_C" >&6
24126 if test "$cross_compiling" = yes; then
24127 cf_cv_fopen_bin_r=unknown
24129 cat >"conftest.$ac_ext" <<_ACEOF
24130 #line 24130 "configure"
24131 #include "confdefs.h"
24133 $ac_includes_default
24137 FILE *fp = fopen("conftest.tmp", "wb");
24141 for (p = 0; p < 256; ++p) {
24145 fp = fopen("conftest.tmp", "rb");
24147 for (p = 0; p < 256; ++p) {
24160 ${cf_cv_main_return:-return} (rc);
24164 rm -f "conftest$ac_exeext"
24165 if { (eval echo "$as_me:24165: \"$ac_link\"") >&5
24166 (eval $ac_link) 2>&5
24168 echo "$as_me:24168: \$? = $ac_status" >&5
24169 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24170 { (eval echo "$as_me:24170: \"$ac_try\"") >&5
24171 (eval $ac_try) 2>&5
24173 echo "$as_me:24173: \$? = $ac_status" >&5
24174 (exit "$ac_status"); }; }; then
24175 cf_cv_fopen_bin_r=yes
24177 echo "$as_me: program exited with status $ac_status" >&5
24178 echo "$as_me: failed program was:" >&5
24179 cat "conftest.$ac_ext" >&5
24180 cf_cv_fopen_bin_r=no
24182 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24186 echo "$as_me:24186: result: $cf_cv_fopen_bin_r" >&5
24187 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
24188 test "x$cf_cv_fopen_bin_r" != xno &&
24189 cat >>confdefs.h <<\EOF
24190 #define USE_FOPEN_BIN_R 1
24193 # special check for test/ditto.c
24195 echo "$as_me:24195: checking for openpty in -lutil" >&5
24196 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
24197 if test "${ac_cv_lib_util_openpty+set}" = set; then
24198 echo $ECHO_N "(cached) $ECHO_C" >&6
24200 ac_check_lib_save_LIBS=$LIBS
24201 LIBS="-lutil $LIBS"
24202 cat >"conftest.$ac_ext" <<_ACEOF
24203 #line 24203 "configure"
24204 #include "confdefs.h"
24206 /* Override any gcc2 internal prototype to avoid an error. */
24210 /* We use char because int might match the return type of a gcc2
24211 builtin and then its argument prototype would still apply. */
24221 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24222 if { (eval echo "$as_me:24222: \"$ac_link\"") >&5
24223 (eval $ac_link) 2>&5
24225 echo "$as_me:24225: \$? = $ac_status" >&5
24226 (exit "$ac_status"); } &&
24227 { ac_try='test -s "conftest$ac_exeext"'
24228 { (eval echo "$as_me:24228: \"$ac_try\"") >&5
24229 (eval $ac_try) 2>&5
24231 echo "$as_me:24231: \$? = $ac_status" >&5
24232 (exit "$ac_status"); }; }; then
24233 ac_cv_lib_util_openpty=yes
24235 echo "$as_me: failed program was:" >&5
24236 cat "conftest.$ac_ext" >&5
24237 ac_cv_lib_util_openpty=no
24239 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24240 LIBS=$ac_check_lib_save_LIBS
24242 echo "$as_me:24242: result: $ac_cv_lib_util_openpty" >&5
24243 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
24244 if test "$ac_cv_lib_util_openpty" = yes; then
24250 echo "$as_me:24250: checking for openpty header" >&5
24251 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
24252 if test "${cf_cv_func_openpty+set}" = set; then
24253 echo $ECHO_N "(cached) $ECHO_C" >&6
24256 cf_save_LIBS="$LIBS"
24257 test "$cf_cv_lib_util" = yes && {
24258 cf_add_libs="$LIBS"
24261 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24262 # filter duplicates
24263 for cf_add_1lib in $cf_add_0lib; do
24264 for cf_add_2lib in $cf_add_libs; do
24265 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24270 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24272 LIBS="$cf_add_libs"
24274 for cf_header in pty.h libutil.h util.h
24276 cat >"conftest.$ac_ext" <<_ACEOF
24277 #line 24277 "configure"
24278 #include "confdefs.h"
24280 #include <$cf_header>
24286 int x = openpty((int *)0, (int *)0, (char *)0,
24287 (struct termios *)0, (struct winsize *)0);
24293 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24294 if { (eval echo "$as_me:24294: \"$ac_link\"") >&5
24295 (eval $ac_link) 2>&5
24297 echo "$as_me:24297: \$? = $ac_status" >&5
24298 (exit "$ac_status"); } &&
24299 { ac_try='test -s "conftest$ac_exeext"'
24300 { (eval echo "$as_me:24300: \"$ac_try\"") >&5
24301 (eval $ac_try) 2>&5
24303 echo "$as_me:24303: \$? = $ac_status" >&5
24304 (exit "$ac_status"); }; }; then
24306 cf_cv_func_openpty=$cf_header
24310 echo "$as_me: failed program was:" >&5
24311 cat "conftest.$ac_ext" >&5
24313 cf_cv_func_openpty=no
24316 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24318 LIBS="$cf_save_LIBS"
24321 echo "$as_me:24321: result: $cf_cv_func_openpty" >&5
24322 echo "${ECHO_T}$cf_cv_func_openpty" >&6
24324 if test "$cf_cv_func_openpty" != no ; then
24326 cat >>confdefs.h <<EOF
24327 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
24330 cat >>confdefs.h <<\EOF
24331 #define USE_XTERM_PTY 1
24334 if test "x$cf_cv_lib_util" = xyes ; then
24336 cf_add_libs="$TEST_LIBS"
24339 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24340 # filter duplicates
24341 for cf_add_1lib in $cf_add_0lib; do
24342 for cf_add_2lib in $cf_add_libs; do
24343 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24348 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24350 TEST_LIBS="$cf_add_libs"
24355 if test "$with_hashed_db" != no ; then
24357 cat >>confdefs.h <<\EOF
24358 #define USE_HASHED_DB 1
24361 case $with_hashed_db in
24365 if test -d "$with_hashed_db" ; then
24367 if test -n "$with_hashed_db/include" ; then
24368 for cf_add_incdir in $with_hashed_db/include
24370 while test "$cf_add_incdir" != /usr/include
24372 if test -d "$cf_add_incdir"
24375 if test -n "$CFLAGS$CPPFLAGS" ; then
24376 # a loop is needed to ensure we can add subdirs of existing dirs
24377 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24378 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24379 cf_have_incdir=yes; break
24384 if test "$cf_have_incdir" = no ; then
24385 if test "$cf_add_incdir" = /usr/local/include ; then
24386 if test "$GCC" = yes
24388 cf_save_CPPFLAGS=$CPPFLAGS
24390 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24391 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24393 cat >"conftest.$ac_ext" <<_ACEOF
24394 #line 24394 "configure"
24395 #include "confdefs.h"
24405 rm -f "conftest.$ac_objext"
24406 if { (eval echo "$as_me:24406: \"$ac_compile\"") >&5
24407 (eval $ac_compile) 2>&5
24409 echo "$as_me:24409: \$? = $ac_status" >&5
24410 (exit "$ac_status"); } &&
24411 { ac_try='test -s "conftest.$ac_objext"'
24412 { (eval echo "$as_me:24412: \"$ac_try\"") >&5
24413 (eval $ac_try) 2>&5
24415 echo "$as_me:24415: \$? = $ac_status" >&5
24416 (exit "$ac_status"); }; }; then
24419 echo "$as_me: failed program was:" >&5
24420 cat "conftest.$ac_ext" >&5
24423 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24424 CPPFLAGS=$cf_save_CPPFLAGS
24429 if test "$cf_have_incdir" = no ; then
24430 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24432 echo "${as_me:-configure}:24432: testing adding $cf_add_incdir to include-path ..." 1>&5
24434 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24436 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24437 test "$cf_top_incdir" = "$cf_add_incdir" && break
24438 cf_add_incdir="$cf_top_incdir"
24449 if test -n "$with_hashed_db/lib" ; then
24450 for cf_add_libdir in $with_hashed_db/lib
24452 if test "$cf_add_libdir" = /usr/lib ; then
24454 elif test -d "$cf_add_libdir"
24457 if test -n "$LDFLAGS$LIBS" ; then
24458 # a loop is needed to ensure we can add subdirs of existing dirs
24459 for cf_test_libdir in $LDFLAGS $LIBS ; do
24460 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24461 cf_have_libdir=yes; break
24465 if test "$cf_have_libdir" = no ; then
24466 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24468 echo "${as_me:-configure}:24468: testing adding $cf_add_libdir to library-path ..." 1>&5
24470 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24477 case "$with_hashed_db" in
24479 { echo "$as_me:24479: WARNING: no such directory $with_hashed_db" >&5
24480 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
24486 test "x$prefix" != "xNONE" && \
24487 test -d "$prefix" && \
24489 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
24490 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
24491 test -d "$prefix/include/$with_hashed_db" && cf_search="$cf_search $prefix/include/$with_hashed_db"
24492 test -d "$prefix/include/$with_hashed_db/include" && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
24493 test -d "$prefix/$with_hashed_db/include" && cf_search="$cf_search $prefix/$with_hashed_db/include"
24494 test -d "$prefix/$with_hashed_db/include/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
24497 for cf_subdir_prefix in \
24506 test "x$cf_subdir_prefix" != "x$prefix" && \
24507 test -d "$cf_subdir_prefix" && \
24508 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24509 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
24510 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
24511 test -d "$cf_subdir_prefix/include/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
24512 test -d "$cf_subdir_prefix/include/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
24513 test -d "$cf_subdir_prefix/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
24514 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"
24519 for cf_item in $cf_search
24522 (*/$with_hashed_db)
24524 if test -n "$cf_item" ; then
24525 for cf_add_incdir in $cf_item
24527 while test "$cf_add_incdir" != /usr/include
24529 if test -d "$cf_add_incdir"
24532 if test -n "$CFLAGS$CPPFLAGS" ; then
24533 # a loop is needed to ensure we can add subdirs of existing dirs
24534 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24535 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24536 cf_have_incdir=yes; break
24541 if test "$cf_have_incdir" = no ; then
24542 if test "$cf_add_incdir" = /usr/local/include ; then
24543 if test "$GCC" = yes
24545 cf_save_CPPFLAGS=$CPPFLAGS
24547 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24548 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24550 cat >"conftest.$ac_ext" <<_ACEOF
24551 #line 24551 "configure"
24552 #include "confdefs.h"
24562 rm -f "conftest.$ac_objext"
24563 if { (eval echo "$as_me:24563: \"$ac_compile\"") >&5
24564 (eval $ac_compile) 2>&5
24566 echo "$as_me:24566: \$? = $ac_status" >&5
24567 (exit "$ac_status"); } &&
24568 { ac_try='test -s "conftest.$ac_objext"'
24569 { (eval echo "$as_me:24569: \"$ac_try\"") >&5
24570 (eval $ac_try) 2>&5
24572 echo "$as_me:24572: \$? = $ac_status" >&5
24573 (exit "$ac_status"); }; }; then
24576 echo "$as_me: failed program was:" >&5
24577 cat "conftest.$ac_ext" >&5
24580 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24581 CPPFLAGS=$cf_save_CPPFLAGS
24586 if test "$cf_have_incdir" = no ; then
24587 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24589 echo "${as_me:-configure}:24589: testing adding $cf_add_incdir to include-path ..." 1>&5
24591 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24593 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24594 test "$cf_top_incdir" = "$cf_add_incdir" && break
24595 cf_add_incdir="$cf_top_incdir"
24612 test "x$prefix" != "xNONE" && \
24613 test -d "$prefix" && \
24615 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
24616 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
24617 test -d "$prefix/lib/$with_hashed_db" && cf_search="$cf_search $prefix/lib/$with_hashed_db"
24618 test -d "$prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
24619 test -d "$prefix/$with_hashed_db/lib" && cf_search="$cf_search $prefix/$with_hashed_db/lib"
24620 test -d "$prefix/$with_hashed_db/lib/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
24623 for cf_subdir_prefix in \
24632 test "x$cf_subdir_prefix" != "x$prefix" && \
24633 test -d "$cf_subdir_prefix" && \
24634 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24635 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
24636 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
24637 test -d "$cf_subdir_prefix/lib/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
24638 test -d "$cf_subdir_prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
24639 test -d "$cf_subdir_prefix/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
24640 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"
24645 for cf_item in $cf_search
24648 (*/$with_hashed_db)
24650 if test -n "$cf_item" ; then
24651 for cf_add_libdir in $cf_item
24653 if test "$cf_add_libdir" = /usr/lib ; then
24655 elif test -d "$cf_add_libdir"
24658 if test -n "$LDFLAGS$LIBS" ; then
24659 # a loop is needed to ensure we can add subdirs of existing dirs
24660 for cf_test_libdir in $LDFLAGS $LIBS ; do
24661 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24662 cf_have_libdir=yes; break
24666 if test "$cf_have_libdir" = no ; then
24667 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24669 echo "${as_me:-configure}:24669: testing adding $cf_add_libdir to library-path ..." 1>&5
24671 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24686 echo "$as_me:24686: checking for db.h" >&5
24687 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
24688 if test "${ac_cv_header_db_h+set}" = set; then
24689 echo $ECHO_N "(cached) $ECHO_C" >&6
24691 cat >"conftest.$ac_ext" <<_ACEOF
24692 #line 24692 "configure"
24693 #include "confdefs.h"
24696 if { (eval echo "$as_me:24696: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24697 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24699 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24701 cat conftest.err >&5
24702 echo "$as_me:24702: \$? = $ac_status" >&5
24703 (exit "$ac_status"); } >/dev/null; then
24704 if test -s conftest.err; then
24705 ac_cpp_err=$ac_c_preproc_warn_flag
24712 if test -z "$ac_cpp_err"; then
24713 ac_cv_header_db_h=yes
24715 echo "$as_me: failed program was:" >&5
24716 cat "conftest.$ac_ext" >&5
24717 ac_cv_header_db_h=no
24719 rm -f conftest.err "conftest.$ac_ext"
24721 echo "$as_me:24721: result: $ac_cv_header_db_h" >&5
24722 echo "${ECHO_T}$ac_cv_header_db_h" >&6
24723 if test "$ac_cv_header_db_h" = yes; then
24725 echo "$as_me:24725: checking for version of db" >&5
24726 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
24727 if test "${cf_cv_hashed_db_version+set}" = set; then
24728 echo $ECHO_N "(cached) $ECHO_C" >&6
24731 cf_cv_hashed_db_version=unknown
24733 for cf_db_version in 1 2 3 4 5 6
24736 echo "${as_me:-configure}:24736: testing checking for db version $cf_db_version ..." 1>&5
24738 cat >"conftest.$ac_ext" <<_ACEOF
24739 #line 24739 "configure"
24740 #include "confdefs.h"
24742 $ac_includes_default
24745 #ifdef DB_VERSION_MAJOR
24746 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
24747 #if $cf_db_version == DB_VERSION_MAJOR
24750 #error $cf_db_version is not DB_VERSION_MAJOR
24753 #if $cf_db_version == 1
24754 /* ok: assuming this is DB 1.8.5 */
24756 #error $cf_db_version is not 1
24768 rm -f "conftest.$ac_objext"
24769 if { (eval echo "$as_me:24769: \"$ac_compile\"") >&5
24770 (eval $ac_compile) 2>&5
24772 echo "$as_me:24772: \$? = $ac_status" >&5
24773 (exit "$ac_status"); } &&
24774 { ac_try='test -s "conftest.$ac_objext"'
24775 { (eval echo "$as_me:24775: \"$ac_try\"") >&5
24776 (eval $ac_try) 2>&5
24778 echo "$as_me:24778: \$? = $ac_status" >&5
24779 (exit "$ac_status"); }; }; then
24781 cf_cv_hashed_db_version=$cf_db_version
24785 echo "$as_me: failed program was:" >&5
24786 cat "conftest.$ac_ext" >&5
24788 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24792 echo "$as_me:24792: result: $cf_cv_hashed_db_version" >&5
24793 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
24795 if test "$cf_cv_hashed_db_version" = unknown ; then
24796 { { echo "$as_me:24796: error: Cannot determine version of db" >&5
24797 echo "$as_me: error: Cannot determine version of db" >&2;}
24798 { (exit 1); exit 1; }; }
24801 echo "$as_me:24801: checking for db libraries" >&5
24802 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
24803 if test "${cf_cv_hashed_db_libs+set}" = set; then
24804 echo $ECHO_N "(cached) $ECHO_C" >&6
24807 cf_cv_hashed_db_libs=unknown
24808 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
24810 cf_save_libs="$LIBS"
24811 if test -n "$cf_db_libs"; then
24813 cf_add_libs="$LIBS"
24816 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24817 # filter duplicates
24818 for cf_add_1lib in $cf_add_0lib; do
24819 for cf_add_2lib in $cf_add_libs; do
24820 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24825 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24827 LIBS="$cf_add_libs"
24831 echo "${as_me:-configure}:24831: testing checking for library $cf_db_libs ..." 1>&5
24833 cat >"conftest.$ac_ext" <<_ACEOF
24834 #line 24834 "configure"
24835 #include "confdefs.h"
24837 $ac_includes_default
24844 char *path = "/tmp/foo";
24845 #ifdef DB_VERSION_MAJOR
24846 #if DB_VERSION_MAJOR >= 4
24848 db_create(&result, NULL, 0);
24849 result->open(result,
24856 #elif DB_VERSION_MAJOR >= 3
24858 db_create(&result, NULL, 0);
24859 result->open(result,
24865 #elif DB_VERSION_MAJOR >= 2
24874 #endif /* DB_VERSION_MAJOR */
24876 DB *result = dbopen(path,
24882 ${cf_cv_main_return:-return}(result != 0)
24888 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24889 if { (eval echo "$as_me:24889: \"$ac_link\"") >&5
24890 (eval $ac_link) 2>&5
24892 echo "$as_me:24892: \$? = $ac_status" >&5
24893 (exit "$ac_status"); } &&
24894 { ac_try='test -s "conftest$ac_exeext"'
24895 { (eval echo "$as_me:24895: \"$ac_try\"") >&5
24896 (eval $ac_try) 2>&5
24898 echo "$as_me:24898: \$? = $ac_status" >&5
24899 (exit "$ac_status"); }; }; then
24901 if test -n "$cf_db_libs" ; then
24902 cf_cv_hashed_db_libs=$cf_db_libs
24904 cf_cv_hashed_db_libs=default
24906 LIBS="$cf_save_libs"
24910 echo "$as_me: failed program was:" >&5
24911 cat "conftest.$ac_ext" >&5
24913 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24914 LIBS="$cf_save_libs"
24918 echo "$as_me:24918: result: $cf_cv_hashed_db_libs" >&5
24919 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
24921 if test "$cf_cv_hashed_db_libs" = unknown ; then
24922 { { echo "$as_me:24922: error: Cannot determine library for db" >&5
24923 echo "$as_me: error: Cannot determine library for db" >&2;}
24924 { (exit 1); exit 1; }; }
24925 elif test "$cf_cv_hashed_db_libs" != default ; then
24927 cf_add_libs="$LIBS"
24930 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24931 # filter duplicates
24932 for cf_add_1lib in $cf_add_0lib; do
24933 for cf_add_2lib in $cf_add_libs; do
24934 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24939 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24941 LIBS="$cf_add_libs"
24948 { { echo "$as_me:24948: error: Cannot find db.h" >&5
24949 echo "$as_me: error: Cannot find db.h" >&2;}
24950 { (exit 1); exit 1; }; }
24956 if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then
24957 CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24958 CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24961 # Just in case, check if the C compiler has a bool type.
24963 echo "$as_me:24963: checking if we should include stdbool.h" >&5
24964 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
24966 if test "${cf_cv_header_stdbool_h+set}" = set; then
24967 echo $ECHO_N "(cached) $ECHO_C" >&6
24970 cat >"conftest.$ac_ext" <<_ACEOF
24971 #line 24971 "configure"
24972 #include "confdefs.h"
24982 rm -f "conftest.$ac_objext"
24983 if { (eval echo "$as_me:24983: \"$ac_compile\"") >&5
24984 (eval $ac_compile) 2>&5
24986 echo "$as_me:24986: \$? = $ac_status" >&5
24987 (exit "$ac_status"); } &&
24988 { ac_try='test -s "conftest.$ac_objext"'
24989 { (eval echo "$as_me:24989: \"$ac_try\"") >&5
24990 (eval $ac_try) 2>&5
24992 echo "$as_me:24992: \$? = $ac_status" >&5
24993 (exit "$ac_status"); }; }; then
24994 cf_cv_header_stdbool_h=0
24996 echo "$as_me: failed program was:" >&5
24997 cat "conftest.$ac_ext" >&5
24998 cat >"conftest.$ac_ext" <<_ACEOF
24999 #line 24999 "configure"
25000 #include "confdefs.h"
25003 #include <stdbool.h>
25014 rm -f "conftest.$ac_objext"
25015 if { (eval echo "$as_me:25015: \"$ac_compile\"") >&5
25016 (eval $ac_compile) 2>&5
25018 echo "$as_me:25018: \$? = $ac_status" >&5
25019 (exit "$ac_status"); } &&
25020 { ac_try='test -s "conftest.$ac_objext"'
25021 { (eval echo "$as_me:25021: \"$ac_try\"") >&5
25022 (eval $ac_try) 2>&5
25024 echo "$as_me:25024: \$? = $ac_status" >&5
25025 (exit "$ac_status"); }; }; then
25026 cf_cv_header_stdbool_h=1
25028 echo "$as_me: failed program was:" >&5
25029 cat "conftest.$ac_ext" >&5
25030 cf_cv_header_stdbool_h=0
25032 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25034 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25037 if test "$cf_cv_header_stdbool_h" = 1
25038 then echo "$as_me:25038: result: yes" >&5
25039 echo "${ECHO_T}yes" >&6
25040 else echo "$as_me:25040: result: no" >&5
25041 echo "${ECHO_T}no" >&6
25044 echo "$as_me:25044: checking for builtin bool type" >&5
25045 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25047 if test "${cf_cv_cc_bool_type+set}" = set; then
25048 echo $ECHO_N "(cached) $ECHO_C" >&6
25051 cat >"conftest.$ac_ext" <<_ACEOF
25052 #line 25052 "configure"
25053 #include "confdefs.h"
25056 #include <sys/types.h>
25066 rm -f "conftest.$ac_objext"
25067 if { (eval echo "$as_me:25067: \"$ac_compile\"") >&5
25068 (eval $ac_compile) 2>&5
25070 echo "$as_me:25070: \$? = $ac_status" >&5
25071 (exit "$ac_status"); } &&
25072 { ac_try='test -s "conftest.$ac_objext"'
25073 { (eval echo "$as_me:25073: \"$ac_try\"") >&5
25074 (eval $ac_try) 2>&5
25076 echo "$as_me:25076: \$? = $ac_status" >&5
25077 (exit "$ac_status"); }; }; then
25078 cf_cv_cc_bool_type=1
25080 echo "$as_me: failed program was:" >&5
25081 cat "conftest.$ac_ext" >&5
25082 cf_cv_cc_bool_type=0
25084 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25088 if test "$cf_cv_cc_bool_type" = 1
25089 then echo "$as_me:25089: result: yes" >&5
25090 echo "${ECHO_T}yes" >&6
25091 else echo "$as_me:25091: result: no" >&5
25092 echo "${ECHO_T}no" >&6
25095 # Check for C++ compiler characteristics (and ensure that it's there!)
25096 if test -n "$CXX" ; then
25098 ac_cpp='$CXXCPP $CPPFLAGS'
25099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25100 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25102 ac_main_return="return"
25104 if test -n "$GXX" ; then
25107 LIBS="$LIBS $CXXLIBS"
25108 echo "$as_me:25108: checking if we already have C++ library" >&5
25109 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
25110 cat >"conftest.$ac_ext" <<_ACEOF
25111 #line 25111 "configure"
25112 #include "confdefs.h"
25114 #include <iostream>
25119 std::cout << "Hello World!" << std::endl;
25124 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25125 if { (eval echo "$as_me:25125: \"$ac_link\"") >&5
25126 (eval $ac_link) 2>&5
25128 echo "$as_me:25128: \$? = $ac_status" >&5
25129 (exit "$ac_status"); } &&
25130 { ac_try='test -s "conftest$ac_exeext"'
25131 { (eval echo "$as_me:25131: \"$ac_try\"") >&5
25132 (eval $ac_try) 2>&5
25134 echo "$as_me:25134: \$? = $ac_status" >&5
25135 (exit "$ac_status"); }; }; then
25136 cf_have_libstdcpp=yes
25138 echo "$as_me: failed program was:" >&5
25139 cat "conftest.$ac_ext" >&5
25140 cf_have_libstdcpp=no
25142 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25143 echo "$as_me:25143: result: $cf_have_libstdcpp" >&5
25144 echo "${ECHO_T}$cf_have_libstdcpp" >&6
25147 if test "$cf_have_libstdcpp" != yes
25149 case "$cf_cv_system_name" in
25151 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
25152 cf_stdcpp_libname=stdcpp
25154 cf_stdcpp_libname=stdc++
25158 cf_stdcpp_libname=stdc++
25162 echo "$as_me:25162: checking for library $cf_stdcpp_libname" >&5
25163 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
25164 if test "${cf_cv_libstdcpp+set}" = set; then
25165 echo $ECHO_N "(cached) $ECHO_C" >&6
25169 LIBS="$LIBS $CXXLIBS"
25171 cf_add_libs="$LIBS"
25174 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25175 # filter duplicates
25176 for cf_add_1lib in $cf_add_0lib; do
25177 for cf_add_2lib in $cf_add_libs; do
25178 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25183 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25185 LIBS="$cf_add_libs"
25187 cat >"conftest.$ac_ext" <<_ACEOF
25188 #line 25188 "configure"
25189 #include "confdefs.h"
25191 #include <iostream>
25196 std::cout << "Hello World!" << std::endl;
25201 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25202 if { (eval echo "$as_me:25202: \"$ac_link\"") >&5
25203 (eval $ac_link) 2>&5
25205 echo "$as_me:25205: \$? = $ac_status" >&5
25206 (exit "$ac_status"); } &&
25207 { ac_try='test -s "conftest$ac_exeext"'
25208 { (eval echo "$as_me:25208: \"$ac_try\"") >&5
25209 (eval $ac_try) 2>&5
25211 echo "$as_me:25211: \$? = $ac_status" >&5
25212 (exit "$ac_status"); }; }; then
25213 cf_cv_libstdcpp=yes
25215 echo "$as_me: failed program was:" >&5
25216 cat "conftest.$ac_ext" >&5
25219 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25223 echo "$as_me:25223: result: $cf_cv_libstdcpp" >&5
25224 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
25225 test "$cf_cv_libstdcpp" = yes && {
25226 cf_add_libs="$CXXLIBS"
25229 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25230 # filter duplicates
25231 for cf_add_1lib in $cf_add_0lib; do
25232 for cf_add_2lib in $cf_add_libs; do
25233 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25238 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25240 CXXLIBS="$cf_add_libs"
25245 echo "$as_me:25245: checking whether $CXX understands -c and -o together" >&5
25246 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
25247 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
25248 echo $ECHO_N "(cached) $ECHO_C" >&6
25251 cat > conftest.$ac_ext <<CF_EOF
25254 ${cf_cv_main_return:-return}(0);
25257 # We do the test twice because some compilers refuse to overwrite an
25258 # existing .o file with -o, though they will create one.
25259 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
25260 if { (eval echo "$as_me:25260: \"$ac_try\"") >&5
25261 (eval $ac_try) 2>&5
25263 echo "$as_me:25263: \$? = $ac_status" >&5
25264 (exit "$ac_status"); } &&
25265 test -f conftest2.$ac_objext && { (eval echo "$as_me:25265: \"$ac_try\"") >&5
25266 (eval $ac_try) 2>&5
25268 echo "$as_me:25268: \$? = $ac_status" >&5
25269 (exit "$ac_status"); };
25271 eval cf_cv_prog_CXX_c_o=yes
25273 eval cf_cv_prog_CXX_c_o=no
25278 if test "$cf_cv_prog_CXX_c_o" = yes; then
25279 echo "$as_me:25279: result: yes" >&5
25280 echo "${ECHO_T}yes" >&6
25282 echo "$as_me:25282: result: no" >&5
25283 echo "${ECHO_T}no" >&6
25286 case "$GXX_VERSION" in
25287 (1.*|2.[0-6]*|[1-9][0-9].*)
25292 cf_cxx_library=unknown
25293 case "$cf_cv_system_name" in
25301 if test "$GXX" = yes; then
25302 echo "$as_me:25302: checking for lib$cf_gpp_libname" >&5
25303 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
25306 cf_add_libs="$LIBS"
25309 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25310 # filter duplicates
25311 for cf_add_1lib in $cf_add_0lib; do
25312 for cf_add_2lib in $cf_add_libs; do
25313 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25318 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25320 LIBS="$cf_add_libs"
25322 cat >"conftest.$ac_ext" <<_ACEOF
25323 #line 25323 "configure"
25324 #include "confdefs.h"
25326 #include <$cf_gpp_libname/builtin.h>
25331 two_arg_error_handler_t foo2 = lib_error_handler
25336 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25337 if { (eval echo "$as_me:25337: \"$ac_link\"") >&5
25338 (eval $ac_link) 2>&5
25340 echo "$as_me:25340: \$? = $ac_status" >&5
25341 (exit "$ac_status"); } &&
25342 { ac_try='test -s "conftest$ac_exeext"'
25343 { (eval echo "$as_me:25343: \"$ac_try\"") >&5
25344 (eval $ac_try) 2>&5
25346 echo "$as_me:25346: \$? = $ac_status" >&5
25347 (exit "$ac_status"); }; }; then
25350 cf_add_libs="$CXXLIBS"
25353 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25354 # filter duplicates
25355 for cf_add_1lib in $cf_add_0lib; do
25356 for cf_add_2lib in $cf_add_libs; do
25357 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25362 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25364 CXXLIBS="$cf_add_libs"
25366 if test "$cf_gpp_libname" = cpp ; then
25368 cat >>confdefs.h <<\EOF
25369 #define HAVE_GPP_BUILTIN_H 1
25374 cat >>confdefs.h <<\EOF
25375 #define HAVE_GXX_BUILTIN_H 1
25380 echo "$as_me: failed program was:" >&5
25381 cat "conftest.$ac_ext" >&5
25382 cat >"conftest.$ac_ext" <<_ACEOF
25383 #line 25383 "configure"
25384 #include "confdefs.h"
25386 #include <builtin.h>
25391 two_arg_error_handler_t foo2 = lib_error_handler
25396 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25397 if { (eval echo "$as_me:25397: \"$ac_link\"") >&5
25398 (eval $ac_link) 2>&5
25400 echo "$as_me:25400: \$? = $ac_status" >&5
25401 (exit "$ac_status"); } &&
25402 { ac_try='test -s "conftest$ac_exeext"'
25403 { (eval echo "$as_me:25403: \"$ac_try\"") >&5
25404 (eval $ac_try) 2>&5
25406 echo "$as_me:25406: \$? = $ac_status" >&5
25407 (exit "$ac_status"); }; }; then
25410 cf_add_libs="$CXXLIBS"
25413 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25414 # filter duplicates
25415 for cf_add_1lib in $cf_add_0lib; do
25416 for cf_add_2lib in $cf_add_libs; do
25417 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25422 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25424 CXXLIBS="$cf_add_libs"
25426 cat >>confdefs.h <<\EOF
25427 #define HAVE_BUILTIN_H 1
25431 echo "$as_me: failed program was:" >&5
25432 cat "conftest.$ac_ext" >&5
25435 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25437 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25439 echo "$as_me:25439: result: $cf_cxx_library" >&5
25440 echo "${ECHO_T}$cf_cxx_library" >&6
25450 ac_cpp='$CXXCPP $CPPFLAGS'
25451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25452 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25454 ac_main_return="return"
25455 echo "$as_me:25455: checking how to run the C++ preprocessor" >&5
25456 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
25457 if test -z "$CXXCPP"; then
25458 if test "${ac_cv_prog_CXXCPP+set}" = set; then
25459 echo $ECHO_N "(cached) $ECHO_C" >&6
25461 # Double quotes because CXXCPP needs to be expanded
25462 for CXXCPP in "$CXX -E" "/lib/cpp"
25464 ac_preproc_ok=false
25465 for ac_cxx_preproc_warn_flag in '' yes
25467 # Use a header file that comes with gcc, so configuring glibc
25468 # with a fresh cross-compiler works.
25469 # On the NeXT, cc -E runs the code through the compiler's parser,
25470 # not just through cpp. "Syntax error" is here to catch this case.
25471 cat >"conftest.$ac_ext" <<_ACEOF
25472 #line 25472 "configure"
25473 #include "confdefs.h"
25474 #include <assert.h>
25477 if { (eval echo "$as_me:25477: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25478 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25480 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25482 cat conftest.err >&5
25483 echo "$as_me:25483: \$? = $ac_status" >&5
25484 (exit "$ac_status"); } >/dev/null; then
25485 if test -s conftest.err; then
25486 ac_cpp_err=$ac_cxx_preproc_warn_flag
25493 if test -z "$ac_cpp_err"; then
25496 echo "$as_me: failed program was:" >&5
25497 cat "conftest.$ac_ext" >&5
25498 # Broken: fails on valid input.
25501 rm -f conftest.err "conftest.$ac_ext"
25503 # OK, works on sane cases. Now check whether non-existent headers
25504 # can be detected and how.
25505 cat >"conftest.$ac_ext" <<_ACEOF
25506 #line 25506 "configure"
25507 #include "confdefs.h"
25508 #include <ac_nonexistent.h>
25510 if { (eval echo "$as_me:25510: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25511 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25513 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25515 cat conftest.err >&5
25516 echo "$as_me:25516: \$? = $ac_status" >&5
25517 (exit "$ac_status"); } >/dev/null; then
25518 if test -s conftest.err; then
25519 ac_cpp_err=$ac_cxx_preproc_warn_flag
25526 if test -z "$ac_cpp_err"; then
25527 # Broken: success on invalid input.
25530 echo "$as_me: failed program was:" >&5
25531 cat "conftest.$ac_ext" >&5
25532 # Passes both tests.
25536 rm -f conftest.err "conftest.$ac_ext"
25539 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25540 rm -f conftest.err "conftest.$ac_ext"
25541 if $ac_preproc_ok; then
25546 ac_cv_prog_CXXCPP=$CXXCPP
25549 CXXCPP=$ac_cv_prog_CXXCPP
25551 ac_cv_prog_CXXCPP=$CXXCPP
25553 echo "$as_me:25553: result: $CXXCPP" >&5
25554 echo "${ECHO_T}$CXXCPP" >&6
25555 ac_preproc_ok=false
25556 for ac_cxx_preproc_warn_flag in '' yes
25558 # Use a header file that comes with gcc, so configuring glibc
25559 # with a fresh cross-compiler works.
25560 # On the NeXT, cc -E runs the code through the compiler's parser,
25561 # not just through cpp. "Syntax error" is here to catch this case.
25562 cat >"conftest.$ac_ext" <<_ACEOF
25563 #line 25563 "configure"
25564 #include "confdefs.h"
25565 #include <assert.h>
25568 if { (eval echo "$as_me:25568: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25569 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25571 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25573 cat conftest.err >&5
25574 echo "$as_me:25574: \$? = $ac_status" >&5
25575 (exit "$ac_status"); } >/dev/null; then
25576 if test -s conftest.err; then
25577 ac_cpp_err=$ac_cxx_preproc_warn_flag
25584 if test -z "$ac_cpp_err"; then
25587 echo "$as_me: failed program was:" >&5
25588 cat "conftest.$ac_ext" >&5
25589 # Broken: fails on valid input.
25592 rm -f conftest.err "conftest.$ac_ext"
25594 # OK, works on sane cases. Now check whether non-existent headers
25595 # can be detected and how.
25596 cat >"conftest.$ac_ext" <<_ACEOF
25597 #line 25597 "configure"
25598 #include "confdefs.h"
25599 #include <ac_nonexistent.h>
25601 if { (eval echo "$as_me:25601: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25602 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25604 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25606 cat conftest.err >&5
25607 echo "$as_me:25607: \$? = $ac_status" >&5
25608 (exit "$ac_status"); } >/dev/null; then
25609 if test -s conftest.err; then
25610 ac_cpp_err=$ac_cxx_preproc_warn_flag
25617 if test -z "$ac_cpp_err"; then
25618 # Broken: success on invalid input.
25621 echo "$as_me: failed program was:" >&5
25622 cat "conftest.$ac_ext" >&5
25623 # Passes both tests.
25627 rm -f conftest.err "conftest.$ac_ext"
25630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25631 rm -f conftest.err "conftest.$ac_ext"
25632 if $ac_preproc_ok; then
25635 { { echo "$as_me:25635: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
25636 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
25637 { (exit 1); exit 1; }; }
25641 ac_cpp='$CXXCPP $CPPFLAGS'
25642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25643 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25645 ac_main_return="return"
25647 for ac_header in typeinfo
25649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25650 echo "$as_me:25650: checking for $ac_header" >&5
25651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25653 echo $ECHO_N "(cached) $ECHO_C" >&6
25655 cat >"conftest.$ac_ext" <<_ACEOF
25656 #line 25656 "configure"
25657 #include "confdefs.h"
25658 #include <$ac_header>
25660 if { (eval echo "$as_me:25660: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25661 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25663 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25665 cat conftest.err >&5
25666 echo "$as_me:25666: \$? = $ac_status" >&5
25667 (exit "$ac_status"); } >/dev/null; then
25668 if test -s conftest.err; then
25669 ac_cpp_err=$ac_cxx_preproc_warn_flag
25676 if test -z "$ac_cpp_err"; then
25677 eval "$as_ac_Header=yes"
25679 echo "$as_me: failed program was:" >&5
25680 cat "conftest.$ac_ext" >&5
25681 eval "$as_ac_Header=no"
25683 rm -f conftest.err "conftest.$ac_ext"
25685 echo "$as_me:25685: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25686 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25687 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25688 cat >>confdefs.h <<EOF
25689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25695 for ac_header in iostream
25697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25698 echo "$as_me:25698: checking for $ac_header" >&5
25699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25701 echo $ECHO_N "(cached) $ECHO_C" >&6
25703 cat >"conftest.$ac_ext" <<_ACEOF
25704 #line 25704 "configure"
25705 #include "confdefs.h"
25706 #include <$ac_header>
25708 if { (eval echo "$as_me:25708: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25709 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25711 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25713 cat conftest.err >&5
25714 echo "$as_me:25714: \$? = $ac_status" >&5
25715 (exit "$ac_status"); } >/dev/null; then
25716 if test -s conftest.err; then
25717 ac_cpp_err=$ac_cxx_preproc_warn_flag
25724 if test -z "$ac_cpp_err"; then
25725 eval "$as_ac_Header=yes"
25727 echo "$as_me: failed program was:" >&5
25728 cat "conftest.$ac_ext" >&5
25729 eval "$as_ac_Header=no"
25731 rm -f conftest.err "conftest.$ac_ext"
25733 echo "$as_me:25733: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25734 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25735 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25736 cat >>confdefs.h <<EOF
25737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25743 if test x"$ac_cv_header_iostream" = xyes ; then
25744 echo "$as_me:25744: checking if iostream uses std-namespace" >&5
25745 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
25746 cat >"conftest.$ac_ext" <<_ACEOF
25747 #line 25747 "configure"
25748 #include "confdefs.h"
25750 #include <iostream>
25757 cerr << "testing" << endl;
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_iostream_namespace=yes
25777 echo "$as_me: failed program was:" >&5
25778 cat "conftest.$ac_ext" >&5
25779 cf_iostream_namespace=no
25781 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25782 echo "$as_me:25782: result: $cf_iostream_namespace" >&5
25783 echo "${ECHO_T}$cf_iostream_namespace" >&6
25784 if test "$cf_iostream_namespace" = yes ; then
25786 cat >>confdefs.h <<\EOF
25787 #define IOSTREAM_NAMESPACE 1
25793 echo "$as_me:25793: checking if we should include stdbool.h" >&5
25794 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
25796 if test "${cf_cv_header_stdbool_h+set}" = set; then
25797 echo $ECHO_N "(cached) $ECHO_C" >&6
25800 cat >"conftest.$ac_ext" <<_ACEOF
25801 #line 25801 "configure"
25802 #include "confdefs.h"
25812 rm -f "conftest.$ac_objext"
25813 if { (eval echo "$as_me:25813: \"$ac_compile\"") >&5
25814 (eval $ac_compile) 2>&5
25816 echo "$as_me:25816: \$? = $ac_status" >&5
25817 (exit "$ac_status"); } &&
25818 { ac_try='test -s "conftest.$ac_objext"'
25819 { (eval echo "$as_me:25819: \"$ac_try\"") >&5
25820 (eval $ac_try) 2>&5
25822 echo "$as_me:25822: \$? = $ac_status" >&5
25823 (exit "$ac_status"); }; }; then
25824 cf_cv_header_stdbool_h=0
25826 echo "$as_me: failed program was:" >&5
25827 cat "conftest.$ac_ext" >&5
25828 cat >"conftest.$ac_ext" <<_ACEOF
25829 #line 25829 "configure"
25830 #include "confdefs.h"
25833 #include <stdbool.h>
25844 rm -f "conftest.$ac_objext"
25845 if { (eval echo "$as_me:25845: \"$ac_compile\"") >&5
25846 (eval $ac_compile) 2>&5
25848 echo "$as_me:25848: \$? = $ac_status" >&5
25849 (exit "$ac_status"); } &&
25850 { ac_try='test -s "conftest.$ac_objext"'
25851 { (eval echo "$as_me:25851: \"$ac_try\"") >&5
25852 (eval $ac_try) 2>&5
25854 echo "$as_me:25854: \$? = $ac_status" >&5
25855 (exit "$ac_status"); }; }; then
25856 cf_cv_header_stdbool_h=1
25858 echo "$as_me: failed program was:" >&5
25859 cat "conftest.$ac_ext" >&5
25860 cf_cv_header_stdbool_h=0
25862 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25864 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25867 if test "$cf_cv_header_stdbool_h" = 1
25868 then echo "$as_me:25868: result: yes" >&5
25869 echo "${ECHO_T}yes" >&6
25870 else echo "$as_me:25870: result: no" >&5
25871 echo "${ECHO_T}no" >&6
25874 echo "$as_me:25874: checking for builtin bool type" >&5
25875 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25877 if test "${cf_cv_builtin_bool+set}" = set; then
25878 echo $ECHO_N "(cached) $ECHO_C" >&6
25881 cat >"conftest.$ac_ext" <<_ACEOF
25882 #line 25882 "configure"
25883 #include "confdefs.h"
25886 #include <sys/types.h>
25896 rm -f "conftest.$ac_objext"
25897 if { (eval echo "$as_me:25897: \"$ac_compile\"") >&5
25898 (eval $ac_compile) 2>&5
25900 echo "$as_me:25900: \$? = $ac_status" >&5
25901 (exit "$ac_status"); } &&
25902 { ac_try='test -s "conftest.$ac_objext"'
25903 { (eval echo "$as_me:25903: \"$ac_try\"") >&5
25904 (eval $ac_try) 2>&5
25906 echo "$as_me:25906: \$? = $ac_status" >&5
25907 (exit "$ac_status"); }; }; then
25908 cf_cv_builtin_bool=1
25910 echo "$as_me: failed program was:" >&5
25911 cat "conftest.$ac_ext" >&5
25912 cf_cv_builtin_bool=0
25914 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25918 if test "$cf_cv_builtin_bool" = 1
25919 then echo "$as_me:25919: result: yes" >&5
25920 echo "${ECHO_T}yes" >&6
25921 else echo "$as_me:25921: result: no" >&5
25922 echo "${ECHO_T}no" >&6
25925 echo "$as_me:25925: checking for bool" >&5
25926 echo $ECHO_N "checking for bool... $ECHO_C" >&6
25927 if test "${ac_cv_type_bool+set}" = set; then
25928 echo $ECHO_N "(cached) $ECHO_C" >&6
25930 cat >"conftest.$ac_ext" <<_ACEOF
25931 #line 25931 "configure"
25932 #include "confdefs.h"
25934 $ac_includes_default
25936 #if defined(__cplusplus)
25938 #ifdef HAVE_GXX_BUILTIN_H
25939 #include <g++/builtin.h>
25940 #elif HAVE_GPP_BUILTIN_H
25941 #include <gpp/builtin.h>
25942 #elif HAVE_BUILTIN_H
25943 #include <builtin.h>
25948 #if $cf_cv_header_stdbool_h
25949 #include <stdbool.h>
25965 rm -f "conftest.$ac_objext"
25966 if { (eval echo "$as_me:25966: \"$ac_compile\"") >&5
25967 (eval $ac_compile) 2>&5
25969 echo "$as_me:25969: \$? = $ac_status" >&5
25970 (exit "$ac_status"); } &&
25971 { ac_try='test -s "conftest.$ac_objext"'
25972 { (eval echo "$as_me:25972: \"$ac_try\"") >&5
25973 (eval $ac_try) 2>&5
25975 echo "$as_me:25975: \$? = $ac_status" >&5
25976 (exit "$ac_status"); }; }; then
25977 ac_cv_type_bool=yes
25979 echo "$as_me: failed program was:" >&5
25980 cat "conftest.$ac_ext" >&5
25983 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25985 echo "$as_me:25985: result: $ac_cv_type_bool" >&5
25986 echo "${ECHO_T}$ac_cv_type_bool" >&6
25988 echo "$as_me:25988: checking size of bool" >&5
25989 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
25990 if test "${ac_cv_sizeof_bool+set}" = set; then
25991 echo $ECHO_N "(cached) $ECHO_C" >&6
25993 if test "$ac_cv_type_bool" = yes; then
25994 if test "$cross_compiling" = yes; then
25995 # Depending upon the size, compute the lo and hi bounds.
25996 cat >"conftest.$ac_ext" <<_ACEOF
25997 #line 25997 "configure"
25998 #include "confdefs.h"
26000 $ac_includes_default
26002 #if defined(__cplusplus)
26004 #ifdef HAVE_GXX_BUILTIN_H
26005 #include <g++/builtin.h>
26006 #elif HAVE_GPP_BUILTIN_H
26007 #include <gpp/builtin.h>
26008 #elif HAVE_BUILTIN_H
26009 #include <builtin.h>
26014 #if $cf_cv_header_stdbool_h
26015 #include <stdbool.h>
26023 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26028 rm -f "conftest.$ac_objext"
26029 if { (eval echo "$as_me:26029: \"$ac_compile\"") >&5
26030 (eval $ac_compile) 2>&5
26032 echo "$as_me:26032: \$? = $ac_status" >&5
26033 (exit "$ac_status"); } &&
26034 { ac_try='test -s "conftest.$ac_objext"'
26035 { (eval echo "$as_me:26035: \"$ac_try\"") >&5
26036 (eval $ac_try) 2>&5
26038 echo "$as_me:26038: \$? = $ac_status" >&5
26039 (exit "$ac_status"); }; }; then
26042 cat >"conftest.$ac_ext" <<_ACEOF
26043 #line 26043 "configure"
26044 #include "confdefs.h"
26046 $ac_includes_default
26048 #if defined(__cplusplus)
26050 #ifdef HAVE_GXX_BUILTIN_H
26051 #include <g++/builtin.h>
26052 #elif HAVE_GPP_BUILTIN_H
26053 #include <gpp/builtin.h>
26054 #elif HAVE_BUILTIN_H
26055 #include <builtin.h>
26060 #if $cf_cv_header_stdbool_h
26061 #include <stdbool.h>
26069 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26074 rm -f "conftest.$ac_objext"
26075 if { (eval echo "$as_me:26075: \"$ac_compile\"") >&5
26076 (eval $ac_compile) 2>&5
26078 echo "$as_me:26078: \$? = $ac_status" >&5
26079 (exit "$ac_status"); } &&
26080 { ac_try='test -s "conftest.$ac_objext"'
26081 { (eval echo "$as_me:26081: \"$ac_try\"") >&5
26082 (eval $ac_try) 2>&5
26084 echo "$as_me:26084: \$? = $ac_status" >&5
26085 (exit "$ac_status"); }; }; then
26086 ac_hi=$ac_mid; break
26088 echo "$as_me: failed program was:" >&5
26089 cat "conftest.$ac_ext" >&5
26090 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26092 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26095 echo "$as_me: failed program was:" >&5
26096 cat "conftest.$ac_ext" >&5
26099 cat >"conftest.$ac_ext" <<_ACEOF
26100 #line 26100 "configure"
26101 #include "confdefs.h"
26103 $ac_includes_default
26105 #if defined(__cplusplus)
26107 #ifdef HAVE_GXX_BUILTIN_H
26108 #include <g++/builtin.h>
26109 #elif HAVE_GPP_BUILTIN_H
26110 #include <gpp/builtin.h>
26111 #elif HAVE_BUILTIN_H
26112 #include <builtin.h>
26117 #if $cf_cv_header_stdbool_h
26118 #include <stdbool.h>
26126 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
26131 rm -f "conftest.$ac_objext"
26132 if { (eval echo "$as_me:26132: \"$ac_compile\"") >&5
26133 (eval $ac_compile) 2>&5
26135 echo "$as_me:26135: \$? = $ac_status" >&5
26136 (exit "$ac_status"); } &&
26137 { ac_try='test -s "conftest.$ac_objext"'
26138 { (eval echo "$as_me:26138: \"$ac_try\"") >&5
26139 (eval $ac_try) 2>&5
26141 echo "$as_me:26141: \$? = $ac_status" >&5
26142 (exit "$ac_status"); }; }; then
26143 ac_lo=$ac_mid; break
26145 echo "$as_me: failed program was:" >&5
26146 cat "conftest.$ac_ext" >&5
26147 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
26149 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26152 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26153 # Binary search between lo and hi bounds.
26154 while test "x$ac_lo" != "x$ac_hi"; do
26155 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
26156 cat >"conftest.$ac_ext" <<_ACEOF
26157 #line 26157 "configure"
26158 #include "confdefs.h"
26160 $ac_includes_default
26162 #if defined(__cplusplus)
26164 #ifdef HAVE_GXX_BUILTIN_H
26165 #include <g++/builtin.h>
26166 #elif HAVE_GPP_BUILTIN_H
26167 #include <gpp/builtin.h>
26168 #elif HAVE_BUILTIN_H
26169 #include <builtin.h>
26174 #if $cf_cv_header_stdbool_h
26175 #include <stdbool.h>
26183 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26188 rm -f "conftest.$ac_objext"
26189 if { (eval echo "$as_me:26189: \"$ac_compile\"") >&5
26190 (eval $ac_compile) 2>&5
26192 echo "$as_me:26192: \$? = $ac_status" >&5
26193 (exit "$ac_status"); } &&
26194 { ac_try='test -s "conftest.$ac_objext"'
26195 { (eval echo "$as_me:26195: \"$ac_try\"") >&5
26196 (eval $ac_try) 2>&5
26198 echo "$as_me:26198: \$? = $ac_status" >&5
26199 (exit "$ac_status"); }; }; then
26202 echo "$as_me: failed program was:" >&5
26203 cat "conftest.$ac_ext" >&5
26204 ac_lo=`expr "$ac_mid" + 1`
26206 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26208 ac_cv_sizeof_bool=$ac_lo
26210 if test "$cross_compiling" = yes; then
26211 { { echo "$as_me:26211: error: cannot run test program while cross compiling" >&5
26212 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
26213 { (exit 1); exit 1; }; }
26215 cat >"conftest.$ac_ext" <<_ACEOF
26216 #line 26216 "configure"
26217 #include "confdefs.h"
26219 $ac_includes_default
26221 #if defined(__cplusplus)
26223 #ifdef HAVE_GXX_BUILTIN_H
26224 #include <g++/builtin.h>
26225 #elif HAVE_GPP_BUILTIN_H
26226 #include <gpp/builtin.h>
26227 #elif HAVE_BUILTIN_H
26228 #include <builtin.h>
26233 #if $cf_cv_header_stdbool_h
26234 #include <stdbool.h>
26242 FILE *f = fopen ("conftest.val", "w");
26244 $ac_main_return (1);
26245 fprintf (f, "%ld", (long)(sizeof (bool)));
26251 rm -f "conftest$ac_exeext"
26252 if { (eval echo "$as_me:26252: \"$ac_link\"") >&5
26253 (eval $ac_link) 2>&5
26255 echo "$as_me:26255: \$? = $ac_status" >&5
26256 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26257 { (eval echo "$as_me:26257: \"$ac_try\"") >&5
26258 (eval $ac_try) 2>&5
26260 echo "$as_me:26260: \$? = $ac_status" >&5
26261 (exit "$ac_status"); }; }; then
26262 ac_cv_sizeof_bool=`cat conftest.val`
26264 echo "$as_me: program exited with status $ac_status" >&5
26265 echo "$as_me: failed program was:" >&5
26266 cat "conftest.$ac_ext" >&5
26268 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26273 ac_cv_sizeof_bool=0
26276 echo "$as_me:26276: result: $ac_cv_sizeof_bool" >&5
26277 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
26278 cat >>confdefs.h <<EOF
26279 #define SIZEOF_BOOL $ac_cv_sizeof_bool
26282 echo "$as_me:26282: checking for type of bool" >&5
26283 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
26284 if test "${cf_cv_type_of_bool+set}" = set; then
26285 echo $ECHO_N "(cached) $ECHO_C" >&6
26289 if test "$cross_compiling" = yes; then
26291 case x$ac_cv_sizeof_bool in
26292 (x1) cf_cv_type_of_bool="unsigned char";;
26293 (x2) cf_cv_type_of_bool="unsigned short";;
26294 (x4) cf_cv_type_of_bool="unsigned int";;
26295 (x8) cf_cv_type_of_bool="unsigned long";;
26296 (*) cf_cv_type_of_bool=unknown;;
26300 cat >"conftest.$ac_ext" <<_ACEOF
26301 #line 26301 "configure"
26302 #include "confdefs.h"
26304 $ac_includes_default
26306 #if defined(__cplusplus)
26308 #ifdef HAVE_GXX_BUILTIN_H
26309 #include <g++/builtin.h>
26310 #elif HAVE_GPP_BUILTIN_H
26311 #include <gpp/builtin.h>
26312 #elif HAVE_BUILTIN_H
26313 #include <builtin.h>
26318 #if $cf_cv_header_stdbool_h
26319 #include <stdbool.h>
26326 FILE *fp = fopen("cf_test.out", "w");
26329 if ((bool)(-x) >= 0)
26330 fputs("unsigned ", fp);
26331 if (sizeof(x) == sizeof(int)) fputs("int", fp);
26332 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
26333 else if (sizeof(x) == sizeof(short))fputs("short",fp);
26334 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
26337 ${cf_cv_main_return:-return}(0);
26341 rm -f "conftest$ac_exeext"
26342 if { (eval echo "$as_me:26342: \"$ac_link\"") >&5
26343 (eval $ac_link) 2>&5
26345 echo "$as_me:26345: \$? = $ac_status" >&5
26346 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26347 { (eval echo "$as_me:26347: \"$ac_try\"") >&5
26348 (eval $ac_try) 2>&5
26350 echo "$as_me:26350: \$? = $ac_status" >&5
26351 (exit "$ac_status"); }; }; then
26352 cf_cv_type_of_bool=`cat cf_test.out`
26353 if test -z "$cf_cv_type_of_bool"; then
26354 cf_cv_type_of_bool=unknown
26357 echo "$as_me: program exited with status $ac_status" >&5
26358 echo "$as_me: failed program was:" >&5
26359 cat "conftest.$ac_ext" >&5
26360 cf_cv_type_of_bool=unknown
26362 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26367 echo "$as_me:26367: result: $cf_cv_type_of_bool" >&5
26368 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26370 if test "$cf_cv_type_of_bool" = unknown ; then
26371 case .$NCURSES_BOOL in
26372 (.auto|.) NCURSES_BOOL=unsigned;;
26374 { echo "$as_me:26374: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
26375 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
26376 cf_cv_type_of_bool=$NCURSES_BOOL
26379 echo "$as_me:26379: checking for special defines needed for etip.h" >&5
26380 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
26381 cf_save_CXXFLAGS="$CXXFLAGS"
26384 # etip.h includes ncurses.h which includes ncurses_dll.h
26385 # But ncurses_dll.h is generated - fix here.
26386 test -d include || mkdir include
26387 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
26389 for cf_math in "" MATH_H
26391 for cf_excp in "" MATH_EXCEPTION
26393 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
26394 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
26395 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
26396 cat >"conftest.$ac_ext" <<_ACEOF
26397 #line 26397 "configure"
26398 #include "confdefs.h"
26400 #include <etip.h.in>
26410 rm -f "conftest.$ac_objext"
26411 if { (eval echo "$as_me:26411: \"$ac_compile\"") >&5
26412 (eval $ac_compile) 2>&5
26414 echo "$as_me:26414: \$? = $ac_status" >&5
26415 (exit "$ac_status"); } &&
26416 { ac_try='test -s "conftest.$ac_objext"'
26417 { (eval echo "$as_me:26417: \"$ac_try\"") >&5
26418 (eval $ac_try) 2>&5
26420 echo "$as_me:26420: \$? = $ac_status" >&5
26421 (exit "$ac_status"); }; }; then
26423 test -n "$cf_math" && cat >>confdefs.h <<EOF
26424 #define ETIP_NEEDS_${cf_math} 1
26427 test -n "$cf_excp" && cat >>confdefs.h <<EOF
26428 #define ETIP_NEEDS_${cf_excp} 1
26431 cf_result="$cf_math $cf_excp"
26435 echo "$as_me: failed program was:" >&5
26436 cat "conftest.$ac_ext" >&5
26438 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26441 echo "$as_me:26441: result: $cf_result" >&5
26442 echo "${ECHO_T}$cf_result" >&6
26443 CXXFLAGS="$cf_save_CXXFLAGS"
26445 if test -n "$CXX"; then
26446 echo "$as_me:26446: checking if $CXX accepts override keyword" >&5
26447 echo $ECHO_N "checking if $CXX accepts override keyword... $ECHO_C" >&6
26448 if test "${cf_cv_cpp_override+set}" = set; then
26449 echo $ECHO_N "(cached) $ECHO_C" >&6
26453 ac_cpp='$CXXCPP $CPPFLAGS'
26454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26455 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26457 ac_main_return="return"
26459 if test "$cross_compiling" = yes; then
26460 cf_cv_cpp_override=unknown
26462 cat >"conftest.$ac_ext" <<_ACEOF
26463 #line 26463 "configure"
26464 #include "confdefs.h"
26469 virtual int foo(float x) = 0;
26472 class derived: public base
26475 int foo(float x) override { return x != 0.0 ? 1 : 0; }
26481 rm -f "conftest$ac_exeext"
26482 if { (eval echo "$as_me:26482: \"$ac_link\"") >&5
26483 (eval $ac_link) 2>&5
26485 echo "$as_me:26485: \$? = $ac_status" >&5
26486 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26487 { (eval echo "$as_me:26487: \"$ac_try\"") >&5
26488 (eval $ac_try) 2>&5
26490 echo "$as_me:26490: \$? = $ac_status" >&5
26491 (exit "$ac_status"); }; }; then
26492 cf_cv_cpp_override=yes
26494 echo "$as_me: program exited with status $ac_status" >&5
26495 echo "$as_me: failed program was:" >&5
26496 cat "conftest.$ac_ext" >&5
26497 cf_cv_cpp_override=no
26499 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26502 ac_cpp='$CXXCPP $CPPFLAGS'
26503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26504 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26506 ac_main_return="return"
26509 echo "$as_me:26509: result: $cf_cv_cpp_override" >&5
26510 echo "${ECHO_T}$cf_cv_cpp_override" >&6
26512 test "$cf_cv_cpp_override" = yes &&
26513 cat >>confdefs.h <<\EOF
26514 #define CPP_HAS_OVERRIDE 1
26517 if test -n "$CXX"; then
26518 echo "$as_me:26518: checking if $CXX accepts parameter initialization" >&5
26519 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
26520 if test "${cf_cv_cpp_param_init+set}" = set; then
26521 echo $ECHO_N "(cached) $ECHO_C" >&6
26525 ac_cpp='$CXXCPP $CPPFLAGS'
26526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26527 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26529 ac_main_return="return"
26531 if test "$cross_compiling" = yes; then
26532 cf_cv_cpp_param_init=unknown
26534 cat >"conftest.$ac_ext" <<_ACEOF
26535 #line 26535 "configure"
26536 #include "confdefs.h"
26546 TEST::TEST(int x = 1) // some compilers do not like second initializer
26553 rm -f "conftest$ac_exeext"
26554 if { (eval echo "$as_me:26554: \"$ac_link\"") >&5
26555 (eval $ac_link) 2>&5
26557 echo "$as_me:26557: \$? = $ac_status" >&5
26558 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26559 { (eval echo "$as_me:26559: \"$ac_try\"") >&5
26560 (eval $ac_try) 2>&5
26562 echo "$as_me:26562: \$? = $ac_status" >&5
26563 (exit "$ac_status"); }; }; then
26564 cf_cv_cpp_param_init=yes
26566 echo "$as_me: program exited with status $ac_status" >&5
26567 echo "$as_me: failed program was:" >&5
26568 cat "conftest.$ac_ext" >&5
26569 cf_cv_cpp_param_init=no
26571 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26574 ac_cpp='$CXXCPP $CPPFLAGS'
26575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26576 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26578 ac_main_return="return"
26581 echo "$as_me:26581: result: $cf_cv_cpp_param_init" >&5
26582 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
26584 test "$cf_cv_cpp_param_init" = yes &&
26585 cat >>confdefs.h <<\EOF
26586 #define CPP_HAS_PARAM_INIT 1
26589 if test -n "$CXX"; then
26591 echo "$as_me:26591: checking if $CXX accepts static_cast" >&5
26592 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
26593 if test "${cf_cv_cpp_static_cast+set}" = set; then
26594 echo $ECHO_N "(cached) $ECHO_C" >&6
26598 ac_cpp='$CXXCPP $CPPFLAGS'
26599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26600 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26602 ac_main_return="return"
26604 cat >"conftest.$ac_ext" <<_ACEOF
26605 #line 26605 "configure"
26606 #include "confdefs.h"
26611 NCursesPanel(int nlines,
26621 template<class T> class NCursesUserPanel : public NCursesPanel
26624 NCursesUserPanel (int nlines,
26628 const T* p_UserData = static_cast<T*>(0))
26629 : NCursesPanel (nlines, ncols, begin_y, begin_x)
26632 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
26636 virtual ~NCursesUserPanel() {};
26643 const char* p_UserData = static_cast<char*>(0)
26648 rm -f "conftest.$ac_objext"
26649 if { (eval echo "$as_me:26649: \"$ac_compile\"") >&5
26650 (eval $ac_compile) 2>&5
26652 echo "$as_me:26652: \$? = $ac_status" >&5
26653 (exit "$ac_status"); } &&
26654 { ac_try='test -s "conftest.$ac_objext"'
26655 { (eval echo "$as_me:26655: \"$ac_try\"") >&5
26656 (eval $ac_try) 2>&5
26658 echo "$as_me:26658: \$? = $ac_status" >&5
26659 (exit "$ac_status"); }; }; then
26660 cf_cv_cpp_static_cast=yes
26662 echo "$as_me: failed program was:" >&5
26663 cat "conftest.$ac_ext" >&5
26664 cf_cv_cpp_static_cast=no
26666 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26669 ac_cpp='$CXXCPP $CPPFLAGS'
26670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26671 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26673 ac_main_return="return"
26676 echo "$as_me:26676: result: $cf_cv_cpp_static_cast" >&5
26677 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
26681 test "$cf_cv_cpp_static_cast" = yes &&
26682 cat >>confdefs.h <<\EOF
26683 #define CPP_HAS_STATIC_CAST 1
26687 CXX_ARFLAGS='$(ARFLAGS)'
26688 case "$cf_cv_system_name" in
26690 if test "$GXX" != yes ; then
26692 CXX_ARFLAGS='-ar -o'
26696 CXXLDFLAGS="-u main"
26699 if test "$GXX" != yes ; then
26701 CXX_ARFLAGS='-xar -o'
26708 cf_cv_builtin_bool=1
26710 # Just because we are not configuring against C++ right now does not
26711 # mean that a user will not want to use C++. Some distributors disable
26712 # the C++ portion of this configuration as a shortcut (or just to avoid
26713 # compiling the demo in the c++ directory). So we need a reasonable
26714 # default for the 'bool' type.
26716 # Caveat: since the storage of the bool type is not standardized, it
26719 if test "$NCURSES_BOOL" != auto ; then
26720 cf_cv_type_of_bool=$NCURSES_BOOL
26721 cf_cv_header_stdbool_h=0
26723 if test "$cf_cv_header_stdbool_h" = 1 ; then
26725 echo "$as_me:26725: checking for bool" >&5
26726 echo $ECHO_N "checking for bool... $ECHO_C" >&6
26727 if test "${ac_cv_type_bool+set}" = set; then
26728 echo $ECHO_N "(cached) $ECHO_C" >&6
26730 cat >"conftest.$ac_ext" <<_ACEOF
26731 #line 26731 "configure"
26732 #include "confdefs.h"
26734 $ac_includes_default
26736 #if defined(__cplusplus)
26738 #ifdef HAVE_GXX_BUILTIN_H
26739 #include <g++/builtin.h>
26740 #elif HAVE_GPP_BUILTIN_H
26741 #include <gpp/builtin.h>
26742 #elif HAVE_BUILTIN_H
26743 #include <builtin.h>
26748 #if $cf_cv_header_stdbool_h
26749 #include <stdbool.h>
26765 rm -f "conftest.$ac_objext"
26766 if { (eval echo "$as_me:26766: \"$ac_compile\"") >&5
26767 (eval $ac_compile) 2>&5
26769 echo "$as_me:26769: \$? = $ac_status" >&5
26770 (exit "$ac_status"); } &&
26771 { ac_try='test -s "conftest.$ac_objext"'
26772 { (eval echo "$as_me:26772: \"$ac_try\"") >&5
26773 (eval $ac_try) 2>&5
26775 echo "$as_me:26775: \$? = $ac_status" >&5
26776 (exit "$ac_status"); }; }; then
26777 ac_cv_type_bool=yes
26779 echo "$as_me: failed program was:" >&5
26780 cat "conftest.$ac_ext" >&5
26783 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26785 echo "$as_me:26785: result: $ac_cv_type_bool" >&5
26786 echo "${ECHO_T}$ac_cv_type_bool" >&6
26788 echo "$as_me:26788: checking size of bool" >&5
26789 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
26790 if test "${ac_cv_sizeof_bool+set}" = set; then
26791 echo $ECHO_N "(cached) $ECHO_C" >&6
26793 if test "$ac_cv_type_bool" = yes; then
26794 if test "$cross_compiling" = yes; then
26795 # Depending upon the size, compute the lo and hi bounds.
26796 cat >"conftest.$ac_ext" <<_ACEOF
26797 #line 26797 "configure"
26798 #include "confdefs.h"
26800 $ac_includes_default
26802 #if defined(__cplusplus)
26804 #ifdef HAVE_GXX_BUILTIN_H
26805 #include <g++/builtin.h>
26806 #elif HAVE_GPP_BUILTIN_H
26807 #include <gpp/builtin.h>
26808 #elif HAVE_BUILTIN_H
26809 #include <builtin.h>
26814 #if $cf_cv_header_stdbool_h
26815 #include <stdbool.h>
26823 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26828 rm -f "conftest.$ac_objext"
26829 if { (eval echo "$as_me:26829: \"$ac_compile\"") >&5
26830 (eval $ac_compile) 2>&5
26832 echo "$as_me:26832: \$? = $ac_status" >&5
26833 (exit "$ac_status"); } &&
26834 { ac_try='test -s "conftest.$ac_objext"'
26835 { (eval echo "$as_me:26835: \"$ac_try\"") >&5
26836 (eval $ac_try) 2>&5
26838 echo "$as_me:26838: \$? = $ac_status" >&5
26839 (exit "$ac_status"); }; }; then
26842 cat >"conftest.$ac_ext" <<_ACEOF
26843 #line 26843 "configure"
26844 #include "confdefs.h"
26846 $ac_includes_default
26848 #if defined(__cplusplus)
26850 #ifdef HAVE_GXX_BUILTIN_H
26851 #include <g++/builtin.h>
26852 #elif HAVE_GPP_BUILTIN_H
26853 #include <gpp/builtin.h>
26854 #elif HAVE_BUILTIN_H
26855 #include <builtin.h>
26860 #if $cf_cv_header_stdbool_h
26861 #include <stdbool.h>
26869 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26874 rm -f "conftest.$ac_objext"
26875 if { (eval echo "$as_me:26875: \"$ac_compile\"") >&5
26876 (eval $ac_compile) 2>&5
26878 echo "$as_me:26878: \$? = $ac_status" >&5
26879 (exit "$ac_status"); } &&
26880 { ac_try='test -s "conftest.$ac_objext"'
26881 { (eval echo "$as_me:26881: \"$ac_try\"") >&5
26882 (eval $ac_try) 2>&5
26884 echo "$as_me:26884: \$? = $ac_status" >&5
26885 (exit "$ac_status"); }; }; then
26886 ac_hi=$ac_mid; break
26888 echo "$as_me: failed program was:" >&5
26889 cat "conftest.$ac_ext" >&5
26890 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26892 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26895 echo "$as_me: failed program was:" >&5
26896 cat "conftest.$ac_ext" >&5
26899 cat >"conftest.$ac_ext" <<_ACEOF
26900 #line 26900 "configure"
26901 #include "confdefs.h"
26903 $ac_includes_default
26905 #if defined(__cplusplus)
26907 #ifdef HAVE_GXX_BUILTIN_H
26908 #include <g++/builtin.h>
26909 #elif HAVE_GPP_BUILTIN_H
26910 #include <gpp/builtin.h>
26911 #elif HAVE_BUILTIN_H
26912 #include <builtin.h>
26917 #if $cf_cv_header_stdbool_h
26918 #include <stdbool.h>
26926 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
26931 rm -f "conftest.$ac_objext"
26932 if { (eval echo "$as_me:26932: \"$ac_compile\"") >&5
26933 (eval $ac_compile) 2>&5
26935 echo "$as_me:26935: \$? = $ac_status" >&5
26936 (exit "$ac_status"); } &&
26937 { ac_try='test -s "conftest.$ac_objext"'
26938 { (eval echo "$as_me:26938: \"$ac_try\"") >&5
26939 (eval $ac_try) 2>&5
26941 echo "$as_me:26941: \$? = $ac_status" >&5
26942 (exit "$ac_status"); }; }; then
26943 ac_lo=$ac_mid; break
26945 echo "$as_me: failed program was:" >&5
26946 cat "conftest.$ac_ext" >&5
26947 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
26949 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26952 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26953 # Binary search between lo and hi bounds.
26954 while test "x$ac_lo" != "x$ac_hi"; do
26955 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
26956 cat >"conftest.$ac_ext" <<_ACEOF
26957 #line 26957 "configure"
26958 #include "confdefs.h"
26960 $ac_includes_default
26962 #if defined(__cplusplus)
26964 #ifdef HAVE_GXX_BUILTIN_H
26965 #include <g++/builtin.h>
26966 #elif HAVE_GPP_BUILTIN_H
26967 #include <gpp/builtin.h>
26968 #elif HAVE_BUILTIN_H
26969 #include <builtin.h>
26974 #if $cf_cv_header_stdbool_h
26975 #include <stdbool.h>
26983 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26988 rm -f "conftest.$ac_objext"
26989 if { (eval echo "$as_me:26989: \"$ac_compile\"") >&5
26990 (eval $ac_compile) 2>&5
26992 echo "$as_me:26992: \$? = $ac_status" >&5
26993 (exit "$ac_status"); } &&
26994 { ac_try='test -s "conftest.$ac_objext"'
26995 { (eval echo "$as_me:26995: \"$ac_try\"") >&5
26996 (eval $ac_try) 2>&5
26998 echo "$as_me:26998: \$? = $ac_status" >&5
26999 (exit "$ac_status"); }; }; then
27002 echo "$as_me: failed program was:" >&5
27003 cat "conftest.$ac_ext" >&5
27004 ac_lo=`expr "$ac_mid" + 1`
27006 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27008 ac_cv_sizeof_bool=$ac_lo
27010 if test "$cross_compiling" = yes; then
27011 { { echo "$as_me:27011: error: cannot run test program while cross compiling" >&5
27012 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
27013 { (exit 1); exit 1; }; }
27015 cat >"conftest.$ac_ext" <<_ACEOF
27016 #line 27016 "configure"
27017 #include "confdefs.h"
27019 $ac_includes_default
27021 #if defined(__cplusplus)
27023 #ifdef HAVE_GXX_BUILTIN_H
27024 #include <g++/builtin.h>
27025 #elif HAVE_GPP_BUILTIN_H
27026 #include <gpp/builtin.h>
27027 #elif HAVE_BUILTIN_H
27028 #include <builtin.h>
27033 #if $cf_cv_header_stdbool_h
27034 #include <stdbool.h>
27042 FILE *f = fopen ("conftest.val", "w");
27044 $ac_main_return (1);
27045 fprintf (f, "%ld", (long)(sizeof (bool)));
27051 rm -f "conftest$ac_exeext"
27052 if { (eval echo "$as_me:27052: \"$ac_link\"") >&5
27053 (eval $ac_link) 2>&5
27055 echo "$as_me:27055: \$? = $ac_status" >&5
27056 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27057 { (eval echo "$as_me:27057: \"$ac_try\"") >&5
27058 (eval $ac_try) 2>&5
27060 echo "$as_me:27060: \$? = $ac_status" >&5
27061 (exit "$ac_status"); }; }; then
27062 ac_cv_sizeof_bool=`cat conftest.val`
27064 echo "$as_me: program exited with status $ac_status" >&5
27065 echo "$as_me: failed program was:" >&5
27066 cat "conftest.$ac_ext" >&5
27068 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27073 ac_cv_sizeof_bool=0
27076 echo "$as_me:27076: result: $ac_cv_sizeof_bool" >&5
27077 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
27078 cat >>confdefs.h <<EOF
27079 #define SIZEOF_BOOL $ac_cv_sizeof_bool
27082 echo "$as_me:27082: checking for type of bool" >&5
27083 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
27084 if test "${cf_cv_type_of_bool+set}" = set; then
27085 echo $ECHO_N "(cached) $ECHO_C" >&6
27089 if test "$cross_compiling" = yes; then
27091 case x$ac_cv_sizeof_bool in
27092 (x1) cf_cv_type_of_bool="unsigned char";;
27093 (x2) cf_cv_type_of_bool="unsigned short";;
27094 (x4) cf_cv_type_of_bool="unsigned int";;
27095 (x8) cf_cv_type_of_bool="unsigned long";;
27096 (*) cf_cv_type_of_bool=unknown;;
27100 cat >"conftest.$ac_ext" <<_ACEOF
27101 #line 27101 "configure"
27102 #include "confdefs.h"
27104 $ac_includes_default
27106 #if defined(__cplusplus)
27108 #ifdef HAVE_GXX_BUILTIN_H
27109 #include <g++/builtin.h>
27110 #elif HAVE_GPP_BUILTIN_H
27111 #include <gpp/builtin.h>
27112 #elif HAVE_BUILTIN_H
27113 #include <builtin.h>
27118 #if $cf_cv_header_stdbool_h
27119 #include <stdbool.h>
27126 FILE *fp = fopen("cf_test.out", "w");
27129 if ((bool)(-x) >= 0)
27130 fputs("unsigned ", fp);
27131 if (sizeof(x) == sizeof(int)) fputs("int", fp);
27132 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
27133 else if (sizeof(x) == sizeof(short))fputs("short",fp);
27134 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
27137 ${cf_cv_main_return:-return}(0);
27141 rm -f "conftest$ac_exeext"
27142 if { (eval echo "$as_me:27142: \"$ac_link\"") >&5
27143 (eval $ac_link) 2>&5
27145 echo "$as_me:27145: \$? = $ac_status" >&5
27146 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27147 { (eval echo "$as_me:27147: \"$ac_try\"") >&5
27148 (eval $ac_try) 2>&5
27150 echo "$as_me:27150: \$? = $ac_status" >&5
27151 (exit "$ac_status"); }; }; then
27152 cf_cv_type_of_bool=`cat cf_test.out`
27153 if test -z "$cf_cv_type_of_bool"; then
27154 cf_cv_type_of_bool=unknown
27157 echo "$as_me: program exited with status $ac_status" >&5
27158 echo "$as_me: failed program was:" >&5
27159 cat "conftest.$ac_ext" >&5
27160 cf_cv_type_of_bool=unknown
27162 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27167 echo "$as_me:27167: result: $cf_cv_type_of_bool" >&5
27168 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
27170 if test "$cf_cv_type_of_bool" = unknown ; then
27171 case .$NCURSES_BOOL in
27172 (.auto|.) NCURSES_BOOL=unsigned;;
27174 { echo "$as_me:27174: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
27175 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
27176 cf_cv_type_of_bool=$NCURSES_BOOL
27180 echo "$as_me:27180: checking for fallback type of bool" >&5
27181 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
27182 case "$host_cpu" in
27183 (i?86) cf_cv_type_of_bool=char ;;
27184 (*) cf_cv_type_of_bool=int ;;
27186 echo "$as_me:27186: result: $cf_cv_type_of_bool" >&5
27187 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
27192 # If the C compiler did not declare bool, and we did not determine that the C++
27193 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
27194 # ncurses library use the same type as C++ bool. Note that this allows one to
27195 # specify the type of bool in a configure-script option and postpone
27196 # integration with the C++ compiler provided that the types are compatible.
27198 if test "$cf_cv_cc_bool_type" = 1
27200 # oops: C has a bool. Unlikely, but C++ could differ.
27202 elif test "$cf_cv_builtin_bool" = 0
27207 # this is the normal case
27208 USE_CXX_BOOL='defined(__cplusplus)'
27211 if test -f "${srcdir}/Ada95/Makefile.in" ; then
27213 if test "$cf_with_ada" != "no" ; then
27214 if test "$with_libtool" != "no"; then
27215 { echo "$as_me:27215: WARNING: libtool does not support Ada - disabling feature" >&5
27216 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
27221 if test "$cf_with_ada" != "no" ; then
27223 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
27226 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
27228 unset ac_cv_path_cf_TEMP_gnat
27230 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
27231 set dummy $cf_prog_gnat; ac_word=$2
27232 echo "$as_me:27232: checking for $ac_word" >&5
27233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27234 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
27235 echo $ECHO_N "(cached) $ECHO_C" >&6
27237 case $cf_TEMP_gnat in
27239 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
27242 ac_save_IFS=$IFS; IFS=$ac_path_separator
27244 for ac_dir in $ac_dummy; do
27246 test -z "$ac_dir" && ac_dir=.
27247 if $as_executable_p "$ac_dir/$ac_word"; then
27248 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
27249 echo "$as_me:27249: found $ac_dir/$ac_word" >&5
27254 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
27258 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
27260 if test -n "$cf_TEMP_gnat"; then
27261 echo "$as_me:27261: result: $cf_TEMP_gnat" >&5
27262 echo "${ECHO_T}$cf_TEMP_gnat" >&6
27264 echo "$as_me:27264: result: no" >&5
27265 echo "${ECHO_T}no" >&6
27268 eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat"
27270 if test "x$cf_TEMP_gnat" != xno; then
27271 unset cf_cv_gnat_version
27274 echo "$as_me:27274: checking for $cf_prog_gnat version" >&5
27275 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
27276 if test "${cf_cv_gnat_version+set}" = set; then
27277 echo $ECHO_N "(cached) $ECHO_C" >&6
27280 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
27281 grep '[0-9].[0-9][0-9]*' |\
27282 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
27285 echo "$as_me:27285: result: $cf_cv_gnat_version" >&5
27286 echo "${ECHO_T}$cf_cv_gnat_version" >&6
27287 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
27288 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
27291 eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat"
27294 unset cf_cv_gnat_version
27295 unset ac_cv_path_cf_TEMP_gnat
27298 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
27300 cf_cv_prog_gnat_correct=no
27302 cf_ada_make=gnatmake
27303 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
27304 # gprconfig is newer than gnatmake; we can continue...
27307 rm -rf ./conftest* ./*~conftest*
27308 if mkdir conftest.src
27312 for cf_gprconfig in Ada C
27314 echo "$as_me:27314: checking for gprconfig name for $cf_gprconfig" >&5
27315 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
27316 if test "$cf_gprconfig" = C
27318 for cf_gprconfig_param in \
27319 "$cf_gprconfig,,,,GNATGCC" \
27320 "$cf_gprconfig,,,,GCC" \
27323 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
27324 test -n "$cf_gprconfig_value" && break
27327 cf_gprconfig_param=$cf_gprconfig
27328 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
27330 if test -n "$cf_gprconfig_value"
27332 eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value"
27333 echo "$as_me:27333: result: $cf_gprconfig_value" >&5
27334 echo "${ECHO_T}$cf_gprconfig_value" >&6
27336 echo "$as_me:27336: result: missing" >&5
27337 echo "${ECHO_T}missing" >&6
27343 rm -rf ./conftest* ./*~conftest*
27346 if test "x$cf_ada_config" != "x#"
27349 echo "$as_me:27349: checking for gnat version" >&5
27350 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
27351 if test "${cf_cv_gnat_version+set}" = set; then
27352 echo $ECHO_N "(cached) $ECHO_C" >&6
27355 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
27356 grep '[0-9].[0-9][0-9]*' |\
27357 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
27360 echo "$as_me:27360: result: $cf_cv_gnat_version" >&5
27361 echo "${ECHO_T}$cf_cv_gnat_version" >&6
27362 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
27364 case "$cf_cv_gnat_version" in
27365 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27366 cf_cv_prog_gnat_correct=yes
27369 { echo "$as_me:27369: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
27370 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
27371 cf_cv_prog_gnat_correct=no
27375 # Extract the first word of "m4", so it can be a program name with args.
27376 set dummy m4; ac_word=$2
27377 echo "$as_me:27377: checking for $ac_word" >&5
27378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27379 if test "${ac_cv_prog_M4_exists+set}" = set; then
27380 echo $ECHO_N "(cached) $ECHO_C" >&6
27382 if test -n "$M4_exists"; then
27383 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
27385 ac_save_IFS=$IFS; IFS=$ac_path_separator
27387 for ac_dir in $ac_dummy; do
27389 test -z "$ac_dir" && ac_dir=.
27390 $as_executable_p "$ac_dir/$ac_word" || continue
27391 ac_cv_prog_M4_exists="yes"
27392 echo "$as_me:27392: found $ac_dir/$ac_word" >&5
27396 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
27399 M4_exists=$ac_cv_prog_M4_exists
27400 if test -n "$M4_exists"; then
27401 echo "$as_me:27401: result: $M4_exists" >&5
27402 echo "${ECHO_T}$M4_exists" >&6
27404 echo "$as_me:27404: result: no" >&5
27405 echo "${ECHO_T}no" >&6
27408 if test "$ac_cv_prog_M4_exists" = no; then
27409 cf_cv_prog_gnat_correct=no
27410 { echo "$as_me:27410: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
27411 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
27413 if test "$cf_cv_prog_gnat_correct" = yes; then
27414 echo "$as_me:27414: checking if GNAT works" >&5
27415 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
27417 rm -rf ./conftest* ./*~conftest*
27418 cat >>conftest.ads <<CF_EOF
27419 procedure conftest;
27421 cat >>conftest.adb <<CF_EOF
27424 procedure conftest is
27426 Text_IO.Put ("Hello World");
27428 GNAT.OS_Lib.OS_Exit (0);
27431 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27432 if ( ./conftest 1>&5 2>&1 ) ; then
27433 cf_cv_prog_gnat_correct=yes
27435 cf_cv_prog_gnat_correct=no
27438 cf_cv_prog_gnat_correct=no
27440 rm -rf ./conftest* ./*~conftest*
27442 echo "$as_me:27442: result: $cf_cv_prog_gnat_correct" >&5
27443 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
27446 cf_cv_prog_gnat_correct=no
27450 if test "x$cf_cv_prog_gnat_correct" = xyes; then
27452 ADAFLAGS="$ADAFLAGS -gnatpn"
27454 echo "$as_me:27454: checking optimization options for ADAFLAGS" >&5
27455 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
27459 ADAFLAGS="$ADAFLAGS -g"
27465 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
27467 ADAFLAGS="$ADAFLAGS $cf_O_flag"
27471 echo "$as_me:27471: result: $ADAFLAGS" >&5
27472 echo "${ECHO_T}$ADAFLAGS" >&6
27474 echo "$as_me:27474: checking if GNATPREP supports -T option" >&5
27475 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
27476 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
27477 echo $ECHO_N "(cached) $ECHO_C" >&6
27480 cf_cv_gnatprep_opt_t=no
27481 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
27484 echo "$as_me:27484: result: $cf_cv_gnatprep_opt_t" >&5
27485 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
27486 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
27488 echo "$as_me:27488: checking if GNAT supports generics" >&5
27489 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
27490 case "$cf_cv_gnat_version" in
27491 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27492 cf_gnat_generics=yes
27495 cf_gnat_generics=no
27498 echo "$as_me:27498: result: $cf_gnat_generics" >&5
27499 echo "${ECHO_T}$cf_gnat_generics" >&6
27501 if test "$cf_gnat_generics" = yes
27503 cf_compile_generics=generics
27504 cf_generic_objects="\${GENOBJS}"
27506 cf_compile_generics=
27507 cf_generic_objects=
27510 echo "$as_me:27510: checking if GNAT supports SIGINT" >&5
27511 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
27512 if test "${cf_cv_gnat_sigint+set}" = set; then
27513 echo $ECHO_N "(cached) $ECHO_C" >&6
27516 rm -rf ./conftest* ./*~conftest*
27517 cat >>conftest.ads <<CF_EOF
27518 with Ada.Interrupts.Names;
27520 package ConfTest is
27522 pragma Warnings (Off); -- the next pragma exists since 3.11p
27523 pragma Unreserve_All_Interrupts;
27524 pragma Warnings (On);
27526 protected Process is
27528 function Continue return Boolean;
27529 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
27531 Done : Boolean := False;
27536 cat >>conftest.adb <<CF_EOF
27537 package body ConfTest is
27538 protected body Process is
27543 function Continue return Boolean is
27550 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27551 cf_cv_gnat_sigint=yes
27553 cf_cv_gnat_sigint=no
27555 rm -rf ./conftest* ./*~conftest*
27558 echo "$as_me:27558: result: $cf_cv_gnat_sigint" >&5
27559 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
27561 if test "$cf_cv_gnat_sigint" = yes ; then
27564 USE_GNAT_SIGINT="#"
27567 cf_gnat_libraries=no
27568 cf_gnat_projects=no
27570 if test "$enable_gnat_projects" != no ; then
27571 echo "$as_me:27571: checking if GNAT supports project files" >&5
27572 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
27573 case "$cf_cv_gnat_version" in
27577 case "$cf_cv_system_name" in
27581 rm -rf ./conftest* ./*~conftest*
27582 if mkdir conftest.src conftest.bin conftest.lib
27585 rm -rf ./conftest* ./*~conftest*
27586 cat >>library.gpr <<CF_EOF
27588 Kind := External ("LIB_KIND");
27589 for Library_Name use "ConfTest";
27590 for Object_Dir use ".";
27591 for Library_ALI_Dir use External("LIBRARY_DIR");
27592 for Library_Version use External ("SONAME");
27593 for Library_Kind use Kind;
27594 for Library_Dir use External("BUILD_DIR");
27595 Source_Dir := External ("SOURCE_DIR");
27596 for Source_Dirs use (Source_Dir);
27599 cat >>confpackage.ads <<CF_EOF
27600 package ConfPackage is
27601 procedure conftest;
27604 cat >>confpackage.adb <<CF_EOF
27606 package body ConfPackage is
27607 procedure conftest is
27609 Text_IO.Put ("Hello World");
27614 if ( "$cf_ada_make" $ADAFLAGS \
27616 -XBUILD_DIR="`cd ../conftest.bin;pwd`" \
27617 -XLIBRARY_DIR="`cd ../conftest.lib;pwd`" \
27618 -XSOURCE_DIR="`pwd`" \
27619 -XSONAME=libConfTest.so.1 \
27620 -XLIB_KIND=static 1>&5 2>&1 ) ; then
27621 cf_gnat_projects=yes
27625 if test -f conftest.lib/confpackage.ali
27627 cf_gnat_libraries=yes
27629 rm -rf ./conftest* ./*~conftest*
27634 echo "$as_me:27634: result: $cf_gnat_projects" >&5
27635 echo "${ECHO_T}$cf_gnat_projects" >&6
27636 fi # enable_gnat_projects
27638 if test "$cf_gnat_projects" = yes
27640 echo "$as_me:27640: checking if GNAT supports libraries" >&5
27641 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
27642 echo "$as_me:27642: result: $cf_gnat_libraries" >&5
27643 echo "${ECHO_T}$cf_gnat_libraries" >&6
27646 USE_OLD_MAKERULES=""
27647 USE_GNAT_PROJECTS="#"
27648 USE_GNAT_MAKE_GPR="#"
27649 USE_GNAT_GPRBUILD="#"
27651 if test "$cf_gnat_projects" = yes
27653 USE_OLD_MAKERULES="#"
27654 USE_GNAT_PROJECTS=""
27655 if test "$cf_cv_VERSION_GPRBUILD" != no
27657 USE_GNAT_GPRBUILD=""
27658 elif test "$cf_cv_VERSION_GNATMAKE" != no
27660 USE_GNAT_MAKE_GPR=""
27662 { echo "$as_me:27662: WARNING: use old makefile rules since tools are missing" >&5
27663 echo "$as_me: WARNING: use old makefile rules since tools are missing" >&2;}
27667 if test "$cf_gnat_libraries" = yes
27669 USE_GNAT_LIBRARIES=""
27671 USE_GNAT_LIBRARIES="#"
27674 echo "$as_me:27674: checking for ada-compiler" >&5
27675 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
27677 # Check whether --with-ada-compiler or --without-ada-compiler was given.
27678 if test "${with_ada_compiler+set}" = set; then
27679 withval="$with_ada_compiler"
27680 cf_ada_compiler=$withval
27682 cf_ada_compiler=gnatmake
27685 echo "$as_me:27685: result: $cf_ada_compiler" >&5
27686 echo "${ECHO_T}$cf_ada_compiler" >&6
27688 cf_ada_package=terminal_interface
27690 echo "$as_me:27690: checking for ada-include" >&5
27691 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
27693 # Check whether --with-ada-include or --without-ada-include was given.
27694 if test "${with_ada_include+set}" = set; then
27695 withval="$with_ada_include"
27698 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
27699 fi; if test -n "$prefix/share/ada/adainclude" ; then
27701 if test "x$prefix" != xNONE; then
27702 cf_path_syntax="$prefix"
27704 cf_path_syntax="$ac_default_prefix"
27707 case ".$withval" in
27708 (.\$\(*\)*|.\'*\'*)
27712 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27714 (.\$\{*prefix\}*|.\$\{*dir\}*)
27715 eval withval="$withval"
27716 case ".$withval" in
27718 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27723 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27726 { { echo "$as_me:27726: error: expected a pathname, not \"$withval\"" >&5
27727 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27728 { (exit 1); exit 1; }; }
27733 eval ADA_INCLUDE="$withval"
27735 echo "$as_me:27735: result: $ADA_INCLUDE" >&5
27736 echo "${ECHO_T}$ADA_INCLUDE" >&6
27738 echo "$as_me:27738: checking for ada-objects" >&5
27739 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
27741 # Check whether --with-ada-objects or --without-ada-objects was given.
27742 if test "${with_ada_objects+set}" = set; then
27743 withval="$with_ada_objects"
27746 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
27747 fi; if test -n "$prefix/lib/ada/adalib" ; then
27749 if test "x$prefix" != xNONE; then
27750 cf_path_syntax="$prefix"
27752 cf_path_syntax="$ac_default_prefix"
27755 case ".$withval" in
27756 (.\$\(*\)*|.\'*\'*)
27760 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27762 (.\$\{*prefix\}*|.\$\{*dir\}*)
27763 eval withval="$withval"
27764 case ".$withval" in
27766 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27771 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27774 { { echo "$as_me:27774: error: expected a pathname, not \"$withval\"" >&5
27775 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27776 { (exit 1); exit 1; }; }
27781 eval ADA_OBJECTS="$withval"
27783 echo "$as_me:27783: result: $ADA_OBJECTS" >&5
27784 echo "${ECHO_T}$ADA_OBJECTS" >&6
27786 echo "$as_me:27786: checking if an Ada95 shared-library should be built" >&5
27787 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
27789 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
27790 if test "${with_ada_sharedlib+set}" = set; then
27791 withval="$with_ada_sharedlib"
27792 with_ada_sharedlib=$withval
27794 with_ada_sharedlib=no
27796 echo "$as_me:27796: result: $with_ada_sharedlib" >&5
27797 echo "${ECHO_T}$with_ada_sharedlib" >&6
27799 if test "x$with_ada_sharedlib" != xno
27801 if test "x$cf_gnat_projects" != xyes
27803 { echo "$as_me:27803: WARNING: disabling shared-library since GNAT projects are not supported" >&5
27804 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
27805 with_ada_sharedlib=no
27809 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
27810 MAKE_ADA_SHAREDLIB="#"
27812 if test "x$with_ada_sharedlib" != xno
27814 MAKE_ADA_SHAREDLIB=
27815 if test "x$with_ada_sharedlib" != xyes
27817 ADA_SHAREDLIB="$with_ada_sharedlib"
27821 # allow the Ada binding to be renamed
27823 echo "$as_me:27823: checking for ada-libname" >&5
27824 echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
27826 # Check whether --with-ada-libname or --without-ada-libname was given.
27827 if test "${with_ada_libname+set}" = set; then
27828 withval="$with_ada_libname"
27829 ADA_LIBNAME=$withval
27831 ADA_LIBNAME=AdaCurses
27833 case "x$ADA_LIBNAME" in
27835 ADA_LIBNAME=AdaCurses
27839 echo "$as_me:27839: result: $ADA_LIBNAME" >&5
27840 echo "${ECHO_T}$ADA_LIBNAME" >&6
27848 # do this "late" to avoid conflict with header-checks
27849 if test "x$with_widec" = xyes ; then
27850 echo "$as_me:27850: checking for wchar_t" >&5
27851 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
27852 if test "${ac_cv_type_wchar_t+set}" = set; then
27853 echo $ECHO_N "(cached) $ECHO_C" >&6
27855 cat >"conftest.$ac_ext" <<_ACEOF
27856 #line 27856 "configure"
27857 #include "confdefs.h"
27858 $ac_includes_default
27864 if (sizeof (wchar_t))
27870 rm -f "conftest.$ac_objext"
27871 if { (eval echo "$as_me:27871: \"$ac_compile\"") >&5
27872 (eval $ac_compile) 2>&5
27874 echo "$as_me:27874: \$? = $ac_status" >&5
27875 (exit "$ac_status"); } &&
27876 { ac_try='test -s "conftest.$ac_objext"'
27877 { (eval echo "$as_me:27877: \"$ac_try\"") >&5
27878 (eval $ac_try) 2>&5
27880 echo "$as_me:27880: \$? = $ac_status" >&5
27881 (exit "$ac_status"); }; }; then
27882 ac_cv_type_wchar_t=yes
27884 echo "$as_me: failed program was:" >&5
27885 cat "conftest.$ac_ext" >&5
27886 ac_cv_type_wchar_t=no
27888 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27890 echo "$as_me:27890: result: $ac_cv_type_wchar_t" >&5
27891 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
27893 echo "$as_me:27893: checking size of wchar_t" >&5
27894 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
27895 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
27896 echo $ECHO_N "(cached) $ECHO_C" >&6
27898 if test "$ac_cv_type_wchar_t" = yes; then
27899 if test "$cross_compiling" = yes; then
27900 # Depending upon the size, compute the lo and hi bounds.
27901 cat >"conftest.$ac_ext" <<_ACEOF
27902 #line 27902 "configure"
27903 #include "confdefs.h"
27904 $ac_includes_default
27908 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
27913 rm -f "conftest.$ac_objext"
27914 if { (eval echo "$as_me:27914: \"$ac_compile\"") >&5
27915 (eval $ac_compile) 2>&5
27917 echo "$as_me:27917: \$? = $ac_status" >&5
27918 (exit "$ac_status"); } &&
27919 { ac_try='test -s "conftest.$ac_objext"'
27920 { (eval echo "$as_me:27920: \"$ac_try\"") >&5
27921 (eval $ac_try) 2>&5
27923 echo "$as_me:27923: \$? = $ac_status" >&5
27924 (exit "$ac_status"); }; }; then
27927 cat >"conftest.$ac_ext" <<_ACEOF
27928 #line 27928 "configure"
27929 #include "confdefs.h"
27930 $ac_includes_default
27934 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
27939 rm -f "conftest.$ac_objext"
27940 if { (eval echo "$as_me:27940: \"$ac_compile\"") >&5
27941 (eval $ac_compile) 2>&5
27943 echo "$as_me:27943: \$? = $ac_status" >&5
27944 (exit "$ac_status"); } &&
27945 { ac_try='test -s "conftest.$ac_objext"'
27946 { (eval echo "$as_me:27946: \"$ac_try\"") >&5
27947 (eval $ac_try) 2>&5
27949 echo "$as_me:27949: \$? = $ac_status" >&5
27950 (exit "$ac_status"); }; }; then
27951 ac_hi=$ac_mid; break
27953 echo "$as_me: failed program was:" >&5
27954 cat "conftest.$ac_ext" >&5
27955 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
27957 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27960 echo "$as_me: failed program was:" >&5
27961 cat "conftest.$ac_ext" >&5
27964 cat >"conftest.$ac_ext" <<_ACEOF
27965 #line 27965 "configure"
27966 #include "confdefs.h"
27967 $ac_includes_default
27971 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
27976 rm -f "conftest.$ac_objext"
27977 if { (eval echo "$as_me:27977: \"$ac_compile\"") >&5
27978 (eval $ac_compile) 2>&5
27980 echo "$as_me:27980: \$? = $ac_status" >&5
27981 (exit "$ac_status"); } &&
27982 { ac_try='test -s "conftest.$ac_objext"'
27983 { (eval echo "$as_me:27983: \"$ac_try\"") >&5
27984 (eval $ac_try) 2>&5
27986 echo "$as_me:27986: \$? = $ac_status" >&5
27987 (exit "$ac_status"); }; }; then
27988 ac_lo=$ac_mid; break
27990 echo "$as_me: failed program was:" >&5
27991 cat "conftest.$ac_ext" >&5
27992 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
27994 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27997 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27998 # Binary search between lo and hi bounds.
27999 while test "x$ac_lo" != "x$ac_hi"; do
28000 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
28001 cat >"conftest.$ac_ext" <<_ACEOF
28002 #line 28002 "configure"
28003 #include "confdefs.h"
28004 $ac_includes_default
28008 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
28013 rm -f "conftest.$ac_objext"
28014 if { (eval echo "$as_me:28014: \"$ac_compile\"") >&5
28015 (eval $ac_compile) 2>&5
28017 echo "$as_me:28017: \$? = $ac_status" >&5
28018 (exit "$ac_status"); } &&
28019 { ac_try='test -s "conftest.$ac_objext"'
28020 { (eval echo "$as_me:28020: \"$ac_try\"") >&5
28021 (eval $ac_try) 2>&5
28023 echo "$as_me:28023: \$? = $ac_status" >&5
28024 (exit "$ac_status"); }; }; then
28027 echo "$as_me: failed program was:" >&5
28028 cat "conftest.$ac_ext" >&5
28029 ac_lo=`expr "$ac_mid" + 1`
28031 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28033 ac_cv_sizeof_wchar_t=$ac_lo
28035 if test "$cross_compiling" = yes; then
28036 { { echo "$as_me:28036: error: cannot run test program while cross compiling" >&5
28037 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
28038 { (exit 1); exit 1; }; }
28040 cat >"conftest.$ac_ext" <<_ACEOF
28041 #line 28041 "configure"
28042 #include "confdefs.h"
28043 $ac_includes_default
28047 FILE *f = fopen ("conftest.val", "w");
28049 $ac_main_return (1);
28050 fprintf (f, "%ld", (long)(sizeof (wchar_t)));
28056 rm -f "conftest$ac_exeext"
28057 if { (eval echo "$as_me:28057: \"$ac_link\"") >&5
28058 (eval $ac_link) 2>&5
28060 echo "$as_me:28060: \$? = $ac_status" >&5
28061 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
28062 { (eval echo "$as_me:28062: \"$ac_try\"") >&5
28063 (eval $ac_try) 2>&5
28065 echo "$as_me:28065: \$? = $ac_status" >&5
28066 (exit "$ac_status"); }; }; then
28067 ac_cv_sizeof_wchar_t=`cat conftest.val`
28069 echo "$as_me: program exited with status $ac_status" >&5
28070 echo "$as_me: failed program was:" >&5
28071 cat "conftest.$ac_ext" >&5
28073 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
28078 ac_cv_sizeof_wchar_t=0
28081 echo "$as_me:28081: result: $ac_cv_sizeof_wchar_t" >&5
28082 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
28083 cat >>confdefs.h <<EOF
28084 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
28087 # cross-compiling to mingw can run into the problem that attempting to
28088 # link with the regex library fails, causing the test to not set this to
28089 # a number. "recent" autoconf does not address this problem either -TD
28090 if test -z "$ac_cv_sizeof_wchar_t"
28092 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
28094 echo "${as_me:-configure}:28094: testing test failed (assume 2) ..." 1>&5
28096 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
28097 mv confdefs.tmp confdefs.h
28098 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
28102 ### Construct the ncurses library-subsets, if any, from this set of keywords:
28103 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
28105 ### ticlib modules may be a separate library, otherwise contained in termlib.
28106 ### termlib modules may be a separate library, otherwise contained in ncurses.
28108 ### The of "+" or " " between the tokens controls the way the script
28109 ### chooses to split module lists into libraries.
28111 ### (see CF_LIB_RULES).
28112 echo "$as_me:28112: checking for library subsets" >&5
28113 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
28116 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
28117 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
28118 if test "$with_ticlib" != no ; then
28119 LIB_SUBSETS="${LIB_SUBSETS} "
28121 LIB_SUBSETS="${LIB_SUBSETS}+"
28125 LIB_SUBSETS="${LIB_SUBSETS}termlib"
28126 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
28128 if test "$with_termlib" != no ; then
28129 LIB_SUBSETS="${LIB_SUBSETS} "
28131 LIB_SUBSETS="${LIB_SUBSETS}+"
28134 LIB_SUBSETS="${LIB_SUBSETS}base"
28136 # Most term-driver calls are to tinfo, but some like init_pair are to the
28137 # base library (so it resides in base).
28138 if test "$with_term_driver" != no ; then
28139 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
28140 case "$cf_cv_system_name" in
28141 (*mingw32*|*mingw64*)
28142 if test "x$with_exp_win32" = xyes ; then
28143 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32"
28145 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
28147 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
28150 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
28153 elif test "x$with_exp_win32" = xyes ; then
28154 case "$cf_cv_system_name" in
28155 (*mingw32*|*mingw64*)
28156 LIB_SUBSETS="${LIB_SUBSETS}+port_win32"
28163 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
28164 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
28166 echo "$as_me:28166: result: $LIB_SUBSETS" >&5
28167 echo "${ECHO_T}$LIB_SUBSETS" >&6
28169 ### Construct the list of include-directories to be generated
28171 if test "$srcdir" != "."; then
28172 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
28174 CPPFLAGS="-I../include $CPPFLAGS"
28175 if test "$srcdir" != "."; then
28176 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
28178 CPPFLAGS="-I. $CPPFLAGS"
28180 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
28181 if test "$srcdir" != "."; then
28182 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
28184 if test "$GCC" != yes; then
28185 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28186 elif test "$includedir" != "/usr/include"; then
28187 if test "$includedir" = '${prefix}/include' ; then
28188 if test x$prefix != x/usr ; then
28189 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28192 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28196 ### Build up pieces for makefile rules
28197 echo "$as_me:28197: checking default library suffix" >&5
28198 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
28200 case $DFT_LWR_MODEL in
28201 (libtool) DFT_ARG_SUFFIX='' ;;
28202 (normal) DFT_ARG_SUFFIX='' ;;
28203 (debug) DFT_ARG_SUFFIX='_g' ;;
28204 (profile) DFT_ARG_SUFFIX='_p' ;;
28205 (shared) DFT_ARG_SUFFIX='' ;;
28207 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
28208 echo "$as_me:28208: result: $DFT_ARG_SUFFIX" >&5
28209 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
28211 echo "$as_me:28211: checking default library-dependency suffix" >&5
28212 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
28214 case X$DFT_LWR_MODEL in
28216 DFT_LIB_SUFFIX='.la'
28217 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28220 case "$cf_cv_system_name" in
28222 DFT_LIB_SUFFIX='_g.lib'
28225 DFT_LIB_SUFFIX='_g.a'
28228 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28231 case "$cf_cv_system_name" in
28233 DFT_LIB_SUFFIX='_p.lib'
28236 DFT_LIB_SUFFIX='_p.a'
28239 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28242 case "$cf_cv_system_name" in
28244 DFT_LIB_SUFFIX='.so'
28245 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28248 DFT_LIB_SUFFIX='.dll'
28249 DFT_DEP_SUFFIX='.dll.lib'
28251 (cygwin*|msys*|mingw*)
28252 DFT_LIB_SUFFIX='.dll'
28253 DFT_DEP_SUFFIX='.dll.a'
28256 DFT_LIB_SUFFIX='.dylib'
28257 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28262 DFT_LIB_SUFFIX='.so'
28263 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28266 DFT_LIB_SUFFIX='.sl'
28267 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28272 DFT_LIB_SUFFIX='.so'
28273 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28280 DFT_LIB_SUFFIX='.lib'
28283 DFT_LIB_SUFFIX='.a'
28286 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28289 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28291 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
28292 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
28294 echo "$as_me:28294: result: $DFT_DEP_SUFFIX" >&5
28295 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
28297 echo "$as_me:28297: checking default object directory" >&5
28298 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
28300 case $DFT_LWR_MODEL in
28301 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
28302 (normal) DFT_OBJ_SUBDIR='objects' ;;
28303 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
28304 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
28306 case "$cf_cv_system_name" in
28308 DFT_OBJ_SUBDIR='objects' ;;
28310 DFT_OBJ_SUBDIR='obj_s' ;;
28313 echo "$as_me:28313: result: $DFT_OBJ_SUBDIR" >&5
28314 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
28316 if test "x$cf_with_cxx" = xyes ; then
28317 echo "$as_me:28317: checking c++ library-dependency suffix" >&5
28318 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
28319 if test "$with_libtool" != "no"; then
28320 # libtool thinks it can make c++ shared libraries (perhaps only g++)
28321 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28322 elif test "$with_shared_cxx" != "no"; then
28323 # also for g++ users...
28324 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28326 # we normally make a static library because C/C++ library rules differ
28330 CXX_LIB_SUFFIX='.la'
28331 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28334 case "$cf_cv_system_name" in
28336 CXX_LIB_SUFFIX='_g.lib'
28339 CXX_LIB_SUFFIX='_g.a'
28342 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28345 case "$cf_cv_system_name" in
28347 CXX_LIB_SUFFIX='_p.lib'
28350 CXX_LIB_SUFFIX='_p.a'
28353 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28356 case "$cf_cv_system_name" in
28358 CXX_LIB_SUFFIX='.so'
28359 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28362 CXX_LIB_SUFFIX='.dll'
28363 CXX_DEP_SUFFIX='.dll.lib'
28365 (cygwin*|msys*|mingw*)
28366 CXX_LIB_SUFFIX='.dll'
28367 CXX_DEP_SUFFIX='.dll.a'
28370 CXX_LIB_SUFFIX='.dylib'
28371 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28376 CXX_LIB_SUFFIX='.so'
28377 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28380 CXX_LIB_SUFFIX='.sl'
28381 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28386 CXX_LIB_SUFFIX='.so'
28387 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28394 CXX_LIB_SUFFIX='.lib'
28397 CXX_LIB_SUFFIX='.a'
28400 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28403 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28405 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
28406 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
28410 echo "$as_me:28410: result: $CXX_LIB_SUFFIX" >&5
28411 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
28415 # do not want -ldl in build except as needed for -lncurses dependency
28416 if test "x$with_dlsym" = xyes ; then
28417 if test "$DFT_LWR_MODEL" = shared || \
28418 test "$DFT_LWR_MODEL" = libtool ; then
28420 # remove dl library from $LIBS
28421 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28425 ### Set up low-level terminfo dependencies for makefiles.
28427 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
28428 # do not need libdl
28430 if test "x$with_dlsym" = xyes ; then
28432 # remove dl library from $SHLIB_LIST
28433 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28437 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
28438 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
28439 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
28440 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
28442 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
28445 if test "$with_ticlib" != no ; then
28447 if test "x$with_ticlib" != xyes ; then
28448 TICS_NAME=$with_ticlib
28449 TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28450 TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28451 TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28452 TICS_LIB_SUFFIX="${with_ticlib}"
28454 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28455 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
28456 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
28457 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
28459 TICS_LDFLAGS="-L${LIB_DIR}"
28460 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
28462 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28463 TICS_LDFLAGS="-L${LIB_DIR}"
28464 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28467 if test "$with_termlib" != no ; then
28469 if test "x$with_termlib" != xyes ; then
28470 TINFO_NAME=$with_termlib
28471 TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28472 TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28473 TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28474 TINFO_LIB_SUFFIX="${with_termlib}"
28476 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28477 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
28478 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
28479 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
28482 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28483 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28484 if test "$DFT_LWR_MODEL" = "libtool"; then
28485 TEST_ARGS="${TEST_DEPS}"
28486 TEST_ARG2="${TEST_DEP2}"
28487 TINFO_LDFLAGS="-L${LIB_DIR}"
28488 TINFO_LIBS="$TEST_ARGS"
28489 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
28490 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
28492 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
28493 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
28494 if test "x$with_term_driver" != xno ; then
28495 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28496 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
28497 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28499 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28500 TINFO_LIBS="$TEST_ARGS"
28502 TINFO_LDFLAGS="-L${LIB_DIR}"
28503 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28506 # the next lines are needed for linking libtic over libncurses
28507 TINFO_NAME=${LIB_NAME}
28508 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28509 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
28510 if test "x$with_tic_depends" = xyes ; then
28511 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28513 TICS_LIST="$SHLIB_LIST"
28516 TINFO_LDFLAGS="-L${LIB_DIR}"
28517 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28520 if test "$DFT_LWR_MODEL" = shared ; then
28521 case "$cf_cv_system_name" in
28523 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
28529 if test "x$with_dlsym" = xyes ; then
28531 # remove dl library from $TICS_LIST
28532 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28536 if test "$DFT_LWR_MODEL" = "libtool"; then
28541 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
28543 case "$DFT_LWR_MODEL" in
28544 (normal|debug|profile)
28546 if test "$GCC" = yes ; then
28547 case "$cf_cv_system_name" in
28548 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
28552 (*) # normally, except when broken
28553 LDFLAGS_STATIC=-static
28554 LDFLAGS_SHARED=-dynamic
28558 case "$cf_cv_system_name" in
28559 (aix[4-7]*) # from ld manpage
28560 LDFLAGS_STATIC=-bstatic
28561 LDFLAGS_SHARED=-bdynamic
28563 (hpux*) # from ld manpage for hpux10.20, hpux11.11
28564 # We could also use just "archive" and "shared".
28565 LDFLAGS_STATIC=-Wl,-a,archive_shared
28566 LDFLAGS_SHARED=-Wl,-a,shared_archive
28568 (irix*) # from ld manpage IRIX64
28569 LDFLAGS_STATIC=-Bstatic
28570 LDFLAGS_SHARED=-Bdynamic
28572 (osf[45]*) # from ld manpage osf4.0d, osf5.1
28573 # alternative "-oldstyle_liblookup" (not in cc manpage)
28574 LDFLAGS_STATIC=-noso
28575 LDFLAGS_SHARED=-so_archive
28578 LDFLAGS_STATIC=-Bstatic
28579 LDFLAGS_SHARED=-Bdynamic
28584 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
28586 echo "$as_me:28586: checking if linker supports switching between static/dynamic" >&5
28587 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
28589 rm -f libconftest.a
28590 cat >conftest.$ac_ext <<EOF
28591 #line 28591 "configure"
28593 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
28595 if { (eval echo "$as_me:28595: \"$ac_compile\"") >&5
28596 (eval $ac_compile) 2>&5
28598 echo "$as_me:28598: \$? = $ac_status" >&5
28599 (exit "$ac_status"); } ; then
28600 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
28601 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
28605 cf_save_LIBS="$LIBS"
28607 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
28608 cat >"conftest.$ac_ext" <<_ACEOF
28609 #line 28609 "configure"
28610 #include "confdefs.h"
28612 #line 28612 "configure"
28614 int cf_ldflags_static(FILE *fp);
28620 return cf_ldflags_static(stdin);
28626 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
28627 if { (eval echo "$as_me:28627: \"$ac_link\"") >&5
28628 (eval $ac_link) 2>&5
28630 echo "$as_me:28630: \$? = $ac_status" >&5
28631 (exit "$ac_status"); } &&
28632 { ac_try='test -s "conftest$ac_exeext"'
28633 { (eval echo "$as_me:28633: \"$ac_try\"") >&5
28634 (eval $ac_try) 2>&5
28636 echo "$as_me:28636: \$? = $ac_status" >&5
28637 (exit "$ac_status"); }; }; then
28639 # some linkers simply ignore the -dynamic
28640 case x`file "conftest$ac_exeext" 2>/dev/null` in
28642 cf_ldflags_static=no
28645 cf_ldflags_static=yes
28650 echo "$as_me: failed program was:" >&5
28651 cat "conftest.$ac_ext" >&5
28652 cf_ldflags_static=no
28654 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
28656 rm -f libconftest.*
28657 LIBS="$cf_save_LIBS"
28659 echo "$as_me:28659: result: $cf_ldflags_static" >&5
28660 echo "${ECHO_T}$cf_ldflags_static" >&6
28662 if test "$cf_ldflags_static" != yes
28675 echo "$as_me:28675: checking where we will install curses.h" >&5
28676 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
28679 if test "$with_overwrite" = no && \
28680 { test "x$includedir" = 'x${prefix}/include' || \
28681 test "x$includedir" = "x${prefix}/include"; }
28683 includesubdir="/ncurses${USE_LIB_SUFFIX}"
28685 echo "$as_me:28685: result: ${includedir}${includesubdir}" >&5
28686 echo "${ECHO_T}${includedir}${includesubdir}" >&6
28688 ### Resolve a conflict between normal and wide-curses by forcing applications
28689 ### that will need libutf8 to add it to their configure script.
28690 if test "$with_overwrite" != no ; then
28691 if test "$NCURSES_LIBUTF8" = 1 ; then
28692 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
28693 { echo "$as_me:28693: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
28694 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
28697 WITH_OVERWRITE=$with_overwrite
28699 ### At least on MinGW a shared library build without libtool
28700 ### requires adding the additional libs to the link list.
28701 case "$cf_cv_system_name" in
28702 (*mingw32*|*mingw64*)
28703 if test "$DFT_LWR_MODEL" != "libtool"; then
28704 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
28710 # used to separate tack out of the tree
28713 ### predefined stuff for the test programs
28715 cat >>confdefs.h <<\EOF
28716 #define HAVE_SLK_COLOR 1
28719 # pkgsrc uses these
28721 echo "$as_me:28721: checking for desired basename for form library" >&5
28722 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
28724 # Check whether --with-form-libname or --without-form-libname was given.
28725 if test "${with_form_libname+set}" = set; then
28726 withval="$with_form_libname"
28727 with_lib_basename=$withval
28729 with_lib_basename=form
28731 FORM_NAME="$with_lib_basename"
28733 case "x$FORM_NAME" in
28741 echo "$as_me:28741: result: $FORM_NAME" >&5
28742 echo "${ECHO_T}$FORM_NAME" >&6
28744 echo "$as_me:28744: checking for desired basename for menu library" >&5
28745 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
28747 # Check whether --with-menu-libname or --without-menu-libname was given.
28748 if test "${with_menu_libname+set}" = set; then
28749 withval="$with_menu_libname"
28750 with_lib_basename=$withval
28752 with_lib_basename=menu
28754 MENU_NAME="$with_lib_basename"
28756 case "x$MENU_NAME" in
28764 echo "$as_me:28764: result: $MENU_NAME" >&5
28765 echo "${ECHO_T}$MENU_NAME" >&6
28767 echo "$as_me:28767: checking for desired basename for panel library" >&5
28768 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
28770 # Check whether --with-panel-libname or --without-panel-libname was given.
28771 if test "${with_panel_libname+set}" = set; then
28772 withval="$with_panel_libname"
28773 with_lib_basename=$withval
28775 with_lib_basename=panel
28777 PANEL_NAME="$with_lib_basename"
28779 case "x$PANEL_NAME" in
28787 echo "$as_me:28787: result: $PANEL_NAME" >&5
28788 echo "${ECHO_T}$PANEL_NAME" >&6
28790 echo "$as_me:28790: checking for desired basename for cxx library" >&5
28791 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
28793 # Check whether --with-cxx-libname or --without-cxx-libname was given.
28794 if test "${with_cxx_libname+set}" = set; then
28795 withval="$with_cxx_libname"
28796 with_lib_basename=$withval
28798 with_lib_basename=ncurses++
28800 CXX_NAME="$with_lib_basename"
28802 case "x$CXX_NAME" in
28810 echo "$as_me:28810: result: $CXX_NAME" >&5
28811 echo "${ECHO_T}$CXX_NAME" >&6
28813 ### Construct the list of subdirectories for which we'll customize makefiles
28814 ### with the appropriate compile-rules.
28816 echo "$as_me:28816: checking for src modules" >&5
28817 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
28819 # dependencies and linker-arguments for test-programs
28820 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
28821 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
28822 if test "$DFT_LWR_MODEL" = "libtool"; then
28823 TEST_ARGS="${TEST_DEPS}"
28824 TEST_ARG2="${TEST_DEP2}"
28826 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28827 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
28830 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
28832 for cf_dir in $modules_to_build
28834 if test -f "$srcdir/$cf_dir/modules" ; then
28836 # We may/may not have tack in the distribution, though the
28838 if test "$cf_dir" = tack ; then
28839 if test "x$cf_with_tack" != "xyes"; then
28844 if test -z "$cf_cv_src_modules"; then
28845 cf_cv_src_modules=$cf_dir
28847 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
28850 # Make the ncurses_cfg.h file record the library interface files as
28851 # well. These are header files that are the same name as their
28852 # directory. Ncurses is the only library that does not follow
28854 if test "$cf_dir" = tack ; then
28856 elif test -f "$srcdir/${cf_dir}/${cf_dir}.h" ; then
28858 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28860 cat >>confdefs.h <<EOF
28861 #define HAVE_${cf_have_include}_H 1
28864 cat >>confdefs.h <<EOF
28865 #define HAVE_LIB${cf_have_include} 1
28868 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28870 eval TEST_ROOT="\$${cf_map_lib_basename}_NAME"
28872 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
28873 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
28874 if test "$DFT_LWR_MODEL" = "libtool"; then
28875 TEST_ARGS="${TEST_DEPS}"
28876 TEST_ARG2="${TEST_DEP2}"
28878 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
28879 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
28881 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
28885 echo "$as_me:28885: result: $cf_cv_src_modules" >&5
28886 echo "${ECHO_T}$cf_cv_src_modules" >&6
28888 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
28889 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
28892 if test "x$cf_with_manpages" != xno ; then
28893 SRC_SUBDIRS="$SRC_SUBDIRS man"
28895 SRC_SUBDIRS="$SRC_SUBDIRS include"
28896 for cf_dir in $cf_cv_src_modules
28898 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
28900 if test "x$cf_with_tests" != "xno" ; then
28901 SRC_SUBDIRS="$SRC_SUBDIRS test"
28903 # always make this, to install the ncurses-config script
28904 SRC_SUBDIRS="$SRC_SUBDIRS misc"
28905 if test "$cf_with_cxx_binding" != no; then
28906 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
28907 SRC_SUBDIRS="$SRC_SUBDIRS c++"
28910 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
28911 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
28914 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f "$srcdir/Ada95/Makefile.in" ; then
28915 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
28916 ADA_SUBDIRS="gen src"
28917 if test "x$cf_with_tests" != "xno" ; then
28918 ADA_SUBDIRS="$ADA_SUBDIRS samples"
28923 for cf_dir in $SRC_SUBDIRS
28925 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
28928 if test -n "$ADA_SUBDIRS"; then
28929 for cf_dir in $ADA_SUBDIRS
28931 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
28936 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
28937 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
28938 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
28939 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
28943 for cf_item in $cf_list_models
28947 (libtool) cf_subdir='obj_lo' ;;
28948 (normal) cf_subdir='objects' ;;
28949 (debug) cf_subdir='obj_g' ;;
28950 (profile) cf_subdir='obj_p' ;;
28952 case "$cf_cv_system_name" in
28954 cf_subdir='objects' ;;
28956 cf_subdir='obj_s' ;;
28960 for cf_item2 in $DIRS_TO_MAKE
28962 test "$cf_item2" = "$cf_subdir" && break
28964 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
28966 for cf_dir in $DIRS_TO_MAKE
28968 test ! -d "$cf_dir" && mkdir "$cf_dir"
28971 # symbols that differ when compiling Ada95 by itself.
28972 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
28974 # values to use as strings
28976 cat >>confdefs.h <<EOF
28977 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
28980 cat >>confdefs.h <<EOF
28981 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
28984 ### Define substitutions for header files to avoid name-pollution
28986 if test "x$cf_cv_have_tcgetattr" = xyes ; then
28992 if test "x$ac_cv_header_stdint_h" = xyes ; then
28998 if test "x$ac_cv_header_termio_h" = xyes ; then
29004 if test "x$ac_cv_header_termios_h" = xyes ; then
29010 ################################################################################
29011 test "x$use_database" = xyes && \
29012 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
29014 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
29015 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
29017 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
29018 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
29021 if test "x$cf_with_tests" != xno ; then
29027 ADAHTML_DIR=../../doc/html/ada
29029 # workaround for OS/2 (20151017)
29030 case "$cf_cv_system_name" in
29032 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
29039 # workaround for g++ versus Solaris (20131116)
29040 case "$cf_cv_system_name" in
29042 case "x$CPPFLAGS" in
29043 (*-D_XOPEN_SOURCE_EXTENDED*)
29044 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
29046 echo "${as_me:-configure}:29046: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
29048 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
29049 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
29055 # Help to automatically enable the extended curses features when using either
29056 # the *-config or the ".pc" files by adding defines.
29057 echo "$as_me:29057: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
29058 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
29060 for cf_loop1 in $CPPFLAGS_after_XOPEN
29063 for cf_loop2 in $CPPFLAGS_before_XOPEN
29065 if test "x$cf_loop1" = "x$cf_loop2"
29071 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
29073 echo "$as_me:29073: result: $PKG_CFLAGS" >&5
29074 echo "${ECHO_T}$PKG_CFLAGS" >&6
29076 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
29077 case "x$NCURSES_OSPEED" in
29086 cat >>confdefs.h <<EOF
29087 #define NCURSES_OSPEED_COMPAT $cf_compatible
29090 case "x$cf_cv_typeof_chtype" in
29091 (xshort|xint|xlong)
29092 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
29096 case "x$cf_cv_typeof_mmask_t" in
29097 (xshort|xint|xlong)
29098 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
29102 # substitute into misc/Makefile to suppress
29103 # (un)install.data from the
29104 # (un)install rules.
29105 if test "x$cf_with_db_install" = "xno"; then
29107 MISC_UNINSTALL_DATA=
29109 MISC_INSTALL_DATA=install.data
29110 MISC_UNINSTALL_DATA=uninstall.data
29113 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
29116 MAKE_DATABASE="$MAKE_TERMINFO"
29119 if test -n "$PACKAGE"
29121 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
29123 echo "package: $PACKAGE"
29129 if test -n "$RESULTING_SYMS"
29131 cf_filter_syms=$cf_dft_filter_syms
29132 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_default" 1>&6
29134 echo "${as_me:-configure}:29134: testing will map symbols to ABI=$cf_cv_abi_default ..." 1>&5
29138 if test "x$WILDCARD_SYMS" = xno
29143 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
29145 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
29146 if test "$cf_filter_syms" = yes
29148 RESULTING_SYMS=resulting.map
29151 if test "x$cross_compiling" = xyes ; then
29152 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
29155 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
29159 # This is used for the *-config script and *.pc data files.
29161 echo "$as_me:29161: checking for linker search path" >&5
29162 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
29163 if test "${cf_cv_ld_searchpath+set}" = set; then
29164 echo $ECHO_N "(cached) $ECHO_C" >&6
29167 if test "$cross_compiling" != yes ; then
29169 # GNU binutils' ld does not involve permissions which may stop ldconfig.
29170 cf_pathlist=`${LD:-ld} --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
29172 # The -NX options tell newer versions of Linux ldconfig to not attempt to
29173 # update the cache, which makes it run faster.
29174 test -z "$cf_pathlist" && \
29175 cf_pathlist=`(ldconfig -NX -v) 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
29177 test -z "$cf_pathlist" &&
29178 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
29180 # This works with OpenBSD 6.5, which lists only filenames
29181 test -z "$cf_pathlist" &&
29182 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
29184 if test -z "$cf_pathlist"
29186 # dyld default path with MacOS
29187 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
29189 # do this to bypass check
29190 cf_cv_ld_searchpath='$HOME/lib'
29191 cf_pathlist="/usr/local/lib /lib /usr/lib"
29195 if test -z "$cf_pathlist"
29197 # Solaris is "SunOS"
29198 if test -f /usr/bin/isainfo && test "x`uname -s`" = xSunOS
29200 case x`(isainfo -b)` in
29202 cf_pathlist="$cf_pathlist /lib/64 /usr/lib/64"
29205 test -d /usr/ccs/lib && cf_pathlist="$cf_pathlist /usr/ccs/lib"
29206 cf_pathlist="$cf_pathlist /lib /usr/lib"
29209 { echo "$as_me:29209: WARNING: problem with Solaris architecture" >&5
29210 echo "$as_me: WARNING: problem with Solaris architecture" >&2;}
29216 if test -z "$cf_pathlist"
29219 if test x"`uname -s`" = xHP-UX
29221 case x`getconf LONG_BIT` in
29223 cf_pathlist="/usr/lib/hpux64"
29226 cf_pathlist="/usr/lib/hpux32"
29234 # If nothing else, assume it is conventional
29235 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
29237 # Finally, check that this is only directories
29238 for cf_path in $0 $cf_pathlist
29240 if test -d "$cf_path"; then
29241 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
29242 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
29246 # Ensure that it is nonempty
29247 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
29250 echo "$as_me:29250: result: $cf_cv_ld_searchpath" >&5
29251 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
29253 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
29255 cat >>confdefs.h <<\EOF
29256 #define HAVE_CURSES_DATA_BOOLNAMES 1
29259 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h man/man_db.renames $SUB_MAKEFILES Makefile"
29260 ac_config_commands="$ac_config_commands default"
29261 cat >confcache <<\_ACEOF
29262 # This file is a shell script that caches the results of configure
29263 # tests run on this system so they can be shared between configure
29264 # scripts and configure runs, see configure's option --config-cache.
29265 # It is not useful on other systems. If it contains results you don't
29266 # want to keep, you may remove or edit it.
29268 # config.status only pays attention to the cache file if you give it
29269 # the --recheck option to rerun configure.
29271 # `ac_cv_env_foo' variables (set or unset) will be overriden when
29272 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29273 # following values.
29277 # The following way of writing the cache mishandles newlines in values,
29278 # but we know of no workaround that is simple, portable, and efficient.
29279 # So, don't put newlines in cache variables' values.
29280 # Ultrix sh set writes to stderr and can't be redirected directly,
29281 # and sets the high bit in the cache file unless we assign to the vars.
29284 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29286 # `set' does not quote correctly, so add quotes (double-quote
29287 # substitution turns \\\\ into \\, and sed turns \\ into \).
29290 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29293 # `set' quotes correctly as required by POSIX, so do not add quotes.
29295 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29302 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29304 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29306 if cmp -s $cache_file confcache; then :; else
29307 if test -w $cache_file; then
29308 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29309 cat confcache >$cache_file
29311 echo "not updating unwritable cache $cache_file"
29316 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29317 # Let make expand exec_prefix.
29318 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29320 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29321 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29322 # trailing colons and then remove the whole line if VPATH becomes empty
29323 # (actually we leave an empty line to preserve line numbers).
29324 if test "x$srcdir" = x.; then
29325 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29326 s/:*\$(srcdir):*/:/;
29327 s/:*\${srcdir}:*/:/;
29329 s/^\([^=]*=[ ]*\):*/\1/;
29335 DEFS=-DHAVE_CONFIG_H
29337 : "${CONFIG_STATUS=./config.status}"
29338 ac_clean_files_save=$ac_clean_files
29339 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29340 { echo "$as_me:29340: creating $CONFIG_STATUS" >&5
29341 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29342 cat >"$CONFIG_STATUS" <<_ACEOF
29344 # Generated automatically by configure.
29345 # Run this file to recreate the current configuration.
29346 # Compiler output produced by configure, useful for debugging
29347 # configure, is in config.log if it exists.
29349 me=\`echo "\$0" | sed -e 's,.*\\/,,'\`
29352 SHELL=\${CONFIG_SHELL-$SHELL}
29353 ac_cs_invocation="\$0 \$@"
29355 CLICOLOR_FORCE= GREP_OPTIONS=
29356 unset CLICOLOR_FORCE GREP_OPTIONS
29359 cat >>"$CONFIG_STATUS" <<\_ACEOF
29360 # Be Bourne compatible
29361 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29364 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29368 # Name of the executable.
29369 as_me=`echo "$0" |sed 's,.*[\\/],,'`
29371 if expr a : '\(a\)' >/dev/null 2>&1; then
29377 rm -f conf$$ conf$$.exe conf$$.file
29379 if ln -s conf$$.file conf$$ 2>/dev/null; then
29380 # We could just check for DJGPP; but this test a) works b) is more generic
29381 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29382 if test -f conf$$.exe; then
29383 # Don't use ln at all; we don't have any links
29388 elif ln conf$$.file conf$$ 2>/dev/null; then
29393 rm -f conf$$ conf$$.exe conf$$.file
29395 as_executable_p="test -f"
29397 # Support unset when possible.
29398 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29405 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
29406 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
29407 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
29408 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
29409 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
29410 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
29411 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
29412 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
29415 # We need space, tab and new line, in precisely that order.
29421 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
29427 # Files that config.status was made for.
29428 if test -n "$ac_config_files"; then
29429 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
29432 if test -n "$ac_config_headers"; then
29433 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
29436 if test -n "$ac_config_links"; then
29437 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
29440 if test -n "$ac_config_commands"; then
29441 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
29444 cat >>"$CONFIG_STATUS" <<\EOF
29447 \`$as_me' instantiates files from templates according to the
29448 current configuration.
29450 Usage: $0 [OPTIONS] [FILE]...
29452 -h, --help print this help, then exit
29453 -V, --version print version number, then exit
29454 -d, --debug don't remove temporary files
29455 --recheck update $as_me by reconfiguring in the same conditions
29456 --file=FILE[:TEMPLATE]
29457 instantiate the configuration file FILE
29458 --header=FILE[:TEMPLATE]
29459 instantiate the configuration header FILE
29461 Configuration files:
29464 Configuration headers:
29467 Configuration commands:
29470 Report bugs to <dickey@invisible-island.net>."
29473 cat >>"$CONFIG_STATUS" <<EOF
29476 configured by $0, generated by GNU Autoconf 2.52.20230114,
29477 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29479 Copyright 2003-2022,2023 Thomas E. Dickey
29480 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
29481 Free Software Foundation, Inc.
29482 This config.status script is free software; the Free Software Foundation
29483 gives unlimited permission to copy, distribute and modify it."
29488 cat >>"$CONFIG_STATUS" <<\EOF
29489 # If no file are specified by the user, then we need to provide default
29490 # value. By we need to know if files were specified by the user.
29496 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29497 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29499 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
29503 *) # This is not an option, so the user has probably given explicit
29505 ac_need_defaults=false;;
29509 # Handling of the options.
29511 cat >>"$CONFIG_STATUS" <<EOF
29512 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29513 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
29514 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
29516 cat >>"$CONFIG_STATUS" <<\EOF
29517 --version | --vers* | -V )
29518 echo "$ac_cs_version"; exit 0 ;;
29520 # Conflict between --help and --header
29521 { { echo "$as_me:29521: error: ambiguous option: $1
29522 Try \`$0 --help' for more information." >&5
29523 echo "$as_me: error: ambiguous option: $1
29524 Try \`$0 --help' for more information." >&2;}
29525 { (exit 1); exit 1; }; };;
29526 --help | --hel | -h )
29527 echo "$ac_cs_usage"; exit 0 ;;
29528 --debug | --d* | -d )
29530 --file | --fil | --fi | --f )
29532 CONFIG_FILES="$CONFIG_FILES $1"
29533 ac_need_defaults=false;;
29534 --header | --heade | --head | --hea )
29536 CONFIG_HEADERS="$CONFIG_HEADERS $1"
29537 ac_need_defaults=false;;
29539 # This is an error.
29540 -*) { { echo "$as_me:29540: error: unrecognized option: $1
29541 Try \`$0 --help' for more information." >&5
29542 echo "$as_me: error: unrecognized option: $1
29543 Try \`$0 --help' for more information." >&2;}
29544 { (exit 1); exit 1; }; } ;;
29546 *) ac_config_targets="$ac_config_targets $1" ;;
29555 ## ----------------------- ##
29556 ## Running config.status. ##
29557 ## ----------------------- ##
29559 This file was extended by $as_me 2.52.20230114, executed with
29560 CONFIG_FILES = $CONFIG_FILES
29561 CONFIG_HEADERS = $CONFIG_HEADERS
29562 CONFIG_LINKS = $CONFIG_LINKS
29563 CONFIG_COMMANDS = $CONFIG_COMMANDS
29564 > "$ac_cs_invocation"
29565 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29570 cat >>"$CONFIG_STATUS" <<EOF
29572 # INIT-COMMANDS section.
29575 ### Special initialization commands, used to pass information from the
29576 ### configuration-run into config.status
29578 ALTERNATE_SYMS="$ALTERNATE_SYMS"
29580 CXX_NAME="$CXX_NAME"
29581 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
29582 DFT_LWR_MODEL="$DFT_LWR_MODEL"
29584 EXTRA_SUFFIX="$EXTRA_SUFFIX"
29585 FORM_NAME="$FORM_NAME"
29586 LDCONFIG="$LDCONFIG"
29587 LIBTOOL_VERSION="$LIBTOOL_VERSION"
29588 LIB_NAME="$LIB_NAME"
29589 LIB_PREFIX="$LIB_PREFIX"
29590 LIB_SUBSETS="$LIB_SUBSETS"
29591 LIB_SUFFIX="$LIB_SUFFIX"
29592 LIB_TRACING="$LIB_TRACING"
29594 MAKE_TERMINFO="$MAKE_TERMINFO"
29595 MANPAGE_RENAMES="$MANPAGE_RENAMES"
29596 MENU_NAME="$MENU_NAME"
29597 NCURSES_MAJOR="$NCURSES_MAJOR"
29598 NCURSES_MINOR="$NCURSES_MINOR"
29599 NCURSES_OSPEED="$NCURSES_OSPEED"
29600 NCURSES_PATCH="$NCURSES_PATCH"
29601 PANEL_NAME="$PANEL_NAME"
29602 SRC_SUBDIRS="$SRC_SUBDIRS"
29603 TERMINFO="$TERMINFO"
29604 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
29605 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
29606 TICS_NAME="$TICS_NAME"
29607 TICS_SUFFIX="$TICS_SUFFIX"
29608 TIC_PATH="$TIC_PATH"
29609 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
29610 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
29611 TINFO_NAME="$TINFO_NAME"
29612 TINFO_SUFFIX="$TINFO_SUFFIX"
29613 UNALTERED_SYMS="$UNALTERED_SYMS"
29614 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
29615 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
29616 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
29617 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
29618 WILDCARD_SYMS="$WILDCARD_SYMS"
29619 WITH_CURSES_H="$with_curses_h"
29620 WITH_ECHO="${enable_echo:=yes}"
29621 WITH_OVERWRITE="$with_overwrite"
29622 cf_LIST_MODELS="$cf_list_models"
29623 cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE
29624 cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD
29625 cf_cv_abi_default="$cf_cv_abi_default"
29626 cf_cv_abi_version="$cf_cv_abi_version"
29627 cf_cv_do_relink="$cf_cv_do_relink"
29628 cf_cv_do_reranlib="$cf_cv_do_reranlib"
29629 cf_cv_do_symlinks="$cf_cv_do_symlinks"
29630 cf_cv_enable_lp64="$cf_cv_enable_lp64"
29631 cf_cv_enable_opaque="$cf_cv_enable_opaque"
29632 cf_cv_make_PHONY="$cf_cv_make_PHONY"
29633 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
29634 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
29635 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
29636 cf_cv_rel_version="$cf_cv_rel_version"
29637 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
29638 cf_cv_shared_soname='$cf_cv_shared_soname'
29639 cf_cv_shlib_version="$cf_cv_shlib_version"
29640 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
29641 cf_cv_system_name="$cf_cv_system_name"
29642 cf_cv_term_driver="$with_term_driver"
29643 cf_with_ada="$cf_with_ada"
29644 cf_with_cxx_binding="$cf_with_cxx_binding"
29645 cf_with_db_install="$cf_with_db_install"
29646 cf_with_manpages="$cf_with_manpages"
29647 cf_with_tests="$cf_with_tests"
29651 with_shared_cxx="$with_shared_cxx"
29655 cat >>"$CONFIG_STATUS" <<\EOF
29656 for ac_config_target in $ac_config_targets
29658 case "$ac_config_target" in
29659 # Handling of arguments.
29660 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
29661 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
29662 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
29663 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
29664 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
29665 "man/man_db.renames" ) CONFIG_FILES="$CONFIG_FILES man/man_db.renames" ;;
29666 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
29667 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29668 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29669 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
29670 *) { { echo "$as_me:29670: error: invalid argument: $ac_config_target" >&5
29671 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29672 { (exit 1); exit 1; }; };;
29676 # If the user did not use the arguments to specify the items to instantiate,
29677 # then the envvar interface is used. Set only those that are not.
29678 # We use the long form for the default assignment because of an extremely
29679 # bizarre bug on SunOS 4.1.3.
29680 if "$ac_need_defaults"; then
29681 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29682 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29683 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29686 # Create a temporary directory, and hook for its removal unless debugging.
29689 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29690 trap '{ (exit 1); exit 1; }' 1 2 13 15
29693 # Create a (secure) tmp directory for tmp files.
29696 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
29697 test -n "$tmp" && test -d "$tmp"
29700 tmp=$TMPDIR/cs$$-$RANDOM
29701 (umask 077 && mkdir "$tmp")
29704 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
29705 { (exit 1); exit 1; }
29710 cat >>"$CONFIG_STATUS" <<EOF
29713 # CONFIG_FILES section.
29716 # No need to generate the scripts if there are no CONFIG_FILES.
29717 # This happens for instance when ./config.status config.h
29718 if test -n "\$CONFIG_FILES"; then
29719 # Protect against being on the right side of a sed subst in config.status.
29720 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29721 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >"\$tmp"/subs.sed <<\\CEOF
29722 s,@SHELL@,$SHELL,;t t
29723 s,@exec_prefix@,$exec_prefix,;t t
29724 s,@prefix@,$prefix,;t t
29725 s,@program_transform_name@,$program_transform_name,;t t
29726 s,@bindir@,$bindir,;t t
29727 s,@sbindir@,$sbindir,;t t
29728 s,@libexecdir@,$libexecdir,;t t
29729 s,@datarootdir@,$datarootdir,;t t
29730 s,@datadir@,$datadir,;t t
29731 s,@sysconfdir@,$sysconfdir,;t t
29732 s,@sharedstatedir@,$sharedstatedir,;t t
29733 s,@localstatedir@,$localstatedir,;t t
29734 s,@runstatedir@,$runstatedir,;t t
29735 s,@libdir@,$libdir,;t t
29736 s,@includedir@,$includedir,;t t
29737 s,@oldincludedir@,$oldincludedir,;t t
29738 s,@infodir@,$infodir,;t t
29739 s,@mandir@,$mandir,;t t
29740 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29741 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29742 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29743 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29744 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29745 s,@build_alias@,$build_alias,;t t
29746 s,@host_alias@,$host_alias,;t t
29747 s,@target_alias@,$target_alias,;t t
29748 s,@ECHO_C@,$ECHO_C,;t t
29749 s,@ECHO_N@,$ECHO_N,;t t
29750 s,@ECHO_T@,$ECHO_T,;t t
29751 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29752 s,@DEFS@,$DEFS,;t t
29753 s,@LIBS@,$LIBS,;t t
29754 s,@top_builddir@,$top_builddir,;t t
29755 s,@GREP@,$GREP,;t t
29756 s,@EGREP@,$EGREP,;t t
29757 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
29758 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
29759 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
29760 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
29761 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
29762 s,@cf_cv_abi_default@,$cf_cv_abi_default,;t t
29763 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
29764 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
29765 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
29766 s,@VERSION@,$VERSION,;t t
29767 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
29768 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
29769 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
29770 s,@PACKAGE@,$PACKAGE,;t t
29771 s,@build@,$build,;t t
29772 s,@build_cpu@,$build_cpu,;t t
29773 s,@build_vendor@,$build_vendor,;t t
29774 s,@build_os@,$build_os,;t t
29775 s,@host@,$host,;t t
29776 s,@host_cpu@,$host_cpu,;t t
29777 s,@host_vendor@,$host_vendor,;t t
29778 s,@host_os@,$host_os,;t t
29779 s,@target@,$target,;t t
29780 s,@target_cpu@,$target_cpu,;t t
29781 s,@target_vendor@,$target_vendor,;t t
29782 s,@target_os@,$target_os,;t t
29783 s,@FGREP@,$FGREP,;t t
29785 s,@CFLAGS@,$CFLAGS,;t t
29786 s,@LDFLAGS@,$LDFLAGS,;t t
29787 s,@CPPFLAGS@,$CPPFLAGS,;t t
29788 s,@ac_ct_CC@,$ac_ct_CC,;t t
29789 s,@EXEEXT@,$EXEEXT,;t t
29790 s,@OBJEXT@,$OBJEXT,;t t
29791 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
29793 s,@LDCONFIG@,$LDCONFIG,;t t
29795 s,@CXXFLAGS@,$CXXFLAGS,;t t
29796 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29798 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29799 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29800 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29801 s,@LINT@,$LINT,;t t
29802 s,@LINT_OPTS@,$LINT_OPTS,;t t
29803 s,@LINT_LIBS@,$LINT_LIBS,;t t
29804 s,@LN_S@,$LN_S,;t t
29805 s,@cf_config_suffix@,$cf_config_suffix,;t t
29806 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29807 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
29808 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
29809 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
29810 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
29811 s,@SET_MAKE@,$SET_MAKE,;t t
29812 s,@MAKE_NO_PHONY@,$MAKE_NO_PHONY,;t t
29813 s,@MAKE_PHONY@,$MAKE_PHONY,;t t
29814 s,@CTAGS@,$CTAGS,;t t
29815 s,@ETAGS@,$ETAGS,;t t
29816 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
29817 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
29818 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
29819 s,@RANLIB@,$RANLIB,;t t
29820 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29822 s,@ac_ct_LD@,$ac_ct_LD,;t t
29824 s,@ac_ct_AR@,$ac_ct_AR,;t t
29826 s,@ac_ct_NM@,$ac_ct_NM,;t t
29827 s,@ARFLAGS@,$ARFLAGS,;t t
29828 s,@DESTDIR@,$DESTDIR,;t t
29829 s,@BUILD_CC@,$BUILD_CC,;t t
29830 s,@BUILD_CPP@,$BUILD_CPP,;t t
29831 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
29832 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
29833 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
29834 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
29835 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
29836 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
29837 s,@cf_list_models@,$cf_list_models,;t t
29838 s,@ABI_VERSION@,$ABI_VERSION,;t t
29839 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
29840 s,@LIBTOOL@,$LIBTOOL,;t t
29841 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
29842 s,@LT_UNDEF@,$LT_UNDEF,;t t
29843 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
29844 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
29845 s,@LIB_CREATE@,$LIB_CREATE,;t t
29846 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
29847 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
29848 s,@LIB_PREP@,$LIB_PREP,;t t
29849 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
29850 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
29851 s,@LIB_LINK@,$LIB_LINK,;t t
29852 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
29853 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
29854 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
29855 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
29856 s,@TICS_NAME@,$TICS_NAME,;t t
29857 s,@TINFO_NAME@,$TINFO_NAME,;t t
29858 s,@LIB_NAME@,$LIB_NAME,;t t
29859 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
29860 s,@CC_G_OPT@,$CC_G_OPT,;t t
29861 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
29862 s,@LD_MODEL@,$LD_MODEL,;t t
29863 s,@shlibdir@,$shlibdir,;t t
29864 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
29865 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
29866 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
29867 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
29868 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
29869 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
29870 s,@LINK_PROGS@,$LINK_PROGS,;t t
29871 s,@LINK_TESTS@,$LINK_TESTS,;t t
29872 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
29873 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
29874 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
29875 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
29876 s,@RPATH_LIST@,$RPATH_LIST,;t t
29877 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
29878 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
29879 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
29880 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
29881 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
29882 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
29883 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
29884 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
29885 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
29887 s,@ac_ct_TIC@,$ac_ct_TIC,;t t
29888 s,@INFOCMP@,$INFOCMP,;t t
29889 s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t
29890 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
29891 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
29892 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
29893 s,@XTERM_KBS@,$XTERM_KBS,;t t
29894 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
29895 s,@TERMINFO@,$TERMINFO,;t t
29896 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
29897 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
29898 s,@TERMPATH@,$TERMPATH,;t t
29899 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
29900 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
29901 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
29902 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
29903 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
29904 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
29905 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
29906 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
29907 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
29908 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
29909 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
29910 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
29911 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
29912 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
29913 s,@RGB_PATH@,$RGB_PATH,;t t
29914 s,@no_x11_rgb@,$no_x11_rgb,;t t
29915 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
29916 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
29917 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
29918 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
29919 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
29920 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
29921 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
29922 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
29923 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
29924 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
29925 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
29926 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
29927 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
29928 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
29929 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
29930 s,@PTHREAD@,$PTHREAD,;t t
29931 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
29932 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
29933 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
29934 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
29935 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
29936 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
29937 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
29938 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
29939 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
29940 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
29941 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
29942 s,@NCURSES_WGETCH_EVENTS@,$NCURSES_WGETCH_EVENTS,;t t
29943 s,@EXP_WIN32_DRIVER@,$EXP_WIN32_DRIVER,;t t
29944 s,@INTERNALS_HDR@,$INTERNALS_HDR,;t t
29945 s,@ECHO_LT@,$ECHO_LT,;t t
29946 s,@ECHO_LD@,$ECHO_LD,;t t
29947 s,@RULE_CC@,$RULE_CC,;t t
29948 s,@SHOW_CC@,$SHOW_CC,;t t
29949 s,@ECHO_CC@,$ECHO_CC,;t t
29950 s,@ECHO_LINK@,$ECHO_LINK,;t t
29951 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
29952 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
29953 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
29954 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
29955 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
29956 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
29957 s,@ADAFLAGS@,$ADAFLAGS,;t t
29958 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
29959 s,@ADA_TRACE@,$ADA_TRACE,;t t
29960 s,@MATH_LIB@,$MATH_LIB,;t t
29961 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
29962 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
29963 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
29964 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
29965 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
29966 s,@TEST_LIBS@,$TEST_LIBS,;t t
29967 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
29968 s,@CXXCPP@,$CXXCPP,;t t
29969 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
29970 s,@CXX_AR@,$CXX_AR,;t t
29971 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
29972 s,@CXXLIBS@,$CXXLIBS,;t t
29973 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
29974 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
29975 s,@M4_exists@,$M4_exists,;t t
29976 s,@cf_ada_make@,$cf_ada_make,;t t
29977 s,@cf_ada_config@,$cf_ada_config,;t t
29978 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
29979 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
29980 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
29981 s,@cf_compile_generics@,$cf_compile_generics,;t t
29982 s,@cf_generic_objects@,$cf_generic_objects,;t t
29983 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
29984 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
29985 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
29986 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
29987 s,@USE_GNAT_MAKE_GPR@,$USE_GNAT_MAKE_GPR,;t t
29988 s,@USE_GNAT_GPRBUILD@,$USE_GNAT_GPRBUILD,;t t
29989 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
29990 s,@cf_ada_package@,$cf_ada_package,;t t
29991 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
29992 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
29993 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
29994 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
29995 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
29996 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
29997 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
29998 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
29999 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
30000 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
30001 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
30002 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
30003 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
30004 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
30005 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
30006 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
30007 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
30008 s,@TICS_LIBS@,$TICS_LIBS,;t t
30009 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
30010 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
30011 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
30012 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
30013 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
30014 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
30015 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
30016 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
30017 s,@includesubdir@,$includesubdir,;t t
30018 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
30019 s,@TICS_LIST@,$TICS_LIST,;t t
30020 s,@TINFO_LIST@,$TINFO_LIST,;t t
30021 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
30022 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
30023 s,@FORM_NAME@,$FORM_NAME,;t t
30024 s,@MENU_NAME@,$MENU_NAME,;t t
30025 s,@PANEL_NAME@,$PANEL_NAME,;t t
30026 s,@CXX_NAME@,$CXX_NAME,;t t
30027 s,@TEST_ARGS@,$TEST_ARGS,;t t
30028 s,@TEST_DEPS@,$TEST_DEPS,;t t
30029 s,@TEST_ARG2@,$TEST_ARG2,;t t
30030 s,@TEST_DEP2@,$TEST_DEP2,;t t
30031 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
30032 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
30033 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
30034 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
30035 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
30036 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
30037 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
30038 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
30039 s,@cross_compiling@,$cross_compiling,;t t
30040 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
30041 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
30042 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
30043 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
30044 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
30045 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
30046 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
30047 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
30048 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
30049 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
30050 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
30051 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
30056 cat >>"$CONFIG_STATUS" <<\EOF
30057 # Split the substitutions into bite-sized pieces for seds with
30058 # small command number limits, like on Digital OSF/1 and HP-UX.
30059 ac_max_sed_lines=48
30060 ac_sed_frag=1 # Number of current file.
30061 ac_beg=1 # First line for current file.
30062 ac_end=$ac_max_sed_lines # Line after last line for current file.
30065 while "$ac_more_lines"; do
30066 if test "$ac_beg" -gt 1; then
30067 sed "1,${ac_beg}d; ${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
30069 sed "${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
30071 if test ! -s "$tmp"/subs.frag; then
30072 ac_more_lines=false
30074 # The purpose of the label and of the branching condition is to
30075 # speed up the sed processing (if there are no `@' at all, there
30076 # is no need to browse any of the substitutions).
30077 # These are the two extra sed commands mentioned above.
30079 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed
30080 # It is possible to make a multiline substitution using escaped newlines.
30081 # Ensure that we do not split the substitution between script fragments.
30083 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
30084 sed "1,${ac_BEG}d; ${ac_END}p; q" "$tmp"/subs.sed >"$tmp"/subs.next
30085 if test -s "$tmp"/subs.next; then
30086 grep '^s,@[^@,][^@,]*@,.*\\$' "$tmp"/subs.next >"$tmp"/subs.edit
30087 if test ! -s "$tmp"/subs.edit; then
30088 grep "^s,@[^@,][^@,]*@,.*,;t t$" "$tmp"/subs.next >"$tmp"/subs.edit
30089 if test ! -s "$tmp"/subs.edit; then
30090 if test "$ac_beg" -gt 1; then
30091 ac_end=`expr "$ac_end" - 1`
30098 if test -z "$ac_sed_cmds"; then
30099 ac_sed_cmds="sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
30101 ac_sed_cmds="$ac_sed_cmds | sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
30103 ac_sed_frag=`expr "$ac_sed_frag" + 1`
30105 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
30108 if test -z "$ac_sed_cmds"; then
30111 fi # test -n "$CONFIG_FILES"
30114 cat >>"$CONFIG_STATUS" <<\EOF
30115 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30116 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30118 - | *:- | *:-:* ) # input from stdin
30120 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30121 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30122 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30123 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30124 * ) ac_file_in=$ac_file.in ;;
30127 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30128 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30129 X"$ac_file" : 'X\(//\)[^/]' \| \
30130 X"$ac_file" : 'X\(//\)$' \| \
30131 X"$ac_file" : 'X\(/\)' \| \
30132 . : '\(.\)' 2>/dev/null ||
30134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30136 /^X\(\/\/\)$/{ s//\1/; q; }
30137 /^X\(\/\).*/{ s//\1/; q; }
30139 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
30140 { case "$ac_dir" in
30141 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30145 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30146 case $as_mkdir_dir in
30147 # Skip DOS drivespec
30148 ?:) as_incr_dir=$as_mkdir_dir ;;
30150 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30151 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
30156 ac_dir_suffix="/`echo "$ac_dir"|sed 's,^\./,,'`"
30157 # A "../" for each directory in $ac_dir_suffix.
30158 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
30160 ac_dir_suffix= ac_dots=
30165 if test -z "$ac_dots"; then
30168 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
30170 [\\/]* | ?:[\\/]* )
30171 ac_srcdir="$srcdir$ac_dir_suffix";
30172 ac_top_srcdir="$srcdir" ;;
30173 *) # Relative path.
30174 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
30175 ac_top_srcdir="$ac_dots$srcdir" ;;
30179 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30180 *) ac_INSTALL=$ac_dots$INSTALL ;;
30183 if test x"$ac_file" != x-; then
30184 { echo "$as_me:30184: creating $ac_file" >&5
30185 echo "$as_me: creating $ac_file" >&6;}
30188 # Let's still pretend it is `configure' which instantiates (i.e., don't
30189 # use $as_me), people would be surprised to read:
30190 # /* config.h. Generated automatically by config.status. */
30191 configure_input="Generated automatically from `echo $ac_file_in |
30192 sed 's,.*/,,'` by configure."
30194 # First look for the input files in the build tree, otherwise in the
30196 ac_file_inputs=`IFS=:
30197 for f in $ac_file_in; do
30199 -) echo "$tmp"/stdin ;;
30201 # Absolute (can't be DOS-style, as IFS=:)
30202 test -f "$f" || { { echo "$as_me:30202: error: cannot find input file: $f" >&5
30203 echo "$as_me: error: cannot find input file: $f" >&2;}
30204 { (exit 1); exit 1; }; }
30207 if test -f "$f"; then
30210 elif test -f "$srcdir/$f"; then
30215 { { echo "$as_me:30215: error: cannot find input file: $f" >&5
30216 echo "$as_me: error: cannot find input file: $f" >&2;}
30217 { (exit 1); exit 1; }; }
30220 done` || { (exit 1); exit 1; }
30222 cat >>"$CONFIG_STATUS" <<\EOF
30223 ac_warn_datarootdir=no
30224 if test x"$ac_file" != x-; then
30225 for ac_item in $ac_file_inputs
30227 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
30228 if test -n "$ac_seen"; then
30229 ac_used=`grep '@datarootdir@' "$ac_item"`
30230 if test -z "$ac_used"; then
30231 { echo "$as_me:30231: WARNING: datarootdir was used implicitly but not set:
30233 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
30235 ac_warn_datarootdir=yes
30238 ac_seen=`grep '${datarootdir}' "$ac_item"`
30239 if test -n "$ac_seen"; then
30240 { echo "$as_me:30240: WARNING: datarootdir was used explicitly but not set:
30242 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
30244 ac_warn_datarootdir=yes
30249 if test "x$ac_warn_datarootdir" = xyes; then
30250 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
30254 cat >>"$CONFIG_STATUS" <<EOF
30258 cat >>"$CONFIG_STATUS" <<\EOF
30260 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30261 s,@configure_input@,$configure_input,;t t
30262 s,@srcdir@,$ac_srcdir,;t t
30263 s,@top_srcdir@,$ac_top_srcdir,;t t
30264 s,@INSTALL@,$ac_INSTALL,;t t
30265 " $ac_file_inputs | (eval "$ac_sed_cmds") >"$tmp"/out
30268 : "${FGREP:=grep -F}"
30269 : "${EGREP:=grep -E}"
30270 cat >>"$CONFIG_STATUS" <<EOF
30271 : "\${FGREP:=$FGREP}"
30272 : "\${EGREP:=$EGREP}"
30274 cat >>"$CONFIG_STATUS" <<\EOF
30275 if test x"$ac_file" != x-; then
30276 cp "$tmp/out" "$ac_file"
30278 for ac_name in prefix exec_prefix datarootdir
30280 ac_seen=`$FGREP -n '${'$ac_name'[:=].*}' "$ac_file"`
30281 if test -n "$ac_seen"; then
30282 ac_init=`$EGREP '[ ]*'$ac_name'[ ]*=' "$ac_file"`
30283 if test -z "$ac_init"; then
30284 ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'`
30285 { echo "$as_me:30285: WARNING: Variable $ac_name is used but was not set:
30287 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
30292 $EGREP -n '@[a-z_][a-z_0-9]+@' "$ac_file" >"$tmp"/out
30293 $EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out
30294 if test -s "$tmp"/out; then
30295 ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out`
30296 { echo "$as_me:30296: WARNING: Some variables may not be substituted:
30298 echo "$as_me: WARNING: Some variables may not be substituted:
30308 cat >>"$CONFIG_STATUS" <<\EOF
30311 # CONFIG_HEADER section.
30314 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30315 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30317 # ac_d sets the value in "#define NAME VALUE" lines.
30318 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30319 ac_dB='[ ].*$,\1#\2'
30322 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
30323 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30324 ac_iB='\([ ]\),\1#\2define\3'
30327 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30328 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30329 ac_uB='$,\1#\2define\3'
30333 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30334 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30336 - | *:- | *:-:* ) # input from stdin
30338 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30339 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30340 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30341 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30342 * ) ac_file_in=$ac_file.in ;;
30345 test x"$ac_file" != x- && { echo "$as_me:30345: creating $ac_file" >&5
30346 echo "$as_me: creating $ac_file" >&6;}
30348 # First look for the input files in the build tree, otherwise in the
30350 ac_file_inputs=`IFS=:
30351 for f in $ac_file_in; do
30353 -) echo "$tmp"/stdin ;;
30355 # Absolute (can't be DOS-style, as IFS=:)
30356 test -f "$f" || { { echo "$as_me:30356: error: cannot find input file: $f" >&5
30357 echo "$as_me: error: cannot find input file: $f" >&2;}
30358 { (exit 1); exit 1; }; }
30361 if test -f "$f"; then
30364 elif test -f "$srcdir/$f"; then
30369 { { echo "$as_me:30369: error: cannot find input file: $f" >&5
30370 echo "$as_me: error: cannot find input file: $f" >&2;}
30371 { (exit 1); exit 1; }; }
30374 done` || { (exit 1); exit 1; }
30375 # Remove the trailing spaces.
30376 sed 's/[ ]*$//' $ac_file_inputs >"$tmp"/in
30380 # Transform confdefs.h into a list of #define's. We won't use it as a sed
30381 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
30382 # be either 'cat' or 'sort'.
30383 cat confdefs.h | uniq >conftest.vals
30385 # Break up conftest.vals because some shells have a limit on
30386 # the size of here documents, and old seds have small limits too.
30388 rm -f conftest.tail
30389 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
30390 while grep . conftest.vals >/dev/null
30392 # Write chunks of a limited-size here document to conftest.frag.
30393 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS"
30394 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
30395 echo 'CEOF' >> "$CONFIG_STATUS"
30396 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail
30397 rm -f conftest.vals
30398 mv conftest.tail conftest.vals
30400 rm -f conftest.vals
30402 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
30404 echo ' cat >> conftest.edit <<CEOF
30405 /@DEFS@/r conftest.frag
30408 sed -f conftest.edit "$tmp"/in > "$tmp"/out
30410 mv "$tmp"/out "$tmp"/in
30411 rm -f conftest.edit conftest.frag
30412 ' >> "$CONFIG_STATUS"
30414 cat >>"$CONFIG_STATUS" <<\EOF
30415 # Let's still pretend it is `configure' which instantiates (i.e., don't
30416 # use $as_me), people would be surprised to read:
30417 # /* config.h. Generated automatically by config.status. */
30418 if test x"$ac_file" = x-; then
30419 echo "/* Generated automatically by configure. */" >"$tmp"/config.h
30421 echo "/* $ac_file. Generated automatically by configure. */" >"$tmp"/config.h
30423 cat "$tmp"/in >>"$tmp"/config.h
30425 if test x"$ac_file" != x-; then
30426 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
30427 { echo "$as_me:30427: $ac_file is unchanged" >&5
30428 echo "$as_me: $ac_file is unchanged" >&6;}
30430 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30431 X"$ac_file" : 'X\(//\)[^/]' \| \
30432 X"$ac_file" : 'X\(//\)$' \| \
30433 X"$ac_file" : 'X\(/\)' \| \
30434 . : '\(.\)' 2>/dev/null ||
30436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30438 /^X\(\/\/\)$/{ s//\1/; q; }
30439 /^X\(\/\).*/{ s//\1/; q; }
30441 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
30442 { case "$ac_dir" in
30443 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30447 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30448 case $as_mkdir_dir in
30449 # Skip DOS drivespec
30450 ?:) as_incr_dir=$as_mkdir_dir ;;
30452 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30453 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
30460 mv "$tmp/config.h" "$ac_file"
30463 cat "$tmp"/config.h
30464 rm -f "$tmp"/config.h
30468 cat >>"$CONFIG_STATUS" <<\EOF
30470 # CONFIG_COMMANDS section.
30472 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30473 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30474 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30478 if test "x$cf_with_tests" != xno ; then
30482 if test ! -d "$srcdir/$cf_dir" ; then
30484 elif test -f "$srcdir/$cf_dir/programs" ; then
30485 $AWK -f "$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile
30491 cf_prefix=$LIB_PREFIX
30493 case "$cf_cv_shlib_version" in
30494 (cygdll|msysdll|mingw|msvcdll)
30495 TINFO_NAME=$TINFO_ARG_SUFFIX
30500 if test -n "$TINFO_SUFFIX" ; then
30501 case "$TINFO_SUFFIX" in
30503 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
30504 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30507 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
30508 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^t'$EXTRA_SUFFIX'//'`
30511 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
30512 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^w'$EXTRA_SUFFIX'//'`
30517 for cf_dir in $SRC_SUBDIRS
30519 if test ! -d "$srcdir/$cf_dir" ; then
30521 elif test -f "$srcdir/$cf_dir/modules" ; then
30526 if test -n "${cf_cv_abi_default}" && test "x${cf_cv_abi_default}" != "x5"
30528 cf_awk_program="$cf_awk_program\
30529 /deprecated in ABI${cf_cv_abi_default}/ { next; }\
30530 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_default}\"); }\
30534 if test "x$WILDCARD_SYMS" = xno
30536 cf_awk_program="$cf_awk_program\
30537 /[ ]_\\*;/ { skip=1; next; }\
30541 if test "x$cf_awk_program" != "x"
30543 cat >>$cf_dir/Makefile <<CF_EOF
30545 # Generated by CF_LIB_RULES
30546 resulting.map: $UNALTERED_SYMS
30547 $AWK 'BEGIN { skip = 1; last=""; } \
30549 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
30550 skip = 0; last = \$\$0; } \
30551 END { print last; }' < "$UNALTERED_SYMS" >\$@
30554 rm -f resulting.map
30558 for cf_item in $cf_LIST_MODELS
30564 cf_depsuf=$cf_suffix
30567 case "$cf_cv_system_name" in
30575 cf_depsuf=$cf_suffix
30578 case "$cf_cv_system_name" in
30586 cf_depsuf=$cf_suffix
30589 case "$cf_cv_system_name" in
30592 cf_depsuf=$cf_suffix
30596 cf_depsuf='.dll.lib'
30598 (cygwin*|msys*|mingw*)
30604 cf_depsuf=$cf_suffix
30610 cf_depsuf=$cf_suffix
30614 cf_depsuf=$cf_suffix
30620 cf_depsuf=$cf_suffix
30633 cf_depsuf=$cf_suffix
30636 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30638 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30639 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30642 if test "$cf_dir" = "c++"
30645 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30647 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30651 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30653 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30656 test -z "$cf_libname" && cf_libname="$cf_dir"
30657 if test "$cf_item" = shared ; then
30658 if test -n "${LIB_SUFFIX}"
30660 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30662 cf_shared_suffix="$cf_suffix"
30664 if test "$cf_cv_do_symlinks" = yes ; then
30667 case "$cf_cv_shlib_version" in
30669 cf_version_name=REL_VERSION
30672 cf_version_name=ABI_VERSION
30676 if test -n "$cf_version_name"
30678 case "$cf_cv_system_name" in
30681 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
30684 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
30688 if test -n "${USE_LIB_SUFFIX}"
30690 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30692 cf_shared_suffix="$cf_suffix"
30695 # cygwin needs import library, and has unique naming convention
30696 # use autodetected ${cf_prefix} for import lib and static lib, but
30697 # use 'cyg' prefix for shared lib.
30698 case "$cf_cv_shlib_version" in
30700 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30701 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
30704 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30705 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
30708 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30709 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
30712 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30713 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
30719 if test -n "$cf_add_lib"
30721 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30725 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
30726 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30729 if test "$cf_dir" = ncurses ; then
30730 cf_subsets="$LIB_SUBSETS"
30731 cf_r_parts="$cf_subsets"
30732 cf_liblist="$Libs_To_Make"
30734 while test -n "$cf_r_parts"
30736 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
30737 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
30738 if test "$cf_l_parts" != "$cf_r_parts" ; then
30740 case "$cf_l_parts" in
30742 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
30745 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
30751 if test -n "$cf_add_lib"; then
30752 Libs_To_Make="$cf_add_lib $Libs_To_Make"
30759 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
30762 if test "$cf_dir" = c++; then
30763 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
30765 for cf_item in $Libs_To_Make
30771 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
30774 for cf_test in $cf_list
30776 if test "$cf_test" = "$cf_item"
30778 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
30783 test -n "$cf_item" && cf_list="$cf_list $cf_item"
30785 Libs_To_Make="$cf_list"
30789 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
30790 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
30791 "$cf_dir/Makefile" >$cf_dir/Makefile.out
30792 mv "$cf_dir/Makefile.out" "$cf_dir/Makefile"
30794 $AWK -f "$srcdir/mk-0th.awk" \
30795 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
30796 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30798 for cf_subset in $cf_subsets
30801 for cf_item in $cf_LIST_MODELS
30804 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
30806 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30809 if test "$CXX_MODEL" = SHARED; then
30810 case "$cf_cv_shlib_version" in
30811 (cygdll|msysdll|mingw|msvcdll)
30812 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
30814 echo "${as_me:-configure}:30814: testing overriding CXX_MODEL to SHARED ..." 1>&5
30816 with_shared_cxx=yes
30819 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
30827 cf_depsuf=$cf_suffix
30830 case "$cf_cv_system_name" in
30838 cf_depsuf=$cf_suffix
30841 case "$cf_cv_system_name" in
30849 cf_depsuf=$cf_suffix
30852 case "$cf_cv_system_name" in
30855 cf_depsuf=$cf_suffix
30859 cf_depsuf='.dll.lib'
30861 (cygwin*|msys*|mingw*)
30867 cf_depsuf=$cf_suffix
30873 cf_depsuf=$cf_suffix
30877 cf_depsuf=$cf_suffix
30883 cf_depsuf=$cf_suffix
30896 cf_depsuf=$cf_suffix
30899 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30901 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30902 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30906 (libtool) cf_subdir='obj_lo' ;;
30907 (normal) cf_subdir='objects' ;;
30908 (debug) cf_subdir='obj_g' ;;
30909 (profile) cf_subdir='obj_p' ;;
30911 case "$cf_cv_system_name" in
30913 cf_subdir='objects' ;;
30915 cf_subdir='obj_s' ;;
30919 # Test for case where we build libtinfo with a different name.
30921 if test "$cf_dir" = ncurses ; then
30922 case "$cf_subset" in
30924 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30927 cf_libname=$TINFO_LIB_SUFFIX
30930 cf_libname=$TICS_LIB_SUFFIX
30933 elif test "$cf_dir" = c++ ; then
30935 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30937 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30939 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30942 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30944 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30946 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30948 if test -n "${USE_ARG_SUFFIX}" ; then
30949 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
30950 cf_suffix=`echo "$cf_suffix" |sed -e "s%^${USE_LIB_SUFFIX}%%"`
30953 # These dependencies really are for development, not
30954 # builds, but they are useful in porting, too.
30955 cf_depend="../include/ncurses_cfg.h"
30956 if test "$srcdir" = "."; then
30959 cf_reldir="\${srcdir}"
30962 if test -f "$srcdir/$cf_dir/$cf_dir.priv.h" ; then
30963 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
30964 elif test -f "$srcdir/$cf_dir/curses.priv.h" ; then
30965 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
30969 old_cf_suffix="$cf_suffix"
30970 if test "$cf_cv_shlib_version_infix" = yes ; then
30971 if test -n "$USE_LIB_SUFFIX" ; then
30972 case "$USE_LIB_SUFFIX" in
30974 cf_libname=`echo "$cf_libname" | sed 's/tw'$EXTRA_SUFFIX'$//'`
30975 cf_suffix=`echo "$cf_suffix" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30976 cf_dir_suffix=tw$EXTRA_SUFFIX
30979 cf_libname=`echo "$cf_libname" | sed 's/t'$EXTRA_SUFFIX'$//'`
30980 cf_suffix=`echo "$cf_suffix" | sed 's/^t'$EXTRA_SUFFIX'//'`
30981 cf_dir_suffix=t$EXTRA_SUFFIX
30984 cf_libname=`echo "$cf_libname" | sed 's/w'$EXTRA_SUFFIX'$//'`
30985 cf_suffix=`echo "$cf_suffix" | sed 's/^w'$EXTRA_SUFFIX'//'`
30986 cf_dir_suffix=w$EXTRA_SUFFIX
30989 cf_libname=`echo "$cf_libname" | sed 's/'$EXTRA_SUFFIX'$//'`
30990 cf_suffix=`echo "$cf_suffix" | sed 's/^'$EXTRA_SUFFIX'//'`
30991 cf_dir_suffix=$EXTRA_SUFFIX
30997 $AWK -f "$srcdir/mk-1st.awk" \
30998 name=${cf_libname}${cf_dir_suffix} \
30999 traces=$LIB_TRACING \
31001 CXX_MODEL=$CXX_MODEL \
31002 LIB_SUFFIX=$LIB_SUFFIX \
31003 USE_LIB_SUFFIX=$USE_LIB_SUFFIX \
31004 make_phony="${cf_cv_make_PHONY:-no}" \
31006 prefix=$cf_prefix \
31007 suffix=$cf_suffix \
31008 subset=$cf_subset \
31009 driver=$cf_cv_term_driver \
31011 TermlibRoot=$TINFO_NAME \
31012 TermlibSuffix=$TINFO_SUFFIX \
31013 ShlibVer=$cf_cv_shlib_version \
31014 ShlibVerInfix=$cf_cv_shlib_version_infix \
31015 ReLink=${cf_cv_do_relink:-no} \
31016 ReRanlib=${cf_cv_do_reranlib:-yes} \
31017 DoLinks=$cf_cv_do_symlinks \
31018 rmSoLocs=$cf_cv_rm_so_locs \
31019 ldconfig="$LDCONFIG" \
31020 overwrite=$WITH_OVERWRITE \
31021 depend="$cf_depend" \
31023 libtool_version="$LIBTOOL_VERSION" \
31024 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
31026 cf_suffix="$old_cf_suffix"
31028 for cf_subdir2 in $cf_subdirs lib
31030 test "$cf_subdir" = "$cf_subdir2" && break
31032 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
31033 $AWK -f "$srcdir/mk-2nd.awk" \
31035 traces=$LIB_TRACING \
31038 subset=$cf_subset \
31041 crenames=$cf_cv_prog_CC_c_o \
31042 cxxrenames=$cf_cv_prog_CXX_c_o \
31043 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
31044 cf_subdirs="$cf_subdirs $cf_subdir"
31049 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >>Makefile
31053 echo '# generated by CF_LIB_RULES' >> Makefile
31055 if test "x$cf_cv_make_PHONY" = xyes ; then
31056 cat >> Makefile <<-CF_EOF
31060 .PHONY : install.includes
31061 .PHONY : uninstall.includes
31062 .PHONY : install.libs
31063 .PHONY : uninstall.libs
31067 for cf_dir in $SRC_SUBDIRS
31069 if test ! -d "$srcdir/$cf_dir" ; then
31073 if test -f "$cf_dir/Makefile" ; then
31076 echo 'libs \' >> Makefile
31077 echo 'install.libs \' >> Makefile
31078 echo 'uninstall.libs ::' >> Makefile
31079 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >> Makefile
31084 if test -f "$srcdir/$cf_dir/modules" ; then
31086 if test "x$cf_cv_make_PHONY" = xyes ; then
31087 cat >> Makefile <<-CF_EOF
31089 .PHONY : install.$cf_dir
31090 .PHONY : uninstall.$cf_dir
31095 if test -f "$srcdir/$cf_dir/headers" ; then
31096 cat >> Makefile <<CF_EOF
31097 install.includes \\
31098 uninstall.includes \\
31102 cat >> Makefile <<CF_EOF
31109 uninstall.$cf_dir ::
31110 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
31112 elif test -f "$srcdir/$cf_dir/headers" ; then
31113 cat >> Makefile <<CF_EOF
31118 install.includes \\
31119 uninstall.includes ::
31120 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
31125 if test "x$cf_cv_make_PHONY" = xyes ; then
31126 cat >> Makefile <<-CF_EOF
31128 .PHONY : install.data
31129 .PHONY : uninstall.data
31133 if test "x$cf_with_db_install" = xyes; then
31134 cat >> Makefile <<CF_EOF
31136 install.libs uninstall.libs \\
31137 install.data uninstall.data ::
31138 $MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
31141 cat >> Makefile <<CF_EOF
31143 install.libs uninstall.libs ::
31144 ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
31148 if test "x$cf_with_manpages" = xyes; then
31150 if test "x$cf_cv_make_PHONY" = xyes ; then
31151 cat >> Makefile <<-CF_EOF
31153 .PHONY : install.man
31154 .PHONY : uninstall.man
31158 cat >> Makefile <<CF_EOF
31162 ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ )
31166 cat >> Makefile <<CF_EOF
31169 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
31170 rm -f headers.sh headers.sed mk_shared_lib.sh
31171 rm -f edit_man.* man_alias.*
31172 rm -rf \${DIRS_TO_MAKE}
31175 # Special case: tack's manpage lives in its own directory.
31176 if test "x$cf_with_manpages" = xyes; then
31177 if test "x$cf_with_tack" = "xyes"; then
31178 cat >> Makefile <<CF_EOF
31182 ( cd tack && \${MAKE} \${TOP_MFLAGS} \$@ )
31187 rm -f headers.sed headers.sh
31189 echo creating headers.sh
31190 cat >headers.sh <<CF_EOF
31192 # This shell script is generated by the 'configure' script. It is invoked in a
31193 # subdirectory of the build tree. It generates a sed-script in the parent
31194 # directory that is used to adjust includes for header files that reside in a
31195 # subdirectory of /usr/include, etc.
31197 while test \$# != 3
31199 PRG="\$PRG \$1"; shift
31204 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
31205 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
31206 echo installing \$SRC in \$DST
31209 if test "$WITH_CURSES_H" = yes; then
31210 cat >>headers.sh <<CF_EOF
31213 END=\`basename \$DST\`
31214 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
31216 NAME=\`basename \$i\`
31217 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
31221 echo "" >> \$TMPSED
31227 cat >>headers.sh <<CF_EOF
31230 END=\`basename \$DST\`
31231 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
31233 NAME=\`basename \$i\`
31234 if test "\$NAME" = "curses.h"
31236 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
31239 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
31243 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
31248 cat >>headers.sh <<CF_EOF
31250 sed -f \$TMPSED \$SRC > \$TMPSRC
31251 NAME=\`basename \$SRC\`
31253 if test "$WITH_CURSES_H" != yes; then
31254 cat >>headers.sh <<CF_EOF
31255 test "\$NAME" = "curses.h" && NAME=ncurses.h
31258 cat >>headers.sh <<CF_EOF
31259 # Just in case someone gzip'd manpages, remove the conflicting copy.
31260 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
31262 eval \$PRG \$TMPSRC \$DST/\$NAME
31263 rm -f \$TMPSRC \$TMPSED
31266 chmod 0755 headers.sh
31268 for cf_dir in $SRC_SUBDIRS
31270 if test ! -d "$srcdir/$cf_dir" ; then
31274 if test -f "$srcdir/$cf_dir/headers" ; then
31275 $AWK -f "$srcdir/mk-hdr.awk" \
31276 subset="$LIB_SUBSETS" \
31277 compat="$WITH_CURSES_H" \
31278 "$srcdir/$cf_dir/headers" >>$cf_dir/Makefile
31281 if test -f "$srcdir/$cf_dir/modules" ; then
31282 if test "$cf_dir" != "c++" ; then
31283 if test "x$cf_cv_make_PHONY" = xyes ; then
31284 cat >> $cf_dir/Makefile <<-CF_EOF
31290 cat >>$cf_dir/Makefile <<"CF_EOF"
31291 depend : ${AUTO_SRC}
31292 makedepend -- ${CPPFLAGS} -- ${C_SRC}
31294 # DO NOT DELETE THIS LINE -- make depend depends on it.
31300 if test "$MANPAGE_RENAMES" != no ; then
31301 # Construct a sed-script to perform renaming within man-pages
31302 test -n "$verbose" && echo "creating edit_man.sed"
31303 test ! -d man && mkdir man
31304 FGREP="${FGREP-grep -F}" $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
31307 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
31308 if test -z "$USE_OLD_MAKERULES" ; then
31309 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile
31317 cat >>"$CONFIG_STATUS" <<\EOF
31319 { (exit 0); exit 0; }
31321 chmod +x "$CONFIG_STATUS"
31322 ac_clean_files=$ac_clean_files_save
31324 # configure is writing to config.log, and then calls config.status.
31325 # config.status does its own redirection, appending to config.log.
31326 # Unfortunately, on DOS this fails, as config.log is still kept open
31327 # by configure, so config.status won't be able to write to it; its
31328 # output is simply discarded. So we exec the FD to /dev/null,
31329 # effectively closing config.log, so it can be properly (re)opened and
31330 # appended to by config.status. When coming back to configure, we
31331 # need to make the FD available again.
31332 if test "$no_create" != yes; then
31335 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
31337 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31338 # would make configure fail if this is the last instruction.
31339 "$ac_cs_success" || { (exit 1); exit 1; }
31341 ${MAKE:-make} preinstall