2 # From configure.in Revision: 1.274 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20011227.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
110 # Initialize some variables set by options.
112 ac_init_version=false
113 # The variables have the same names as the options, with
114 # dashes changed to underlines.
122 program_transform_name=s,x,x,
130 # Installation directory options.
131 # These are left unexpanded so users can "make install exec_prefix=/foo"
132 # and all the variables that are supposed to be based on exec_prefix
133 # by default will actually change.
134 # Use braces instead of parens because sh, perl, etc. also accept them.
135 bindir='${exec_prefix}/bin'
136 sbindir='${exec_prefix}/sbin'
137 libexecdir='${exec_prefix}/libexec'
138 datadir='${prefix}/share'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${prefix}/info'
146 mandir='${prefix}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build_alias ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build_alias=$ac_optarg ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file=$ac_optarg ;;
189 cache_file=config.cache ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir=$ac_optarg ;;
197 -disable-* | --disable-*)
198 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
199 # Reject names that are not valid shell variable names.
200 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
201 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
202 { (exit 1); exit 1; }; }
203 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
204 eval "enable_$ac_feature=no" ;;
206 -enable-* | --enable-*)
207 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
208 # Reject names that are not valid shell variable names.
209 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
210 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
211 { (exit 1); exit 1; }; }
212 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
214 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
217 eval "enable_$ac_feature='$ac_optarg'" ;;
219 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
220 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
221 | --exec | --exe | --ex)
222 ac_prev=exec_prefix ;;
223 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
224 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
225 | --exec=* | --exe=* | --ex=*)
226 exec_prefix=$ac_optarg ;;
228 -gas | --gas | --ga | --g)
229 # Obsolete; use --with-gas.
232 -help | --help | --hel | --he | -h)
234 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
235 ac_init_help=recursive ;;
236 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
237 ac_init_help=short ;;
239 -host | --host | --hos | --ho)
240 ac_prev=host_alias ;;
241 -host=* | --host=* | --hos=* | --ho=*)
242 host_alias=$ac_optarg ;;
244 -includedir | --includedir | --includedi | --included | --include \
245 | --includ | --inclu | --incl | --inc)
246 ac_prev=includedir ;;
247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 | --includ=* | --inclu=* | --incl=* | --inc=*)
249 includedir=$ac_optarg ;;
251 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 infodir=$ac_optarg ;;
256 -libdir | --libdir | --libdi | --libd)
258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 | --libexe | --libex | --libe)
263 ac_prev=libexecdir ;;
264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 | --libexe=* | --libex=* | --libe=*)
266 libexecdir=$ac_optarg ;;
268 -localstatedir | --localstatedir | --localstatedi | --localstated \
269 | --localstate | --localstat | --localsta | --localst \
270 | --locals | --local | --loca | --loc | --lo)
271 ac_prev=localstatedir ;;
272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 localstatedir=$ac_optarg ;;
277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283 # Obsolete; use --without-fp.
286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 | --oldin | --oldi | --old | --ol | --o)
297 ac_prev=oldincludedir ;;
298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 oldincludedir=$ac_optarg ;;
303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 | --program-pre | --program-pr | --program-p)
310 ac_prev=program_prefix ;;
311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 program_prefix=$ac_optarg ;;
315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 | --program-suf | --program-su | --program-s)
317 ac_prev=program_suffix ;;
318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 program_suffix=$ac_optarg ;;
322 -program-transform-name | --program-transform-name \
323 | --program-transform-nam | --program-transform-na \
324 | --program-transform-n | --program-transform- \
325 | --program-transform | --program-transfor \
326 | --program-transfo | --program-transf \
327 | --program-trans | --program-tran \
328 | --progr-tra | --program-tr | --program-t)
329 ac_prev=program_transform_name ;;
330 -program-transform-name=* | --program-transform-name=* \
331 | --program-transform-nam=* | --program-transform-na=* \
332 | --program-transform-n=* | --program-transform-=* \
333 | --program-transform=* | --program-transfor=* \
334 | --program-transfo=* | --program-transf=* \
335 | --program-trans=* | --program-tran=* \
336 | --progr-tra=* | --program-tr=* | --program-t=*)
337 program_transform_name=$ac_optarg ;;
339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 | -silent | --silent | --silen | --sile | --sil)
343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 sbindir=$ac_optarg ;;
349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 | --sharedst | --shareds | --shared | --share | --shar \
353 ac_prev=sharedstatedir ;;
354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 sharedstatedir=$ac_optarg ;;
360 -site | --site | --sit)
362 -site=* | --site=* | --sit=*)
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir=$ac_optarg ;;
377 -target | --target | --targe | --targ | --tar | --ta | --t)
378 ac_prev=target_alias ;;
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target_alias=$ac_optarg ;;
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 -version | --version | --versio | --versi | --vers | -V)
389 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
390 # Reject names that are not valid shell variable names.
391 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392 { echo "$as_me: error: invalid package name: $ac_package" >&2
393 { (exit 1); exit 1; }; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399 eval "with_$ac_package='$ac_optarg'" ;;
401 -without-* | --without-*)
402 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid package name: $ac_package" >&2
406 { (exit 1); exit 1; }; }
407 ac_package=`echo $ac_package | sed 's/-/_/g'`
408 eval "with_$ac_package=no" ;;
411 # Obsolete; use --with-x.
414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415 | --x-incl | --x-inc | --x-in | --x-i)
416 ac_prev=x_includes ;;
417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419 x_includes=$ac_optarg ;;
421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423 ac_prev=x_libraries ;;
424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426 x_libraries=$ac_optarg ;;
428 -*) { echo "$as_me: error: unrecognized option: $ac_option
429 Try \`$0 --help' for more information." >&2
430 { (exit 1); exit 1; }; }
434 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
435 # Reject names that are not valid shell variable names.
436 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
437 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
438 { (exit 1); exit 1; }; }
439 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
440 eval "$ac_envvar='$ac_optarg'"
444 # FIXME: should be removed in autoconf 3.0.
445 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
446 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
447 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
448 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
454 if test -n "$ac_prev"; then
455 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
456 { echo "$as_me: error: missing argument to $ac_option" >&2
457 { (exit 1); exit 1; }; }
460 # Be sure to have absolute paths.
461 for ac_var in exec_prefix prefix
463 eval ac_val=$`echo $ac_var`
465 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
466 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
467 { (exit 1); exit 1; }; };;
471 # Be sure to have absolute paths.
472 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
473 localstatedir libdir includedir oldincludedir infodir mandir
475 eval ac_val=$`echo $ac_var`
477 [\\/$]* | ?:[\\/]* ) ;;
478 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
479 { (exit 1); exit 1; }; };;
483 # There might be people who depend on the old broken behavior: `$host'
484 # used to hold the argument of --host etc.
489 # FIXME: should be removed in autoconf 3.0.
490 if test "x$host_alias" != x; then
491 if test "x$build_alias" = x; then
492 cross_compiling=maybe
493 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
494 If a cross compiler is detected then cross compile mode will be used." >&2
495 elif test "x$build_alias" != "x$host_alias"; then
501 test -n "$host_alias" && ac_tool_prefix=$host_alias-
503 test "$silent" = yes && exec 6>/dev/null
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted=yes
508 # Try the directory containing this script, then its parent.
510 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513 if test ! -r $srcdir/$ac_unique_file; then
517 ac_srcdir_defaulted=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
522 { (exit 1); exit 1; }; }
524 { echo "$as_me: error: cannot find sources in $srcdir" >&2
525 { (exit 1); exit 1; }; }
528 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
529 ac_env_build_alias_set=${build_alias+set}
530 ac_env_build_alias_value=$build_alias
531 ac_cv_env_build_alias_set=${build_alias+set}
532 ac_cv_env_build_alias_value=$build_alias
533 ac_env_host_alias_set=${host_alias+set}
534 ac_env_host_alias_value=$host_alias
535 ac_cv_env_host_alias_set=${host_alias+set}
536 ac_cv_env_host_alias_value=$host_alias
537 ac_env_target_alias_set=${target_alias+set}
538 ac_env_target_alias_value=$target_alias
539 ac_cv_env_target_alias_set=${target_alias+set}
540 ac_cv_env_target_alias_value=$target_alias
541 ac_env_CC_set=${CC+set}
543 ac_cv_env_CC_set=${CC+set}
544 ac_cv_env_CC_value=$CC
545 ac_env_CFLAGS_set=${CFLAGS+set}
546 ac_env_CFLAGS_value=$CFLAGS
547 ac_cv_env_CFLAGS_set=${CFLAGS+set}
548 ac_cv_env_CFLAGS_value=$CFLAGS
549 ac_env_LDFLAGS_set=${LDFLAGS+set}
550 ac_env_LDFLAGS_value=$LDFLAGS
551 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
552 ac_cv_env_LDFLAGS_value=$LDFLAGS
553 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
554 ac_env_CPPFLAGS_value=$CPPFLAGS
555 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
556 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
557 ac_env_CPP_set=${CPP+set}
558 ac_env_CPP_value=$CPP
559 ac_cv_env_CPP_set=${CPP+set}
560 ac_cv_env_CPP_value=$CPP
561 ac_env_CXX_set=${CXX+set}
562 ac_env_CXX_value=$CXX
563 ac_cv_env_CXX_set=${CXX+set}
564 ac_cv_env_CXX_value=$CXX
565 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
566 ac_env_CXXFLAGS_value=$CXXFLAGS
567 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
568 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
569 ac_env_CXXCPP_set=${CXXCPP+set}
570 ac_env_CXXCPP_value=$CXXCPP
571 ac_cv_env_CXXCPP_set=${CXXCPP+set}
572 ac_cv_env_CXXCPP_value=$CXXCPP
575 # Report the --help message.
577 if test "$ac_init_help" = "long"; then
578 # Omit some internal or obsolete options to make the list less imposing.
579 # This message is too long to be a string in the A/UX 3.1 sh.
581 \`configure' configures this package to adapt to many kinds of systems.
583 Usage: $0 [OPTION]... [VAR=VALUE]...
585 To assign environment variables (e.g., CC, CFLAGS...), specify them as
586 VAR=VALUE. See below for descriptions of some of the useful variables.
588 Defaults for the options are specified in brackets.
591 -h, --help display this help and exit
592 --help=short display options specific to this package
593 --help=recursive display the short help of all the included packages
594 -V, --version display version information and exit
595 -q, --quiet, --silent do not print \`checking...' messages
596 --cache-file=FILE cache test results in FILE [disabled]
597 -C, --config-cache alias for \`--cache-file=config.cache'
598 -n, --no-create do not create output files
599 --srcdir=DIR find the sources in DIR [configure dir or \`..']
604 Installation directories:
605 --prefix=PREFIX install architecture-independent files in PREFIX
607 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
610 By default, \`make install' will install all the files in
611 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
612 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
613 for instance \`--prefix=\$HOME'.
615 For better control, use the options below.
617 Fine tuning of the installation directories:
618 --bindir=DIR user executables [EPREFIX/bin]
619 --sbindir=DIR system admin executables [EPREFIX/sbin]
620 --libexecdir=DIR program executables [EPREFIX/libexec]
621 --datadir=DIR read-only architecture-independent data [PREFIX/share]
622 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
623 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
624 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
625 --libdir=DIR object code libraries [EPREFIX/lib]
626 --includedir=DIR C header files [PREFIX/include]
627 --oldincludedir=DIR C header files for non-gcc [/usr/include]
628 --infodir=DIR info documentation [PREFIX/info]
629 --mandir=DIR man documentation [PREFIX/man]
635 --program-prefix=PREFIX prepend PREFIX to installed program names
636 --program-suffix=SUFFIX append SUFFIX to installed program names
637 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
640 --build=BUILD configure for building on BUILD [guessed]
641 --host=HOST build programs to run on HOST [BUILD]
642 --target=TARGET configure for building compilers for TARGET [HOST]
646 if test -n "$ac_init_help"; then
651 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
652 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
655 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
656 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
658 --with-system-type=XXX test: override derived host system-type
659 --enable-add-ons=DIR... used to check if we are a glibc add-on.
660 --with-build-cc=XXX if cross-compiling, the host C compiler (\$BUILD_CC)
661 --with-build-cflags=XXX if cross-compiling, the host C compiler-flags
662 --with-build-cppflags=XXX if cross-compiling, the host C preprocessor-flags
663 --with-build-ldflags=XXX if cross-compiling, the host linker-flags
664 --with-build-libs=XXX if cross-compiling, the host libraries
665 --without-cxx do not adjust ncurses bool to match C++
666 --without-cxx-binding do not build C++ binding and demo
667 --without-ada suppress check for Ada95, don't build demo
668 --without-progs suppress build with programs (e.g., tic)
669 --without-curses-h install curses.h as ncurses.h only
670 --with-install-prefix prefixes actual install-location (\$DESTDIR)
671 Options to Specify the Libraries Built/Used:
672 --with-libtool generate libraries with libtool
673 --with-shared generate shared-libraries
674 --with-normal generate normal-libraries (default)
675 --with-debug generate debug-libraries (default)
676 --with-profile generate profile-libraries
677 --with-termlib generate separate terminfo library
678 --with-dbmalloc test: use Conor Cahill's dbmalloc library
679 --with-dmalloc test: use Gray Watson's dmalloc library
680 --with-gpm use Alessandro Rubini's GPM library
681 --enable-rpath use rpath option when generating shared libraries
682 --with-shlib-version=X Specify rel or abi version for shared libs
683 Fine-Tuning Your Configuration:
684 --disable-overwrite leave out the link to -lcurses
685 --disable-database do not use terminfo, only fallbacks/termcap
686 --with-database=XXX specify terminfo source to install
687 --with-fallbacks=XXX specify list of fallback terminal descriptions
688 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
689 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
690 --disable-big-core assume machine has little memory
691 --enable-termcap compile in termcap fallback support
692 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
693 --enable-getcap fast termcap load, no xrefs to terminfo
694 --enable-getcap-cache cache translated termcaps in ~/.terminfo
695 --enable-symlinks make tic use symbolic links not hard links
696 --enable-broken_linker compile with broken-linker support code
697 --with-bool=TYPE override fallback type of bool variable
698 --with-ospeed=TYPE override type of ospeed variable
699 --enable-bsdpad recognize BSD-style prefix padding
700 --with-rcs-ids compile-in RCS identifiers
701 Options to Specify How Manpages are Installed:
702 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
703 optionally formatted, e.g., gzip,formatted
704 --with-manpage-renames specify manpage-renaming
705 --with-manpage-symlinks specify manpage-symlinks
706 --with-manpage-tbl specify manpage processing with tbl
708 --disable-ext-funcs disable function-extensions
709 --enable-const compile with extra/non-standard const
710 --enable-no-padding compile with \$NCURSES_NO_PADDING code
711 --enable-sigwinch compile with SIGWINCH handler
712 --enable-tcap-names compile with user-definable terminal capabilities
714 --with-develop enable all development options
715 --enable-hard-tabs compile with hard-tabs code
716 --disable-root-environ limit environment when running as root
717 --enable-xmc-glitch compile with limited support for xmc
719 --disable-assumed-color do not assume anything about default-colors
720 --disable-hashmap compile without hashmap scrolling-optimization
721 --enable-colorfgbg compile with \$COLORFGBG code
722 --enable-safe-sprintf compile with experimental safe-sprintf code
723 --disable-scroll-hints compile without scroll-hints code
724 --enable-widec compile with experimental wide-char/UTF-8 code
725 --with-caps=alt compile with experimental alternate Caps file
726 Testing/development Options:
727 --enable-echo build: display "compiling" commands (default)
728 --enable-warnings build: turn on GCC compiler warnings
729 --enable-assertions test: turn on generation of assertion code
730 --disable-leaks test: suppress permanent memory-leaks
731 --enable-expanded test: generate functions for certain macros
732 --disable-macros test: use functions rather than macros
733 Ada95 Binding Options:
734 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
735 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
736 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
738 Some influential environment variables:
739 CC C compiler command
740 CFLAGS C compiler flags
741 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
742 nonstandard directory <lib dir>
743 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
744 headers in a nonstandard directory <include dir>
746 CXX C++ compiler command
747 CXXFLAGS C++ compiler flags
748 CXXCPP C++ preprocessor
750 Use these variables to override the choices made by `configure' or to help
751 it to find libraries and programs with nonstandard names/locations.
756 if test "$ac_init_help" = "recursive"; then
757 # If there are subdirs, report their specific --help.
759 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
761 # A "../" for each directory in /$ac_subdir.
762 ac_dots=`echo $ac_subdir |
763 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
766 .) # No --srcdir option. We are building in place.
767 ac_sub_srcdir=$srcdir ;;
768 [\\/]* | ?:[\\/]* ) # Absolute path.
769 ac_sub_srcdir=$srcdir/$ac_subdir ;;
771 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
774 # Check for guested configure; otherwise get Cygnus style configure.
775 if test -f $ac_sub_srcdir/configure.gnu; then
777 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
778 elif test -f $ac_sub_srcdir/configure; then
780 $SHELL $ac_sub_srcdir/configure --help=recursive
781 elif test -f $ac_sub_srcdir/configure.ac ||
782 test -f $ac_sub_srcdir/configure.in; then
786 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
792 test -n "$ac_init_help" && exit 0
793 if $ac_init_version; then
796 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
797 Free Software Foundation, Inc.
798 This configure script is free software; the Free Software Foundation
799 gives unlimited permission to copy, distribute and modify it.
805 This file contains any messages produced by compilers while
806 running configure, to aid debugging if configure makes a mistake.
808 It was created by $as_me, which was
809 generated by GNU Autoconf 2.52.20011227. Invocation command line was
820 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
821 uname -m = `(uname -m) 2>/dev/null || echo unknown`
822 uname -r = `(uname -r) 2>/dev/null || echo unknown`
823 uname -s = `(uname -s) 2>/dev/null || echo unknown`
824 uname -v = `(uname -v) 2>/dev/null || echo unknown`
826 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
827 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
829 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
830 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
831 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
832 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
833 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
834 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
835 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
849 # Keep a trace of the command line.
850 # Strip out --no-create and --no-recursion so they do not pile up.
851 # Also quote any args containing shell meta-characters.
857 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
858 | --no-cr | --no-c) ;;
859 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
860 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
861 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
862 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
863 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
865 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
868 # Get rid of the leading space.
871 # When interrupted or exit'd, cleanup temporary files, and complete
872 # config.log. We remove comments because anyway the quotes in there
873 # would cause problems or look ugly.
875 # Save into config.log some information that might help in debugging.
877 echo "## ----------------- ##" >&5
878 echo "## Cache variables. ##" >&5
879 echo "## ----------------- ##" >&5
881 # The following way of writing the cache mishandles newlines in values,
884 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
887 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
892 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
896 sed "/^$/d" confdefs.h >conftest.log
897 if test -s conftest.log; then
899 echo "## ------------ ##" >&5
900 echo "## confdefs.h. ##" >&5
901 echo "## ------------ ##" >&5
906 test "$ac_signal" != 0 &&
907 echo "$as_me: caught signal $ac_signal" >&5
908 echo "$as_me: exit $exit_status" >&5
909 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
912 for ac_signal in 1 2 13 15; do
913 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
917 # confdefs.h avoids OS command line length limits that DEFS can exceed.
918 rm -rf conftest* confdefs.h
919 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
922 # Let the site file select an alternate cache file if it wants to.
923 # Prefer explicitly selected file to automatically selected ones.
924 if test -z "$CONFIG_SITE"; then
925 if test "x$prefix" != xNONE; then
926 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
928 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
931 for ac_site_file in $CONFIG_SITE; do
932 if test -r "$ac_site_file"; then
933 { echo "$as_me:933: loading site script $ac_site_file" >&5
934 echo "$as_me: loading site script $ac_site_file" >&6;}
935 cat "$ac_site_file" >&5
940 if test -r "$cache_file"; then
941 # Some versions of bash will fail to source /dev/null (special
942 # files actually), so we avoid doing that.
943 if test -f "$cache_file"; then
944 { echo "$as_me:944: loading cache $cache_file" >&5
945 echo "$as_me: loading cache $cache_file" >&6;}
947 [\\/]* | ?:[\\/]* ) . $cache_file;;
952 { echo "$as_me:952: creating cache $cache_file" >&5
953 echo "$as_me: creating cache $cache_file" >&6;}
957 # Check that the precious variables saved in the cache have kept the same
959 ac_cache_corrupted=false
960 for ac_var in `(set) 2>&1 |
961 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
962 eval ac_old_set=\$ac_cv_env_${ac_var}_set
963 eval ac_new_set=\$ac_env_${ac_var}_set
964 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
965 eval ac_new_val="\$ac_env_${ac_var}_value"
966 case $ac_old_set,$ac_new_set in
968 { echo "$as_me:968: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
969 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
970 ac_cache_corrupted=: ;;
972 { echo "$as_me:972: error: \`$ac_var' was not set in the previous run" >&5
973 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
974 ac_cache_corrupted=: ;;
977 if test "x$ac_old_val" != "x$ac_new_val"; then
978 { echo "$as_me:978: error: \`$ac_var' has changed since the previous run:" >&5
979 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
980 { echo "$as_me:980: former value: $ac_old_val" >&5
981 echo "$as_me: former value: $ac_old_val" >&2;}
982 { echo "$as_me:982: current value: $ac_new_val" >&5
983 echo "$as_me: current value: $ac_new_val" >&2;}
987 # Pass precious variables to config.status. It doesn't matter if
988 # we pass some twice (in addition to the command line arguments).
989 if test "$ac_new_set" = set; then
991 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
992 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
993 ac_configure_args="$ac_configure_args '$ac_arg'"
995 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1000 if $ac_cache_corrupted; then
1001 { echo "$as_me:1001: error: changes in the environment can compromise the build" >&5
1002 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1003 { { echo "$as_me:1003: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1004 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1005 { (exit 1); exit 1; }; }
1009 ac_cpp='$CPP $CPPFLAGS'
1010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1014 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1015 *c*,-n*) ECHO_N= ECHO_C='
1017 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1018 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1020 echo "#! $SHELL" >conftest.sh
1021 echo "exit 0" >>conftest.sh
1022 chmod +x conftest.sh
1023 if { (echo "$as_me:1023: PATH=\".;.\"; conftest.sh") >&5
1024 (PATH=".;."; conftest.sh) 2>&5
1026 echo "$as_me:1026: \$? = $ac_status" >&5
1027 (exit $ac_status); }; then
1028 ac_path_separator=';'
1032 PATH_SEPARATOR="$ac_path_separator"
1035 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1037 NCURSES_MAJOR="`egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1038 NCURSES_MINOR="`egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1039 NCURSES_PATCH="`egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1040 cf_cv_abi_version=${NCURSES_MAJOR}
1041 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1042 cf_cv_timestamp=`date`
1043 echo "$as_me:1043: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1044 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1047 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1048 if test -f $ac_dir/install-sh; then
1050 ac_install_sh="$ac_aux_dir/install-sh -c"
1052 elif test -f $ac_dir/install.sh; then
1054 ac_install_sh="$ac_aux_dir/install.sh -c"
1056 elif test -f $ac_dir/shtool; then
1058 ac_install_sh="$ac_aux_dir/shtool install -c"
1062 if test -z "$ac_aux_dir"; then
1063 { { echo "$as_me:1063: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1064 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1065 { (exit 1); exit 1; }; }
1067 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1068 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1069 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1071 # Make sure we can run config.sub.
1072 $ac_config_sub sun4 >/dev/null 2>&1 ||
1073 { { echo "$as_me:1073: error: cannot run $ac_config_sub" >&5
1074 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1075 { (exit 1); exit 1; }; }
1077 echo "$as_me:1077: checking build system type" >&5
1078 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1079 if test "${ac_cv_build+set}" = set; then
1080 echo $ECHO_N "(cached) $ECHO_C" >&6
1082 ac_cv_build_alias=$build_alias
1083 test -z "$ac_cv_build_alias" &&
1084 ac_cv_build_alias=`$ac_config_guess`
1085 test -z "$ac_cv_build_alias" &&
1086 { { echo "$as_me:1086: error: cannot guess build type; you must specify one" >&5
1087 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1088 { (exit 1); exit 1; }; }
1089 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1090 { { echo "$as_me:1090: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1091 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1092 { (exit 1); exit 1; }; }
1095 echo "$as_me:1095: result: $ac_cv_build" >&5
1096 echo "${ECHO_T}$ac_cv_build" >&6
1098 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1099 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1100 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1102 echo "$as_me:1102: checking host system type" >&5
1103 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1104 if test "${ac_cv_host+set}" = set; then
1105 echo $ECHO_N "(cached) $ECHO_C" >&6
1107 ac_cv_host_alias=$host_alias
1108 test -z "$ac_cv_host_alias" &&
1109 ac_cv_host_alias=$ac_cv_build_alias
1110 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1111 { { echo "$as_me:1111: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1112 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1113 { (exit 1); exit 1; }; }
1116 echo "$as_me:1116: result: $ac_cv_host" >&5
1117 echo "${ECHO_T}$ac_cv_host" >&6
1119 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1120 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1121 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1123 if test -f $srcdir/config.guess ; then
1124 echo "$as_me:1124: checking target system type" >&5
1125 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1126 if test "${ac_cv_target+set}" = set; then
1127 echo $ECHO_N "(cached) $ECHO_C" >&6
1129 ac_cv_target_alias=$target_alias
1130 test "x$ac_cv_target_alias" = "x" &&
1131 ac_cv_target_alias=$ac_cv_host_alias
1132 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1133 { { echo "$as_me:1133: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1134 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1135 { (exit 1); exit 1; }; }
1138 echo "$as_me:1138: result: $ac_cv_target" >&5
1139 echo "${ECHO_T}$ac_cv_target" >&6
1140 target=$ac_cv_target
1141 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1142 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1143 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1145 # The aliases save the names the user supplied, while $host etc.
1146 # will get canonicalized.
1147 test -n "$target_alias" &&
1148 test "$program_prefix$program_suffix$program_transform_name" = \
1150 program_prefix=${target_alias}-
1151 system_name="$host_os"
1153 system_name="`(uname -s -r) 2>/dev/null`"
1154 if test -z "$system_name" ; then
1155 system_name="`(hostname) 2>/dev/null`"
1158 test -n "$system_name" && cat >>confdefs.h <<EOF
1159 #define SYSTEM_NAME "$system_name"
1162 if test "${cf_cv_system_name+set}" = set; then
1163 echo $ECHO_N "(cached) $ECHO_C" >&6
1165 cf_cv_system_name="$system_name"
1168 test -z "$system_name" && system_name="$cf_cv_system_name"
1169 test -n "$cf_cv_system_name" && echo "$as_me:1169: result: Configuring for $cf_cv_system_name" >&5
1170 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1172 if test ".$system_name" != ".$cf_cv_system_name" ; then
1173 echo "$as_me:1173: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1174 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1175 { { echo "$as_me:1175: error: \"Please remove config.cache and try again.\"" >&5
1176 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1177 { (exit 1); exit 1; }; }
1180 # Check whether --with-system-type or --without-system-type was given.
1181 if test "${with_system_type+set}" = set; then
1182 withval="$with_system_type"
1183 { echo "$as_me:1183: WARNING: overriding system type to $withval" >&5
1184 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1185 cf_cv_system_name=$withval
1188 # We need a configure script only when compiling as part of GNU C library.
1189 # Here we have to generate one of the files we need while compiling.
1191 # The only problem is that users of the package might think they have to
1192 # run configure themself and find it irritating when nothing happens.
1194 # So we try here to find out whether we are called from the glibc configure
1198 # Check whether --enable-add-ons or --disable-add-ons was given.
1199 if test "${enable_add_ons+set}" = set; then
1200 enableval="$enable_add_ons"
1206 if test x"$glibc_add_on" = "xyes" ; then
1207 rm -f $srcdir/Banner
1209 rm -f $srcdir/Makefile
1210 cp $srcdir/Makefile.glibc $srcdir/Makefile
1211 echo "ncurses `grep \"^[ ]*ncurses-version[ ]*=.*$\" \
1212 $srcdir/Makefile | sed -e \
1213 's/^[ ]*ncurses-version[ ]*=[ ]*\([^ ^ ]*\)[ ]*$/\1/'`" > $srcdir/Banner
1217 ### Save the given $CFLAGS to allow user-override.
1218 cf_user_CFLAGS="$CFLAGS"
1220 ### Default install-location
1222 echo "$as_me:1222: checking for prefix" >&5
1223 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1224 if test "x$prefix" = "xNONE" ; then
1225 case "$cf_cv_system_name" in
1226 # non-vendor systems don't have a conflict
1227 openbsd*|netbsd*|freebsd*|linux*|cygwin*)
1230 *) prefix=$ac_default_prefix
1234 echo "$as_me:1234: result: $prefix" >&5
1235 echo "${ECHO_T}$prefix" >&6
1237 if test "x$prefix" = "xNONE" ; then
1238 echo "$as_me:1238: checking for default include-directory" >&5
1239 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1240 test -n "$verbose" && echo 1>&6
1243 $includedir/ncurses \
1245 $prefix/include/ncurses \
1246 /usr/local/include \
1247 /usr/local/include/ncurses \
1249 /usr/include/ncurses
1251 cf_dir=`eval echo $cf_symbol`
1252 if test -f $cf_dir/curses.h ; then
1253 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1254 includedir="$cf_symbol"
1255 test -n "$verbose" && echo $ac_n " found " 1>&6
1259 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1261 echo "$as_me:1261: result: $includedir" >&5
1262 echo "${ECHO_T}$includedir" >&6
1265 ### Checks for programs.
1267 ac_cpp='$CPP $CPPFLAGS'
1268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1271 if test -n "$ac_tool_prefix"; then
1272 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1273 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1274 echo "$as_me:1274: checking for $ac_word" >&5
1275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1276 if test "${ac_cv_prog_CC+set}" = set; then
1277 echo $ECHO_N "(cached) $ECHO_C" >&6
1279 if test -n "$CC"; then
1280 ac_cv_prog_CC="$CC" # Let the user override the test.
1282 ac_save_IFS=$IFS; IFS=$ac_path_separator
1284 for ac_dir in $ac_dummy; do
1286 test -z "$ac_dir" && ac_dir=.
1287 $as_executable_p "$ac_dir/$ac_word" || continue
1288 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1289 echo "$as_me:1289: found $ac_dir/$ac_word" >&5
1296 if test -n "$CC"; then
1297 echo "$as_me:1297: result: $CC" >&5
1298 echo "${ECHO_T}$CC" >&6
1300 echo "$as_me:1300: result: no" >&5
1301 echo "${ECHO_T}no" >&6
1305 if test -z "$ac_cv_prog_CC"; then
1307 # Extract the first word of "gcc", so it can be a program name with args.
1308 set dummy gcc; ac_word=$2
1309 echo "$as_me:1309: checking for $ac_word" >&5
1310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1312 echo $ECHO_N "(cached) $ECHO_C" >&6
1314 if test -n "$ac_ct_CC"; then
1315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1317 ac_save_IFS=$IFS; IFS=$ac_path_separator
1319 for ac_dir in $ac_dummy; do
1321 test -z "$ac_dir" && ac_dir=.
1322 $as_executable_p "$ac_dir/$ac_word" || continue
1323 ac_cv_prog_ac_ct_CC="gcc"
1324 echo "$as_me:1324: found $ac_dir/$ac_word" >&5
1330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1331 if test -n "$ac_ct_CC"; then
1332 echo "$as_me:1332: result: $ac_ct_CC" >&5
1333 echo "${ECHO_T}$ac_ct_CC" >&6
1335 echo "$as_me:1335: result: no" >&5
1336 echo "${ECHO_T}no" >&6
1344 if test -z "$CC"; then
1345 if test -n "$ac_tool_prefix"; then
1346 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1347 set dummy ${ac_tool_prefix}cc; ac_word=$2
1348 echo "$as_me:1348: checking for $ac_word" >&5
1349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1350 if test "${ac_cv_prog_CC+set}" = set; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 if test -n "$CC"; then
1354 ac_cv_prog_CC="$CC" # Let the user override the test.
1356 ac_save_IFS=$IFS; IFS=$ac_path_separator
1358 for ac_dir in $ac_dummy; do
1360 test -z "$ac_dir" && ac_dir=.
1361 $as_executable_p "$ac_dir/$ac_word" || continue
1362 ac_cv_prog_CC="${ac_tool_prefix}cc"
1363 echo "$as_me:1363: found $ac_dir/$ac_word" >&5
1370 if test -n "$CC"; then
1371 echo "$as_me:1371: result: $CC" >&5
1372 echo "${ECHO_T}$CC" >&6
1374 echo "$as_me:1374: result: no" >&5
1375 echo "${ECHO_T}no" >&6
1379 if test -z "$ac_cv_prog_CC"; then
1381 # Extract the first word of "cc", so it can be a program name with args.
1382 set dummy cc; ac_word=$2
1383 echo "$as_me:1383: checking for $ac_word" >&5
1384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1386 echo $ECHO_N "(cached) $ECHO_C" >&6
1388 if test -n "$ac_ct_CC"; then
1389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1391 ac_save_IFS=$IFS; IFS=$ac_path_separator
1393 for ac_dir in $ac_dummy; do
1395 test -z "$ac_dir" && ac_dir=.
1396 $as_executable_p "$ac_dir/$ac_word" || continue
1397 ac_cv_prog_ac_ct_CC="cc"
1398 echo "$as_me:1398: found $ac_dir/$ac_word" >&5
1404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1405 if test -n "$ac_ct_CC"; then
1406 echo "$as_me:1406: result: $ac_ct_CC" >&5
1407 echo "${ECHO_T}$ac_ct_CC" >&6
1409 echo "$as_me:1409: result: no" >&5
1410 echo "${ECHO_T}no" >&6
1419 if test -z "$CC"; then
1420 # Extract the first word of "cc", so it can be a program name with args.
1421 set dummy cc; ac_word=$2
1422 echo "$as_me:1422: checking for $ac_word" >&5
1423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424 if test "${ac_cv_prog_CC+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 if test -n "$CC"; then
1428 ac_cv_prog_CC="$CC" # Let the user override the test.
1431 ac_save_IFS=$IFS; IFS=$ac_path_separator
1433 for ac_dir in $ac_dummy; do
1435 test -z "$ac_dir" && ac_dir=.
1436 $as_executable_p "$ac_dir/$ac_word" || continue
1437 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1438 ac_prog_rejected=yes
1442 echo "$as_me:1442: found $ac_dir/$ac_word" >&5
1446 if test $ac_prog_rejected = yes; then
1447 # We found a bogon in the path, so make sure we never use it.
1448 set dummy $ac_cv_prog_CC
1450 if test $# != 0; then
1451 # We chose a different compiler from the bogus one.
1452 # However, it has the same basename, so the bogon will be chosen
1453 # first if we set CC to just the basename; use the full file name.
1455 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1463 if test -n "$CC"; then
1464 echo "$as_me:1464: result: $CC" >&5
1465 echo "${ECHO_T}$CC" >&6
1467 echo "$as_me:1467: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1472 if test -z "$CC"; then
1473 if test -n "$ac_tool_prefix"; then
1476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1478 echo "$as_me:1478: checking for $ac_word" >&5
1479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480 if test "${ac_cv_prog_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 if test -n "$CC"; then
1484 ac_cv_prog_CC="$CC" # Let the user override the test.
1486 ac_save_IFS=$IFS; IFS=$ac_path_separator
1488 for ac_dir in $ac_dummy; do
1490 test -z "$ac_dir" && ac_dir=.
1491 $as_executable_p "$ac_dir/$ac_word" || continue
1492 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1493 echo "$as_me:1493: found $ac_dir/$ac_word" >&5
1500 if test -n "$CC"; then
1501 echo "$as_me:1501: result: $CC" >&5
1502 echo "${ECHO_T}$CC" >&6
1504 echo "$as_me:1504: result: no" >&5
1505 echo "${ECHO_T}no" >&6
1508 test -n "$CC" && break
1511 if test -z "$CC"; then
1515 # Extract the first word of "$ac_prog", so it can be a program name with args.
1516 set dummy $ac_prog; ac_word=$2
1517 echo "$as_me:1517: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1522 if test -n "$ac_ct_CC"; then
1523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525 ac_save_IFS=$IFS; IFS=$ac_path_separator
1527 for ac_dir in $ac_dummy; do
1529 test -z "$ac_dir" && ac_dir=.
1530 $as_executable_p "$ac_dir/$ac_word" || continue
1531 ac_cv_prog_ac_ct_CC="$ac_prog"
1532 echo "$as_me:1532: found $ac_dir/$ac_word" >&5
1538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1539 if test -n "$ac_ct_CC"; then
1540 echo "$as_me:1540: result: $ac_ct_CC" >&5
1541 echo "${ECHO_T}$ac_ct_CC" >&6
1543 echo "$as_me:1543: result: no" >&5
1544 echo "${ECHO_T}no" >&6
1547 test -n "$ac_ct_CC" && break
1555 test -z "$CC" && { { echo "$as_me:1555: error: no acceptable cc found in \$PATH" >&5
1556 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1557 { (exit 1); exit 1; }; }
1559 # Provide some information about the compiler.
1560 echo "$as_me:1560:" \
1561 "checking for C compiler version" >&5
1562 ac_compiler=`set X $ac_compile; echo $2`
1563 { (eval echo "$as_me:1563: \"$ac_compiler --version </dev/null >&5\"") >&5
1564 (eval $ac_compiler --version </dev/null >&5) 2>&5
1566 echo "$as_me:1566: \$? = $ac_status" >&5
1567 (exit $ac_status); }
1568 { (eval echo "$as_me:1568: \"$ac_compiler -v </dev/null >&5\"") >&5
1569 (eval $ac_compiler -v </dev/null >&5) 2>&5
1571 echo "$as_me:1571: \$? = $ac_status" >&5
1572 (exit $ac_status); }
1573 { (eval echo "$as_me:1573: \"$ac_compiler -V </dev/null >&5\"") >&5
1574 (eval $ac_compiler -V </dev/null >&5) 2>&5
1576 echo "$as_me:1576: \$? = $ac_status" >&5
1577 (exit $ac_status); }
1579 cat >conftest.$ac_ext <<_ACEOF
1580 #line 1580 "configure"
1581 #include "confdefs.h"
1591 ac_clean_files_save=$ac_clean_files
1592 ac_clean_files="$ac_clean_files a.out a.exe"
1593 # Try to create an executable without -o first, disregard a.out.
1594 # It will help us diagnose broken compilers, and finding out an intuition
1596 echo "$as_me:1596: checking for C compiler default output" >&5
1597 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1598 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1599 if { (eval echo "$as_me:1599: \"$ac_link_default\"") >&5
1600 (eval $ac_link_default) 2>&5
1602 echo "$as_me:1602: \$? = $ac_status" >&5
1603 (exit $ac_status); }; then
1604 # Find the output, starting from the most likely. This scheme is
1605 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1607 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1608 ls a.out conftest 2>/dev/null;
1609 ls a.* conftest.* 2>/dev/null`; do
1611 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1612 a.out ) # We found the default executable, but exeext='' is most
1615 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1616 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1623 echo "$as_me: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1625 { { echo "$as_me:1625: error: C compiler cannot create executables" >&5
1626 echo "$as_me: error: C compiler cannot create executables" >&2;}
1627 { (exit 77); exit 77; }; }
1630 ac_exeext=$ac_cv_exeext
1631 echo "$as_me:1631: result: $ac_file" >&5
1632 echo "${ECHO_T}$ac_file" >&6
1634 # Check the compiler produces executables we can run. If not, either
1635 # the compiler is broken, or we cross compile.
1636 echo "$as_me:1636: checking whether the C compiler works" >&5
1637 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1638 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1639 # If not cross compiling, check that we can run a simple program.
1640 if test "$cross_compiling" != yes; then
1641 if { ac_try='./$ac_file'
1642 { (eval echo "$as_me:1642: \"$ac_try\"") >&5
1645 echo "$as_me:1645: \$? = $ac_status" >&5
1646 (exit $ac_status); }; }; then
1649 if test "$cross_compiling" = maybe; then
1652 { { echo "$as_me:1652: error: cannot run C compiled programs.
1653 If you meant to cross compile, use \`--host'." >&5
1654 echo "$as_me: error: cannot run C compiled programs.
1655 If you meant to cross compile, use \`--host'." >&2;}
1656 { (exit 1); exit 1; }; }
1660 echo "$as_me:1660: result: yes" >&5
1661 echo "${ECHO_T}yes" >&6
1663 rm -f a.out a.exe conftest$ac_cv_exeext
1664 ac_clean_files=$ac_clean_files_save
1665 # Check the compiler produces executables we can run. If not, either
1666 # the compiler is broken, or we cross compile.
1667 echo "$as_me:1667: checking whether we are cross compiling" >&5
1668 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1669 echo "$as_me:1669: result: $cross_compiling" >&5
1670 echo "${ECHO_T}$cross_compiling" >&6
1672 echo "$as_me:1672: checking for executable suffix" >&5
1673 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1674 if { (eval echo "$as_me:1674: \"$ac_link\"") >&5
1675 (eval $ac_link) 2>&5
1677 echo "$as_me:1677: \$? = $ac_status" >&5
1678 (exit $ac_status); }; then
1679 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1680 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1681 # work properly (i.e., refer to `conftest.exe'), while it won't with
1683 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1685 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1686 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1693 { { echo "$as_me:1693: error: cannot compute EXEEXT: cannot compile and link" >&5
1694 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1695 { (exit 1); exit 1; }; }
1698 rm -f conftest$ac_cv_exeext
1699 echo "$as_me:1699: result: $ac_cv_exeext" >&5
1700 echo "${ECHO_T}$ac_cv_exeext" >&6
1702 rm -f conftest.$ac_ext
1703 EXEEXT=$ac_cv_exeext
1705 echo "$as_me:1705: checking for object suffix" >&5
1706 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1707 if test "${ac_cv_objext+set}" = set; then
1708 echo $ECHO_N "(cached) $ECHO_C" >&6
1710 cat >conftest.$ac_ext <<_ACEOF
1711 #line 1711 "configure"
1712 #include "confdefs.h"
1722 rm -f conftest.o conftest.obj
1723 if { (eval echo "$as_me:1723: \"$ac_compile\"") >&5
1724 (eval $ac_compile) 2>&5
1726 echo "$as_me:1726: \$? = $ac_status" >&5
1727 (exit $ac_status); }; then
1728 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1731 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1736 echo "$as_me: failed program was:" >&5
1737 cat conftest.$ac_ext >&5
1738 { { echo "$as_me:1738: error: cannot compute OBJEXT: cannot compile" >&5
1739 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1740 { (exit 1); exit 1; }; }
1743 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1745 echo "$as_me:1745: result: $ac_cv_objext" >&5
1746 echo "${ECHO_T}$ac_cv_objext" >&6
1747 OBJEXT=$ac_cv_objext
1749 echo "$as_me:1749: checking whether we are using the GNU C compiler" >&5
1750 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1751 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 cat >conftest.$ac_ext <<_ACEOF
1755 #line 1755 "configure"
1756 #include "confdefs.h"
1769 rm -f conftest.$ac_objext
1770 if { (eval echo "$as_me:1770: \"$ac_compile\"") >&5
1771 (eval $ac_compile) 2>&5
1773 echo "$as_me:1773: \$? = $ac_status" >&5
1774 (exit $ac_status); } &&
1775 { ac_try='test -s conftest.$ac_objext'
1776 { (eval echo "$as_me:1776: \"$ac_try\"") >&5
1779 echo "$as_me:1779: \$? = $ac_status" >&5
1780 (exit $ac_status); }; }; then
1783 echo "$as_me: failed program was:" >&5
1784 cat conftest.$ac_ext >&5
1787 rm -f conftest.$ac_objext conftest.$ac_ext
1788 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1791 echo "$as_me:1791: result: $ac_cv_c_compiler_gnu" >&5
1792 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1793 GCC=`test $ac_compiler_gnu = yes && echo yes`
1794 ac_test_CFLAGS=${CFLAGS+set}
1795 ac_save_CFLAGS=$CFLAGS
1797 echo "$as_me:1797: checking whether $CC accepts -g" >&5
1798 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1799 if test "${ac_cv_prog_cc_g+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 cat >conftest.$ac_ext <<_ACEOF
1803 #line 1803 "configure"
1804 #include "confdefs.h"
1814 rm -f conftest.$ac_objext
1815 if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5
1816 (eval $ac_compile) 2>&5
1818 echo "$as_me:1818: \$? = $ac_status" >&5
1819 (exit $ac_status); } &&
1820 { ac_try='test -s conftest.$ac_objext'
1821 { (eval echo "$as_me:1821: \"$ac_try\"") >&5
1824 echo "$as_me:1824: \$? = $ac_status" >&5
1825 (exit $ac_status); }; }; then
1828 echo "$as_me: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1832 rm -f conftest.$ac_objext conftest.$ac_ext
1834 echo "$as_me:1834: result: $ac_cv_prog_cc_g" >&5
1835 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1836 if test "$ac_test_CFLAGS" = set; then
1837 CFLAGS=$ac_save_CFLAGS
1838 elif test $ac_cv_prog_cc_g = yes; then
1839 if test "$GCC" = yes; then
1845 if test "$GCC" = yes; then
1851 # Some people use a C++ compiler to compile C. Since we use `exit',
1852 # in C++ we need to declare it. In case someone uses the same compiler
1853 # for both compiling C and C++ we need to have the C++ compiler decide
1854 # the declaration of exit, since it's the most demanding environment.
1855 cat >conftest.$ac_ext <<_ACEOF
1860 rm -f conftest.$ac_objext
1861 if { (eval echo "$as_me:1861: \"$ac_compile\"") >&5
1862 (eval $ac_compile) 2>&5
1864 echo "$as_me:1864: \$? = $ac_status" >&5
1865 (exit $ac_status); } &&
1866 { ac_try='test -s conftest.$ac_objext'
1867 { (eval echo "$as_me:1867: \"$ac_try\"") >&5
1870 echo "$as_me:1870: \$? = $ac_status" >&5
1871 (exit $ac_status); }; }; then
1872 for ac_declaration in \
1874 '#include <stdlib.h>' \
1875 'extern "C" void std::exit (int) throw (); using std::exit;' \
1876 'extern "C" void std::exit (int); using std::exit;' \
1877 'extern "C" void exit (int) throw ();' \
1878 'extern "C" void exit (int);' \
1881 cat >conftest.$ac_ext <<_ACEOF
1882 #line 1882 "configure"
1883 #include "confdefs.h"
1894 rm -f conftest.$ac_objext
1895 if { (eval echo "$as_me:1895: \"$ac_compile\"") >&5
1896 (eval $ac_compile) 2>&5
1898 echo "$as_me:1898: \$? = $ac_status" >&5
1899 (exit $ac_status); } &&
1900 { ac_try='test -s conftest.$ac_objext'
1901 { (eval echo "$as_me:1901: \"$ac_try\"") >&5
1904 echo "$as_me:1904: \$? = $ac_status" >&5
1905 (exit $ac_status); }; }; then
1908 echo "$as_me: failed program was:" >&5
1909 cat conftest.$ac_ext >&5
1912 rm -f conftest.$ac_objext conftest.$ac_ext
1913 cat >conftest.$ac_ext <<_ACEOF
1914 #line 1914 "configure"
1915 #include "confdefs.h"
1925 rm -f conftest.$ac_objext
1926 if { (eval echo "$as_me:1926: \"$ac_compile\"") >&5
1927 (eval $ac_compile) 2>&5
1929 echo "$as_me:1929: \$? = $ac_status" >&5
1930 (exit $ac_status); } &&
1931 { ac_try='test -s conftest.$ac_objext'
1932 { (eval echo "$as_me:1932: \"$ac_try\"") >&5
1935 echo "$as_me:1935: \$? = $ac_status" >&5
1936 (exit $ac_status); }; }; then
1939 echo "$as_me: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1942 rm -f conftest.$ac_objext conftest.$ac_ext
1945 if test -n "$ac_declaration"; then
1946 echo '#ifdef __cplusplus' >>confdefs.h
1947 echo $ac_declaration >>confdefs.h
1948 echo '#endif' >>confdefs.h
1952 echo "$as_me: failed program was:" >&5
1953 cat conftest.$ac_ext >&5
1955 rm -f conftest.$ac_objext conftest.$ac_ext
1957 ac_cpp='$CPP $CPPFLAGS'
1958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1963 if test "$GCC" = yes ; then
1964 echo "$as_me:1964: checking version of gcc" >&5
1965 echo $ECHO_N "checking version of gcc... $ECHO_C" >&6
1966 GCC_VERSION="`${CC} --version|head -1`"
1967 echo "$as_me:1967: result: $GCC_VERSION" >&5
1968 echo "${ECHO_T}$GCC_VERSION" >&6
1971 # If we're cross-compiling, allow the user to override the tools and their
1972 # options. The configure script is oriented toward identifying the target
1973 # compiler, etc., but we need a host compiler to generate parts of the source.
1975 BUILD_CFLAGS='$(CFLAGS)'
1976 BUILD_CPPFLAGS='$(CPPFLAGS)'
1977 BUILD_LDFLAGS='$(LDFLAGS)'
1978 BUILD_LIBS='$(LIBS)'
1979 if test "$host_alias" != "$target_alias" ; then
1981 # Check whether --with-build-cc or --without-build-cc was given.
1982 if test "${with_build_cc+set}" = set; then
1983 withval="$with_build_cc"
1986 for ac_prog in $CC gcc cc
1988 # Extract the first word of "$ac_prog", so it can be a program name with args.
1989 set dummy $ac_prog; ac_word=$2
1990 echo "$as_me:1990: checking for $ac_word" >&5
1991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 if test -n "$BUILD_CC"; then
1996 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
1998 ac_save_IFS=$IFS; IFS=$ac_path_separator
2000 for ac_dir in $ac_dummy; do
2002 test -z "$ac_dir" && ac_dir=.
2003 $as_executable_p "$ac_dir/$ac_word" || continue
2004 ac_cv_prog_BUILD_CC="$ac_prog"
2005 echo "$as_me:2005: found $ac_dir/$ac_word" >&5
2011 BUILD_CC=$ac_cv_prog_BUILD_CC
2012 if test -n "$BUILD_CC"; then
2013 echo "$as_me:2013: result: $BUILD_CC" >&5
2014 echo "${ECHO_T}$BUILD_CC" >&6
2016 echo "$as_me:2016: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2020 test -n "$BUILD_CC" && break
2025 # Check whether --with-build-cflags or --without-build-cflags was given.
2026 if test "${with_build_cflags+set}" = set; then
2027 withval="$with_build_cflags"
2028 BUILD_CFLAGS="$withval"
2031 # Check whether --with-build-cppflags or --without-build-cppflags was given.
2032 if test "${with_build_cppflags+set}" = set; then
2033 withval="$with_build_cppflags"
2034 BUILD_CPPFLAGS="$withval"
2037 # Check whether --with-build-ldflags or --without-build-ldflags was given.
2038 if test "${with_build_ldflags+set}" = set; then
2039 withval="$with_build_ldflags"
2040 BUILD_LDFLAGS="$withval"
2043 # Check whether --with-build-libs or --without-build-libs was given.
2044 if test "${with_build_libs+set}" = set; then
2045 withval="$with_build_libs"
2046 BUILD_LIBS="$withval"
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055 echo "$as_me:2055: checking how to run the C preprocessor" >&5
2056 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2057 # On Suns, sometimes $CPP names a directory.
2058 if test -n "$CPP" && test -d "$CPP"; then
2061 if test -z "$CPP"; then
2062 if test "${ac_cv_prog_CPP+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 # Double quotes because CPP needs to be expanded
2066 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2069 for ac_c_preproc_warn_flag in '' yes
2071 # Use a header file that comes with gcc, so configuring glibc
2072 # with a fresh cross-compiler works.
2073 # On the NeXT, cc -E runs the code through the compiler's parser,
2074 # not just through cpp. "Syntax error" is here to catch this case.
2075 cat >conftest.$ac_ext <<_ACEOF
2076 #line 2076 "configure"
2077 #include "confdefs.h"
2081 if { (eval echo "$as_me:2081: \"$ac_cpp conftest.$ac_ext\"") >&5
2082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2084 egrep -v '^ *\+' conftest.er1 >conftest.err
2086 cat conftest.err >&5
2087 echo "$as_me:2087: \$? = $ac_status" >&5
2088 (exit $ac_status); } >/dev/null; then
2089 if test -s conftest.err; then
2090 ac_cpp_err=$ac_c_preproc_warn_flag
2097 if test -z "$ac_cpp_err"; then
2100 echo "$as_me: failed program was:" >&5
2101 cat conftest.$ac_ext >&5
2102 # Broken: fails on valid input.
2105 rm -f conftest.err conftest.$ac_ext
2107 # OK, works on sane cases. Now check whether non-existent headers
2108 # can be detected and how.
2109 cat >conftest.$ac_ext <<_ACEOF
2110 #line 2110 "configure"
2111 #include "confdefs.h"
2112 #include <ac_nonexistent.h>
2114 if { (eval echo "$as_me:2114: \"$ac_cpp conftest.$ac_ext\"") >&5
2115 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2117 egrep -v '^ *\+' conftest.er1 >conftest.err
2119 cat conftest.err >&5
2120 echo "$as_me:2120: \$? = $ac_status" >&5
2121 (exit $ac_status); } >/dev/null; then
2122 if test -s conftest.err; then
2123 ac_cpp_err=$ac_c_preproc_warn_flag
2130 if test -z "$ac_cpp_err"; then
2131 # Broken: success on invalid input.
2134 echo "$as_me: failed program was:" >&5
2135 cat conftest.$ac_ext >&5
2136 # Passes both tests.
2140 rm -f conftest.err conftest.$ac_ext
2143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2144 rm -f conftest.err conftest.$ac_ext
2145 if $ac_preproc_ok; then
2157 echo "$as_me:2157: result: $CPP" >&5
2158 echo "${ECHO_T}$CPP" >&6
2160 for ac_c_preproc_warn_flag in '' yes
2162 # Use a header file that comes with gcc, so configuring glibc
2163 # with a fresh cross-compiler works.
2164 # On the NeXT, cc -E runs the code through the compiler's parser,
2165 # not just through cpp. "Syntax error" is here to catch this case.
2166 cat >conftest.$ac_ext <<_ACEOF
2167 #line 2167 "configure"
2168 #include "confdefs.h"
2172 if { (eval echo "$as_me:2172: \"$ac_cpp conftest.$ac_ext\"") >&5
2173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2175 egrep -v '^ *\+' conftest.er1 >conftest.err
2177 cat conftest.err >&5
2178 echo "$as_me:2178: \$? = $ac_status" >&5
2179 (exit $ac_status); } >/dev/null; then
2180 if test -s conftest.err; then
2181 ac_cpp_err=$ac_c_preproc_warn_flag
2188 if test -z "$ac_cpp_err"; then
2191 echo "$as_me: failed program was:" >&5
2192 cat conftest.$ac_ext >&5
2193 # Broken: fails on valid input.
2196 rm -f conftest.err conftest.$ac_ext
2198 # OK, works on sane cases. Now check whether non-existent headers
2199 # can be detected and how.
2200 cat >conftest.$ac_ext <<_ACEOF
2201 #line 2201 "configure"
2202 #include "confdefs.h"
2203 #include <ac_nonexistent.h>
2205 if { (eval echo "$as_me:2205: \"$ac_cpp conftest.$ac_ext\"") >&5
2206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2208 egrep -v '^ *\+' conftest.er1 >conftest.err
2210 cat conftest.err >&5
2211 echo "$as_me:2211: \$? = $ac_status" >&5
2212 (exit $ac_status); } >/dev/null; then
2213 if test -s conftest.err; then
2214 ac_cpp_err=$ac_c_preproc_warn_flag
2221 if test -z "$ac_cpp_err"; then
2222 # Broken: success on invalid input.
2225 echo "$as_me: failed program was:" >&5
2226 cat conftest.$ac_ext >&5
2227 # Passes both tests.
2231 rm -f conftest.err conftest.$ac_ext
2234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2235 rm -f conftest.err conftest.$ac_ext
2236 if $ac_preproc_ok; then
2239 { { echo "$as_me:2239: error: C preprocessor \"$CPP\" fails sanity check" >&5
2240 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2241 { (exit 1); exit 1; }; }
2245 ac_cpp='$CPP $CPPFLAGS'
2246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2250 if test $ac_cv_c_compiler_gnu = yes; then
2251 echo "$as_me:2251: checking whether $CC needs -traditional" >&5
2252 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2253 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 ac_pattern="Autoconf.*'x'"
2257 cat >conftest.$ac_ext <<_ACEOF
2258 #line 2258 "configure"
2259 #include "confdefs.h"
2263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2264 egrep "$ac_pattern" >/dev/null 2>&1; then
2265 ac_cv_prog_gcc_traditional=yes
2267 ac_cv_prog_gcc_traditional=no
2271 if test $ac_cv_prog_gcc_traditional = no; then
2272 cat >conftest.$ac_ext <<_ACEOF
2273 #line 2273 "configure"
2274 #include "confdefs.h"
2278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2279 egrep "$ac_pattern" >/dev/null 2>&1; then
2280 ac_cv_prog_gcc_traditional=yes
2286 echo "$as_me:2286: result: $ac_cv_prog_gcc_traditional" >&5
2287 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2288 if test $ac_cv_prog_gcc_traditional = yes; then
2289 CC="$CC -traditional"
2293 echo "$as_me:2293: checking for POSIXized ISC" >&5
2294 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2295 if test -d /etc/conf/kconfig.d &&
2296 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2298 echo "$as_me:2298: result: yes" >&5
2299 echo "${ECHO_T}yes" >&6
2300 ISC=yes # If later tests want to check for ISC.
2302 cat >>confdefs.h <<\EOF
2303 #define _POSIX_SOURCE 1
2306 if test "$GCC" = yes; then
2312 echo "$as_me:2312: result: no" >&5
2313 echo "${ECHO_T}no" >&6
2317 echo "$as_me:2317: checking for ${CC-cc} option to accept ANSI C" >&5
2318 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2319 if test "${cf_cv_ansi_cc+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 cf_save_CFLAGS="$CFLAGS"
2325 cf_save_CPPFLAGS="$CPPFLAGS"
2326 # Don't try gcc -ansi; that turns off useful extensions and
2327 # breaks some systems' header files.
2328 # AIX -qlanglvl=ansi
2329 # Ultrix and OSF/1 -std1
2330 # HP-UX -Aa -D_HPUX_SOURCE
2332 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2333 for cf_arg in "-DCC_HAS_PROTOS" \
2338 "-Aa -D_HPUX_SOURCE" \
2344 for cf_add_cflags in $cf_arg
2346 case $cf_add_cflags in #(vi
2347 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2349 *$cf_add_cflags) #(vi
2352 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2357 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2362 if test -n "$cf_new_cflags" ; then
2364 CFLAGS="$CFLAGS $cf_new_cflags"
2367 if test -n "$cf_new_cppflags" ; then
2369 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2372 cat >conftest.$ac_ext <<_ACEOF
2373 #line 2373 "configure"
2374 #include "confdefs.h"
2376 #ifndef CC_HAS_PROTOS
2377 #if !defined(__STDC__) || (__STDC__ != 1)
2386 int test (int i, double x);
2387 struct s1 {int (*f) (int a);};
2388 struct s2 {int (*f) (double a);};
2393 rm -f conftest.$ac_objext
2394 if { (eval echo "$as_me:2394: \"$ac_compile\"") >&5
2395 (eval $ac_compile) 2>&5
2397 echo "$as_me:2397: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:2400: \"$ac_try\"") >&5
2403 echo "$as_me:2403: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 cf_cv_ansi_cc="$cf_arg"; break
2407 echo "$as_me: failed program was:" >&5
2408 cat conftest.$ac_ext >&5
2410 rm -f conftest.$ac_objext conftest.$ac_ext
2412 CFLAGS="$cf_save_CFLAGS"
2413 CPPFLAGS="$cf_save_CPPFLAGS"
2416 echo "$as_me:2416: result: $cf_cv_ansi_cc" >&5
2417 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2419 if test "$cf_cv_ansi_cc" != "no"; then
2420 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2424 for cf_add_cflags in $cf_cv_ansi_cc
2426 case $cf_add_cflags in #(vi
2427 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2429 *$cf_add_cflags) #(vi
2432 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2437 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2442 if test -n "$cf_new_cflags" ; then
2444 CFLAGS="$CFLAGS $cf_new_cflags"
2447 if test -n "$cf_new_cppflags" ; then
2449 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2453 cat >>confdefs.h <<\EOF
2454 #define CC_HAS_PROTOS 1
2460 if test "$cf_cv_ansi_cc" = "no"; then
2461 { { echo "$as_me:2461: error: Your compiler does not appear to recognize prototypes.
2462 You have the following choices:
2463 a. adjust your compiler options
2464 b. get an up-to-date compiler
2465 c. use a wrapper such as unproto" >&5
2466 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2467 You have the following choices:
2468 a. adjust your compiler options
2469 b. get an up-to-date compiler
2470 c. use a wrapper such as unproto" >&2;}
2471 { (exit 1); exit 1; }; }
2475 case $cf_cv_system_name in
2477 # We make sure -Zexe is not used -- it would interfere with @PROG_EXT@
2478 CFLAGS="$CFLAGS -Zmt"
2479 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2480 CXXFLAGS="$CXXFLAGS -Zmt"
2481 LDFLAGS=`echo "$LDFLAGS -Zmt -Zcrtdll" | sed "s/-Zexe//g"`
2489 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2490 #define PROG_EXT "$PROG_EXT"
2493 case "$cf_cv_system_name" in
2495 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2497 *) LDPATH=$PATH:/sbin:/usr/sbin
2498 # Extract the first word of "ldconfig", so it can be a program name with args.
2499 set dummy ldconfig; ac_word=$2
2500 echo "$as_me:2500: checking for $ac_word" >&5
2501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2502 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2510 ac_save_IFS=$IFS; IFS=$ac_path_separator
2512 for ac_dir in $ac_dummy; do
2514 test -z "$ac_dir" && ac_dir=.
2515 if $as_executable_p "$ac_dir/$ac_word"; then
2516 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2517 echo "$as_me:2517: found $ac_dir/$ac_word" >&5
2525 LDCONFIG=$ac_cv_path_LDCONFIG
2527 if test -n "$LDCONFIG"; then
2528 echo "$as_me:2528: result: $LDCONFIG" >&5
2529 echo "${ECHO_T}$LDCONFIG" >&6
2531 echo "$as_me:2531: result: no" >&5
2532 echo "${ECHO_T}no" >&6
2538 echo "$as_me:2538: checking if you want to ensure bool is consistent with C++" >&5
2539 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2541 # Check whether --with-cxx or --without-cxx was given.
2542 if test "${with_cxx+set}" = set; then
2544 cf_with_cxx=$withval
2548 echo "$as_me:2548: result: $cf_with_cxx" >&5
2549 echo "${ECHO_T}$cf_with_cxx" >&6
2550 if test "X$cf_with_cxx" = Xno ; then
2555 ac_cpp='$CXXCPP $CPPFLAGS'
2556 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2557 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2558 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2559 if test -n "$ac_tool_prefix"; then
2560 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2563 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2564 echo "$as_me:2564: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2566 if test "${ac_cv_prog_CXX+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 if test -n "$CXX"; then
2570 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2572 ac_save_IFS=$IFS; IFS=$ac_path_separator
2574 for ac_dir in $ac_dummy; do
2576 test -z "$ac_dir" && ac_dir=.
2577 $as_executable_p "$ac_dir/$ac_word" || continue
2578 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2579 echo "$as_me:2579: found $ac_dir/$ac_word" >&5
2586 if test -n "$CXX"; then
2587 echo "$as_me:2587: result: $CXX" >&5
2588 echo "${ECHO_T}$CXX" >&6
2590 echo "$as_me:2590: result: no" >&5
2591 echo "${ECHO_T}no" >&6
2594 test -n "$CXX" && break
2597 if test -z "$CXX"; then
2599 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2601 # Extract the first word of "$ac_prog", so it can be a program name with args.
2602 set dummy $ac_prog; ac_word=$2
2603 echo "$as_me:2603: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2605 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 if test -n "$ac_ct_CXX"; then
2609 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2611 ac_save_IFS=$IFS; IFS=$ac_path_separator
2613 for ac_dir in $ac_dummy; do
2615 test -z "$ac_dir" && ac_dir=.
2616 $as_executable_p "$ac_dir/$ac_word" || continue
2617 ac_cv_prog_ac_ct_CXX="$ac_prog"
2618 echo "$as_me:2618: found $ac_dir/$ac_word" >&5
2624 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2625 if test -n "$ac_ct_CXX"; then
2626 echo "$as_me:2626: result: $ac_ct_CXX" >&5
2627 echo "${ECHO_T}$ac_ct_CXX" >&6
2629 echo "$as_me:2629: result: no" >&5
2630 echo "${ECHO_T}no" >&6
2633 test -n "$ac_ct_CXX" && break
2635 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2640 # Provide some information about the compiler.
2641 echo "$as_me:2641:" \
2642 "checking for C++ compiler version" >&5
2643 ac_compiler=`set X $ac_compile; echo $2`
2644 { (eval echo "$as_me:2644: \"$ac_compiler --version </dev/null >&5\"") >&5
2645 (eval $ac_compiler --version </dev/null >&5) 2>&5
2647 echo "$as_me:2647: \$? = $ac_status" >&5
2648 (exit $ac_status); }
2649 { (eval echo "$as_me:2649: \"$ac_compiler -v </dev/null >&5\"") >&5
2650 (eval $ac_compiler -v </dev/null >&5) 2>&5
2652 echo "$as_me:2652: \$? = $ac_status" >&5
2653 (exit $ac_status); }
2654 { (eval echo "$as_me:2654: \"$ac_compiler -V </dev/null >&5\"") >&5
2655 (eval $ac_compiler -V </dev/null >&5) 2>&5
2657 echo "$as_me:2657: \$? = $ac_status" >&5
2658 (exit $ac_status); }
2660 echo "$as_me:2660: checking whether we are using the GNU C++ compiler" >&5
2661 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2662 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 cat >conftest.$ac_ext <<_ACEOF
2666 #line 2666 "configure"
2667 #include "confdefs.h"
2680 rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:2681: \"$ac_compile\"") >&5
2682 (eval $ac_compile) 2>&5
2684 echo "$as_me:2684: \$? = $ac_status" >&5
2685 (exit $ac_status); } &&
2686 { ac_try='test -s conftest.$ac_objext'
2687 { (eval echo "$as_me:2687: \"$ac_try\"") >&5
2690 echo "$as_me:2690: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2694 echo "$as_me: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2698 rm -f conftest.$ac_objext conftest.$ac_ext
2699 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2702 echo "$as_me:2702: result: $ac_cv_cxx_compiler_gnu" >&5
2703 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2704 GXX=`test $ac_compiler_gnu = yes && echo yes`
2705 ac_test_CXXFLAGS=${CXXFLAGS+set}
2706 ac_save_CXXFLAGS=$CXXFLAGS
2708 echo "$as_me:2708: checking whether $CXX accepts -g" >&5
2709 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2710 if test "${ac_cv_prog_cxx_g+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 cat >conftest.$ac_ext <<_ACEOF
2714 #line 2714 "configure"
2715 #include "confdefs.h"
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:2726: \"$ac_compile\"") >&5
2727 (eval $ac_compile) 2>&5
2729 echo "$as_me:2729: \$? = $ac_status" >&5
2730 (exit $ac_status); } &&
2731 { ac_try='test -s conftest.$ac_objext'
2732 { (eval echo "$as_me:2732: \"$ac_try\"") >&5
2735 echo "$as_me:2735: \$? = $ac_status" >&5
2736 (exit $ac_status); }; }; then
2737 ac_cv_prog_cxx_g=yes
2739 echo "$as_me: failed program was:" >&5
2740 cat conftest.$ac_ext >&5
2743 rm -f conftest.$ac_objext conftest.$ac_ext
2745 echo "$as_me:2745: result: $ac_cv_prog_cxx_g" >&5
2746 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2747 if test "$ac_test_CXXFLAGS" = set; then
2748 CXXFLAGS=$ac_save_CXXFLAGS
2749 elif test $ac_cv_prog_cxx_g = yes; then
2750 if test "$GXX" = yes; then
2756 if test "$GXX" = yes; then
2762 for ac_declaration in \
2764 '#include <stdlib.h>' \
2765 'extern "C" void std::exit (int) throw (); using std::exit;' \
2766 'extern "C" void std::exit (int); using std::exit;' \
2767 'extern "C" void exit (int) throw ();' \
2768 'extern "C" void exit (int);' \
2771 cat >conftest.$ac_ext <<_ACEOF
2772 #line 2772 "configure"
2773 #include "confdefs.h"
2784 rm -f conftest.$ac_objext
2785 if { (eval echo "$as_me:2785: \"$ac_compile\"") >&5
2786 (eval $ac_compile) 2>&5
2788 echo "$as_me:2788: \$? = $ac_status" >&5
2789 (exit $ac_status); } &&
2790 { ac_try='test -s conftest.$ac_objext'
2791 { (eval echo "$as_me:2791: \"$ac_try\"") >&5
2794 echo "$as_me:2794: \$? = $ac_status" >&5
2795 (exit $ac_status); }; }; then
2798 echo "$as_me: failed program was:" >&5
2799 cat conftest.$ac_ext >&5
2802 rm -f conftest.$ac_objext conftest.$ac_ext
2803 cat >conftest.$ac_ext <<_ACEOF
2804 #line 2804 "configure"
2805 #include "confdefs.h"
2815 rm -f conftest.$ac_objext
2816 if { (eval echo "$as_me:2816: \"$ac_compile\"") >&5
2817 (eval $ac_compile) 2>&5
2819 echo "$as_me:2819: \$? = $ac_status" >&5
2820 (exit $ac_status); } &&
2821 { ac_try='test -s conftest.$ac_objext'
2822 { (eval echo "$as_me:2822: \"$ac_try\"") >&5
2825 echo "$as_me:2825: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2829 echo "$as_me: failed program was:" >&5
2830 cat conftest.$ac_ext >&5
2832 rm -f conftest.$ac_objext conftest.$ac_ext
2835 if test -n "$ac_declaration"; then
2836 echo '#ifdef __cplusplus' >>confdefs.h
2837 echo $ac_declaration >>confdefs.h
2838 echo '#endif' >>confdefs.h
2842 ac_cpp='$CPP $CPPFLAGS'
2843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850 if test "$GXX" = yes; then
2851 echo "$as_me:2851: checking version of g++" >&5
2852 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
2853 GXX_VERSION="`${CXX-g++} --version|head -1`"
2854 echo "$as_me:2854: result: $GXX_VERSION" >&5
2855 echo "${ECHO_T}$GXX_VERSION" >&6
2856 case $GXX_VERSION in
2858 GXX=""; CXX=""; ac_cv_cxx_compiler_gnu=no
2860 { echo "$as_me:2860: WARNING: templates do not work" >&5
2861 echo "$as_me: WARNING: templates do not work" >&2;}
2866 echo "$as_me:2866: checking if you want to build C++ binding and demo" >&5
2867 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
2869 # Check whether --with-cxx-binding or --without-cxx-binding was given.
2870 if test "${with_cxx_binding+set}" = set; then
2871 withval="$with_cxx_binding"
2872 cf_with_cxx_binding=$withval
2874 cf_with_cxx_binding=$cf_with_cxx
2876 echo "$as_me:2876: result: $cf_with_cxx_binding" >&5
2877 echo "${ECHO_T}$cf_with_cxx_binding" >&6
2879 echo "$as_me:2879: checking if you want to build with Ada95" >&5
2880 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
2882 # Check whether --with-ada or --without-ada was given.
2883 if test "${with_ada+set}" = set; then
2885 cf_with_ada=$withval
2889 echo "$as_me:2889: result: $cf_with_ada" >&5
2890 echo "${ECHO_T}$cf_with_ada" >&6
2892 echo "$as_me:2892: checking if you want to build programs such as tic" >&5
2893 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
2895 # Check whether --with-progs or --without-progs was given.
2896 if test "${with_progs+set}" = set; then
2897 withval="$with_progs"
2898 cf_with_progs=$withval
2902 echo "$as_me:2902: result: $cf_with_progs" >&5
2903 echo "${ECHO_T}$cf_with_progs" >&6
2905 echo "$as_me:2905: checking if you wish to install curses.h" >&5
2906 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
2908 # Check whether --with-curses-h or --without-curses-h was given.
2909 if test "${with_curses_h+set}" = set; then
2910 withval="$with_curses_h"
2911 with_curses_h=$withval
2915 echo "$as_me:2915: result: $with_curses_h" >&5
2916 echo "${ECHO_T}$with_curses_h" >&6
2918 modules_to_build="ncurses"
2919 if test "X$cf_with_progs" != Xno ; then
2920 modules_to_build="$modules_to_build progs tack"
2922 modules_to_build="$modules_to_build panel menu form"
2924 test "$program_prefix" != NONE &&
2925 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2926 # Use a double $ so make ignores it.
2927 test "$program_suffix" != NONE &&
2928 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2929 # Double any \ or $. echo might interpret backslashes.
2930 # By default was `s,x,x', remove it if useless.
2931 cat <<\_ACEOF >conftest.sed
2932 s/[\\$]/&&/g;s/;s,x,x,$//
2934 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2937 for ac_prog in mawk gawk nawk awk
2939 # Extract the first word of "$ac_prog", so it can be a program name with args.
2940 set dummy $ac_prog; ac_word=$2
2941 echo "$as_me:2941: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2943 if test "${ac_cv_prog_AWK+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 if test -n "$AWK"; then
2947 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2949 ac_save_IFS=$IFS; IFS=$ac_path_separator
2951 for ac_dir in $ac_dummy; do
2953 test -z "$ac_dir" && ac_dir=.
2954 $as_executable_p "$ac_dir/$ac_word" || continue
2955 ac_cv_prog_AWK="$ac_prog"
2956 echo "$as_me:2956: found $ac_dir/$ac_word" >&5
2963 if test -n "$AWK"; then
2964 echo "$as_me:2964: result: $AWK" >&5
2965 echo "${ECHO_T}$AWK" >&6
2967 echo "$as_me:2967: result: no" >&5
2968 echo "${ECHO_T}no" >&6
2971 test -n "$AWK" && break
2974 echo "$as_me:2974: checking whether ${MAKE-make} sets \${MAKE}" >&5
2975 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2976 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2977 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 cat >conftest.make <<\EOF
2982 @echo 'ac_maketemp="${MAKE}"'
2984 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2985 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2986 if test -n "$ac_maketemp"; then
2987 eval ac_cv_prog_make_${ac_make}_set=yes
2989 eval ac_cv_prog_make_${ac_make}_set=no
2993 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2994 echo "$as_me:2994: result: yes" >&5
2995 echo "${ECHO_T}yes" >&6
2998 echo "$as_me:2998: result: no" >&5
2999 echo "${ECHO_T}no" >&6
3000 SET_MAKE="MAKE=${MAKE-make}"
3003 # Find a good install program. We prefer a C program (faster),
3004 # so one script is as good as another. But avoid the broken or
3005 # incompatible versions:
3006 # SysV /etc/install, /usr/sbin/install
3007 # SunOS /usr/etc/install
3008 # IRIX /sbin/install
3010 # AmigaOS /C/install, which installs bootblocks on floppy discs
3011 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3012 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3013 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3014 # ./install, which can be erroneously created by make from ./install.sh.
3015 echo "$as_me:3015: checking for a BSD compatible install" >&5
3016 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3017 if test -z "$INSTALL"; then
3018 if test "${ac_cv_path_install+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 ac_save_IFS=$IFS; IFS=$ac_path_separator
3022 for ac_dir in $PATH; do
3024 # Account for people who put trailing slashes in PATH elements.
3026 / | ./ | .// | /cC/* \
3027 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3030 # OSF1 and SCO ODT 3.0 have their own names for install.
3031 # Don't use installbsd from OSF since it installs stuff as root
3033 for ac_prog in ginstall scoinst install; do
3034 if $as_executable_p "$ac_dir/$ac_prog"; then
3035 if test $ac_prog = install &&
3036 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3037 # AIX install. It has an incompatible calling convention.
3039 elif test $ac_prog = install &&
3040 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3041 # program-specific install script used by HP pwplus--don't use.
3044 ac_cv_path_install="$ac_dir/$ac_prog -c"
3054 if test "${ac_cv_path_install+set}" = set; then
3055 INSTALL=$ac_cv_path_install
3057 # As a last resort, use the slow shell script. We don't cache a
3058 # path for INSTALL within a source directory, because that will
3059 # break other packages using the cache if that directory is
3060 # removed, or if the path is relative.
3061 INSTALL=$ac_install_sh
3064 echo "$as_me:3064: result: $INSTALL" >&5
3065 echo "${ECHO_T}$INSTALL" >&6
3067 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3068 # It thinks the first close brace ends the variable substitution.
3069 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3071 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3073 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3079 cf_dir=`echo $INSTALL | sed -e 's:/[^/]*$::'`
3080 test -z "$cf_dir" && cf_dir=.
3081 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's:^.*/::'`
3085 echo "$as_me:3085: checking for long file names" >&5
3086 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3087 if test "${ac_cv_sys_long_file_names+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 ac_cv_sys_long_file_names=yes
3091 # Test for long file names in all the places we know might matter:
3092 # . the current directory, where building will happen
3093 # $prefix/lib where we will be installing things
3094 # $exec_prefix/lib likewise
3095 # eval it to expand exec_prefix.
3096 # $TMPDIR if set, where it might want to write temporary files
3097 # if $TMPDIR is not set:
3098 # /tmp where it might want to write temporary files
3101 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3104 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3106 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3107 test -d $ac_dir || continue
3108 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3109 ac_xdir=$ac_dir/cf$$
3110 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3111 ac_tf1=$ac_xdir/conftest9012345
3112 ac_tf2=$ac_xdir/conftest9012346
3113 (echo 1 >$ac_tf1) 2>/dev/null
3114 (echo 2 >$ac_tf2) 2>/dev/null
3115 ac_val=`cat $ac_tf1 2>/dev/null`
3116 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3117 ac_cv_sys_long_file_names=no
3118 rm -rf $ac_xdir 2>/dev/null
3121 rm -rf $ac_xdir 2>/dev/null
3124 echo "$as_me:3124: result: $ac_cv_sys_long_file_names" >&5
3125 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3126 if test $ac_cv_sys_long_file_names = yes; then
3128 cat >>confdefs.h <<\EOF
3129 #define HAVE_LONG_FILE_NAMES 1
3134 echo "$as_me:3134: checking if filesystem supports mixed-case filenames" >&5
3135 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3136 if test "${cf_cv_mixedcase+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3140 rm -f conftest CONFTEST
3142 if test -f CONFTEST ; then
3147 rm -f conftest CONFTEST
3150 echo "$as_me:3150: result: $cf_cv_mixedcase" >&5
3151 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3152 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3153 #define MIXEDCASE_FILENAMES 1
3156 echo "$as_me:3156: checking whether ln -s works" >&5
3157 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3159 if test "$LN_S" = "ln -s"; then
3160 echo "$as_me:3160: result: yes" >&5
3161 echo "${ECHO_T}yes" >&6
3163 echo "$as_me:3163: result: no, using $LN_S" >&5
3164 echo "${ECHO_T}no, using $LN_S" >&6
3167 if test -n "$ac_tool_prefix"; then
3168 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3169 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3170 echo "$as_me:3170: checking for $ac_word" >&5
3171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3172 if test "${ac_cv_prog_RANLIB+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 if test -n "$RANLIB"; then
3176 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3178 ac_save_IFS=$IFS; IFS=$ac_path_separator
3180 for ac_dir in $ac_dummy; do
3182 test -z "$ac_dir" && ac_dir=.
3183 $as_executable_p "$ac_dir/$ac_word" || continue
3184 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3185 echo "$as_me:3185: found $ac_dir/$ac_word" >&5
3191 RANLIB=$ac_cv_prog_RANLIB
3192 if test -n "$RANLIB"; then
3193 echo "$as_me:3193: result: $RANLIB" >&5
3194 echo "${ECHO_T}$RANLIB" >&6
3196 echo "$as_me:3196: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3201 if test -z "$ac_cv_prog_RANLIB"; then
3202 ac_ct_RANLIB=$RANLIB
3203 # Extract the first word of "ranlib", so it can be a program name with args.
3204 set dummy ranlib; ac_word=$2
3205 echo "$as_me:3205: checking for $ac_word" >&5
3206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 if test -n "$ac_ct_RANLIB"; then
3211 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3213 ac_save_IFS=$IFS; IFS=$ac_path_separator
3215 for ac_dir in $ac_dummy; do
3217 test -z "$ac_dir" && ac_dir=.
3218 $as_executable_p "$ac_dir/$ac_word" || continue
3219 ac_cv_prog_ac_ct_RANLIB="ranlib"
3220 echo "$as_me:3220: found $ac_dir/$ac_word" >&5
3224 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3228 if test -n "$ac_ct_RANLIB"; then
3229 echo "$as_me:3229: result: $ac_ct_RANLIB" >&5
3230 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3232 echo "$as_me:3232: result: no" >&5
3233 echo "${ECHO_T}no" >&6
3236 RANLIB=$ac_ct_RANLIB
3238 RANLIB="$ac_cv_prog_RANLIB"
3241 # Extract the first word of "ctags", so it can be a program name with args.
3242 set dummy ctags; ac_word=$2
3243 echo "$as_me:3243: checking for $ac_word" >&5
3244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3245 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 if test -n "$MAKE_LOWER_TAGS"; then
3249 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3251 ac_save_IFS=$IFS; IFS=$ac_path_separator
3253 for ac_dir in $ac_dummy; do
3255 test -z "$ac_dir" && ac_dir=.
3256 $as_executable_p "$ac_dir/$ac_word" || continue
3257 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3258 echo "$as_me:3258: found $ac_dir/$ac_word" >&5
3262 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3265 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3266 if test -n "$MAKE_LOWER_TAGS"; then
3267 echo "$as_me:3267: result: $MAKE_LOWER_TAGS" >&5
3268 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3270 echo "$as_me:3270: result: no" >&5
3271 echo "${ECHO_T}no" >&6
3274 if test "$cf_cv_mixedcase" = yes ; then
3275 # Extract the first word of "etags", so it can be a program name with args.
3276 set dummy etags; ac_word=$2
3277 echo "$as_me:3277: checking for $ac_word" >&5
3278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3279 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 if test -n "$MAKE_UPPER_TAGS"; then
3283 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3285 ac_save_IFS=$IFS; IFS=$ac_path_separator
3287 for ac_dir in $ac_dummy; do
3289 test -z "$ac_dir" && ac_dir=.
3290 $as_executable_p "$ac_dir/$ac_word" || continue
3291 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3292 echo "$as_me:3292: found $ac_dir/$ac_word" >&5
3296 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3299 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3300 if test -n "$MAKE_UPPER_TAGS"; then
3301 echo "$as_me:3301: result: $MAKE_UPPER_TAGS" >&5
3302 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3304 echo "$as_me:3304: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3312 if test "$MAKE_UPPER_TAGS" = yes ; then
3318 if test "$MAKE_LOWER_TAGS" = yes ; then
3324 for ac_prog in tdlint lint alint
3326 # Extract the first word of "$ac_prog", so it can be a program name with args.
3327 set dummy $ac_prog; ac_word=$2
3328 echo "$as_me:3328: checking for $ac_word" >&5
3329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3330 if test "${ac_cv_prog_LINT+set}" = set; then
3331 echo $ECHO_N "(cached) $ECHO_C" >&6
3333 if test -n "$LINT"; then
3334 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3336 ac_save_IFS=$IFS; IFS=$ac_path_separator
3338 for ac_dir in $ac_dummy; do
3340 test -z "$ac_dir" && ac_dir=.
3341 $as_executable_p "$ac_dir/$ac_word" || continue
3342 ac_cv_prog_LINT="$ac_prog"
3343 echo "$as_me:3343: found $ac_dir/$ac_word" >&5
3349 LINT=$ac_cv_prog_LINT
3350 if test -n "$LINT"; then
3351 echo "$as_me:3351: result: $LINT" >&5
3352 echo "${ECHO_T}$LINT" >&6
3354 echo "$as_me:3354: result: no" >&5
3355 echo "${ECHO_T}no" >&6
3358 test -n "$LINT" && break
3361 for ac_prog in man man_db
3363 # Extract the first word of "$ac_prog", so it can be a program name with args.
3364 set dummy $ac_prog; ac_word=$2
3365 echo "$as_me:3365: checking for $ac_word" >&5
3366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3367 if test "${ac_cv_prog_MAN+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 if test -n "$MAN"; then
3371 ac_cv_prog_MAN="$MAN" # Let the user override the test.
3373 ac_save_IFS=$IFS; IFS=$ac_path_separator
3375 for ac_dir in $ac_dummy; do
3377 test -z "$ac_dir" && ac_dir=.
3378 $as_executable_p "$ac_dir/$ac_word" || continue
3379 ac_cv_prog_MAN="$ac_prog"
3380 echo "$as_me:3380: found $ac_dir/$ac_word" >&5
3387 if test -n "$MAN"; then
3388 echo "$as_me:3388: result: $MAN" >&5
3389 echo "${ECHO_T}$MAN" >&6
3391 echo "$as_me:3391: result: no" >&5
3392 echo "${ECHO_T}no" >&6
3395 test -n "$MAN" && break
3398 if test "${cf_cv_subst_LD+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 echo "$as_me:3402: checking for loader (symbol LD)" >&5
3403 echo $ECHO_N "checking for loader (symbol LD)... $ECHO_C" >&6
3404 test -z "$LD" && LD=ld
3405 echo "$as_me:3405: result: $LD" >&5
3406 echo "${ECHO_T}$LD" >&6
3411 LD=${cf_cv_subst_LD}
3413 if test "${cf_cv_subst_AR+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 echo "$as_me:3417: checking for archiver (symbol AR)" >&5
3418 echo $ECHO_N "checking for archiver (symbol AR)... $ECHO_C" >&6
3419 test -z "$AR" && AR=ar
3420 echo "$as_me:3420: result: $AR" >&5
3421 echo "${ECHO_T}$AR" >&6
3426 AR=${cf_cv_subst_AR}
3428 if test "${cf_cv_subst_AR_OPTS+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 echo "$as_me:3432: checking for archiver options (symbol AR_OPTS)" >&5
3433 echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
3434 test -z "$AR_OPTS" && AR_OPTS=rv
3435 echo "$as_me:3435: result: $AR_OPTS" >&5
3436 echo "${ECHO_T}$AR_OPTS" >&6
3438 cf_cv_subst_AR_OPTS=$AR_OPTS
3441 AR_OPTS=${cf_cv_subst_AR_OPTS}
3443 echo "$as_me:3443: checking for makeflags variable" >&5
3444 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3445 if test "${cf_cv_makeflags+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 for cf_option in '-$(MAKEFLAGS)' '$(MFLAGS)'
3452 cat >cf_makeflags.tmp <<CF_EOF
3455 @ echo '.$cf_option'
3457 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null`
3458 case "$cf_result" in
3460 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3461 case "$cf_result" in
3462 .*CC=*) cf_cv_makeflags=
3464 *) cf_cv_makeflags=$cf_option
3469 *) echo no match "$cf_result"
3473 rm -f cf_makeflags.tmp
3476 echo "$as_me:3476: result: $cf_cv_makeflags" >&5
3477 echo "${ECHO_T}$cf_cv_makeflags" >&6
3479 echo "$as_me:3479: checking if you have specified an install-prefix" >&5
3480 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3482 # Check whether --with-install-prefix or --without-install-prefix was given.
3483 if test "${with_install_prefix+set}" = set; then
3484 withval="$with_install_prefix"
3485 case "$withval" in #(vi
3488 *) DESTDIR="$withval"
3492 echo "$as_me:3492: result: $DESTDIR" >&5
3493 echo "${ECHO_T}$DESTDIR" >&6
3495 ###############################################################################
3497 ### Options to allow the user to specify the set of libraries which are used.
3498 ### Use "--without-normal --with-shared" to allow the default model to be
3499 ### shared, for example.
3502 echo "$as_me:3502: checking if you want to build libraries with libtool" >&5
3503 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
3505 # Check whether --with-libtool or --without-libtool was given.
3506 if test "${with_libtool+set}" = set; then
3507 withval="$with_libtool"
3508 with_libtool=$withval
3512 echo "$as_me:3512: result: $with_libtool" >&5
3513 echo "${ECHO_T}$with_libtool" >&6
3514 if test "$with_libtool" = "yes"; then
3515 cf_list_models="$cf_list_models libtool"
3516 test -z "$LIBTOOL" && LIBTOOL=libtool
3521 echo "$as_me:3521: checking if you want to build shared libraries" >&5
3522 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
3524 # Check whether --with-shared or --without-shared was given.
3525 if test "${with_shared+set}" = set; then
3526 withval="$with_shared"
3527 with_shared=$withval
3531 echo "$as_me:3531: result: $with_shared" >&5
3532 echo "${ECHO_T}$with_shared" >&6
3533 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3535 echo "$as_me:3535: checking if you want to build static libraries" >&5
3536 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
3538 # Check whether --with-normal or --without-normal was given.
3539 if test "${with_normal+set}" = set; then
3540 withval="$with_normal"
3541 with_normal=$withval
3545 echo "$as_me:3545: result: $with_normal" >&5
3546 echo "${ECHO_T}$with_normal" >&6
3547 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
3549 echo "$as_me:3549: checking if you want to build debug libraries" >&5
3550 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
3552 # Check whether --with-debug or --without-debug was given.
3553 if test "${with_debug+set}" = set; then
3554 withval="$with_debug"
3559 echo "$as_me:3559: result: $with_debug" >&5
3560 echo "${ECHO_T}$with_debug" >&6
3561 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
3563 echo "$as_me:3563: checking if you want to build profiling libraries" >&5
3564 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
3566 # Check whether --with-profile or --without-profile was given.
3567 if test "${with_profile+set}" = set; then
3568 withval="$with_profile"
3569 with_profile=$withval
3573 echo "$as_me:3573: result: $with_profile" >&5
3574 echo "${ECHO_T}$with_profile" >&6
3575 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
3577 ###############################################################################
3579 echo "$as_me:3579: checking for specified models" >&5
3580 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3581 test -z "$cf_list_models" && cf_list_models=normal
3582 test "$with_libtool" = "yes" && cf_list_models=libtool
3583 echo "$as_me:3583: result: $cf_list_models" >&5
3584 echo "${ECHO_T}$cf_list_models" >&6
3586 ### Use the first model as the default, and save its suffix for use in building
3587 ### up test-applications.
3588 echo "$as_me:3588: checking for default model" >&5
3589 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3590 DFT_LWR_MODEL=`echo $cf_list_models | $AWK '{print $1}'`
3591 echo "$as_me:3591: result: $DFT_LWR_MODEL" >&5
3592 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3594 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3602 case $cf_cv_system_name in
3603 OS/2*) LIB_PREFIX='' ;;
3604 os2*) LIB_PREFIX='' ;;
3605 *) LIB_PREFIX='lib' ;;
3607 cf_prefix=$LIB_PREFIX
3609 LIB_PREFIX=$cf_prefix
3613 ###############################################################################
3615 echo "$as_me:3615: checking if you want to build a separate terminfo library" >&5
3616 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
3618 # Check whether --with-termlib or --without-termlib was given.
3619 if test "${with_termlib+set}" = set; then
3620 withval="$with_termlib"
3621 with_termlib=$withval
3625 echo "$as_me:3625: result: $with_termlib" >&5
3626 echo "${ECHO_T}$with_termlib" >&6
3628 ### Checks for special libraries, must be done up-front.
3629 echo "$as_me:3629: checking if you want to link with dbmalloc for testing" >&5
3630 echo $ECHO_N "checking if you want to link with dbmalloc for testing... $ECHO_C" >&6
3632 # Check whether --with-dbmalloc or --without-dbmalloc was given.
3633 if test "${with_dbmalloc+set}" = set; then
3634 withval="$with_dbmalloc"
3635 with_dbmalloc=$withval
3639 echo "$as_me:3639: result: $with_dbmalloc" >&5
3640 echo "${ECHO_T}$with_dbmalloc" >&6
3641 if test "$with_dbmalloc" = yes ; then
3643 echo "$as_me:3643: checking for debug_malloc in -ldbmalloc" >&5
3644 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
3645 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 ac_check_lib_save_LIBS=$LIBS
3649 LIBS="-ldbmalloc $LIBS"
3650 cat >conftest.$ac_ext <<_ACEOF
3651 #line 3651 "configure"
3652 #include "confdefs.h"
3654 /* Override any gcc2 internal prototype to avoid an error. */
3658 /* We use char because int might match the return type of a gcc2
3659 builtin and then its argument prototype would still apply. */
3660 char debug_malloc ();
3669 rm -f conftest.$ac_objext conftest$ac_exeext
3670 if { (eval echo "$as_me:3670: \"$ac_link\"") >&5
3671 (eval $ac_link) 2>&5
3673 echo "$as_me:3673: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -s conftest$ac_exeext'
3676 { (eval echo "$as_me:3676: \"$ac_try\"") >&5
3679 echo "$as_me:3679: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_cv_lib_dbmalloc_debug_malloc=yes
3683 echo "$as_me: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3685 ac_cv_lib_dbmalloc_debug_malloc=no
3687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3688 LIBS=$ac_check_lib_save_LIBS
3690 echo "$as_me:3690: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
3691 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
3692 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
3693 cat >>confdefs.h <<EOF
3694 #define HAVE_LIBDBMALLOC 1
3697 LIBS="-ldbmalloc $LIBS"
3703 echo "$as_me:3703: checking if you want to link with dmalloc for testing" >&5
3704 echo $ECHO_N "checking if you want to link with dmalloc for testing... $ECHO_C" >&6
3706 # Check whether --with-dmalloc or --without-dmalloc was given.
3707 if test "${with_dmalloc+set}" = set; then
3708 withval="$with_dmalloc"
3709 with_dmalloc=$withval
3713 echo "$as_me:3713: result: $with_dmalloc" >&5
3714 echo "${ECHO_T}$with_dmalloc" >&6
3715 if test "$with_dmalloc" = yes ; then
3717 echo "$as_me:3717: checking for dmalloc_debug in -ldmalloc" >&5
3718 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
3719 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3722 ac_check_lib_save_LIBS=$LIBS
3723 LIBS="-ldmalloc $LIBS"
3724 cat >conftest.$ac_ext <<_ACEOF
3725 #line 3725 "configure"
3726 #include "confdefs.h"
3728 /* Override any gcc2 internal prototype to avoid an error. */
3732 /* We use char because int might match the return type of a gcc2
3733 builtin and then its argument prototype would still apply. */
3734 char dmalloc_debug ();
3743 rm -f conftest.$ac_objext conftest$ac_exeext
3744 if { (eval echo "$as_me:3744: \"$ac_link\"") >&5
3745 (eval $ac_link) 2>&5
3747 echo "$as_me:3747: \$? = $ac_status" >&5
3748 (exit $ac_status); } &&
3749 { ac_try='test -s conftest$ac_exeext'
3750 { (eval echo "$as_me:3750: \"$ac_try\"") >&5
3753 echo "$as_me:3753: \$? = $ac_status" >&5
3754 (exit $ac_status); }; }; then
3755 ac_cv_lib_dmalloc_dmalloc_debug=yes
3757 echo "$as_me: failed program was:" >&5
3758 cat conftest.$ac_ext >&5
3759 ac_cv_lib_dmalloc_dmalloc_debug=no
3761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3762 LIBS=$ac_check_lib_save_LIBS
3764 echo "$as_me:3764: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
3765 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
3766 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
3767 cat >>confdefs.h <<EOF
3768 #define HAVE_LIBDMALLOC 1
3771 LIBS="-ldmalloc $LIBS"
3778 echo "$as_me:3778: checking if you want to link with the gpm mouse library" >&5
3779 echo $ECHO_N "checking if you want to link with the gpm mouse library... $ECHO_C" >&6
3781 # Check whether --with-gpm or --without-gpm was given.
3782 if test "${with_gpm+set}" = set; then
3788 echo "$as_me:3788: result: $with_gpm" >&5
3789 echo "${ECHO_T}$with_gpm" >&6
3790 if test "$with_gpm" = yes ; then
3791 echo "$as_me:3791: checking for Gpm_Open in -lgpm" >&5
3792 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
3793 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 ac_check_lib_save_LIBS=$LIBS
3798 cat >conftest.$ac_ext <<_ACEOF
3799 #line 3799 "configure"
3800 #include "confdefs.h"
3802 /* Override any gcc2 internal prototype to avoid an error. */
3806 /* We use char because int might match the return type of a gcc2
3807 builtin and then its argument prototype would still apply. */
3817 rm -f conftest.$ac_objext conftest$ac_exeext
3818 if { (eval echo "$as_me:3818: \"$ac_link\"") >&5
3819 (eval $ac_link) 2>&5
3821 echo "$as_me:3821: \$? = $ac_status" >&5
3822 (exit $ac_status); } &&
3823 { ac_try='test -s conftest$ac_exeext'
3824 { (eval echo "$as_me:3824: \"$ac_try\"") >&5
3827 echo "$as_me:3827: \$? = $ac_status" >&5
3828 (exit $ac_status); }; }; then
3829 ac_cv_lib_gpm_Gpm_Open=yes
3831 echo "$as_me: failed program was:" >&5
3832 cat conftest.$ac_ext >&5
3833 ac_cv_lib_gpm_Gpm_Open=no
3835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3836 LIBS=$ac_check_lib_save_LIBS
3838 echo "$as_me:3838: result: $ac_cv_lib_gpm_Gpm_Open" >&5
3839 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
3840 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
3842 EXTRA_LIBS="-lgpm -lncurses $EXTRA_LIBS"
3843 SHLIB_LIST="-lgpm $SHLIB_LIST"
3844 cat >>confdefs.h <<\EOF
3845 #define HAVE_LIBGPM 1
3848 for ac_header in gpm.h
3850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3851 echo "$as_me:3851: checking for $ac_header" >&5
3852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3856 cat >conftest.$ac_ext <<_ACEOF
3857 #line 3857 "configure"
3858 #include "confdefs.h"
3859 #include <$ac_header>
3861 if { (eval echo "$as_me:3861: \"$ac_cpp conftest.$ac_ext\"") >&5
3862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3864 egrep -v '^ *\+' conftest.er1 >conftest.err
3866 cat conftest.err >&5
3867 echo "$as_me:3867: \$? = $ac_status" >&5
3868 (exit $ac_status); } >/dev/null; then
3869 if test -s conftest.err; then
3870 ac_cpp_err=$ac_c_preproc_warn_flag
3877 if test -z "$ac_cpp_err"; then
3878 eval "$as_ac_Header=yes"
3880 echo "$as_me: failed program was:" >&5
3881 cat conftest.$ac_ext >&5
3882 eval "$as_ac_Header=no"
3884 rm -f conftest.err conftest.$ac_ext
3886 echo "$as_me:3886: result: `eval echo '${'$as_ac_Header'}'`" >&5
3887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3889 cat >>confdefs.h <<EOF
3890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3897 { echo "$as_me:3897: WARNING: Cannot link with gpm library - read the FAQ" >&5
3898 echo "$as_me: WARNING: Cannot link with gpm library - read the FAQ" >&2;}
3903 if test X"$CC_G_OPT" = X"" ; then
3905 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
3908 if test X"$CXX_G_OPT" = X"" ; then
3910 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
3913 echo "$as_me:3913: checking for default loader flags" >&5
3914 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
3915 case $DFT_LWR_MODEL in
3916 libtool) LD_MODEL='' ;;
3917 normal) LD_MODEL='' ;;
3918 debug) LD_MODEL=$CC_G_OPT ;;
3919 profile) LD_MODEL='-pg';;
3920 shared) LD_MODEL='' ;;
3922 echo "$as_me:3922: result: $LD_MODEL" >&5
3923 echo "${ECHO_T}$LD_MODEL" >&6
3925 echo "$as_me:3925: checking if rpath option should be used" >&5
3926 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
3928 # Check whether --enable-rpath or --disable-rpath was given.
3929 if test "${enable_rpath+set}" = set; then
3930 enableval="$enable_rpath"
3931 cf_cv_ld_rpath=$enableval
3935 echo "$as_me:3935: result: $cf_cv_ld_rpath" >&5
3936 echo "${ECHO_T}$cf_cv_ld_rpath" >&6
3941 INSTALL_LIB="-m 644"
3943 cf_cv_do_symlinks=no
3945 echo "$as_me:3945: checking if release/abi version should be used for shared libs" >&5
3946 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
3948 # Check whether --with-shlib-version or --without-shlib-version was given.
3949 if test "${with_shlib_version+set}" = set; then
3950 withval="$with_shlib_version"
3951 test -z "$withval" && withval=auto
3952 case $withval in #(vi
3954 cf_cv_shlib_version=auto
3956 rel|abi|auto|no) #(vi
3957 cf_cv_shlib_version=$withval
3960 { { echo "$as_me:3960: error: option value must be one of: rel, abi, auto or no" >&5
3961 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
3962 { (exit 1); exit 1; }; }
3967 cf_cv_shlib_version=auto
3969 echo "$as_me:3969: result: $cf_cv_shlib_version" >&5
3970 echo "${ECHO_T}$cf_cv_shlib_version" >&6
3974 # Some less-capable ports of gcc support only -fpic
3976 if test "$GCC" = yes
3978 echo "$as_me:3978: checking which $CC option to use" >&5
3979 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
3980 cf_save_CFLAGS="$CFLAGS"
3981 for CC_SHARED_OPTS in -fPIC -fpic ''
3983 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
3984 cat >conftest.$ac_ext <<_ACEOF
3985 #line 3985 "configure"
3986 #include "confdefs.h"
3996 rm -f conftest.$ac_objext
3997 if { (eval echo "$as_me:3997: \"$ac_compile\"") >&5
3998 (eval $ac_compile) 2>&5
4000 echo "$as_me:4000: \$? = $ac_status" >&5
4001 (exit $ac_status); } &&
4002 { ac_try='test -s conftest.$ac_objext'
4003 { (eval echo "$as_me:4003: \"$ac_try\"") >&5
4006 echo "$as_me:4006: \$? = $ac_status" >&5
4007 (exit $ac_status); }; }; then
4010 echo "$as_me: failed program was:" >&5
4011 cat conftest.$ac_ext >&5
4013 rm -f conftest.$ac_objext conftest.$ac_ext
4015 echo "$as_me:4015: result: $CC_SHARED_OPTS" >&5
4016 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
4017 CFLAGS="$cf_save_CFLAGS"
4020 cf_cv_shlib_version_infix=no
4022 case $cf_cv_system_name in
4024 MK_SHARED_LIB='$(CC) -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
4028 MK_SHARED_LIB='$(CC) -shared -Wl,--out-implib=$(IMPORT_LIB) -Wl,--export-all-symbols -o $(SHARED_LIB)'
4029 cf_cv_shlib_version=cygdll
4030 cf_cv_shlib_version_infix=cygdll
4033 EXTRA_CFLAGS="-no-cpp-precomp"
4034 CC_SHARED_OPTS="-dynamic"
4035 MK_SHARED_LIB='$(CC) -dynamiclib -install_name $(DESTDIR)$(libdir)/`basename $@` -compatibility_version $(ABI_VERSION) -current_version $(ABI_VERSION) -o $@'
4036 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
4037 cf_cv_shlib_version_infix=yes
4040 # (tested with gcc 2.7.2 -- I don't have c89)
4041 if test "$GCC" = yes; then
4042 LD_SHARED_OPTS='-Xlinker +b -Xlinker $(libdir)'
4045 LD_SHARED_OPTS='-Wl,+b,$(libdir)'
4047 MK_SHARED_LIB='$(LD) +b $(libdir) -b -o $@'
4048 # HP-UX shared libraries must be executable, and should be
4049 # readonly to exploit a quirk in the memory manager.
4050 INSTALL_LIB="-m 555"
4053 if test "$cf_cv_ld_rpath" = yes ; then
4054 cf_ld_rpath_opt="-Wl,-rpath,"
4055 EXTRA_LDFLAGS="-Wl,-rpath,\$(libdir) $EXTRA_LDFLAGS"
4057 # tested with IRIX 5.2 and 'cc'.
4058 if test "$GCC" != yes; then
4059 CC_SHARED_OPTS='-KPIC'
4061 MK_SHARED_LIB='$(LD) -shared -rdata_shared -soname `basename $@` -o $@'
4062 cf_cv_rm_so_locs=yes
4065 if test "$DFT_LWR_MODEL" = "shared" ; then
4066 LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
4067 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
4069 if test "$cf_cv_ld_rpath" = yes ; then
4070 cf_ld_rpath_opt="-Wl,-rpath,"
4071 EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
4073 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
4074 MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@ .$(REL_VERSION)`.$(ABI_VERSION),-stats,-lc -o $@'
4077 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
4078 MK_SHARED_LIB='$(LD) -Bshareable -soname,`basename $@.$(ABI_VERSION)` -o $@'
4081 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
4082 MK_SHARED_LIB='$(LD) -Bshareable -o $@'
4083 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
4086 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
4087 test "$cf_cv_ld_rpath" = yes && cf_ld_rpath_opt="-Wl,-rpath,"
4088 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
4089 LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
4090 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
4091 EXTRA_LDFLAGS="-Wl,-rpath,\$(libdir) $EXTRA_LDFLAGS"
4092 MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@'
4093 if test "$cf_cv_shlib_version" = auto; then
4094 if test ! -f /usr/libexec/ld.elf_so; then
4095 cf_cv_shlib_version=rel
4099 MK_SHARED_LIB='$(LD) -Bshareable -o $@'
4103 # tested with OSF/1 V3.2 and 'cc'
4104 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
4105 # link with shared libs).
4106 MK_SHARED_LIB='$(LD) -set_version $(REL_VERSION):$(ABI_VERSION) -expect_unresolved "*" -shared -soname `basename $@`'
4109 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
4112 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
4113 if test "$DFT_LWR_MODEL" = "shared" ; then
4114 LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
4115 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
4117 if test "$cf_cv_ld_rpath" = yes ; then
4118 cf_ld_rpath_opt="-rpath"
4119 # EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
4121 cf_cv_rm_so_locs=yes
4123 sco3.2v5*) # (also uw2* and UW7) hops 13-Apr-98
4124 # tested with osr5.0.5
4125 if test "$ac_cv_c_compiler_gnu" != yes; then
4126 CC_SHARED_OPTS='-belf -KPIC'
4128 MK_SHARED_LIB='$(LD) -dy -G -h `basename $@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@'
4129 if test "$cf_cv_ld_rpath" = yes ; then
4130 # only way is to set LD_RUN_PATH but no switch for it
4133 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
4134 LINK_PROGS='LD_RUN_PATH=$(libdir)'
4135 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
4138 # tested with SunOS 4.1.1 and gcc 2.7.0
4139 if test "$ac_cv_c_compiler_gnu" != yes; then
4140 CC_SHARED_OPTS='-KPIC'
4142 MK_SHARED_LIB='$(LD) -assert pure-text -o $@'
4143 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
4146 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
4147 if test "$ac_cv_c_compiler_gnu" != yes; then
4148 CC_SHARED_OPTS='-KPIC'
4150 MK_SHARED_LIB='$(LD) -dy -G -h `basename $@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@'
4151 if test "$DFT_LWR_MODEL" = "shared" ; then
4152 LOCAL_LDFLAGS="-R `pwd`/lib:\$(libdir)"
4153 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
4155 if test "$cf_cv_ld_rpath" = yes ; then
4156 cf_ld_rpath_opt="-R"
4157 EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
4159 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
4162 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
4163 if test "$ac_cv_c_compiler_gnu" != yes; then
4164 CC_SHARED_OPTS='-KPIC'
4166 MK_SHARED_LIB='$(LD) -d y -G -o $@'
4169 CC_SHARED_OPTS='unknown'
4170 MK_SHARED_LIB='echo unknown'
4174 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
4175 case "$cf_cv_shlib_version" in #(vi
4177 case "$MK_SHARED_LIB" in #(vi
4179 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
4182 { echo "$as_me:4182: WARNING: ignored --with-shlib-version" >&5
4183 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
4189 if test -n "$cf_ld_rpath_opt" ; then
4190 echo "$as_me:4190: checking if we need a space after rpath option" >&5
4191 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
4192 cf_save_LIBS="$LIBS"
4193 LIBS="$LIBS ${cf_ld_rpath_opt}$libdir"
4194 cat >conftest.$ac_ext <<_ACEOF
4195 #line 4195 "configure"
4196 #include "confdefs.h"
4206 rm -f conftest.$ac_objext conftest$ac_exeext
4207 if { (eval echo "$as_me:4207: \"$ac_link\"") >&5
4208 (eval $ac_link) 2>&5
4210 echo "$as_me:4210: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -s conftest$ac_exeext'
4213 { (eval echo "$as_me:4213: \"$ac_try\"") >&5
4216 echo "$as_me:4216: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4220 echo "$as_me: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4224 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4225 LIBS="$cf_save_LIBS"
4226 echo "$as_me:4226: result: $cf_rpath_space" >&5
4227 echo "${ECHO_T}$cf_rpath_space" >&6
4228 test "$cf_rpath_space" = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt "
4229 MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\$(libdir)"
4232 if test "$CC_SHARED_OPTS" = "unknown"; then
4233 for model in $cf_list_models; do
4234 if test "$model" = "shared"; then
4235 { { echo "$as_me:4235: error: Shared libraries are not supported in this version" >&5
4236 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
4237 { (exit 1); exit 1; }; }
4242 ###############################################################################
4244 ### use option --disable-overwrite to leave out the link to -lcurses
4245 echo "$as_me:4245: checking if you wish to install ncurses overwriting curses" >&5
4246 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
4248 # Check whether --enable-overwrite or --disable-overwrite was given.
4249 if test "${enable_overwrite+set}" = set; then
4250 enableval="$enable_overwrite"
4251 with_overwrite=$enableval
4253 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
4255 echo "$as_me:4255: result: $with_overwrite" >&5
4256 echo "${ECHO_T}$with_overwrite" >&6
4258 echo "$as_me:4258: checking if external terminfo-database is used" >&5
4259 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
4261 # Check whether --enable-database or --disable-database was given.
4262 if test "${enable_database+set}" = set; then
4263 enableval="$enable_database"
4264 use_database=$enableval
4268 echo "$as_me:4268: result: $use_database" >&5
4269 echo "${ECHO_T}$use_database" >&6
4271 case $host_os in #(vi
4273 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
4276 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
4280 case $cf_cv_system_name in
4281 os2*) PATHSEP=';' ;;
4285 if test "$use_database" != no ; then
4286 cat >>confdefs.h <<\EOF
4287 #define USE_DATABASE 1
4290 echo "$as_me:4290: checking which terminfo source-file will be installed" >&5
4291 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
4293 # Check whether --enable-database or --disable-database was given.
4294 if test "${enable_database+set}" = set; then
4295 enableval="$enable_database"
4296 TERMINFO_SRC=$withval
4298 echo "$as_me:4298: result: $TERMINFO_SRC" >&5
4299 echo "${ECHO_T}$TERMINFO_SRC" >&6
4302 echo "$as_me:4302: checking for list of fallback descriptions" >&5
4303 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
4305 # Check whether --with-fallbacks or --without-fallbacks was given.
4306 if test "${with_fallbacks+set}" = set; then
4307 withval="$with_fallbacks"
4308 with_fallback=$withval
4312 echo "$as_me:4312: result: $with_fallback" >&5
4313 echo "${ECHO_T}$with_fallback" >&6
4314 FALLBACK_LIST=`echo $with_fallback|sed -e 's/,/ /g'`
4317 if test "$use_database" = no ; then
4318 TERMINFO="${datadir}/terminfo"
4322 echo "$as_me:4322: checking for list of terminfo directories" >&5
4323 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
4325 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
4326 if test "${with_terminfo_dirs+set}" = set; then
4327 withval="$with_terminfo_dirs"
4330 withval=${TERMINFO_DIRS-${datadir}/terminfo}
4332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
4334 for cf_src_path in $withval
4337 case ".$cf_src_path" in #(vi
4338 .\$\(*\)*|.\'*\'*) #(vi
4342 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4345 eval cf_src_path="$cf_src_path"
4346 case ".$cf_src_path" in #(vi
4348 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$ac_default_prefix%`
4353 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$ac_default_prefix%`
4356 { { echo "$as_me:4356: error: expected a pathname, not \"$cf_src_path\"" >&5
4357 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
4358 { (exit 1); exit 1; }; }
4362 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
4363 cf_dst_path="${cf_dst_path}${cf_src_path}"
4367 eval 'TERMINFO_DIRS="$cf_dst_path"'
4369 echo "$as_me:4369: result: $TERMINFO_DIRS" >&5
4370 echo "${ECHO_T}$TERMINFO_DIRS" >&6
4371 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
4372 #define TERMINFO_DIRS "$TERMINFO_DIRS"
4375 echo "$as_me:4375: checking for default terminfo directory" >&5
4376 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
4378 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
4379 if test "${with_default_terminfo_dir+set}" = set; then
4380 withval="$with_default_terminfo_dir"
4383 withval="${TERMINFO-${datadir}/terminfo}"
4385 case ".$withval" in #(vi
4386 .\$\(*\)*|.\'*\'*) #(vi
4390 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4393 eval withval="$withval"
4394 case ".$withval" in #(vi
4396 withval=`echo $withval | sed -e s%NONE%$ac_default_prefix%`
4401 withval=`echo $withval | sed -e s%NONE%$ac_default_prefix%`
4404 { { echo "$as_me:4404: error: expected a pathname, not \"$withval\"" >&5
4405 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4406 { (exit 1); exit 1; }; }
4410 eval TERMINFO="$withval"
4412 echo "$as_me:4412: result: $TERMINFO" >&5
4413 echo "${ECHO_T}$TERMINFO" >&6
4414 cat >>confdefs.h <<EOF
4415 #define TERMINFO "$TERMINFO"
4420 ### use option --disable-big-core to make tic run on small machines
4421 ### We need 4Mb, check if we can allocate 50% more than that.
4422 echo "$as_me:4422: checking if big-core option selected" >&5
4423 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
4425 # Check whether --enable-big-core or --disable-big-core was given.
4426 if test "${enable_big_core+set}" = set; then
4427 enableval="$enable_big_core"
4428 with_big_core=$enableval
4430 if test "$cross_compiling" = yes; then
4433 cat >conftest.$ac_ext <<_ACEOF
4434 #line 4434 "configure"
4435 #include "confdefs.h"
4440 unsigned long n = 6000000L;
4441 char *s = malloc(n);
4447 rm -f conftest$ac_exeext
4448 if { (eval echo "$as_me:4448: \"$ac_link\"") >&5
4449 (eval $ac_link) 2>&5
4451 echo "$as_me:4451: \$? = $ac_status" >&5
4452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4453 { (eval echo "$as_me:4453: \"$ac_try\"") >&5
4456 echo "$as_me:4456: \$? = $ac_status" >&5
4457 (exit $ac_status); }; }; then
4460 echo "$as_me: program exited with status $ac_status" >&5
4461 echo "$as_me: failed program was:" >&5
4462 cat conftest.$ac_ext >&5
4465 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4468 echo "$as_me:4468: result: $with_big_core" >&5
4469 echo "${ECHO_T}$with_big_core" >&6
4470 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
4471 #define HAVE_BIG_CORE 1
4474 ### use option --enable-termcap to compile in the termcap fallback support
4475 echo "$as_me:4475: checking if you want termcap-fallback support" >&5
4476 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
4478 # Check whether --enable-termcap or --disable-termcap was given.
4479 if test "${enable_termcap+set}" = set; then
4480 enableval="$enable_termcap"
4481 with_termcap=$enableval
4485 echo "$as_me:4485: result: $with_termcap" >&5
4486 echo "${ECHO_T}$with_termcap" >&6
4488 if test "$with_termcap" != "yes" ; then
4489 if test "$use_database" = no ; then
4490 if test -z $with_fallback ; then
4491 { { echo "$as_me:4491: error: You have disabled the database w/o specifying fallbacks" >&5
4492 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
4493 { (exit 1); exit 1; }; }
4496 cat >>confdefs.h <<\EOF
4497 #define PURE_TERMINFO 1
4502 cat >>confdefs.h <<\EOF
4503 #define USE_TERMCAP 1
4506 echo "$as_me:4506: checking for list of termcap files" >&5
4507 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
4509 # Check whether --with-termpath or --without-termpath was given.
4510 if test "${with_termpath+set}" = set; then
4511 withval="$with_termpath"
4514 withval=${TERMPATH-/etc/termcap:/usr/share/misc/termcap}
4516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
4518 for cf_src_path in $withval
4521 case ".$cf_src_path" in #(vi
4522 .\$\(*\)*|.\'*\'*) #(vi
4526 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4529 eval cf_src_path="$cf_src_path"
4530 case ".$cf_src_path" in #(vi
4532 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$ac_default_prefix%`
4537 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$ac_default_prefix%`
4540 { { echo "$as_me:4540: error: expected a pathname, not \"$cf_src_path\"" >&5
4541 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
4542 { (exit 1); exit 1; }; }
4546 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
4547 cf_dst_path="${cf_dst_path}${cf_src_path}"
4551 eval 'TERMPATH="$cf_dst_path"'
4553 echo "$as_me:4553: result: $TERMPATH" >&5
4554 echo "${ECHO_T}$TERMPATH" >&6
4555 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
4556 #define TERMPATH "$TERMPATH"
4559 ### use option --enable-getcap to use a hacked getcap for reading termcaps
4560 echo "$as_me:4560: checking if fast termcap-loader is needed" >&5
4561 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
4563 # Check whether --enable-getcap or --disable-getcap was given.
4564 if test "${enable_getcap+set}" = set; then
4565 enableval="$enable_getcap"
4566 with_getcap=$enableval
4570 echo "$as_me:4570: result: $with_getcap" >&5
4571 echo "${ECHO_T}$with_getcap" >&6
4572 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
4573 #define USE_GETCAP 1
4576 echo "$as_me:4576: checking if translated termcaps will be cached in ~/.terminfo" >&5
4577 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
4579 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
4580 if test "${enable_getcap_cache+set}" = set; then
4581 enableval="$enable_getcap_cache"
4582 with_getcap_cache=$enableval
4584 with_getcap_cache=no
4586 echo "$as_me:4586: result: $with_getcap_cache" >&5
4587 echo "${ECHO_T}$with_getcap_cache" >&6
4588 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
4589 #define USE_GETCAP_CACHE 1
4594 ### Use option --enable-symlinks to make tic use symlinks, not hard links
4595 ### to reduce storage requirements for the terminfo database.
4601 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4602 echo "$as_me:4602: checking for $ac_func" >&5
4603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4604 if eval "test \"\${$as_ac_var+set}\" = set"; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4607 cat >conftest.$ac_ext <<_ACEOF
4608 #line 4608 "configure"
4609 #include "confdefs.h"
4610 /* System header to define __stub macros and hopefully few prototypes,
4611 which can conflict with char $ac_func (); below. */
4613 /* Override any gcc2 internal prototype to avoid an error. */
4617 /* We use char because int might match the return type of a gcc2
4618 builtin and then its argument prototype would still apply. */
4625 /* The GNU C library defines this for functions which it implements
4626 to always fail with ENOSYS. Some functions are actually named
4627 something starting with __ and the normal name is an alias. */
4628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4638 rm -f conftest.$ac_objext conftest$ac_exeext
4639 if { (eval echo "$as_me:4639: \"$ac_link\"") >&5
4640 (eval $ac_link) 2>&5
4642 echo "$as_me:4642: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try='test -s conftest$ac_exeext'
4645 { (eval echo "$as_me:4645: \"$ac_try\"") >&5
4648 echo "$as_me:4648: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4650 eval "$as_ac_var=yes"
4652 echo "$as_me: failed program was:" >&5
4653 cat conftest.$ac_ext >&5
4654 eval "$as_ac_var=no"
4656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4658 echo "$as_me:4658: result: `eval echo '${'$as_ac_var'}'`" >&5
4659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4660 if test `eval echo '${'$as_ac_var'}'` = yes; then
4661 cat >>confdefs.h <<EOF
4662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4668 if test "$ac_cv_prog_cc_cross" = yes ; then
4674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4675 echo "$as_me:4675: checking for $ac_func" >&5
4676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4677 if eval "test \"\${$as_ac_var+set}\" = set"; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4680 cat >conftest.$ac_ext <<_ACEOF
4681 #line 4681 "configure"
4682 #include "confdefs.h"
4683 /* System header to define __stub macros and hopefully few prototypes,
4684 which can conflict with char $ac_func (); below. */
4686 /* Override any gcc2 internal prototype to avoid an error. */
4690 /* We use char because int might match the return type of a gcc2
4691 builtin and then its argument prototype would still apply. */
4698 /* The GNU C library defines this for functions which it implements
4699 to always fail with ENOSYS. Some functions are actually named
4700 something starting with __ and the normal name is an alias. */
4701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4711 rm -f conftest.$ac_objext conftest$ac_exeext
4712 if { (eval echo "$as_me:4712: \"$ac_link\"") >&5
4713 (eval $ac_link) 2>&5
4715 echo "$as_me:4715: \$? = $ac_status" >&5
4716 (exit $ac_status); } &&
4717 { ac_try='test -s conftest$ac_exeext'
4718 { (eval echo "$as_me:4718: \"$ac_try\"") >&5
4721 echo "$as_me:4721: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 eval "$as_ac_var=yes"
4725 echo "$as_me: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4727 eval "$as_ac_var=no"
4729 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4731 echo "$as_me:4731: result: `eval echo '${'$as_ac_var'}'`" >&5
4732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4733 if test `eval echo '${'$as_ac_var'}'` = yes; then
4734 cat >>confdefs.h <<EOF
4735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4742 echo "$as_me:4742: checking if link/symlink functions work" >&5
4743 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
4744 if test "${cf_cv_link_funcs+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 for cf_func in link symlink ; do
4750 if test "$cross_compiling" = yes; then
4752 eval 'ac_cv_func_'$cf_func'=error'
4754 cat >conftest.$ac_ext <<_ACEOF
4755 #line 4755 "configure"
4756 #include "confdefs.h"
4758 #include <sys/types.h>
4759 #include <sys/stat.h>
4760 #ifdef HAVE_UNISTD_H
4766 char *src = "config.log";
4767 char *dst = "conftest.chk";
4772 fail = ($cf_func("config.log", "conftest.chk") < 0)
4773 || (stat(dst, &dst_sb) < 0)
4774 || (dst_sb.st_mtime != src_sb.st_mtime);
4784 rm -f conftest$ac_exeext
4785 if { (eval echo "$as_me:4785: \"$ac_link\"") >&5
4786 (eval $ac_link) 2>&5
4788 echo "$as_me:4788: \$? = $ac_status" >&5
4789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4790 { (eval echo "$as_me:4790: \"$ac_try\"") >&5
4793 echo "$as_me:4793: \$? = $ac_status" >&5
4794 (exit $ac_status); }; }; then
4796 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
4797 eval 'ac_cv_func_'$cf_func'=yes'
4799 echo "$as_me: program exited with status $ac_status" >&5
4800 echo "$as_me: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4803 eval 'ac_cv_func_'$cf_func'=no'
4805 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4808 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
4811 echo "$as_me:4811: result: $cf_cv_link_funcs" >&5
4812 echo "${ECHO_T}$cf_cv_link_funcs" >&6
4813 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
4817 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
4818 #define HAVE_SYMLINK 1
4826 if test "$ac_cv_func_link" != yes ; then
4827 echo "$as_me:4827: checking if tic should use symbolic links" >&5
4828 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
4829 if test "$ac_cv_func_symlink" = yes ; then
4834 echo "$as_me:4834: result: $with_symlinks" >&5
4835 echo "${ECHO_T}$with_symlinks" >&6
4836 elif test "$ac_cv_func_symlink" != yes ; then
4837 echo "$as_me:4837: checking if tic should use hard links" >&5
4838 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
4839 if test "$ac_cv_func_link" = yes ; then
4844 echo "$as_me:4844: result: $with_links" >&5
4845 echo "${ECHO_T}$with_links" >&6
4847 echo "$as_me:4847: checking if tic should use symbolic links" >&5
4848 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
4850 # Check whether --enable-symlinks or --disable-symlinks was given.
4851 if test "${enable_symlinks+set}" = set; then
4852 enableval="$enable_symlinks"
4853 with_symlinks=$enableval
4857 echo "$as_me:4857: result: $with_symlinks" >&5
4858 echo "${ECHO_T}$with_symlinks" >&6
4861 test "$with_links" = yes && cat >>confdefs.h <<\EOF
4865 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
4866 #define USE_SYMLINKS 1
4869 ### use option --enable-broken-linker to force on use of broken-linker support
4870 echo "$as_me:4870: checking if you want broken-linker support code" >&5
4871 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
4873 # Check whether --enable-broken_linker or --disable-broken_linker was given.
4874 if test "${enable_broken_linker+set}" = set; then
4875 enableval="$enable_broken_linker"
4876 with_broken_linker=$enableval
4878 with_broken_linker=$BROKEN_LINKER
4880 echo "$as_me:4880: result: $with_broken_linker" >&5
4881 echo "${ECHO_T}$with_broken_linker" >&6
4884 if test "$with_broken_linker" = yes ; then
4885 cat >>confdefs.h <<\EOF
4886 #define BROKEN_LINKER 1
4890 elif test $DFT_LWR_MODEL = shared ; then
4891 case $cf_cv_system_name in #(vi
4893 cat >>confdefs.h <<\EOF
4894 #define BROKEN_LINKER 1
4898 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
4904 ### use option --with-bool to override bool's type
4905 echo "$as_me:4905: checking for type of bool" >&5
4906 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
4908 # Check whether --with-bool or --without-bool was given.
4909 if test "${with_bool+set}" = set; then
4910 withval="$with_bool"
4911 NCURSES_BOOL="$withval"
4915 echo "$as_me:4915: result: $NCURSES_BOOL" >&5
4916 echo "${ECHO_T}$NCURSES_BOOL" >&6
4918 ### use option --with-ospeed to override ospeed's type
4919 echo "$as_me:4919: checking for type of ospeed" >&5
4920 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
4922 # Check whether --with-ospeed or --without-ospeed was given.
4923 if test "${with_ospeed+set}" = set; then
4924 withval="$with_ospeed"
4925 NCURSES_OSPEED="$withval"
4927 NCURSES_OSPEED=short
4929 echo "$as_me:4929: result: $NCURSES_OSPEED" >&5
4930 echo "${ECHO_T}$NCURSES_OSPEED" >&6
4932 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
4933 echo "$as_me:4933: checking if tputs should process BSD-style prefix padding" >&5
4934 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
4936 # Check whether --enable-bsdpad or --disable-bsdpad was given.
4937 if test "${enable_bsdpad+set}" = set; then
4938 enableval="$enable_bsdpad"
4939 with_bsdpad=$enableval
4943 echo "$as_me:4943: result: $with_bsdpad" >&5
4944 echo "${ECHO_T}$with_bsdpad" >&6
4945 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
4949 ### Enable compiling-in rcs id's
4950 echo "$as_me:4950: checking if RCS identifiers should be compiled-in" >&5
4951 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
4953 # Check whether --with-rcs-ids or --without-rcs-ids was given.
4954 if test "${with_rcs_ids+set}" = set; then
4955 withval="$with_rcs_ids"
4956 with_rcs_ids=$withval
4960 echo "$as_me:4960: result: $with_rcs_ids" >&5
4961 echo "${ECHO_T}$with_rcs_ids" >&6
4962 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
4963 #define USE_RCS_IDS 1
4966 ###############################################################################
4968 echo "$as_me:4968: checking format of man-pages" >&5
4969 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
4971 # Check whether --with-manpage-format or --without-manpage-format was given.
4972 if test "${with_manpage_format+set}" = set; then
4973 withval="$with_manpage_format"
4974 MANPAGE_FORMAT=$withval
4976 MANPAGE_FORMAT=unknown
4979 case ".$MANPAGE_FORMAT" in
4980 .gzip|.compress|.BSDI|.normal|.formatted) # (vi
4983 if test -z "$MANPATH" ; then
4984 MANPATH="/usr/man:/usr/share/man"
4986 # look for the 'date' man-page (it's most likely to be installed!)
4987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATHSEP}"
4988 MANPAGE_FORMAT=unknown
4989 for cf_dir in $MANPATH; do
4990 test -z "$cf_dir" && cf_dir=/usr/man
4991 for cf_name in $cf_dir/*/date.[01]* $cf_dir/*/date
4993 cf_test=`echo $cf_name | sed -e 's/*//'`
4994 if test "x$cf_test" = "x$cf_name" ; then
4996 *.gz) MANPAGE_FORMAT=gzip;;
4997 *.Z) MANPAGE_FORMAT=compress;;
4998 *.0) MANPAGE_FORMAT=BSDI,formatted;;
4999 *) MANPAGE_FORMAT=normal;;
5004 if test "$MANPAGE_FORMAT" != "unknown" ; then
5011 { echo "$as_me:5011: WARNING: Unexpected manpage-format" >&5
5012 echo "$as_me: WARNING: Unexpected manpage-format" >&2;}
5016 echo "$as_me:5016: result: $MANPAGE_FORMAT" >&5
5017 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
5019 echo "$as_me:5019: checking for manpage renaming" >&5
5020 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
5022 # Check whether --with-manpage-renames or --without-manpage-renames was given.
5023 if test "${with_manpage_renames+set}" = set; then
5024 withval="$with_manpage_renames"
5025 MANPAGE_RENAMES=$withval
5030 case ".$MANPAGE_RENAMES" in #(vi
5034 # Debian 'man' program?
5035 if test -f /etc/debian_version ; then
5036 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
5043 if test "$MANPAGE_RENAMES" != no ; then
5044 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
5045 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
5046 elif test ! -f $MANPAGE_RENAMES ; then
5047 { { echo "$as_me:5047: error: not a filename: $MANPAGE_RENAMES" >&5
5048 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
5049 { (exit 1); exit 1; }; }
5052 test ! -d man && mkdir man
5054 # Construct a sed-script to perform renaming within man-pages
5055 if test -n "$MANPAGE_RENAMES" ; then
5056 test ! -d man && mkdir man
5057 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >man/edit_man.sed
5061 echo "$as_me:5061: result: $MANPAGE_RENAMES" >&5
5062 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
5064 echo "$as_me:5064: checking for manpage symlinks" >&5
5065 echo $ECHO_N "checking for manpage symlinks... $ECHO_C" >&6
5067 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
5068 if test "${with_manpage_symlinks+set}" = set; then
5069 withval="$with_manpage_symlinks"
5070 MANPAGE_SYMLINKS=$withval
5072 MANPAGE_SYMLINKS=yes
5075 echo "$as_me:5075: result: $MANPAGE_SYMLINKS" >&5
5076 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
5078 echo "$as_me:5078: checking for manpage tbl" >&5
5079 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
5081 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
5082 if test "${with_manpage_tbl+set}" = set; then
5083 withval="$with_manpage_tbl"
5084 MANPAGE_TBL=$withval
5089 echo "$as_me:5089: result: $MANPAGE_TBL" >&5
5090 echo "${ECHO_T}$MANPAGE_TBL" >&6
5092 if test "$prefix" = "NONE" ; then
5093 cf_prefix="$ac_default_prefix"
5098 case "$MANPAGE_FORMAT" in # (vi
5100 cf_subdir='$mandir/cat'
5104 cf_subdir='$mandir/man'
5109 test ! -d man && mkdir man
5110 cat >man/edit_man.sh <<CF_EOF
5112 # this script is generated by the configure-script
5115 NCURSES_OSPEED="$NCURSES_OSPEED"
5116 TERMINFO="$TERMINFO"
5117 MKDIRS="sh `cd $srcdir && pwd`/mkinstalldirs"
5119 INSTALL_DATA="$INSTALL_DATA"
5120 transform="$program_transform_name"
5122 TMP=\${TMPDIR-/tmp}/man\$\$
5123 trap "rm -f \$TMP" 0 1 2 5 15
5136 *.orig|*.rej) ;; #(vi
5138 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
5139 if test \$verb = installing ; then
5140 if test ! -d $cf_subdir\${section} ; then
5141 \$MKDIRS $cf_subdir\$section
5145 source=\`basename \$i\`
5147 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
5148 if test ! -f \$inalias ; then
5149 echo .. skipped \$source
5153 if test "$MANPAGE_SYMLINKS" = yes ; then
5154 cat >>man/edit_man.sh <<CF_EOF
5155 aliases=\`sed -f \$srcdir/manlinks.sed \$inalias | sort -u\`
5159 if test "$MANPAGE_RENAMES" = no ; then
5160 cat >>man/edit_man.sh <<CF_EOF
5161 # perform program transformations for section 1 man pages
5162 if test \$section = 1 ; then
5163 target=$cf_subdir\${section}/\`echo \$source|sed "\${transform}"\`
5165 target=$cf_subdir\${section}/\$source
5169 cat >>man/edit_man.sh <<CF_EOF
5170 target=\`grep "^\$source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
5171 if test -z "\$target" ; then
5172 echo '? missing rename for '\$source
5175 target="$cf_subdir\${section}/\${target}"
5179 # replace variables in man page
5181 for cf_name in captoinfo clear infocmp infotocap tic toe tput
5183 cat >>man/edit_man.sh <<CF_EOF
5184 prog_$cf_name=\`echo $cf_name|sed "\${transform}"\`
5188 cat >>man/edit_man.sh <<CF_EOF
5189 sed -e "s,@DATADIR@,\$datadir," \\
5190 -e "s,@TERMINFO@,\$TERMINFO," \\
5191 -e "s,@NCURSES_OSPEED@,\$NCURSES_OSPEED," \\
5194 for cf_name in captoinfo clear infocmp infotocap tic toe tput
5196 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5197 cat >>man/edit_man.sh <<CF_EOF
5198 -e "s,@$cf_NAME@,\$prog_$cf_name," \\
5202 if test -f $MANPAGE_RENAMES ; then
5203 cat >>man/edit_man.sh <<CF_EOF
5204 < \$i | sed -f edit_man.sed >\$TMP
5207 cat >>man/edit_man.sh <<CF_EOF
5211 if test $MANPAGE_TBL = yes ; then
5212 cat >>man/edit_man.sh <<CF_EOF
5213 tbl \$TMP >\$TMP.out
5217 if test $with_curses_h != yes ; then
5218 cat >>man/edit_man.sh <<CF_EOF
5219 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
5223 if test $cf_format = yes ; then
5224 cat >>man/edit_man.sh <<CF_EOF
5225 nroff -man \$TMP >\$TMP.out
5229 case "$MANPAGE_FORMAT" in #(vi
5231 cat >>man/edit_man.sh <<CF_EOF
5232 if test \$verb = installing ; then
5233 if ( compress -f \$TMP )
5242 cat >>man/edit_man.sh <<CF_EOF
5243 if test \$verb = installing ; then
5244 if ( gzip -f \$TMP )
5249 target="\$target.gz"
5253 cat >>man/edit_man.sh <<CF_EOF
5254 # BSDI installs only .0 suffixes in the cat directories
5255 target="\`echo \$target|sed -e 's/\.[1-9]\+.\?/.0/'\`"
5259 cat >>man/edit_man.sh <<CF_EOF
5260 suffix=\`basename \$target | sed -e 's/^[^.]*//'\`
5261 if test \$verb = installing ; then
5262 echo \$verb \$target
5263 \$INSTALL_DATA \$TMP \$target
5264 test -n "\$aliases" && (
5265 cd $cf_subdir\${section} && (
5266 target=\`basename \$target\`
5267 for cf_alias in \$aliases
5269 if test \$section = 1 ; then
5270 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
5273 if test -f \$cf_alias\${suffix} ; then
5274 if ( cmp -s \$target \$cf_alias\${suffix} )
5278 echo .. \$verb alias \$cf_alias\${suffix}
5279 rm -f \$cf_alias\${suffix}
5280 $LN_S \$target \$cf_alias\${suffix}
5283 echo .. \$verb alias \$cf_alias\${suffix}
5284 rm -f \$cf_alias\${suffix}
5285 $LN_S \$target \$cf_alias\${suffix}
5290 elif test \$verb = removing ; then
5291 echo \$verb \$target
5293 test -n "\$aliases" && (
5294 cd $cf_subdir\${section} && (
5295 for cf_alias in \$aliases
5297 if test \$section = 1 ; then
5298 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
5301 echo .. \$verb alias \$cf_alias\${suffix}
5302 rm -f \$cf_alias\${suffix}
5315 chmod 755 man/edit_man.sh
5317 ###############################################################################
5319 ### Note that some functions (such as const) are normally disabled anyway.
5320 echo "$as_me:5320: checking if you want to build with function extensions" >&5
5321 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
5323 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
5324 if test "${enable_ext_funcs+set}" = set; then
5325 enableval="$enable_ext_funcs"
5326 with_ext_funcs=$enableval
5330 echo "$as_me:5330: result: $with_ext_funcs" >&5
5331 echo "${ECHO_T}$with_ext_funcs" >&6
5332 if test "$with_ext_funcs" = yes ; then
5334 cat >>confdefs.h <<\EOF
5335 #define HAVE_CURSES_VERSION 1
5338 cat >>confdefs.h <<\EOF
5339 #define HAVE_HAS_KEY 1
5342 cat >>confdefs.h <<\EOF
5343 #define HAVE_RESIZETERM 1
5346 cat >>confdefs.h <<\EOF
5347 #define HAVE_USE_DEFAULT_COLORS 1
5350 cat >>confdefs.h <<\EOF
5351 #define HAVE_WRESIZE 1
5354 cat >>confdefs.h <<\EOF
5355 #define NCURSES_EXT_FUNCS 1
5362 ### use option --enable-const to turn on use of const beyond that in XSI.
5363 echo "$as_me:5363: checking for extended use of const keyword" >&5
5364 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
5366 # Check whether --enable-const or --disable-const was given.
5367 if test "${enable_const+set}" = set; then
5368 enableval="$enable_const"
5369 with_ext_const=$enableval
5373 echo "$as_me:5373: result: $with_ext_const" >&5
5374 echo "${ECHO_T}$with_ext_const" >&6
5375 NCURSES_CONST='/*nothing*/'
5376 if test "$with_ext_const" = yes ; then
5380 echo "$as_me:5380: checking if you want \$NCURSES_NO_PADDING code" >&5
5381 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
5383 # Check whether --enable-no-padding or --disable-no-padding was given.
5384 if test "${enable_no_padding+set}" = set; then
5385 enableval="$enable_no_padding"
5386 with_no_padding=$enableval
5388 with_no_padding=$with_ext_funcs
5390 echo "$as_me:5390: result: $with_no_padding" >&5
5391 echo "${ECHO_T}$with_no_padding" >&6
5392 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
5393 #define NCURSES_NO_PADDING 1
5396 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
5397 echo "$as_me:5397: checking if you want SIGWINCH handler" >&5
5398 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
5400 # Check whether --enable-sigwinch or --disable-sigwinch was given.
5401 if test "${enable_sigwinch+set}" = set; then
5402 enableval="$enable_sigwinch"
5403 with_sigwinch=$enableval
5405 with_sigwinch=$with_ext_funcs
5407 echo "$as_me:5407: result: $with_sigwinch" >&5
5408 echo "${ECHO_T}$with_sigwinch" >&6
5409 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
5410 #define USE_SIGWINCH 1
5413 ### use option --enable-tcap-names to allow user to define new capabilities
5414 echo "$as_me:5414: checking if you want user-definable terminal capabilities like termcap" >&5
5415 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
5417 # Check whether --enable-tcap-names or --disable-tcap-names was given.
5418 if test "${enable_tcap_names+set}" = set; then
5419 enableval="$enable_tcap_names"
5420 with_tcap_names=$enableval
5422 with_tcap_names=$with_ext_funcs
5424 echo "$as_me:5424: result: $with_tcap_names" >&5
5425 echo "${ECHO_T}$with_tcap_names" >&6
5427 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
5429 ###############################################################################
5430 # These options are relatively safe to experiment with.
5432 echo "$as_me:5432: checking if you want all development code" >&5
5433 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
5435 # Check whether --with-develop or --without-develop was given.
5436 if test "${with_develop+set}" = set; then
5437 withval="$with_develop"
5438 with_develop=$withval
5442 echo "$as_me:5442: result: $with_develop" >&5
5443 echo "${ECHO_T}$with_develop" >&6
5445 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
5446 echo "$as_me:5446: checking if you want hard-tabs code" >&5
5447 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
5449 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
5450 if test "${enable_hard_tabs+set}" = set; then
5451 enableval="$enable_hard_tabs"
5452 with_hardtabs=$enableval
5454 with_hardtabs=$with_develop
5456 echo "$as_me:5456: result: $with_hardtabs" >&5
5457 echo "${ECHO_T}$with_hardtabs" >&6
5458 test "$with_hardtabs" = yes && cat >>confdefs.h <<\EOF
5459 #define USE_HARD_TABS 1
5462 echo "$as_me:5462: checking if you want to use restrict environment when running as root" >&5
5463 echo $ECHO_N "checking if you want to use restrict environment when running as root... $ECHO_C" >&6
5465 # Check whether --enable-root-environ or --disable-root-environ was given.
5466 if test "${enable_root_environ+set}" = set; then
5467 enableval="$enable_root_environ"
5468 with_root_environ=$enableval
5470 with_root_environ=yes
5472 echo "$as_me:5472: result: $with_root_environ" >&5
5473 echo "${ECHO_T}$with_root_environ" >&6
5474 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
5475 #define USE_ROOT_ENVIRON 1
5478 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
5479 echo "$as_me:5479: checking if you want limited support for xmc" >&5
5480 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
5482 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
5483 if test "${enable_xmc_glitch+set}" = set; then
5484 enableval="$enable_xmc_glitch"
5485 with_xmc_glitch=$enableval
5487 with_xmc_glitch=$with_develop
5489 echo "$as_me:5489: result: $with_xmc_glitch" >&5
5490 echo "${ECHO_T}$with_xmc_glitch" >&6
5491 test "$with_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
5492 #define USE_XMC_SUPPORT 1
5495 ###############################################################################
5496 # These are just experimental, probably should not be in a package:
5498 echo "$as_me:5498: checking if you do not want to assume colors are white-on-black" >&5
5499 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
5501 # Check whether --enable-assumed-color or --disable-assumed-color was given.
5502 if test "${enable_assumed_color+set}" = set; then
5503 enableval="$enable_assumed_color"
5504 with_assumed_color=$enableval
5506 with_assumed_color=yes
5508 echo "$as_me:5508: result: $with_assumed_color" >&5
5509 echo "${ECHO_T}$with_assumed_color" >&6
5510 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
5511 #define USE_ASSUMED_COLOR 1
5514 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
5515 echo "$as_me:5515: checking if you want hashmap scrolling-optimization code" >&5
5516 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
5518 # Check whether --enable-hashmap or --disable-hashmap was given.
5519 if test "${enable_hashmap+set}" = set; then
5520 enableval="$enable_hashmap"
5521 with_hashmap=$enableval
5525 echo "$as_me:5525: result: $with_hashmap" >&5
5526 echo "${ECHO_T}$with_hashmap" >&6
5527 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
5528 #define USE_HASHMAP 1
5531 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
5532 echo "$as_me:5532: checking if you want colorfgbg code" >&5
5533 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
5535 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
5536 if test "${enable_colorfgbg+set}" = set; then
5537 enableval="$enable_colorfgbg"
5538 with_colorfgbg=$enableval
5542 echo "$as_me:5542: result: $with_colorfgbg" >&5
5543 echo "${ECHO_T}$with_colorfgbg" >&6
5544 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
5545 #define USE_COLORFGBG 1
5548 echo "$as_me:5548: checking if you want experimental safe-sprintf code" >&5
5549 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
5551 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
5552 if test "${enable_safe_sprintf+set}" = set; then
5553 enableval="$enable_safe_sprintf"
5554 with_safe_sprintf=$enableval
5556 with_safe_sprintf=no
5558 echo "$as_me:5558: result: $with_safe_sprintf" >&5
5559 echo "${ECHO_T}$with_safe_sprintf" >&6
5560 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
5561 #define USE_SAFE_SPRINTF 1
5564 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
5565 # when hashmap is used scroll hints are useless
5566 if test "$with_hashmap" = no ; then
5567 echo "$as_me:5567: checking if you want to experiment without scrolling-hints code" >&5
5568 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
5570 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
5571 if test "${enable_scroll_hints+set}" = set; then
5572 enableval="$enable_scroll_hints"
5573 with_scroll_hints=$enableval
5575 with_scroll_hints=yes
5577 echo "$as_me:5577: result: $with_scroll_hints" >&5
5578 echo "${ECHO_T}$with_scroll_hints" >&6
5579 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
5580 #define USE_SCROLL_HINTS 1
5585 ### use option --enable-widec to turn on use of wide-character support
5589 echo "$as_me:5589: checking if you want experimental wide-character code" >&5
5590 echo $ECHO_N "checking if you want experimental wide-character code... $ECHO_C" >&6
5592 # Check whether --enable-widec or --disable-widec was given.
5593 if test "${enable_widec+set}" = set; then
5594 enableval="$enable_widec"
5595 with_widec=$enableval
5599 echo "$as_me:5599: result: $with_widec" >&5
5600 echo "${ECHO_T}$with_widec" >&6
5601 if test "$with_widec" = yes ; then
5602 LIB_SUFFIX="w${LIB_SUFFIX}"
5603 cat >>confdefs.h <<\EOF
5604 #define USE_WIDEC_SUPPORT 1
5607 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
5609 NCURSES_CH_T=cchar_t
5610 echo "$as_me:5610: checking for putwc" >&5
5611 echo $ECHO_N "checking for putwc... $ECHO_C" >&6
5612 if test "${ac_cv_func_putwc+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 cat >conftest.$ac_ext <<_ACEOF
5616 #line 5616 "configure"
5617 #include "confdefs.h"
5618 /* System header to define __stub macros and hopefully few prototypes,
5619 which can conflict with char putwc (); below. */
5621 /* Override any gcc2 internal prototype to avoid an error. */
5625 /* We use char because int might match the return type of a gcc2
5626 builtin and then its argument prototype would still apply. */
5633 /* The GNU C library defines this for functions which it implements
5634 to always fail with ENOSYS. Some functions are actually named
5635 something starting with __ and the normal name is an alias. */
5636 #if defined (__stub_putwc) || defined (__stub___putwc)
5646 rm -f conftest.$ac_objext conftest$ac_exeext
5647 if { (eval echo "$as_me:5647: \"$ac_link\"") >&5
5648 (eval $ac_link) 2>&5
5650 echo "$as_me:5650: \$? = $ac_status" >&5
5651 (exit $ac_status); } &&
5652 { ac_try='test -s conftest$ac_exeext'
5653 { (eval echo "$as_me:5653: \"$ac_try\"") >&5
5656 echo "$as_me:5656: \$? = $ac_status" >&5
5657 (exit $ac_status); }; }; then
5658 ac_cv_func_putwc=yes
5660 echo "$as_me: failed program was:" >&5
5661 cat conftest.$ac_ext >&5
5664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5666 echo "$as_me:5666: result: $ac_cv_func_putwc" >&5
5667 echo "${ECHO_T}$ac_cv_func_putwc" >&6
5669 if test "$ac_cv_func_putwc" != yes ; then
5671 echo "$as_me:5671: checking for putwc in libutf8" >&5
5672 echo $ECHO_N "checking for putwc in libutf8... $ECHO_C" >&6
5673 if test "${cf_cv_libutf8+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5677 cf_save_LIBS="$LIBS"
5679 cat >conftest.$ac_ext <<_ACEOF
5680 #line 5680 "configure"
5681 #include "confdefs.h"
5683 #include <libutf8.h>
5692 rm -f conftest.$ac_objext conftest$ac_exeext
5693 if { (eval echo "$as_me:5693: \"$ac_link\"") >&5
5694 (eval $ac_link) 2>&5
5696 echo "$as_me:5696: \$? = $ac_status" >&5
5697 (exit $ac_status); } &&
5698 { ac_try='test -s conftest$ac_exeext'
5699 { (eval echo "$as_me:5699: \"$ac_try\"") >&5
5702 echo "$as_me:5702: \$? = $ac_status" >&5
5703 (exit $ac_status); }; }; then
5706 echo "$as_me: failed program was:" >&5
5707 cat conftest.$ac_ext >&5
5710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5711 LIBS="$cf_save_LIBS"
5714 echo "$as_me:5714: result: $cf_cv_libutf8" >&5
5715 echo "${ECHO_T}$cf_cv_libutf8" >&6
5717 if test "$cf_cv_libutf8" = yes ; then
5718 cat >>confdefs.h <<\EOF
5719 #define HAVE_LIBUTF8_H 1
5725 if test "$cf_cv_libutf8" = yes ; then
5730 # This is needed on Tru64 5.0 to declare mbstate_t
5731 echo "$as_me:5731: checking if we must include wchar.h to declare mbstate_t" >&5
5732 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
5733 if test "${cf_cv_mbstate_t+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 cat >conftest.$ac_ext <<_ACEOF
5738 #line 5738 "configure"
5739 #include "confdefs.h"
5742 #ifdef HAVE_LIBUTF8_H
5743 #include <libutf8.h>
5753 rm -f conftest.$ac_objext
5754 if { (eval echo "$as_me:5754: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>&5
5757 echo "$as_me:5757: \$? = $ac_status" >&5
5758 (exit $ac_status); } &&
5759 { ac_try='test -s conftest.$ac_objext'
5760 { (eval echo "$as_me:5760: \"$ac_try\"") >&5
5763 echo "$as_me:5763: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then
5767 echo "$as_me: failed program was:" >&5
5768 cat conftest.$ac_ext >&5
5769 cat >conftest.$ac_ext <<_ACEOF
5770 #line 5770 "configure"
5771 #include "confdefs.h"
5775 #ifdef HAVE_LIBUTF8_H
5776 #include <libutf8.h>
5786 rm -f conftest.$ac_objext
5787 if { (eval echo "$as_me:5787: \"$ac_compile\"") >&5
5788 (eval $ac_compile) 2>&5
5790 echo "$as_me:5790: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -s conftest.$ac_objext'
5793 { (eval echo "$as_me:5793: \"$ac_try\"") >&5
5796 echo "$as_me:5796: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5800 echo "$as_me: failed program was:" >&5
5801 cat conftest.$ac_ext >&5
5802 cf_cv_mbstate_t=unknown
5804 rm -f conftest.$ac_objext conftest.$ac_ext
5806 rm -f conftest.$ac_objext conftest.$ac_ext
5808 echo "$as_me:5808: result: $cf_cv_mbstate_t" >&5
5809 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
5811 if test "$cf_cv_mbstate_t" = yes ; then
5812 cat >>confdefs.h <<\EOF
5813 #define NEED_WCHAR_H 1
5818 if test "$cf_cv_mbstate_t" != unknown ; then
5819 cat >>confdefs.h <<\EOF
5820 #define HAVE_MBSTATE_T 1
5825 if test $cf_cv_mbstate_t = yes ; then
5830 echo "$as_me:5830: checking for terminal capabilities file" >&5
5831 echo $ECHO_N "checking for terminal capabilities file... $ECHO_C" >&6
5833 # Check whether --with-caps or --without-caps was given.
5834 if test "${with_caps+set}" = set; then
5835 withval="$with_caps"
5836 TERMINFO_CAPS=Caps.$withval
5840 test -f ${srcdir}/include/${TERMINFO_CAPS} || TERMINFO_CAPS=Caps
5841 echo "$as_me:5841: result: $TERMINFO_CAPS" >&5
5842 echo "${ECHO_T}$TERMINFO_CAPS" >&6
5844 ###############################################################################
5846 ### use option --disable-echo to suppress full display compiling commands
5847 echo "$as_me:5847: checking if you want to display full commands during build" >&5
5848 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
5850 # Check whether --enable-echo or --disable-echo was given.
5851 if test "${enable_echo+set}" = set; then
5852 enableval="$enable_echo"
5853 with_echo=$enableval
5857 if test "$with_echo" = yes; then
5860 ECHO_LINK='@ echo linking $@ ... ;'
5861 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
5863 echo "$as_me:5863: result: $with_echo" >&5
5864 echo "${ECHO_T}$with_echo" >&6
5866 ### use option --enable-warnings to turn on all gcc warnings
5867 echo "$as_me:5867: checking if you want to see compiler warnings" >&5
5868 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
5870 # Check whether --enable-warnings or --disable-warnings was given.
5871 if test "${enable_warnings+set}" = set; then
5872 enableval="$enable_warnings"
5873 with_warnings=$enableval
5875 echo "$as_me:5875: result: $with_warnings" >&5
5876 echo "${ECHO_T}$with_warnings" >&6
5878 if test -n "$with_warnings"; then
5879 ADAFLAGS="$ADAFLAGS -gnatg"
5881 if test "$GCC" = yes
5883 cat > conftest.$ac_ext <<EOF
5884 #line 5884 "configure"
5885 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
5887 { echo "$as_me:5887: checking for $CC warning options..." >&5
5888 echo "$as_me: checking for $CC warning options..." >&6;}
5889 cf_save_CFLAGS="$CFLAGS"
5890 EXTRA_CFLAGS="-W -Wall"
5892 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
5894 Wbad-function-cast \
5898 Wmissing-declarations \
5899 Wmissing-prototypes \
5903 Wstrict-prototypes \
5904 Wundef $cf_warn_CONST
5906 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
5907 if { (eval echo "$as_me:5907: \"$ac_compile\"") >&5
5908 (eval $ac_compile) 2>&5
5910 echo "$as_me:5910: \$? = $ac_status" >&5
5911 (exit $ac_status); }; then
5912 test -n "$verbose" && echo "$as_me:5912: result: ... -$cf_opt" >&5
5913 echo "${ECHO_T}... -$cf_opt" >&6
5914 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
5915 test "$cf_opt" = Wcast-qual && EXTRA_CFLAGS="$EXTRA_CFLAGS -DXTSTRINGDEFINES"
5919 CFLAGS="$cf_save_CFLAGS"
5924 if test "$GCC" = yes
5926 cat > conftest.i <<EOF
5928 #define GCC_PRINTF 0
5933 #ifndef GCC_NORETURN
5934 #define GCC_NORETURN /* nothing */
5937 #define GCC_UNUSED /* nothing */
5940 if test "$GCC" = yes
5942 { echo "$as_me:5942: checking for $CC __attribute__ directives..." >&5
5943 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
5944 cat > conftest.$ac_ext <<EOF
5945 #line 5945 "configure"
5946 #include "confdefs.h"
5947 #include "conftest.h"
5948 #include "conftest.i"
5950 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
5952 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
5955 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
5957 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
5959 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
5960 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
5961 extern void foo(void) GCC_NORETURN;
5962 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
5964 for cf_attribute in scanf printf unused noreturn
5967 CF_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5969 cf_directive="__attribute__(($cf_attribute))"
5970 echo "checking for $CC $cf_directive" 1>&5
5971 case $cf_attribute in
5973 cat >conftest.h <<EOF
5974 #define GCC_$CF_ATTRIBUTE 1
5978 cat >conftest.h <<EOF
5979 #define GCC_$CF_ATTRIBUTE $cf_directive
5983 if { (eval echo "$as_me:5983: \"$ac_compile\"") >&5
5984 (eval $ac_compile) 2>&5
5986 echo "$as_me:5986: \$? = $ac_status" >&5
5987 (exit $ac_status); }; then
5988 test -n "$verbose" && echo "$as_me:5988: result: ... $cf_attribute" >&5
5989 echo "${ECHO_T}... $cf_attribute" >&6
5990 cat conftest.h >>confdefs.h
5992 # sed -e 's/__attr.*/\/*nothing*\//' conftest.h >>confdefs.h
5996 fgrep define conftest.i >>confdefs.h
6001 ### use option --enable-assertions to turn on generation of assertion code
6002 echo "$as_me:6002: checking if you want to enable runtime assertions" >&5
6003 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
6005 # Check whether --enable-assertions or --disable-assertions was given.
6006 if test "${enable_assertions+set}" = set; then
6007 enableval="$enable_assertions"
6008 with_assertions=$enableval
6012 echo "$as_me:6012: result: $with_assertions" >&5
6013 echo "${ECHO_T}$with_assertions" >&6
6016 if test "$with_assertions" = no
6018 cat >>confdefs.h <<\EOF
6022 CPPFLAGS="$CPPFLAGS -DNDEBUG"
6024 ADAFLAGS="$ADAFLAGS -gnata"
6028 ### use option --disable-leaks to suppress "permanent" leaks, for testing
6030 # Check whether --enable-leaks or --disable-leaks was given.
6031 if test "${enable_leaks+set}" = set; then
6032 enableval="$enable_leaks"
6033 test "$enableval" = no && cat >>confdefs.h <<\EOF
6038 cat >>confdefs.h <<\EOF
6039 #define HAVE_NC_ALLOC_H 1
6042 ### use option --enable-expanded to generate certain macros as functions
6044 # Check whether --enable-expanded or --disable-expanded was given.
6045 if test "${enable_expanded+set}" = set; then
6046 enableval="$enable_expanded"
6047 test "$enableval" = yes && cat >>confdefs.h <<\EOF
6048 #define NCURSES_EXPANDED 1
6053 ### use option --disable-macros to suppress macros in favor of functions
6055 # Check whether --enable-macros or --disable-macros was given.
6056 if test "${enable_macros+set}" = set; then
6057 enableval="$enable_macros"
6058 test "$enableval" = no && cat >>confdefs.h <<\EOF
6059 #define NCURSES_NOMACROS 1
6064 ### Checks for libraries.
6065 echo "$as_me:6065: checking for gettimeofday" >&5
6066 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
6067 if test "${ac_cv_func_gettimeofday+set}" = set; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 cat >conftest.$ac_ext <<_ACEOF
6071 #line 6071 "configure"
6072 #include "confdefs.h"
6073 /* System header to define __stub macros and hopefully few prototypes,
6074 which can conflict with char gettimeofday (); below. */
6076 /* Override any gcc2 internal prototype to avoid an error. */
6080 /* We use char because int might match the return type of a gcc2
6081 builtin and then its argument prototype would still apply. */
6082 char gettimeofday ();
6088 /* The GNU C library defines this for functions which it implements
6089 to always fail with ENOSYS. Some functions are actually named
6090 something starting with __ and the normal name is an alias. */
6091 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
6101 rm -f conftest.$ac_objext conftest$ac_exeext
6102 if { (eval echo "$as_me:6102: \"$ac_link\"") >&5
6103 (eval $ac_link) 2>&5
6105 echo "$as_me:6105: \$? = $ac_status" >&5
6106 (exit $ac_status); } &&
6107 { ac_try='test -s conftest$ac_exeext'
6108 { (eval echo "$as_me:6108: \"$ac_try\"") >&5
6111 echo "$as_me:6111: \$? = $ac_status" >&5
6112 (exit $ac_status); }; }; then
6113 ac_cv_func_gettimeofday=yes
6115 echo "$as_me: failed program was:" >&5
6116 cat conftest.$ac_ext >&5
6117 ac_cv_func_gettimeofday=no
6119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6121 echo "$as_me:6121: result: $ac_cv_func_gettimeofday" >&5
6122 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
6123 if test $ac_cv_func_gettimeofday = yes; then
6124 cat >>confdefs.h <<\EOF
6125 #define HAVE_GETTIMEOFDAY 1
6130 echo "$as_me:6130: checking for gettimeofday in -lbsd" >&5
6131 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
6132 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 ac_check_lib_save_LIBS=$LIBS
6137 cat >conftest.$ac_ext <<_ACEOF
6138 #line 6138 "configure"
6139 #include "confdefs.h"
6141 /* Override any gcc2 internal prototype to avoid an error. */
6145 /* We use char because int might match the return type of a gcc2
6146 builtin and then its argument prototype would still apply. */
6147 char gettimeofday ();
6156 rm -f conftest.$ac_objext conftest$ac_exeext
6157 if { (eval echo "$as_me:6157: \"$ac_link\"") >&5
6158 (eval $ac_link) 2>&5
6160 echo "$as_me:6160: \$? = $ac_status" >&5
6161 (exit $ac_status); } &&
6162 { ac_try='test -s conftest$ac_exeext'
6163 { (eval echo "$as_me:6163: \"$ac_try\"") >&5
6166 echo "$as_me:6166: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 ac_cv_lib_bsd_gettimeofday=yes
6170 echo "$as_me: failed program was:" >&5
6171 cat conftest.$ac_ext >&5
6172 ac_cv_lib_bsd_gettimeofday=no
6174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6175 LIBS=$ac_check_lib_save_LIBS
6177 echo "$as_me:6177: result: $ac_cv_lib_bsd_gettimeofday" >&5
6178 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
6179 if test $ac_cv_lib_bsd_gettimeofday = yes; then
6180 cat >>confdefs.h <<\EOF
6181 #define HAVE_GETTIMEOFDAY 1
6189 echo "$as_me:6189: checking if -lm needed for math functions" >&5
6190 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
6191 if test "${cf_cv_need_libm+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 cat >conftest.$ac_ext <<_ACEOF
6196 #line 6196 "configure"
6197 #include "confdefs.h"
6205 double x = rand(); printf("result = %g\n", sin(x))
6210 rm -f conftest.$ac_objext conftest$ac_exeext
6211 if { (eval echo "$as_me:6211: \"$ac_link\"") >&5
6212 (eval $ac_link) 2>&5
6214 echo "$as_me:6214: \$? = $ac_status" >&5
6215 (exit $ac_status); } &&
6216 { ac_try='test -s conftest$ac_exeext'
6217 { (eval echo "$as_me:6217: \"$ac_try\"") >&5
6220 echo "$as_me:6220: \$? = $ac_status" >&5
6221 (exit $ac_status); }; }; then
6224 echo "$as_me: failed program was:" >&5
6225 cat conftest.$ac_ext >&5
6228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6230 echo "$as_me:6230: result: $cf_cv_need_libm" >&5
6231 echo "${ECHO_T}$cf_cv_need_libm" >&6
6232 if test "$cf_cv_need_libm" = yes
6237 ### Checks for header files.
6239 echo "$as_me:6239: checking if we must define _GNU_SOURCE" >&5
6240 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
6241 if test "${cf_cv_gnu_source+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 cat >conftest.$ac_ext <<_ACEOF
6246 #line 6246 "configure"
6247 #include "confdefs.h"
6248 #include <sys/types.h>
6253 #ifndef _XOPEN_SOURCE
6260 rm -f conftest.$ac_objext
6261 if { (eval echo "$as_me:6261: \"$ac_compile\"") >&5
6262 (eval $ac_compile) 2>&5
6264 echo "$as_me:6264: \$? = $ac_status" >&5
6265 (exit $ac_status); } &&
6266 { ac_try='test -s conftest.$ac_objext'
6267 { (eval echo "$as_me:6267: \"$ac_try\"") >&5
6270 echo "$as_me:6270: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
6274 echo "$as_me: failed program was:" >&5
6275 cat conftest.$ac_ext >&5
6277 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6278 cat >conftest.$ac_ext <<_ACEOF
6279 #line 6279 "configure"
6280 #include "confdefs.h"
6281 #include <sys/types.h>
6286 #ifdef _XOPEN_SOURCE
6293 rm -f conftest.$ac_objext
6294 if { (eval echo "$as_me:6294: \"$ac_compile\"") >&5
6295 (eval $ac_compile) 2>&5
6297 echo "$as_me:6297: \$? = $ac_status" >&5
6298 (exit $ac_status); } &&
6299 { ac_try='test -s conftest.$ac_objext'
6300 { (eval echo "$as_me:6300: \"$ac_try\"") >&5
6303 echo "$as_me:6303: \$? = $ac_status" >&5
6304 (exit $ac_status); }; }; then
6307 echo "$as_me: failed program was:" >&5
6308 cat conftest.$ac_ext >&5
6309 cf_cv_gnu_source=yes
6311 rm -f conftest.$ac_objext conftest.$ac_ext
6315 rm -f conftest.$ac_objext conftest.$ac_ext
6318 echo "$as_me:6318: result: $cf_cv_gnu_source" >&5
6319 echo "${ECHO_T}$cf_cv_gnu_source" >&6
6320 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6322 echo "$as_me:6322: checking for ANSI C header files" >&5
6323 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6324 if test "${ac_cv_header_stdc+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 cat >conftest.$ac_ext <<_ACEOF
6328 #line 6328 "configure"
6329 #include "confdefs.h"
6336 if { (eval echo "$as_me:6336: \"$ac_cpp conftest.$ac_ext\"") >&5
6337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6339 egrep -v '^ *\+' conftest.er1 >conftest.err
6341 cat conftest.err >&5
6342 echo "$as_me:6342: \$? = $ac_status" >&5
6343 (exit $ac_status); } >/dev/null; then
6344 if test -s conftest.err; then
6345 ac_cpp_err=$ac_c_preproc_warn_flag
6352 if test -z "$ac_cpp_err"; then
6353 ac_cv_header_stdc=yes
6355 echo "$as_me: failed program was:" >&5
6356 cat conftest.$ac_ext >&5
6357 ac_cv_header_stdc=no
6359 rm -f conftest.err conftest.$ac_ext
6361 if test $ac_cv_header_stdc = yes; then
6362 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6363 cat >conftest.$ac_ext <<_ACEOF
6364 #line 6364 "configure"
6365 #include "confdefs.h"
6369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6370 egrep "memchr" >/dev/null 2>&1; then
6373 ac_cv_header_stdc=no
6379 if test $ac_cv_header_stdc = yes; then
6380 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6381 cat >conftest.$ac_ext <<_ACEOF
6382 #line 6382 "configure"
6383 #include "confdefs.h"
6387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6388 egrep "free" >/dev/null 2>&1; then
6391 ac_cv_header_stdc=no
6397 if test $ac_cv_header_stdc = yes; then
6398 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6399 if test "$cross_compiling" = yes; then
6402 cat >conftest.$ac_ext <<_ACEOF
6403 #line 6403 "configure"
6404 #include "confdefs.h"
6406 #if ((' ' & 0x0FF) == 0x020)
6407 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6408 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6410 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6411 || ('j' <= (c) && (c) <= 'r') \
6412 || ('s' <= (c) && (c) <= 'z'))
6413 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6421 for (i = 0; i < 256; i++)
6422 if (XOR (islower (i), ISLOWER (i))
6423 || toupper (i) != TOUPPER (i))
6428 rm -f conftest$ac_exeext
6429 if { (eval echo "$as_me:6429: \"$ac_link\"") >&5
6430 (eval $ac_link) 2>&5
6432 echo "$as_me:6432: \$? = $ac_status" >&5
6433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6434 { (eval echo "$as_me:6434: \"$ac_try\"") >&5
6437 echo "$as_me:6437: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6441 echo "$as_me: program exited with status $ac_status" >&5
6442 echo "$as_me: failed program was:" >&5
6443 cat conftest.$ac_ext >&5
6444 ac_cv_header_stdc=no
6446 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6450 echo "$as_me:6450: result: $ac_cv_header_stdc" >&5
6451 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6452 if test $ac_cv_header_stdc = yes; then
6454 cat >>confdefs.h <<\EOF
6455 #define STDC_HEADERS 1
6461 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6462 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6463 echo "$as_me:6463: checking for $ac_hdr that defines DIR" >&5
6464 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 cat >conftest.$ac_ext <<_ACEOF
6469 #line 6469 "configure"
6470 #include "confdefs.h"
6471 #include <sys/types.h>
6483 rm -f conftest.$ac_objext
6484 if { (eval echo "$as_me:6484: \"$ac_compile\"") >&5
6485 (eval $ac_compile) 2>&5
6487 echo "$as_me:6487: \$? = $ac_status" >&5
6488 (exit $ac_status); } &&
6489 { ac_try='test -s conftest.$ac_objext'
6490 { (eval echo "$as_me:6490: \"$ac_try\"") >&5
6493 echo "$as_me:6493: \$? = $ac_status" >&5
6494 (exit $ac_status); }; }; then
6495 eval "$as_ac_Header=yes"
6497 echo "$as_me: failed program was:" >&5
6498 cat conftest.$ac_ext >&5
6499 eval "$as_ac_Header=no"
6501 rm -f conftest.$ac_objext conftest.$ac_ext
6503 echo "$as_me:6503: result: `eval echo '${'$as_ac_Header'}'`" >&5
6504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6506 cat >>confdefs.h <<EOF
6507 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6510 ac_header_dirent=$ac_hdr; break
6514 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6515 if test $ac_header_dirent = dirent.h; then
6516 echo "$as_me:6516: checking for opendir in -ldir" >&5
6517 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
6518 if test "${ac_cv_lib_dir_opendir+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 ac_check_lib_save_LIBS=$LIBS
6523 cat >conftest.$ac_ext <<_ACEOF
6524 #line 6524 "configure"
6525 #include "confdefs.h"
6527 /* Override any gcc2 internal prototype to avoid an error. */
6531 /* We use char because int might match the return type of a gcc2
6532 builtin and then its argument prototype would still apply. */
6542 rm -f conftest.$ac_objext conftest$ac_exeext
6543 if { (eval echo "$as_me:6543: \"$ac_link\"") >&5
6544 (eval $ac_link) 2>&5
6546 echo "$as_me:6546: \$? = $ac_status" >&5
6547 (exit $ac_status); } &&
6548 { ac_try='test -s conftest$ac_exeext'
6549 { (eval echo "$as_me:6549: \"$ac_try\"") >&5
6552 echo "$as_me:6552: \$? = $ac_status" >&5
6553 (exit $ac_status); }; }; then
6554 ac_cv_lib_dir_opendir=yes
6556 echo "$as_me: failed program was:" >&5
6557 cat conftest.$ac_ext >&5
6558 ac_cv_lib_dir_opendir=no
6560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6561 LIBS=$ac_check_lib_save_LIBS
6563 echo "$as_me:6563: result: $ac_cv_lib_dir_opendir" >&5
6564 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
6565 if test $ac_cv_lib_dir_opendir = yes; then
6570 echo "$as_me:6570: checking for opendir in -lx" >&5
6571 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
6572 if test "${ac_cv_lib_x_opendir+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 ac_check_lib_save_LIBS=$LIBS
6577 cat >conftest.$ac_ext <<_ACEOF
6578 #line 6578 "configure"
6579 #include "confdefs.h"
6581 /* Override any gcc2 internal prototype to avoid an error. */
6585 /* We use char because int might match the return type of a gcc2
6586 builtin and then its argument prototype would still apply. */
6596 rm -f conftest.$ac_objext conftest$ac_exeext
6597 if { (eval echo "$as_me:6597: \"$ac_link\"") >&5
6598 (eval $ac_link) 2>&5
6600 echo "$as_me:6600: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -s conftest$ac_exeext'
6603 { (eval echo "$as_me:6603: \"$ac_try\"") >&5
6606 echo "$as_me:6606: \$? = $ac_status" >&5
6607 (exit $ac_status); }; }; then
6608 ac_cv_lib_x_opendir=yes
6610 echo "$as_me: failed program was:" >&5
6611 cat conftest.$ac_ext >&5
6612 ac_cv_lib_x_opendir=no
6614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6615 LIBS=$ac_check_lib_save_LIBS
6617 echo "$as_me:6617: result: $ac_cv_lib_x_opendir" >&5
6618 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
6619 if test $ac_cv_lib_x_opendir = yes; then
6625 echo "$as_me:6625: checking whether time.h and sys/time.h may both be included" >&5
6626 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6627 if test "${ac_cv_header_time+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 cat >conftest.$ac_ext <<_ACEOF
6631 #line 6631 "configure"
6632 #include "confdefs.h"
6633 #include <sys/types.h>
6634 #include <sys/time.h>
6640 if ((struct tm *) 0)
6646 rm -f conftest.$ac_objext
6647 if { (eval echo "$as_me:6647: \"$ac_compile\"") >&5
6648 (eval $ac_compile) 2>&5
6650 echo "$as_me:6650: \$? = $ac_status" >&5
6651 (exit $ac_status); } &&
6652 { ac_try='test -s conftest.$ac_objext'
6653 { (eval echo "$as_me:6653: \"$ac_try\"") >&5
6656 echo "$as_me:6656: \$? = $ac_status" >&5
6657 (exit $ac_status); }; }; then
6658 ac_cv_header_time=yes
6660 echo "$as_me: failed program was:" >&5
6661 cat conftest.$ac_ext >&5
6662 ac_cv_header_time=no
6664 rm -f conftest.$ac_objext conftest.$ac_ext
6666 echo "$as_me:6666: result: $ac_cv_header_time" >&5
6667 echo "${ECHO_T}$ac_cv_header_time" >&6
6668 if test $ac_cv_header_time = yes; then
6670 cat >>confdefs.h <<\EOF
6671 #define TIME_WITH_SYS_TIME 1
6676 echo "$as_me:6676: checking for regular-expression headers" >&5
6677 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
6678 if test "${cf_cv_regex+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 cat >conftest.$ac_ext <<_ACEOF
6683 #line 6683 "configure"
6684 #include "confdefs.h"
6685 #include <sys/types.h>
6692 int x = regcomp(p, "", 0);
6693 int y = regexec(p, "", 0, 0, 0);
6700 rm -f conftest.$ac_objext conftest$ac_exeext
6701 if { (eval echo "$as_me:6701: \"$ac_link\"") >&5
6702 (eval $ac_link) 2>&5
6704 echo "$as_me:6704: \$? = $ac_status" >&5
6705 (exit $ac_status); } &&
6706 { ac_try='test -s conftest$ac_exeext'
6707 { (eval echo "$as_me:6707: \"$ac_try\"") >&5
6710 echo "$as_me:6710: \$? = $ac_status" >&5
6711 (exit $ac_status); }; }; then
6712 cf_cv_regex="regex.h"
6714 echo "$as_me: failed program was:" >&5
6715 cat conftest.$ac_ext >&5
6717 cat >conftest.$ac_ext <<_ACEOF
6718 #line 6718 "configure"
6719 #include "confdefs.h"
6725 char *p = compile("", "", "", 0);
6726 int x = step("", "");
6732 rm -f conftest.$ac_objext conftest$ac_exeext
6733 if { (eval echo "$as_me:6733: \"$ac_link\"") >&5
6734 (eval $ac_link) 2>&5
6736 echo "$as_me:6736: \$? = $ac_status" >&5
6737 (exit $ac_status); } &&
6738 { ac_try='test -s conftest$ac_exeext'
6739 { (eval echo "$as_me:6739: \"$ac_try\"") >&5
6742 echo "$as_me:6742: \$? = $ac_status" >&5
6743 (exit $ac_status); }; }; then
6744 cf_cv_regex="regexp.h"
6746 echo "$as_me: failed program was:" >&5
6747 cat conftest.$ac_ext >&5
6749 cf_save_LIBS="$LIBS"
6751 cat >conftest.$ac_ext <<_ACEOF
6752 #line 6752 "configure"
6753 #include "confdefs.h"
6754 #include <regexpr.h>
6759 char *p = compile("", "", "");
6760 int x = step("", "");
6766 rm -f conftest.$ac_objext conftest$ac_exeext
6767 if { (eval echo "$as_me:6767: \"$ac_link\"") >&5
6768 (eval $ac_link) 2>&5
6770 echo "$as_me:6770: \$? = $ac_status" >&5
6771 (exit $ac_status); } &&
6772 { ac_try='test -s conftest$ac_exeext'
6773 { (eval echo "$as_me:6773: \"$ac_try\"") >&5
6776 echo "$as_me:6776: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 cf_cv_regex="regexpr.h"
6780 echo "$as_me: failed program was:" >&5
6781 cat conftest.$ac_ext >&5
6782 LIBS="$cf_save_LIBS"
6784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6792 echo "$as_me:6792: result: $cf_cv_regex" >&5
6793 echo "${ECHO_T}$cf_cv_regex" >&6
6794 case $cf_cv_regex in
6795 regex.h) cat >>confdefs.h <<\EOF
6796 #define HAVE_REGEX_H_FUNCS 1
6799 regexp.h) cat >>confdefs.h <<\EOF
6800 #define HAVE_REGEXP_H_FUNCS 1
6803 regexpr.h) cat >>confdefs.h <<\EOF
6804 #define HAVE_REGEXPR_H_FUNCS 1
6827 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6828 echo "$as_me:6828: checking for $ac_header" >&5
6829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 cat >conftest.$ac_ext <<_ACEOF
6834 #line 6834 "configure"
6835 #include "confdefs.h"
6836 #include <$ac_header>
6838 if { (eval echo "$as_me:6838: \"$ac_cpp conftest.$ac_ext\"") >&5
6839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6841 egrep -v '^ *\+' conftest.er1 >conftest.err
6843 cat conftest.err >&5
6844 echo "$as_me:6844: \$? = $ac_status" >&5
6845 (exit $ac_status); } >/dev/null; then
6846 if test -s conftest.err; then
6847 ac_cpp_err=$ac_c_preproc_warn_flag
6854 if test -z "$ac_cpp_err"; then
6855 eval "$as_ac_Header=yes"
6857 echo "$as_me: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6859 eval "$as_ac_Header=no"
6861 rm -f conftest.err conftest.$ac_ext
6863 echo "$as_me:6863: result: `eval echo '${'$as_ac_Header'}'`" >&5
6864 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6866 cat >>confdefs.h <<EOF
6867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6873 # check for ISC (this may also define _POSIX_SOURCE)
6874 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
6875 if test "$ISC" = yes ; then
6877 echo "$as_me:6877: checking for main in -lcposix" >&5
6878 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
6879 if test "${ac_cv_lib_cposix_main+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6882 ac_check_lib_save_LIBS=$LIBS
6883 LIBS="-lcposix $LIBS"
6884 cat >conftest.$ac_ext <<_ACEOF
6885 #line 6885 "configure"
6886 #include "confdefs.h"
6896 rm -f conftest.$ac_objext conftest$ac_exeext
6897 if { (eval echo "$as_me:6897: \"$ac_link\"") >&5
6898 (eval $ac_link) 2>&5
6900 echo "$as_me:6900: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -s conftest$ac_exeext'
6903 { (eval echo "$as_me:6903: \"$ac_try\"") >&5
6906 echo "$as_me:6906: \$? = $ac_status" >&5
6907 (exit $ac_status); }; }; then
6908 ac_cv_lib_cposix_main=yes
6910 echo "$as_me: failed program was:" >&5
6911 cat conftest.$ac_ext >&5
6912 ac_cv_lib_cposix_main=no
6914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6915 LIBS=$ac_check_lib_save_LIBS
6917 echo "$as_me:6917: result: $ac_cv_lib_cposix_main" >&5
6918 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
6919 if test $ac_cv_lib_cposix_main = yes; then
6920 cat >>confdefs.h <<EOF
6921 #define HAVE_LIBCPOSIX 1
6924 LIBS="-lcposix $LIBS"
6928 echo "$as_me:6928: checking for bzero in -linet" >&5
6929 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
6930 if test "${ac_cv_lib_inet_bzero+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 ac_check_lib_save_LIBS=$LIBS
6935 cat >conftest.$ac_ext <<_ACEOF
6936 #line 6936 "configure"
6937 #include "confdefs.h"
6939 /* Override any gcc2 internal prototype to avoid an error. */
6943 /* We use char because int might match the return type of a gcc2
6944 builtin and then its argument prototype would still apply. */
6954 rm -f conftest.$ac_objext conftest$ac_exeext
6955 if { (eval echo "$as_me:6955: \"$ac_link\"") >&5
6956 (eval $ac_link) 2>&5
6958 echo "$as_me:6958: \$? = $ac_status" >&5
6959 (exit $ac_status); } &&
6960 { ac_try='test -s conftest$ac_exeext'
6961 { (eval echo "$as_me:6961: \"$ac_try\"") >&5
6964 echo "$as_me:6964: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
6966 ac_cv_lib_inet_bzero=yes
6968 echo "$as_me: failed program was:" >&5
6969 cat conftest.$ac_ext >&5
6970 ac_cv_lib_inet_bzero=no
6972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6973 LIBS=$ac_check_lib_save_LIBS
6975 echo "$as_me:6975: result: $ac_cv_lib_inet_bzero" >&5
6976 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
6977 if test $ac_cv_lib_inet_bzero = yes; then
6982 echo "$as_me:6982: checking if sys/time.h works with sys/select.h" >&5
6983 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
6984 if test "${cf_cv_sys_time_select+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 cat >conftest.$ac_ext <<_ACEOF
6989 #line 6989 "configure"
6990 #include "confdefs.h"
6992 #include <sys/types.h>
6993 #ifdef HAVE_SYS_TIME_H
6994 #include <sys/time.h>
6996 #ifdef HAVE_SYS_SELECT_H
6997 #include <sys/select.h>
7008 rm -f conftest.$ac_objext
7009 if { (eval echo "$as_me:7009: \"$ac_compile\"") >&5
7010 (eval $ac_compile) 2>&5
7012 echo "$as_me:7012: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try='test -s conftest.$ac_objext'
7015 { (eval echo "$as_me:7015: \"$ac_try\"") >&5
7018 echo "$as_me:7018: \$? = $ac_status" >&5
7019 (exit $ac_status); }; }; then
7020 cf_cv_sys_time_select=yes
7022 echo "$as_me: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7024 cf_cv_sys_time_select=no
7026 rm -f conftest.$ac_objext conftest.$ac_ext
7030 echo "$as_me:7030: result: $cf_cv_sys_time_select" >&5
7031 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
7032 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
7033 #define HAVE_SYS_TIME_SELECT 1
7036 ### checks for compiler characteristics
7038 ac_cpp='$CPP $CPPFLAGS'
7039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7043 echo "$as_me:7043: checking for $CC option to accept ANSI C" >&5
7044 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7045 if test "${ac_cv_prog_cc_stdc+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 ac_cv_prog_cc_stdc=no
7050 cat >conftest.$ac_ext <<_ACEOF
7051 #line 7051 "configure"
7052 #include "confdefs.h"
7055 #include <sys/types.h>
7056 #include <sys/stat.h>
7057 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7058 struct buf { int x; };
7059 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7060 static char *e (p, i)
7066 static char *f (char * (*g) (char **, int), char **p, ...)
7071 s = g (p, va_arg (v,int));
7075 int test (int i, double x);
7076 struct s1 {int (*f) (int a);};
7077 struct s2 {int (*f) (double a);};
7078 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7084 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7089 # Don't try gcc -ansi; that turns off useful extensions and
7090 # breaks some systems' header files.
7091 # AIX -qlanglvl=ansi
7092 # Ultrix and OSF/1 -std1
7093 # HP-UX 10.20 and later -Ae
7094 # HP-UX older versions -Aa -D_HPUX_SOURCE
7095 # SVR4 -Xc -D__EXTENSIONS__
7096 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7098 CC="$ac_save_CC $ac_arg"
7099 rm -f conftest.$ac_objext
7100 if { (eval echo "$as_me:7100: \"$ac_compile\"") >&5
7101 (eval $ac_compile) 2>&5
7103 echo "$as_me:7103: \$? = $ac_status" >&5
7104 (exit $ac_status); } &&
7105 { ac_try='test -s conftest.$ac_objext'
7106 { (eval echo "$as_me:7106: \"$ac_try\"") >&5
7109 echo "$as_me:7109: \$? = $ac_status" >&5
7110 (exit $ac_status); }; }; then
7111 ac_cv_prog_cc_stdc=$ac_arg
7114 echo "$as_me: failed program was:" >&5
7115 cat conftest.$ac_ext >&5
7117 rm -f conftest.$ac_objext
7119 rm -f conftest.$ac_ext conftest.$ac_objext
7124 case "x$ac_cv_prog_cc_stdc" in
7126 echo "$as_me:7126: result: none needed" >&5
7127 echo "${ECHO_T}none needed" >&6 ;;
7129 echo "$as_me:7129: result: $ac_cv_prog_cc_stdc" >&5
7130 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7131 CC="$CC $ac_cv_prog_cc_stdc" ;;
7134 echo "$as_me:7134: checking for an ANSI C-conforming const" >&5
7135 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7136 if test "${ac_cv_c_const+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 cat >conftest.$ac_ext <<_ACEOF
7140 #line 7140 "configure"
7141 #include "confdefs.h"
7146 /* FIXME: Include the comments suggested by Paul. */
7148 /* Ultrix mips cc rejects this. */
7149 typedef int charset[2];
7151 /* SunOS 4.1.1 cc rejects this. */
7152 char const *const *ccp;
7154 /* NEC SVR4.0.2 mips cc rejects this. */
7155 struct point {int x, y;};
7156 static struct point const zero = {0,0};
7157 /* AIX XL C 1.02.0.0 rejects this.
7158 It does not let you subtract one const X* pointer from another in
7159 an arm of an if-expression whose if-part is not a constant
7161 const char *g = "string";
7162 ccp = &g + (g ? g-g : 0);
7163 /* HPUX 7.0 cc rejects these. */
7166 ccp = (char const *const *) p;
7167 { /* SCO 3.2v4 cc rejects this. */
7169 char const *s = 0 ? (char *) 0 : (char const *) 0;
7173 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7175 const int *foo = &x[0];
7178 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7179 typedef const int *iptr;
7183 { /* AIX XL C 1.02.0.0 rejects this saying
7184 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7185 struct s { int j; const int *ap[3]; };
7186 struct s *b; b->j = 5;
7188 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7197 rm -f conftest.$ac_objext
7198 if { (eval echo "$as_me:7198: \"$ac_compile\"") >&5
7199 (eval $ac_compile) 2>&5
7201 echo "$as_me:7201: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try='test -s conftest.$ac_objext'
7204 { (eval echo "$as_me:7204: \"$ac_try\"") >&5
7207 echo "$as_me:7207: \$? = $ac_status" >&5
7208 (exit $ac_status); }; }; then
7211 echo "$as_me: failed program was:" >&5
7212 cat conftest.$ac_ext >&5
7215 rm -f conftest.$ac_objext conftest.$ac_ext
7217 echo "$as_me:7217: result: $ac_cv_c_const" >&5
7218 echo "${ECHO_T}$ac_cv_c_const" >&6
7219 if test $ac_cv_c_const = no; then
7221 cat >>confdefs.h <<\EOF
7227 echo "$as_me:7227: checking for inline" >&5
7228 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7229 if test "${ac_cv_c_inline+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 for ac_kw in inline __inline__ __inline; do
7234 cat >conftest.$ac_ext <<_ACEOF
7235 #line 7235 "configure"
7236 #include "confdefs.h"
7238 static $ac_kw int static_foo () {return 0; }
7239 $ac_kw int foo () {return 0; }
7243 rm -f conftest.$ac_objext
7244 if { (eval echo "$as_me:7244: \"$ac_compile\"") >&5
7245 (eval $ac_compile) 2>&5
7247 echo "$as_me:7247: \$? = $ac_status" >&5
7248 (exit $ac_status); } &&
7249 { ac_try='test -s conftest.$ac_objext'
7250 { (eval echo "$as_me:7250: \"$ac_try\"") >&5
7253 echo "$as_me:7253: \$? = $ac_status" >&5
7254 (exit $ac_status); }; }; then
7255 ac_cv_c_inline=$ac_kw; break
7257 echo "$as_me: failed program was:" >&5
7258 cat conftest.$ac_ext >&5
7260 rm -f conftest.$ac_objext conftest.$ac_ext
7264 echo "$as_me:7264: result: $ac_cv_c_inline" >&5
7265 echo "${ECHO_T}$ac_cv_c_inline" >&6
7266 case $ac_cv_c_inline in
7269 cat >>confdefs.h <<\EOF
7273 *) cat >>confdefs.h <<EOF
7274 #define inline $ac_cv_c_inline
7279 test "$ac_cv_c_inline" != no && cat >>confdefs.h <<\EOF
7280 #define CC_HAS_INLINE_FUNCS 1
7283 echo "$as_me:7283: checking if unsigned literals are legal" >&5
7284 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
7285 if test "${cf_cv_unsigned_literals+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 cat >conftest.$ac_ext <<_ACEOF
7290 #line 7290 "configure"
7291 #include "confdefs.h"
7296 long x = 1L + 1UL + 1U + 1
7301 rm -f conftest.$ac_objext
7302 if { (eval echo "$as_me:7302: \"$ac_compile\"") >&5
7303 (eval $ac_compile) 2>&5
7305 echo "$as_me:7305: \$? = $ac_status" >&5
7306 (exit $ac_status); } &&
7307 { ac_try='test -s conftest.$ac_objext'
7308 { (eval echo "$as_me:7308: \"$ac_try\"") >&5
7311 echo "$as_me:7311: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 cf_cv_unsigned_literals=yes
7315 echo "$as_me: failed program was:" >&5
7316 cat conftest.$ac_ext >&5
7317 cf_cv_unsigned_literals=no
7319 rm -f conftest.$ac_objext conftest.$ac_ext
7323 echo "$as_me:7323: result: $cf_cv_unsigned_literals" >&5
7324 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
7326 echo "$as_me:7326: checking for type of chtype" >&5
7327 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
7328 if test "${cf_cv_typeof_chtype+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7332 if test "$cross_compiling" = yes; then
7333 cf_cv_typeof_chtype=long
7335 cat >conftest.$ac_ext <<_ACEOF
7336 #line 7336 "configure"
7337 #include "confdefs.h"
7339 #ifdef USE_WIDEC_SUPPORT
7340 #include <stddef.h> /* we want wchar_t */
7341 #define WANT_BITS 39
7343 #define WANT_BITS 31
7348 FILE *fp = fopen("cf_test.out", "w");
7350 char *result = "long";
7351 #ifdef USE_WIDEC_SUPPORT
7353 * If wchar_t is smaller than a long, it must be an int or a
7354 * short. We prefer not to use a short anyway.
7356 if (sizeof(unsigned long) > sizeof(wchar_t))
7359 if (sizeof(unsigned long) > sizeof(unsigned int)) {
7362 for (n = 0; n < WANT_BITS; n++) {
7363 unsigned int y = (x >> n);
7364 if (y != 1 || x == 0) {
7370 * If x is nonzero, an int is big enough for the bits
7373 result = (x != 0) ? "int" : "long";
7382 rm -f conftest$ac_exeext
7383 if { (eval echo "$as_me:7383: \"$ac_link\"") >&5
7384 (eval $ac_link) 2>&5
7386 echo "$as_me:7386: \$? = $ac_status" >&5
7387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7388 { (eval echo "$as_me:7388: \"$ac_try\"") >&5
7391 echo "$as_me:7391: \$? = $ac_status" >&5
7392 (exit $ac_status); }; }; then
7393 cf_cv_typeof_chtype=`cat cf_test.out`
7395 echo "$as_me: program exited with status $ac_status" >&5
7396 echo "$as_me: failed program was:" >&5
7397 cat conftest.$ac_ext >&5
7398 cf_cv_typeof_chtype=long
7400 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7406 echo "$as_me:7406: result: $cf_cv_typeof_chtype" >&5
7407 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
7409 cat >>confdefs.h <<EOF
7410 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
7414 test "$cf_cv_unsigned_literals" = yes && cf_cv_1UL="${cf_cv_1UL}U"
7415 test "$cf_cv_typeof_chtype" = long && cf_cv_1UL="${cf_cv_1UL}L"
7417 ### Checks for external-data
7419 echo "$as_me:7419: checking if external errno is declared" >&5
7420 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
7421 if test "${cf_cv_dcl_errno+set}" = set; then
7422 echo $ECHO_N "(cached) $ECHO_C" >&6
7425 cat >conftest.$ac_ext <<_ACEOF
7426 #line 7426 "configure"
7427 #include "confdefs.h"
7429 #ifdef HAVE_STDLIB_H
7433 #include <sys/types.h>
7438 long x = (long) errno
7443 rm -f conftest.$ac_objext
7444 if { (eval echo "$as_me:7444: \"$ac_compile\"") >&5
7445 (eval $ac_compile) 2>&5
7447 echo "$as_me:7447: \$? = $ac_status" >&5
7448 (exit $ac_status); } &&
7449 { ac_try='test -s conftest.$ac_objext'
7450 { (eval echo "$as_me:7450: \"$ac_try\"") >&5
7453 echo "$as_me:7453: \$? = $ac_status" >&5
7454 (exit $ac_status); }; }; then
7457 echo "$as_me: failed program was:" >&5
7458 cat conftest.$ac_ext >&5
7461 rm -f conftest.$ac_objext conftest.$ac_ext
7464 echo "$as_me:7464: result: $cf_cv_dcl_errno" >&5
7465 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
7467 if test "$cf_cv_dcl_errno" = no ; then
7469 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7471 cat >>confdefs.h <<EOF
7472 #define $cf_result 1
7477 # It's possible (for near-UNIX clones) that the data doesn't exist
7479 echo "$as_me:7479: checking if external errno exists" >&5
7480 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
7481 if test "${cf_cv_have_errno+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 cat >conftest.$ac_ext <<_ACEOF
7486 #line 7486 "configure"
7487 #include "confdefs.h"
7500 rm -f conftest.$ac_objext conftest$ac_exeext
7501 if { (eval echo "$as_me:7501: \"$ac_link\"") >&5
7502 (eval $ac_link) 2>&5
7504 echo "$as_me:7504: \$? = $ac_status" >&5
7505 (exit $ac_status); } &&
7506 { ac_try='test -s conftest$ac_exeext'
7507 { (eval echo "$as_me:7507: \"$ac_try\"") >&5
7510 echo "$as_me:7510: \$? = $ac_status" >&5
7511 (exit $ac_status); }; }; then
7512 cf_cv_have_errno=yes
7514 echo "$as_me: failed program was:" >&5
7515 cat conftest.$ac_ext >&5
7518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7521 echo "$as_me:7521: result: $cf_cv_have_errno" >&5
7522 echo "${ECHO_T}$cf_cv_have_errno" >&6
7524 if test "$cf_cv_have_errno" = yes ; then
7526 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7528 cat >>confdefs.h <<EOF
7529 #define $cf_result 1
7534 echo "$as_me:7534: checking if data-only library module links" >&5
7535 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
7536 if test "${cf_cv_link_dataonly+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 cat >conftest.$ac_ext <<EOF
7542 #line 7542 "configure"
7543 int testdata[3] = { 123, 456, 789 };
7545 if { (eval echo "$as_me:7545: \"$ac_compile\"") >&5
7546 (eval $ac_compile) 2>&5
7548 echo "$as_me:7548: \$? = $ac_status" >&5
7549 (exit $ac_status); } ; then
7550 mv conftest.o data.o && \
7551 ( $AR $AR_OPTS conftest.a data.o ) 2>&5 1>/dev/null
7553 rm -f conftest.$ac_ext data.o
7554 cat >conftest.$ac_ext <<EOF
7555 #line 7555 "configure"
7559 exit(1); /* I'm told this linker is broken */
7561 extern int testdata[3];
7562 return testdata[0] == 123
7563 && testdata[1] == 456
7564 && testdata[2] == 789;
7568 if { (eval echo "$as_me:7568: \"$ac_compile\"") >&5
7569 (eval $ac_compile) 2>&5
7571 echo "$as_me:7571: \$? = $ac_status" >&5
7572 (exit $ac_status); }; then
7573 mv conftest.o func.o && \
7574 ( $AR $AR_OPTS conftest.a func.o ) 2>&5 1>/dev/null
7576 rm -f conftest.$ac_ext func.o
7577 ( eval $ac_cv_prog_RANLIB conftest.a ) 2>&5 >/dev/null
7579 LIBS="conftest.a $LIBS"
7580 if test "$cross_compiling" = yes; then
7581 cf_cv_link_dataonly=unknown
7583 cat >conftest.$ac_ext <<_ACEOF
7584 #line 7584 "configure"
7585 #include "confdefs.h"
7589 extern int testfunc();
7594 rm -f conftest$ac_exeext
7595 if { (eval echo "$as_me:7595: \"$ac_link\"") >&5
7596 (eval $ac_link) 2>&5
7598 echo "$as_me:7598: \$? = $ac_status" >&5
7599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7600 { (eval echo "$as_me:7600: \"$ac_try\"") >&5
7603 echo "$as_me:7603: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
7605 cf_cv_link_dataonly=yes
7607 echo "$as_me: program exited with status $ac_status" >&5
7608 echo "$as_me: failed program was:" >&5
7609 cat conftest.$ac_ext >&5
7610 cf_cv_link_dataonly=no
7612 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7618 echo "$as_me:7618: result: $cf_cv_link_dataonly" >&5
7619 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
7621 if test "$cf_cv_link_dataonly" = no ; then
7622 cat >>confdefs.h <<\EOF
7623 #define BROKEN_LINKER 1
7629 ### Checks for library functions.
7654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7655 echo "$as_me:7655: checking for $ac_func" >&5
7656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7657 if eval "test \"\${$as_ac_var+set}\" = set"; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 cat >conftest.$ac_ext <<_ACEOF
7661 #line 7661 "configure"
7662 #include "confdefs.h"
7663 /* System header to define __stub macros and hopefully few prototypes,
7664 which can conflict with char $ac_func (); below. */
7666 /* Override any gcc2 internal prototype to avoid an error. */
7670 /* We use char because int might match the return type of a gcc2
7671 builtin and then its argument prototype would still apply. */
7678 /* The GNU C library defines this for functions which it implements
7679 to always fail with ENOSYS. Some functions are actually named
7680 something starting with __ and the normal name is an alias. */
7681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7691 rm -f conftest.$ac_objext conftest$ac_exeext
7692 if { (eval echo "$as_me:7692: \"$ac_link\"") >&5
7693 (eval $ac_link) 2>&5
7695 echo "$as_me:7695: \$? = $ac_status" >&5
7696 (exit $ac_status); } &&
7697 { ac_try='test -s conftest$ac_exeext'
7698 { (eval echo "$as_me:7698: \"$ac_try\"") >&5
7701 echo "$as_me:7701: \$? = $ac_status" >&5
7702 (exit $ac_status); }; }; then
7703 eval "$as_ac_var=yes"
7705 echo "$as_me: failed program was:" >&5
7706 cat conftest.$ac_ext >&5
7707 eval "$as_ac_var=no"
7709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7711 echo "$as_me:7711: result: `eval echo '${'$as_ac_var'}'`" >&5
7712 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7713 if test `eval echo '${'$as_ac_var'}'` = yes; then
7714 cat >>confdefs.h <<EOF
7715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7721 if test "$with_getcap" = "yes" ; then
7723 echo "$as_me:7723: checking for terminal-capability database functions" >&5
7724 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
7725 if test "${cf_cv_cgetent+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 cat >conftest.$ac_ext <<_ACEOF
7730 #line 7730 "configure"
7731 #include "confdefs.h"
7740 char *db_array = temp;
7741 cgetent(&buf, /* int *, */ &db_array, "vt100");
7742 cgetcap(buf, "tc", '=');
7743 cgetmatch(buf, "tc");
7749 rm -f conftest.$ac_objext conftest$ac_exeext
7750 if { (eval echo "$as_me:7750: \"$ac_link\"") >&5
7751 (eval $ac_link) 2>&5
7753 echo "$as_me:7753: \$? = $ac_status" >&5
7754 (exit $ac_status); } &&
7755 { ac_try='test -s conftest$ac_exeext'
7756 { (eval echo "$as_me:7756: \"$ac_try\"") >&5
7759 echo "$as_me:7759: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7763 echo "$as_me: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7771 echo "$as_me:7771: result: $cf_cv_cgetent" >&5
7772 echo "${ECHO_T}$cf_cv_cgetent" >&6
7773 test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
7774 #define HAVE_BSD_CGETENT 1
7779 echo "$as_me:7779: checking for isascii" >&5
7780 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
7781 if test "${cf_cv_have_isascii+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 cat >conftest.$ac_ext <<_ACEOF
7786 #line 7786 "configure"
7787 #include "confdefs.h"
7792 int x = isascii(' ')
7797 rm -f conftest.$ac_objext conftest$ac_exeext
7798 if { (eval echo "$as_me:7798: \"$ac_link\"") >&5
7799 (eval $ac_link) 2>&5
7801 echo "$as_me:7801: \$? = $ac_status" >&5
7802 (exit $ac_status); } &&
7803 { ac_try='test -s conftest$ac_exeext'
7804 { (eval echo "$as_me:7804: \"$ac_try\"") >&5
7807 echo "$as_me:7807: \$? = $ac_status" >&5
7808 (exit $ac_status); }; }; then
7809 cf_cv_have_isascii=yes
7811 echo "$as_me: failed program was:" >&5
7812 cat conftest.$ac_ext >&5
7813 cf_cv_have_isascii=no
7815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7818 echo "$as_me:7818: result: $cf_cv_have_isascii" >&5
7819 echo "${ECHO_T}$cf_cv_have_isascii" >&6
7820 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
7821 #define HAVE_ISASCII 1
7824 if test "$ac_cv_func_sigaction" = yes; then
7825 echo "$as_me:7825: checking whether sigaction needs _POSIX_SOURCE" >&5
7826 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
7827 cat >conftest.$ac_ext <<_ACEOF
7828 #line 7828 "configure"
7829 #include "confdefs.h"
7831 #include <sys/types.h>
7836 struct sigaction act
7841 rm -f conftest.$ac_objext
7842 if { (eval echo "$as_me:7842: \"$ac_compile\"") >&5
7843 (eval $ac_compile) 2>&5
7845 echo "$as_me:7845: \$? = $ac_status" >&5
7846 (exit $ac_status); } &&
7847 { ac_try='test -s conftest.$ac_objext'
7848 { (eval echo "$as_me:7848: \"$ac_try\"") >&5
7851 echo "$as_me:7851: \$? = $ac_status" >&5
7852 (exit $ac_status); }; }; then
7855 echo "$as_me: failed program was:" >&5
7856 cat conftest.$ac_ext >&5
7858 cat >conftest.$ac_ext <<_ACEOF
7859 #line 7859 "configure"
7860 #include "confdefs.h"
7862 #define _POSIX_SOURCE
7863 #include <sys/types.h>
7868 struct sigaction act
7873 rm -f conftest.$ac_objext
7874 if { (eval echo "$as_me:7874: \"$ac_compile\"") >&5
7875 (eval $ac_compile) 2>&5
7877 echo "$as_me:7877: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try='test -s conftest.$ac_objext'
7880 { (eval echo "$as_me:7880: \"$ac_try\"") >&5
7883 echo "$as_me:7883: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7886 cat >>confdefs.h <<\EOF
7887 #define SVR4_ACTION 1
7891 echo "$as_me: failed program was:" >&5
7892 cat conftest.$ac_ext >&5
7895 rm -f conftest.$ac_objext conftest.$ac_ext
7897 rm -f conftest.$ac_objext conftest.$ac_ext
7898 echo "$as_me:7898: result: $sigact_bad" >&5
7899 echo "${ECHO_T}$sigact_bad" >&6
7908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7909 echo "$as_me:7909: checking for $ac_header" >&5
7910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 cat >conftest.$ac_ext <<_ACEOF
7915 #line 7915 "configure"
7916 #include "confdefs.h"
7917 #include <$ac_header>
7919 if { (eval echo "$as_me:7919: \"$ac_cpp conftest.$ac_ext\"") >&5
7920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7922 egrep -v '^ *\+' conftest.er1 >conftest.err
7924 cat conftest.err >&5
7925 echo "$as_me:7925: \$? = $ac_status" >&5
7926 (exit $ac_status); } >/dev/null; then
7927 if test -s conftest.err; then
7928 ac_cpp_err=$ac_c_preproc_warn_flag
7935 if test -z "$ac_cpp_err"; then
7936 eval "$as_ac_Header=yes"
7938 echo "$as_me: failed program was:" >&5
7939 cat conftest.$ac_ext >&5
7940 eval "$as_ac_Header=no"
7942 rm -f conftest.err conftest.$ac_ext
7944 echo "$as_me:7944: result: `eval echo '${'$as_ac_Header'}'`" >&5
7945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7947 cat >>confdefs.h <<EOF
7948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7954 if test "$ISC" = yes ; then
7956 for ac_header in sys/termio.h
7958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7959 echo "$as_me:7959: checking for $ac_header" >&5
7960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 cat >conftest.$ac_ext <<_ACEOF
7965 #line 7965 "configure"
7966 #include "confdefs.h"
7967 #include <$ac_header>
7969 if { (eval echo "$as_me:7969: \"$ac_cpp conftest.$ac_ext\"") >&5
7970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7972 egrep -v '^ *\+' conftest.er1 >conftest.err
7974 cat conftest.err >&5
7975 echo "$as_me:7975: \$? = $ac_status" >&5
7976 (exit $ac_status); } >/dev/null; then
7977 if test -s conftest.err; then
7978 ac_cpp_err=$ac_c_preproc_warn_flag
7985 if test -z "$ac_cpp_err"; then
7986 eval "$as_ac_Header=yes"
7988 echo "$as_me: failed program was:" >&5
7989 cat conftest.$ac_ext >&5
7990 eval "$as_ac_Header=no"
7992 rm -f conftest.err conftest.$ac_ext
7994 echo "$as_me:7994: result: `eval echo '${'$as_ac_Header'}'`" >&5
7995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7997 cat >>confdefs.h <<EOF
7998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8005 if test "$ac_cv_header_termios_h" = yes ; then
8006 case "$CFLAGS $CPPFLAGS" in
8008 termios_bad=dunno ;;
8009 *) termios_bad=maybe ;;
8011 if test "$termios_bad" = maybe ; then
8012 echo "$as_me:8012: checking whether termios.h needs _POSIX_SOURCE" >&5
8013 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
8014 cat >conftest.$ac_ext <<_ACEOF
8015 #line 8015 "configure"
8016 #include "confdefs.h"
8017 #include <termios.h>
8021 struct termios foo; int x = foo.c_iflag
8026 rm -f conftest.$ac_objext
8027 if { (eval echo "$as_me:8027: \"$ac_compile\"") >&5
8028 (eval $ac_compile) 2>&5
8030 echo "$as_me:8030: \$? = $ac_status" >&5
8031 (exit $ac_status); } &&
8032 { ac_try='test -s conftest.$ac_objext'
8033 { (eval echo "$as_me:8033: \"$ac_try\"") >&5
8036 echo "$as_me:8036: \$? = $ac_status" >&5
8037 (exit $ac_status); }; }; then
8040 echo "$as_me: failed program was:" >&5
8041 cat conftest.$ac_ext >&5
8043 cat >conftest.$ac_ext <<_ACEOF
8044 #line 8044 "configure"
8045 #include "confdefs.h"
8047 #define _POSIX_SOURCE
8048 #include <termios.h>
8052 struct termios foo; int x = foo.c_iflag
8057 rm -f conftest.$ac_objext
8058 if { (eval echo "$as_me:8058: \"$ac_compile\"") >&5
8059 (eval $ac_compile) 2>&5
8061 echo "$as_me:8061: \$? = $ac_status" >&5
8062 (exit $ac_status); } &&
8063 { ac_try='test -s conftest.$ac_objext'
8064 { (eval echo "$as_me:8064: \"$ac_try\"") >&5
8067 echo "$as_me:8067: \$? = $ac_status" >&5
8068 (exit $ac_status); }; }; then
8071 echo "$as_me: failed program was:" >&5
8072 cat conftest.$ac_ext >&5
8073 termios_bad=yes cat >>confdefs.h <<\EOF
8074 #define SVR4_TERMIO 1
8078 rm -f conftest.$ac_objext conftest.$ac_ext
8081 rm -f conftest.$ac_objext conftest.$ac_ext
8082 echo "$as_me:8082: result: $termios_bad" >&5
8083 echo "${ECHO_T}$termios_bad" >&6
8087 echo "$as_me:8087: checking for tcgetattr" >&5
8088 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
8089 if test "${cf_cv_have_tcgetattr+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 cat >conftest.$ac_ext <<_ACEOF
8094 #line 8094 "configure"
8095 #include "confdefs.h"
8097 #include <sys/types.h>
8098 #ifdef HAVE_UNISTD_H
8101 #ifdef HAVE_TERMIOS_H
8102 #include <termios.h>
8103 #define TTY struct termios
8105 #ifdef HAVE_TERMIO_H
8107 #define TTY struct termio
8121 rm -f conftest.$ac_objext conftest$ac_exeext
8122 if { (eval echo "$as_me:8122: \"$ac_link\"") >&5
8123 (eval $ac_link) 2>&5
8125 echo "$as_me:8125: \$? = $ac_status" >&5
8126 (exit $ac_status); } &&
8127 { ac_try='test -s conftest$ac_exeext'
8128 { (eval echo "$as_me:8128: \"$ac_try\"") >&5
8131 echo "$as_me:8131: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8133 cf_cv_have_tcgetattr=yes
8135 echo "$as_me: failed program was:" >&5
8136 cat conftest.$ac_ext >&5
8137 cf_cv_have_tcgetattr=no
8139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8141 echo "$as_me:8141: result: $cf_cv_have_tcgetattr" >&5
8142 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
8143 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
8144 #define HAVE_TCGETATTR 1
8147 echo "$as_me:8147: checking for vsscanf function or workaround" >&5
8148 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
8149 if test "${cf_cv_func_vsscanf+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 cat >conftest.$ac_ext <<_ACEOF
8154 #line 8154 "configure"
8155 #include "confdefs.h"
8164 vsscanf("from", "%d", ap)
8169 rm -f conftest.$ac_objext conftest$ac_exeext
8170 if { (eval echo "$as_me:8170: \"$ac_link\"") >&5
8171 (eval $ac_link) 2>&5
8173 echo "$as_me:8173: \$? = $ac_status" >&5
8174 (exit $ac_status); } &&
8175 { ac_try='test -s conftest$ac_exeext'
8176 { (eval echo "$as_me:8176: \"$ac_try\"") >&5
8179 echo "$as_me:8179: \$? = $ac_status" >&5
8180 (exit $ac_status); }; }; then
8181 cf_cv_func_vsscanf=vsscanf
8183 echo "$as_me: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8186 cat >conftest.$ac_ext <<_ACEOF
8187 #line 8187 "configure"
8188 #include "confdefs.h"
8199 strbuf._flag = _IOREAD;
8200 strbuf._ptr = strbuf._base = (unsigned char *) str;
8201 strbuf._cnt = strlen(str);
8202 strbuf._file = _NFILE;
8203 return (vfscanf(&strbuf, "%d", ap))
8208 rm -f conftest.$ac_objext conftest$ac_exeext
8209 if { (eval echo "$as_me:8209: \"$ac_link\"") >&5
8210 (eval $ac_link) 2>&5
8212 echo "$as_me:8212: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -s conftest$ac_exeext'
8215 { (eval echo "$as_me:8215: \"$ac_try\"") >&5
8218 echo "$as_me:8218: \$? = $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 cf_cv_func_vsscanf=vfscanf
8222 echo "$as_me: failed program was:" >&5
8223 cat conftest.$ac_ext >&5
8225 cat >conftest.$ac_ext <<_ACEOF
8226 #line 8226 "configure"
8227 #include "confdefs.h"
8238 strbuf._flag = _IOREAD;
8239 strbuf._ptr = strbuf._base = (unsigned char *) str;
8240 strbuf._cnt = strlen(str);
8241 strbuf._file = _NFILE;
8242 return (_doscan(&strbuf, "%d", ap))
8247 rm -f conftest.$ac_objext conftest$ac_exeext
8248 if { (eval echo "$as_me:8248: \"$ac_link\"") >&5
8249 (eval $ac_link) 2>&5
8251 echo "$as_me:8251: \$? = $ac_status" >&5
8252 (exit $ac_status); } &&
8253 { ac_try='test -s conftest$ac_exeext'
8254 { (eval echo "$as_me:8254: \"$ac_try\"") >&5
8257 echo "$as_me:8257: \$? = $ac_status" >&5
8258 (exit $ac_status); }; }; then
8259 cf_cv_func_vsscanf=_doscan
8261 echo "$as_me: failed program was:" >&5
8262 cat conftest.$ac_ext >&5
8264 cf_cv_func_vsscanf=no
8266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8272 echo "$as_me:8272: result: $cf_cv_func_vsscanf" >&5
8273 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
8275 case $cf_cv_func_vsscanf in #(vi
8276 vsscanf) cat >>confdefs.h <<\EOF
8277 #define HAVE_VSSCANF 1
8280 vfscanf) cat >>confdefs.h <<\EOF
8281 #define HAVE_VFSCANF 1
8284 _doscan) cat >>confdefs.h <<\EOF
8285 #define HAVE__DOSCAN 1
8290 echo "$as_me:8290: checking for working mkstemp" >&5
8291 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
8292 if test "${cf_cv_func_mkstemp+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 if test "$cross_compiling" = yes; then
8298 echo "$as_me:8298: checking for mkstemp" >&5
8299 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
8300 if test "${ac_cv_func_mkstemp+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 cat >conftest.$ac_ext <<_ACEOF
8304 #line 8304 "configure"
8305 #include "confdefs.h"
8306 /* System header to define __stub macros and hopefully few prototypes,
8307 which can conflict with char mkstemp (); below. */
8309 /* Override any gcc2 internal prototype to avoid an error. */
8313 /* We use char because int might match the return type of a gcc2
8314 builtin and then its argument prototype would still apply. */
8321 /* The GNU C library defines this for functions which it implements
8322 to always fail with ENOSYS. Some functions are actually named
8323 something starting with __ and the normal name is an alias. */
8324 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
8334 rm -f conftest.$ac_objext conftest$ac_exeext
8335 if { (eval echo "$as_me:8335: \"$ac_link\"") >&5
8336 (eval $ac_link) 2>&5
8338 echo "$as_me:8338: \$? = $ac_status" >&5
8339 (exit $ac_status); } &&
8340 { ac_try='test -s conftest$ac_exeext'
8341 { (eval echo "$as_me:8341: \"$ac_try\"") >&5
8344 echo "$as_me:8344: \$? = $ac_status" >&5
8345 (exit $ac_status); }; }; then
8346 ac_cv_func_mkstemp=yes
8348 echo "$as_me: failed program was:" >&5
8349 cat conftest.$ac_ext >&5
8350 ac_cv_func_mkstemp=no
8352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8354 echo "$as_me:8354: result: $ac_cv_func_mkstemp" >&5
8355 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
8358 cat >conftest.$ac_ext <<_ACEOF
8359 #line 8359 "configure"
8360 #include "confdefs.h"
8362 #include <sys/types.h>
8366 #include <sys/stat.h>
8369 char *tmpl = "conftestXXXXXX";
8377 for (n = 0; n < 2; ++n) {
8378 strcpy(name[n], tmpl);
8379 if ((fd = mkstemp(name[n])) >= 0) {
8380 if (!strcmp(name[n], tmpl)
8381 || stat(name[n], &sb) != 0
8382 || (sb.st_mode & S_IFMT) != S_IFREG
8383 || (sb.st_mode & 077) != 0) {
8390 && !strcmp(name[0], name[1]))
8396 rm -f conftest$ac_exeext
8397 if { (eval echo "$as_me:8397: \"$ac_link\"") >&5
8398 (eval $ac_link) 2>&5
8400 echo "$as_me:8400: \$? = $ac_status" >&5
8401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8402 { (eval echo "$as_me:8402: \"$ac_try\"") >&5
8405 echo "$as_me:8405: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 cf_cv_func_mkstemp=yes
8410 echo "$as_me: program exited with status $ac_status" >&5
8411 echo "$as_me: failed program was:" >&5
8412 cat conftest.$ac_ext >&5
8413 cf_cv_func_mkstemp=no
8416 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8420 echo "$as_me:8420: result: $cf_cv_func_mkstemp" >&5
8421 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
8422 if test "$cf_cv_func_mkstemp" = yes ; then
8423 cat >>confdefs.h <<\EOF
8424 #define HAVE_MKSTEMP 1
8429 # setup for prototype of fallback for vsscanf()
8430 if test "$cf_cv_func_vsscanf" = vsscanf ; then
8436 if test "$cross_compiling" = yes ; then
8437 { echo "$as_me:8437: WARNING: cross compiling: assume setvbuf params not reversed" >&5
8438 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
8440 echo "$as_me:8440: checking whether setvbuf arguments are reversed" >&5
8441 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
8442 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 if test "$cross_compiling" = yes; then
8446 { { echo "$as_me:8446: error: cannot run test program while cross compiling" >&5
8447 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8448 { (exit 1); exit 1; }; }
8450 cat >conftest.$ac_ext <<_ACEOF
8451 #line 8451 "configure"
8452 #include "confdefs.h"
8454 /* If setvbuf has the reversed format, exit 0. */
8458 /* This call has the arguments reversed.
8459 A reversed system may check and see that the address of main
8460 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
8461 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
8464 exit(0); /* Non-reversed systems segv here. */
8467 rm -f 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); } && { ac_try='./conftest$ac_exeext'
8473 { (eval echo "$as_me:8473: \"$ac_try\"") >&5
8476 echo "$as_me:8476: \$? = $ac_status" >&5
8477 (exit $ac_status); }; }; then
8478 ac_cv_func_setvbuf_reversed=yes
8480 echo "$as_me: program exited with status $ac_status" >&5
8481 echo "$as_me: failed program was:" >&5
8482 cat conftest.$ac_ext >&5
8483 ac_cv_func_setvbuf_reversed=no
8485 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8487 rm -f core core.* *.core
8489 echo "$as_me:8489: result: $ac_cv_func_setvbuf_reversed" >&5
8490 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
8491 if test $ac_cv_func_setvbuf_reversed = yes; then
8493 cat >>confdefs.h <<\EOF
8494 #define SETVBUF_REVERSED 1
8500 echo "$as_me:8500: checking return type of signal handlers" >&5
8501 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8502 if test "${ac_cv_type_signal+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 cat >conftest.$ac_ext <<_ACEOF
8506 #line 8506 "configure"
8507 #include "confdefs.h"
8508 #include <sys/types.h>
8514 extern "C" void (*signal (int, void (*)(int)))(int);
8516 void (*signal ()) ();
8527 rm -f conftest.$ac_objext
8528 if { (eval echo "$as_me:8528: \"$ac_compile\"") >&5
8529 (eval $ac_compile) 2>&5
8531 echo "$as_me:8531: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try='test -s conftest.$ac_objext'
8534 { (eval echo "$as_me:8534: \"$ac_try\"") >&5
8537 echo "$as_me:8537: \$? = $ac_status" >&5
8538 (exit $ac_status); }; }; then
8539 ac_cv_type_signal=void
8541 echo "$as_me: failed program was:" >&5
8542 cat conftest.$ac_ext >&5
8543 ac_cv_type_signal=int
8545 rm -f conftest.$ac_objext conftest.$ac_ext
8547 echo "$as_me:8547: result: $ac_cv_type_signal" >&5
8548 echo "${ECHO_T}$ac_cv_type_signal" >&6
8550 cat >>confdefs.h <<EOF
8551 #define RETSIGTYPE $ac_cv_type_signal
8554 echo "$as_me:8554: checking for type sigaction_t" >&5
8555 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
8556 if test "${cf_cv_type_sigaction+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 cat >conftest.$ac_ext <<_ACEOF
8561 #line 8561 "configure"
8562 #include "confdefs.h"
8573 rm -f conftest.$ac_objext
8574 if { (eval echo "$as_me:8574: \"$ac_compile\"") >&5
8575 (eval $ac_compile) 2>&5
8577 echo "$as_me:8577: \$? = $ac_status" >&5
8578 (exit $ac_status); } &&
8579 { ac_try='test -s conftest.$ac_objext'
8580 { (eval echo "$as_me:8580: \"$ac_try\"") >&5
8583 echo "$as_me:8583: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8585 cf_cv_type_sigaction=yes
8587 echo "$as_me: failed program was:" >&5
8588 cat conftest.$ac_ext >&5
8589 cf_cv_type_sigaction=no
8591 rm -f conftest.$ac_objext conftest.$ac_ext
8594 echo "$as_me:8594: result: $cf_cv_type_sigaction" >&5
8595 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
8596 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
8597 #define HAVE_TYPE_SIGACTION 1
8600 echo "$as_me:8600: checking declaration of size-change" >&5
8601 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
8602 if test "${cf_cv_sizechange+set}" = set; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8606 cf_cv_sizechange=unknown
8607 cf_save_CPPFLAGS="$CPPFLAGS"
8609 for cf_opts in "" "NEED_PTEM_H"
8612 CPPFLAGS="$cf_save_CPPFLAGS"
8613 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
8614 cat >conftest.$ac_ext <<_ACEOF
8615 #line 8615 "configure"
8616 #include "confdefs.h"
8617 #include <sys/types.h>
8618 #ifdef HAVE_TERMIOS_H
8619 #include <termios.h>
8621 #ifdef HAVE_TERMIO_H
8626 /* This is a workaround for SCO: they neglected to define struct winsize in
8627 * termios.h -- it's only in termio.h and ptem.h
8629 #include <sys/stream.h>
8630 #include <sys/ptem.h>
8632 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
8633 #include <sys/ioctl.h>
8641 struct ttysize win; /* FIXME: what system is this? */
8642 int y = win.ts_lines;
8643 int x = win.ts_cols;
8650 no TIOCGSIZE or TIOCGWINSZ
8651 #endif /* TIOCGWINSZ */
8652 #endif /* TIOCGSIZE */
8658 rm -f conftest.$ac_objext
8659 if { (eval echo "$as_me:8659: \"$ac_compile\"") >&5
8660 (eval $ac_compile) 2>&5
8662 echo "$as_me:8662: \$? = $ac_status" >&5
8663 (exit $ac_status); } &&
8664 { ac_try='test -s conftest.$ac_objext'
8665 { (eval echo "$as_me:8665: \"$ac_try\"") >&5
8668 echo "$as_me:8668: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
8670 cf_cv_sizechange=yes
8672 echo "$as_me: failed program was:" >&5
8673 cat conftest.$ac_ext >&5
8676 rm -f conftest.$ac_objext conftest.$ac_ext
8678 CPPFLAGS="$cf_save_CPPFLAGS"
8679 if test "$cf_cv_sizechange" = yes ; then
8680 echo "size-change succeeded ($cf_opts)" >&5
8681 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
8687 echo "$as_me:8687: result: $cf_cv_sizechange" >&5
8688 echo "${ECHO_T}$cf_cv_sizechange" >&6
8689 if test "$cf_cv_sizechange" != no ; then
8690 cat >>confdefs.h <<\EOF
8691 #define HAVE_SIZECHANGE 1
8694 case $cf_cv_sizechange in #(vi
8696 cat >>confdefs.h <<EOF
8697 #define $cf_cv_sizechange 1
8704 echo "$as_me:8704: checking for memmove" >&5
8705 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
8706 if test "${ac_cv_func_memmove+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 cat >conftest.$ac_ext <<_ACEOF
8710 #line 8710 "configure"
8711 #include "confdefs.h"
8712 /* System header to define __stub macros and hopefully few prototypes,
8713 which can conflict with char memmove (); below. */
8715 /* Override any gcc2 internal prototype to avoid an error. */
8719 /* We use char because int might match the return type of a gcc2
8720 builtin and then its argument prototype would still apply. */
8727 /* The GNU C library defines this for functions which it implements
8728 to always fail with ENOSYS. Some functions are actually named
8729 something starting with __ and the normal name is an alias. */
8730 #if defined (__stub_memmove) || defined (__stub___memmove)
8740 rm -f conftest.$ac_objext conftest$ac_exeext
8741 if { (eval echo "$as_me:8741: \"$ac_link\"") >&5
8742 (eval $ac_link) 2>&5
8744 echo "$as_me:8744: \$? = $ac_status" >&5
8745 (exit $ac_status); } &&
8746 { ac_try='test -s conftest$ac_exeext'
8747 { (eval echo "$as_me:8747: \"$ac_try\"") >&5
8750 echo "$as_me:8750: \$? = $ac_status" >&5
8751 (exit $ac_status); }; }; then
8752 ac_cv_func_memmove=yes
8754 echo "$as_me: failed program was:" >&5
8755 cat conftest.$ac_ext >&5
8756 ac_cv_func_memmove=no
8758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8760 echo "$as_me:8760: result: $ac_cv_func_memmove" >&5
8761 echo "${ECHO_T}$ac_cv_func_memmove" >&6
8762 if test $ac_cv_func_memmove = yes; then
8766 echo "$as_me:8766: checking for bcopy" >&5
8767 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
8768 if test "${ac_cv_func_bcopy+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8771 cat >conftest.$ac_ext <<_ACEOF
8772 #line 8772 "configure"
8773 #include "confdefs.h"
8774 /* System header to define __stub macros and hopefully few prototypes,
8775 which can conflict with char bcopy (); below. */
8777 /* Override any gcc2 internal prototype to avoid an error. */
8781 /* We use char because int might match the return type of a gcc2
8782 builtin and then its argument prototype would still apply. */
8789 /* The GNU C library defines this for functions which it implements
8790 to always fail with ENOSYS. Some functions are actually named
8791 something starting with __ and the normal name is an alias. */
8792 #if defined (__stub_bcopy) || defined (__stub___bcopy)
8802 rm -f conftest.$ac_objext conftest$ac_exeext
8803 if { (eval echo "$as_me:8803: \"$ac_link\"") >&5
8804 (eval $ac_link) 2>&5
8806 echo "$as_me:8806: \$? = $ac_status" >&5
8807 (exit $ac_status); } &&
8808 { ac_try='test -s conftest$ac_exeext'
8809 { (eval echo "$as_me:8809: \"$ac_try\"") >&5
8812 echo "$as_me:8812: \$? = $ac_status" >&5
8813 (exit $ac_status); }; }; then
8814 ac_cv_func_bcopy=yes
8816 echo "$as_me: failed program was:" >&5
8817 cat conftest.$ac_ext >&5
8820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8822 echo "$as_me:8822: result: $ac_cv_func_bcopy" >&5
8823 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
8824 if test $ac_cv_func_bcopy = yes; then
8826 echo "$as_me:8826: checking if bcopy does overlapping moves" >&5
8827 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
8828 if test "${cf_cv_good_bcopy+set}" = set; then
8829 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 if test "$cross_compiling" = yes; then
8833 cf_cv_good_bcopy=unknown
8835 cat >conftest.$ac_ext <<_ACEOF
8836 #line 8836 "configure"
8837 #include "confdefs.h"
8840 static char data[] = "abcdefghijklmnopqrstuwwxyz";
8842 bcopy(data, temp, sizeof(data));
8843 bcopy(temp+10, temp, 15);
8844 bcopy(temp+5, temp+15, 10);
8845 exit (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
8849 rm -f conftest$ac_exeext
8850 if { (eval echo "$as_me:8850: \"$ac_link\"") >&5
8851 (eval $ac_link) 2>&5
8853 echo "$as_me:8853: \$? = $ac_status" >&5
8854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8855 { (eval echo "$as_me:8855: \"$ac_try\"") >&5
8858 echo "$as_me:8858: \$? = $ac_status" >&5
8859 (exit $ac_status); }; }; then
8860 cf_cv_good_bcopy=yes
8862 echo "$as_me: program exited with status $ac_status" >&5
8863 echo "$as_me: failed program was:" >&5
8864 cat conftest.$ac_ext >&5
8867 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8871 echo "$as_me:8871: result: $cf_cv_good_bcopy" >&5
8872 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
8878 if test "$cf_cv_good_bcopy" = yes ; then
8879 cat >>confdefs.h <<\EOF
8880 #define USE_OK_BCOPY 1
8884 cat >>confdefs.h <<\EOF
8885 #define USE_MY_MEMMOVE 1
8892 echo "$as_me:8892: checking if poll really works" >&5
8893 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
8894 if test "${cf_cv_working_poll+set}" = set; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 if test "$cross_compiling" = yes; then
8899 cf_cv_working_poll=unknown
8901 cat >conftest.$ac_ext <<_ACEOF
8902 #line 8902 "configure"
8903 #include "confdefs.h"
8909 #include <sys/poll.h>
8912 struct pollfd myfds;
8916 myfds.events = POLLIN;
8918 ret = poll(&myfds, 1, 100);
8922 rm -f conftest$ac_exeext
8923 if { (eval echo "$as_me:8923: \"$ac_link\"") >&5
8924 (eval $ac_link) 2>&5
8926 echo "$as_me:8926: \$? = $ac_status" >&5
8927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8928 { (eval echo "$as_me:8928: \"$ac_try\"") >&5
8931 echo "$as_me:8931: \$? = $ac_status" >&5
8932 (exit $ac_status); }; }; then
8933 cf_cv_working_poll=yes
8935 echo "$as_me: program exited with status $ac_status" >&5
8936 echo "$as_me: failed program was:" >&5
8937 cat conftest.$ac_ext >&5
8938 cf_cv_working_poll=no
8940 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8943 echo "$as_me:8943: result: $cf_cv_working_poll" >&5
8944 echo "${ECHO_T}$cf_cv_working_poll" >&6
8945 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
8946 #define HAVE_WORKING_POLL 1
8949 if test -z "$cf_user_CFLAGS" ; then
8950 CFLAGS=`echo ${CFLAGS} | sed -e 's/-g //' -e 's/-g$//'`
8951 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's/-g //' -e 's/-g$//'`
8954 echo "$as_me:8954: checking for stdbool.h" >&5
8955 echo $ECHO_N "checking for stdbool.h... $ECHO_C" >&6
8956 if test "${ac_cv_header_stdbool_h+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 cat >conftest.$ac_ext <<_ACEOF
8960 #line 8960 "configure"
8961 #include "confdefs.h"
8962 #include <stdbool.h>
8964 if { (eval echo "$as_me:8964: \"$ac_cpp conftest.$ac_ext\"") >&5
8965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8967 egrep -v '^ *\+' conftest.er1 >conftest.err
8969 cat conftest.err >&5
8970 echo "$as_me:8970: \$? = $ac_status" >&5
8971 (exit $ac_status); } >/dev/null; then
8972 if test -s conftest.err; then
8973 ac_cpp_err=$ac_c_preproc_warn_flag
8980 if test -z "$ac_cpp_err"; then
8981 ac_cv_header_stdbool_h=yes
8983 echo "$as_me: failed program was:" >&5
8984 cat conftest.$ac_ext >&5
8985 ac_cv_header_stdbool_h=no
8987 rm -f conftest.err conftest.$ac_ext
8989 echo "$as_me:8989: result: $ac_cv_header_stdbool_h" >&5
8990 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
8991 if test $ac_cv_header_stdbool_h = yes; then
8992 cf_cv_header_stdbool_h=1
8994 cf_cv_header_stdbool_h=0
8997 echo "$as_me:8997: checking for builtin bool type" >&5
8998 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
8999 if test "${cf_cv_cc_bool_type+set}" = set; then
9000 echo $ECHO_N "(cached) $ECHO_C" >&6
9003 cat >conftest.$ac_ext <<_ACEOF
9004 #line 9004 "configure"
9005 #include "confdefs.h"
9008 #include <sys/types.h>
9018 rm -f conftest.$ac_objext
9019 if { (eval echo "$as_me:9019: \"$ac_compile\"") >&5
9020 (eval $ac_compile) 2>&5
9022 echo "$as_me:9022: \$? = $ac_status" >&5
9023 (exit $ac_status); } &&
9024 { ac_try='test -s conftest.$ac_objext'
9025 { (eval echo "$as_me:9025: \"$ac_try\"") >&5
9028 echo "$as_me:9028: \$? = $ac_status" >&5
9029 (exit $ac_status); }; }; then
9030 cf_cv_cc_bool_type=1
9032 echo "$as_me: failed program was:" >&5
9033 cat conftest.$ac_ext >&5
9034 cf_cv_cc_bool_type=0
9036 rm -f conftest.$ac_objext conftest.$ac_ext
9040 if test "$cf_cv_cc_bool_type" = 1
9041 then echo "$as_me:9041: result: yes" >&5
9042 echo "${ECHO_T}yes" >&6
9043 else echo "$as_me:9043: result: no" >&5
9044 echo "${ECHO_T}no" >&6
9047 if test -n "$CXX" ; then
9049 ac_cpp='$CXXCPP $CPPFLAGS'
9050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9054 if test -n "$GXX" ; then
9055 case $cf_cv_system_name in #(vi
9057 cf_stdcpp_libname=stdcpp
9060 cf_stdcpp_libname=stdc++
9063 echo "$as_me:9063: checking for library $cf_stdcpp_libname" >&5
9064 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
9065 if test "${cf_cv_libstdcpp+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9070 LIBS="$LIBS -l$cf_stdcpp_libname"
9071 cat >conftest.$ac_ext <<_ACEOF
9072 #line 9072 "configure"
9073 #include "confdefs.h"
9075 #include <strstream.h>
9081 strstreambuf foo(buf, sizeof(buf))
9087 rm -f conftest.$ac_objext conftest$ac_exeext
9088 if { (eval echo "$as_me:9088: \"$ac_link\"") >&5
9089 (eval $ac_link) 2>&5
9091 echo "$as_me:9091: \$? = $ac_status" >&5
9092 (exit $ac_status); } &&
9093 { ac_try='test -s conftest$ac_exeext'
9094 { (eval echo "$as_me:9094: \"$ac_try\"") >&5
9097 echo "$as_me:9097: \$? = $ac_status" >&5
9098 (exit $ac_status); }; }; then
9101 echo "$as_me: failed program was:" >&5
9102 cat conftest.$ac_ext >&5
9105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9109 echo "$as_me:9109: result: $cf_cv_libstdcpp" >&5
9110 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
9111 test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
9114 case $GXX_VERSION in
9120 cf_cxx_library=unknown
9121 case $cf_cv_system_name in #(vi
9129 if test "$ac_cv_cxx_compiler_gnu" = yes; then
9130 echo "$as_me:9130: checking for lib$cf_gpp_libname" >&5
9131 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
9133 LIBS="$LIBS -l$cf_gpp_libname"
9134 cat >conftest.$ac_ext <<_ACEOF
9135 #line 9135 "configure"
9136 #include "confdefs.h"
9138 #include <$cf_gpp_libname/builtin.h>
9143 two_arg_error_handler_t foo2 = lib_error_handler
9148 rm -f conftest.$ac_objext conftest$ac_exeext
9149 if { (eval echo "$as_me:9149: \"$ac_link\"") >&5
9150 (eval $ac_link) 2>&5
9152 echo "$as_me:9152: \$? = $ac_status" >&5
9153 (exit $ac_status); } &&
9154 { ac_try='test -s conftest$ac_exeext'
9155 { (eval echo "$as_me:9155: \"$ac_try\"") >&5
9158 echo "$as_me:9158: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
9161 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
9162 if test "$cf_gpp_libname" = cpp ; then
9163 cat >>confdefs.h <<\EOF
9164 #define HAVE_GPP_BUILTIN_H 1
9168 cat >>confdefs.h <<\EOF
9169 #define HAVE_GXX_BUILTIN_H 1
9174 echo "$as_me: failed program was:" >&5
9175 cat conftest.$ac_ext >&5
9176 cat >conftest.$ac_ext <<_ACEOF
9177 #line 9177 "configure"
9178 #include "confdefs.h"
9180 #include <builtin.h>
9185 two_arg_error_handler_t foo2 = lib_error_handler
9190 rm -f conftest.$ac_objext conftest$ac_exeext
9191 if { (eval echo "$as_me:9191: \"$ac_link\"") >&5
9192 (eval $ac_link) 2>&5
9194 echo "$as_me:9194: \$? = $ac_status" >&5
9195 (exit $ac_status); } &&
9196 { ac_try='test -s conftest$ac_exeext'
9197 { (eval echo "$as_me:9197: \"$ac_try\"") >&5
9200 echo "$as_me:9200: \$? = $ac_status" >&5
9201 (exit $ac_status); }; }; then
9203 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
9204 cat >>confdefs.h <<\EOF
9205 #define HAVE_BUILTIN_H 1
9209 echo "$as_me: failed program was:" >&5
9210 cat conftest.$ac_ext >&5
9213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9217 echo "$as_me:9217: result: $cf_cxx_library" >&5
9218 echo "${ECHO_T}$cf_cxx_library" >&6
9228 ac_cpp='$CXXCPP $CPPFLAGS'
9229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9232 echo "$as_me:9232: checking how to run the C++ preprocessor" >&5
9233 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
9234 if test -z "$CXXCPP"; then
9235 if test "${ac_cv_prog_CXXCPP+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 # Double quotes because CXXCPP needs to be expanded
9239 for CXXCPP in "$CXX -E" "/lib/cpp"
9242 for ac_cxx_preproc_warn_flag in '' yes
9244 # Use a header file that comes with gcc, so configuring glibc
9245 # with a fresh cross-compiler works.
9246 # On the NeXT, cc -E runs the code through the compiler's parser,
9247 # not just through cpp. "Syntax error" is here to catch this case.
9248 cat >conftest.$ac_ext <<_ACEOF
9249 #line 9249 "configure"
9250 #include "confdefs.h"
9254 if { (eval echo "$as_me:9254: \"$ac_cpp conftest.$ac_ext\"") >&5
9255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9257 egrep -v '^ *\+' conftest.er1 >conftest.err
9259 cat conftest.err >&5
9260 echo "$as_me:9260: \$? = $ac_status" >&5
9261 (exit $ac_status); } >/dev/null; then
9262 if test -s conftest.err; then
9263 ac_cpp_err=$ac_cxx_preproc_warn_flag
9270 if test -z "$ac_cpp_err"; then
9273 echo "$as_me: failed program was:" >&5
9274 cat conftest.$ac_ext >&5
9275 # Broken: fails on valid input.
9278 rm -f conftest.err conftest.$ac_ext
9280 # OK, works on sane cases. Now check whether non-existent headers
9281 # can be detected and how.
9282 cat >conftest.$ac_ext <<_ACEOF
9283 #line 9283 "configure"
9284 #include "confdefs.h"
9285 #include <ac_nonexistent.h>
9287 if { (eval echo "$as_me:9287: \"$ac_cpp conftest.$ac_ext\"") >&5
9288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9290 egrep -v '^ *\+' conftest.er1 >conftest.err
9292 cat conftest.err >&5
9293 echo "$as_me:9293: \$? = $ac_status" >&5
9294 (exit $ac_status); } >/dev/null; then
9295 if test -s conftest.err; then
9296 ac_cpp_err=$ac_cxx_preproc_warn_flag
9303 if test -z "$ac_cpp_err"; then
9304 # Broken: success on invalid input.
9307 echo "$as_me: failed program was:" >&5
9308 cat conftest.$ac_ext >&5
9309 # Passes both tests.
9313 rm -f conftest.err conftest.$ac_ext
9316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9317 rm -f conftest.err conftest.$ac_ext
9318 if $ac_preproc_ok; then
9323 ac_cv_prog_CXXCPP=$CXXCPP
9326 CXXCPP=$ac_cv_prog_CXXCPP
9328 ac_cv_prog_CXXCPP=$CXXCPP
9330 echo "$as_me:9330: result: $CXXCPP" >&5
9331 echo "${ECHO_T}$CXXCPP" >&6
9333 for ac_cxx_preproc_warn_flag in '' yes
9335 # Use a header file that comes with gcc, so configuring glibc
9336 # with a fresh cross-compiler works.
9337 # On the NeXT, cc -E runs the code through the compiler's parser,
9338 # not just through cpp. "Syntax error" is here to catch this case.
9339 cat >conftest.$ac_ext <<_ACEOF
9340 #line 9340 "configure"
9341 #include "confdefs.h"
9345 if { (eval echo "$as_me:9345: \"$ac_cpp conftest.$ac_ext\"") >&5
9346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9348 egrep -v '^ *\+' conftest.er1 >conftest.err
9350 cat conftest.err >&5
9351 echo "$as_me:9351: \$? = $ac_status" >&5
9352 (exit $ac_status); } >/dev/null; then
9353 if test -s conftest.err; then
9354 ac_cpp_err=$ac_cxx_preproc_warn_flag
9361 if test -z "$ac_cpp_err"; then
9364 echo "$as_me: failed program was:" >&5
9365 cat conftest.$ac_ext >&5
9366 # Broken: fails on valid input.
9369 rm -f conftest.err conftest.$ac_ext
9371 # OK, works on sane cases. Now check whether non-existent headers
9372 # can be detected and how.
9373 cat >conftest.$ac_ext <<_ACEOF
9374 #line 9374 "configure"
9375 #include "confdefs.h"
9376 #include <ac_nonexistent.h>
9378 if { (eval echo "$as_me:9378: \"$ac_cpp conftest.$ac_ext\"") >&5
9379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9381 egrep -v '^ *\+' conftest.er1 >conftest.err
9383 cat conftest.err >&5
9384 echo "$as_me:9384: \$? = $ac_status" >&5
9385 (exit $ac_status); } >/dev/null; then
9386 if test -s conftest.err; then
9387 ac_cpp_err=$ac_cxx_preproc_warn_flag
9394 if test -z "$ac_cpp_err"; then
9395 # Broken: success on invalid input.
9398 echo "$as_me: failed program was:" >&5
9399 cat conftest.$ac_ext >&5
9400 # Passes both tests.
9404 rm -f conftest.err conftest.$ac_ext
9407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9408 rm -f conftest.err conftest.$ac_ext
9409 if $ac_preproc_ok; then
9412 { { echo "$as_me:9412: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
9413 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
9414 { (exit 1); exit 1; }; }
9418 ac_cpp='$CXXCPP $CPPFLAGS'
9419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9423 for ac_header in typeinfo
9425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9426 echo "$as_me:9426: checking for $ac_header" >&5
9427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 cat >conftest.$ac_ext <<_ACEOF
9432 #line 9432 "configure"
9433 #include "confdefs.h"
9434 #include <$ac_header>
9436 if { (eval echo "$as_me:9436: \"$ac_cpp conftest.$ac_ext\"") >&5
9437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9439 egrep -v '^ *\+' conftest.er1 >conftest.err
9441 cat conftest.err >&5
9442 echo "$as_me:9442: \$? = $ac_status" >&5
9443 (exit $ac_status); } >/dev/null; then
9444 if test -s conftest.err; then
9445 ac_cpp_err=$ac_cxx_preproc_warn_flag
9452 if test -z "$ac_cpp_err"; then
9453 eval "$as_ac_Header=yes"
9455 echo "$as_me: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9457 eval "$as_ac_Header=no"
9459 rm -f conftest.err conftest.$ac_ext
9461 echo "$as_me:9461: result: `eval echo '${'$as_ac_Header'}'`" >&5
9462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9464 cat >>confdefs.h <<EOF
9465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9471 echo "$as_me:9471: checking for stdbool.h" >&5
9472 echo $ECHO_N "checking for stdbool.h... $ECHO_C" >&6
9473 if test "${ac_cv_header_stdbool_h+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 cat >conftest.$ac_ext <<_ACEOF
9477 #line 9477 "configure"
9478 #include "confdefs.h"
9479 #include <stdbool.h>
9481 if { (eval echo "$as_me:9481: \"$ac_cpp conftest.$ac_ext\"") >&5
9482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9484 egrep -v '^ *\+' conftest.er1 >conftest.err
9486 cat conftest.err >&5
9487 echo "$as_me:9487: \$? = $ac_status" >&5
9488 (exit $ac_status); } >/dev/null; then
9489 if test -s conftest.err; then
9490 ac_cpp_err=$ac_cxx_preproc_warn_flag
9497 if test -z "$ac_cpp_err"; then
9498 ac_cv_header_stdbool_h=yes
9500 echo "$as_me: failed program was:" >&5
9501 cat conftest.$ac_ext >&5
9502 ac_cv_header_stdbool_h=no
9504 rm -f conftest.err conftest.$ac_ext
9506 echo "$as_me:9506: result: $ac_cv_header_stdbool_h" >&5
9507 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
9508 if test $ac_cv_header_stdbool_h = yes; then
9509 cf_cv_header_stdbool_h=1
9511 cf_cv_header_stdbool_h=0
9514 echo "$as_me:9514: checking for builtin bool type" >&5
9515 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
9516 if test "${cf_cv_builtin_bool+set}" = set; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 cat >conftest.$ac_ext <<_ACEOF
9521 #line 9521 "configure"
9522 #include "confdefs.h"
9525 #include <sys/types.h>
9535 rm -f conftest.$ac_objext
9536 if { (eval echo "$as_me:9536: \"$ac_compile\"") >&5
9537 (eval $ac_compile) 2>&5
9539 echo "$as_me:9539: \$? = $ac_status" >&5
9540 (exit $ac_status); } &&
9541 { ac_try='test -s conftest.$ac_objext'
9542 { (eval echo "$as_me:9542: \"$ac_try\"") >&5
9545 echo "$as_me:9545: \$? = $ac_status" >&5
9546 (exit $ac_status); }; }; then
9547 cf_cv_builtin_bool=1
9549 echo "$as_me: failed program was:" >&5
9550 cat conftest.$ac_ext >&5
9551 cf_cv_builtin_bool=0
9553 rm -f conftest.$ac_objext conftest.$ac_ext
9557 if test "$cf_cv_builtin_bool" = 1
9558 then echo "$as_me:9558: result: yes" >&5
9559 echo "${ECHO_T}yes" >&6
9560 else echo "$as_me:9560: result: no" >&5
9561 echo "${ECHO_T}no" >&6
9564 echo "$as_me:9564: checking for size of bool" >&5
9565 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
9566 if test "${cf_cv_type_of_bool+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 if test "$cross_compiling" = yes; then
9572 cf_cv_type_of_bool=unknown
9574 cat >conftest.$ac_ext <<_ACEOF
9575 #line 9575 "configure"
9576 #include "confdefs.h"
9581 #if defined(__cplusplus)
9583 #ifdef HAVE_GXX_BUILTIN_H
9584 #include <g++/builtin.h>
9585 #elif HAVE_GPP_BUILTIN_H
9586 #include <gpp/builtin.h>
9587 #elif HAVE_BUILTIN_H
9588 #include <builtin.h>
9593 #if $cf_cv_header_stdbool_h
9594 #include <stdbool.h>
9601 FILE *fp = fopen("cf_test.out", "w");
9604 if ((bool)(-x) >= 0)
9605 fputs("unsigned ", fp);
9606 if (sizeof(x) == sizeof(int)) fputs("int", fp);
9607 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
9608 else if (sizeof(x) == sizeof(short))fputs("short",fp);
9609 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
9616 rm -f conftest$ac_exeext
9617 if { (eval echo "$as_me:9617: \"$ac_link\"") >&5
9618 (eval $ac_link) 2>&5
9620 echo "$as_me:9620: \$? = $ac_status" >&5
9621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9622 { (eval echo "$as_me:9622: \"$ac_try\"") >&5
9625 echo "$as_me:9625: \$? = $ac_status" >&5
9626 (exit $ac_status); }; }; then
9627 cf_cv_type_of_bool=`cat cf_test.out`
9628 if test -z "$cf_cv_type_of_bool"; then
9629 cf_cv_type_of_bool=unknown
9632 echo "$as_me: program exited with status $ac_status" >&5
9633 echo "$as_me: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9635 cf_cv_type_of_bool=unknown
9637 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9643 echo "$as_me:9643: result: $cf_cv_type_of_bool" >&5
9644 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
9645 if test "$cf_cv_type_of_bool" = unknown ; then
9646 case .$NCURSES_BOOL in #(vi
9647 .auto|.) NCURSES_BOOL=unsigned;;
9649 { echo "$as_me:9649: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
9650 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
9651 cf_cv_type_of_bool=$NCURSES_BOOL
9654 echo "$as_me:9654: checking for special defines needed for etip.h" >&5
9655 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
9656 cf_save_CXXFLAGS="$CXXFLAGS"
9658 for cf_math in "" MATH_H
9660 for cf_excp in "" MATH_EXCEPTION
9662 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu"
9663 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
9664 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
9665 cat >conftest.$ac_ext <<_ACEOF
9666 #line 9666 "configure"
9667 #include "confdefs.h"
9669 #include <etip.h.in>
9679 rm -f conftest.$ac_objext
9680 if { (eval echo "$as_me:9680: \"$ac_compile\"") >&5
9681 (eval $ac_compile) 2>&5
9683 echo "$as_me:9683: \$? = $ac_status" >&5
9684 (exit $ac_status); } &&
9685 { ac_try='test -s conftest.$ac_objext'
9686 { (eval echo "$as_me:9686: \"$ac_try\"") >&5
9689 echo "$as_me:9689: \$? = $ac_status" >&5
9690 (exit $ac_status); }; }; then
9692 test -n "$cf_math" && cat >>confdefs.h <<EOF
9693 #define ETIP_NEEDS_${cf_math} 1
9696 test -n "$cf_excp" && cat >>confdefs.h <<EOF
9697 #define ETIP_NEEDS_${cf_excp} 1
9700 cf_result="$cf_math $cf_excp"
9704 echo "$as_me: failed program was:" >&5
9705 cat conftest.$ac_ext >&5
9707 rm -f conftest.$ac_objext conftest.$ac_ext
9710 echo "$as_me:9710: result: $cf_result" >&5
9711 echo "${ECHO_T}$cf_result" >&6
9712 CXXFLAGS="$cf_save_CXXFLAGS"
9714 if test -n "$CXX"; then
9715 echo "$as_me:9715: checking if $CXX accepts parameter initialization" >&5
9716 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
9717 if test "${cf_cv_cpp_param_init+set}" = set; then
9718 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 ac_cpp='$CXXCPP $CPPFLAGS'
9723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9727 if test "$cross_compiling" = yes; then
9728 cf_cv_cpp_param_init=unknown
9730 cat >conftest.$ac_ext <<_ACEOF
9731 #line 9731 "configure"
9732 #include "confdefs.h"
9742 TEST::TEST(int x = 1) // some compilers do not like second initializer
9749 rm -f conftest$ac_exeext
9750 if { (eval echo "$as_me:9750: \"$ac_link\"") >&5
9751 (eval $ac_link) 2>&5
9753 echo "$as_me:9753: \$? = $ac_status" >&5
9754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9755 { (eval echo "$as_me:9755: \"$ac_try\"") >&5
9758 echo "$as_me:9758: \$? = $ac_status" >&5
9759 (exit $ac_status); }; }; then
9760 cf_cv_cpp_param_init=yes
9762 echo "$as_me: program exited with status $ac_status" >&5
9763 echo "$as_me: failed program was:" >&5
9764 cat conftest.$ac_ext >&5
9765 cf_cv_cpp_param_init=no
9767 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9770 ac_cpp='$CXXCPP $CPPFLAGS'
9771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9776 echo "$as_me:9776: result: $cf_cv_cpp_param_init" >&5
9777 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
9779 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
9780 #define CPP_HAS_PARAM_INIT 1
9783 if test -n "$CXX"; then
9786 ac_cpp='$CXXCPP $CPPFLAGS'
9787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9791 for ac_header in strstream.h
9793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9794 echo "$as_me:9794: checking for $ac_header" >&5
9795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 cat >conftest.$ac_ext <<_ACEOF
9800 #line 9800 "configure"
9801 #include "confdefs.h"
9802 #include <$ac_header>
9804 if { (eval echo "$as_me:9804: \"$ac_cpp conftest.$ac_ext\"") >&5
9805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9807 egrep -v '^ *\+' conftest.er1 >conftest.err
9809 cat conftest.err >&5
9810 echo "$as_me:9810: \$? = $ac_status" >&5
9811 (exit $ac_status); } >/dev/null; then
9812 if test -s conftest.err; then
9813 ac_cpp_err=$ac_cxx_preproc_warn_flag
9820 if test -z "$ac_cpp_err"; then
9821 eval "$as_ac_Header=yes"
9823 echo "$as_me: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9825 eval "$as_ac_Header=no"
9827 rm -f conftest.err conftest.$ac_ext
9829 echo "$as_me:9829: result: `eval echo '${'$as_ac_Header'}'`" >&5
9830 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9832 cat >>confdefs.h <<EOF
9833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9839 echo "$as_me:9839: checking if $CXX supports vscan function" >&5
9840 echo $ECHO_N "checking if $CXX supports vscan function... $ECHO_C" >&6
9841 if test "${cf_cv_cpp_vscan_func+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 for cf_vscan_func in strstream strstream_cast stdio
9847 case $cf_vscan_func in #(vi
9848 stdio) cf_vscan_defs=USE_STDIO_VSCAN ;; #(vi
9849 strstream) cf_vscan_defs=USE_STRSTREAM_VSCAN ;;
9850 strstream_cast) cf_vscan_defs=USE_STRSTREAM_VSCAN_CAST ;;
9852 cat >conftest.$ac_ext <<_ACEOF
9853 #line 9853 "configure"
9854 #include "confdefs.h"
9858 #define $cf_vscan_defs 1
9859 #if defined(USE_STDIO_VSCAN)
9860 #elif defined(HAVE_STRSTREAM_H) && defined(USE_STRSTREAM_VSCAN)
9861 #include <strstream.h>
9864 int scanw(const char* fmt, ...)
9870 va_start(args, fmt);
9871 #if defined(USE_STDIO_VSCAN)
9872 if (::vsscanf(buf, fmt, args) != -1)
9874 #elif defined(USE_STRSTREAM_VSCAN)
9875 strstreambuf ss(buf, sizeof(buf));
9876 if (ss.vscan(fmt, args) != -1)
9878 #elif defined(USE_STRSTREAM_VSCAN_CAST)
9879 strstreambuf ss(buf, sizeof(buf));
9880 if (ss.vscan(fmt, (_IO_va_list)args) != -1)
9883 #error case $cf_vscan_func failed
9892 int tmp, foo = scanw("%d", &tmp)
9897 rm -f conftest.$ac_objext conftest$ac_exeext
9898 if { (eval echo "$as_me:9898: \"$ac_link\"") >&5
9899 (eval $ac_link) 2>&5
9901 echo "$as_me:9901: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
9903 { ac_try='test -s conftest$ac_exeext'
9904 { (eval echo "$as_me:9904: \"$ac_try\"") >&5
9907 echo "$as_me:9907: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 cf_cv_cpp_vscan_func=$cf_vscan_func; break
9911 echo "$as_me: failed program was:" >&5
9912 cat conftest.$ac_ext >&5
9913 cf_cv_cpp_vscan_func=no
9915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9916 test "$cf_cv_cpp_vscan_func" != no && break
9920 echo "$as_me:9920: result: $cf_cv_cpp_vscan_func" >&5
9921 echo "${ECHO_T}$cf_cv_cpp_vscan_func" >&6
9924 ac_cpp='$CXXCPP $CPPFLAGS'
9925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9931 case $cf_cv_cpp_vscan_func in #(vi
9933 cat >>confdefs.h <<\EOF
9934 #define CPP_HAS_VSCAN_FUNC 1
9937 cat >>confdefs.h <<\EOF
9938 #define USE_STDIO_VSCAN 1
9943 cat >>confdefs.h <<\EOF
9944 #define CPP_HAS_VSCAN_FUNC 1
9947 cat >>confdefs.h <<\EOF
9948 #define USE_STRSTREAM_VSCAN 1
9953 cat >>confdefs.h <<\EOF
9954 #define CPP_HAS_VSCAN_FUNC 1
9957 cat >>confdefs.h <<\EOF
9958 #define USE_STRSTREAM_VSCAN_CAST 1
9965 CXX_AR_OPTS='$(AR_OPTS)'
9966 case $cf_cv_system_name in #(vi
9968 if test "$GXX" != yes ; then
9970 CXX_AR_OPTS='-ar -o'
9974 CXXLDFLAGS="-u main"
9977 if test "$GXX" != yes ; then
9979 CXX_AR_OPTS='-xar -o'
9986 cf_cv_builtin_bool=1
9988 # Just because we are not configuring against C++ right now does not
9989 # mean that a user will not want to use C++. Some distributors disable
9990 # the C++ portion of this configuration as a shortcut (or just to avoid
9991 # compiling the demo in the c++ directory). So we need a reasonable
9992 # default for the 'bool' type.
9994 # Caveat: since the storage of the bool type is not standardized, it
9997 if test "$NCURSES_BOOL" != auto ; then
9998 cf_cv_type_of_bool=$NCURSES_AUTO
10000 if test "$cf_cv_header_stdbool_h" = 1 ; then
10002 echo "$as_me:10002: checking for size of bool" >&5
10003 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
10004 if test "${cf_cv_type_of_bool+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 if test "$cross_compiling" = yes; then
10010 cf_cv_type_of_bool=unknown
10012 cat >conftest.$ac_ext <<_ACEOF
10013 #line 10013 "configure"
10014 #include "confdefs.h"
10016 #include <stdlib.h>
10019 #if defined(__cplusplus)
10021 #ifdef HAVE_GXX_BUILTIN_H
10022 #include <g++/builtin.h>
10023 #elif HAVE_GPP_BUILTIN_H
10024 #include <gpp/builtin.h>
10025 #elif HAVE_BUILTIN_H
10026 #include <builtin.h>
10031 #if $cf_cv_header_stdbool_h
10032 #include <stdbool.h>
10039 FILE *fp = fopen("cf_test.out", "w");
10042 if ((bool)(-x) >= 0)
10043 fputs("unsigned ", fp);
10044 if (sizeof(x) == sizeof(int)) fputs("int", fp);
10045 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
10046 else if (sizeof(x) == sizeof(short))fputs("short",fp);
10047 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
10054 rm -f conftest$ac_exeext
10055 if { (eval echo "$as_me:10055: \"$ac_link\"") >&5
10056 (eval $ac_link) 2>&5
10058 echo "$as_me:10058: \$? = $ac_status" >&5
10059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10060 { (eval echo "$as_me:10060: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10063 echo "$as_me:10063: \$? = $ac_status" >&5
10064 (exit $ac_status); }; }; then
10065 cf_cv_type_of_bool=`cat cf_test.out`
10066 if test -z "$cf_cv_type_of_bool"; then
10067 cf_cv_type_of_bool=unknown
10070 echo "$as_me: program exited with status $ac_status" >&5
10071 echo "$as_me: failed program was:" >&5
10072 cat conftest.$ac_ext >&5
10073 cf_cv_type_of_bool=unknown
10075 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10081 echo "$as_me:10081: result: $cf_cv_type_of_bool" >&5
10082 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
10083 if test "$cf_cv_type_of_bool" = unknown ; then
10084 case .$NCURSES_BOOL in #(vi
10085 .auto|.) NCURSES_BOOL=unsigned;;
10087 { echo "$as_me:10087: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
10088 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
10089 cf_cv_type_of_bool=$NCURSES_BOOL
10093 echo "$as_me:10093: checking for fallback type of bool" >&5
10094 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
10095 case "$host_cpu" in #(vi
10096 i?86) cf_cv_type_of_bool=char ;; #(vi
10097 *) cf_cv_type_of_bool=int ;;
10099 echo "$as_me:10099: result: $cf_cv_type_of_bool" >&5
10100 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
10105 if test "$cf_with_ada" != "no" ; then
10106 cf_ada_make=gnatmake
10107 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
10108 set dummy $cf_ada_make; ac_word=$2
10109 echo "$as_me:10109: checking for $ac_word" >&5
10110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10111 if test "${ac_cv_prog_gnat_exists+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10114 if test -n "$gnat_exists"; then
10115 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
10117 ac_save_IFS=$IFS; IFS=$ac_path_separator
10119 for ac_dir in $ac_dummy; do
10121 test -z "$ac_dir" && ac_dir=.
10122 $as_executable_p "$ac_dir/$ac_word" || continue
10123 ac_cv_prog_gnat_exists="yes"
10124 echo "$as_me:10124: found $ac_dir/$ac_word" >&5
10128 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
10131 gnat_exists=$ac_cv_prog_gnat_exists
10132 if test -n "$gnat_exists"; then
10133 echo "$as_me:10133: result: $gnat_exists" >&5
10134 echo "${ECHO_T}$gnat_exists" >&6
10136 echo "$as_me:10136: result: no" >&5
10137 echo "${ECHO_T}no" >&6
10140 if test "$ac_cv_prog_gnat_exists" = no; then
10144 cf_cv_gnat_version=`$cf_ada_make -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
10145 sed -e 's/[^0-9 \.]//g' | $AWK '{print $1;}'`
10146 case $cf_cv_gnat_version in
10147 3.1[1-9]*|3.[2-9]*|[4-9].*)
10148 cf_cv_prog_gnat_correct=yes
10150 *) echo Unsupported GNAT version $cf_cv_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
10151 cf_cv_prog_gnat_correct=no
10154 case $cf_cv_gnat_version in
10156 cf_compile_generics=generics
10157 cf_generic_objects="\$(GENOBJS)"
10159 *) cf_compile_generics=
10160 cf_generic_objects=
10164 # Extract the first word of "m4", so it can be a program name with args.
10165 set dummy m4; ac_word=$2
10166 echo "$as_me:10166: checking for $ac_word" >&5
10167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10168 if test "${ac_cv_prog_M4_exists+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 if test -n "$M4_exists"; then
10172 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
10174 ac_save_IFS=$IFS; IFS=$ac_path_separator
10176 for ac_dir in $ac_dummy; do
10178 test -z "$ac_dir" && ac_dir=.
10179 $as_executable_p "$ac_dir/$ac_word" || continue
10180 ac_cv_prog_M4_exists="yes"
10181 echo "$as_me:10181: found $ac_dir/$ac_word" >&5
10185 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
10188 M4_exists=$ac_cv_prog_M4_exists
10189 if test -n "$M4_exists"; then
10190 echo "$as_me:10190: result: $M4_exists" >&5
10191 echo "${ECHO_T}$M4_exists" >&6
10193 echo "$as_me:10193: result: no" >&5
10194 echo "${ECHO_T}no" >&6
10197 if test "$ac_cv_prog_M4_exists" = no; then
10198 cf_cv_prog_gnat_correct=no
10199 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
10201 if test "$cf_cv_prog_gnat_correct" = yes; then
10202 echo "$as_me:10202: checking if GNAT works" >&5
10203 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
10206 cat >>conftest.ads <<CF_EOF
10207 procedure conftest;
10209 cat >>conftest.adb <<CF_EOF
10212 procedure conftest is
10214 Text_IO.Put ("Hello World");
10216 GNAT.OS_Lib.OS_Exit (0);
10219 if ( $cf_ada_make conftest 1>&5 2>&1 ) ; then
10220 if ( ./conftest 1>&5 2>&1 ) ; then
10221 cf_cv_prog_gnat_correct=yes
10223 cf_cv_prog_gnat_correct=no
10226 cf_cv_prog_gnat_correct=no
10230 echo "$as_me:10230: result: $cf_cv_prog_gnat_correct" >&5
10231 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
10234 if test "$cf_cv_prog_gnat_correct" = yes; then
10235 ADAFLAGS="-O3 -gnatpn $ADAFLAGS"
10237 # Check whether --with-ada-compiler or --without-ada-compiler was given.
10238 if test "${with_ada_compiler+set}" = set; then
10239 withval="$with_ada_compiler"
10240 cf_ada_compiler=$withval
10242 cf_ada_compiler=gnatmake
10245 cf_ada_package=terminal_interface
10247 # Check whether --with-ada-include or --without-ada-include was given.
10248 if test "${with_ada_include+set}" = set; then
10249 withval="$with_ada_include"
10252 withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}"
10254 case ".$withval" in #(vi
10255 .\$\(*\)*|.\'*\'*) #(vi
10259 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
10261 .\${*prefix}*) #(vi
10262 eval withval="$withval"
10263 case ".$withval" in #(vi
10265 withval=`echo $withval | sed -e s%NONE%$ac_default_prefix%`
10270 withval=`echo $withval | sed -e s%NONE%$ac_default_prefix%`
10273 { { echo "$as_me:10273: error: expected a pathname, not \"$withval\"" >&5
10274 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
10275 { (exit 1); exit 1; }; }
10279 eval ADA_INCLUDE="$withval"
10281 # Check whether --with-ada-objects or --without-ada-objects was given.
10282 if test "${with_ada_objects+set}" = set; then
10283 withval="$with_ada_objects"
10286 withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
10288 case ".$withval" in #(vi
10289 .\$\(*\)*|.\'*\'*) #(vi
10293 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
10295 .\${*prefix}*) #(vi
10296 eval withval="$withval"
10297 case ".$withval" in #(vi
10299 withval=`echo $withval | sed -e s%NONE%$ac_default_prefix%`
10304 withval=`echo $withval | sed -e s%NONE%$ac_default_prefix%`
10307 { { echo "$as_me:10307: error: expected a pathname, not \"$withval\"" >&5
10308 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
10309 { (exit 1); exit 1; }; }
10313 eval ADA_OBJECTS="$withval"
10318 ### It's not possible to appease gcc 2.6.3's conversion-warnings if we're
10319 ### using a 'char' for bools. gcc 2.7.0's conversion-warnings are broken too
10320 ### badly to consider using for development purposes, but 2.5.8 is okay.
10321 if test -n "$with_warnings"; then
10322 case $GCC_VERSION in
10324 if test "$cf_cv_type_of_bool" != "char"; then
10325 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wconversion"
10329 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wconversion"
10334 ### Construct the library-subsets, if any, from this set of keywords:
10335 ### none, base, ext_funcs, termlib.
10336 echo "$as_me:10336: checking for library subsets" >&5
10337 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
10338 if test "$with_termlib" = yes ; then
10339 LIB_SUBSETS="termlib "
10341 LIB_SUBSETS="termlib+"
10343 LIB_SUBSETS="${LIB_SUBSETS}base"
10344 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
10345 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
10346 echo "$as_me:10346: result: $LIB_SUBSETS" >&5
10347 echo "${ECHO_T}$LIB_SUBSETS" >&6
10351 case "$CFLAGS $CPPFLAGS" in
10358 ### Construct the list of include-directories to be generated
10360 CPPFLAGS="$CPPFLAGS -I. -I../include"
10361 if test "$srcdir" != "."; then
10362 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/../include"
10364 if test "$GCC" != yes; then
10365 CPPFLAGS="$CPPFLAGS -I\$(includedir)"
10366 elif test "$includedir" != "/usr/include"; then
10367 if test "$includedir" = '${prefix}/include' ; then
10368 if test $prefix != /usr ; then
10369 CPPFLAGS="$CPPFLAGS -I\$(includedir)"
10372 CPPFLAGS="$CPPFLAGS -I\$(includedir)"
10376 ACPPFLAGS="$ACPPFLAGS -I. -I../../include"
10377 if test "$srcdir" != "."; then
10378 ACPPFLAGS="$ACPPFLAGS -I\$(srcdir)/../../include"
10380 if test "$GCC" != yes; then
10381 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
10382 elif test "$includedir" != "/usr/include"; then
10383 if test "$includedir" = '${prefix}/include' ; then
10384 if test $prefix != /usr ; then
10385 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
10388 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
10392 ### Build up pieces for makefile rules
10393 echo "$as_me:10393: checking default library suffix" >&5
10394 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
10396 case $DFT_LWR_MODEL in
10397 libtool) DFT_ARG_SUFFIX='' ;;
10398 normal) DFT_ARG_SUFFIX='' ;;
10399 debug) DFT_ARG_SUFFIX='_g' ;;
10400 profile) DFT_ARG_SUFFIX='_p' ;;
10401 shared) DFT_ARG_SUFFIX='' ;;
10403 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
10404 echo "$as_me:10404: result: $DFT_ARG_SUFFIX" >&5
10405 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
10407 echo "$as_me:10407: checking default library-dependency suffix" >&5
10408 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
10410 case $DFT_LWR_MODEL in
10411 libtool) DFT_DEP_SUFFIX='.la' ;;
10412 normal) DFT_DEP_SUFFIX='.a' ;;
10413 debug) DFT_DEP_SUFFIX='_g.a' ;;
10414 profile) DFT_DEP_SUFFIX='_p.a' ;;
10416 case $cf_cv_system_name in
10417 cygwin*) DFT_DEP_SUFFIX='.dll' ;;
10418 darwin*) DFT_DEP_SUFFIX='.dylib' ;;
10419 hpux*) DFT_DEP_SUFFIX='.sl' ;;
10420 *) DFT_DEP_SUFFIX='.so' ;;
10423 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
10424 if test $DFT_LWR_MODEL = shared ; then
10425 case $cf_cv_system_name in #(vi
10427 DFT_DEP_SUFFIX=".dll.a"
10431 echo "$as_me:10431: result: $DFT_DEP_SUFFIX" >&5
10432 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
10434 echo "$as_me:10434: checking default object directory" >&5
10435 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
10437 case $DFT_LWR_MODEL in
10438 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
10439 normal) DFT_OBJ_SUBDIR='objects' ;;
10440 debug) DFT_OBJ_SUBDIR='obj_g' ;;
10441 profile) DFT_OBJ_SUBDIR='obj_p' ;;
10443 case $cf_cv_system_name in #(vi
10445 DFT_OBJ_SUBDIR='objects' ;;
10447 DFT_OBJ_SUBDIR='obj_s' ;;
10450 echo "$as_me:10450: result: $DFT_OBJ_SUBDIR" >&5
10451 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
10453 # libtool thinks it can make c++ shared libraries (perhaps only g++)
10454 echo "$as_me:10454: checking c++ library-dependency suffix" >&5
10455 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
10456 if test "$with_libtool" = "yes"; then
10457 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
10461 libtool) CXX_LIB_SUFFIX='.la' ;;
10462 normal) CXX_LIB_SUFFIX='.a' ;;
10463 debug) CXX_LIB_SUFFIX='_g.a' ;;
10464 profile) CXX_LIB_SUFFIX='_p.a' ;;
10466 case $cf_cv_system_name in
10467 cygwin*) CXX_LIB_SUFFIX='.dll' ;;
10468 darwin*) CXX_LIB_SUFFIX='.dylib' ;;
10469 hpux*) CXX_LIB_SUFFIX='.sl' ;;
10470 *) CXX_LIB_SUFFIX='.so' ;;
10473 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
10475 echo "$as_me:10475: result: $CXX_LIB_SUFFIX" >&5
10476 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
10478 TINFO_LIST="$SHLIB_LIST"
10479 test "$with_termlib" = yes && SHLIB_LIST="$SHLIB_LIST -ltinfo${LIB_SUFFIX}"
10481 echo "$as_me:10481: checking where we will install curses.h" >&5
10482 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
10483 test "$with_overwrite" = no && \
10484 test "x$includedir" = 'x${prefix}/include' && \
10485 includedir='$(prefix)/include/ncurses'${LIB_SUFFIX}
10486 echo "$as_me:10486: result: $includedir" >&5
10487 echo "${ECHO_T}$includedir" >&6
10489 ### Resolve a conflict between normal and wide-curses by forcing applications
10490 ### that will need libutf8 to add it to their configure script.
10491 if test "$with_overwrite" != no ; then
10492 if test "$NCURSES_LIBUTF8" = 1 ; then
10493 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
10494 { echo "$as_me:10494: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
10495 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
10499 ### Set up low-level terminfo dependencies for makefiles. Note that we
10500 ### could override this.
10501 if test "$with_termlib" = yes ; then
10502 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_NAME}${DFT_DEP_SUFFIX}"
10503 if test "$DFT_LWR_MODEL" = "libtool"; then
10504 TEST_ARGS="${TEST_DEPS}"
10506 TEST_ARGS="-l${TINFO_NAME}${DFT_ARG_SUFFIX}"
10509 PROG_DEPS="$TEST_DEPS"
10510 PROG_ARGS="$TEST_ARGS"
10512 ### Construct the list of subdirectories for which we'll customize makefiles
10513 ### with the appropriate compile-rules.
10515 echo "$as_me:10515: checking for src modules" >&5
10516 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
10518 # dependencies and linker-arguments for test-programs
10519 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
10520 if test "$DFT_LWR_MODEL" = "libtool"; then
10521 TEST_ARGS="${TEST_DEPS}"
10523 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
10526 # dependencies and linker-arguments for utility-programs
10527 PROG_ARGS="$TEST_ARGS"
10530 for cf_dir in $modules_to_build
10532 if test -f $srcdir/$cf_dir/modules; then
10534 # We may/may not have tack in the distribution, though the
10536 if test $cf_dir = tack ; then
10537 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
10542 if test -z "$cf_cv_src_modules"; then
10543 cf_cv_src_modules=$cf_dir
10545 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
10548 # Make the ncurses_cfg.h file record the library interface files as
10549 # well. These are header files that are the same name as their
10550 # directory. Ncurses is the only library that does not follow
10552 if test $cf_dir = tack ; then
10554 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
10556 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10558 cat >>confdefs.h <<EOF
10559 #define HAVE_${cf_have_include}_H 1
10562 cat >>confdefs.h <<EOF
10563 #define HAVE_LIB${cf_have_include} 1
10566 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
10567 if test "$DFT_LWR_MODEL" = "libtool"; then
10568 TEST_ARGS="${TEST_DEPS}"
10570 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
10575 echo "$as_me:10575: result: $cf_cv_src_modules" >&5
10576 echo "${ECHO_T}$cf_cv_src_modules" >&6
10577 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
10579 PROG_ARGS="-L${LIB_DIR} $PROG_ARGS"
10581 SRC_SUBDIRS="man include"
10582 for cf_dir in $cf_cv_src_modules
10584 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
10586 SRC_SUBDIRS="$SRC_SUBDIRS test"
10587 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
10588 test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
10591 if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
10592 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
10593 ADA_SUBDIRS="gen src samples"
10597 for cf_dir in $SRC_SUBDIRS
10599 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
10602 if test -n "$ADA_SUBDIRS"; then
10603 for cf_dir in $ADA_SUBDIRS
10605 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
10611 for cf_item in $cf_list_models
10615 libtool) cf_subdir='obj_lo' ;;
10616 normal) cf_subdir='objects' ;;
10617 debug) cf_subdir='obj_g' ;;
10618 profile) cf_subdir='obj_p' ;;
10620 case $cf_cv_system_name in #(vi
10622 cf_subdir='objects' ;;
10624 cf_subdir='obj_s' ;;
10628 for cf_item2 in $DIRS_TO_MAKE
10630 test $cf_item2 = $cf_subdir && break
10632 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
10634 for cf_dir in $DIRS_TO_MAKE
10636 test ! -d $cf_dir && mkdir $cf_dir
10639 cat >>confdefs.h <<EOF
10640 #define NCURSES_PATHSEP '$PATHSEP'
10643 ### Now that we're done running tests, add the compiler-warnings, if any
10644 CFLAGS="$CFLAGS $EXTRA_CFLAGS"
10646 ################################################################################
10647 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/termcap.h include/unctrl.h misc/run_tic.sh:misc/run_tic.in $SUB_MAKEFILES Makefile"
10648 ac_config_commands="$ac_config_commands default"
10649 cat >confcache <<\_ACEOF
10650 # This file is a shell script that caches the results of configure
10651 # tests run on this system so they can be shared between configure
10652 # scripts and configure runs, see configure's option --config-cache.
10653 # It is not useful on other systems. If it contains results you don't
10654 # want to keep, you may remove or edit it.
10656 # config.status only pays attention to the cache file if you give it
10657 # the --recheck option to rerun configure.
10659 # `ac_cv_env_foo' variables (set or unset) will be overriden when
10660 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10661 # following values.
10665 # The following way of writing the cache mishandles newlines in values,
10666 # but we know of no workaround that is simple, portable, and efficient.
10667 # So, don't put newlines in cache variables' values.
10668 # Ultrix sh set writes to stderr and can't be redirected directly,
10669 # and sets the high bit in the cache file unless we assign to the vars.
10672 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10674 # `set' does not quote correctly, so add quotes (double-quote
10675 # substitution turns \\\\ into \\, and sed turns \\ into \).
10678 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10681 # `set' quotes correctly as required by POSIX, so do not add quotes.
10683 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10690 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10692 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10694 if cmp -s $cache_file confcache; then :; else
10695 if test -w $cache_file; then
10696 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10697 cat confcache >$cache_file
10699 echo "not updating unwritable cache $cache_file"
10704 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10705 # Let make expand exec_prefix.
10706 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10708 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10709 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10710 # trailing colons and then remove the whole line if VPATH becomes empty
10711 # (actually we leave an empty line to preserve line numbers).
10712 if test "x$srcdir" = x.; then
10713 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10714 s/:*\$(srcdir):*/:/;
10715 s/:*\${srcdir}:*/:/;
10717 s/^\([^=]*=[ ]*\):*/\1/;
10723 DEFS=-DHAVE_CONFIG_H
10725 : ${CONFIG_STATUS=./config.status}
10726 ac_clean_files_save=$ac_clean_files
10727 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10728 { echo "$as_me:10728: creating $CONFIG_STATUS" >&5
10729 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10730 cat >$CONFIG_STATUS <<_ACEOF
10732 # Generated automatically by configure.
10733 # Run this file to recreate the current configuration.
10734 # Compiler output produced by configure, useful for debugging
10735 # configure, is in config.log if it exists.
10738 SHELL=\${CONFIG_SHELL-$SHELL}
10739 ac_cs_invocation="\$0 \$@"
10743 cat >>$CONFIG_STATUS <<\_ACEOF
10744 # Be Bourne compatible
10745 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10748 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10752 # Name of the executable.
10753 as_me=`echo "$0" |sed 's,.*[\\/],,'`
10755 if expr a : '\(a\)' >/dev/null 2>&1; then
10761 rm -f conf$$ conf$$.exe conf$$.file
10763 if ln -s conf$$.file conf$$ 2>/dev/null; then
10764 # We could just check for DJGPP; but this test a) works b) is more generic
10765 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10766 if test -f conf$$.exe; then
10767 # Don't use ln at all; we don't have any links
10772 elif ln conf$$.file conf$$ 2>/dev/null; then
10777 rm -f conf$$ conf$$.exe conf$$.file
10779 as_executable_p="test -f"
10781 # Support unset when possible.
10782 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10789 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
10790 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
10791 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
10792 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
10793 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
10794 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
10795 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
10796 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
10799 # We need space, tab and new line, in precisely that order.
10805 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
10811 # Files that config.status was made for.
10812 if test -n "$ac_config_files"; then
10813 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10816 if test -n "$ac_config_headers"; then
10817 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10820 if test -n "$ac_config_links"; then
10821 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10824 if test -n "$ac_config_commands"; then
10825 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10828 cat >>$CONFIG_STATUS <<\EOF
10831 \`$as_me' instantiates files from templates according to the
10832 current configuration.
10834 Usage: $0 [OPTIONS] [FILE]...
10836 -h, --help print this help, then exit
10837 -V, --version print version number, then exit
10838 -d, --debug don't remove temporary files
10839 --recheck update $as_me by reconfiguring in the same conditions
10840 --file=FILE[:TEMPLATE]
10841 instantiate the configuration file FILE
10842 --header=FILE[:TEMPLATE]
10843 instantiate the configuration header FILE
10845 Configuration files:
10848 Configuration headers:
10851 Configuration commands:
10854 Report bugs to <bug-autoconf@gnu.org>."
10857 cat >>$CONFIG_STATUS <<EOF
10860 configured by $0, generated by GNU Autoconf 2.52.20011227,
10861 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10863 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10864 Free Software Foundation, Inc.
10865 This config.status script is free software; the Free Software Foundation
10866 gives unlimited permission to copy, distribute and modify it."
10871 cat >>$CONFIG_STATUS <<\EOF
10872 # If no file are specified by the user, then we need to provide default
10873 # value. By we need to know if files were specified by the user.
10879 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10880 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10882 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10886 *) # This is not an option, so the user has probably given explicit
10888 ac_need_defaults=false;;
10892 # Handling of the options.
10894 cat >>$CONFIG_STATUS <<EOF
10895 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10896 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10897 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10899 cat >>$CONFIG_STATUS <<\EOF
10900 --version | --vers* | -V )
10901 echo "$ac_cs_version"; exit 0 ;;
10903 # Conflict between --help and --header
10904 { { echo "$as_me:10904: error: ambiguous option: $1
10905 Try \`$0 --help' for more information." >&5
10906 echo "$as_me: error: ambiguous option: $1
10907 Try \`$0 --help' for more information." >&2;}
10908 { (exit 1); exit 1; }; };;
10909 --help | --hel | -h )
10910 echo "$ac_cs_usage"; exit 0 ;;
10911 --debug | --d* | -d )
10913 --file | --fil | --fi | --f )
10915 CONFIG_FILES="$CONFIG_FILES $1"
10916 ac_need_defaults=false;;
10917 --header | --heade | --head | --hea )
10919 CONFIG_HEADERS="$CONFIG_HEADERS $1"
10920 ac_need_defaults=false;;
10922 # This is an error.
10923 -*) { { echo "$as_me:10923: error: unrecognized option: $1
10924 Try \`$0 --help' for more information." >&5
10925 echo "$as_me: error: unrecognized option: $1
10926 Try \`$0 --help' for more information." >&2;}
10927 { (exit 1); exit 1; }; } ;;
10929 *) ac_config_targets="$ac_config_targets $1" ;;
10938 ## ----------------------- ##
10939 ## Running config.status. ##
10940 ## ----------------------- ##
10942 This file was extended by $as_me 2.52.20011227, executed with
10943 CONFIG_FILES = $CONFIG_FILES
10944 CONFIG_HEADERS = $CONFIG_HEADERS
10945 CONFIG_LINKS = $CONFIG_LINKS
10946 CONFIG_COMMANDS = $CONFIG_COMMANDS
10947 > $ac_cs_invocation
10948 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10953 cat >>$CONFIG_STATUS <<EOF
10955 # INIT-COMMANDS section.
10958 ### Special initialization commands, used to pass information from the
10959 ### configuration-run into config.status
10962 CF_LIST_MODELS="$cf_list_models"
10963 DFT_LWR_MODEL="$DFT_LWR_MODEL"
10964 LDCONFIG="$LDCONFIG"
10965 LIB_NAME="$LIB_NAME"
10966 LIB_SUBSETS="$LIB_SUBSETS"
10967 LIB_SUFFIX="$LIB_SUFFIX"
10968 LIB_TRACING="$LIB_TRACING"
10969 MAKE_TERMINFO="$MAKE_TERMINFO"
10970 NCURSES_OSPEED="$NCURSES_OSPEED"
10971 SRC_SUBDIRS="$SRC_SUBDIRS"
10972 TERMINFO="$TERMINFO"
10973 TINFO_NAME="$TINFO_NAME"
10974 WITH_CURSES_H="$with_curses_h"
10975 WITH_ECHO="$with_echo"
10976 WITH_OVERWRITE="$with_overwrite"
10977 cf_cv_abi_version="$cf_cv_abi_version"
10978 cf_cv_do_symlinks="$cf_cv_do_symlinks"
10979 cf_cv_rel_version="$cf_cv_rel_version"
10980 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
10981 cf_cv_shlib_version="$cf_cv_shlib_version"
10982 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
10983 cf_cv_system_name="$cf_cv_system_name"
10984 cf_with_cxx_binding="$cf_with_cxx_binding"
10989 cat >>$CONFIG_STATUS <<\EOF
10990 for ac_config_target in $ac_config_targets
10992 case "$ac_config_target" in
10993 # Handling of arguments.
10994 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
10995 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
10996 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
10997 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
10998 "misc/run_tic.sh" ) CONFIG_FILES="$CONFIG_FILES misc/run_tic.sh:misc/run_tic.in" ;;
10999 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
11000 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11001 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
11002 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
11003 *) { { echo "$as_me:11003: error: invalid argument: $ac_config_target" >&5
11004 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11005 { (exit 1); exit 1; }; };;
11009 # If the user did not use the arguments to specify the items to instantiate,
11010 # then the envvar interface is used. Set only those that are not.
11011 # We use the long form for the default assignment because of an extremely
11012 # bizarre bug on SunOS 4.1.3.
11013 if $ac_need_defaults; then
11014 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11015 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11016 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11019 # Create a temporary directory, and hook for its removal unless debugging.
11022 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11023 trap '{ (exit 1); exit 1; }' 1 2 13 15
11026 # Create a (secure) tmp directory for tmp files.
11029 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
11030 test -n "$tmp" && test -d "$tmp"
11033 tmp=$TMPDIR/cs$$-$RANDOM
11034 (umask 077 && mkdir $tmp)
11037 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
11038 { (exit 1); exit 1; }
11043 cat >>$CONFIG_STATUS <<EOF
11046 # CONFIG_FILES section.
11049 # No need to generate the scripts if there are no CONFIG_FILES.
11050 # This happens for instance when ./config.status config.h
11051 if test -n "\$CONFIG_FILES"; then
11052 # Protect against being on the right side of a sed subst in config.status.
11053 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11054 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11055 s,@SHELL@,$SHELL,;t t
11056 s,@exec_prefix@,$exec_prefix,;t t
11057 s,@prefix@,$prefix,;t t
11058 s,@program_transform_name@,$program_transform_name,;t t
11059 s,@bindir@,$bindir,;t t
11060 s,@sbindir@,$sbindir,;t t
11061 s,@libexecdir@,$libexecdir,;t t
11062 s,@datadir@,$datadir,;t t
11063 s,@sysconfdir@,$sysconfdir,;t t
11064 s,@sharedstatedir@,$sharedstatedir,;t t
11065 s,@localstatedir@,$localstatedir,;t t
11066 s,@libdir@,$libdir,;t t
11067 s,@includedir@,$includedir,;t t
11068 s,@oldincludedir@,$oldincludedir,;t t
11069 s,@infodir@,$infodir,;t t
11070 s,@mandir@,$mandir,;t t
11071 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11072 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11073 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11074 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11075 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11076 s,@build_alias@,$build_alias,;t t
11077 s,@host_alias@,$host_alias,;t t
11078 s,@target_alias@,$target_alias,;t t
11079 s,@ECHO_C@,$ECHO_C,;t t
11080 s,@ECHO_N@,$ECHO_N,;t t
11081 s,@ECHO_T@,$ECHO_T,;t t
11082 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11083 s,@DEFS@,$DEFS,;t t
11084 s,@LIBS@,$LIBS,;t t
11085 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
11086 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
11087 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
11088 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
11089 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
11090 s,@cf_cv_cc_bool_type@,$cf_cv_cc_bool_type,;t t
11091 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
11092 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
11093 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
11094 s,@build@,$build,;t t
11095 s,@build_cpu@,$build_cpu,;t t
11096 s,@build_vendor@,$build_vendor,;t t
11097 s,@build_os@,$build_os,;t t
11098 s,@host@,$host,;t t
11099 s,@host_cpu@,$host_cpu,;t t
11100 s,@host_vendor@,$host_vendor,;t t
11101 s,@host_os@,$host_os,;t t
11102 s,@target@,$target,;t t
11103 s,@target_cpu@,$target_cpu,;t t
11104 s,@target_vendor@,$target_vendor,;t t
11105 s,@target_os@,$target_os,;t t
11107 s,@CFLAGS@,$CFLAGS,;t t
11108 s,@LDFLAGS@,$LDFLAGS,;t t
11109 s,@CPPFLAGS@,$CPPFLAGS,;t t
11110 s,@ac_ct_CC@,$ac_ct_CC,;t t
11111 s,@EXEEXT@,$EXEEXT,;t t
11112 s,@OBJEXT@,$OBJEXT,;t t
11113 s,@BUILD_CC@,$BUILD_CC,;t t
11114 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
11115 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
11116 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
11117 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
11119 s,@PROG_EXT@,$PROG_EXT,;t t
11120 s,@LDCONFIG@,$LDCONFIG,;t t
11122 s,@CXXFLAGS@,$CXXFLAGS,;t t
11123 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11125 s,@SET_MAKE@,$SET_MAKE,;t t
11126 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11127 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11128 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11129 s,@LN_S@,$LN_S,;t t
11130 s,@RANLIB@,$RANLIB,;t t
11131 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11132 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
11133 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
11134 s,@LINT@,$LINT,;t t
11136 s,@LINT_OPTS@,$LINT_OPTS,;t t
11139 s,@AR_OPTS@,$AR_OPTS,;t t
11140 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
11141 s,@DESTDIR@,$DESTDIR,;t t
11142 s,@cf_list_models@,$cf_list_models,;t t
11143 s,@LIBTOOL@,$LIBTOOL,;t t
11144 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
11145 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
11146 s,@TINFO_NAME@,$TINFO_NAME,;t t
11147 s,@LIB_NAME@,$LIB_NAME,;t t
11148 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
11149 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
11150 s,@CC_G_OPT@,$CC_G_OPT,;t t
11151 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
11152 s,@LD_MODEL@,$LD_MODEL,;t t
11153 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
11154 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
11155 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
11156 s,@LINK_PROGS@,$LINK_PROGS,;t t
11157 s,@LINK_TESTS@,$LINK_TESTS,;t t
11158 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
11159 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
11160 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
11161 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
11162 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
11163 s,@PATHSEP@,$PATHSEP,;t t
11164 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
11165 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
11166 s,@TERMINFO@,$TERMINFO,;t t
11167 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
11168 s,@TERMPATH@,$TERMPATH,;t t
11169 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
11170 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
11171 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
11172 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
11173 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
11174 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
11175 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
11176 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
11177 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
11178 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
11179 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
11180 s,@ECHO_LINK@,$ECHO_LINK,;t t
11181 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
11182 s,@MATH_LIB@,$MATH_LIB,;t t
11183 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
11184 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
11185 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
11186 s,@CXXCPP@,$CXXCPP,;t t
11187 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
11188 s,@CXX_AR@,$CXX_AR,;t t
11189 s,@CXX_AR_OPTS@,$CXX_AR_OPTS,;t t
11190 s,@CXXLIBS@,$CXXLIBS,;t t
11191 s,@gnat_exists@,$gnat_exists,;t t
11192 s,@M4_exists@,$M4_exists,;t t
11193 s,@cf_ada_make@,$cf_ada_make,;t t
11194 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
11195 s,@cf_ada_package@,$cf_ada_package,;t t
11196 s,@ADAFLAGS@,$ADAFLAGS,;t t
11197 s,@cf_compile_generics@,$cf_compile_generics,;t t
11198 s,@cf_generic_objects@,$cf_generic_objects,;t t
11199 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
11200 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
11201 s,@ADA_TRACE@,$ADA_TRACE,;t t
11202 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
11203 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
11204 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
11205 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
11206 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
11207 s,@EXTRA_LIBS@,$EXTRA_LIBS,;t t
11208 s,@TINFO_LIST@,$TINFO_LIST,;t t
11209 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
11210 s,@TEST_DEPS@,$TEST_DEPS,;t t
11211 s,@TEST_ARGS@,$TEST_ARGS,;t t
11212 s,@PROG_ARGS@,$PROG_ARGS,;t t
11213 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
11214 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
11219 cat >>$CONFIG_STATUS <<\EOF
11220 # Split the substitutions into bite-sized pieces for seds with
11221 # small command number limits, like on Digital OSF/1 and HP-UX.
11222 ac_max_sed_lines=48
11223 ac_sed_frag=1 # Number of current file.
11224 ac_beg=1 # First line for current file.
11225 ac_end=$ac_max_sed_lines # Line after last line for current file.
11228 while $ac_more_lines; do
11229 if test $ac_beg -gt 1; then
11230 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11232 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11234 if test ! -s $tmp/subs.frag; then
11235 ac_more_lines=false
11237 # The purpose of the label and of the branching condition is to
11238 # speed up the sed processing (if there are no `@' at all, there
11239 # is no need to browse any of the substitutions).
11240 # These are the two extra sed commands mentioned above.
11242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11243 if test -z "$ac_sed_cmds"; then
11244 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11246 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11248 ac_sed_frag=`expr $ac_sed_frag + 1`
11250 ac_end=`expr $ac_end + $ac_max_sed_lines`
11253 if test -z "$ac_sed_cmds"; then
11256 fi # test -n "$CONFIG_FILES"
11259 cat >>$CONFIG_STATUS <<\EOF
11260 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11261 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11263 - | *:- | *:-:* ) # input from stdin
11265 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11266 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11267 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11268 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11269 * ) ac_file_in=$ac_file.in ;;
11272 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11273 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11274 X"$ac_file" : 'X\(//\)[^/]' \| \
11275 X"$ac_file" : 'X\(//\)$' \| \
11276 X"$ac_file" : 'X\(/\)' \| \
11277 . : '\(.\)' 2>/dev/null ||
11279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11281 /^X\(\/\/\)$/{ s//\1/; q; }
11282 /^X\(\/\).*/{ s//\1/; q; }
11284 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11285 { case "$ac_dir" in
11286 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11290 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11291 case $as_mkdir_dir in
11292 # Skip DOS drivespec
11293 ?:) as_incr_dir=$as_mkdir_dir ;;
11295 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11296 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11301 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
11302 # A "../" for each directory in $ac_dir_suffix.
11303 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
11305 ac_dir_suffix= ac_dots=
11310 if test -z "$ac_dots"; then
11313 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
11315 [\\/]* | ?:[\\/]* )
11316 ac_srcdir=$srcdir$ac_dir_suffix;
11317 ac_top_srcdir=$srcdir ;;
11318 *) # Relative path.
11319 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
11320 ac_top_srcdir=$ac_dots$srcdir ;;
11324 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11325 *) ac_INSTALL=$ac_dots$INSTALL ;;
11328 if test x"$ac_file" != x-; then
11329 { echo "$as_me:11329: creating $ac_file" >&5
11330 echo "$as_me: creating $ac_file" >&6;}
11333 # Let's still pretend it is `configure' which instantiates (i.e., don't
11334 # use $as_me), people would be surprised to read:
11335 # /* config.h. Generated automatically by config.status. */
11336 configure_input="Generated automatically from `echo $ac_file_in |
11337 sed 's,.*/,,'` by configure."
11339 # First look for the input files in the build tree, otherwise in the
11341 ac_file_inputs=`IFS=:
11342 for f in $ac_file_in; do
11344 -) echo $tmp/stdin ;;
11346 # Absolute (can't be DOS-style, as IFS=:)
11347 test -f "$f" || { { echo "$as_me:11347: error: cannot find input file: $f" >&5
11348 echo "$as_me: error: cannot find input file: $f" >&2;}
11349 { (exit 1); exit 1; }; }
11352 if test -f "$f"; then
11355 elif test -f "$srcdir/$f"; then
11360 { { echo "$as_me:11360: error: cannot find input file: $f" >&5
11361 echo "$as_me: error: cannot find input file: $f" >&2;}
11362 { (exit 1); exit 1; }; }
11365 done` || { (exit 1); exit 1; }
11367 cat >>$CONFIG_STATUS <<EOF
11371 cat >>$CONFIG_STATUS <<\EOF
11373 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11374 s,@configure_input@,$configure_input,;t t
11375 s,@srcdir@,$ac_srcdir,;t t
11376 s,@top_srcdir@,$ac_top_srcdir,;t t
11377 s,@INSTALL@,$ac_INSTALL,;t t
11378 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11380 if test x"$ac_file" != x-; then
11381 mv $tmp/out $ac_file
11389 cat >>$CONFIG_STATUS <<\EOF
11392 # CONFIG_HEADER section.
11395 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11396 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11398 # ac_d sets the value in "#define NAME VALUE" lines.
11399 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11400 ac_dB='[ ].*$,\1#\2'
11403 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
11404 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11405 ac_iB='\([ ]\),\1#\2define\3'
11408 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11409 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11410 ac_uB='$,\1#\2define\3'
11414 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11415 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11417 - | *:- | *:-:* ) # input from stdin
11419 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11420 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11421 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11422 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11423 * ) ac_file_in=$ac_file.in ;;
11426 test x"$ac_file" != x- && { echo "$as_me:11426: creating $ac_file" >&5
11427 echo "$as_me: creating $ac_file" >&6;}
11429 # First look for the input files in the build tree, otherwise in the
11431 ac_file_inputs=`IFS=:
11432 for f in $ac_file_in; do
11434 -) echo $tmp/stdin ;;
11436 # Absolute (can't be DOS-style, as IFS=:)
11437 test -f "$f" || { { echo "$as_me:11437: error: cannot find input file: $f" >&5
11438 echo "$as_me: error: cannot find input file: $f" >&2;}
11439 { (exit 1); exit 1; }; }
11442 if test -f "$f"; then
11445 elif test -f "$srcdir/$f"; then
11450 { { echo "$as_me:11450: error: cannot find input file: $f" >&5
11451 echo "$as_me: error: cannot find input file: $f" >&2;}
11452 { (exit 1); exit 1; }; }
11455 done` || { (exit 1); exit 1; }
11456 # Remove the trailing spaces.
11457 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11461 # Transform confdefs.h into a list of #define's. We won't use it as a sed
11462 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
11463 # be either 'cat' or 'sort'.
11464 cat confdefs.h | uniq >conftest.vals
11466 # Break up conftest.vals because some shells have a limit on
11467 # the size of here documents, and old seds have small limits too.
11469 rm -f conftest.tail
11470 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
11471 while grep . conftest.vals >/dev/null
11473 # Write chunks of a limited-size here document to conftest.frag.
11474 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
11475 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
11476 echo 'CEOF' >> $CONFIG_STATUS
11477 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
11478 rm -f conftest.vals
11479 mv conftest.tail conftest.vals
11481 rm -f conftest.vals
11483 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
11485 echo ' cat >> conftest.edit <<CEOF
11486 /@DEFS@/r conftest.frag
11489 sed -f conftest.edit $tmp/in > $tmp/out
11491 mv $tmp/out $tmp/in
11492 rm -f conftest.edit conftest.frag
11493 ' >> $CONFIG_STATUS
11495 cat >>$CONFIG_STATUS <<\EOF
11496 # Let's still pretend it is `configure' which instantiates (i.e., don't
11497 # use $as_me), people would be surprised to read:
11498 # /* config.h. Generated automatically by config.status. */
11499 if test x"$ac_file" = x-; then
11500 echo "/* Generated automatically by configure. */" >$tmp/config.h
11502 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
11504 cat $tmp/in >>$tmp/config.h
11506 if test x"$ac_file" != x-; then
11507 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
11508 { echo "$as_me:11508: $ac_file is unchanged" >&5
11509 echo "$as_me: $ac_file is unchanged" >&6;}
11511 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11512 X"$ac_file" : 'X\(//\)[^/]' \| \
11513 X"$ac_file" : 'X\(//\)$' \| \
11514 X"$ac_file" : 'X\(/\)' \| \
11515 . : '\(.\)' 2>/dev/null ||
11517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11518 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11519 /^X\(\/\/\)$/{ s//\1/; q; }
11520 /^X\(\/\).*/{ s//\1/; q; }
11522 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
11523 { case "$ac_dir" in
11524 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
11528 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
11529 case $as_mkdir_dir in
11530 # Skip DOS drivespec
11531 ?:) as_incr_dir=$as_mkdir_dir ;;
11533 as_incr_dir=$as_incr_dir/$as_mkdir_dir
11534 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
11541 mv $tmp/config.h $ac_file
11545 rm -f $tmp/config.h
11549 cat >>$CONFIG_STATUS <<\EOF
11552 # CONFIG_COMMANDS section.
11554 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11555 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11556 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11561 case $cf_cv_system_name in
11562 OS/2*) LIB_PREFIX='' ;;
11563 os2*) LIB_PREFIX='' ;;
11564 *) LIB_PREFIX='lib' ;;
11566 cf_prefix=$LIB_PREFIX
11568 for cf_dir in $SRC_SUBDIRS
11570 if test -f $srcdir/$cf_dir/modules; then
11575 for cf_item in $CF_LIST_MODELS
11579 libtool) cf_suffix='.la' ;;
11580 normal) cf_suffix='.a' ;;
11581 debug) cf_suffix='_g.a' ;;
11582 profile) cf_suffix='_p.a' ;;
11584 case $cf_cv_system_name in
11585 cygwin*) cf_suffix='.dll' ;;
11586 darwin*) cf_suffix='.dylib' ;;
11587 hpux*) cf_suffix='.sl' ;;
11588 *) cf_suffix='.so' ;;
11591 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
11593 if test $cf_item = shared ; then
11594 if test "$cf_cv_do_symlinks" = yes ; then
11595 case "$cf_cv_shlib_version" in #(vi
11597 case "$cf_cv_system_name" in #(vi
11598 darwin*) cf_suffix='.$(REL_VERSION)'"$cf_suffix" ;; #(vi
11599 *) cf_suffix="$cf_suffix"'.$(REL_VERSION)' ;;
11603 case "$cf_cv_system_name" in #(vi
11604 darwin*) cf_suffix='.$(ABI_VERSION)'"$cf_suffix" ;; #(vi
11605 *) cf_suffix="$cf_suffix"'.$(ABI_VERSION)' ;;
11610 # cygwin needs import library, and has unique naming convention
11611 if test $cf_cv_shlib_version = cygdll ; then
11612 SHARED_LIB="../lib/${cf_prefix}${cf_dir}\$(ABI_VERSION).dll"
11613 IMPORT_LIB="../lib/${cf_prefix}${cf_dir}.dll.a"
11614 LIBS_TO_MAKE="$LIBS_TO_MAKE \$(SHARED_LIB) \$(IMPORT_LIB)"
11618 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
11621 if test $cf_dir = ncurses ; then
11622 cf_subsets="$LIB_SUBSETS"
11623 case "$LIB_SUBSETS" in #(vi
11627 cf_item=`echo $LIBS_TO_MAKE |sed -e s/$LIB_NAME/$TINFO_NAME/g`
11628 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
11632 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib //'`
11635 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
11636 -e "s%@IMPORT_LIB@%$IMPORT_LIB%" \
11637 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
11638 $cf_dir/Makefile >$cf_dir/Makefile.out
11639 mv $cf_dir/Makefile.out $cf_dir/Makefile
11641 $AWK -f $srcdir/mk-0th.awk \
11642 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
11643 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
11645 for cf_subset in $cf_subsets
11648 for cf_item in $CF_LIST_MODELS
11650 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
11652 CF_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11655 libtool) cf_suffix='.la' ;;
11656 normal) cf_suffix='.a' ;;
11657 debug) cf_suffix='_g.a' ;;
11658 profile) cf_suffix='_p.a' ;;
11660 case $cf_cv_system_name in
11661 cygwin*) cf_suffix='.dll' ;;
11662 darwin*) cf_suffix='.dylib' ;;
11663 hpux*) cf_suffix='.sl' ;;
11664 *) cf_suffix='.so' ;;
11667 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
11670 libtool) cf_subdir='obj_lo' ;;
11671 normal) cf_subdir='objects' ;;
11672 debug) cf_subdir='obj_g' ;;
11673 profile) cf_subdir='obj_p' ;;
11675 case $cf_cv_system_name in #(vi
11677 cf_subdir='objects' ;;
11679 cf_subdir='obj_s' ;;
11683 # These dependencies really are for development, not
11684 # builds, but they are useful in porting, too.
11685 cf_depend="../include/ncurses_cfg.h"
11686 if test "$srcdir" = "."; then
11689 cf_reldir="\$(srcdir)"
11692 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
11693 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
11694 elif test -f $srcdir/$cf_dir/curses.priv.h; then
11695 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
11698 $AWK -f $srcdir/mk-1st.awk \
11700 traces=$LIB_TRACING \
11703 prefix=$cf_prefix \
11704 suffix=$cf_suffix \
11705 subset=$cf_subset \
11706 ShlibVer=$cf_cv_shlib_version \
11707 ShlibVerInfix=$cf_cv_shlib_version_infix \
11708 DoLinks=$cf_cv_do_symlinks \
11709 rmSoLocs=$cf_cv_rm_so_locs \
11710 ldconfig="$LDCONFIG" \
11711 overwrite=$WITH_OVERWRITE \
11712 depend="$cf_depend" \
11714 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
11715 for cf_subdir2 in $cf_subdirs lib
11717 test $cf_subdir = $cf_subdir2 && break
11719 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
11720 $AWK -f $srcdir/mk-2nd.awk \
11722 traces=$LIB_TRACING \
11725 subset=$cf_subset \
11728 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
11729 cf_subdirs="$cf_subdirs $cf_subdir"
11734 echo ' cd '$cf_dir' && $(MAKE) $(CF_MFLAGS) $@' >>Makefile
11737 for cf_dir in $SRC_SUBDIRS
11739 if test -f $cf_dir/Makefile ; then
11742 echo 'libs \' >> Makefile
11743 echo 'install.libs \' >> Makefile
11744 echo 'uninstall.libs ::' >> Makefile
11745 echo ' cd '$cf_dir' && $(MAKE) $(CF_MFLAGS) $@' >> Makefile
11750 if test -f $srcdir/$cf_dir/modules; then
11752 if test -f $srcdir/$cf_dir/headers; then
11753 cat >> Makefile <<CF_EOF
11754 install.includes \\
11755 uninstall.includes \\
11758 if test "$cf_dir" != "c++" ; then
11759 echo 'lint \' >> Makefile
11761 cat >> Makefile <<CF_EOF
11767 uninstall.$cf_dir ::
11768 cd $cf_dir && \$(MAKE) \$(CF_MFLAGS) \$@
11770 elif test -f $srcdir/$cf_dir/headers; then
11771 cat >> Makefile <<CF_EOF
11776 install.includes \\
11777 uninstall.includes ::
11778 cd $cf_dir && \$(MAKE) \$(CF_MFLAGS) \$@
11783 cat >> Makefile <<CF_EOF
11787 $MAKE_TERMINFO cd misc && \$(MAKE) \$(CF_MFLAGS) \$@
11791 cd man && \$(MAKE) \$(CF_MFLAGS) \$@
11794 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
11795 rm -f headers.sh headers.sed
11796 rm -rf \$(DIRS_TO_MAKE)
11799 # Special case: tack's manpage lives in its own directory.
11800 if test -d tack ; then
11801 if test -f $srcdir/$tack.h; then
11802 cat >> Makefile <<CF_EOF
11806 cd tack && \$(MAKE) \$(CF_MFLAGS) \$@
11811 rm -f headers.sed headers.sh
11813 echo creating headers.sh
11814 cat >headers.sh <<CF_EOF
11816 # This shell script is generated by the 'configure' script. It is invoked in a
11817 # subdirectory of the build tree. It generates a sed-script in the parent
11818 # directory that is used to adjust includes for header files that reside in a
11819 # subdirectory of /usr/include, etc.
11821 while test \$# != 3
11823 PRG="\$PRG \$1"; shift
11828 TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
11829 TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
11830 echo installing \$SRC in \$DST
11832 if test $WITH_CURSES_H = yes; then
11833 cat >>headers.sh <<CF_EOF
11836 END=\`basename \$DST\`
11837 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
11839 NAME=\`basename \$i\`
11840 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
11844 echo "" >> \$TMPSED
11849 cat >>headers.sh <<CF_EOF
11852 END=\`basename \$DST\`
11853 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
11855 NAME=\`basename \$i\`
11856 if test "\$NAME" = "curses.h"
11858 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
11861 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
11865 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
11870 cat >>headers.sh <<CF_EOF
11872 sed -f \$TMPSED \$SRC > \$TMPSRC
11873 NAME=\`basename \$SRC\`
11875 if test $WITH_CURSES_H != yes; then
11876 cat >>headers.sh <<CF_EOF
11877 test "\$NAME" = "curses.h" && NAME=ncurses.h
11880 cat >>headers.sh <<CF_EOF
11881 # Just in case someone gzip'd manpages, remove the conflicting copy.
11882 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
11884 eval \$PRG \$TMPSRC \$DST/\$NAME
11885 rm -f \$TMPSRC \$TMPSED
11888 chmod 0755 headers.sh
11890 for cf_dir in $SRC_SUBDIRS
11892 if test -f $srcdir/$cf_dir/headers; then
11893 cat >>$cf_dir/Makefile <<CF_EOF
11894 \$(DESTDIR)\$(includedir) :
11895 sh \$(srcdir)/../mkinstalldirs \$@
11899 install.includes :: \$(AUTO_SRC) \$(DESTDIR)\$(includedir) \\
11902 for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
11904 test -n "$j" && echo " $j \\" >>$cf_dir/Makefile
11907 echo " $j" >>$cf_dir/Makefile
11908 for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
11910 echo " @ (cd \$(DESTDIR)\$(includedir) && rm -f `basename $i`) ; ../headers.sh \$(INSTALL_DATA) \$(DESTDIR)\$(includedir) \$(srcdir) $i" >>$cf_dir/Makefile
11911 test $i = curses.h && test $WITH_CURSES_H = yes && echo " @ (cd \$(DESTDIR)\$(includedir) && rm -f ncurses.h && \$(LN_S) curses.h ncurses.h)" >>$cf_dir/Makefile
11914 cat >>$cf_dir/Makefile <<CF_EOF
11918 uninstall.includes ::
11920 for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
11923 echo " -@ (cd \$(DESTDIR)\$(includedir) && rm -f $i)" >>$cf_dir/Makefile
11924 test $i = curses.h && echo " -@ (cd \$(DESTDIR)\$(includedir) && rm -f ncurses.h)" >>$cf_dir/Makefile
11928 if test -f $srcdir/$cf_dir/modules; then
11929 if test "$cf_dir" != "c++" ; then
11930 cat >>$cf_dir/Makefile <<"CF_EOF"
11931 depend : $(AUTO_SRC)
11932 makedepend -- $(CPPFLAGS) -- $(C_SRC)
11934 # DO NOT DELETE THIS LINE -- make depend depends on it.
11945 cat >>$CONFIG_STATUS <<\EOF
11947 { (exit 0); exit 0; }
11949 chmod +x $CONFIG_STATUS
11950 ac_clean_files=$ac_clean_files_save
11952 # configure is writing to config.log, and then calls config.status.
11953 # config.status does its own redirection, appending to config.log.
11954 # Unfortunately, on DOS this fails, as config.log is still kept open
11955 # by configure, so config.status won't be able to write to it; its
11956 # output is simply discarded. So we exec the FD to /dev/null,
11957 # effectively closing config.log, so it can be properly (re)opened and
11958 # appended to by config.status. When coming back to configure, we
11959 # need to make the FD available again.
11960 if test "$no_create" != yes; then
11963 $SHELL $CONFIG_STATUS || ac_cs_success=false
11965 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11966 # would make configure fail if this is the last instruction.
11967 $ac_cs_success || { (exit 1); exit 1; }
11969 ${MAKE-make} preinstall