2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20101001.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="ncurses.c"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
112 # include <sys/types.h>
115 # include <sys/stat.h>
126 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <strings.h>
135 # include <inttypes.h>
145 # Initialize some variables set by options.
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
157 program_transform_name=s,x,x,
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
183 # Identity of this package.
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
224 cache_file=config.cache ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 datadir=$ac_optarg ;;
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
267 -help | --help | --hel | --he | -h)
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
318 # Obsolete; use --without-fp.
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 sbindir=$ac_optarg ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 sharedstatedir=$ac_optarg ;;
395 -site | --site | --sit)
397 -site=* | --site=* | --sit=*)
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
420 -version | --version | --versio | --versi | --vers | -V)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
489 if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
498 eval ac_val=$`echo $ac_var`
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val=$`echo $ac_var`
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 test "$silent" = yes && exec 6>/dev/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CPP_set=${CPP+set}
593 ac_env_CPP_value=$CPP
594 ac_cv_env_CPP_set=${CPP+set}
595 ac_cv_env_CPP_value=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
604 \`configure' configures this package to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
658 --program-prefix=PREFIX prepend PREFIX to installed program names
659 --program-suffix=SUFFIX append SUFFIX to installed program names
660 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
663 --x-includes=DIR X include files are in DIR
664 --x-libraries=DIR X library files are in DIR
667 --build=BUILD configure for building on BUILD [guessed]
668 --host=HOST build programs to run on HOST [BUILD]
672 if test -n "$ac_init_help"; then
677 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
678 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
681 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
682 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
684 --disable-echo display "compiling" commands
685 --enable-warnings test: turn on gcc compiler warnings
686 --with-dmalloc test: use Gray Watson's dmalloc library
687 --with-dbmalloc test: use Conor Cahill's dbmalloc library
688 --with-valgrind test: use valgrind
689 --disable-leaks test: free permanent memory, analyze leaks
690 --with-curses-dir=DIR directory in which (n)curses is installed
691 --with-5lib use SunOS sysv-libraries
692 --with-ncursesw use wide ncurses-libraries (installed)
693 --with-ncurses use ncurses-libraries (installed)
694 --with-pdcurses compile/link with pdcurses X11 library
695 --with-Xaw3d link with Xaw 3d library
696 --with-neXtaw link with neXT Athena library
697 --with-XawPlus link with Athena-Plus library
698 --with-pkg-config{=path} enable/disable use of pkg-config
699 --with-x use the X Window System
700 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
702 Some influential environment variables:
703 CC C compiler command
704 CFLAGS C compiler flags
705 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
706 nonstandard directory <lib dir>
707 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
708 headers in a nonstandard directory <include dir>
711 Use these variables to override the choices made by `configure' or to help
712 it to find libraries and programs with nonstandard names/locations.
717 if test "$ac_init_help" = "recursive"; then
718 # If there are subdirs, report their specific --help.
720 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
722 # A "../" for each directory in /$ac_subdir.
723 ac_dots=`echo $ac_subdir |
724 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
727 .) # No --srcdir option. We are building in place.
728 ac_sub_srcdir=$srcdir ;;
729 [\\/]* | ?:[\\/]* ) # Absolute path.
730 ac_sub_srcdir=$srcdir/$ac_subdir ;;
732 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
735 # Check for guested configure; otherwise get Cygnus style configure.
736 if test -f $ac_sub_srcdir/configure.gnu; then
738 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
739 elif test -f $ac_sub_srcdir/configure; then
741 $SHELL $ac_sub_srcdir/configure --help=recursive
742 elif test -f $ac_sub_srcdir/configure.ac ||
743 test -f $ac_sub_srcdir/configure.in; then
747 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
753 test -n "$ac_init_help" && exit 0
754 if $ac_init_version; then
757 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
758 Free Software Foundation, Inc.
759 This configure script is free software; the Free Software Foundation
760 gives unlimited permission to copy, distribute and modify it.
766 This file contains any messages produced by compilers while
767 running configure, to aid debugging if configure makes a mistake.
769 It was created by $as_me, which was
770 generated by GNU Autoconf 2.52.20101001. Invocation command line was
781 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
782 uname -m = `(uname -m) 2>/dev/null || echo unknown`
783 uname -r = `(uname -r) 2>/dev/null || echo unknown`
784 uname -s = `(uname -s) 2>/dev/null || echo unknown`
785 uname -v = `(uname -v) 2>/dev/null || echo unknown`
787 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
788 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
790 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
791 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
792 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
793 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
794 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
795 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
796 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
810 # Keep a trace of the command line.
811 # Strip out --no-create and --no-recursion so they do not pile up.
812 # Also quote any args containing shell meta-characters.
818 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
819 | --no-cr | --no-c) ;;
820 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
821 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
822 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
823 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
824 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
826 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
829 # Get rid of the leading space.
832 # When interrupted or exit'd, cleanup temporary files, and complete
833 # config.log. We remove comments because anyway the quotes in there
834 # would cause problems or look ugly.
836 # Save into config.log some information that might help in debugging.
838 echo "## ----------------- ##" >&5
839 echo "## Cache variables. ##" >&5
840 echo "## ----------------- ##" >&5
842 # The following way of writing the cache mishandles newlines in values,
845 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
848 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
853 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
857 sed "/^$/d" confdefs.h >conftest.log
858 if test -s conftest.log; then
860 echo "## ------------ ##" >&5
861 echo "## confdefs.h. ##" >&5
862 echo "## ------------ ##" >&5
867 test "$ac_signal" != 0 &&
868 echo "$as_me: caught signal $ac_signal" >&5
869 echo "$as_me: exit $exit_status" >&5
870 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
873 for ac_signal in 1 2 13 15; do
874 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
879 rm -rf conftest* confdefs.h
880 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
883 # Let the site file select an alternate cache file if it wants to.
884 # Prefer explicitly selected file to automatically selected ones.
885 if test -z "$CONFIG_SITE"; then
886 if test "x$prefix" != xNONE; then
887 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
889 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
892 for ac_site_file in $CONFIG_SITE; do
893 if test -r "$ac_site_file"; then
894 { echo "$as_me:894: loading site script $ac_site_file" >&5
895 echo "$as_me: loading site script $ac_site_file" >&6;}
896 cat "$ac_site_file" >&5
901 if test -r "$cache_file"; then
902 # Some versions of bash will fail to source /dev/null (special
903 # files actually), so we avoid doing that.
904 if test -f "$cache_file"; then
905 { echo "$as_me:905: loading cache $cache_file" >&5
906 echo "$as_me: loading cache $cache_file" >&6;}
908 [\\/]* | ?:[\\/]* ) . $cache_file;;
913 { echo "$as_me:913: creating cache $cache_file" >&5
914 echo "$as_me: creating cache $cache_file" >&6;}
918 # Check that the precious variables saved in the cache have kept the same
920 ac_cache_corrupted=false
921 for ac_var in `(set) 2>&1 |
922 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
924 eval ac_new_set=\$ac_env_${ac_var}_set
925 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
926 eval ac_new_val="\$ac_env_${ac_var}_value"
927 case $ac_old_set,$ac_new_set in
929 { echo "$as_me:929: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
930 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
931 ac_cache_corrupted=: ;;
933 { echo "$as_me:933: error: \`$ac_var' was not set in the previous run" >&5
934 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
935 ac_cache_corrupted=: ;;
938 if test "x$ac_old_val" != "x$ac_new_val"; then
939 { echo "$as_me:939: error: \`$ac_var' has changed since the previous run:" >&5
940 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
941 { echo "$as_me:941: former value: $ac_old_val" >&5
942 echo "$as_me: former value: $ac_old_val" >&2;}
943 { echo "$as_me:943: current value: $ac_new_val" >&5
944 echo "$as_me: current value: $ac_new_val" >&2;}
948 # Pass precious variables to config.status. It doesn't matter if
949 # we pass some twice (in addition to the command line arguments).
950 if test "$ac_new_set" = set; then
952 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
953 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
954 ac_configure_args="$ac_configure_args '$ac_arg'"
956 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
961 if $ac_cache_corrupted; then
962 { echo "$as_me:962: error: changes in the environment can compromise the build" >&5
963 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
964 { { echo "$as_me:964: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
965 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
966 { (exit 1); exit 1; }; }
970 ac_cpp='$CPP $CPPFLAGS'
971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
974 ac_main_return=return
976 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
977 *c*,-n*) ECHO_N= ECHO_C='
979 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
980 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
982 echo "#! $SHELL" >conftest.sh
983 echo "exit 0" >>conftest.sh
985 if { (echo "$as_me:985: PATH=\".;.\"; conftest.sh") >&5
986 (PATH=".;."; conftest.sh) 2>&5
988 echo "$as_me:988: \$? = $ac_status" >&5
989 (exit $ac_status); }; then
990 ac_path_separator=';'
994 PATH_SEPARATOR="$ac_path_separator"
997 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
999 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
1001 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
1004 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1005 if test -f $ac_dir/install-sh; then
1007 ac_install_sh="$ac_aux_dir/install-sh -c"
1009 elif test -f $ac_dir/install.sh; then
1011 ac_install_sh="$ac_aux_dir/install.sh -c"
1013 elif test -f $ac_dir/shtool; then
1015 ac_install_sh="$ac_aux_dir/shtool install -c"
1019 if test -z "$ac_aux_dir"; then
1020 { { echo "$as_me:1020: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1021 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1022 { (exit 1); exit 1; }; }
1024 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1025 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1026 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1028 # Make sure we can run config.sub.
1029 $ac_config_sub sun4 >/dev/null 2>&1 ||
1030 { { echo "$as_me:1030: error: cannot run $ac_config_sub" >&5
1031 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1032 { (exit 1); exit 1; }; }
1034 echo "$as_me:1034: checking build system type" >&5
1035 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1036 if test "${ac_cv_build+set}" = set; then
1037 echo $ECHO_N "(cached) $ECHO_C" >&6
1039 ac_cv_build_alias=$build_alias
1040 test -z "$ac_cv_build_alias" &&
1041 ac_cv_build_alias=`$ac_config_guess`
1042 test -z "$ac_cv_build_alias" &&
1043 { { echo "$as_me:1043: error: cannot guess build type; you must specify one" >&5
1044 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1045 { (exit 1); exit 1; }; }
1046 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1047 { { echo "$as_me:1047: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1048 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1049 { (exit 1); exit 1; }; }
1052 echo "$as_me:1052: result: $ac_cv_build" >&5
1053 echo "${ECHO_T}$ac_cv_build" >&6
1055 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1056 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1057 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1059 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1060 echo "$as_me:1060: checking host system type" >&5
1061 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1062 if test "${ac_cv_host+set}" = set; then
1063 echo $ECHO_N "(cached) $ECHO_C" >&6
1065 ac_cv_host_alias=$host_alias
1066 test -z "$ac_cv_host_alias" &&
1067 ac_cv_host_alias=$ac_cv_build_alias
1068 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1069 { { echo "$as_me:1069: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1070 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1071 { (exit 1); exit 1; }; }
1074 echo "$as_me:1074: result: $ac_cv_host" >&5
1075 echo "${ECHO_T}$ac_cv_host" >&6
1077 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1078 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1079 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1081 system_name="$host_os"
1083 system_name="`(uname -s -r) 2>/dev/null`"
1084 if test -z "$system_name" ; then
1085 system_name="`(hostname) 2>/dev/null`"
1088 test -n "$system_name" && cat >>confdefs.h <<EOF
1089 #define SYSTEM_NAME "$system_name"
1092 if test "${cf_cv_system_name+set}" = set; then
1093 echo $ECHO_N "(cached) $ECHO_C" >&6
1095 cf_cv_system_name="$system_name"
1098 test -z "$system_name" && system_name="$cf_cv_system_name"
1099 test -n "$cf_cv_system_name" && echo "$as_me:1099: result: Configuring for $cf_cv_system_name" >&5
1100 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1102 if test ".$system_name" != ".$cf_cv_system_name" ; then
1103 echo "$as_me:1103: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1104 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1105 { { echo "$as_me:1105: error: \"Please remove config.cache and try again.\"" >&5
1106 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1107 { (exit 1); exit 1; }; }
1110 test "$program_prefix" != NONE &&
1111 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1112 # Use a double $ so make ignores it.
1113 test "$program_suffix" != NONE &&
1114 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1115 # Double any \ or $. echo might interpret backslashes.
1116 # By default was `s,x,x', remove it if useless.
1117 cat <<\_ACEOF >conftest.sed
1118 s/[\\$]/&&/g;s/;s,x,x,$//
1120 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1123 echo "$as_me:1123: checking whether ${MAKE-make} sets \${MAKE}" >&5
1124 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1125 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1126 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1127 echo $ECHO_N "(cached) $ECHO_C" >&6
1129 cat >conftest.make <<\EOF
1131 @echo 'ac_maketemp="${MAKE}"'
1133 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1134 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1135 if test -n "$ac_maketemp"; then
1136 eval ac_cv_prog_make_${ac_make}_set=yes
1138 eval ac_cv_prog_make_${ac_make}_set=no
1142 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1143 echo "$as_me:1143: result: yes" >&5
1144 echo "${ECHO_T}yes" >&6
1147 echo "$as_me:1147: result: no" >&5
1148 echo "${ECHO_T}no" >&6
1149 SET_MAKE="MAKE=${MAKE-make}"
1153 ac_cpp='$CPP $CPPFLAGS'
1154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1157 ac_main_return=return
1158 if test -n "$ac_tool_prefix"; then
1159 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1160 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1161 echo "$as_me:1161: checking for $ac_word" >&5
1162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1163 if test "${ac_cv_prog_CC+set}" = set; then
1164 echo $ECHO_N "(cached) $ECHO_C" >&6
1166 if test -n "$CC"; then
1167 ac_cv_prog_CC="$CC" # Let the user override the test.
1169 ac_save_IFS=$IFS; IFS=$ac_path_separator
1171 for ac_dir in $ac_dummy; do
1173 test -z "$ac_dir" && ac_dir=.
1174 $as_executable_p "$ac_dir/$ac_word" || continue
1175 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1176 echo "$as_me:1176: found $ac_dir/$ac_word" >&5
1183 if test -n "$CC"; then
1184 echo "$as_me:1184: result: $CC" >&5
1185 echo "${ECHO_T}$CC" >&6
1187 echo "$as_me:1187: result: no" >&5
1188 echo "${ECHO_T}no" >&6
1192 if test -z "$ac_cv_prog_CC"; then
1194 # Extract the first word of "gcc", so it can be a program name with args.
1195 set dummy gcc; ac_word=$2
1196 echo "$as_me:1196: checking for $ac_word" >&5
1197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1199 echo $ECHO_N "(cached) $ECHO_C" >&6
1201 if test -n "$ac_ct_CC"; then
1202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1204 ac_save_IFS=$IFS; IFS=$ac_path_separator
1206 for ac_dir in $ac_dummy; do
1208 test -z "$ac_dir" && ac_dir=.
1209 $as_executable_p "$ac_dir/$ac_word" || continue
1210 ac_cv_prog_ac_ct_CC="gcc"
1211 echo "$as_me:1211: found $ac_dir/$ac_word" >&5
1217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1218 if test -n "$ac_ct_CC"; then
1219 echo "$as_me:1219: result: $ac_ct_CC" >&5
1220 echo "${ECHO_T}$ac_ct_CC" >&6
1222 echo "$as_me:1222: result: no" >&5
1223 echo "${ECHO_T}no" >&6
1231 if test -z "$CC"; then
1232 if test -n "$ac_tool_prefix"; then
1233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1234 set dummy ${ac_tool_prefix}cc; ac_word=$2
1235 echo "$as_me:1235: checking for $ac_word" >&5
1236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1237 if test "${ac_cv_prog_CC+set}" = set; then
1238 echo $ECHO_N "(cached) $ECHO_C" >&6
1240 if test -n "$CC"; then
1241 ac_cv_prog_CC="$CC" # Let the user override the test.
1243 ac_save_IFS=$IFS; IFS=$ac_path_separator
1245 for ac_dir in $ac_dummy; do
1247 test -z "$ac_dir" && ac_dir=.
1248 $as_executable_p "$ac_dir/$ac_word" || continue
1249 ac_cv_prog_CC="${ac_tool_prefix}cc"
1250 echo "$as_me:1250: found $ac_dir/$ac_word" >&5
1257 if test -n "$CC"; then
1258 echo "$as_me:1258: result: $CC" >&5
1259 echo "${ECHO_T}$CC" >&6
1261 echo "$as_me:1261: result: no" >&5
1262 echo "${ECHO_T}no" >&6
1266 if test -z "$ac_cv_prog_CC"; then
1268 # Extract the first word of "cc", so it can be a program name with args.
1269 set dummy cc; ac_word=$2
1270 echo "$as_me:1270: checking for $ac_word" >&5
1271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1273 echo $ECHO_N "(cached) $ECHO_C" >&6
1275 if test -n "$ac_ct_CC"; then
1276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1278 ac_save_IFS=$IFS; IFS=$ac_path_separator
1280 for ac_dir in $ac_dummy; do
1282 test -z "$ac_dir" && ac_dir=.
1283 $as_executable_p "$ac_dir/$ac_word" || continue
1284 ac_cv_prog_ac_ct_CC="cc"
1285 echo "$as_me:1285: found $ac_dir/$ac_word" >&5
1291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1292 if test -n "$ac_ct_CC"; then
1293 echo "$as_me:1293: result: $ac_ct_CC" >&5
1294 echo "${ECHO_T}$ac_ct_CC" >&6
1296 echo "$as_me:1296: result: no" >&5
1297 echo "${ECHO_T}no" >&6
1306 if test -z "$CC"; then
1307 # Extract the first word of "cc", so it can be a program name with args.
1308 set dummy cc; 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_CC+set}" = set; then
1312 echo $ECHO_N "(cached) $ECHO_C" >&6
1314 if test -n "$CC"; then
1315 ac_cv_prog_CC="$CC" # Let the user override the test.
1318 ac_save_IFS=$IFS; IFS=$ac_path_separator
1320 for ac_dir in $ac_dummy; do
1322 test -z "$ac_dir" && ac_dir=.
1323 $as_executable_p "$ac_dir/$ac_word" || continue
1324 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1325 ac_prog_rejected=yes
1329 echo "$as_me:1329: found $ac_dir/$ac_word" >&5
1333 if test $ac_prog_rejected = yes; then
1334 # We found a bogon in the path, so make sure we never use it.
1335 set dummy $ac_cv_prog_CC
1337 if test $# != 0; then
1338 # We chose a different compiler from the bogus one.
1339 # However, it has the same basename, so the bogon will be chosen
1340 # first if we set CC to just the basename; use the full file name.
1342 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1350 if test -n "$CC"; then
1351 echo "$as_me:1351: result: $CC" >&5
1352 echo "${ECHO_T}$CC" >&6
1354 echo "$as_me:1354: result: no" >&5
1355 echo "${ECHO_T}no" >&6
1359 if test -z "$CC"; then
1360 if test -n "$ac_tool_prefix"; then
1363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1365 echo "$as_me:1365: checking for $ac_word" >&5
1366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1367 if test "${ac_cv_prog_CC+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 if test -n "$CC"; then
1371 ac_cv_prog_CC="$CC" # Let the user override the test.
1373 ac_save_IFS=$IFS; IFS=$ac_path_separator
1375 for ac_dir in $ac_dummy; do
1377 test -z "$ac_dir" && ac_dir=.
1378 $as_executable_p "$ac_dir/$ac_word" || continue
1379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1380 echo "$as_me:1380: found $ac_dir/$ac_word" >&5
1387 if test -n "$CC"; then
1388 echo "$as_me:1388: result: $CC" >&5
1389 echo "${ECHO_T}$CC" >&6
1391 echo "$as_me:1391: result: no" >&5
1392 echo "${ECHO_T}no" >&6
1395 test -n "$CC" && break
1398 if test -z "$CC"; then
1402 # Extract the first word of "$ac_prog", so it can be a program name with args.
1403 set dummy $ac_prog; ac_word=$2
1404 echo "$as_me:1404: checking for $ac_word" >&5
1405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 if test -n "$ac_ct_CC"; then
1410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1412 ac_save_IFS=$IFS; IFS=$ac_path_separator
1414 for ac_dir in $ac_dummy; do
1416 test -z "$ac_dir" && ac_dir=.
1417 $as_executable_p "$ac_dir/$ac_word" || continue
1418 ac_cv_prog_ac_ct_CC="$ac_prog"
1419 echo "$as_me:1419: found $ac_dir/$ac_word" >&5
1425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1426 if test -n "$ac_ct_CC"; then
1427 echo "$as_me:1427: result: $ac_ct_CC" >&5
1428 echo "${ECHO_T}$ac_ct_CC" >&6
1430 echo "$as_me:1430: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1434 test -n "$ac_ct_CC" && break
1442 test -z "$CC" && { { echo "$as_me:1442: error: no acceptable cc found in \$PATH" >&5
1443 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1444 { (exit 1); exit 1; }; }
1446 # Provide some information about the compiler.
1447 echo "$as_me:1447:" \
1448 "checking for C compiler version" >&5
1449 ac_compiler=`set X $ac_compile; echo $2`
1450 { (eval echo "$as_me:1450: \"$ac_compiler --version </dev/null >&5\"") >&5
1451 (eval $ac_compiler --version </dev/null >&5) 2>&5
1453 echo "$as_me:1453: \$? = $ac_status" >&5
1454 (exit $ac_status); }
1455 { (eval echo "$as_me:1455: \"$ac_compiler -v </dev/null >&5\"") >&5
1456 (eval $ac_compiler -v </dev/null >&5) 2>&5
1458 echo "$as_me:1458: \$? = $ac_status" >&5
1459 (exit $ac_status); }
1460 { (eval echo "$as_me:1460: \"$ac_compiler -V </dev/null >&5\"") >&5
1461 (eval $ac_compiler -V </dev/null >&5) 2>&5
1463 echo "$as_me:1463: \$? = $ac_status" >&5
1464 (exit $ac_status); }
1466 cat >conftest.$ac_ext <<_ACEOF
1467 #line 1467 "configure"
1468 #include "confdefs.h"
1478 ac_clean_files_save=$ac_clean_files
1479 ac_clean_files="$ac_clean_files a.out a.exe"
1480 # Try to create an executable without -o first, disregard a.out.
1481 # It will help us diagnose broken compilers, and finding out an intuition
1483 echo "$as_me:1483: checking for C compiler default output" >&5
1484 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1485 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1486 if { (eval echo "$as_me:1486: \"$ac_link_default\"") >&5
1487 (eval $ac_link_default) 2>&5
1489 echo "$as_me:1489: \$? = $ac_status" >&5
1490 (exit $ac_status); }; then
1491 # Find the output, starting from the most likely. This scheme is
1492 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1494 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1495 ls a.out conftest 2>/dev/null;
1496 ls a.* conftest.* 2>/dev/null`; do
1498 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1499 a.out ) # We found the default executable, but exeext='' is most
1502 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1503 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1510 echo "$as_me: failed program was:" >&5
1511 cat conftest.$ac_ext >&5
1512 { { echo "$as_me:1512: error: C compiler cannot create executables" >&5
1513 echo "$as_me: error: C compiler cannot create executables" >&2;}
1514 { (exit 77); exit 77; }; }
1517 ac_exeext=$ac_cv_exeext
1518 echo "$as_me:1518: result: $ac_file" >&5
1519 echo "${ECHO_T}$ac_file" >&6
1521 # Check the compiler produces executables we can run. If not, either
1522 # the compiler is broken, or we cross compile.
1523 echo "$as_me:1523: checking whether the C compiler works" >&5
1524 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1525 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1526 # If not cross compiling, check that we can run a simple program.
1527 if test "$cross_compiling" != yes; then
1528 if { ac_try='./$ac_file'
1529 { (eval echo "$as_me:1529: \"$ac_try\"") >&5
1532 echo "$as_me:1532: \$? = $ac_status" >&5
1533 (exit $ac_status); }; }; then
1536 if test "$cross_compiling" = maybe; then
1539 { { echo "$as_me:1539: error: cannot run C compiled programs.
1540 If you meant to cross compile, use \`--host'." >&5
1541 echo "$as_me: error: cannot run C compiled programs.
1542 If you meant to cross compile, use \`--host'." >&2;}
1543 { (exit 1); exit 1; }; }
1547 echo "$as_me:1547: result: yes" >&5
1548 echo "${ECHO_T}yes" >&6
1550 rm -f a.out a.exe conftest$ac_cv_exeext
1551 ac_clean_files=$ac_clean_files_save
1552 # Check the compiler produces executables we can run. If not, either
1553 # the compiler is broken, or we cross compile.
1554 echo "$as_me:1554: checking whether we are cross compiling" >&5
1555 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1556 echo "$as_me:1556: result: $cross_compiling" >&5
1557 echo "${ECHO_T}$cross_compiling" >&6
1559 echo "$as_me:1559: checking for executable suffix" >&5
1560 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1561 if { (eval echo "$as_me:1561: \"$ac_link\"") >&5
1562 (eval $ac_link) 2>&5
1564 echo "$as_me:1564: \$? = $ac_status" >&5
1565 (exit $ac_status); }; then
1566 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1567 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1568 # work properly (i.e., refer to `conftest.exe'), while it won't with
1570 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1572 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1573 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1580 { { echo "$as_me:1580: error: cannot compute EXEEXT: cannot compile and link" >&5
1581 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1582 { (exit 1); exit 1; }; }
1585 rm -f conftest$ac_cv_exeext
1586 echo "$as_me:1586: result: $ac_cv_exeext" >&5
1587 echo "${ECHO_T}$ac_cv_exeext" >&6
1589 rm -f conftest.$ac_ext
1590 EXEEXT=$ac_cv_exeext
1592 echo "$as_me:1592: checking for object suffix" >&5
1593 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1594 if test "${ac_cv_objext+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 cat >conftest.$ac_ext <<_ACEOF
1598 #line 1598 "configure"
1599 #include "confdefs.h"
1609 rm -f conftest.o conftest.obj
1610 if { (eval echo "$as_me:1610: \"$ac_compile\"") >&5
1611 (eval $ac_compile) 2>&5
1613 echo "$as_me:1613: \$? = $ac_status" >&5
1614 (exit $ac_status); }; then
1615 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1617 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1618 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1623 echo "$as_me: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1625 { { echo "$as_me:1625: error: cannot compute OBJEXT: cannot compile" >&5
1626 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1627 { (exit 1); exit 1; }; }
1630 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1632 echo "$as_me:1632: result: $ac_cv_objext" >&5
1633 echo "${ECHO_T}$ac_cv_objext" >&6
1634 OBJEXT=$ac_cv_objext
1636 echo "$as_me:1636: checking whether we are using the GNU C compiler" >&5
1637 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1638 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1641 cat >conftest.$ac_ext <<_ACEOF
1642 #line 1642 "configure"
1643 #include "confdefs.h"
1656 rm -f conftest.$ac_objext
1657 if { (eval echo "$as_me:1657: \"$ac_compile\"") >&5
1658 (eval $ac_compile) 2>&5
1660 echo "$as_me:1660: \$? = $ac_status" >&5
1661 (exit $ac_status); } &&
1662 { ac_try='test -s conftest.$ac_objext'
1663 { (eval echo "$as_me:1663: \"$ac_try\"") >&5
1666 echo "$as_me:1666: \$? = $ac_status" >&5
1667 (exit $ac_status); }; }; then
1670 echo "$as_me: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1674 rm -f conftest.$ac_objext conftest.$ac_ext
1675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1678 echo "$as_me:1678: result: $ac_cv_c_compiler_gnu" >&5
1679 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1680 GCC=`test $ac_compiler_gnu = yes && echo yes`
1681 ac_test_CFLAGS=${CFLAGS+set}
1682 ac_save_CFLAGS=$CFLAGS
1684 echo "$as_me:1684: checking whether $CC accepts -g" >&5
1685 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1686 if test "${ac_cv_prog_cc_g+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 cat >conftest.$ac_ext <<_ACEOF
1690 #line 1690 "configure"
1691 #include "confdefs.h"
1701 rm -f conftest.$ac_objext
1702 if { (eval echo "$as_me:1702: \"$ac_compile\"") >&5
1703 (eval $ac_compile) 2>&5
1705 echo "$as_me:1705: \$? = $ac_status" >&5
1706 (exit $ac_status); } &&
1707 { ac_try='test -s conftest.$ac_objext'
1708 { (eval echo "$as_me:1708: \"$ac_try\"") >&5
1711 echo "$as_me:1711: \$? = $ac_status" >&5
1712 (exit $ac_status); }; }; then
1715 echo "$as_me: failed program was:" >&5
1716 cat conftest.$ac_ext >&5
1719 rm -f conftest.$ac_objext conftest.$ac_ext
1721 echo "$as_me:1721: result: $ac_cv_prog_cc_g" >&5
1722 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1723 if test "$ac_test_CFLAGS" = set; then
1724 CFLAGS=$ac_save_CFLAGS
1725 elif test $ac_cv_prog_cc_g = yes; then
1726 if test "$GCC" = yes; then
1732 if test "$GCC" = yes; then
1738 # Some people use a C++ compiler to compile C. Since we use `exit',
1739 # in C++ we need to declare it. In case someone uses the same compiler
1740 # for both compiling C and C++ we need to have the C++ compiler decide
1741 # the declaration of exit, since it's the most demanding environment.
1742 cat >conftest.$ac_ext <<_ACEOF
1747 rm -f conftest.$ac_objext
1748 if { (eval echo "$as_me:1748: \"$ac_compile\"") >&5
1749 (eval $ac_compile) 2>&5
1751 echo "$as_me:1751: \$? = $ac_status" >&5
1752 (exit $ac_status); } &&
1753 { ac_try='test -s conftest.$ac_objext'
1754 { (eval echo "$as_me:1754: \"$ac_try\"") >&5
1757 echo "$as_me:1757: \$? = $ac_status" >&5
1758 (exit $ac_status); }; }; then
1759 for ac_declaration in \
1761 '#include <stdlib.h>' \
1762 'extern "C" void std::exit (int) throw (); using std::exit;' \
1763 'extern "C" void std::exit (int); using std::exit;' \
1764 'extern "C" void exit (int) throw ();' \
1765 'extern "C" void exit (int);' \
1768 cat >conftest.$ac_ext <<_ACEOF
1769 #line 1769 "configure"
1770 #include "confdefs.h"
1781 rm -f conftest.$ac_objext
1782 if { (eval echo "$as_me:1782: \"$ac_compile\"") >&5
1783 (eval $ac_compile) 2>&5
1785 echo "$as_me:1785: \$? = $ac_status" >&5
1786 (exit $ac_status); } &&
1787 { ac_try='test -s conftest.$ac_objext'
1788 { (eval echo "$as_me:1788: \"$ac_try\"") >&5
1791 echo "$as_me:1791: \$? = $ac_status" >&5
1792 (exit $ac_status); }; }; then
1795 echo "$as_me: failed program was:" >&5
1796 cat conftest.$ac_ext >&5
1799 rm -f conftest.$ac_objext conftest.$ac_ext
1800 cat >conftest.$ac_ext <<_ACEOF
1801 #line 1801 "configure"
1802 #include "confdefs.h"
1812 rm -f conftest.$ac_objext
1813 if { (eval echo "$as_me:1813: \"$ac_compile\"") >&5
1814 (eval $ac_compile) 2>&5
1816 echo "$as_me:1816: \$? = $ac_status" >&5
1817 (exit $ac_status); } &&
1818 { ac_try='test -s conftest.$ac_objext'
1819 { (eval echo "$as_me:1819: \"$ac_try\"") >&5
1822 echo "$as_me:1822: \$? = $ac_status" >&5
1823 (exit $ac_status); }; }; then
1826 echo "$as_me: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1829 rm -f conftest.$ac_objext conftest.$ac_ext
1832 if test -n "$ac_declaration"; then
1833 echo '#ifdef __cplusplus' >>confdefs.h
1834 echo $ac_declaration >>confdefs.h
1835 echo '#endif' >>confdefs.h
1839 echo "$as_me: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1842 rm -f conftest.$ac_objext conftest.$ac_ext
1844 ac_cpp='$CPP $CPPFLAGS'
1845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1848 ac_main_return=return
1851 ac_cpp='$CPP $CPPFLAGS'
1852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1855 ac_main_return=return
1856 echo "$as_me:1856: checking how to run the C preprocessor" >&5
1857 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1858 # On Suns, sometimes $CPP names a directory.
1859 if test -n "$CPP" && test -d "$CPP"; then
1862 if test -z "$CPP"; then
1863 if test "${ac_cv_prog_CPP+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1866 # Double quotes because CPP needs to be expanded
1867 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1870 for ac_c_preproc_warn_flag in '' yes
1872 # Use a header file that comes with gcc, so configuring glibc
1873 # with a fresh cross-compiler works.
1874 # On the NeXT, cc -E runs the code through the compiler's parser,
1875 # not just through cpp. "Syntax error" is here to catch this case.
1876 cat >conftest.$ac_ext <<_ACEOF
1877 #line 1877 "configure"
1878 #include "confdefs.h"
1882 if { (eval echo "$as_me:1882: \"$ac_cpp conftest.$ac_ext\"") >&5
1883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1885 egrep -v '^ *\+' conftest.er1 >conftest.err
1887 cat conftest.err >&5
1888 echo "$as_me:1888: \$? = $ac_status" >&5
1889 (exit $ac_status); } >/dev/null; then
1890 if test -s conftest.err; then
1891 ac_cpp_err=$ac_c_preproc_warn_flag
1898 if test -z "$ac_cpp_err"; then
1901 echo "$as_me: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1903 # Broken: fails on valid input.
1906 rm -f conftest.err conftest.$ac_ext
1908 # OK, works on sane cases. Now check whether non-existent headers
1909 # can be detected and how.
1910 cat >conftest.$ac_ext <<_ACEOF
1911 #line 1911 "configure"
1912 #include "confdefs.h"
1913 #include <ac_nonexistent.h>
1915 if { (eval echo "$as_me:1915: \"$ac_cpp conftest.$ac_ext\"") >&5
1916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1918 egrep -v '^ *\+' conftest.er1 >conftest.err
1920 cat conftest.err >&5
1921 echo "$as_me:1921: \$? = $ac_status" >&5
1922 (exit $ac_status); } >/dev/null; then
1923 if test -s conftest.err; then
1924 ac_cpp_err=$ac_c_preproc_warn_flag
1931 if test -z "$ac_cpp_err"; then
1932 # Broken: success on invalid input.
1935 echo "$as_me: failed program was:" >&5
1936 cat conftest.$ac_ext >&5
1937 # Passes both tests.
1941 rm -f conftest.err conftest.$ac_ext
1944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1945 rm -f conftest.err conftest.$ac_ext
1946 if $ac_preproc_ok; then
1958 echo "$as_me:1958: result: $CPP" >&5
1959 echo "${ECHO_T}$CPP" >&6
1961 for ac_c_preproc_warn_flag in '' yes
1963 # Use a header file that comes with gcc, so configuring glibc
1964 # with a fresh cross-compiler works.
1965 # On the NeXT, cc -E runs the code through the compiler's parser,
1966 # not just through cpp. "Syntax error" is here to catch this case.
1967 cat >conftest.$ac_ext <<_ACEOF
1968 #line 1968 "configure"
1969 #include "confdefs.h"
1973 if { (eval echo "$as_me:1973: \"$ac_cpp conftest.$ac_ext\"") >&5
1974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1976 egrep -v '^ *\+' conftest.er1 >conftest.err
1978 cat conftest.err >&5
1979 echo "$as_me:1979: \$? = $ac_status" >&5
1980 (exit $ac_status); } >/dev/null; then
1981 if test -s conftest.err; then
1982 ac_cpp_err=$ac_c_preproc_warn_flag
1989 if test -z "$ac_cpp_err"; then
1992 echo "$as_me: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1994 # Broken: fails on valid input.
1997 rm -f conftest.err conftest.$ac_ext
1999 # OK, works on sane cases. Now check whether non-existent headers
2000 # can be detected and how.
2001 cat >conftest.$ac_ext <<_ACEOF
2002 #line 2002 "configure"
2003 #include "confdefs.h"
2004 #include <ac_nonexistent.h>
2006 if { (eval echo "$as_me:2006: \"$ac_cpp conftest.$ac_ext\"") >&5
2007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2009 egrep -v '^ *\+' conftest.er1 >conftest.err
2011 cat conftest.err >&5
2012 echo "$as_me:2012: \$? = $ac_status" >&5
2013 (exit $ac_status); } >/dev/null; then
2014 if test -s conftest.err; then
2015 ac_cpp_err=$ac_c_preproc_warn_flag
2022 if test -z "$ac_cpp_err"; then
2023 # Broken: success on invalid input.
2026 echo "$as_me: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 # Passes both tests.
2032 rm -f conftest.err conftest.$ac_ext
2035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2036 rm -f conftest.err conftest.$ac_ext
2037 if $ac_preproc_ok; then
2040 { { echo "$as_me:2040: error: C preprocessor \"$CPP\" fails sanity check" >&5
2041 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2042 { (exit 1); exit 1; }; }
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2050 ac_main_return=return
2052 for ac_prog in mawk gawk nawk awk
2054 # Extract the first word of "$ac_prog", so it can be a program name with args.
2055 set dummy $ac_prog; ac_word=$2
2056 echo "$as_me:2056: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058 if test "${ac_cv_prog_AWK+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 if test -n "$AWK"; then
2062 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2064 ac_save_IFS=$IFS; IFS=$ac_path_separator
2066 for ac_dir in $ac_dummy; do
2068 test -z "$ac_dir" && ac_dir=.
2069 $as_executable_p "$ac_dir/$ac_word" || continue
2070 ac_cv_prog_AWK="$ac_prog"
2071 echo "$as_me:2071: found $ac_dir/$ac_word" >&5
2078 if test -n "$AWK"; then
2079 echo "$as_me:2079: result: $AWK" >&5
2080 echo "${ECHO_T}$AWK" >&6
2082 echo "$as_me:2082: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2086 test -n "$AWK" && break
2089 # Find a good install program. We prefer a C program (faster),
2090 # so one script is as good as another. But avoid the broken or
2091 # incompatible versions:
2092 # SysV /etc/install, /usr/sbin/install
2093 # SunOS /usr/etc/install
2094 # IRIX /sbin/install
2096 # AmigaOS /C/install, which installs bootblocks on floppy discs
2097 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2098 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2099 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2100 # ./install, which can be erroneously created by make from ./install.sh.
2101 echo "$as_me:2101: checking for a BSD compatible install" >&5
2102 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2103 if test -z "$INSTALL"; then
2104 if test "${ac_cv_path_install+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 ac_save_IFS=$IFS; IFS=$ac_path_separator
2108 for ac_dir in $PATH; do
2110 # Account for people who put trailing slashes in PATH elements.
2112 / | ./ | .// | /cC/* \
2113 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2116 # OSF1 and SCO ODT 3.0 have their own names for install.
2117 # Don't use installbsd from OSF since it installs stuff as root
2119 for ac_prog in ginstall scoinst install; do
2120 if $as_executable_p "$ac_dir/$ac_prog"; then
2121 if test $ac_prog = install &&
2122 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2123 # AIX install. It has an incompatible calling convention.
2125 elif test $ac_prog = install &&
2126 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2127 # program-specific install script used by HP pwplus--don't use.
2130 ac_cv_path_install="$ac_dir/$ac_prog -c"
2140 if test "${ac_cv_path_install+set}" = set; then
2141 INSTALL=$ac_cv_path_install
2143 # As a last resort, use the slow shell script. We don't cache a
2144 # path for INSTALL within a source directory, because that will
2145 # break other packages using the cache if that directory is
2146 # removed, or if the path is relative.
2147 INSTALL=$ac_install_sh
2150 echo "$as_me:2150: result: $INSTALL" >&5
2151 echo "${ECHO_T}$INSTALL" >&6
2153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2154 # It thinks the first close brace ends the variable substitution.
2155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2165 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2166 test -z "$cf_dir" && cf_dir=.
2167 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2171 for ac_prog in tdlint lint alint splint lclint
2173 # Extract the first word of "$ac_prog", so it can be a program name with args.
2174 set dummy $ac_prog; ac_word=$2
2175 echo "$as_me:2175: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177 if test "${ac_cv_prog_LINT+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test -n "$LINT"; then
2181 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2183 ac_save_IFS=$IFS; IFS=$ac_path_separator
2185 for ac_dir in $ac_dummy; do
2187 test -z "$ac_dir" && ac_dir=.
2188 $as_executable_p "$ac_dir/$ac_word" || continue
2189 ac_cv_prog_LINT="$ac_prog"
2190 echo "$as_me:2190: found $ac_dir/$ac_word" >&5
2196 LINT=$ac_cv_prog_LINT
2197 if test -n "$LINT"; then
2198 echo "$as_me:2198: result: $LINT" >&5
2199 echo "${ECHO_T}$LINT" >&6
2201 echo "$as_me:2201: result: no" >&5
2202 echo "${ECHO_T}no" >&6
2205 test -n "$LINT" && break
2208 echo "$as_me:2208: checking if filesystem supports mixed-case filenames" >&5
2209 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2210 if test "${cf_cv_mixedcase+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 if test "$cross_compiling" = yes ; then
2215 case $target_alias in #(vi
2216 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2224 rm -f conftest CONFTEST
2226 if test -f CONFTEST ; then
2231 rm -f conftest CONFTEST
2235 echo "$as_me:2235: result: $cf_cv_mixedcase" >&5
2236 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2237 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2238 #define MIXEDCASE_FILENAMES 1
2241 for ac_prog in exctags ctags
2243 # Extract the first word of "$ac_prog", so it can be a program name with args.
2244 set dummy $ac_prog; ac_word=$2
2245 echo "$as_me:2245: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2247 if test "${ac_cv_prog_CTAGS+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 if test -n "$CTAGS"; then
2251 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2253 ac_save_IFS=$IFS; IFS=$ac_path_separator
2255 for ac_dir in $ac_dummy; do
2257 test -z "$ac_dir" && ac_dir=.
2258 $as_executable_p "$ac_dir/$ac_word" || continue
2259 ac_cv_prog_CTAGS="$ac_prog"
2260 echo "$as_me:2260: found $ac_dir/$ac_word" >&5
2266 CTAGS=$ac_cv_prog_CTAGS
2267 if test -n "$CTAGS"; then
2268 echo "$as_me:2268: result: $CTAGS" >&5
2269 echo "${ECHO_T}$CTAGS" >&6
2271 echo "$as_me:2271: result: no" >&5
2272 echo "${ECHO_T}no" >&6
2275 test -n "$CTAGS" && break
2278 for ac_prog in exetags etags
2280 # Extract the first word of "$ac_prog", so it can be a program name with args.
2281 set dummy $ac_prog; ac_word=$2
2282 echo "$as_me:2282: checking for $ac_word" >&5
2283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2284 if test "${ac_cv_prog_ETAGS+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 if test -n "$ETAGS"; then
2288 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2290 ac_save_IFS=$IFS; IFS=$ac_path_separator
2292 for ac_dir in $ac_dummy; do
2294 test -z "$ac_dir" && ac_dir=.
2295 $as_executable_p "$ac_dir/$ac_word" || continue
2296 ac_cv_prog_ETAGS="$ac_prog"
2297 echo "$as_me:2297: found $ac_dir/$ac_word" >&5
2303 ETAGS=$ac_cv_prog_ETAGS
2304 if test -n "$ETAGS"; then
2305 echo "$as_me:2305: result: $ETAGS" >&5
2306 echo "${ECHO_T}$ETAGS" >&6
2308 echo "$as_me:2308: result: no" >&5
2309 echo "${ECHO_T}no" >&6
2312 test -n "$ETAGS" && break
2315 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2316 set dummy ${CTAGS:-ctags}; ac_word=$2
2317 echo "$as_me:2317: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$MAKE_LOWER_TAGS"; then
2323 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2325 ac_save_IFS=$IFS; IFS=$ac_path_separator
2327 for ac_dir in $ac_dummy; do
2329 test -z "$ac_dir" && ac_dir=.
2330 $as_executable_p "$ac_dir/$ac_word" || continue
2331 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2332 echo "$as_me:2332: found $ac_dir/$ac_word" >&5
2336 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2339 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2340 if test -n "$MAKE_LOWER_TAGS"; then
2341 echo "$as_me:2341: result: $MAKE_LOWER_TAGS" >&5
2342 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2344 echo "$as_me:2344: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2348 if test "$cf_cv_mixedcase" = yes ; then
2349 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2350 set dummy ${ETAGS:-etags}; ac_word=$2
2351 echo "$as_me:2351: checking for $ac_word" >&5
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2353 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 if test -n "$MAKE_UPPER_TAGS"; then
2357 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2359 ac_save_IFS=$IFS; IFS=$ac_path_separator
2361 for ac_dir in $ac_dummy; do
2363 test -z "$ac_dir" && ac_dir=.
2364 $as_executable_p "$ac_dir/$ac_word" || continue
2365 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2366 echo "$as_me:2366: found $ac_dir/$ac_word" >&5
2370 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2373 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2374 if test -n "$MAKE_UPPER_TAGS"; then
2375 echo "$as_me:2375: result: $MAKE_UPPER_TAGS" >&5
2376 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2378 echo "$as_me:2378: result: no" >&5
2379 echo "${ECHO_T}no" >&6
2386 if test "$MAKE_UPPER_TAGS" = yes ; then
2392 if test "$MAKE_LOWER_TAGS" = yes ; then
2398 echo "$as_me:2398: checking if -lm needed for math functions" >&5
2399 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2400 if test "${cf_cv_need_libm+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 cat >conftest.$ac_ext <<_ACEOF
2405 #line 2405 "configure"
2406 #include "confdefs.h"
2414 double x = rand(); printf("result = %g\n", sin(x))
2419 rm -f conftest.$ac_objext conftest$ac_exeext
2420 if { (eval echo "$as_me:2420: \"$ac_link\"") >&5
2421 (eval $ac_link) 2>&5
2423 echo "$as_me:2423: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
2425 { ac_try='test -s conftest$ac_exeext'
2426 { (eval echo "$as_me:2426: \"$ac_try\"") >&5
2429 echo "$as_me:2429: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2433 echo "$as_me: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2439 echo "$as_me:2439: result: $cf_cv_need_libm" >&5
2440 echo "${ECHO_T}$cf_cv_need_libm" >&6
2441 if test "$cf_cv_need_libm" = yes
2447 CC_SHARED_OPTS=unknown
2448 CPPFLAGS="$CPPFLAGS"
2450 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2451 DFT_UPR_MODEL="NORMAL"
2467 TINFO_ARGS='$(LIBS_CURSES)'
2468 cf_cv_abi_version=""
2469 cf_cv_rel_version=""
2474 echo "$as_me:2474: checking for ${CC:-cc} option to accept ANSI C" >&5
2475 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2476 if test "${cf_cv_ansi_cc+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 cf_save_CFLAGS="$CFLAGS"
2482 cf_save_CPPFLAGS="$CPPFLAGS"
2483 # Don't try gcc -ansi; that turns off useful extensions and
2484 # breaks some systems' header files.
2485 # AIX -qlanglvl=ansi
2486 # Ultrix and OSF/1 -std1
2487 # HP-UX -Aa -D_HPUX_SOURCE
2489 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2490 for cf_arg in "-DCC_HAS_PROTOS" \
2495 "-Aa -D_HPUX_SOURCE" \
2502 cf_new_extra_cppflags=
2504 for cf_add_cflags in $cf_arg
2506 case $cf_fix_cppflags in
2508 case $cf_add_cflags in #(vi
2509 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2510 case $cf_add_cflags in
2512 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2514 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2515 && test -z "${cf_tst_cflags}" \
2516 && cf_fix_cppflags=yes
2518 if test $cf_fix_cppflags = yes ; then
2519 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2521 elif test "${cf_tst_cflags}" = "\"'" ; then
2522 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2528 *$cf_add_cflags) #(vi
2531 case $cf_add_cflags in #(vi
2533 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2535 CPPFLAGS=`echo "$CPPFLAGS" | \
2536 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2537 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2541 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2546 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2551 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2553 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2555 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2556 && test -z "${cf_tst_cflags}" \
2557 && cf_fix_cppflags=no
2562 if test -n "$cf_new_cflags" ; then
2564 CFLAGS="$CFLAGS $cf_new_cflags"
2567 if test -n "$cf_new_cppflags" ; then
2569 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2572 if test -n "$cf_new_extra_cppflags" ; then
2574 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2577 cat >conftest.$ac_ext <<_ACEOF
2578 #line 2578 "configure"
2579 #include "confdefs.h"
2581 #ifndef CC_HAS_PROTOS
2582 #if !defined(__STDC__) || (__STDC__ != 1)
2591 int test (int i, double x);
2592 struct s1 {int (*f) (int a);};
2593 struct s2 {int (*f) (double a);};
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:2599: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>&5
2602 echo "$as_me:2602: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
2604 { ac_try='test -s conftest.$ac_objext'
2605 { (eval echo "$as_me:2605: \"$ac_try\"") >&5
2608 echo "$as_me:2608: \$? = $ac_status" >&5
2609 (exit $ac_status); }; }; then
2610 cf_cv_ansi_cc="$cf_arg"; break
2612 echo "$as_me: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2615 rm -f conftest.$ac_objext conftest.$ac_ext
2617 CFLAGS="$cf_save_CFLAGS"
2618 CPPFLAGS="$cf_save_CPPFLAGS"
2621 echo "$as_me:2621: result: $cf_cv_ansi_cc" >&5
2622 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2624 if test "$cf_cv_ansi_cc" != "no"; then
2625 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2630 cf_new_extra_cppflags=
2632 for cf_add_cflags in $cf_cv_ansi_cc
2634 case $cf_fix_cppflags in
2636 case $cf_add_cflags in #(vi
2637 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2638 case $cf_add_cflags in
2640 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2642 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2643 && test -z "${cf_tst_cflags}" \
2644 && cf_fix_cppflags=yes
2646 if test $cf_fix_cppflags = yes ; then
2647 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2649 elif test "${cf_tst_cflags}" = "\"'" ; then
2650 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2656 *$cf_add_cflags) #(vi
2659 case $cf_add_cflags in #(vi
2661 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2663 CPPFLAGS=`echo "$CPPFLAGS" | \
2664 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2665 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2669 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2674 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2679 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2681 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2683 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2684 && test -z "${cf_tst_cflags}" \
2685 && cf_fix_cppflags=no
2690 if test -n "$cf_new_cflags" ; then
2692 CFLAGS="$CFLAGS $cf_new_cflags"
2695 if test -n "$cf_new_cppflags" ; then
2697 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2700 if test -n "$cf_new_extra_cppflags" ; then
2702 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2706 cat >>confdefs.h <<\EOF
2707 #define CC_HAS_PROTOS 1
2713 if test "$cf_cv_ansi_cc" = "no"; then
2714 { { echo "$as_me:2714: error: Your compiler does not appear to recognize prototypes.
2715 You have the following choices:
2716 a. adjust your compiler options
2717 b. get an up-to-date compiler
2718 c. use a wrapper such as unproto" >&5
2719 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2720 You have the following choices:
2721 a. adjust your compiler options
2722 b. get an up-to-date compiler
2723 c. use a wrapper such as unproto" >&2;}
2724 { (exit 1); exit 1; }; }
2727 if test "$GCC" = yes
2729 cat > conftest.i <<EOF
2731 #define GCC_PRINTF 0
2736 #ifndef GCC_NORETURN
2737 #define GCC_NORETURN /* nothing */
2740 #define GCC_UNUSED /* nothing */
2743 if test "$GCC" = yes
2745 { echo "$as_me:2745: checking for $CC __attribute__ directives..." >&5
2746 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2747 cat > conftest.$ac_ext <<EOF
2748 #line 2748 "${as_me:-configure}"
2749 #include "confdefs.h"
2750 #include "conftest.h"
2751 #include "conftest.i"
2753 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2755 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2758 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2760 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2762 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2763 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2764 extern void foo(void) GCC_NORETURN;
2765 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2767 cf_printf_attribute=no
2768 cf_scanf_attribute=no
2769 for cf_attribute in scanf printf unused noreturn
2772 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2774 cf_directive="__attribute__(($cf_attribute))"
2775 echo "checking for $CC $cf_directive" 1>&5
2777 case $cf_attribute in #(vi
2779 cf_printf_attribute=yes
2780 cat >conftest.h <<EOF
2781 #define GCC_$cf_ATTRIBUTE 1
2785 cf_scanf_attribute=yes
2786 cat >conftest.h <<EOF
2787 #define GCC_$cf_ATTRIBUTE 1
2791 cat >conftest.h <<EOF
2792 #define GCC_$cf_ATTRIBUTE $cf_directive
2797 if { (eval echo "$as_me:2797: \"$ac_compile\"") >&5
2798 (eval $ac_compile) 2>&5
2800 echo "$as_me:2800: \$? = $ac_status" >&5
2801 (exit $ac_status); }; then
2802 test -n "$verbose" && echo "$as_me:2802: result: ... $cf_attribute" >&5
2803 echo "${ECHO_T}... $cf_attribute" >&6
2804 cat conftest.h >>confdefs.h
2805 case $cf_attribute in #(vi
2807 if test "$cf_printf_attribute" = no ; then
2808 cat >>confdefs.h <<EOF
2809 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
2812 cat >>confdefs.h <<EOF
2813 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2818 if test "$cf_scanf_attribute" = no ; then
2819 cat >>confdefs.h <<EOF
2820 #define GCC_SCANFLIKE(fmt,var) /* nothing */
2823 cat >>confdefs.h <<EOF
2824 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2832 fgrep define conftest.i >>confdefs.h
2838 cf_POSIX_C_SOURCE=199506L
2841 case $host_os in #(vi
2843 cf_xopen_source="-D_ALL_SOURCE"
2846 cf_xopen_source="-D_APPLE_C_SOURCE"
2849 cf_xopen_source="-D_DARWIN_C_SOURCE"
2851 freebsd*|dragonfly*) #(vi
2852 # 5.x headers associate
2853 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2854 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2855 cf_POSIX_C_SOURCE=200112L
2857 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2860 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2863 cf_xopen_source="-D_HPUX_SOURCE"
2866 cf_xopen_source="-D_SGI_SOURCE"
2868 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2870 echo "$as_me:2870: checking if we must define _GNU_SOURCE" >&5
2871 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2872 if test "${cf_cv_gnu_source+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 cat >conftest.$ac_ext <<_ACEOF
2877 #line 2877 "configure"
2878 #include "confdefs.h"
2879 #include <sys/types.h>
2884 #ifndef _XOPEN_SOURCE
2891 rm -f conftest.$ac_objext
2892 if { (eval echo "$as_me:2892: \"$ac_compile\"") >&5
2893 (eval $ac_compile) 2>&5
2895 echo "$as_me:2895: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
2897 { ac_try='test -s conftest.$ac_objext'
2898 { (eval echo "$as_me:2898: \"$ac_try\"") >&5
2901 echo "$as_me:2901: \$? = $ac_status" >&5
2902 (exit $ac_status); }; }; then
2905 echo "$as_me: failed program was:" >&5
2906 cat conftest.$ac_ext >&5
2908 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2909 cat >conftest.$ac_ext <<_ACEOF
2910 #line 2910 "configure"
2911 #include "confdefs.h"
2912 #include <sys/types.h>
2917 #ifdef _XOPEN_SOURCE
2924 rm -f conftest.$ac_objext
2925 if { (eval echo "$as_me:2925: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>&5
2928 echo "$as_me:2928: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try='test -s conftest.$ac_objext'
2931 { (eval echo "$as_me:2931: \"$ac_try\"") >&5
2934 echo "$as_me:2934: \$? = $ac_status" >&5
2935 (exit $ac_status); }; }; then
2938 echo "$as_me: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2940 cf_cv_gnu_source=yes
2942 rm -f conftest.$ac_objext conftest.$ac_ext
2946 rm -f conftest.$ac_objext conftest.$ac_ext
2949 echo "$as_me:2949: result: $cf_cv_gnu_source" >&5
2950 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2951 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2955 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
2958 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2961 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2964 cf_xopen_source="-D_OSF_SOURCE"
2967 cf_xopen_source="-D_QNX_SOURCE"
2970 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2972 solaris2.1[0-9]) #(vi
2973 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2975 solaris2.[1-9]) #(vi
2976 cf_xopen_source="-D__EXTENSIONS__"
2979 echo "$as_me:2979: checking if we should define _XOPEN_SOURCE" >&5
2980 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2981 if test "${cf_cv_xopen_source+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 cat >conftest.$ac_ext <<_ACEOF
2986 #line 2986 "configure"
2987 #include "confdefs.h"
2988 #include <sys/types.h>
2993 #ifndef _XOPEN_SOURCE
3000 rm -f conftest.$ac_objext
3001 if { (eval echo "$as_me:3001: \"$ac_compile\"") >&5
3002 (eval $ac_compile) 2>&5
3004 echo "$as_me:3004: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -s conftest.$ac_objext'
3007 { (eval echo "$as_me:3007: \"$ac_try\"") >&5
3010 echo "$as_me:3010: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3012 cf_cv_xopen_source=no
3014 echo "$as_me: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3017 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3018 cat >conftest.$ac_ext <<_ACEOF
3019 #line 3019 "configure"
3020 #include "confdefs.h"
3021 #include <sys/types.h>
3026 #ifdef _XOPEN_SOURCE
3033 rm -f conftest.$ac_objext
3034 if { (eval echo "$as_me:3034: \"$ac_compile\"") >&5
3035 (eval $ac_compile) 2>&5
3037 echo "$as_me:3037: \$? = $ac_status" >&5
3038 (exit $ac_status); } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (eval echo "$as_me:3040: \"$ac_try\"") >&5
3043 echo "$as_me:3043: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 cf_cv_xopen_source=no
3047 echo "$as_me: failed program was:" >&5
3048 cat conftest.$ac_ext >&5
3049 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3051 rm -f conftest.$ac_objext conftest.$ac_ext
3055 rm -f conftest.$ac_objext conftest.$ac_ext
3058 echo "$as_me:3058: result: $cf_cv_xopen_source" >&5
3059 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3060 if test "$cf_cv_xopen_source" != no ; then
3062 CFLAGS=`echo "$CFLAGS" | \
3063 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3064 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3066 CPPFLAGS=`echo "$CPPFLAGS" | \
3067 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3068 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3070 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3075 cf_new_extra_cppflags=
3077 for cf_add_cflags in $cf_temp_xopen_source
3079 case $cf_fix_cppflags in
3081 case $cf_add_cflags in #(vi
3082 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3083 case $cf_add_cflags in
3085 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3087 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3088 && test -z "${cf_tst_cflags}" \
3089 && cf_fix_cppflags=yes
3091 if test $cf_fix_cppflags = yes ; then
3092 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3094 elif test "${cf_tst_cflags}" = "\"'" ; then
3095 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3101 *$cf_add_cflags) #(vi
3104 case $cf_add_cflags in #(vi
3106 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3108 CPPFLAGS=`echo "$CPPFLAGS" | \
3109 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3110 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3114 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3119 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3124 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3126 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3128 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3129 && test -z "${cf_tst_cflags}" \
3130 && cf_fix_cppflags=no
3135 if test -n "$cf_new_cflags" ; then
3137 CFLAGS="$CFLAGS $cf_new_cflags"
3140 if test -n "$cf_new_cppflags" ; then
3142 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3145 if test -n "$cf_new_extra_cppflags" ; then
3147 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3152 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3154 cf_save_CFLAGS="$CFLAGS"
3155 cf_save_CPPFLAGS="$CPPFLAGS"
3157 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3158 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3159 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3161 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3162 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3163 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3165 echo "$as_me:3165: checking if we should define _POSIX_C_SOURCE" >&5
3166 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3167 if test "${cf_cv_posix_c_source+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 echo "${as_me:-configure}:3171: testing if the symbol is already defined go no further ..." 1>&5
3173 cat >conftest.$ac_ext <<_ACEOF
3174 #line 3174 "configure"
3175 #include "confdefs.h"
3176 #include <sys/types.h>
3181 #ifndef _POSIX_C_SOURCE
3188 rm -f conftest.$ac_objext
3189 if { (eval echo "$as_me:3189: \"$ac_compile\"") >&5
3190 (eval $ac_compile) 2>&5
3192 echo "$as_me:3192: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (eval echo "$as_me:3195: \"$ac_try\"") >&5
3198 echo "$as_me:3198: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 cf_cv_posix_c_source=no
3202 echo "$as_me: failed program was:" >&5
3203 cat conftest.$ac_ext >&5
3204 cf_want_posix_source=no
3205 case .$cf_POSIX_C_SOURCE in #(vi
3207 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3210 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3211 cf_want_posix_source=yes
3214 cf_want_posix_source=yes
3217 if test "$cf_want_posix_source" = yes ; then
3218 cat >conftest.$ac_ext <<_ACEOF
3219 #line 3219 "configure"
3220 #include "confdefs.h"
3221 #include <sys/types.h>
3226 #ifdef _POSIX_SOURCE
3233 rm -f conftest.$ac_objext
3234 if { (eval echo "$as_me:3234: \"$ac_compile\"") >&5
3235 (eval $ac_compile) 2>&5
3237 echo "$as_me:3237: \$? = $ac_status" >&5
3238 (exit $ac_status); } &&
3239 { ac_try='test -s conftest.$ac_objext'
3240 { (eval echo "$as_me:3240: \"$ac_try\"") >&5
3243 echo "$as_me:3243: \$? = $ac_status" >&5
3244 (exit $ac_status); }; }; then
3247 echo "$as_me: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3249 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3251 rm -f conftest.$ac_objext conftest.$ac_ext
3254 echo "${as_me:-configure}:3254: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3256 CFLAGS="$cf_trim_CFLAGS"
3257 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3259 echo "${as_me:-configure}:3259: testing if the second compile does not leave our definition intact error ..." 1>&5
3261 cat >conftest.$ac_ext <<_ACEOF
3262 #line 3262 "configure"
3263 #include "confdefs.h"
3264 #include <sys/types.h>
3269 #ifndef _POSIX_C_SOURCE
3276 rm -f conftest.$ac_objext
3277 if { (eval echo "$as_me:3277: \"$ac_compile\"") >&5
3278 (eval $ac_compile) 2>&5
3280 echo "$as_me:3280: \$? = $ac_status" >&5
3281 (exit $ac_status); } &&
3282 { ac_try='test -s conftest.$ac_objext'
3283 { (eval echo "$as_me:3283: \"$ac_try\"") >&5
3286 echo "$as_me:3286: \$? = $ac_status" >&5
3287 (exit $ac_status); }; }; then
3290 echo "$as_me: failed program was:" >&5
3291 cat conftest.$ac_ext >&5
3292 cf_cv_posix_c_source=no
3294 rm -f conftest.$ac_objext conftest.$ac_ext
3295 CFLAGS="$cf_save_CFLAGS"
3296 CPPFLAGS="$cf_save_CPPFLAGS"
3299 rm -f conftest.$ac_objext conftest.$ac_ext
3302 echo "$as_me:3302: result: $cf_cv_posix_c_source" >&5
3303 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3305 if test "$cf_cv_posix_c_source" != no ; then
3306 CFLAGS="$cf_trim_CFLAGS"
3307 CPPFLAGS="$cf_trim_CPPFLAGS"
3312 cf_new_extra_cppflags=
3314 for cf_add_cflags in $cf_cv_posix_c_source
3316 case $cf_fix_cppflags in
3318 case $cf_add_cflags in #(vi
3319 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3320 case $cf_add_cflags in
3322 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3324 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3325 && test -z "${cf_tst_cflags}" \
3326 && cf_fix_cppflags=yes
3328 if test $cf_fix_cppflags = yes ; then
3329 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3331 elif test "${cf_tst_cflags}" = "\"'" ; then
3332 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3338 *$cf_add_cflags) #(vi
3341 case $cf_add_cflags in #(vi
3343 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3345 CPPFLAGS=`echo "$CPPFLAGS" | \
3346 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3347 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3351 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3356 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3361 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3363 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3365 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3366 && test -z "${cf_tst_cflags}" \
3367 && cf_fix_cppflags=no
3372 if test -n "$cf_new_cflags" ; then
3374 CFLAGS="$CFLAGS $cf_new_cflags"
3377 if test -n "$cf_new_cppflags" ; then
3379 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3382 if test -n "$cf_new_extra_cppflags" ; then
3384 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3392 if test -n "$cf_xopen_source" ; then
3397 cf_new_extra_cppflags=
3399 for cf_add_cflags in $cf_xopen_source
3401 case $cf_fix_cppflags in
3403 case $cf_add_cflags in #(vi
3404 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3405 case $cf_add_cflags in
3407 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3409 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3410 && test -z "${cf_tst_cflags}" \
3411 && cf_fix_cppflags=yes
3413 if test $cf_fix_cppflags = yes ; then
3414 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3416 elif test "${cf_tst_cflags}" = "\"'" ; then
3417 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3423 *$cf_add_cflags) #(vi
3426 case $cf_add_cflags in #(vi
3428 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3430 CPPFLAGS=`echo "$CPPFLAGS" | \
3431 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3432 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3436 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3441 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3446 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3448 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3450 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3451 && test -z "${cf_tst_cflags}" \
3452 && cf_fix_cppflags=no
3457 if test -n "$cf_new_cflags" ; then
3459 CFLAGS="$CFLAGS $cf_new_cflags"
3462 if test -n "$cf_new_cppflags" ; then
3464 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3467 if test -n "$cf_new_extra_cppflags" ; then
3469 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3474 echo "$as_me:3474: checking for $CC option to accept ANSI C" >&5
3475 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3476 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3477 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 ac_cv_prog_cc_stdc=no
3481 cat >conftest.$ac_ext <<_ACEOF
3482 #line 3482 "configure"
3483 #include "confdefs.h"
3486 #include <sys/types.h>
3487 #include <sys/stat.h>
3488 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3489 struct buf { int x; };
3490 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3491 static char *e (p, i)
3497 static char *f (char * (*g) (char **, int), char **p, ...)
3502 s = g (p, va_arg (v,int));
3506 int test (int i, double x);
3507 struct s1 {int (*f) (int a);};
3508 struct s2 {int (*f) (double a);};
3509 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3515 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3520 # Don't try gcc -ansi; that turns off useful extensions and
3521 # breaks some systems' header files.
3522 # AIX -qlanglvl=ansi
3523 # Ultrix and OSF/1 -std1
3524 # HP-UX 10.20 and later -Ae
3525 # HP-UX older versions -Aa -D_HPUX_SOURCE
3526 # SVR4 -Xc -D__EXTENSIONS__
3527 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3529 CC="$ac_save_CC $ac_arg"
3530 rm -f conftest.$ac_objext
3531 if { (eval echo "$as_me:3531: \"$ac_compile\"") >&5
3532 (eval $ac_compile) 2>&5
3534 echo "$as_me:3534: \$? = $ac_status" >&5
3535 (exit $ac_status); } &&
3536 { ac_try='test -s conftest.$ac_objext'
3537 { (eval echo "$as_me:3537: \"$ac_try\"") >&5
3540 echo "$as_me:3540: \$? = $ac_status" >&5
3541 (exit $ac_status); }; }; then
3542 ac_cv_prog_cc_stdc=$ac_arg
3545 echo "$as_me: failed program was:" >&5
3546 cat conftest.$ac_ext >&5
3548 rm -f conftest.$ac_objext
3550 rm -f conftest.$ac_ext conftest.$ac_objext
3555 case "x$ac_cv_prog_cc_stdc" in
3557 echo "$as_me:3557: result: none needed" >&5
3558 echo "${ECHO_T}none needed" >&6 ;;
3560 echo "$as_me:3560: result: $ac_cv_prog_cc_stdc" >&5
3561 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3562 CC="$CC $ac_cv_prog_cc_stdc" ;;
3565 echo "$as_me:3565: checking for an ANSI C-conforming const" >&5
3566 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3567 if test "${ac_cv_c_const+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 cat >conftest.$ac_ext <<_ACEOF
3571 #line 3571 "configure"
3572 #include "confdefs.h"
3577 /* FIXME: Include the comments suggested by Paul. */
3579 /* Ultrix mips cc rejects this. */
3580 typedef int charset[2];
3582 /* SunOS 4.1.1 cc rejects this. */
3583 char const *const *ccp;
3585 /* NEC SVR4.0.2 mips cc rejects this. */
3586 struct point {int x, y;};
3587 static struct point const zero = {0,0};
3588 /* AIX XL C 1.02.0.0 rejects this.
3589 It does not let you subtract one const X* pointer from another in
3590 an arm of an if-expression whose if-part is not a constant
3592 const char *g = "string";
3593 ccp = &g + (g ? g-g : 0);
3594 /* HPUX 7.0 cc rejects these. */
3597 ccp = (char const *const *) p;
3598 { /* SCO 3.2v4 cc rejects this. */
3600 char const *s = 0 ? (char *) 0 : (char const *) 0;
3604 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3606 const int *foo = &x[0];
3609 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3610 typedef const int *iptr;
3614 { /* AIX XL C 1.02.0.0 rejects this saying
3615 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3616 struct s { int j; const int *ap[3]; };
3617 struct s *b; b->j = 5;
3619 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3628 rm -f conftest.$ac_objext
3629 if { (eval echo "$as_me:3629: \"$ac_compile\"") >&5
3630 (eval $ac_compile) 2>&5
3632 echo "$as_me:3632: \$? = $ac_status" >&5
3633 (exit $ac_status); } &&
3634 { ac_try='test -s conftest.$ac_objext'
3635 { (eval echo "$as_me:3635: \"$ac_try\"") >&5
3638 echo "$as_me:3638: \$? = $ac_status" >&5
3639 (exit $ac_status); }; }; then
3642 echo "$as_me: failed program was:" >&5
3643 cat conftest.$ac_ext >&5
3646 rm -f conftest.$ac_objext conftest.$ac_ext
3648 echo "$as_me:3648: result: $ac_cv_c_const" >&5
3649 echo "${ECHO_T}$ac_cv_c_const" >&6
3650 if test $ac_cv_c_const = no; then
3652 cat >>confdefs.h <<\EOF
3658 echo "$as_me:3658: checking for signal global datatype" >&5
3659 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3660 if test "${cf_cv_sig_atomic_t+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 "volatile sig_atomic_t" \
3669 cat >conftest.$ac_ext <<_ACEOF
3670 #line 3670 "configure"
3671 #include "confdefs.h"
3673 #include <sys/types.h>
3679 static void handler(int sig)
3686 signal(SIGINT, handler);
3692 rm -f conftest.$ac_objext
3693 if { (eval echo "$as_me:3693: \"$ac_compile\"") >&5
3694 (eval $ac_compile) 2>&5
3696 echo "$as_me:3696: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -s conftest.$ac_objext'
3699 { (eval echo "$as_me:3699: \"$ac_try\"") >&5
3702 echo "$as_me:3702: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3704 cf_cv_sig_atomic_t=$cf_type
3706 echo "$as_me: failed program was:" >&5
3707 cat conftest.$ac_ext >&5
3708 cf_cv_sig_atomic_t=no
3710 rm -f conftest.$ac_objext conftest.$ac_ext
3711 test "$cf_cv_sig_atomic_t" != no && break
3716 echo "$as_me:3716: result: $cf_cv_sig_atomic_t" >&5
3717 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
3718 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
3719 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
3722 echo "$as_me:3722: checking if you want to see long compiling messages" >&5
3723 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
3725 # Check whether --enable-echo or --disable-echo was given.
3726 if test "${enable_echo+set}" = set; then
3727 enableval="$enable_echo"
3728 test "$enableval" != no && enableval=yes
3729 if test "$enableval" != "yes" ; then
3732 ECHO_LD='@echo linking $@;'
3733 RULE_CC='@echo compiling $<'
3734 SHOW_CC='@echo compiling $@'
3756 echo "$as_me:3756: result: $enableval" >&5
3757 echo "${ECHO_T}$enableval" >&6
3760 if test "$GCC" = yes ; then
3761 echo "$as_me:3761: checking version of $CC" >&5
3762 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3763 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3764 test -z "$GCC_VERSION" && GCC_VERSION=unknown
3765 echo "$as_me:3765: result: $GCC_VERSION" >&5
3766 echo "${ECHO_T}$GCC_VERSION" >&6
3769 if ( test "$GCC" = yes || test "$GXX" = yes )
3771 echo "$as_me:3771: checking if you want to turn on gcc warnings" >&5
3772 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
3774 # Check whether --enable-warnings or --disable-warnings was given.
3775 if test "${enable_warnings+set}" = set; then
3776 enableval="$enable_warnings"
3777 test "$enableval" != yes && enableval=no
3778 if test "$enableval" != "no" ; then
3788 echo "$as_me:3788: result: $with_warnings" >&5
3789 echo "${ECHO_T}$with_warnings" >&6
3790 if test "$with_warnings" = "yes"
3793 if test "$GCC" = yes
3795 cat > conftest.i <<EOF
3797 #define GCC_PRINTF 0
3802 #ifndef GCC_NORETURN
3803 #define GCC_NORETURN /* nothing */
3806 #define GCC_UNUSED /* nothing */
3809 if test "$GCC" = yes
3811 { echo "$as_me:3811: checking for $CC __attribute__ directives..." >&5
3812 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3814 "${as_me:-configure}"
3815 #include "confdefs.h"
3816 #include "conftest.h"
3817 #include "conftest.i"
3819 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3821 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3824 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3826 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3828 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3829 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3830 extern void foo(void) GCC_NORETURN;
3831 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
3833 cf_printf_attribute=no
3834 cf_scanf_attribute=no
3835 for cf_attribute in scanf printf unused noreturn
3838 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3840 cf_directive="__attribute__(($cf_attribute))"
3841 echo "checking for $CC $cf_directive" 1>&5
3843 case $cf_attribute in #(vi
3845 cf_printf_attribute=yes
3846 cat >conftest.h <<EOF
3847 #define GCC_$cf_ATTRIBUTE 1
3851 cf_scanf_attribute=yes
3852 cat >conftest.h <<EOF
3853 #define GCC_$cf_ATTRIBUTE 1
3857 cat >conftest.h <<EOF
3858 #define GCC_$cf_ATTRIBUTE $cf_directive
3863 if { (eval echo "$as_me:3863: \"$ac_compile\"") >&5
3864 (eval $ac_compile) 2>&5
3866 echo "$as_me:3866: \$? = $ac_status" >&5
3867 (exit $ac_status); }; then
3868 test -n "$verbose" && echo "$as_me:3868: result: ... $cf_attribute" >&5
3869 echo "${ECHO_T}... $cf_attribute" >&6
3870 cat conftest.h >>confdefs.h
3871 case $cf_attribute in #(vi
3873 if test "$cf_printf_attribute" = no ; then
3874 cat >>confdefs.h <<EOF
3875 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
3878 cat >>confdefs.h <<EOF
3879 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3884 if test "$cf_scanf_attribute" = no ; then
3885 cat >>confdefs.h <<EOF
3886 #define GCC_SCANFLIKE(fmt,var) /* nothing */
3889 cat >>confdefs.h <<EOF
3890 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3898 fgrep define conftest.i >>confdefs.h
3905 if test "$GCC" = yes ; then
3908 echo "$as_me:3908: checking if this is really Intel C compiler" >&5
3909 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
3910 cf_save_CFLAGS="$CFLAGS"
3911 CFLAGS="$CFLAGS -no-gcc"
3912 cat >conftest.$ac_ext <<_ACEOF
3913 #line 3913 "configure"
3914 #include "confdefs.h"
3920 #ifdef __INTEL_COMPILER
3929 rm -f conftest.$ac_objext
3930 if { (eval echo "$as_me:3930: \"$ac_compile\"") >&5
3931 (eval $ac_compile) 2>&5
3933 echo "$as_me:3933: \$? = $ac_status" >&5
3934 (exit $ac_status); } &&
3935 { ac_try='test -s conftest.$ac_objext'
3936 { (eval echo "$as_me:3936: \"$ac_try\"") >&5
3939 echo "$as_me:3939: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3942 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
3945 echo "$as_me: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3948 rm -f conftest.$ac_objext conftest.$ac_ext
3949 CFLAGS="$cf_save_CFLAGS"
3950 echo "$as_me:3950: result: $INTEL_COMPILER" >&5
3951 echo "${ECHO_T}$INTEL_COMPILER" >&6
3956 cat > conftest.$ac_ext <<EOF
3957 #line 3957 "${as_me:-configure}"
3958 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
3961 if test "$INTEL_COMPILER" = yes
3963 # The "-wdXXX" options suppress warnings:
3964 # remark #1419: external declaration in primary source file
3965 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
3966 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
3967 # remark #193: zero used for undefined preprocessing identifier
3968 # remark #593: variable "curs_sb_left_arrow" was set but never used
3969 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
3970 # remark #869: parameter "tw" was never referenced
3971 # remark #981: operands are evaluated in unspecified order
3972 # warning #279: controlling expression is constant
3974 { echo "$as_me:3974: checking for $CC warning options..." >&5
3975 echo "$as_me: checking for $CC warning options..." >&6;}
3976 cf_save_CFLAGS="$CFLAGS"
3977 EXTRA_CFLAGS="-Wall"
3989 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
3990 if { (eval echo "$as_me:3990: \"$ac_compile\"") >&5
3991 (eval $ac_compile) 2>&5
3993 echo "$as_me:3993: \$? = $ac_status" >&5
3994 (exit $ac_status); }; then
3995 test -n "$verbose" && echo "$as_me:3995: result: ... -$cf_opt" >&5
3996 echo "${ECHO_T}... -$cf_opt" >&6
3997 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4000 CFLAGS="$cf_save_CFLAGS"
4002 elif test "$GCC" = yes
4004 { echo "$as_me:4004: checking for $CC warning options..." >&5
4005 echo "$as_me: checking for $CC warning options..." >&6;}
4006 cf_save_CFLAGS="$CFLAGS"
4009 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4010 for cf_opt in W Wall \
4011 Wbad-function-cast \
4015 Wmissing-declarations \
4016 Wmissing-prototypes \
4020 Wstrict-prototypes \
4021 Wundef $cf_warn_CONST
4023 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4024 if { (eval echo "$as_me:4024: \"$ac_compile\"") >&5
4025 (eval $ac_compile) 2>&5
4027 echo "$as_me:4027: \$? = $ac_status" >&5
4028 (exit $ac_status); }; then
4029 test -n "$verbose" && echo "$as_me:4029: result: ... -$cf_opt" >&5
4030 echo "${ECHO_T}... -$cf_opt" >&6
4031 case $cf_opt in #(vi
4033 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4036 case $GCC_VERSION in
4038 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4040 echo "${as_me:-configure}:4040: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4046 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4049 CFLAGS="$cf_save_CFLAGS"
4056 echo "$as_me:4056: checking if you want to use dmalloc for testing" >&5
4057 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
4059 # Check whether --with-dmalloc or --without-dmalloc was given.
4060 if test "${with_dmalloc+set}" = set; then
4061 withval="$with_dmalloc"
4062 cat >>confdefs.h <<\EOF
4063 #define USE_DMALLOC 1
4066 : ${with_cflags:=-g}
4067 : ${with_no_leaks:=yes}
4072 echo "$as_me:4072: result: ${with_dmalloc:-no}" >&5
4073 echo "${ECHO_T}${with_dmalloc:-no}" >&6
4075 case .$with_cflags in #(vi
4077 case .$CFLAGS in #(vi
4085 cf_new_extra_cppflags=
4087 for cf_add_cflags in -g
4089 case $cf_fix_cppflags in
4091 case $cf_add_cflags in #(vi
4092 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4093 case $cf_add_cflags in
4095 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4097 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4098 && test -z "${cf_tst_cflags}" \
4099 && cf_fix_cppflags=yes
4101 if test $cf_fix_cppflags = yes ; then
4102 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4104 elif test "${cf_tst_cflags}" = "\"'" ; then
4105 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4111 *$cf_add_cflags) #(vi
4114 case $cf_add_cflags in #(vi
4116 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4118 CPPFLAGS=`echo "$CPPFLAGS" | \
4119 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4120 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4124 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4129 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4134 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4136 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4138 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4139 && test -z "${cf_tst_cflags}" \
4140 && cf_fix_cppflags=no
4145 if test -n "$cf_new_cflags" ; then
4147 CFLAGS="$CFLAGS $cf_new_cflags"
4150 if test -n "$cf_new_cppflags" ; then
4152 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4155 if test -n "$cf_new_extra_cppflags" ; then
4157 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4165 if test "$with_dmalloc" = yes ; then
4166 echo "$as_me:4166: checking for dmalloc.h" >&5
4167 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
4168 if test "${ac_cv_header_dmalloc_h+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 cat >conftest.$ac_ext <<_ACEOF
4172 #line 4172 "configure"
4173 #include "confdefs.h"
4174 #include <dmalloc.h>
4176 if { (eval echo "$as_me:4176: \"$ac_cpp conftest.$ac_ext\"") >&5
4177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4179 egrep -v '^ *\+' conftest.er1 >conftest.err
4181 cat conftest.err >&5
4182 echo "$as_me:4182: \$? = $ac_status" >&5
4183 (exit $ac_status); } >/dev/null; then
4184 if test -s conftest.err; then
4185 ac_cpp_err=$ac_c_preproc_warn_flag
4192 if test -z "$ac_cpp_err"; then
4193 ac_cv_header_dmalloc_h=yes
4195 echo "$as_me: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4197 ac_cv_header_dmalloc_h=no
4199 rm -f conftest.err conftest.$ac_ext
4201 echo "$as_me:4201: result: $ac_cv_header_dmalloc_h" >&5
4202 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
4203 if test $ac_cv_header_dmalloc_h = yes; then
4205 echo "$as_me:4205: checking for dmalloc_debug in -ldmalloc" >&5
4206 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
4207 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 ac_check_lib_save_LIBS=$LIBS
4211 LIBS="-ldmalloc $LIBS"
4212 cat >conftest.$ac_ext <<_ACEOF
4213 #line 4213 "configure"
4214 #include "confdefs.h"
4216 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4222 char dmalloc_debug ();
4231 rm -f conftest.$ac_objext conftest$ac_exeext
4232 if { (eval echo "$as_me:4232: \"$ac_link\"") >&5
4233 (eval $ac_link) 2>&5
4235 echo "$as_me:4235: \$? = $ac_status" >&5
4236 (exit $ac_status); } &&
4237 { ac_try='test -s conftest$ac_exeext'
4238 { (eval echo "$as_me:4238: \"$ac_try\"") >&5
4241 echo "$as_me:4241: \$? = $ac_status" >&5
4242 (exit $ac_status); }; }; then
4243 ac_cv_lib_dmalloc_dmalloc_debug=yes
4245 echo "$as_me: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4247 ac_cv_lib_dmalloc_dmalloc_debug=no
4249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4250 LIBS=$ac_check_lib_save_LIBS
4252 echo "$as_me:4252: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
4253 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
4254 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
4255 cat >>confdefs.h <<EOF
4256 #define HAVE_LIBDMALLOC 1
4259 LIBS="-ldmalloc $LIBS"
4267 echo "$as_me:4267: checking if you want to use dbmalloc for testing" >&5
4268 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
4270 # Check whether --with-dbmalloc or --without-dbmalloc was given.
4271 if test "${with_dbmalloc+set}" = set; then
4272 withval="$with_dbmalloc"
4273 cat >>confdefs.h <<\EOF
4274 #define USE_DBMALLOC 1
4277 : ${with_cflags:=-g}
4278 : ${with_no_leaks:=yes}
4283 echo "$as_me:4283: result: ${with_dbmalloc:-no}" >&5
4284 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
4286 case .$with_cflags in #(vi
4288 case .$CFLAGS in #(vi
4296 cf_new_extra_cppflags=
4298 for cf_add_cflags in -g
4300 case $cf_fix_cppflags in
4302 case $cf_add_cflags in #(vi
4303 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4304 case $cf_add_cflags in
4306 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4308 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4309 && test -z "${cf_tst_cflags}" \
4310 && cf_fix_cppflags=yes
4312 if test $cf_fix_cppflags = yes ; then
4313 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4315 elif test "${cf_tst_cflags}" = "\"'" ; then
4316 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4322 *$cf_add_cflags) #(vi
4325 case $cf_add_cflags in #(vi
4327 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4329 CPPFLAGS=`echo "$CPPFLAGS" | \
4330 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4331 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4335 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4340 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4345 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4347 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4349 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4350 && test -z "${cf_tst_cflags}" \
4351 && cf_fix_cppflags=no
4356 if test -n "$cf_new_cflags" ; then
4358 CFLAGS="$CFLAGS $cf_new_cflags"
4361 if test -n "$cf_new_cppflags" ; then
4363 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4366 if test -n "$cf_new_extra_cppflags" ; then
4368 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4376 if test "$with_dbmalloc" = yes ; then
4377 echo "$as_me:4377: checking for dbmalloc.h" >&5
4378 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
4379 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 cat >conftest.$ac_ext <<_ACEOF
4383 #line 4383 "configure"
4384 #include "confdefs.h"
4385 #include <dbmalloc.h>
4387 if { (eval echo "$as_me:4387: \"$ac_cpp conftest.$ac_ext\"") >&5
4388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4390 egrep -v '^ *\+' conftest.er1 >conftest.err
4392 cat conftest.err >&5
4393 echo "$as_me:4393: \$? = $ac_status" >&5
4394 (exit $ac_status); } >/dev/null; then
4395 if test -s conftest.err; then
4396 ac_cpp_err=$ac_c_preproc_warn_flag
4403 if test -z "$ac_cpp_err"; then
4404 ac_cv_header_dbmalloc_h=yes
4406 echo "$as_me: failed program was:" >&5
4407 cat conftest.$ac_ext >&5
4408 ac_cv_header_dbmalloc_h=no
4410 rm -f conftest.err conftest.$ac_ext
4412 echo "$as_me:4412: result: $ac_cv_header_dbmalloc_h" >&5
4413 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
4414 if test $ac_cv_header_dbmalloc_h = yes; then
4416 echo "$as_me:4416: checking for debug_malloc in -ldbmalloc" >&5
4417 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
4418 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4421 ac_check_lib_save_LIBS=$LIBS
4422 LIBS="-ldbmalloc $LIBS"
4423 cat >conftest.$ac_ext <<_ACEOF
4424 #line 4424 "configure"
4425 #include "confdefs.h"
4427 /* Override any gcc2 internal prototype to avoid an error. */
4431 /* We use char because int might match the return type of a gcc2
4432 builtin and then its argument prototype would still apply. */
4433 char debug_malloc ();
4442 rm -f conftest.$ac_objext conftest$ac_exeext
4443 if { (eval echo "$as_me:4443: \"$ac_link\"") >&5
4444 (eval $ac_link) 2>&5
4446 echo "$as_me:4446: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try='test -s conftest$ac_exeext'
4449 { (eval echo "$as_me:4449: \"$ac_try\"") >&5
4452 echo "$as_me:4452: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4454 ac_cv_lib_dbmalloc_debug_malloc=yes
4456 echo "$as_me: failed program was:" >&5
4457 cat conftest.$ac_ext >&5
4458 ac_cv_lib_dbmalloc_debug_malloc=no
4460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4461 LIBS=$ac_check_lib_save_LIBS
4463 echo "$as_me:4463: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
4464 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
4465 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
4466 cat >>confdefs.h <<EOF
4467 #define HAVE_LIBDBMALLOC 1
4470 LIBS="-ldbmalloc $LIBS"
4478 echo "$as_me:4478: checking if you want to use valgrind for testing" >&5
4479 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
4481 # Check whether --with-valgrind or --without-valgrind was given.
4482 if test "${with_valgrind+set}" = set; then
4483 withval="$with_valgrind"
4484 cat >>confdefs.h <<\EOF
4485 #define USE_VALGRIND 1
4488 : ${with_cflags:=-g}
4489 : ${with_no_leaks:=yes}
4494 echo "$as_me:4494: result: ${with_valgrind:-no}" >&5
4495 echo "${ECHO_T}${with_valgrind:-no}" >&6
4497 case .$with_cflags in #(vi
4499 case .$CFLAGS in #(vi
4507 cf_new_extra_cppflags=
4509 for cf_add_cflags in -g
4511 case $cf_fix_cppflags in
4513 case $cf_add_cflags in #(vi
4514 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4515 case $cf_add_cflags in
4517 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4519 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4520 && test -z "${cf_tst_cflags}" \
4521 && cf_fix_cppflags=yes
4523 if test $cf_fix_cppflags = yes ; then
4524 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4526 elif test "${cf_tst_cflags}" = "\"'" ; then
4527 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4533 *$cf_add_cflags) #(vi
4536 case $cf_add_cflags in #(vi
4538 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4540 CPPFLAGS=`echo "$CPPFLAGS" | \
4541 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4542 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4546 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4551 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4556 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4558 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4560 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4561 && test -z "${cf_tst_cflags}" \
4562 && cf_fix_cppflags=no
4567 if test -n "$cf_new_cflags" ; then
4569 CFLAGS="$CFLAGS $cf_new_cflags"
4572 if test -n "$cf_new_cppflags" ; then
4574 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4577 if test -n "$cf_new_extra_cppflags" ; then
4579 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4587 echo "$as_me:4587: checking if you want to perform memory-leak testing" >&5
4588 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
4590 # Check whether --enable-leaks or --disable-leaks was given.
4591 if test "${enable_leaks+set}" = set; then
4592 enableval="$enable_leaks"
4593 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
4595 : ${with_no_leaks:=no}
4597 echo "$as_me:4597: result: $with_no_leaks" >&5
4598 echo "${ECHO_T}$with_no_leaks" >&6
4600 if test "$with_no_leaks" = yes ; then
4601 cat >>confdefs.h <<\EOF
4605 cat >>confdefs.h <<\EOF
4606 #define YY_NO_LEAKS 1
4611 echo "$as_me:4611: checking for specific curses-directory" >&5
4612 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4614 # Check whether --with-curses-dir or --without-curses-dir was given.
4615 if test "${with_curses_dir+set}" = set; then
4616 withval="$with_curses_dir"
4617 cf_cv_curses_dir=$withval
4621 echo "$as_me:4621: result: $cf_cv_curses_dir" >&5
4622 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4624 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4627 if test "x$prefix" != xNONE; then
4628 cf_path_syntax="$prefix"
4630 cf_path_syntax="$ac_default_prefix"
4633 case ".$withval" in #(vi
4634 .\$\(*\)*|.\'*\'*) #(vi
4638 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4641 eval withval="$withval"
4642 case ".$withval" in #(vi
4644 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4649 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4652 { { echo "$as_me:4652: error: expected a pathname, not \"$withval\"" >&5
4653 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4654 { (exit 1); exit 1; }; }
4658 if test -d "$cf_cv_curses_dir"
4661 if test -n "$cf_cv_curses_dir/include" ; then
4662 for cf_add_incdir in $cf_cv_curses_dir/include
4664 while test $cf_add_incdir != /usr/include
4666 if test -d $cf_add_incdir
4669 if test -n "$CFLAGS$CPPFLAGS" ; then
4670 # a loop is needed to ensure we can add subdirs of existing dirs
4671 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4672 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4673 cf_have_incdir=yes; break
4678 if test "$cf_have_incdir" = no ; then
4679 if test "$cf_add_incdir" = /usr/local/include ; then
4680 if test "$GCC" = yes
4682 cf_save_CPPFLAGS=$CPPFLAGS
4683 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4684 cat >conftest.$ac_ext <<_ACEOF
4685 #line 4685 "configure"
4686 #include "confdefs.h"
4696 rm -f conftest.$ac_objext
4697 if { (eval echo "$as_me:4697: \"$ac_compile\"") >&5
4698 (eval $ac_compile) 2>&5
4700 echo "$as_me:4700: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
4702 { ac_try='test -s conftest.$ac_objext'
4703 { (eval echo "$as_me:4703: \"$ac_try\"") >&5
4706 echo "$as_me:4706: \$? = $ac_status" >&5
4707 (exit $ac_status); }; }; then
4710 echo "$as_me: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4714 rm -f conftest.$ac_objext conftest.$ac_ext
4715 CPPFLAGS=$cf_save_CPPFLAGS
4720 if test "$cf_have_incdir" = no ; then
4721 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4723 echo "${as_me:-configure}:4723: testing adding $cf_add_incdir to include-path ..." 1>&5
4725 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4727 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4728 test "$cf_top_incdir" = "$cf_add_incdir" && break
4729 cf_add_incdir="$cf_top_incdir"
4738 if test -n "$cf_cv_curses_dir/lib" ; then
4739 for cf_add_libdir in $cf_cv_curses_dir/lib
4741 if test $cf_add_libdir = /usr/lib ; then
4743 elif test -d $cf_add_libdir
4746 if test -n "$LDFLAGS$LIBS" ; then
4747 # a loop is needed to ensure we can add subdirs of existing dirs
4748 for cf_test_libdir in $LDFLAGS $LIBS ; do
4749 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4750 cf_have_libdir=yes; break
4754 if test "$cf_have_libdir" = no ; then
4755 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4757 echo "${as_me:-configure}:4757: testing adding $cf_add_libdir to library-path ..." 1>&5
4759 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4768 # Check whether --with-5lib or --without-5lib was given.
4769 if test "${with_5lib+set}" = set; then
4770 withval="$with_5lib"
4771 LIBS="-L/usr/5lib $LIBS"
4772 CPPFLAGS="$CPPFLAGS -I/usr/5include"
4775 # Check whether --with-ncursesw or --without-ncursesw was given.
4776 if test "${with_ncursesw+set}" = set; then
4777 withval="$with_ncursesw"
4778 cf_cv_screen=ncursesw
4781 # Check whether --with-ncurses or --without-ncurses was given.
4782 if test "${with_ncurses+set}" = set; then
4783 withval="$with_ncurses"
4784 cf_cv_screen=ncurses
4787 # Check whether --with-pdcurses or --without-pdcurses was given.
4788 if test "${with_pdcurses+set}" = set; then
4789 withval="$with_pdcurses"
4790 cf_cv_screen=pdcurses
4795 case $cf_cv_screen in
4798 echo "$as_me:4798: checking for extra include directories" >&5
4799 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
4800 if test "${cf_cv_curses_incdir+set}" = set; then
4801 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 cf_cv_curses_incdir=no
4805 case $host_os in #(vi
4807 test -d /usr/include/curses_colr && \
4808 cf_cv_curses_incdir="-I/usr/include/curses_colr"
4811 test -d /usr/5lib && \
4812 test -d /usr/5include && \
4813 cf_cv_curses_incdir="-I/usr/5include"
4818 echo "$as_me:4818: result: $cf_cv_curses_incdir" >&5
4819 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
4820 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
4822 echo "$as_me:4822: checking if we have identified curses headers" >&5
4823 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4824 if test "${cf_cv_ncurses_header+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 cf_cv_ncurses_header=none
4831 ncurses.h ncurses/curses.h ncurses/ncurses.h
4833 cat >conftest.$ac_ext <<_ACEOF
4834 #line 4834 "configure"
4835 #include "confdefs.h"
4836 #include <${cf_header}>
4840 initscr(); tgoto("?", 0,0)
4845 rm -f conftest.$ac_objext
4846 if { (eval echo "$as_me:4846: \"$ac_compile\"") >&5
4847 (eval $ac_compile) 2>&5
4849 echo "$as_me:4849: \$? = $ac_status" >&5
4850 (exit $ac_status); } &&
4851 { ac_try='test -s conftest.$ac_objext'
4852 { (eval echo "$as_me:4852: \"$ac_try\"") >&5
4855 echo "$as_me:4855: \$? = $ac_status" >&5
4856 (exit $ac_status); }; }; then
4857 cf_cv_ncurses_header=$cf_header; break
4859 echo "$as_me: failed program was:" >&5
4860 cat conftest.$ac_ext >&5
4862 rm -f conftest.$ac_objext conftest.$ac_ext
4866 echo "$as_me:4866: result: $cf_cv_ncurses_header" >&5
4867 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4869 if test "$cf_cv_ncurses_header" = none ; then
4870 { { echo "$as_me:4870: error: No curses header-files found" >&5
4871 echo "$as_me: error: No curses header-files found" >&2;}
4872 { (exit 1); exit 1; }; }
4875 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4877 for ac_header in $cf_cv_ncurses_header
4879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4880 echo "$as_me:4880: checking for $ac_header" >&5
4881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 cat >conftest.$ac_ext <<_ACEOF
4886 #line 4886 "configure"
4887 #include "confdefs.h"
4888 #include <$ac_header>
4890 if { (eval echo "$as_me:4890: \"$ac_cpp conftest.$ac_ext\"") >&5
4891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4893 egrep -v '^ *\+' conftest.er1 >conftest.err
4895 cat conftest.err >&5
4896 echo "$as_me:4896: \$? = $ac_status" >&5
4897 (exit $ac_status); } >/dev/null; then
4898 if test -s conftest.err; then
4899 ac_cpp_err=$ac_c_preproc_warn_flag
4906 if test -z "$ac_cpp_err"; then
4907 eval "$as_ac_Header=yes"
4909 echo "$as_me: failed program was:" >&5
4910 cat conftest.$ac_ext >&5
4911 eval "$as_ac_Header=no"
4913 rm -f conftest.err conftest.$ac_ext
4915 echo "$as_me:4915: result: `eval echo '${'$as_ac_Header'}'`" >&5
4916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4918 cat >>confdefs.h <<EOF
4919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4925 echo "$as_me:4925: checking for terminfo header" >&5
4926 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4927 if test "${cf_cv_term_header+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4931 case ${cf_cv_ncurses_header} in #(vi
4932 */ncurses.h|*/ncursesw.h) #(vi
4933 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4936 cf_term_header=term.h
4940 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4942 cat >conftest.$ac_ext <<_ACEOF
4943 #line 4943 "configure"
4944 #include "confdefs.h"
4946 #include <${cf_cv_ncurses_header:-curses.h}>
4952 int x = auto_left_margin
4957 rm -f conftest.$ac_objext
4958 if { (eval echo "$as_me:4958: \"$ac_compile\"") >&5
4959 (eval $ac_compile) 2>&5
4961 echo "$as_me:4961: \$? = $ac_status" >&5
4962 (exit $ac_status); } &&
4963 { ac_try='test -s conftest.$ac_objext'
4964 { (eval echo "$as_me:4964: \"$ac_try\"") >&5
4967 echo "$as_me:4967: \$? = $ac_status" >&5
4968 (exit $ac_status); }; }; then
4970 cf_cv_term_header="$cf_test"
4972 echo "$as_me: failed program was:" >&5
4973 cat conftest.$ac_ext >&5
4975 cf_cv_term_header=unknown
4978 rm -f conftest.$ac_objext conftest.$ac_ext
4979 test "$cf_cv_term_header" != unknown && break
4983 echo "$as_me:4983: result: $cf_cv_term_header" >&5
4984 echo "${ECHO_T}$cf_cv_term_header" >&6
4986 # Set definitions to allow ifdef'ing to accommodate subdirectories
4988 case $cf_cv_term_header in # (vi
4990 cat >>confdefs.h <<\EOF
4991 #define HAVE_TERM_H 1
4997 case $cf_cv_term_header in # (vi
4998 ncurses/term.h) #(vi
4999 cat >>confdefs.h <<\EOF
5000 #define HAVE_NCURSES_TERM_H 1
5005 cat >>confdefs.h <<\EOF
5006 #define HAVE_NCURSESW_TERM_H 1
5012 echo "$as_me:5012: checking for ncurses version" >&5
5013 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
5014 if test "${cf_cv_ncurses_version+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 cf_cv_ncurses_version=no
5021 if test "$cross_compiling" = yes; then
5023 # This will not work if the preprocessor splits the line after the
5024 # Autoconf token. The 'unproto' program does that.
5025 cat > conftest.$ac_ext <<EOF
5026 #include <${cf_cv_ncurses_header:-curses.h}>
5028 #ifdef NCURSES_VERSION
5029 Autoconf NCURSES_VERSION
5037 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
5038 { (eval echo "$as_me:5038: \"$cf_try\"") >&5
5041 echo "$as_me:5041: \$? = $ac_status" >&5
5042 (exit $ac_status); }
5043 if test -f conftest.out ; then
5044 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
5045 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
5050 cat >conftest.$ac_ext <<_ACEOF
5051 #line 5051 "configure"
5052 #include "confdefs.h"
5054 #include <${cf_cv_ncurses_header:-curses.h}>
5058 FILE *fp = fopen("$cf_tempfile", "w");
5059 #ifdef NCURSES_VERSION
5060 # ifdef NCURSES_VERSION_PATCH
5061 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
5063 fprintf(fp, "%s\n", NCURSES_VERSION);
5067 fprintf(fp, "old\n");
5072 ${cf_cv_main_return:-return}(0);
5075 rm -f conftest$ac_exeext
5076 if { (eval echo "$as_me:5076: \"$ac_link\"") >&5
5077 (eval $ac_link) 2>&5
5079 echo "$as_me:5079: \$? = $ac_status" >&5
5080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5081 { (eval echo "$as_me:5081: \"$ac_try\"") >&5
5084 echo "$as_me:5084: \$? = $ac_status" >&5
5085 (exit $ac_status); }; }; then
5087 cf_cv_ncurses_version=`cat $cf_tempfile`
5089 echo "$as_me: program exited with status $ac_status" >&5
5090 echo "$as_me: failed program was:" >&5
5091 cat conftest.$ac_ext >&5
5093 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5098 echo "$as_me:5098: result: $cf_cv_ncurses_version" >&5
5099 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
5100 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
5104 echo "$as_me:5104: checking if we have identified curses libraries" >&5
5105 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
5106 cat >conftest.$ac_ext <<_ACEOF
5107 #line 5107 "configure"
5108 #include "confdefs.h"
5109 #include <${cf_cv_ncurses_header:-curses.h}>
5113 initscr(); tgoto("?", 0,0)
5118 rm -f conftest.$ac_objext conftest$ac_exeext
5119 if { (eval echo "$as_me:5119: \"$ac_link\"") >&5
5120 (eval $ac_link) 2>&5
5122 echo "$as_me:5122: \$? = $ac_status" >&5
5123 (exit $ac_status); } &&
5124 { ac_try='test -s conftest$ac_exeext'
5125 { (eval echo "$as_me:5125: \"$ac_try\"") >&5
5128 echo "$as_me:5128: \$? = $ac_status" >&5
5129 (exit $ac_status); }; }; then
5132 echo "$as_me: failed program was:" >&5
5133 cat conftest.$ac_ext >&5
5136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5137 echo "$as_me:5137: result: $cf_result" >&5
5138 echo "${ECHO_T}$cf_result" >&6
5140 if test "$cf_result" = no ; then
5141 case $host_os in #(vi
5143 echo "$as_me:5143: checking for tgoto in -lmytinfo" >&5
5144 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5145 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 ac_check_lib_save_LIBS=$LIBS
5149 LIBS="-lmytinfo $LIBS"
5150 cat >conftest.$ac_ext <<_ACEOF
5151 #line 5151 "configure"
5152 #include "confdefs.h"
5154 /* Override any gcc2 internal prototype to avoid an error. */
5158 /* We use char because int might match the return type of a gcc2
5159 builtin and then its argument prototype would still apply. */
5169 rm -f conftest.$ac_objext conftest$ac_exeext
5170 if { (eval echo "$as_me:5170: \"$ac_link\"") >&5
5171 (eval $ac_link) 2>&5
5173 echo "$as_me:5173: \$? = $ac_status" >&5
5174 (exit $ac_status); } &&
5175 { ac_try='test -s conftest$ac_exeext'
5176 { (eval echo "$as_me:5176: \"$ac_try\"") >&5
5179 echo "$as_me:5179: \$? = $ac_status" >&5
5180 (exit $ac_status); }; }; then
5181 ac_cv_lib_mytinfo_tgoto=yes
5183 echo "$as_me: failed program was:" >&5
5184 cat conftest.$ac_ext >&5
5185 ac_cv_lib_mytinfo_tgoto=no
5187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5188 LIBS=$ac_check_lib_save_LIBS
5190 echo "$as_me:5190: result: $ac_cv_lib_mytinfo_tgoto" >&5
5191 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5192 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5193 LIBS="-lmytinfo $LIBS"
5198 echo "$as_me:5198: checking for initscr in -lcur_colr" >&5
5199 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5200 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5201 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 ac_check_lib_save_LIBS=$LIBS
5204 LIBS="-lcur_colr $LIBS"
5205 cat >conftest.$ac_ext <<_ACEOF
5206 #line 5206 "configure"
5207 #include "confdefs.h"
5209 /* Override any gcc2 internal prototype to avoid an error. */
5213 /* We use char because int might match the return type of a gcc2
5214 builtin and then its argument prototype would still apply. */
5224 rm -f conftest.$ac_objext conftest$ac_exeext
5225 if { (eval echo "$as_me:5225: \"$ac_link\"") >&5
5226 (eval $ac_link) 2>&5
5228 echo "$as_me:5228: \$? = $ac_status" >&5
5229 (exit $ac_status); } &&
5230 { ac_try='test -s conftest$ac_exeext'
5231 { (eval echo "$as_me:5231: \"$ac_try\"") >&5
5234 echo "$as_me:5234: \$? = $ac_status" >&5
5235 (exit $ac_status); }; }; then
5236 ac_cv_lib_cur_colr_initscr=yes
5238 echo "$as_me: failed program was:" >&5
5239 cat conftest.$ac_ext >&5
5240 ac_cv_lib_cur_colr_initscr=no
5242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5243 LIBS=$ac_check_lib_save_LIBS
5245 echo "$as_me:5245: result: $ac_cv_lib_cur_colr_initscr" >&5
5246 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5247 if test $ac_cv_lib_cur_colr_initscr = yes; then
5249 LIBS="-lcur_colr $LIBS"
5250 ac_cv_func_initscr=yes
5254 echo "$as_me:5254: checking for initscr in -lHcurses" >&5
5255 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5256 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5259 ac_check_lib_save_LIBS=$LIBS
5260 LIBS="-lHcurses $LIBS"
5261 cat >conftest.$ac_ext <<_ACEOF
5262 #line 5262 "configure"
5263 #include "confdefs.h"
5265 /* Override any gcc2 internal prototype to avoid an error. */
5269 /* We use char because int might match the return type of a gcc2
5270 builtin and then its argument prototype would still apply. */
5280 rm -f conftest.$ac_objext conftest$ac_exeext
5281 if { (eval echo "$as_me:5281: \"$ac_link\"") >&5
5282 (eval $ac_link) 2>&5
5284 echo "$as_me:5284: \$? = $ac_status" >&5
5285 (exit $ac_status); } &&
5286 { ac_try='test -s conftest$ac_exeext'
5287 { (eval echo "$as_me:5287: \"$ac_try\"") >&5
5290 echo "$as_me:5290: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_cv_lib_Hcurses_initscr=yes
5294 echo "$as_me: failed program was:" >&5
5295 cat conftest.$ac_ext >&5
5296 ac_cv_lib_Hcurses_initscr=no
5298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5299 LIBS=$ac_check_lib_save_LIBS
5301 echo "$as_me:5301: result: $ac_cv_lib_Hcurses_initscr" >&5
5302 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5303 if test $ac_cv_lib_Hcurses_initscr = yes; then
5305 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5306 LIBS="-lHcurses $LIBS"
5307 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
5308 ac_cv_func_initscr=yes
5315 linux*) # Suse Linux does not follow /usr/lib convention
5317 if test -n "/lib" ; then
5318 for cf_add_libdir in /lib
5320 if test $cf_add_libdir = /usr/lib ; then
5322 elif test -d $cf_add_libdir
5325 if test -n "$LDFLAGS$LIBS" ; then
5326 # a loop is needed to ensure we can add subdirs of existing dirs
5327 for cf_test_libdir in $LDFLAGS $LIBS ; do
5328 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5329 cf_have_libdir=yes; break
5333 if test "$cf_have_libdir" = no ; then
5334 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5336 echo "${as_me:-configure}:5336: testing adding $cf_add_libdir to library-path ..." 1>&5
5338 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5346 if test -d /usr/5lib ; then
5348 if test -n "/usr/5lib" ; then
5349 for cf_add_libdir in /usr/5lib
5351 if test $cf_add_libdir = /usr/lib ; then
5353 elif test -d $cf_add_libdir
5356 if test -n "$LDFLAGS$LIBS" ; then
5357 # a loop is needed to ensure we can add subdirs of existing dirs
5358 for cf_test_libdir in $LDFLAGS $LIBS ; do
5359 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5360 cf_have_libdir=yes; break
5364 if test "$cf_have_libdir" = no ; then
5365 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5367 echo "${as_me:-configure}:5367: testing adding $cf_add_libdir to library-path ..." 1>&5
5369 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5375 LIBS="-lcurses -ltermcap $LIBS"
5377 ac_cv_func_initscr=yes
5381 if test ".$ac_cv_func_initscr" != .yes ; then
5382 cf_save_LIBS="$LIBS"
5386 if test ".${cf_cv_ncurses_version:-no}" != .no
5388 cf_check_list="ncurses curses cursesX"
5390 cf_check_list="cursesX curses ncurses"
5393 # Check for library containing tgoto. Do this before curses library
5394 # because it may be needed to link the test-case for initscr.
5395 echo "$as_me:5395: checking for tgoto" >&5
5396 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5397 if test "${ac_cv_func_tgoto+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5400 cat >conftest.$ac_ext <<_ACEOF
5401 #line 5401 "configure"
5402 #include "confdefs.h"
5403 /* System header to define __stub macros and hopefully few prototypes,
5404 which can conflict with char tgoto (); below. */
5406 /* Override any gcc2 internal prototype to avoid an error. */
5410 /* We use char because int might match the return type of a gcc2
5411 builtin and then its argument prototype would still apply. */
5418 /* The GNU C library defines this for functions which it implements
5419 to always fail with ENOSYS. Some functions are actually named
5420 something starting with __ and the normal name is an alias. */
5421 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5431 rm -f conftest.$ac_objext conftest$ac_exeext
5432 if { (eval echo "$as_me:5432: \"$ac_link\"") >&5
5433 (eval $ac_link) 2>&5
5435 echo "$as_me:5435: \$? = $ac_status" >&5
5436 (exit $ac_status); } &&
5437 { ac_try='test -s conftest$ac_exeext'
5438 { (eval echo "$as_me:5438: \"$ac_try\"") >&5
5441 echo "$as_me:5441: \$? = $ac_status" >&5
5442 (exit $ac_status); }; }; then
5443 ac_cv_func_tgoto=yes
5445 echo "$as_me: failed program was:" >&5
5446 cat conftest.$ac_ext >&5
5449 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5451 echo "$as_me:5451: result: $ac_cv_func_tgoto" >&5
5452 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5453 if test $ac_cv_func_tgoto = yes; then
5454 cf_term_lib=predefined
5457 for cf_term_lib in $cf_check_list termcap termlib unknown
5459 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5460 echo "$as_me:5460: checking for tgoto in -l$cf_term_lib" >&5
5461 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5462 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 ac_check_lib_save_LIBS=$LIBS
5466 LIBS="-l$cf_term_lib $LIBS"
5467 cat >conftest.$ac_ext <<_ACEOF
5468 #line 5468 "configure"
5469 #include "confdefs.h"
5471 /* Override any gcc2 internal prototype to avoid an error. */
5475 /* We use char because int might match the return type of a gcc2
5476 builtin and then its argument prototype would still apply. */
5486 rm -f conftest.$ac_objext conftest$ac_exeext
5487 if { (eval echo "$as_me:5487: \"$ac_link\"") >&5
5488 (eval $ac_link) 2>&5
5490 echo "$as_me:5490: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -s conftest$ac_exeext'
5493 { (eval echo "$as_me:5493: \"$ac_try\"") >&5
5496 echo "$as_me:5496: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 eval "$as_ac_Lib=yes"
5500 echo "$as_me: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5502 eval "$as_ac_Lib=no"
5504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5505 LIBS=$ac_check_lib_save_LIBS
5507 echo "$as_me:5507: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5508 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5509 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5517 # Check for library containing initscr
5518 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5519 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
5521 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5522 echo "$as_me:5522: checking for initscr in -l$cf_curs_lib" >&5
5523 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5524 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5527 ac_check_lib_save_LIBS=$LIBS
5528 LIBS="-l$cf_curs_lib $LIBS"
5529 cat >conftest.$ac_ext <<_ACEOF
5530 #line 5530 "configure"
5531 #include "confdefs.h"
5533 /* Override any gcc2 internal prototype to avoid an error. */
5537 /* We use char because int might match the return type of a gcc2
5538 builtin and then its argument prototype would still apply. */
5548 rm -f conftest.$ac_objext conftest$ac_exeext
5549 if { (eval echo "$as_me:5549: \"$ac_link\"") >&5
5550 (eval $ac_link) 2>&5
5552 echo "$as_me:5552: \$? = $ac_status" >&5
5553 (exit $ac_status); } &&
5554 { ac_try='test -s conftest$ac_exeext'
5555 { (eval echo "$as_me:5555: \"$ac_try\"") >&5
5558 echo "$as_me:5558: \$? = $ac_status" >&5
5559 (exit $ac_status); }; }; then
5560 eval "$as_ac_Lib=yes"
5562 echo "$as_me: failed program was:" >&5
5563 cat conftest.$ac_ext >&5
5564 eval "$as_ac_Lib=no"
5566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5567 LIBS=$ac_check_lib_save_LIBS
5569 echo "$as_me:5569: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5570 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5571 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5576 test $cf_curs_lib = unknown && { { echo "$as_me:5576: error: no curses library found" >&5
5577 echo "$as_me: error: no curses library found" >&2;}
5578 { (exit 1); exit 1; }; }
5580 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5581 if test "$cf_term_lib" = unknown ; then
5582 echo "$as_me:5582: checking if we can link with $cf_curs_lib library" >&5
5583 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5584 cat >conftest.$ac_ext <<_ACEOF
5585 #line 5585 "configure"
5586 #include "confdefs.h"
5587 #include <${cf_cv_ncurses_header:-curses.h}>
5596 rm -f conftest.$ac_objext conftest$ac_exeext
5597 if { (eval echo "$as_me:5597: \"$ac_link\"") >&5
5598 (eval $ac_link) 2>&5
5600 echo "$as_me:5600: \$? = $ac_status" >&5
5601 (exit $ac_status); } &&
5602 { ac_try='test -s conftest$ac_exeext'
5603 { (eval echo "$as_me:5603: \"$ac_try\"") >&5
5606 echo "$as_me:5606: \$? = $ac_status" >&5
5607 (exit $ac_status); }; }; then
5610 echo "$as_me: failed program was:" >&5
5611 cat conftest.$ac_ext >&5
5614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5615 echo "$as_me:5615: result: $cf_result" >&5
5616 echo "${ECHO_T}$cf_result" >&6
5617 test $cf_result = no && { { echo "$as_me:5617: error: Cannot link curses library" >&5
5618 echo "$as_me: error: Cannot link curses library" >&2;}
5619 { (exit 1); exit 1; }; }
5620 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
5622 elif test "$cf_term_lib" != predefined ; then
5623 echo "$as_me:5623: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5624 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5625 cat >conftest.$ac_ext <<_ACEOF
5626 #line 5626 "configure"
5627 #include "confdefs.h"
5628 #include <${cf_cv_ncurses_header:-curses.h}>
5632 initscr(); tgoto((char *)0, 0, 0);
5637 rm -f conftest.$ac_objext conftest$ac_exeext
5638 if { (eval echo "$as_me:5638: \"$ac_link\"") >&5
5639 (eval $ac_link) 2>&5
5641 echo "$as_me:5641: \$? = $ac_status" >&5
5642 (exit $ac_status); } &&
5643 { ac_try='test -s conftest$ac_exeext'
5644 { (eval echo "$as_me:5644: \"$ac_try\"") >&5
5647 echo "$as_me:5647: \$? = $ac_status" >&5
5648 (exit $ac_status); }; }; then
5651 echo "$as_me: failed program was:" >&5
5652 cat conftest.$ac_ext >&5
5654 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5655 cat >conftest.$ac_ext <<_ACEOF
5656 #line 5656 "configure"
5657 #include "confdefs.h"
5658 #include <${cf_cv_ncurses_header:-curses.h}>
5667 rm -f conftest.$ac_objext conftest$ac_exeext
5668 if { (eval echo "$as_me:5668: \"$ac_link\"") >&5
5669 (eval $ac_link) 2>&5
5671 echo "$as_me:5671: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try='test -s conftest$ac_exeext'
5674 { (eval echo "$as_me:5674: \"$ac_try\"") >&5
5677 echo "$as_me:5677: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5681 echo "$as_me: failed program was:" >&5
5682 cat conftest.$ac_ext >&5
5685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5689 echo "$as_me:5689: result: $cf_result" >&5
5690 echo "${ECHO_T}$cf_result" >&6
5698 cf_ncuconfig_root=ncurses
5700 echo "Looking for ${cf_ncuconfig_root}-config"
5701 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
5703 # Extract the first word of "$ac_prog", so it can be a program name with args.
5704 set dummy $ac_prog; ac_word=$2
5705 echo "$as_me:5705: checking for $ac_word" >&5
5706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5707 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 case $NCURSES_CONFIG in
5712 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
5715 ac_save_IFS=$IFS; IFS=$ac_path_separator
5717 for ac_dir in $ac_dummy; do
5719 test -z "$ac_dir" && ac_dir=.
5720 if $as_executable_p "$ac_dir/$ac_word"; then
5721 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
5722 echo "$as_me:5722: found $ac_dir/$ac_word" >&5
5730 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
5732 if test -n "$NCURSES_CONFIG"; then
5733 echo "$as_me:5733: result: $NCURSES_CONFIG" >&5
5734 echo "${ECHO_T}$NCURSES_CONFIG" >&6
5736 echo "$as_me:5736: result: no" >&5
5737 echo "${ECHO_T}no" >&6
5740 test -n "$NCURSES_CONFIG" && break
5742 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
5744 if test "$NCURSES_CONFIG" != none ; then
5746 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
5747 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
5749 # even with config script, some packages use no-override for curses.h
5751 echo "$as_me:5751: checking if we have identified curses headers" >&5
5752 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
5753 if test "${cf_cv_ncurses_header+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5757 cf_cv_ncurses_header=none
5764 cat >conftest.$ac_ext <<_ACEOF
5765 #line 5765 "configure"
5766 #include "confdefs.h"
5767 #include <${cf_header}>
5771 initscr(); tgoto("?", 0,0)
5776 rm -f conftest.$ac_objext
5777 if { (eval echo "$as_me:5777: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>&5
5780 echo "$as_me:5780: \$? = $ac_status" >&5
5781 (exit $ac_status); } &&
5782 { ac_try='test -s conftest.$ac_objext'
5783 { (eval echo "$as_me:5783: \"$ac_try\"") >&5
5786 echo "$as_me:5786: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5788 cf_cv_ncurses_header=$cf_header; break
5790 echo "$as_me: failed program was:" >&5
5791 cat conftest.$ac_ext >&5
5793 rm -f conftest.$ac_objext conftest.$ac_ext
5797 echo "$as_me:5797: result: $cf_cv_ncurses_header" >&5
5798 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
5800 if test "$cf_cv_ncurses_header" = none ; then
5801 { { echo "$as_me:5801: error: No curses header-files found" >&5
5802 echo "$as_me: error: No curses header-files found" >&2;}
5803 { (exit 1); exit 1; }; }
5806 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
5808 for ac_header in $cf_cv_ncurses_header
5810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5811 echo "$as_me:5811: checking for $ac_header" >&5
5812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 cat >conftest.$ac_ext <<_ACEOF
5817 #line 5817 "configure"
5818 #include "confdefs.h"
5819 #include <$ac_header>
5821 if { (eval echo "$as_me:5821: \"$ac_cpp conftest.$ac_ext\"") >&5
5822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5824 egrep -v '^ *\+' conftest.er1 >conftest.err
5826 cat conftest.err >&5
5827 echo "$as_me:5827: \$? = $ac_status" >&5
5828 (exit $ac_status); } >/dev/null; then
5829 if test -s conftest.err; then
5830 ac_cpp_err=$ac_c_preproc_warn_flag
5837 if test -z "$ac_cpp_err"; then
5838 eval "$as_ac_Header=yes"
5840 echo "$as_me: failed program was:" >&5
5841 cat conftest.$ac_ext >&5
5842 eval "$as_ac_Header=no"
5844 rm -f conftest.err conftest.$ac_ext
5846 echo "$as_me:5846: result: `eval echo '${'$as_ac_Header'}'`" >&5
5847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5849 cat >>confdefs.h <<EOF
5850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5856 cat >>confdefs.h <<\EOF
5860 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5862 cat >>confdefs.h <<EOF
5863 #define $cf_nculib_ROOT 1
5866 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
5870 cf_ncuhdr_root=ncurses
5872 test -n "$cf_cv_curses_dir" && \
5873 test "$cf_cv_curses_dir" != "no" && { \
5875 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
5876 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
5878 while test $cf_add_incdir != /usr/include
5880 if test -d $cf_add_incdir
5883 if test -n "$CFLAGS$CPPFLAGS" ; then
5884 # a loop is needed to ensure we can add subdirs of existing dirs
5885 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5886 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5887 cf_have_incdir=yes; break
5892 if test "$cf_have_incdir" = no ; then
5893 if test "$cf_add_incdir" = /usr/local/include ; then
5894 if test "$GCC" = yes
5896 cf_save_CPPFLAGS=$CPPFLAGS
5897 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5898 cat >conftest.$ac_ext <<_ACEOF
5899 #line 5899 "configure"
5900 #include "confdefs.h"
5910 rm -f conftest.$ac_objext
5911 if { (eval echo "$as_me:5911: \"$ac_compile\"") >&5
5912 (eval $ac_compile) 2>&5
5914 echo "$as_me:5914: \$? = $ac_status" >&5
5915 (exit $ac_status); } &&
5916 { ac_try='test -s conftest.$ac_objext'
5917 { (eval echo "$as_me:5917: \"$ac_try\"") >&5
5920 echo "$as_me:5920: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5924 echo "$as_me: failed program was:" >&5
5925 cat conftest.$ac_ext >&5
5928 rm -f conftest.$ac_objext conftest.$ac_ext
5929 CPPFLAGS=$cf_save_CPPFLAGS
5934 if test "$cf_have_incdir" = no ; then
5935 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5937 echo "${as_me:-configure}:5937: testing adding $cf_add_incdir to include-path ..." 1>&5
5939 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5941 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5942 test "$cf_top_incdir" = "$cf_add_incdir" && break
5943 cf_add_incdir="$cf_top_incdir"
5954 echo "$as_me:5954: checking for $cf_ncuhdr_root header in include-path" >&5
5955 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
5956 if test "${cf_cv_ncurses_h+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
5961 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
5962 for cf_header in $cf_header_list
5965 cat >conftest.$ac_ext <<_ACEOF
5966 #line 5966 "configure"
5967 #include "confdefs.h"
5969 #include <$cf_header>
5974 #ifdef NCURSES_VERSION
5976 printf("%s\n", NCURSES_VERSION);
5989 rm -f conftest.$ac_objext
5990 if { (eval echo "$as_me:5990: \"$ac_compile\"") >&5
5991 (eval $ac_compile) 2>&5
5993 echo "$as_me:5993: \$? = $ac_status" >&5
5994 (exit $ac_status); } &&
5995 { ac_try='test -s conftest.$ac_objext'
5996 { (eval echo "$as_me:5996: \"$ac_try\"") >&5
5999 echo "$as_me:5999: \$? = $ac_status" >&5
6000 (exit $ac_status); }; }; then
6001 cf_cv_ncurses_h=$cf_header
6004 echo "$as_me: failed program was:" >&5
6005 cat conftest.$ac_ext >&5
6008 rm -f conftest.$ac_objext conftest.$ac_ext
6010 test "$cf_cv_ncurses_h" != no && break
6014 echo "$as_me:6014: result: $cf_cv_ncurses_h" >&5
6015 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
6017 if test "$cf_cv_ncurses_h" != no ; then
6018 cf_cv_ncurses_header=$cf_cv_ncurses_h
6021 echo "$as_me:6021: checking for $cf_ncuhdr_root include-path" >&5
6022 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
6023 if test "${cf_cv_ncurses_h2+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 test -n "$verbose" && echo
6031 # collect the current set of include-directories from compiler flags
6032 cf_header_path_list=""
6033 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6034 for cf_header_path in $CPPFLAGS $CFLAGS
6036 case $cf_header_path in #(vi
6038 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6040 test "$cf_header_path" != "NONE" && \
6041 test -d "$cf_header_path" && \
6043 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6044 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6045 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
6046 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
6047 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
6048 test -d $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6051 cf_header_path_list="$cf_header_path_list $cf_search"
6057 # add the variations for the package we are looking for
6061 test "/usr" != "$prefix" && \
6063 (test $prefix = NONE || test "/usr" != "$prefix") && {
6064 test -n "$verbose" && echo " ... testing for include-directories under /usr"
6065 test -d /usr/include && cf_search="$cf_search /usr/include"
6066 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
6067 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
6068 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
6069 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6072 test "$prefix" != "NONE" && \
6073 test -d "$prefix" && \
6075 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6076 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6077 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
6078 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
6079 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
6080 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6083 test "/usr/local" != "$prefix" && \
6084 test -d "/usr/local" && \
6085 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
6086 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
6087 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
6088 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
6089 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
6090 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
6091 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6094 test "/opt" != "$prefix" && \
6096 (test $prefix = NONE || test "/opt" != "$prefix") && {
6097 test -n "$verbose" && echo " ... testing for include-directories under /opt"
6098 test -d /opt/include && cf_search="$cf_search /opt/include"
6099 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
6100 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
6101 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
6102 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6105 test "$HOME" != "$prefix" && \
6106 test -d "$HOME" && \
6107 (test $prefix = NONE || test "$HOME" != "$prefix") && {
6108 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
6109 test -d $HOME/include && cf_search="$cf_search $HOME/include"
6110 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
6111 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
6112 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
6113 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6116 test "$includedir" != NONE && \
6117 test "$includedir" != "/usr/include" && \
6118 test -d "$includedir" && {
6119 test -d $includedir && cf_search="$cf_search $includedir"
6120 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
6123 test "$oldincludedir" != NONE && \
6124 test "$oldincludedir" != "/usr/include" && \
6125 test -d "$oldincludedir" && {
6126 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6127 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
6130 cf_search="$cf_search $cf_header_path_list"
6132 test -n "$verbose" && echo search path $cf_search
6133 cf_save2_CPPFLAGS="$CPPFLAGS"
6134 for cf_incdir in $cf_search
6137 if test -n "$cf_incdir" ; then
6138 for cf_add_incdir in $cf_incdir
6140 while test $cf_add_incdir != /usr/include
6142 if test -d $cf_add_incdir
6145 if test -n "$CFLAGS$CPPFLAGS" ; then
6146 # a loop is needed to ensure we can add subdirs of existing dirs
6147 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6148 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6149 cf_have_incdir=yes; break
6154 if test "$cf_have_incdir" = no ; then
6155 if test "$cf_add_incdir" = /usr/local/include ; then
6156 if test "$GCC" = yes
6158 cf_save_CPPFLAGS=$CPPFLAGS
6159 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6160 cat >conftest.$ac_ext <<_ACEOF
6161 #line 6161 "configure"
6162 #include "confdefs.h"
6172 rm -f conftest.$ac_objext
6173 if { (eval echo "$as_me:6173: \"$ac_compile\"") >&5
6174 (eval $ac_compile) 2>&5
6176 echo "$as_me:6176: \$? = $ac_status" >&5
6177 (exit $ac_status); } &&
6178 { ac_try='test -s conftest.$ac_objext'
6179 { (eval echo "$as_me:6179: \"$ac_try\"") >&5
6182 echo "$as_me:6182: \$? = $ac_status" >&5
6183 (exit $ac_status); }; }; then
6186 echo "$as_me: failed program was:" >&5
6187 cat conftest.$ac_ext >&5
6190 rm -f conftest.$ac_objext conftest.$ac_ext
6191 CPPFLAGS=$cf_save_CPPFLAGS
6196 if test "$cf_have_incdir" = no ; then
6197 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6199 echo "${as_me:-configure}:6199: testing adding $cf_add_incdir to include-path ..." 1>&5
6201 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6203 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6204 test "$cf_top_incdir" = "$cf_add_incdir" && break
6205 cf_add_incdir="$cf_top_incdir"
6219 cat >conftest.$ac_ext <<_ACEOF
6220 #line 6220 "configure"
6221 #include "confdefs.h"
6223 #include <$cf_header>
6228 #ifdef NCURSES_VERSION
6230 printf("%s\n", NCURSES_VERSION);
6243 rm -f conftest.$ac_objext
6244 if { (eval echo "$as_me:6244: \"$ac_compile\"") >&5
6245 (eval $ac_compile) 2>&5
6247 echo "$as_me:6247: \$? = $ac_status" >&5
6248 (exit $ac_status); } &&
6249 { ac_try='test -s conftest.$ac_objext'
6250 { (eval echo "$as_me:6250: \"$ac_try\"") >&5
6253 echo "$as_me:6253: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
6255 cf_cv_ncurses_h2=$cf_header
6258 echo "$as_me: failed program was:" >&5
6259 cat conftest.$ac_ext >&5
6262 rm -f conftest.$ac_objext conftest.$ac_ext
6264 if test "$cf_cv_ncurses_h2" != no ; then
6265 cf_cv_ncurses_h2=$cf_incdir/$cf_header
6266 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
6269 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
6271 CPPFLAGS="$cf_save2_CPPFLAGS"
6272 test "$cf_cv_ncurses_h2" != no && break
6274 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:6274: error: not found" >&5
6275 echo "$as_me: error: not found" >&2;}
6276 { (exit 1); exit 1; }; }
6279 echo "$as_me:6279: result: $cf_cv_ncurses_h2" >&5
6280 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
6282 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
6283 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
6284 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
6285 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
6288 if test -n "$cf_1st_incdir" ; then
6289 for cf_add_incdir in $cf_1st_incdir
6291 while test $cf_add_incdir != /usr/include
6293 if test -d $cf_add_incdir
6296 if test -n "$CFLAGS$CPPFLAGS" ; then
6297 # a loop is needed to ensure we can add subdirs of existing dirs
6298 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6299 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6300 cf_have_incdir=yes; break
6305 if test "$cf_have_incdir" = no ; then
6306 if test "$cf_add_incdir" = /usr/local/include ; then
6307 if test "$GCC" = yes
6309 cf_save_CPPFLAGS=$CPPFLAGS
6310 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6311 cat >conftest.$ac_ext <<_ACEOF
6312 #line 6312 "configure"
6313 #include "confdefs.h"
6323 rm -f conftest.$ac_objext
6324 if { (eval echo "$as_me:6324: \"$ac_compile\"") >&5
6325 (eval $ac_compile) 2>&5
6327 echo "$as_me:6327: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try='test -s conftest.$ac_objext'
6330 { (eval echo "$as_me:6330: \"$ac_try\"") >&5
6333 echo "$as_me:6333: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6337 echo "$as_me: failed program was:" >&5
6338 cat conftest.$ac_ext >&5
6341 rm -f conftest.$ac_objext conftest.$ac_ext
6342 CPPFLAGS=$cf_save_CPPFLAGS
6347 if test "$cf_have_incdir" = no ; then
6348 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6350 echo "${as_me:-configure}:6350: testing adding $cf_add_incdir to include-path ..." 1>&5
6352 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6354 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6355 test "$cf_top_incdir" = "$cf_add_incdir" && break
6356 cf_add_incdir="$cf_top_incdir"
6367 # Set definitions to allow ifdef'ing for ncurses.h
6369 case $cf_cv_ncurses_header in # (vi
6371 cat >>confdefs.h <<\EOF
6372 #define HAVE_NCURSES_H 1
6378 case $cf_cv_ncurses_header in # (vi
6379 ncurses/curses.h|ncurses/ncurses.h)
6380 cat >>confdefs.h <<\EOF
6381 #define HAVE_NCURSES_NCURSES_H 1
6385 ncursesw/curses.h|ncursesw/ncurses.h)
6386 cat >>confdefs.h <<\EOF
6387 #define HAVE_NCURSESW_NCURSES_H 1
6393 echo "$as_me:6393: checking for terminfo header" >&5
6394 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6395 if test "${cf_cv_term_header+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 case ${cf_cv_ncurses_header} in #(vi
6400 */ncurses.h|*/ncursesw.h) #(vi
6401 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6404 cf_term_header=term.h
6408 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6410 cat >conftest.$ac_ext <<_ACEOF
6411 #line 6411 "configure"
6412 #include "confdefs.h"
6414 #include <${cf_cv_ncurses_header:-curses.h}>
6420 int x = auto_left_margin
6425 rm -f conftest.$ac_objext
6426 if { (eval echo "$as_me:6426: \"$ac_compile\"") >&5
6427 (eval $ac_compile) 2>&5
6429 echo "$as_me:6429: \$? = $ac_status" >&5
6430 (exit $ac_status); } &&
6431 { ac_try='test -s conftest.$ac_objext'
6432 { (eval echo "$as_me:6432: \"$ac_try\"") >&5
6435 echo "$as_me:6435: \$? = $ac_status" >&5
6436 (exit $ac_status); }; }; then
6438 cf_cv_term_header="$cf_test"
6440 echo "$as_me: failed program was:" >&5
6441 cat conftest.$ac_ext >&5
6443 cf_cv_term_header=unknown
6446 rm -f conftest.$ac_objext conftest.$ac_ext
6447 test "$cf_cv_term_header" != unknown && break
6451 echo "$as_me:6451: result: $cf_cv_term_header" >&5
6452 echo "${ECHO_T}$cf_cv_term_header" >&6
6454 # Set definitions to allow ifdef'ing to accommodate subdirectories
6456 case $cf_cv_term_header in # (vi
6458 cat >>confdefs.h <<\EOF
6459 #define HAVE_TERM_H 1
6465 case $cf_cv_term_header in # (vi
6466 ncurses/term.h) #(vi
6467 cat >>confdefs.h <<\EOF
6468 #define HAVE_NCURSES_TERM_H 1
6473 cat >>confdefs.h <<\EOF
6474 #define HAVE_NCURSESW_TERM_H 1
6480 # some applications need this, but should check for NCURSES_VERSION
6481 cat >>confdefs.h <<\EOF
6485 echo "$as_me:6485: checking for ncurses version" >&5
6486 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
6487 if test "${cf_cv_ncurses_version+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 cf_cv_ncurses_version=no
6494 if test "$cross_compiling" = yes; then
6496 # This will not work if the preprocessor splits the line after the
6497 # Autoconf token. The 'unproto' program does that.
6498 cat > conftest.$ac_ext <<EOF
6499 #include <${cf_cv_ncurses_header:-curses.h}>
6501 #ifdef NCURSES_VERSION
6502 Autoconf NCURSES_VERSION
6510 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
6511 { (eval echo "$as_me:6511: \"$cf_try\"") >&5
6514 echo "$as_me:6514: \$? = $ac_status" >&5
6515 (exit $ac_status); }
6516 if test -f conftest.out ; then
6517 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
6518 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
6523 cat >conftest.$ac_ext <<_ACEOF
6524 #line 6524 "configure"
6525 #include "confdefs.h"
6527 #include <${cf_cv_ncurses_header:-curses.h}>
6531 FILE *fp = fopen("$cf_tempfile", "w");
6532 #ifdef NCURSES_VERSION
6533 # ifdef NCURSES_VERSION_PATCH
6534 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
6536 fprintf(fp, "%s\n", NCURSES_VERSION);
6540 fprintf(fp, "old\n");
6545 ${cf_cv_main_return:-return}(0);
6548 rm -f conftest$ac_exeext
6549 if { (eval echo "$as_me:6549: \"$ac_link\"") >&5
6550 (eval $ac_link) 2>&5
6552 echo "$as_me:6552: \$? = $ac_status" >&5
6553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6554 { (eval echo "$as_me:6554: \"$ac_try\"") >&5
6557 echo "$as_me:6557: \$? = $ac_status" >&5
6558 (exit $ac_status); }; }; then
6560 cf_cv_ncurses_version=`cat $cf_tempfile`
6562 echo "$as_me: program exited with status $ac_status" >&5
6563 echo "$as_me: failed program was:" >&5
6564 cat conftest.$ac_ext >&5
6566 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6571 echo "$as_me:6571: result: $cf_cv_ncurses_version" >&5
6572 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
6573 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
6577 cf_nculib_root=ncurses
6578 # This works, except for the special case where we find gpm, but
6579 # ncurses is in a nonstandard location via $LIBS, and we really want
6582 cf_ncurses_SAVE="$LIBS"
6583 echo "$as_me:6583: checking for Gpm_Open in -lgpm" >&5
6584 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6585 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 ac_check_lib_save_LIBS=$LIBS
6590 cat >conftest.$ac_ext <<_ACEOF
6591 #line 6591 "configure"
6592 #include "confdefs.h"
6594 /* Override any gcc2 internal prototype to avoid an error. */
6598 /* We use char because int might match the return type of a gcc2
6599 builtin and then its argument prototype would still apply. */
6609 rm -f conftest.$ac_objext conftest$ac_exeext
6610 if { (eval echo "$as_me:6610: \"$ac_link\"") >&5
6611 (eval $ac_link) 2>&5
6613 echo "$as_me:6613: \$? = $ac_status" >&5
6614 (exit $ac_status); } &&
6615 { ac_try='test -s conftest$ac_exeext'
6616 { (eval echo "$as_me:6616: \"$ac_try\"") >&5
6619 echo "$as_me:6619: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6621 ac_cv_lib_gpm_Gpm_Open=yes
6623 echo "$as_me: failed program was:" >&5
6624 cat conftest.$ac_ext >&5
6625 ac_cv_lib_gpm_Gpm_Open=no
6627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6628 LIBS=$ac_check_lib_save_LIBS
6630 echo "$as_me:6630: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6631 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6632 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6633 echo "$as_me:6633: checking for initscr in -lgpm" >&5
6634 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
6635 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 ac_check_lib_save_LIBS=$LIBS
6640 cat >conftest.$ac_ext <<_ACEOF
6641 #line 6641 "configure"
6642 #include "confdefs.h"
6644 /* Override any gcc2 internal prototype to avoid an error. */
6648 /* We use char because int might match the return type of a gcc2
6649 builtin and then its argument prototype would still apply. */
6659 rm -f conftest.$ac_objext conftest$ac_exeext
6660 if { (eval echo "$as_me:6660: \"$ac_link\"") >&5
6661 (eval $ac_link) 2>&5
6663 echo "$as_me:6663: \$? = $ac_status" >&5
6664 (exit $ac_status); } &&
6665 { ac_try='test -s conftest$ac_exeext'
6666 { (eval echo "$as_me:6666: \"$ac_try\"") >&5
6669 echo "$as_me:6669: \$? = $ac_status" >&5
6670 (exit $ac_status); }; }; then
6671 ac_cv_lib_gpm_initscr=yes
6673 echo "$as_me: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6675 ac_cv_lib_gpm_initscr=no
6677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6678 LIBS=$ac_check_lib_save_LIBS
6680 echo "$as_me:6680: result: $ac_cv_lib_gpm_initscr" >&5
6681 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
6682 if test $ac_cv_lib_gpm_initscr = yes; then
6683 LIBS="$cf_ncurses_SAVE"
6685 cf_ncurses_LIBS="-lgpm"
6690 case $host_os in #(vi
6692 # This is only necessary if you are linking against an obsolete
6693 # version of ncurses (but it should do no harm, since it's static).
6694 if test "$cf_nculib_root" = ncurses ; then
6695 echo "$as_me:6695: checking for tgoto in -lmytinfo" >&5
6696 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6697 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 ac_check_lib_save_LIBS=$LIBS
6701 LIBS="-lmytinfo $LIBS"
6702 cat >conftest.$ac_ext <<_ACEOF
6703 #line 6703 "configure"
6704 #include "confdefs.h"
6706 /* Override any gcc2 internal prototype to avoid an error. */
6710 /* We use char because int might match the return type of a gcc2
6711 builtin and then its argument prototype would still apply. */
6721 rm -f conftest.$ac_objext conftest$ac_exeext
6722 if { (eval echo "$as_me:6722: \"$ac_link\"") >&5
6723 (eval $ac_link) 2>&5
6725 echo "$as_me:6725: \$? = $ac_status" >&5
6726 (exit $ac_status); } &&
6727 { ac_try='test -s conftest$ac_exeext'
6728 { (eval echo "$as_me:6728: \"$ac_try\"") >&5
6731 echo "$as_me:6731: \$? = $ac_status" >&5
6732 (exit $ac_status); }; }; then
6733 ac_cv_lib_mytinfo_tgoto=yes
6735 echo "$as_me: failed program was:" >&5
6736 cat conftest.$ac_ext >&5
6737 ac_cv_lib_mytinfo_tgoto=no
6739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6740 LIBS=$ac_check_lib_save_LIBS
6742 echo "$as_me:6742: result: $ac_cv_lib_mytinfo_tgoto" >&5
6743 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
6744 if test $ac_cv_lib_mytinfo_tgoto = yes; then
6745 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
6752 LIBS="$cf_ncurses_LIBS $LIBS"
6754 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
6756 LIBS="-l$cf_nculib_root $LIBS"
6759 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
6761 echo "$as_me:6761: checking for initscr" >&5
6762 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6763 if test "${ac_cv_func_initscr+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 cat >conftest.$ac_ext <<_ACEOF
6767 #line 6767 "configure"
6768 #include "confdefs.h"
6769 /* System header to define __stub macros and hopefully few prototypes,
6770 which can conflict with char initscr (); below. */
6772 /* Override any gcc2 internal prototype to avoid an error. */
6776 /* We use char because int might match the return type of a gcc2
6777 builtin and then its argument prototype would still apply. */
6784 /* The GNU C library defines this for functions which it implements
6785 to always fail with ENOSYS. Some functions are actually named
6786 something starting with __ and the normal name is an alias. */
6787 #if defined (__stub_initscr) || defined (__stub___initscr)
6797 rm -f conftest.$ac_objext conftest$ac_exeext
6798 if { (eval echo "$as_me:6798: \"$ac_link\"") >&5
6799 (eval $ac_link) 2>&5
6801 echo "$as_me:6801: \$? = $ac_status" >&5
6802 (exit $ac_status); } &&
6803 { ac_try='test -s conftest$ac_exeext'
6804 { (eval echo "$as_me:6804: \"$ac_try\"") >&5
6807 echo "$as_me:6807: \$? = $ac_status" >&5
6808 (exit $ac_status); }; }; then
6809 ac_cv_func_initscr=yes
6811 echo "$as_me: failed program was:" >&5
6812 cat conftest.$ac_ext >&5
6813 ac_cv_func_initscr=no
6815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6817 echo "$as_me:6817: result: $ac_cv_func_initscr" >&5
6818 echo "${ECHO_T}$ac_cv_func_initscr" >&6
6819 if test $ac_cv_func_initscr = yes; then
6820 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6823 cf_save_LIBS="$LIBS"
6824 echo "$as_me:6824: checking for initscr in -l$cf_nculib_root" >&5
6825 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
6826 LIBS="-l$cf_nculib_root $LIBS"
6827 cat >conftest.$ac_ext <<_ACEOF
6828 #line 6828 "configure"
6829 #include "confdefs.h"
6830 #include <${cf_cv_ncurses_header:-curses.h}>
6839 rm -f conftest.$ac_objext conftest$ac_exeext
6840 if { (eval echo "$as_me:6840: \"$ac_link\"") >&5
6841 (eval $ac_link) 2>&5
6843 echo "$as_me:6843: \$? = $ac_status" >&5
6844 (exit $ac_status); } &&
6845 { ac_try='test -s conftest$ac_exeext'
6846 { (eval echo "$as_me:6846: \"$ac_try\"") >&5
6849 echo "$as_me:6849: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6851 echo "$as_me:6851: result: yes" >&5
6852 echo "${ECHO_T}yes" >&6
6853 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6856 echo "$as_me: failed program was:" >&5
6857 cat conftest.$ac_ext >&5
6858 echo "$as_me:6858: result: no" >&5
6859 echo "${ECHO_T}no" >&6
6862 cf_library_path_list=""
6863 if test -n "${LDFLAGS}${LIBS}" ; then
6864 for cf_library_path in $LDFLAGS $LIBS
6866 case $cf_library_path in #(vi
6868 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
6870 test "$cf_library_path" != "NONE" && \
6871 test -d "$cf_library_path" && \
6873 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
6874 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
6875 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
6876 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
6877 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
6878 test -d $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root"
6881 cf_library_path_list="$cf_library_path_list $cf_search"
6889 test "/usr" != "$prefix" && \
6891 (test $prefix = NONE || test "/usr" != "$prefix") && {
6892 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
6893 test -d /usr/lib && cf_search="$cf_search /usr/lib"
6894 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
6895 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
6896 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
6897 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
6900 test "$prefix" != "NONE" && \
6901 test -d "$prefix" && \
6903 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
6904 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
6905 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
6906 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
6907 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
6908 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
6911 test "/usr/local" != "$prefix" && \
6912 test -d "/usr/local" && \
6913 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
6914 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
6915 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
6916 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
6917 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
6918 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
6919 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
6922 test "/opt" != "$prefix" && \
6924 (test $prefix = NONE || test "/opt" != "$prefix") && {
6925 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
6926 test -d /opt/lib && cf_search="$cf_search /opt/lib"
6927 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
6928 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
6929 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
6930 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
6933 test "$HOME" != "$prefix" && \
6934 test -d "$HOME" && \
6935 (test $prefix = NONE || test "$HOME" != "$prefix") && {
6936 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
6937 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
6938 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
6939 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
6940 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
6941 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
6944 cf_search="$cf_library_path_list $cf_search"
6946 for cf_libdir in $cf_search
6948 echo "$as_me:6948: checking for -l$cf_nculib_root in $cf_libdir" >&5
6949 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
6950 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
6951 cat >conftest.$ac_ext <<_ACEOF
6952 #line 6952 "configure"
6953 #include "confdefs.h"
6954 #include <${cf_cv_ncurses_header:-curses.h}>
6963 rm -f conftest.$ac_objext conftest$ac_exeext
6964 if { (eval echo "$as_me:6964: \"$ac_link\"") >&5
6965 (eval $ac_link) 2>&5
6967 echo "$as_me:6967: \$? = $ac_status" >&5
6968 (exit $ac_status); } &&
6969 { ac_try='test -s conftest$ac_exeext'
6970 { (eval echo "$as_me:6970: \"$ac_try\"") >&5
6973 echo "$as_me:6973: \$? = $ac_status" >&5
6974 (exit $ac_status); }; }; then
6975 echo "$as_me:6975: result: yes" >&5
6976 echo "${ECHO_T}yes" >&6
6977 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6980 echo "$as_me: failed program was:" >&5
6981 cat conftest.$ac_ext >&5
6982 echo "$as_me:6982: result: no" >&5
6983 echo "${ECHO_T}no" >&6
6984 LIBS="$cf_save_LIBS"
6986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6994 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
6996 if test $cf_found_library = no ; then
6997 { { echo "$as_me:6997: error: Cannot link $cf_nculib_root library" >&5
6998 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
6999 { (exit 1); exit 1; }; }
7004 if test -n "$cf_ncurses_LIBS" ; then
7005 echo "$as_me:7005: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
7006 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
7007 cf_ncurses_SAVE="$LIBS"
7008 for p in $cf_ncurses_LIBS ; do
7009 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
7010 if test "$q" != "$LIBS" ; then
7014 cat >conftest.$ac_ext <<_ACEOF
7015 #line 7015 "configure"
7016 #include "confdefs.h"
7017 #include <${cf_cv_ncurses_header:-curses.h}>
7021 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7026 rm -f conftest.$ac_objext conftest$ac_exeext
7027 if { (eval echo "$as_me:7027: \"$ac_link\"") >&5
7028 (eval $ac_link) 2>&5
7030 echo "$as_me:7030: \$? = $ac_status" >&5
7031 (exit $ac_status); } &&
7032 { ac_try='test -s conftest$ac_exeext'
7033 { (eval echo "$as_me:7033: \"$ac_try\"") >&5
7036 echo "$as_me:7036: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7038 echo "$as_me:7038: result: yes" >&5
7039 echo "${ECHO_T}yes" >&6
7041 echo "$as_me: failed program was:" >&5
7042 cat conftest.$ac_ext >&5
7043 echo "$as_me:7043: result: no" >&5
7044 echo "${ECHO_T}no" >&6
7045 LIBS="$cf_ncurses_SAVE"
7047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7050 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7052 cat >>confdefs.h <<EOF
7053 #define $cf_nculib_ROOT 1
7062 echo "$as_me:7062: checking for multibyte character support" >&5
7063 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
7064 if test "${cf_cv_utf8_lib+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 cf_save_LIBS="$LIBS"
7069 cat >conftest.$ac_ext <<_ACEOF
7070 #line 7070 "configure"
7071 #include "confdefs.h"
7082 rm -f conftest.$ac_objext conftest$ac_exeext
7083 if { (eval echo "$as_me:7083: \"$ac_link\"") >&5
7084 (eval $ac_link) 2>&5
7086 echo "$as_me:7086: \$? = $ac_status" >&5
7087 (exit $ac_status); } &&
7088 { ac_try='test -s conftest$ac_exeext'
7089 { (eval echo "$as_me:7089: \"$ac_try\"") >&5
7092 echo "$as_me:7092: \$? = $ac_status" >&5
7093 (exit $ac_status); }; }; then
7096 echo "$as_me: failed program was:" >&5
7097 cat conftest.$ac_ext >&5
7099 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
7100 # will be set on completion of the AC_TRY_LINK below.
7101 cf_cv_header_path_utf8=
7102 cf_cv_library_path_utf8=
7104 echo "${as_me:-configure}:7104: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
7106 cf_save_LIBS="$LIBS"
7108 cat >conftest.$ac_ext <<_ACEOF
7109 #line 7109 "configure"
7110 #include "confdefs.h"
7112 #include <libutf8.h>
7121 rm -f conftest.$ac_objext conftest$ac_exeext
7122 if { (eval echo "$as_me:7122: \"$ac_link\"") >&5
7123 (eval $ac_link) 2>&5
7125 echo "$as_me:7125: \$? = $ac_status" >&5
7126 (exit $ac_status); } &&
7127 { ac_try='test -s conftest$ac_exeext'
7128 { (eval echo "$as_me:7128: \"$ac_try\"") >&5
7131 echo "$as_me:7131: \$? = $ac_status" >&5
7132 (exit $ac_status); }; }; then
7134 cf_cv_find_linkage_utf8=yes
7135 cf_cv_header_path_utf8=/usr/include
7136 cf_cv_library_path_utf8=/usr/lib
7139 echo "$as_me: failed program was:" >&5
7140 cat conftest.$ac_ext >&5
7142 LIBS="-lutf8 $cf_save_LIBS"
7144 cat >conftest.$ac_ext <<_ACEOF
7145 #line 7145 "configure"
7146 #include "confdefs.h"
7148 #include <libutf8.h>
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (eval echo "$as_me:7158: \"$ac_link\"") >&5
7159 (eval $ac_link) 2>&5
7161 echo "$as_me:7161: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
7163 { ac_try='test -s conftest$ac_exeext'
7164 { (eval echo "$as_me:7164: \"$ac_try\"") >&5
7167 echo "$as_me:7167: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7170 cf_cv_find_linkage_utf8=yes
7171 cf_cv_header_path_utf8=/usr/include
7172 cf_cv_library_path_utf8=/usr/lib
7173 cf_cv_library_file_utf8="-lutf8"
7176 echo "$as_me: failed program was:" >&5
7177 cat conftest.$ac_ext >&5
7179 cf_cv_find_linkage_utf8=no
7180 LIBS="$cf_save_LIBS"
7182 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
7184 echo "${as_me:-configure}:7184: testing find linkage for utf8 library ..." 1>&5
7186 echo "${as_me:-configure}:7186: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
7188 cf_save_CPPFLAGS="$CPPFLAGS"
7189 cf_test_CPPFLAGS="$CPPFLAGS"
7193 # collect the current set of include-directories from compiler flags
7194 cf_header_path_list=""
7195 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7196 for cf_header_path in $CPPFLAGS $CFLAGS
7198 case $cf_header_path in #(vi
7200 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7202 test "$cf_header_path" != "NONE" && \
7203 test -d "$cf_header_path" && \
7205 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7206 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7207 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
7208 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
7209 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
7210 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
7213 cf_header_path_list="$cf_header_path_list $cf_search"
7219 # add the variations for the package we are looking for
7223 test "/usr" != "$prefix" && \
7225 (test $prefix = NONE || test "/usr" != "$prefix") && {
7226 test -n "$verbose" && echo " ... testing for include-directories under /usr"
7227 test -d /usr/include && cf_search="$cf_search /usr/include"
7228 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
7229 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
7230 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
7231 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
7234 test "$prefix" != "NONE" && \
7235 test -d "$prefix" && \
7237 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7238 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7239 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
7240 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
7241 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
7242 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
7245 test "/usr/local" != "$prefix" && \
7246 test -d "/usr/local" && \
7247 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
7248 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
7249 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
7250 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
7251 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
7252 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
7253 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
7256 test "/opt" != "$prefix" && \
7258 (test $prefix = NONE || test "/opt" != "$prefix") && {
7259 test -n "$verbose" && echo " ... testing for include-directories under /opt"
7260 test -d /opt/include && cf_search="$cf_search /opt/include"
7261 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
7262 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
7263 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
7264 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
7267 test "$HOME" != "$prefix" && \
7268 test -d "$HOME" && \
7269 (test $prefix = NONE || test "$HOME" != "$prefix") && {
7270 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
7271 test -d $HOME/include && cf_search="$cf_search $HOME/include"
7272 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
7273 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
7274 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
7275 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
7278 test "$includedir" != NONE && \
7279 test "$includedir" != "/usr/include" && \
7280 test -d "$includedir" && {
7281 test -d $includedir && cf_search="$cf_search $includedir"
7282 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
7285 test "$oldincludedir" != NONE && \
7286 test "$oldincludedir" != "/usr/include" && \
7287 test -d "$oldincludedir" && {
7288 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7289 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
7292 cf_search="$cf_search $cf_header_path_list"
7294 for cf_cv_header_path_utf8 in $cf_search
7296 if test -d $cf_cv_header_path_utf8 ; then
7297 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
7299 echo "${as_me:-configure}:7299: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
7301 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
7302 cat >conftest.$ac_ext <<_ACEOF
7303 #line 7303 "configure"
7304 #include "confdefs.h"
7306 #include <libutf8.h>
7315 rm -f conftest.$ac_objext
7316 if { (eval echo "$as_me:7316: \"$ac_compile\"") >&5
7317 (eval $ac_compile) 2>&5
7319 echo "$as_me:7319: \$? = $ac_status" >&5
7320 (exit $ac_status); } &&
7321 { ac_try='test -s conftest.$ac_objext'
7322 { (eval echo "$as_me:7322: \"$ac_try\"") >&5
7325 echo "$as_me:7325: \$? = $ac_status" >&5
7326 (exit $ac_status); }; }; then
7328 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
7330 echo "${as_me:-configure}:7330: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
7332 cf_cv_find_linkage_utf8=maybe
7333 cf_test_CPPFLAGS="$CPPFLAGS"
7336 echo "$as_me: failed program was:" >&5
7337 cat conftest.$ac_ext >&5
7339 CPPFLAGS="$cf_save_CPPFLAGS"
7342 rm -f conftest.$ac_objext conftest.$ac_ext
7346 if test "$cf_cv_find_linkage_utf8" = maybe ; then
7348 echo "${as_me:-configure}:7348: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
7350 cf_save_LIBS="$LIBS"
7351 cf_save_LDFLAGS="$LDFLAGS"
7353 if test "$cf_cv_find_linkage_utf8" != yes ; then
7356 cf_library_path_list=""
7357 if test -n "${LDFLAGS}${LIBS}" ; then
7358 for cf_library_path in $LDFLAGS $LIBS
7360 case $cf_library_path in #(vi
7362 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7364 test "$cf_library_path" != "NONE" && \
7365 test -d "$cf_library_path" && \
7367 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7368 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7369 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
7370 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
7371 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
7372 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
7375 cf_library_path_list="$cf_library_path_list $cf_search"
7383 test "/usr" != "$prefix" && \
7385 (test $prefix = NONE || test "/usr" != "$prefix") && {
7386 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
7387 test -d /usr/lib && cf_search="$cf_search /usr/lib"
7388 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
7389 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
7390 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
7391 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
7394 test "$prefix" != "NONE" && \
7395 test -d "$prefix" && \
7397 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7398 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7399 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
7400 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
7401 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
7402 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
7405 test "/usr/local" != "$prefix" && \
7406 test -d "/usr/local" && \
7407 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
7408 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
7409 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
7410 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
7411 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
7412 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
7413 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
7416 test "/opt" != "$prefix" && \
7418 (test $prefix = NONE || test "/opt" != "$prefix") && {
7419 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
7420 test -d /opt/lib && cf_search="$cf_search /opt/lib"
7421 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
7422 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
7423 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
7424 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
7427 test "$HOME" != "$prefix" && \
7428 test -d "$HOME" && \
7429 (test $prefix = NONE || test "$HOME" != "$prefix") && {
7430 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
7431 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
7432 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
7433 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
7434 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
7435 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
7438 cf_search="$cf_library_path_list $cf_search"
7440 for cf_cv_library_path_utf8 in $cf_search
7442 if test -d $cf_cv_library_path_utf8 ; then
7443 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
7445 echo "${as_me:-configure}:7445: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
7447 CPPFLAGS="$cf_test_CPPFLAGS"
7448 LIBS="-lutf8 $cf_save_LIBS"
7449 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
7450 cat >conftest.$ac_ext <<_ACEOF
7451 #line 7451 "configure"
7452 #include "confdefs.h"
7454 #include <libutf8.h>
7463 rm -f conftest.$ac_objext conftest$ac_exeext
7464 if { (eval echo "$as_me:7464: \"$ac_link\"") >&5
7465 (eval $ac_link) 2>&5
7467 echo "$as_me:7467: \$? = $ac_status" >&5
7468 (exit $ac_status); } &&
7469 { ac_try='test -s conftest$ac_exeext'
7470 { (eval echo "$as_me:7470: \"$ac_try\"") >&5
7473 echo "$as_me:7473: \$? = $ac_status" >&5
7474 (exit $ac_status); }; }; then
7476 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
7478 echo "${as_me:-configure}:7478: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
7480 cf_cv_find_linkage_utf8=yes
7481 cf_cv_library_file_utf8="-lutf8"
7484 echo "$as_me: failed program was:" >&5
7485 cat conftest.$ac_ext >&5
7487 CPPFLAGS="$cf_save_CPPFLAGS"
7488 LIBS="$cf_save_LIBS"
7489 LDFLAGS="$cf_save_LDFLAGS"
7492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7495 CPPFLAGS="$cf_save_CPPFLAGS"
7496 LDFLAGS="$cf_save_LDFLAGS"
7500 cf_cv_find_linkage_utf8=no
7504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7509 LIBS="$cf_save_LIBS"
7511 if test "$cf_cv_find_linkage_utf8" = yes ; then
7512 cf_cv_utf8_lib=add-on
7518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7520 echo "$as_me:7520: result: $cf_cv_utf8_lib" >&5
7521 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
7523 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
7525 if test "$cf_cv_utf8_lib" = "add-on" ; then
7526 cat >>confdefs.h <<\EOF
7527 #define HAVE_LIBUTF8_H 1
7530 if test -n "$cf_cv_header_path_utf8" ; then
7531 for cf_add_incdir in $cf_cv_header_path_utf8
7533 while test $cf_add_incdir != /usr/include
7535 if test -d $cf_add_incdir
7538 if test -n "$CFLAGS$CPPFLAGS" ; then
7539 # a loop is needed to ensure we can add subdirs of existing dirs
7540 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7541 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7542 cf_have_incdir=yes; break
7547 if test "$cf_have_incdir" = no ; then
7548 if test "$cf_add_incdir" = /usr/local/include ; then
7549 if test "$GCC" = yes
7551 cf_save_CPPFLAGS=$CPPFLAGS
7552 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7553 cat >conftest.$ac_ext <<_ACEOF
7554 #line 7554 "configure"
7555 #include "confdefs.h"
7565 rm -f conftest.$ac_objext
7566 if { (eval echo "$as_me:7566: \"$ac_compile\"") >&5
7567 (eval $ac_compile) 2>&5
7569 echo "$as_me:7569: \$? = $ac_status" >&5
7570 (exit $ac_status); } &&
7571 { ac_try='test -s conftest.$ac_objext'
7572 { (eval echo "$as_me:7572: \"$ac_try\"") >&5
7575 echo "$as_me:7575: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7579 echo "$as_me: failed program was:" >&5
7580 cat conftest.$ac_ext >&5
7583 rm -f conftest.$ac_objext conftest.$ac_ext
7584 CPPFLAGS=$cf_save_CPPFLAGS
7589 if test "$cf_have_incdir" = no ; then
7590 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7592 echo "${as_me:-configure}:7592: testing adding $cf_add_incdir to include-path ..." 1>&5
7594 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7596 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7597 test "$cf_top_incdir" = "$cf_add_incdir" && break
7598 cf_add_incdir="$cf_top_incdir"
7607 if test -n "$cf_cv_library_path_utf8" ; then
7608 for cf_add_libdir in $cf_cv_library_path_utf8
7610 if test $cf_add_libdir = /usr/lib ; then
7612 elif test -d $cf_add_libdir
7615 if test -n "$LDFLAGS$LIBS" ; then
7616 # a loop is needed to ensure we can add subdirs of existing dirs
7617 for cf_test_libdir in $LDFLAGS $LIBS ; do
7618 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7619 cf_have_libdir=yes; break
7623 if test "$cf_have_libdir" = no ; then
7624 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7626 echo "${as_me:-configure}:7626: testing adding $cf_add_libdir to library-path ..." 1>&5
7628 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7634 LIBS="$cf_cv_library_file_utf8 $LIBS"
7637 cf_ncuconfig_root=ncursesw
7639 echo "Looking for ${cf_ncuconfig_root}-config"
7640 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
7642 # Extract the first word of "$ac_prog", so it can be a program name with args.
7643 set dummy $ac_prog; ac_word=$2
7644 echo "$as_me:7644: checking for $ac_word" >&5
7645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7646 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 case $NCURSES_CONFIG in
7651 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
7654 ac_save_IFS=$IFS; IFS=$ac_path_separator
7656 for ac_dir in $ac_dummy; do
7658 test -z "$ac_dir" && ac_dir=.
7659 if $as_executable_p "$ac_dir/$ac_word"; then
7660 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
7661 echo "$as_me:7661: found $ac_dir/$ac_word" >&5
7669 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
7671 if test -n "$NCURSES_CONFIG"; then
7672 echo "$as_me:7672: result: $NCURSES_CONFIG" >&5
7673 echo "${ECHO_T}$NCURSES_CONFIG" >&6
7675 echo "$as_me:7675: result: no" >&5
7676 echo "${ECHO_T}no" >&6
7679 test -n "$NCURSES_CONFIG" && break
7681 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
7683 if test "$NCURSES_CONFIG" != none ; then
7685 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
7686 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
7688 # even with config script, some packages use no-override for curses.h
7690 echo "$as_me:7690: checking if we have identified curses headers" >&5
7691 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
7692 if test "${cf_cv_ncurses_header+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
7696 cf_cv_ncurses_header=none
7699 ncursesw/ncurses.h \
7703 cat >conftest.$ac_ext <<_ACEOF
7704 #line 7704 "configure"
7705 #include "confdefs.h"
7706 #include <${cf_header}>
7710 initscr(); tgoto("?", 0,0)
7715 rm -f conftest.$ac_objext
7716 if { (eval echo "$as_me:7716: \"$ac_compile\"") >&5
7717 (eval $ac_compile) 2>&5
7719 echo "$as_me:7719: \$? = $ac_status" >&5
7720 (exit $ac_status); } &&
7721 { ac_try='test -s conftest.$ac_objext'
7722 { (eval echo "$as_me:7722: \"$ac_try\"") >&5
7725 echo "$as_me:7725: \$? = $ac_status" >&5
7726 (exit $ac_status); }; }; then
7727 cf_cv_ncurses_header=$cf_header; break
7729 echo "$as_me: failed program was:" >&5
7730 cat conftest.$ac_ext >&5
7732 rm -f conftest.$ac_objext conftest.$ac_ext
7736 echo "$as_me:7736: result: $cf_cv_ncurses_header" >&5
7737 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
7739 if test "$cf_cv_ncurses_header" = none ; then
7740 { { echo "$as_me:7740: error: No curses header-files found" >&5
7741 echo "$as_me: error: No curses header-files found" >&2;}
7742 { (exit 1); exit 1; }; }
7745 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
7747 for ac_header in $cf_cv_ncurses_header
7749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7750 echo "$as_me:7750: checking for $ac_header" >&5
7751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 cat >conftest.$ac_ext <<_ACEOF
7756 #line 7756 "configure"
7757 #include "confdefs.h"
7758 #include <$ac_header>
7760 if { (eval echo "$as_me:7760: \"$ac_cpp conftest.$ac_ext\"") >&5
7761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7763 egrep -v '^ *\+' conftest.er1 >conftest.err
7765 cat conftest.err >&5
7766 echo "$as_me:7766: \$? = $ac_status" >&5
7767 (exit $ac_status); } >/dev/null; then
7768 if test -s conftest.err; then
7769 ac_cpp_err=$ac_c_preproc_warn_flag
7776 if test -z "$ac_cpp_err"; then
7777 eval "$as_ac_Header=yes"
7779 echo "$as_me: failed program was:" >&5
7780 cat conftest.$ac_ext >&5
7781 eval "$as_ac_Header=no"
7783 rm -f conftest.err conftest.$ac_ext
7785 echo "$as_me:7785: result: `eval echo '${'$as_ac_Header'}'`" >&5
7786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7788 cat >>confdefs.h <<EOF
7789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7795 cat >>confdefs.h <<\EOF
7799 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7801 cat >>confdefs.h <<EOF
7802 #define $cf_nculib_ROOT 1
7805 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
7809 cf_ncuhdr_root=ncursesw
7811 test -n "$cf_cv_curses_dir" && \
7812 test "$cf_cv_curses_dir" != "no" && { \
7814 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
7815 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
7817 while test $cf_add_incdir != /usr/include
7819 if test -d $cf_add_incdir
7822 if test -n "$CFLAGS$CPPFLAGS" ; then
7823 # a loop is needed to ensure we can add subdirs of existing dirs
7824 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7825 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7826 cf_have_incdir=yes; break
7831 if test "$cf_have_incdir" = no ; then
7832 if test "$cf_add_incdir" = /usr/local/include ; then
7833 if test "$GCC" = yes
7835 cf_save_CPPFLAGS=$CPPFLAGS
7836 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7837 cat >conftest.$ac_ext <<_ACEOF
7838 #line 7838 "configure"
7839 #include "confdefs.h"
7849 rm -f conftest.$ac_objext
7850 if { (eval echo "$as_me:7850: \"$ac_compile\"") >&5
7851 (eval $ac_compile) 2>&5
7853 echo "$as_me:7853: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try='test -s conftest.$ac_objext'
7856 { (eval echo "$as_me:7856: \"$ac_try\"") >&5
7859 echo "$as_me:7859: \$? = $ac_status" >&5
7860 (exit $ac_status); }; }; then
7863 echo "$as_me: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7867 rm -f conftest.$ac_objext conftest.$ac_ext
7868 CPPFLAGS=$cf_save_CPPFLAGS
7873 if test "$cf_have_incdir" = no ; then
7874 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7876 echo "${as_me:-configure}:7876: testing adding $cf_add_incdir to include-path ..." 1>&5
7878 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7880 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7881 test "$cf_top_incdir" = "$cf_add_incdir" && break
7882 cf_add_incdir="$cf_top_incdir"
7893 echo "$as_me:7893: checking for $cf_ncuhdr_root header in include-path" >&5
7894 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
7895 if test "${cf_cv_ncurses_h+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
7900 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
7901 for cf_header in $cf_header_list
7904 cat >conftest.$ac_ext <<_ACEOF
7905 #line 7905 "configure"
7906 #include "confdefs.h"
7908 #define _XOPEN_SOURCE_EXTENDED
7909 #undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
7910 #define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
7912 #include <$cf_header>
7917 #ifdef NCURSES_VERSION
7923 printf("%s\n", NCURSES_VERSION);
7936 rm -f conftest.$ac_objext
7937 if { (eval echo "$as_me:7937: \"$ac_compile\"") >&5
7938 (eval $ac_compile) 2>&5
7940 echo "$as_me:7940: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try='test -s conftest.$ac_objext'
7943 { (eval echo "$as_me:7943: \"$ac_try\"") >&5
7946 echo "$as_me:7946: \$? = $ac_status" >&5
7947 (exit $ac_status); }; }; then
7948 cf_cv_ncurses_h=$cf_header
7951 echo "$as_me: failed program was:" >&5
7952 cat conftest.$ac_ext >&5
7955 rm -f conftest.$ac_objext conftest.$ac_ext
7957 test "$cf_cv_ncurses_h" != no && break
7961 echo "$as_me:7961: result: $cf_cv_ncurses_h" >&5
7962 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
7964 if test "$cf_cv_ncurses_h" != no ; then
7965 cf_cv_ncurses_header=$cf_cv_ncurses_h
7968 echo "$as_me:7968: checking for $cf_ncuhdr_root include-path" >&5
7969 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
7970 if test "${cf_cv_ncurses_h2+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 test -n "$verbose" && echo
7978 # collect the current set of include-directories from compiler flags
7979 cf_header_path_list=""
7980 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7981 for cf_header_path in $CPPFLAGS $CFLAGS
7983 case $cf_header_path in #(vi
7985 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7987 test "$cf_header_path" != "NONE" && \
7988 test -d "$cf_header_path" && \
7990 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7991 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7992 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
7993 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
7994 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
7995 test -d $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7998 cf_header_path_list="$cf_header_path_list $cf_search"
8004 # add the variations for the package we are looking for
8008 test "/usr" != "$prefix" && \
8010 (test $prefix = NONE || test "/usr" != "$prefix") && {
8011 test -n "$verbose" && echo " ... testing for include-directories under /usr"
8012 test -d /usr/include && cf_search="$cf_search /usr/include"
8013 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
8014 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
8015 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
8016 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8019 test "$prefix" != "NONE" && \
8020 test -d "$prefix" && \
8022 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8023 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8024 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
8025 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
8026 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
8027 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8030 test "/usr/local" != "$prefix" && \
8031 test -d "/usr/local" && \
8032 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8033 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
8034 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
8035 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
8036 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
8037 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
8038 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8041 test "/opt" != "$prefix" && \
8043 (test $prefix = NONE || test "/opt" != "$prefix") && {
8044 test -n "$verbose" && echo " ... testing for include-directories under /opt"
8045 test -d /opt/include && cf_search="$cf_search /opt/include"
8046 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
8047 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
8048 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
8049 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8052 test "$HOME" != "$prefix" && \
8053 test -d "$HOME" && \
8054 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8055 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
8056 test -d $HOME/include && cf_search="$cf_search $HOME/include"
8057 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
8058 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
8059 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
8060 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8063 test "$includedir" != NONE && \
8064 test "$includedir" != "/usr/include" && \
8065 test -d "$includedir" && {
8066 test -d $includedir && cf_search="$cf_search $includedir"
8067 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
8070 test "$oldincludedir" != NONE && \
8071 test "$oldincludedir" != "/usr/include" && \
8072 test -d "$oldincludedir" && {
8073 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8074 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
8077 cf_search="$cf_search $cf_header_path_list"
8079 test -n "$verbose" && echo search path $cf_search
8080 cf_save2_CPPFLAGS="$CPPFLAGS"
8081 for cf_incdir in $cf_search
8084 if test -n "$cf_incdir" ; then
8085 for cf_add_incdir in $cf_incdir
8087 while test $cf_add_incdir != /usr/include
8089 if test -d $cf_add_incdir
8092 if test -n "$CFLAGS$CPPFLAGS" ; then
8093 # a loop is needed to ensure we can add subdirs of existing dirs
8094 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8095 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8096 cf_have_incdir=yes; break
8101 if test "$cf_have_incdir" = no ; then
8102 if test "$cf_add_incdir" = /usr/local/include ; then
8103 if test "$GCC" = yes
8105 cf_save_CPPFLAGS=$CPPFLAGS
8106 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8107 cat >conftest.$ac_ext <<_ACEOF
8108 #line 8108 "configure"
8109 #include "confdefs.h"
8119 rm -f conftest.$ac_objext
8120 if { (eval echo "$as_me:8120: \"$ac_compile\"") >&5
8121 (eval $ac_compile) 2>&5
8123 echo "$as_me:8123: \$? = $ac_status" >&5
8124 (exit $ac_status); } &&
8125 { ac_try='test -s conftest.$ac_objext'
8126 { (eval echo "$as_me:8126: \"$ac_try\"") >&5
8129 echo "$as_me:8129: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8133 echo "$as_me: failed program was:" >&5
8134 cat conftest.$ac_ext >&5
8137 rm -f conftest.$ac_objext conftest.$ac_ext
8138 CPPFLAGS=$cf_save_CPPFLAGS
8143 if test "$cf_have_incdir" = no ; then
8144 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8146 echo "${as_me:-configure}:8146: testing adding $cf_add_incdir to include-path ..." 1>&5
8148 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8150 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8151 test "$cf_top_incdir" = "$cf_add_incdir" && break
8152 cf_add_incdir="$cf_top_incdir"
8166 cat >conftest.$ac_ext <<_ACEOF
8167 #line 8167 "configure"
8168 #include "confdefs.h"
8170 #include <$cf_header>
8175 #ifdef NCURSES_VERSION
8177 printf("%s\n", NCURSES_VERSION);
8190 rm -f conftest.$ac_objext
8191 if { (eval echo "$as_me:8191: \"$ac_compile\"") >&5
8192 (eval $ac_compile) 2>&5
8194 echo "$as_me:8194: \$? = $ac_status" >&5
8195 (exit $ac_status); } &&
8196 { ac_try='test -s conftest.$ac_objext'
8197 { (eval echo "$as_me:8197: \"$ac_try\"") >&5
8200 echo "$as_me:8200: \$? = $ac_status" >&5
8201 (exit $ac_status); }; }; then
8202 cf_cv_ncurses_h2=$cf_header
8205 echo "$as_me: failed program was:" >&5
8206 cat conftest.$ac_ext >&5
8209 rm -f conftest.$ac_objext conftest.$ac_ext
8211 if test "$cf_cv_ncurses_h2" != no ; then
8212 cf_cv_ncurses_h2=$cf_incdir/$cf_header
8213 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
8216 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
8218 CPPFLAGS="$cf_save2_CPPFLAGS"
8219 test "$cf_cv_ncurses_h2" != no && break
8221 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:8221: error: not found" >&5
8222 echo "$as_me: error: not found" >&2;}
8223 { (exit 1); exit 1; }; }
8226 echo "$as_me:8226: result: $cf_cv_ncurses_h2" >&5
8227 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
8229 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
8230 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
8231 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
8232 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
8235 if test -n "$cf_1st_incdir" ; then
8236 for cf_add_incdir in $cf_1st_incdir
8238 while test $cf_add_incdir != /usr/include
8240 if test -d $cf_add_incdir
8243 if test -n "$CFLAGS$CPPFLAGS" ; then
8244 # a loop is needed to ensure we can add subdirs of existing dirs
8245 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8246 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8247 cf_have_incdir=yes; break
8252 if test "$cf_have_incdir" = no ; then
8253 if test "$cf_add_incdir" = /usr/local/include ; then
8254 if test "$GCC" = yes
8256 cf_save_CPPFLAGS=$CPPFLAGS
8257 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8258 cat >conftest.$ac_ext <<_ACEOF
8259 #line 8259 "configure"
8260 #include "confdefs.h"
8270 rm -f conftest.$ac_objext
8271 if { (eval echo "$as_me:8271: \"$ac_compile\"") >&5
8272 (eval $ac_compile) 2>&5
8274 echo "$as_me:8274: \$? = $ac_status" >&5
8275 (exit $ac_status); } &&
8276 { ac_try='test -s conftest.$ac_objext'
8277 { (eval echo "$as_me:8277: \"$ac_try\"") >&5
8280 echo "$as_me:8280: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8284 echo "$as_me: failed program was:" >&5
8285 cat conftest.$ac_ext >&5
8288 rm -f conftest.$ac_objext conftest.$ac_ext
8289 CPPFLAGS=$cf_save_CPPFLAGS
8294 if test "$cf_have_incdir" = no ; then
8295 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8297 echo "${as_me:-configure}:8297: testing adding $cf_add_incdir to include-path ..." 1>&5
8299 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8301 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8302 test "$cf_top_incdir" = "$cf_add_incdir" && break
8303 cf_add_incdir="$cf_top_incdir"
8314 # Set definitions to allow ifdef'ing for ncurses.h
8316 case $cf_cv_ncurses_header in # (vi
8318 cat >>confdefs.h <<\EOF
8319 #define HAVE_NCURSES_H 1
8325 case $cf_cv_ncurses_header in # (vi
8326 ncurses/curses.h|ncurses/ncurses.h)
8327 cat >>confdefs.h <<\EOF
8328 #define HAVE_NCURSES_NCURSES_H 1
8332 ncursesw/curses.h|ncursesw/ncurses.h)
8333 cat >>confdefs.h <<\EOF
8334 #define HAVE_NCURSESW_NCURSES_H 1
8340 echo "$as_me:8340: checking for terminfo header" >&5
8341 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
8342 if test "${cf_cv_term_header+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 case ${cf_cv_ncurses_header} in #(vi
8347 */ncurses.h|*/ncursesw.h) #(vi
8348 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8351 cf_term_header=term.h
8355 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
8357 cat >conftest.$ac_ext <<_ACEOF
8358 #line 8358 "configure"
8359 #include "confdefs.h"
8361 #include <${cf_cv_ncurses_header:-curses.h}>
8367 int x = auto_left_margin
8372 rm -f conftest.$ac_objext
8373 if { (eval echo "$as_me:8373: \"$ac_compile\"") >&5
8374 (eval $ac_compile) 2>&5
8376 echo "$as_me:8376: \$? = $ac_status" >&5
8377 (exit $ac_status); } &&
8378 { ac_try='test -s conftest.$ac_objext'
8379 { (eval echo "$as_me:8379: \"$ac_try\"") >&5
8382 echo "$as_me:8382: \$? = $ac_status" >&5
8383 (exit $ac_status); }; }; then
8385 cf_cv_term_header="$cf_test"
8387 echo "$as_me: failed program was:" >&5
8388 cat conftest.$ac_ext >&5
8390 cf_cv_term_header=unknown
8393 rm -f conftest.$ac_objext conftest.$ac_ext
8394 test "$cf_cv_term_header" != unknown && break
8398 echo "$as_me:8398: result: $cf_cv_term_header" >&5
8399 echo "${ECHO_T}$cf_cv_term_header" >&6
8401 # Set definitions to allow ifdef'ing to accommodate subdirectories
8403 case $cf_cv_term_header in # (vi
8405 cat >>confdefs.h <<\EOF
8406 #define HAVE_TERM_H 1
8412 case $cf_cv_term_header in # (vi
8413 ncurses/term.h) #(vi
8414 cat >>confdefs.h <<\EOF
8415 #define HAVE_NCURSES_TERM_H 1
8420 cat >>confdefs.h <<\EOF
8421 #define HAVE_NCURSESW_TERM_H 1
8427 # some applications need this, but should check for NCURSES_VERSION
8428 cat >>confdefs.h <<\EOF
8432 echo "$as_me:8432: checking for ncurses version" >&5
8433 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
8434 if test "${cf_cv_ncurses_version+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 cf_cv_ncurses_version=no
8441 if test "$cross_compiling" = yes; then
8443 # This will not work if the preprocessor splits the line after the
8444 # Autoconf token. The 'unproto' program does that.
8445 cat > conftest.$ac_ext <<EOF
8446 #include <${cf_cv_ncurses_header:-curses.h}>
8448 #ifdef NCURSES_VERSION
8449 Autoconf NCURSES_VERSION
8457 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
8458 { (eval echo "$as_me:8458: \"$cf_try\"") >&5
8461 echo "$as_me:8461: \$? = $ac_status" >&5
8462 (exit $ac_status); }
8463 if test -f conftest.out ; then
8464 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
8465 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
8470 cat >conftest.$ac_ext <<_ACEOF
8471 #line 8471 "configure"
8472 #include "confdefs.h"
8474 #include <${cf_cv_ncurses_header:-curses.h}>
8478 FILE *fp = fopen("$cf_tempfile", "w");
8479 #ifdef NCURSES_VERSION
8480 # ifdef NCURSES_VERSION_PATCH
8481 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
8483 fprintf(fp, "%s\n", NCURSES_VERSION);
8487 fprintf(fp, "old\n");
8492 ${cf_cv_main_return:-return}(0);
8495 rm -f conftest$ac_exeext
8496 if { (eval echo "$as_me:8496: \"$ac_link\"") >&5
8497 (eval $ac_link) 2>&5
8499 echo "$as_me:8499: \$? = $ac_status" >&5
8500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8501 { (eval echo "$as_me:8501: \"$ac_try\"") >&5
8504 echo "$as_me:8504: \$? = $ac_status" >&5
8505 (exit $ac_status); }; }; then
8507 cf_cv_ncurses_version=`cat $cf_tempfile`
8509 echo "$as_me: program exited with status $ac_status" >&5
8510 echo "$as_me: failed program was:" >&5
8511 cat conftest.$ac_ext >&5
8513 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8518 echo "$as_me:8518: result: $cf_cv_ncurses_version" >&5
8519 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
8520 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
8524 cf_nculib_root=ncursesw
8525 # This works, except for the special case where we find gpm, but
8526 # ncurses is in a nonstandard location via $LIBS, and we really want
8529 cf_ncurses_SAVE="$LIBS"
8530 echo "$as_me:8530: checking for Gpm_Open in -lgpm" >&5
8531 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
8532 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
8533 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 ac_check_lib_save_LIBS=$LIBS
8537 cat >conftest.$ac_ext <<_ACEOF
8538 #line 8538 "configure"
8539 #include "confdefs.h"
8541 /* Override any gcc2 internal prototype to avoid an error. */
8545 /* We use char because int might match the return type of a gcc2
8546 builtin and then its argument prototype would still apply. */
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:8557: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>&5
8560 echo "$as_me:8560: \$? = $ac_status" >&5
8561 (exit $ac_status); } &&
8562 { ac_try='test -s conftest$ac_exeext'
8563 { (eval echo "$as_me:8563: \"$ac_try\"") >&5
8566 echo "$as_me:8566: \$? = $ac_status" >&5
8567 (exit $ac_status); }; }; then
8568 ac_cv_lib_gpm_Gpm_Open=yes
8570 echo "$as_me: failed program was:" >&5
8571 cat conftest.$ac_ext >&5
8572 ac_cv_lib_gpm_Gpm_Open=no
8574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8575 LIBS=$ac_check_lib_save_LIBS
8577 echo "$as_me:8577: result: $ac_cv_lib_gpm_Gpm_Open" >&5
8578 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
8579 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
8580 echo "$as_me:8580: checking for initscr in -lgpm" >&5
8581 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
8582 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 ac_check_lib_save_LIBS=$LIBS
8587 cat >conftest.$ac_ext <<_ACEOF
8588 #line 8588 "configure"
8589 #include "confdefs.h"
8591 /* Override any gcc2 internal prototype to avoid an error. */
8595 /* We use char because int might match the return type of a gcc2
8596 builtin and then its argument prototype would still apply. */
8606 rm -f conftest.$ac_objext conftest$ac_exeext
8607 if { (eval echo "$as_me:8607: \"$ac_link\"") >&5
8608 (eval $ac_link) 2>&5
8610 echo "$as_me:8610: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -s conftest$ac_exeext'
8613 { (eval echo "$as_me:8613: \"$ac_try\"") >&5
8616 echo "$as_me:8616: \$? = $ac_status" >&5
8617 (exit $ac_status); }; }; then
8618 ac_cv_lib_gpm_initscr=yes
8620 echo "$as_me: failed program was:" >&5
8621 cat conftest.$ac_ext >&5
8622 ac_cv_lib_gpm_initscr=no
8624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8625 LIBS=$ac_check_lib_save_LIBS
8627 echo "$as_me:8627: result: $ac_cv_lib_gpm_initscr" >&5
8628 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
8629 if test $ac_cv_lib_gpm_initscr = yes; then
8630 LIBS="$cf_ncurses_SAVE"
8632 cf_ncurses_LIBS="-lgpm"
8637 case $host_os in #(vi
8639 # This is only necessary if you are linking against an obsolete
8640 # version of ncurses (but it should do no harm, since it's static).
8641 if test "$cf_nculib_root" = ncurses ; then
8642 echo "$as_me:8642: checking for tgoto in -lmytinfo" >&5
8643 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
8644 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
8645 echo $ECHO_N "(cached) $ECHO_C" >&6
8647 ac_check_lib_save_LIBS=$LIBS
8648 LIBS="-lmytinfo $LIBS"
8649 cat >conftest.$ac_ext <<_ACEOF
8650 #line 8650 "configure"
8651 #include "confdefs.h"
8653 /* Override any gcc2 internal prototype to avoid an error. */
8657 /* We use char because int might match the return type of a gcc2
8658 builtin and then its argument prototype would still apply. */
8668 rm -f conftest.$ac_objext conftest$ac_exeext
8669 if { (eval echo "$as_me:8669: \"$ac_link\"") >&5
8670 (eval $ac_link) 2>&5
8672 echo "$as_me:8672: \$? = $ac_status" >&5
8673 (exit $ac_status); } &&
8674 { ac_try='test -s conftest$ac_exeext'
8675 { (eval echo "$as_me:8675: \"$ac_try\"") >&5
8678 echo "$as_me:8678: \$? = $ac_status" >&5
8679 (exit $ac_status); }; }; then
8680 ac_cv_lib_mytinfo_tgoto=yes
8682 echo "$as_me: failed program was:" >&5
8683 cat conftest.$ac_ext >&5
8684 ac_cv_lib_mytinfo_tgoto=no
8686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8687 LIBS=$ac_check_lib_save_LIBS
8689 echo "$as_me:8689: result: $ac_cv_lib_mytinfo_tgoto" >&5
8690 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
8691 if test $ac_cv_lib_mytinfo_tgoto = yes; then
8692 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
8699 LIBS="$cf_ncurses_LIBS $LIBS"
8701 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
8703 LIBS="-l$cf_nculib_root $LIBS"
8706 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
8708 echo "$as_me:8708: checking for initscr" >&5
8709 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
8710 if test "${ac_cv_func_initscr+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 cat >conftest.$ac_ext <<_ACEOF
8714 #line 8714 "configure"
8715 #include "confdefs.h"
8716 /* System header to define __stub macros and hopefully few prototypes,
8717 which can conflict with char initscr (); below. */
8719 /* Override any gcc2 internal prototype to avoid an error. */
8723 /* We use char because int might match the return type of a gcc2
8724 builtin and then its argument prototype would still apply. */
8731 /* The GNU C library defines this for functions which it implements
8732 to always fail with ENOSYS. Some functions are actually named
8733 something starting with __ and the normal name is an alias. */
8734 #if defined (__stub_initscr) || defined (__stub___initscr)
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (eval echo "$as_me:8745: \"$ac_link\"") >&5
8746 (eval $ac_link) 2>&5
8748 echo "$as_me:8748: \$? = $ac_status" >&5
8749 (exit $ac_status); } &&
8750 { ac_try='test -s conftest$ac_exeext'
8751 { (eval echo "$as_me:8751: \"$ac_try\"") >&5
8754 echo "$as_me:8754: \$? = $ac_status" >&5
8755 (exit $ac_status); }; }; then
8756 ac_cv_func_initscr=yes
8758 echo "$as_me: failed program was:" >&5
8759 cat conftest.$ac_ext >&5
8760 ac_cv_func_initscr=no
8762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8764 echo "$as_me:8764: result: $ac_cv_func_initscr" >&5
8765 echo "${ECHO_T}$ac_cv_func_initscr" >&6
8766 if test $ac_cv_func_initscr = yes; then
8767 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8770 cf_save_LIBS="$LIBS"
8771 echo "$as_me:8771: checking for initscr in -l$cf_nculib_root" >&5
8772 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
8773 LIBS="-l$cf_nculib_root $LIBS"
8774 cat >conftest.$ac_ext <<_ACEOF
8775 #line 8775 "configure"
8776 #include "confdefs.h"
8777 #include <${cf_cv_ncurses_header:-curses.h}>
8786 rm -f conftest.$ac_objext conftest$ac_exeext
8787 if { (eval echo "$as_me:8787: \"$ac_link\"") >&5
8788 (eval $ac_link) 2>&5
8790 echo "$as_me:8790: \$? = $ac_status" >&5
8791 (exit $ac_status); } &&
8792 { ac_try='test -s conftest$ac_exeext'
8793 { (eval echo "$as_me:8793: \"$ac_try\"") >&5
8796 echo "$as_me:8796: \$? = $ac_status" >&5
8797 (exit $ac_status); }; }; then
8798 echo "$as_me:8798: result: yes" >&5
8799 echo "${ECHO_T}yes" >&6
8800 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8803 echo "$as_me: failed program was:" >&5
8804 cat conftest.$ac_ext >&5
8805 echo "$as_me:8805: result: no" >&5
8806 echo "${ECHO_T}no" >&6
8809 cf_library_path_list=""
8810 if test -n "${LDFLAGS}${LIBS}" ; then
8811 for cf_library_path in $LDFLAGS $LIBS
8813 case $cf_library_path in #(vi
8815 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8817 test "$cf_library_path" != "NONE" && \
8818 test -d "$cf_library_path" && \
8820 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8821 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8822 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
8823 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
8824 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
8825 test -d $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root"
8828 cf_library_path_list="$cf_library_path_list $cf_search"
8836 test "/usr" != "$prefix" && \
8838 (test $prefix = NONE || test "/usr" != "$prefix") && {
8839 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
8840 test -d /usr/lib && cf_search="$cf_search /usr/lib"
8841 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
8842 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
8843 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
8844 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
8847 test "$prefix" != "NONE" && \
8848 test -d "$prefix" && \
8850 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8851 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8852 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
8853 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
8854 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
8855 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
8858 test "/usr/local" != "$prefix" && \
8859 test -d "/usr/local" && \
8860 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8861 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
8862 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
8863 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
8864 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
8865 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
8866 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
8869 test "/opt" != "$prefix" && \
8871 (test $prefix = NONE || test "/opt" != "$prefix") && {
8872 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
8873 test -d /opt/lib && cf_search="$cf_search /opt/lib"
8874 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
8875 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
8876 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
8877 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
8880 test "$HOME" != "$prefix" && \
8881 test -d "$HOME" && \
8882 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8883 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
8884 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
8885 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
8886 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
8887 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
8888 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
8891 cf_search="$cf_library_path_list $cf_search"
8893 for cf_libdir in $cf_search
8895 echo "$as_me:8895: checking for -l$cf_nculib_root in $cf_libdir" >&5
8896 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
8897 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
8898 cat >conftest.$ac_ext <<_ACEOF
8899 #line 8899 "configure"
8900 #include "confdefs.h"
8901 #include <${cf_cv_ncurses_header:-curses.h}>
8910 rm -f conftest.$ac_objext conftest$ac_exeext
8911 if { (eval echo "$as_me:8911: \"$ac_link\"") >&5
8912 (eval $ac_link) 2>&5
8914 echo "$as_me:8914: \$? = $ac_status" >&5
8915 (exit $ac_status); } &&
8916 { ac_try='test -s conftest$ac_exeext'
8917 { (eval echo "$as_me:8917: \"$ac_try\"") >&5
8920 echo "$as_me:8920: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
8922 echo "$as_me:8922: result: yes" >&5
8923 echo "${ECHO_T}yes" >&6
8924 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8927 echo "$as_me: failed program was:" >&5
8928 cat conftest.$ac_ext >&5
8929 echo "$as_me:8929: result: no" >&5
8930 echo "${ECHO_T}no" >&6
8931 LIBS="$cf_save_LIBS"
8933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8941 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
8943 if test $cf_found_library = no ; then
8944 { { echo "$as_me:8944: error: Cannot link $cf_nculib_root library" >&5
8945 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
8946 { (exit 1); exit 1; }; }
8951 if test -n "$cf_ncurses_LIBS" ; then
8952 echo "$as_me:8952: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
8953 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
8954 cf_ncurses_SAVE="$LIBS"
8955 for p in $cf_ncurses_LIBS ; do
8956 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
8957 if test "$q" != "$LIBS" ; then
8961 cat >conftest.$ac_ext <<_ACEOF
8962 #line 8962 "configure"
8963 #include "confdefs.h"
8964 #include <${cf_cv_ncurses_header:-curses.h}>
8968 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
8973 rm -f conftest.$ac_objext conftest$ac_exeext
8974 if { (eval echo "$as_me:8974: \"$ac_link\"") >&5
8975 (eval $ac_link) 2>&5
8977 echo "$as_me:8977: \$? = $ac_status" >&5
8978 (exit $ac_status); } &&
8979 { ac_try='test -s conftest$ac_exeext'
8980 { (eval echo "$as_me:8980: \"$ac_try\"") >&5
8983 echo "$as_me:8983: \$? = $ac_status" >&5
8984 (exit $ac_status); }; }; then
8985 echo "$as_me:8985: result: yes" >&5
8986 echo "${ECHO_T}yes" >&6
8988 echo "$as_me: failed program was:" >&5
8989 cat conftest.$ac_ext >&5
8990 echo "$as_me:8990: result: no" >&5
8991 echo "${ECHO_T}no" >&6
8992 LIBS="$cf_ncurses_SAVE"
8994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8997 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8999 cat >>confdefs.h <<EOF
9000 #define $cf_nculib_ROOT 1
9008 echo "$as_me:9008: checking if you want to use pkg-config" >&5
9009 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
9011 # Check whether --with-pkg-config or --without-pkg-config was given.
9012 if test "${with_pkg_config+set}" = set; then
9013 withval="$with_pkg_config"
9014 cf_pkg_config=$withval
9018 echo "$as_me:9018: result: $cf_pkg_config" >&5
9019 echo "${ECHO_T}$cf_pkg_config" >&6
9021 case $cf_pkg_config in #(vi
9026 # Extract the first word of "pkg-config", so it can be a program name with args.
9027 set dummy pkg-config; ac_word=$2
9028 echo "$as_me:9028: checking for $ac_word" >&5
9029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9030 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9035 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9038 ac_save_IFS=$IFS; IFS=$ac_path_separator
9040 for ac_dir in $ac_dummy; do
9042 test -z "$ac_dir" && ac_dir=.
9043 if $as_executable_p "$ac_dir/$ac_word"; then
9044 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
9045 echo "$as_me:9045: found $ac_dir/$ac_word" >&5
9050 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
9054 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9056 if test -n "$PKG_CONFIG"; then
9057 echo "$as_me:9057: result: $PKG_CONFIG" >&5
9058 echo "${ECHO_T}$PKG_CONFIG" >&6
9060 echo "$as_me:9060: result: no" >&5
9061 echo "${ECHO_T}no" >&6
9070 test -z "$PKG_CONFIG" && PKG_CONFIG=none
9071 if test "$PKG_CONFIG" != none ; then
9073 if test "x$prefix" != xNONE; then
9074 cf_path_syntax="$prefix"
9076 cf_path_syntax="$ac_default_prefix"
9079 case ".$PKG_CONFIG" in #(vi
9080 .\$\(*\)*|.\'*\'*) #(vi
9084 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
9087 eval PKG_CONFIG="$PKG_CONFIG"
9088 case ".$PKG_CONFIG" in #(vi
9090 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
9095 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
9098 { { echo "$as_me:9098: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
9099 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
9100 { (exit 1); exit 1; }; }
9106 echo "$as_me:9106: checking for X" >&5
9107 echo $ECHO_N "checking for X... $ECHO_C" >&6
9109 # Check whether --with-x or --without-x was given.
9110 if test "${with_x+set}" = set; then
9114 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9115 if test "x$with_x" = xno; then
9116 # The user explicitly disabled X.
9119 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9120 # Both variables are already set.
9123 if test "${ac_cv_have_x+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 # One or both of the vars are not set, and there is no cached value.
9127 ac_x_includes=no ac_x_libraries=no
9129 if mkdir conftest.dir; then
9131 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9132 cat >Imakefile <<'EOF'
9134 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9136 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9137 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9138 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9139 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9140 for ac_extension in a so sl dylib dll; do
9141 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9142 test -f $ac_im_libdir/libX11.$ac_extension; then
9143 ac_im_usrlibdir=$ac_im_libdir; break
9146 # Screen out bogus values from the imake configuration. They are
9147 # bogus both because they are the default anyway, and because
9148 # using them would break gcc on systems where it needs fixed includes.
9149 case $ac_im_incroot in
9151 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9153 case $ac_im_usrlibdir in
9155 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9162 # Standard set of common directories for X headers.
9163 # Check X11 before X11Rn because it is often a symlink to the current release.
9175 /usr/local/X11/include
9176 /usr/local/X11R6/include
9177 /usr/local/X11R5/include
9178 /usr/local/X11R4/include
9180 /usr/local/include/X11
9181 /usr/local/include/X11R6
9182 /usr/local/include/X11R5
9183 /usr/local/include/X11R4
9187 /usr/XFree86/include/X11
9191 /usr/unsupported/include
9193 /usr/local/x11r5/include
9194 /usr/lpp/Xamples/include
9196 /usr/openwin/include
9197 /usr/openwin/share/include'
9199 if test "$ac_x_includes" = no; then
9200 # Guess where to find include files, by looking for Intrinsic.h.
9201 # First, try using that file with no special directory specified.
9202 cat >conftest.$ac_ext <<_ACEOF
9203 #line 9203 "configure"
9204 #include "confdefs.h"
9205 #include <X11/Intrinsic.h>
9207 if { (eval echo "$as_me:9207: \"$ac_cpp conftest.$ac_ext\"") >&5
9208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9210 egrep -v '^ *\+' conftest.er1 >conftest.err
9212 cat conftest.err >&5
9213 echo "$as_me:9213: \$? = $ac_status" >&5
9214 (exit $ac_status); } >/dev/null; then
9215 if test -s conftest.err; then
9216 ac_cpp_err=$ac_c_preproc_warn_flag
9223 if test -z "$ac_cpp_err"; then
9224 # We can compile using X headers with no special include directory.
9227 echo "$as_me: failed program was:" >&5
9228 cat conftest.$ac_ext >&5
9229 for ac_dir in $ac_x_header_dirs; do
9230 if test -r "$ac_dir/X11/Intrinsic.h"; then
9231 ac_x_includes=$ac_dir
9236 rm -f conftest.err conftest.$ac_ext
9237 fi # $ac_x_includes = no
9239 if test "$ac_x_libraries" = no; then
9240 # Check for the libraries.
9241 # See if we find them without any special options.
9242 # Don't add to $LIBS permanently.
9245 cat >conftest.$ac_ext <<_ACEOF
9246 #line 9246 "configure"
9247 #include "confdefs.h"
9248 #include <X11/Intrinsic.h>
9257 rm -f conftest.$ac_objext conftest$ac_exeext
9258 if { (eval echo "$as_me:9258: \"$ac_link\"") >&5
9259 (eval $ac_link) 2>&5
9261 echo "$as_me:9261: \$? = $ac_status" >&5
9262 (exit $ac_status); } &&
9263 { ac_try='test -s conftest$ac_exeext'
9264 { (eval echo "$as_me:9264: \"$ac_try\"") >&5
9267 echo "$as_me:9267: \$? = $ac_status" >&5
9268 (exit $ac_status); }; }; then
9270 # We can link X programs with no special library path.
9273 echo "$as_me: failed program was:" >&5
9274 cat conftest.$ac_ext >&5
9276 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9278 # Don't even attempt the hair of trying to link an X program!
9279 for ac_extension in a so sl dylib dll; do
9280 if test -r $ac_dir/libXt.$ac_extension; then
9281 ac_x_libraries=$ac_dir
9287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9288 fi # $ac_x_libraries = no
9290 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9291 # Didn't find X anywhere. Cache the known absence of X.
9292 ac_cv_have_x="have_x=no"
9294 # Record where we found X for the cache.
9295 ac_cv_have_x="have_x=yes \
9296 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9301 eval "$ac_cv_have_x"
9304 if test "$have_x" != yes; then
9305 echo "$as_me:9305: result: $have_x" >&5
9306 echo "${ECHO_T}$have_x" >&6
9309 # If each of the values was on the command line, it overrides each guess.
9310 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9311 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9312 # Update the cache value to reflect the command line values.
9313 ac_cv_have_x="have_x=yes \
9314 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9315 echo "$as_me:9315: result: libraries $x_libraries, headers $x_includes" >&5
9316 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9319 if test "$no_x" = yes; then
9320 # Not all programs may use this symbol, but it does not hurt to define it.
9322 cat >>confdefs.h <<\EOF
9323 #define X_DISPLAY_MISSING 1
9326 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9328 if test -n "$x_includes"; then
9329 X_CFLAGS="$X_CFLAGS -I$x_includes"
9332 # It would also be nice to do this for all -L options, not just this one.
9333 if test -n "$x_libraries"; then
9334 X_LIBS="$X_LIBS -L$x_libraries"
9335 # For Solaris; some versions of Sun CC require a space after -R and
9336 # others require no space. Words are not sufficient . . . .
9337 case `(uname -sr) 2>/dev/null` in
9339 echo "$as_me:9339: checking whether -R must be followed by a space" >&5
9340 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9341 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9342 cat >conftest.$ac_ext <<_ACEOF
9343 #line 9343 "configure"
9344 #include "confdefs.h"
9354 rm -f conftest.$ac_objext conftest$ac_exeext
9355 if { (eval echo "$as_me:9355: \"$ac_link\"") >&5
9356 (eval $ac_link) 2>&5
9358 echo "$as_me:9358: \$? = $ac_status" >&5
9359 (exit $ac_status); } &&
9360 { ac_try='test -s conftest$ac_exeext'
9361 { (eval echo "$as_me:9361: \"$ac_try\"") >&5
9364 echo "$as_me:9364: \$? = $ac_status" >&5
9365 (exit $ac_status); }; }; then
9368 echo "$as_me: failed program was:" >&5
9369 cat conftest.$ac_ext >&5
9372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9373 if test $ac_R_nospace = yes; then
9374 echo "$as_me:9374: result: no" >&5
9375 echo "${ECHO_T}no" >&6
9376 X_LIBS="$X_LIBS -R$x_libraries"
9378 LIBS="$ac_xsave_LIBS -R $x_libraries"
9379 cat >conftest.$ac_ext <<_ACEOF
9380 #line 9380 "configure"
9381 #include "confdefs.h"
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:9392: \"$ac_link\"") >&5
9393 (eval $ac_link) 2>&5
9395 echo "$as_me:9395: \$? = $ac_status" >&5
9396 (exit $ac_status); } &&
9397 { ac_try='test -s conftest$ac_exeext'
9398 { (eval echo "$as_me:9398: \"$ac_try\"") >&5
9401 echo "$as_me:9401: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9405 echo "$as_me: failed program was:" >&5
9406 cat conftest.$ac_ext >&5
9409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9410 if test $ac_R_space = yes; then
9411 echo "$as_me:9411: result: yes" >&5
9412 echo "${ECHO_T}yes" >&6
9413 X_LIBS="$X_LIBS -R $x_libraries"
9415 echo "$as_me:9415: result: neither works" >&5
9416 echo "${ECHO_T}neither works" >&6
9423 # Check for system-dependent libraries X programs must link with.
9424 # Do this before checking for the system-independent R6 libraries
9425 # (-lICE), since we may need -lsocket or whatever for X linking.
9427 if test "$ISC" = yes; then
9428 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9430 # Martyn Johnson says this is needed for Ultrix, if the X
9431 # libraries were built with DECnet support. And Karl Berry says
9432 # the Alpha needs dnet_stub (dnet does not exist).
9433 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9434 cat >conftest.$ac_ext <<_ACEOF
9435 #line 9435 "configure"
9436 #include "confdefs.h"
9438 /* Override any gcc2 internal prototype to avoid an error. */
9442 /* We use char because int might match the return type of a gcc2
9443 builtin and then its argument prototype would still apply. */
9444 char XOpenDisplay ();
9453 rm -f conftest.$ac_objext conftest$ac_exeext
9454 if { (eval echo "$as_me:9454: \"$ac_link\"") >&5
9455 (eval $ac_link) 2>&5
9457 echo "$as_me:9457: \$? = $ac_status" >&5
9458 (exit $ac_status); } &&
9459 { ac_try='test -s conftest$ac_exeext'
9460 { (eval echo "$as_me:9460: \"$ac_try\"") >&5
9463 echo "$as_me:9463: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9467 echo "$as_me: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9469 echo "$as_me:9469: checking for dnet_ntoa in -ldnet" >&5
9470 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9471 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 ac_check_lib_save_LIBS=$LIBS
9476 cat >conftest.$ac_ext <<_ACEOF
9477 #line 9477 "configure"
9478 #include "confdefs.h"
9480 /* Override any gcc2 internal prototype to avoid an error. */
9484 /* We use char because int might match the return type of a gcc2
9485 builtin and then its argument prototype would still apply. */
9495 rm -f conftest.$ac_objext conftest$ac_exeext
9496 if { (eval echo "$as_me:9496: \"$ac_link\"") >&5
9497 (eval $ac_link) 2>&5
9499 echo "$as_me:9499: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try='test -s conftest$ac_exeext'
9502 { (eval echo "$as_me:9502: \"$ac_try\"") >&5
9505 echo "$as_me:9505: \$? = $ac_status" >&5
9506 (exit $ac_status); }; }; then
9507 ac_cv_lib_dnet_dnet_ntoa=yes
9509 echo "$as_me: failed program was:" >&5
9510 cat conftest.$ac_ext >&5
9511 ac_cv_lib_dnet_dnet_ntoa=no
9513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9514 LIBS=$ac_check_lib_save_LIBS
9516 echo "$as_me:9516: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9517 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9518 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9519 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9522 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9523 echo "$as_me:9523: checking for dnet_ntoa in -ldnet_stub" >&5
9524 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9525 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 ac_check_lib_save_LIBS=$LIBS
9529 LIBS="-ldnet_stub $LIBS"
9530 cat >conftest.$ac_ext <<_ACEOF
9531 #line 9531 "configure"
9532 #include "confdefs.h"
9534 /* Override any gcc2 internal prototype to avoid an error. */
9538 /* We use char because int might match the return type of a gcc2
9539 builtin and then its argument prototype would still apply. */
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (eval echo "$as_me:9550: \"$ac_link\"") >&5
9551 (eval $ac_link) 2>&5
9553 echo "$as_me:9553: \$? = $ac_status" >&5
9554 (exit $ac_status); } &&
9555 { ac_try='test -s conftest$ac_exeext'
9556 { (eval echo "$as_me:9556: \"$ac_try\"") >&5
9559 echo "$as_me:9559: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
9561 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9563 echo "$as_me: failed program was:" >&5
9564 cat conftest.$ac_ext >&5
9565 ac_cv_lib_dnet_stub_dnet_ntoa=no
9567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9568 LIBS=$ac_check_lib_save_LIBS
9570 echo "$as_me:9570: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9571 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9572 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9573 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9579 LIBS="$ac_xsave_LIBS"
9581 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9582 # to get the SysV transport functions.
9583 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9585 # The nsl library prevents programs from opening the X display
9586 # on Irix 5.2, according to T.E. Dickey.
9587 # The functions gethostbyname, getservbyname, and inet_addr are
9588 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9589 echo "$as_me:9589: checking for gethostbyname" >&5
9590 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9591 if test "${ac_cv_func_gethostbyname+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 cat >conftest.$ac_ext <<_ACEOF
9595 #line 9595 "configure"
9596 #include "confdefs.h"
9597 /* System header to define __stub macros and hopefully few prototypes,
9598 which can conflict with char gethostbyname (); below. */
9600 /* Override any gcc2 internal prototype to avoid an error. */
9604 /* We use char because int might match the return type of a gcc2
9605 builtin and then its argument prototype would still apply. */
9606 char gethostbyname ();
9612 /* The GNU C library defines this for functions which it implements
9613 to always fail with ENOSYS. Some functions are actually named
9614 something starting with __ and the normal name is an alias. */
9615 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9625 rm -f conftest.$ac_objext conftest$ac_exeext
9626 if { (eval echo "$as_me:9626: \"$ac_link\"") >&5
9627 (eval $ac_link) 2>&5
9629 echo "$as_me:9629: \$? = $ac_status" >&5
9630 (exit $ac_status); } &&
9631 { ac_try='test -s conftest$ac_exeext'
9632 { (eval echo "$as_me:9632: \"$ac_try\"") >&5
9635 echo "$as_me:9635: \$? = $ac_status" >&5
9636 (exit $ac_status); }; }; then
9637 ac_cv_func_gethostbyname=yes
9639 echo "$as_me: failed program was:" >&5
9640 cat conftest.$ac_ext >&5
9641 ac_cv_func_gethostbyname=no
9643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9645 echo "$as_me:9645: result: $ac_cv_func_gethostbyname" >&5
9646 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9648 if test $ac_cv_func_gethostbyname = no; then
9649 echo "$as_me:9649: checking for gethostbyname in -lnsl" >&5
9650 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9651 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9654 ac_check_lib_save_LIBS=$LIBS
9656 cat >conftest.$ac_ext <<_ACEOF
9657 #line 9657 "configure"
9658 #include "confdefs.h"
9660 /* Override any gcc2 internal prototype to avoid an error. */
9664 /* We use char because int might match the return type of a gcc2
9665 builtin and then its argument prototype would still apply. */
9666 char gethostbyname ();
9675 rm -f conftest.$ac_objext conftest$ac_exeext
9676 if { (eval echo "$as_me:9676: \"$ac_link\"") >&5
9677 (eval $ac_link) 2>&5
9679 echo "$as_me:9679: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try='test -s conftest$ac_exeext'
9682 { (eval echo "$as_me:9682: \"$ac_try\"") >&5
9685 echo "$as_me:9685: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9687 ac_cv_lib_nsl_gethostbyname=yes
9689 echo "$as_me: failed program was:" >&5
9690 cat conftest.$ac_ext >&5
9691 ac_cv_lib_nsl_gethostbyname=no
9693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9694 LIBS=$ac_check_lib_save_LIBS
9696 echo "$as_me:9696: result: $ac_cv_lib_nsl_gethostbyname" >&5
9697 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9698 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9699 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9702 if test $ac_cv_lib_nsl_gethostbyname = no; then
9703 echo "$as_me:9703: checking for gethostbyname in -lbsd" >&5
9704 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9705 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 ac_check_lib_save_LIBS=$LIBS
9710 cat >conftest.$ac_ext <<_ACEOF
9711 #line 9711 "configure"
9712 #include "confdefs.h"
9714 /* Override any gcc2 internal prototype to avoid an error. */
9718 /* We use char because int might match the return type of a gcc2
9719 builtin and then its argument prototype would still apply. */
9720 char gethostbyname ();
9729 rm -f conftest.$ac_objext conftest$ac_exeext
9730 if { (eval echo "$as_me:9730: \"$ac_link\"") >&5
9731 (eval $ac_link) 2>&5
9733 echo "$as_me:9733: \$? = $ac_status" >&5
9734 (exit $ac_status); } &&
9735 { ac_try='test -s conftest$ac_exeext'
9736 { (eval echo "$as_me:9736: \"$ac_try\"") >&5
9739 echo "$as_me:9739: \$? = $ac_status" >&5
9740 (exit $ac_status); }; }; then
9741 ac_cv_lib_bsd_gethostbyname=yes
9743 echo "$as_me: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9745 ac_cv_lib_bsd_gethostbyname=no
9747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9748 LIBS=$ac_check_lib_save_LIBS
9750 echo "$as_me:9750: result: $ac_cv_lib_bsd_gethostbyname" >&5
9751 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9752 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9753 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9759 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9760 # socket/setsockopt and other routines are undefined under SCO ODT
9761 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9762 # on later versions), says Simon Leinen: it contains gethostby*
9763 # variants that don't use the nameserver (or something). -lsocket
9764 # must be given before -lnsl if both are needed. We assume that
9765 # if connect needs -lnsl, so does gethostbyname.
9766 echo "$as_me:9766: checking for connect" >&5
9767 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9768 if test "${ac_cv_func_connect+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 cat >conftest.$ac_ext <<_ACEOF
9772 #line 9772 "configure"
9773 #include "confdefs.h"
9774 /* System header to define __stub macros and hopefully few prototypes,
9775 which can conflict with char connect (); below. */
9777 /* Override any gcc2 internal prototype to avoid an error. */
9781 /* We use char because int might match the return type of a gcc2
9782 builtin and then its argument prototype would still apply. */
9789 /* The GNU C library defines this for functions which it implements
9790 to always fail with ENOSYS. Some functions are actually named
9791 something starting with __ and the normal name is an alias. */
9792 #if defined (__stub_connect) || defined (__stub___connect)
9802 rm -f conftest.$ac_objext conftest$ac_exeext
9803 if { (eval echo "$as_me:9803: \"$ac_link\"") >&5
9804 (eval $ac_link) 2>&5
9806 echo "$as_me:9806: \$? = $ac_status" >&5
9807 (exit $ac_status); } &&
9808 { ac_try='test -s conftest$ac_exeext'
9809 { (eval echo "$as_me:9809: \"$ac_try\"") >&5
9812 echo "$as_me:9812: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_cv_func_connect=yes
9816 echo "$as_me: failed program was:" >&5
9817 cat conftest.$ac_ext >&5
9818 ac_cv_func_connect=no
9820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9822 echo "$as_me:9822: result: $ac_cv_func_connect" >&5
9823 echo "${ECHO_T}$ac_cv_func_connect" >&6
9825 if test $ac_cv_func_connect = no; then
9826 echo "$as_me:9826: checking for connect in -lsocket" >&5
9827 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9828 if test "${ac_cv_lib_socket_connect+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 ac_check_lib_save_LIBS=$LIBS
9832 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9833 cat >conftest.$ac_ext <<_ACEOF
9834 #line 9834 "configure"
9835 #include "confdefs.h"
9837 /* Override any gcc2 internal prototype to avoid an error. */
9841 /* We use char because int might match the return type of a gcc2
9842 builtin and then its argument prototype would still apply. */
9852 rm -f conftest.$ac_objext conftest$ac_exeext
9853 if { (eval echo "$as_me:9853: \"$ac_link\"") >&5
9854 (eval $ac_link) 2>&5
9856 echo "$as_me:9856: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -s conftest$ac_exeext'
9859 { (eval echo "$as_me:9859: \"$ac_try\"") >&5
9862 echo "$as_me:9862: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864 ac_cv_lib_socket_connect=yes
9866 echo "$as_me: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9868 ac_cv_lib_socket_connect=no
9870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9871 LIBS=$ac_check_lib_save_LIBS
9873 echo "$as_me:9873: result: $ac_cv_lib_socket_connect" >&5
9874 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9875 if test $ac_cv_lib_socket_connect = yes; then
9876 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9881 # Guillermo Gomez says -lposix is necessary on A/UX.
9882 echo "$as_me:9882: checking for remove" >&5
9883 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9884 if test "${ac_cv_func_remove+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9887 cat >conftest.$ac_ext <<_ACEOF
9888 #line 9888 "configure"
9889 #include "confdefs.h"
9890 /* System header to define __stub macros and hopefully few prototypes,
9891 which can conflict with char remove (); below. */
9893 /* Override any gcc2 internal prototype to avoid an error. */
9897 /* We use char because int might match the return type of a gcc2
9898 builtin and then its argument prototype would still apply. */
9905 /* The GNU C library defines this for functions which it implements
9906 to always fail with ENOSYS. Some functions are actually named
9907 something starting with __ and the normal name is an alias. */
9908 #if defined (__stub_remove) || defined (__stub___remove)
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (eval echo "$as_me:9919: \"$ac_link\"") >&5
9920 (eval $ac_link) 2>&5
9922 echo "$as_me:9922: \$? = $ac_status" >&5
9923 (exit $ac_status); } &&
9924 { ac_try='test -s conftest$ac_exeext'
9925 { (eval echo "$as_me:9925: \"$ac_try\"") >&5
9928 echo "$as_me:9928: \$? = $ac_status" >&5
9929 (exit $ac_status); }; }; then
9930 ac_cv_func_remove=yes
9932 echo "$as_me: failed program was:" >&5
9933 cat conftest.$ac_ext >&5
9934 ac_cv_func_remove=no
9936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9938 echo "$as_me:9938: result: $ac_cv_func_remove" >&5
9939 echo "${ECHO_T}$ac_cv_func_remove" >&6
9941 if test $ac_cv_func_remove = no; then
9942 echo "$as_me:9942: checking for remove in -lposix" >&5
9943 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9944 if test "${ac_cv_lib_posix_remove+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9947 ac_check_lib_save_LIBS=$LIBS
9948 LIBS="-lposix $LIBS"
9949 cat >conftest.$ac_ext <<_ACEOF
9950 #line 9950 "configure"
9951 #include "confdefs.h"
9953 /* Override any gcc2 internal prototype to avoid an error. */
9957 /* We use char because int might match the return type of a gcc2
9958 builtin and then its argument prototype would still apply. */
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (eval echo "$as_me:9969: \"$ac_link\"") >&5
9970 (eval $ac_link) 2>&5
9972 echo "$as_me:9972: \$? = $ac_status" >&5
9973 (exit $ac_status); } &&
9974 { ac_try='test -s conftest$ac_exeext'
9975 { (eval echo "$as_me:9975: \"$ac_try\"") >&5
9978 echo "$as_me:9978: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
9980 ac_cv_lib_posix_remove=yes
9982 echo "$as_me: failed program was:" >&5
9983 cat conftest.$ac_ext >&5
9984 ac_cv_lib_posix_remove=no
9986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9987 LIBS=$ac_check_lib_save_LIBS
9989 echo "$as_me:9989: result: $ac_cv_lib_posix_remove" >&5
9990 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9991 if test $ac_cv_lib_posix_remove = yes; then
9992 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9997 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9998 echo "$as_me:9998: checking for shmat" >&5
9999 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10000 if test "${ac_cv_func_shmat+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 cat >conftest.$ac_ext <<_ACEOF
10004 #line 10004 "configure"
10005 #include "confdefs.h"
10006 /* System header to define __stub macros and hopefully few prototypes,
10007 which can conflict with char shmat (); below. */
10008 #include <assert.h>
10009 /* Override any gcc2 internal prototype to avoid an error. */
10013 /* We use char because int might match the return type of a gcc2
10014 builtin and then its argument prototype would still apply. */
10021 /* The GNU C library defines this for functions which it implements
10022 to always fail with ENOSYS. Some functions are actually named
10023 something starting with __ and the normal name is an alias. */
10024 #if defined (__stub_shmat) || defined (__stub___shmat)
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (eval echo "$as_me:10035: \"$ac_link\"") >&5
10036 (eval $ac_link) 2>&5
10038 echo "$as_me:10038: \$? = $ac_status" >&5
10039 (exit $ac_status); } &&
10040 { ac_try='test -s conftest$ac_exeext'
10041 { (eval echo "$as_me:10041: \"$ac_try\"") >&5
10042 (eval $ac_try) 2>&5
10044 echo "$as_me:10044: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
10046 ac_cv_func_shmat=yes
10048 echo "$as_me: failed program was:" >&5
10049 cat conftest.$ac_ext >&5
10050 ac_cv_func_shmat=no
10052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10054 echo "$as_me:10054: result: $ac_cv_func_shmat" >&5
10055 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10057 if test $ac_cv_func_shmat = no; then
10058 echo "$as_me:10058: checking for shmat in -lipc" >&5
10059 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10060 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 ac_check_lib_save_LIBS=$LIBS
10065 cat >conftest.$ac_ext <<_ACEOF
10066 #line 10066 "configure"
10067 #include "confdefs.h"
10069 /* Override any gcc2 internal prototype to avoid an error. */
10073 /* We use char because int might match the return type of a gcc2
10074 builtin and then its argument prototype would still apply. */
10084 rm -f conftest.$ac_objext conftest$ac_exeext
10085 if { (eval echo "$as_me:10085: \"$ac_link\"") >&5
10086 (eval $ac_link) 2>&5
10088 echo "$as_me:10088: \$? = $ac_status" >&5
10089 (exit $ac_status); } &&
10090 { ac_try='test -s conftest$ac_exeext'
10091 { (eval echo "$as_me:10091: \"$ac_try\"") >&5
10092 (eval $ac_try) 2>&5
10094 echo "$as_me:10094: \$? = $ac_status" >&5
10095 (exit $ac_status); }; }; then
10096 ac_cv_lib_ipc_shmat=yes
10098 echo "$as_me: failed program was:" >&5
10099 cat conftest.$ac_ext >&5
10100 ac_cv_lib_ipc_shmat=no
10102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10103 LIBS=$ac_check_lib_save_LIBS
10105 echo "$as_me:10105: result: $ac_cv_lib_ipc_shmat" >&5
10106 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10107 if test $ac_cv_lib_ipc_shmat = yes; then
10108 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10114 # Check for libraries that X11R6 Xt/Xaw programs need.
10115 ac_save_LDFLAGS=$LDFLAGS
10116 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10117 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10118 # check for ICE first), but we must link in the order -lSM -lICE or
10119 # we get undefined symbols. So assume we have SM if we have ICE.
10120 # These have to be linked with before -lX11, unlike the other
10121 # libraries we check for below, so use a different variable.
10122 # John Interrante, Karl Berry
10123 echo "$as_me:10123: checking for IceConnectionNumber in -lICE" >&5
10124 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10125 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10126 echo $ECHO_N "(cached) $ECHO_C" >&6
10128 ac_check_lib_save_LIBS=$LIBS
10129 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10130 cat >conftest.$ac_ext <<_ACEOF
10131 #line 10131 "configure"
10132 #include "confdefs.h"
10134 /* Override any gcc2 internal prototype to avoid an error. */
10138 /* We use char because int might match the return type of a gcc2
10139 builtin and then its argument prototype would still apply. */
10140 char IceConnectionNumber ();
10144 IceConnectionNumber ();
10149 rm -f conftest.$ac_objext conftest$ac_exeext
10150 if { (eval echo "$as_me:10150: \"$ac_link\"") >&5
10151 (eval $ac_link) 2>&5
10153 echo "$as_me:10153: \$? = $ac_status" >&5
10154 (exit $ac_status); } &&
10155 { ac_try='test -s conftest$ac_exeext'
10156 { (eval echo "$as_me:10156: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10159 echo "$as_me:10159: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 ac_cv_lib_ICE_IceConnectionNumber=yes
10163 echo "$as_me: failed program was:" >&5
10164 cat conftest.$ac_ext >&5
10165 ac_cv_lib_ICE_IceConnectionNumber=no
10167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10168 LIBS=$ac_check_lib_save_LIBS
10170 echo "$as_me:10170: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10171 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10172 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10173 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10176 LDFLAGS=$ac_save_LDFLAGS
10180 cf_x_athena=${cf_x_athena:-Xaw}
10182 echo "$as_me:10182: checking if you want to link with Xaw 3d library" >&5
10183 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
10186 # Check whether --with-Xaw3d or --without-Xaw3d was given.
10187 if test "${with_Xaw3d+set}" = set; then
10188 withval="$with_Xaw3d"
10191 if test "$withval" = yes ; then
10193 echo "$as_me:10193: result: yes" >&5
10194 echo "${ECHO_T}yes" >&6
10196 echo "$as_me:10196: result: no" >&5
10197 echo "${ECHO_T}no" >&6
10200 echo "$as_me:10200: checking if you want to link with neXT Athena library" >&5
10201 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
10204 # Check whether --with-neXtaw or --without-neXtaw was given.
10205 if test "${with_neXtaw+set}" = set; then
10206 withval="$with_neXtaw"
10209 if test "$withval" = yes ; then
10211 echo "$as_me:10211: result: yes" >&5
10212 echo "${ECHO_T}yes" >&6
10214 echo "$as_me:10214: result: no" >&5
10215 echo "${ECHO_T}no" >&6
10218 echo "$as_me:10218: checking if you want to link with Athena-Plus library" >&5
10219 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
10222 # Check whether --with-XawPlus or --without-XawPlus was given.
10223 if test "${with_XawPlus+set}" = set; then
10224 withval="$with_XawPlus"
10227 if test "$withval" = yes ; then
10228 cf_x_athena=XawPlus
10229 echo "$as_me:10229: result: yes" >&5
10230 echo "${ECHO_T}yes" >&6
10232 echo "$as_me:10232: result: no" >&5
10233 echo "${ECHO_T}no" >&6
10238 if test "$PKG_CONFIG" != none ; then
10240 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
10241 for cf_athena_pkg in \
10244 ${cf_x_athena}-devel \
10245 lib${cf_x_athena} \
10246 lib${cf_x_athena}-devel
10249 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
10250 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
10252 echo "${as_me:-configure}:10252: testing found package $cf_athena_pkg ..." 1>&5
10254 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
10255 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
10256 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
10258 echo "${as_me:-configure}:10258: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10260 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
10262 echo "${as_me:-configure}:10262: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
10267 cf_new_extra_cppflags=
10269 for cf_add_cflags in $cf_pkgconfig_incs
10271 case $cf_fix_cppflags in
10273 case $cf_add_cflags in #(vi
10274 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10275 case $cf_add_cflags in
10277 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10279 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10280 && test -z "${cf_tst_cflags}" \
10281 && cf_fix_cppflags=yes
10283 if test $cf_fix_cppflags = yes ; then
10284 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10286 elif test "${cf_tst_cflags}" = "\"'" ; then
10287 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10292 case "$CPPFLAGS" in
10293 *$cf_add_cflags) #(vi
10296 case $cf_add_cflags in #(vi
10298 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10300 CPPFLAGS=`echo "$CPPFLAGS" | \
10301 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10302 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10306 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10311 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10316 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10318 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10320 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10321 && test -z "${cf_tst_cflags}" \
10322 && cf_fix_cppflags=no
10327 if test -n "$cf_new_cflags" ; then
10329 CFLAGS="$CFLAGS $cf_new_cflags"
10332 if test -n "$cf_new_cppflags" ; then
10334 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10337 if test -n "$cf_new_extra_cppflags" ; then
10339 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10342 LIBS="$cf_pkgconfig_libs $LIBS"
10344 cf_x_athena_lib="$cf_pkgconfig_libs"
10346 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10348 cat >>confdefs.h <<EOF
10349 #define $cf_x_athena_LIBS 1
10352 echo "$as_me:10352: checking for usable $cf_x_athena/Xmu package" >&5
10353 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
10354 if test "${cf_cv_xaw_compat+set}" = set; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10358 cat >conftest.$ac_ext <<_ACEOF
10359 #line 10359 "configure"
10360 #include "confdefs.h"
10362 #include <X11/Xmu/CharSet.h>
10368 int check = XmuCompareISOLatin1("big", "small")
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (eval echo "$as_me:10375: \"$ac_link\"") >&5
10376 (eval $ac_link) 2>&5
10378 echo "$as_me:10378: \$? = $ac_status" >&5
10379 (exit $ac_status); } &&
10380 { ac_try='test -s conftest$ac_exeext'
10381 { (eval echo "$as_me:10381: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10384 echo "$as_me:10384: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10386 cf_cv_xaw_compat=yes
10388 echo "$as_me: failed program was:" >&5
10389 cat conftest.$ac_ext >&5
10390 cf_cv_xaw_compat=no
10392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10394 echo "$as_me:10394: result: $cf_cv_xaw_compat" >&5
10395 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
10397 if test "$cf_cv_xaw_compat" = no
10399 # workaround for broken ".pc" files...
10400 case "$cf_x_athena_lib" in #(vi
10404 test -n "$verbose" && echo " work around broken package" 1>&6
10406 echo "${as_me:-configure}:10406: testing work around broken package ..." 1>&5
10408 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
10409 test -n "$verbose" && echo " found package xmu" 1>&6
10411 echo "${as_me:-configure}:10411: testing found package xmu ..." 1>&5
10413 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
10414 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
10415 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
10417 echo "${as_me:-configure}:10417: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10419 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
10421 echo "${as_me:-configure}:10421: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
10426 cf_new_extra_cppflags=
10428 for cf_add_cflags in $cf_pkgconfig_incs
10430 case $cf_fix_cppflags in
10432 case $cf_add_cflags in #(vi
10433 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10434 case $cf_add_cflags in
10436 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10438 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10439 && test -z "${cf_tst_cflags}" \
10440 && cf_fix_cppflags=yes
10442 if test $cf_fix_cppflags = yes ; then
10443 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10445 elif test "${cf_tst_cflags}" = "\"'" ; then
10446 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10451 case "$CPPFLAGS" in
10452 *$cf_add_cflags) #(vi
10455 case $cf_add_cflags in #(vi
10457 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10459 CPPFLAGS=`echo "$CPPFLAGS" | \
10460 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10461 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10465 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10470 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10475 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10477 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10479 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10480 && test -z "${cf_tst_cflags}" \
10481 && cf_fix_cppflags=no
10486 if test -n "$cf_new_cflags" ; then
10488 CFLAGS="$CFLAGS $cf_new_cflags"
10491 if test -n "$cf_new_cppflags" ; then
10493 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10496 if test -n "$cf_new_extra_cppflags" ; then
10498 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10501 LIBS="$cf_pkgconfig_libs $LIBS"
10505 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10507 echo "${as_me:-configure}:10507: testing ...before $LIBS ..." 1>&5
10509 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s,-lXt ,-lXt -lXmu ," -e 's/ / /g'`
10510 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10512 echo "${as_me:-configure}:10512: testing ...after $LIBS ..." 1>&5
10528 if test -z "$cf_x_athena_lib" ; then
10530 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
10531 test -n "$verbose" && echo " found package Xext" 1>&6
10533 echo "${as_me:-configure}:10533: testing found package Xext ..." 1>&5
10535 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
10536 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
10537 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
10539 echo "${as_me:-configure}:10539: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10541 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
10543 echo "${as_me:-configure}:10543: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
10548 cf_new_extra_cppflags=
10550 for cf_add_cflags in $cf_pkgconfig_incs
10552 case $cf_fix_cppflags in
10554 case $cf_add_cflags in #(vi
10555 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10556 case $cf_add_cflags in
10558 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10560 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10561 && test -z "${cf_tst_cflags}" \
10562 && cf_fix_cppflags=yes
10564 if test $cf_fix_cppflags = yes ; then
10565 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10567 elif test "${cf_tst_cflags}" = "\"'" ; then
10568 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10573 case "$CPPFLAGS" in
10574 *$cf_add_cflags) #(vi
10577 case $cf_add_cflags in #(vi
10579 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10581 CPPFLAGS=`echo "$CPPFLAGS" | \
10582 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10583 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10587 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10592 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10597 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10599 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10601 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10602 && test -z "${cf_tst_cflags}" \
10603 && cf_fix_cppflags=no
10608 if test -n "$cf_new_cflags" ; then
10610 CFLAGS="$CFLAGS $cf_new_cflags"
10613 if test -n "$cf_new_cppflags" ; then
10615 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10618 if test -n "$cf_new_extra_cppflags" ; then
10620 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10623 LIBS="$cf_pkgconfig_libs $LIBS"
10627 echo "$as_me:10627: checking for XextCreateExtension in -lXext" >&5
10628 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
10629 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
10632 ac_check_lib_save_LIBS=$LIBS
10633 LIBS="-lXext $LIBS"
10634 cat >conftest.$ac_ext <<_ACEOF
10635 #line 10635 "configure"
10636 #include "confdefs.h"
10638 /* Override any gcc2 internal prototype to avoid an error. */
10642 /* We use char because int might match the return type of a gcc2
10643 builtin and then its argument prototype would still apply. */
10644 char XextCreateExtension ();
10648 XextCreateExtension ();
10653 rm -f conftest.$ac_objext conftest$ac_exeext
10654 if { (eval echo "$as_me:10654: \"$ac_link\"") >&5
10655 (eval $ac_link) 2>&5
10657 echo "$as_me:10657: \$? = $ac_status" >&5
10658 (exit $ac_status); } &&
10659 { ac_try='test -s conftest$ac_exeext'
10660 { (eval echo "$as_me:10660: \"$ac_try\"") >&5
10661 (eval $ac_try) 2>&5
10663 echo "$as_me:10663: \$? = $ac_status" >&5
10664 (exit $ac_status); }; }; then
10665 ac_cv_lib_Xext_XextCreateExtension=yes
10667 echo "$as_me: failed program was:" >&5
10668 cat conftest.$ac_ext >&5
10669 ac_cv_lib_Xext_XextCreateExtension=no
10671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10672 LIBS=$ac_check_lib_save_LIBS
10674 echo "$as_me:10674: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
10675 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
10676 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
10677 LIBS="-lXext $LIBS"
10684 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
10685 test -n "$verbose" && echo " found package xt" 1>&6
10687 echo "${as_me:-configure}:10687: testing found package xt ..." 1>&5
10689 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
10690 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
10691 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
10693 echo "${as_me:-configure}:10693: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10695 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
10697 echo "${as_me:-configure}:10697: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
10702 cf_new_extra_cppflags=
10704 for cf_add_cflags in $cf_pkgconfig_incs
10706 case $cf_fix_cppflags in
10708 case $cf_add_cflags in #(vi
10709 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10710 case $cf_add_cflags in
10712 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10714 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10715 && test -z "${cf_tst_cflags}" \
10716 && cf_fix_cppflags=yes
10718 if test $cf_fix_cppflags = yes ; then
10719 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10721 elif test "${cf_tst_cflags}" = "\"'" ; then
10722 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10727 case "$CPPFLAGS" in
10728 *$cf_add_cflags) #(vi
10731 case $cf_add_cflags in #(vi
10733 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10735 CPPFLAGS=`echo "$CPPFLAGS" | \
10736 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10737 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10741 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10746 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10751 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10753 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10755 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10756 && test -z "${cf_tst_cflags}" \
10757 && cf_fix_cppflags=no
10762 if test -n "$cf_new_cflags" ; then
10764 CFLAGS="$CFLAGS $cf_new_cflags"
10767 if test -n "$cf_new_cppflags" ; then
10769 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10772 if test -n "$cf_new_extra_cppflags" ; then
10774 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10777 LIBS="$cf_pkgconfig_libs $LIBS"
10779 case "x$LIBS" in #(vi
10783 # we have an "xt" package, but it may omit Xt's dependency on X11
10784 echo "$as_me:10784: checking for usable X dependency" >&5
10785 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
10786 if test "${cf_cv_xt_x11_compat+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10790 cat >conftest.$ac_ext <<_ACEOF
10791 #line 10791 "configure"
10792 #include "confdefs.h"
10794 #include <X11/Xlib.h>
10800 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
10801 int rc2 = XClearWindow((Display*) 0, (Window) 0);
10802 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
10803 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (eval echo "$as_me:10810: \"$ac_link\"") >&5
10811 (eval $ac_link) 2>&5
10813 echo "$as_me:10813: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
10815 { ac_try='test -s conftest$ac_exeext'
10816 { (eval echo "$as_me:10816: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10819 echo "$as_me:10819: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 cf_cv_xt_x11_compat=yes
10823 echo "$as_me: failed program was:" >&5
10824 cat conftest.$ac_ext >&5
10825 cf_cv_xt_x11_compat=no
10827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10829 echo "$as_me:10829: result: $cf_cv_xt_x11_compat" >&5
10830 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
10831 if test "$cf_cv_xt_x11_compat" = no
10833 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
10835 echo "${as_me:-configure}:10835: testing work around broken X11 dependency ..." 1>&5
10837 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
10839 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
10840 test -n "$verbose" && echo " found package x11" 1>&6
10842 echo "${as_me:-configure}:10842: testing found package x11 ..." 1>&5
10844 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
10845 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
10846 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
10848 echo "${as_me:-configure}:10848: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10850 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
10852 echo "${as_me:-configure}:10852: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
10857 cf_new_extra_cppflags=
10859 for cf_add_cflags in $cf_pkgconfig_incs
10861 case $cf_fix_cppflags in
10863 case $cf_add_cflags in #(vi
10864 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10865 case $cf_add_cflags in
10867 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10869 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10870 && test -z "${cf_tst_cflags}" \
10871 && cf_fix_cppflags=yes
10873 if test $cf_fix_cppflags = yes ; then
10874 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10876 elif test "${cf_tst_cflags}" = "\"'" ; then
10877 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10882 case "$CPPFLAGS" in
10883 *$cf_add_cflags) #(vi
10886 case $cf_add_cflags in #(vi
10888 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10890 CPPFLAGS=`echo "$CPPFLAGS" | \
10891 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10892 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10896 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10901 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10906 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10908 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10910 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10911 && test -z "${cf_tst_cflags}" \
10912 && cf_fix_cppflags=no
10917 if test -n "$cf_new_cflags" ; then
10919 CFLAGS="$CFLAGS $cf_new_cflags"
10922 if test -n "$cf_new_cppflags" ; then
10924 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10927 if test -n "$cf_new_extra_cppflags" ; then
10929 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10932 LIBS="$cf_pkgconfig_libs $LIBS"
10936 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10938 echo "${as_me:-configure}:10938: testing ...before $LIBS ..." 1>&5
10940 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s,-lXt ,-lXt -lX11 ," -e 's/ / /g'`
10941 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10943 echo "${as_me:-configure}:10943: testing ...after $LIBS ..." 1>&5
10951 echo "$as_me:10951: checking for usable X Toolkit package" >&5
10952 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
10953 if test "${cf_cv_xt_ice_compat+set}" = set; then
10954 echo $ECHO_N "(cached) $ECHO_C" >&6
10957 cat >conftest.$ac_ext <<_ACEOF
10958 #line 10958 "configure"
10959 #include "confdefs.h"
10961 #include <X11/Shell.h>
10966 int num = IceConnectionNumber(0)
10972 rm -f conftest.$ac_objext conftest$ac_exeext
10973 if { (eval echo "$as_me:10973: \"$ac_link\"") >&5
10974 (eval $ac_link) 2>&5
10976 echo "$as_me:10976: \$? = $ac_status" >&5
10977 (exit $ac_status); } &&
10978 { ac_try='test -s conftest$ac_exeext'
10979 { (eval echo "$as_me:10979: \"$ac_try\"") >&5
10980 (eval $ac_try) 2>&5
10982 echo "$as_me:10982: \$? = $ac_status" >&5
10983 (exit $ac_status); }; }; then
10984 cf_cv_xt_ice_compat=yes
10986 echo "$as_me: failed program was:" >&5
10987 cat conftest.$ac_ext >&5
10988 cf_cv_xt_ice_compat=no
10990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10992 echo "$as_me:10992: result: $cf_cv_xt_ice_compat" >&5
10993 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
10995 if test "$cf_cv_xt_ice_compat" = no
10997 # workaround for broken ".pc" files used for X Toolkit.
10998 case "x$X_PRE_LIBS" in #(vi
11000 case "x$LIBS" in #(vi
11004 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
11006 echo "${as_me:-configure}:11006: testing work around broken ICE dependency ..." 1>&5
11008 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
11009 test -n "$verbose" && echo " found package ice" 1>&6
11011 echo "${as_me:-configure}:11011: testing found package ice ..." 1>&5
11013 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
11014 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
11015 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
11017 echo "${as_me:-configure}:11017: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11019 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
11021 echo "${as_me:-configure}:11021: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
11026 cf_new_extra_cppflags=
11028 for cf_add_cflags in $cf_pkgconfig_incs
11030 case $cf_fix_cppflags in
11032 case $cf_add_cflags in #(vi
11033 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11034 case $cf_add_cflags in
11036 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11038 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11039 && test -z "${cf_tst_cflags}" \
11040 && cf_fix_cppflags=yes
11042 if test $cf_fix_cppflags = yes ; then
11043 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11045 elif test "${cf_tst_cflags}" = "\"'" ; then
11046 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11051 case "$CPPFLAGS" in
11052 *$cf_add_cflags) #(vi
11055 case $cf_add_cflags in #(vi
11057 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11059 CPPFLAGS=`echo "$CPPFLAGS" | \
11060 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11061 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11065 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11070 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11075 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11077 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11079 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11080 && test -z "${cf_tst_cflags}" \
11081 && cf_fix_cppflags=no
11086 if test -n "$cf_new_cflags" ; then
11088 CFLAGS="$CFLAGS $cf_new_cflags"
11091 if test -n "$cf_new_cppflags" ; then
11093 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11096 if test -n "$cf_new_extra_cppflags" ; then
11098 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11101 LIBS="$cf_pkgconfig_libs $LIBS"
11103 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
11104 test -n "$verbose" && echo " found package sm" 1>&6
11106 echo "${as_me:-configure}:11106: testing found package sm ..." 1>&5
11108 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
11109 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
11110 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11112 echo "${as_me:-configure}:11112: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11114 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11116 echo "${as_me:-configure}:11116: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11121 cf_new_extra_cppflags=
11123 for cf_add_cflags in $cf_pkgconfig_incs
11125 case $cf_fix_cppflags in
11127 case $cf_add_cflags in #(vi
11128 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11129 case $cf_add_cflags in
11131 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11133 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11134 && test -z "${cf_tst_cflags}" \
11135 && cf_fix_cppflags=yes
11137 if test $cf_fix_cppflags = yes ; then
11138 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11140 elif test "${cf_tst_cflags}" = "\"'" ; then
11141 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11146 case "$CPPFLAGS" in
11147 *$cf_add_cflags) #(vi
11150 case $cf_add_cflags in #(vi
11152 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11154 CPPFLAGS=`echo "$CPPFLAGS" | \
11155 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11156 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11160 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11165 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11170 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11172 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11174 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11175 && test -z "${cf_tst_cflags}" \
11176 && cf_fix_cppflags=no
11181 if test -n "$cf_new_cflags" ; then
11183 CFLAGS="$CFLAGS $cf_new_cflags"
11186 if test -n "$cf_new_cppflags" ; then
11188 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11191 if test -n "$cf_new_extra_cppflags" ; then
11193 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11196 LIBS="$cf_pkgconfig_libs $LIBS"
11204 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11206 echo "${as_me:-configure}:11206: testing ...before $LIBS ..." 1>&5
11208 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s,-lXt ,-lXt $X_PRE_LIBS ," -e 's/ / /g'`
11209 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11211 echo "${as_me:-configure}:11211: testing ...after $LIBS ..." 1>&5
11225 LDFLAGS="$X_LIBS $LDFLAGS"
11227 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
11229 echo "${as_me:-configure}:11229: testing checking additions to CFLAGS ..." 1>&5
11231 cf_check_cflags="$CFLAGS"
11232 cf_check_cppflags="$CPPFLAGS"
11237 cf_new_extra_cppflags=
11239 for cf_add_cflags in $X_CFLAGS
11241 case $cf_fix_cppflags in
11243 case $cf_add_cflags in #(vi
11244 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11245 case $cf_add_cflags in
11247 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11249 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11250 && test -z "${cf_tst_cflags}" \
11251 && cf_fix_cppflags=yes
11253 if test $cf_fix_cppflags = yes ; then
11254 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11256 elif test "${cf_tst_cflags}" = "\"'" ; then
11257 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11262 case "$CPPFLAGS" in
11263 *$cf_add_cflags) #(vi
11266 case $cf_add_cflags in #(vi
11268 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11270 CPPFLAGS=`echo "$CPPFLAGS" | \
11271 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11272 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11276 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11281 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11286 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11288 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11290 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11291 && test -z "${cf_tst_cflags}" \
11292 && cf_fix_cppflags=no
11297 if test -n "$cf_new_cflags" ; then
11298 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11300 echo "${as_me:-configure}:11300: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11302 CFLAGS="$CFLAGS $cf_new_cflags"
11305 if test -n "$cf_new_cppflags" ; then
11306 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11308 echo "${as_me:-configure}:11308: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11310 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11313 if test -n "$cf_new_extra_cppflags" ; then
11314 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11316 echo "${as_me:-configure}:11316: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11318 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11321 if test "$cf_check_cflags" != "$CFLAGS" ; then
11322 cat >conftest.$ac_ext <<_ACEOF
11323 #line 11323 "configure"
11324 #include "confdefs.h"
11329 printf("Hello world");
11334 rm -f conftest.$ac_objext conftest$ac_exeext
11335 if { (eval echo "$as_me:11335: \"$ac_link\"") >&5
11336 (eval $ac_link) 2>&5
11338 echo "$as_me:11338: \$? = $ac_status" >&5
11339 (exit $ac_status); } &&
11340 { ac_try='test -s conftest$ac_exeext'
11341 { (eval echo "$as_me:11341: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11344 echo "$as_me:11344: \$? = $ac_status" >&5
11345 (exit $ac_status); }; }; then
11348 echo "$as_me: failed program was:" >&5
11349 cat conftest.$ac_ext >&5
11350 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
11352 echo "${as_me:-configure}:11352: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
11354 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
11355 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
11357 echo "${as_me:-configure}:11357: testing but keeping change to \$CPPFLAGS ..." 1>&5
11360 CFLAGS="$cf_check_flags"
11362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11365 echo "$as_me:11365: checking for XOpenDisplay" >&5
11366 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
11367 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 cat >conftest.$ac_ext <<_ACEOF
11371 #line 11371 "configure"
11372 #include "confdefs.h"
11373 /* System header to define __stub macros and hopefully few prototypes,
11374 which can conflict with char XOpenDisplay (); below. */
11375 #include <assert.h>
11376 /* Override any gcc2 internal prototype to avoid an error. */
11380 /* We use char because int might match the return type of a gcc2
11381 builtin and then its argument prototype would still apply. */
11382 char XOpenDisplay ();
11388 /* The GNU C library defines this for functions which it implements
11389 to always fail with ENOSYS. Some functions are actually named
11390 something starting with __ and the normal name is an alias. */
11391 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
11401 rm -f conftest.$ac_objext conftest$ac_exeext
11402 if { (eval echo "$as_me:11402: \"$ac_link\"") >&5
11403 (eval $ac_link) 2>&5
11405 echo "$as_me:11405: \$? = $ac_status" >&5
11406 (exit $ac_status); } &&
11407 { ac_try='test -s conftest$ac_exeext'
11408 { (eval echo "$as_me:11408: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11411 echo "$as_me:11411: \$? = $ac_status" >&5
11412 (exit $ac_status); }; }; then
11413 ac_cv_func_XOpenDisplay=yes
11415 echo "$as_me: failed program was:" >&5
11416 cat conftest.$ac_ext >&5
11417 ac_cv_func_XOpenDisplay=no
11419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11421 echo "$as_me:11421: result: $ac_cv_func_XOpenDisplay" >&5
11422 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
11423 if test $ac_cv_func_XOpenDisplay = yes; then
11427 echo "$as_me:11427: checking for XOpenDisplay in -lX11" >&5
11428 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
11429 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11432 ac_check_lib_save_LIBS=$LIBS
11433 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
11434 cat >conftest.$ac_ext <<_ACEOF
11435 #line 11435 "configure"
11436 #include "confdefs.h"
11438 /* Override any gcc2 internal prototype to avoid an error. */
11442 /* We use char because int might match the return type of a gcc2
11443 builtin and then its argument prototype would still apply. */
11444 char XOpenDisplay ();
11453 rm -f conftest.$ac_objext conftest$ac_exeext
11454 if { (eval echo "$as_me:11454: \"$ac_link\"") >&5
11455 (eval $ac_link) 2>&5
11457 echo "$as_me:11457: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
11459 { ac_try='test -s conftest$ac_exeext'
11460 { (eval echo "$as_me:11460: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11463 echo "$as_me:11463: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }; then
11465 ac_cv_lib_X11_XOpenDisplay=yes
11467 echo "$as_me: failed program was:" >&5
11468 cat conftest.$ac_ext >&5
11469 ac_cv_lib_X11_XOpenDisplay=no
11471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11472 LIBS=$ac_check_lib_save_LIBS
11474 echo "$as_me:11474: result: $ac_cv_lib_X11_XOpenDisplay" >&5
11475 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
11476 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
11482 echo "$as_me:11482: checking for XtAppInitialize" >&5
11483 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
11484 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
11487 cat >conftest.$ac_ext <<_ACEOF
11488 #line 11488 "configure"
11489 #include "confdefs.h"
11490 /* System header to define __stub macros and hopefully few prototypes,
11491 which can conflict with char XtAppInitialize (); below. */
11492 #include <assert.h>
11493 /* Override any gcc2 internal prototype to avoid an error. */
11497 /* We use char because int might match the return type of a gcc2
11498 builtin and then its argument prototype would still apply. */
11499 char XtAppInitialize ();
11505 /* The GNU C library defines this for functions which it implements
11506 to always fail with ENOSYS. Some functions are actually named
11507 something starting with __ and the normal name is an alias. */
11508 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
11511 f = XtAppInitialize;
11518 rm -f conftest.$ac_objext conftest$ac_exeext
11519 if { (eval echo "$as_me:11519: \"$ac_link\"") >&5
11520 (eval $ac_link) 2>&5
11522 echo "$as_me:11522: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
11524 { ac_try='test -s conftest$ac_exeext'
11525 { (eval echo "$as_me:11525: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11528 echo "$as_me:11528: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 ac_cv_func_XtAppInitialize=yes
11532 echo "$as_me: failed program was:" >&5
11533 cat conftest.$ac_ext >&5
11534 ac_cv_func_XtAppInitialize=no
11536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11538 echo "$as_me:11538: result: $ac_cv_func_XtAppInitialize" >&5
11539 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
11540 if test $ac_cv_func_XtAppInitialize = yes; then
11544 echo "$as_me:11544: checking for XtAppInitialize in -lXt" >&5
11545 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
11546 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 ac_check_lib_save_LIBS=$LIBS
11550 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
11551 cat >conftest.$ac_ext <<_ACEOF
11552 #line 11552 "configure"
11553 #include "confdefs.h"
11555 /* Override any gcc2 internal prototype to avoid an error. */
11559 /* We use char because int might match the return type of a gcc2
11560 builtin and then its argument prototype would still apply. */
11561 char XtAppInitialize ();
11565 XtAppInitialize ();
11570 rm -f conftest.$ac_objext conftest$ac_exeext
11571 if { (eval echo "$as_me:11571: \"$ac_link\"") >&5
11572 (eval $ac_link) 2>&5
11574 echo "$as_me:11574: \$? = $ac_status" >&5
11575 (exit $ac_status); } &&
11576 { ac_try='test -s conftest$ac_exeext'
11577 { (eval echo "$as_me:11577: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11580 echo "$as_me:11580: \$? = $ac_status" >&5
11581 (exit $ac_status); }; }; then
11582 ac_cv_lib_Xt_XtAppInitialize=yes
11584 echo "$as_me: failed program was:" >&5
11585 cat conftest.$ac_ext >&5
11586 ac_cv_lib_Xt_XtAppInitialize=no
11588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11589 LIBS=$ac_check_lib_save_LIBS
11591 echo "$as_me:11591: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
11592 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
11593 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
11594 cat >>confdefs.h <<\EOF
11595 #define HAVE_LIBXT 1
11599 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
11606 if test $cf_have_X_LIBS = no ; then
11607 { echo "$as_me:11607: WARNING: Unable to successfully link X Toolkit library (-lXt) with
11608 test program. You will have to check and add the proper libraries by hand
11610 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
11611 test program. You will have to check and add the proper libraries by hand
11612 to makefile." >&2;}
11615 cf_x_athena_root=$cf_x_athena
11618 for cf_path in default \
11619 /usr/contrib/X11R6 \
11620 /usr/contrib/X11R5 \
11624 if test -z "$cf_x_athena_inc" ; then
11625 cf_save="$CPPFLAGS"
11626 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
11627 if test $cf_path != default ; then
11628 CPPFLAGS="$cf_save -I$cf_path/include"
11629 echo "$as_me:11629: checking for $cf_test in $cf_path" >&5
11630 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
11632 echo "$as_me:11632: checking for $cf_test" >&5
11633 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
11635 cat >conftest.$ac_ext <<_ACEOF
11636 #line 11636 "configure"
11637 #include "confdefs.h"
11639 #include <X11/Intrinsic.h>
11640 #include <$cf_test>
11649 rm -f conftest.$ac_objext
11650 if { (eval echo "$as_me:11650: \"$ac_compile\"") >&5
11651 (eval $ac_compile) 2>&5
11653 echo "$as_me:11653: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
11655 { ac_try='test -s conftest.$ac_objext'
11656 { (eval echo "$as_me:11656: \"$ac_try\"") >&5
11657 (eval $ac_try) 2>&5
11659 echo "$as_me:11659: \$? = $ac_status" >&5
11660 (exit $ac_status); }; }; then
11663 echo "$as_me: failed program was:" >&5
11664 cat conftest.$ac_ext >&5
11667 rm -f conftest.$ac_objext conftest.$ac_ext
11668 echo "$as_me:11668: result: $cf_result" >&5
11669 echo "${ECHO_T}$cf_result" >&6
11670 if test "$cf_result" = yes ; then
11671 cf_x_athena_inc=$cf_path
11674 CPPFLAGS="$cf_save"
11679 if test -z "$cf_x_athena_inc" ; then
11680 { echo "$as_me:11680: WARNING: Unable to successfully find Athena header files with test program" >&5
11681 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
11682 elif test "$cf_x_athena_inc" != default ; then
11683 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
11686 cf_x_athena_root=$cf_x_athena
11689 for cf_path in default \
11690 /usr/contrib/X11R6 \
11691 /usr/contrib/X11R5 \
11696 "-l$cf_x_athena_root -lXmu" \
11697 "-l$cf_x_athena_root -lXpm -lXmu" \
11698 "-l${cf_x_athena_root}_s -lXmu_s"
11700 if test -z "$cf_x_athena_lib" ; then
11702 cf_test=XawSimpleMenuAddGlobalActions
11703 if test $cf_path != default ; then
11704 LIBS="-L$cf_path/lib $cf_lib $LIBS"
11705 echo "$as_me:11705: checking for $cf_lib in $cf_path" >&5
11706 echo $ECHO_N "checking for $cf_lib in $cf_path... $ECHO_C" >&6
11708 LIBS="$cf_lib $LIBS"
11709 echo "$as_me:11709: checking for $cf_test in $cf_lib" >&5
11710 echo $ECHO_N "checking for $cf_test in $cf_lib... $ECHO_C" >&6
11712 cat >conftest.$ac_ext <<_ACEOF
11713 #line 11713 "configure"
11714 #include "confdefs.h"
11724 rm -f conftest.$ac_objext conftest$ac_exeext
11725 if { (eval echo "$as_me:11725: \"$ac_link\"") >&5
11726 (eval $ac_link) 2>&5
11728 echo "$as_me:11728: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
11730 { ac_try='test -s conftest$ac_exeext'
11731 { (eval echo "$as_me:11731: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11734 echo "$as_me:11734: \$? = $ac_status" >&5
11735 (exit $ac_status); }; }; then
11738 echo "$as_me: failed program was:" >&5
11739 cat conftest.$ac_ext >&5
11742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11743 echo "$as_me:11743: result: $cf_result" >&5
11744 echo "${ECHO_T}$cf_result" >&6
11745 if test "$cf_result" = yes ; then
11746 cf_x_athena_lib="$cf_lib"
11754 if test -z "$cf_x_athena_lib" ; then
11755 { { echo "$as_me:11755: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
11756 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
11757 { (exit 1); exit 1; }; }
11760 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11762 cat >>confdefs.h <<EOF
11763 #define $cf_x_athena_LIBS 1
11768 for ac_prog in xcurses-config
11770 # Extract the first word of "$ac_prog", so it can be a program name with args.
11771 set dummy $ac_prog; ac_word=$2
11772 echo "$as_me:11772: checking for $ac_word" >&5
11773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11774 if test "${ac_cv_path_XCURSES_CONFIG+set}" = set; then
11775 echo $ECHO_N "(cached) $ECHO_C" >&6
11777 case $XCURSES_CONFIG in
11779 ac_cv_path_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test with a path.
11782 ac_save_IFS=$IFS; IFS=$ac_path_separator
11784 for ac_dir in $ac_dummy; do
11786 test -z "$ac_dir" && ac_dir=.
11787 if $as_executable_p "$ac_dir/$ac_word"; then
11788 ac_cv_path_XCURSES_CONFIG="$ac_dir/$ac_word"
11789 echo "$as_me:11789: found $ac_dir/$ac_word" >&5
11797 XCURSES_CONFIG=$ac_cv_path_XCURSES_CONFIG
11799 if test -n "$XCURSES_CONFIG"; then
11800 echo "$as_me:11800: result: $XCURSES_CONFIG" >&5
11801 echo "${ECHO_T}$XCURSES_CONFIG" >&6
11803 echo "$as_me:11803: result: no" >&5
11804 echo "${ECHO_T}no" >&6
11807 test -n "$XCURSES_CONFIG" && break
11809 test -n "$XCURSES_CONFIG" || XCURSES_CONFIG="none"
11811 if test "$XCURSES_CONFIG" != none ; then
11813 CPPFLAGS="$CPPFLAGS `$XCURSES_CONFIG --cflags`"
11814 LIBS="`$XCURSES_CONFIG --libs` $LIBS"
11816 cf_cv_lib_XCurses=yes
11820 LDFLAGS="$LDFLAGS $X_LIBS"
11822 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
11824 echo "${as_me:-configure}:11824: testing checking additions to CFLAGS ..." 1>&5
11826 cf_check_cflags="$CFLAGS"
11827 cf_check_cppflags="$CPPFLAGS"
11832 cf_new_extra_cppflags=
11834 for cf_add_cflags in $X_CFLAGS
11836 case $cf_fix_cppflags in
11838 case $cf_add_cflags in #(vi
11839 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11840 case $cf_add_cflags in
11842 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11844 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11845 && test -z "${cf_tst_cflags}" \
11846 && cf_fix_cppflags=yes
11848 if test $cf_fix_cppflags = yes ; then
11849 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11851 elif test "${cf_tst_cflags}" = "\"'" ; then
11852 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11857 case "$CPPFLAGS" in
11858 *$cf_add_cflags) #(vi
11861 case $cf_add_cflags in #(vi
11863 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11865 CPPFLAGS=`echo "$CPPFLAGS" | \
11866 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11867 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11871 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11876 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11881 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11883 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11885 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11886 && test -z "${cf_tst_cflags}" \
11887 && cf_fix_cppflags=no
11892 if test -n "$cf_new_cflags" ; then
11893 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11895 echo "${as_me:-configure}:11895: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11897 CFLAGS="$CFLAGS $cf_new_cflags"
11900 if test -n "$cf_new_cppflags" ; then
11901 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11903 echo "${as_me:-configure}:11903: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11905 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11908 if test -n "$cf_new_extra_cppflags" ; then
11909 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11911 echo "${as_me:-configure}:11911: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11913 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11916 if test "$cf_check_cflags" != "$CFLAGS" ; then
11917 cat >conftest.$ac_ext <<_ACEOF
11918 #line 11918 "configure"
11919 #include "confdefs.h"
11924 printf("Hello world");
11929 rm -f conftest.$ac_objext conftest$ac_exeext
11930 if { (eval echo "$as_me:11930: \"$ac_link\"") >&5
11931 (eval $ac_link) 2>&5
11933 echo "$as_me:11933: \$? = $ac_status" >&5
11934 (exit $ac_status); } &&
11935 { ac_try='test -s conftest$ac_exeext'
11936 { (eval echo "$as_me:11936: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11939 echo "$as_me:11939: \$? = $ac_status" >&5
11940 (exit $ac_status); }; }; then
11943 echo "$as_me: failed program was:" >&5
11944 cat conftest.$ac_ext >&5
11945 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
11947 echo "${as_me:-configure}:11947: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
11949 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
11950 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
11952 echo "${as_me:-configure}:11952: testing but keeping change to \$CPPFLAGS ..." 1>&5
11955 CFLAGS="$cf_check_flags"
11957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11960 echo "$as_me:11960: checking for XOpenDisplay in -lX11" >&5
11961 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
11962 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 ac_check_lib_save_LIBS=$LIBS
11966 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
11967 cat >conftest.$ac_ext <<_ACEOF
11968 #line 11968 "configure"
11969 #include "confdefs.h"
11971 /* Override any gcc2 internal prototype to avoid an error. */
11975 /* We use char because int might match the return type of a gcc2
11976 builtin and then its argument prototype would still apply. */
11977 char XOpenDisplay ();
11986 rm -f conftest.$ac_objext conftest$ac_exeext
11987 if { (eval echo "$as_me:11987: \"$ac_link\"") >&5
11988 (eval $ac_link) 2>&5
11990 echo "$as_me:11990: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -s conftest$ac_exeext'
11993 { (eval echo "$as_me:11993: \"$ac_try\"") >&5
11994 (eval $ac_try) 2>&5
11996 echo "$as_me:11996: \$? = $ac_status" >&5
11997 (exit $ac_status); }; }; then
11998 ac_cv_lib_X11_XOpenDisplay=yes
12000 echo "$as_me: failed program was:" >&5
12001 cat conftest.$ac_ext >&5
12002 ac_cv_lib_X11_XOpenDisplay=no
12004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12007 echo "$as_me:12007: result: $ac_cv_lib_X11_XOpenDisplay" >&5
12008 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
12009 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
12013 echo "$as_me:12013: checking for XCurses library" >&5
12014 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
12015 if test "${cf_cv_lib_XCurses+set}" = set; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 LIBS="-lXCurses $LIBS"
12020 cat >conftest.$ac_ext <<_ACEOF
12021 #line 12021 "configure"
12022 #include "confdefs.h"
12024 #include <xcurses.h>
12025 char *XCursesProgramName = "test";
12035 rm -f conftest.$ac_objext conftest$ac_exeext
12036 if { (eval echo "$as_me:12036: \"$ac_link\"") >&5
12037 (eval $ac_link) 2>&5
12039 echo "$as_me:12039: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -s conftest$ac_exeext'
12042 { (eval echo "$as_me:12042: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12045 echo "$as_me:12045: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 cf_cv_lib_XCurses=yes
12049 echo "$as_me: failed program was:" >&5
12050 cat conftest.$ac_ext >&5
12051 cf_cv_lib_XCurses=no
12053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12056 echo "$as_me:12056: result: $cf_cv_lib_XCurses" >&5
12057 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
12061 if test $cf_cv_lib_XCurses = yes ; then
12062 cat >>confdefs.h <<\EOF
12066 cat >>confdefs.h <<\EOF
12070 cat >>confdefs.h <<\EOF
12071 #define HAVE_XCURSES 1
12075 { { echo "$as_me:12075: error: Cannot link with XCurses" >&5
12076 echo "$as_me: error: Cannot link with XCurses" >&2;}
12077 { (exit 1); exit 1; }; }
12083 case $cf_cv_screen in #(vi
12087 # look for curses-related libraries
12089 as_ac_Lib=`echo "ac_cv_lib_panel$cf_cv_libtype''_new_panel" | $as_tr_sh`
12090 echo "$as_me:12090: checking for new_panel in -lpanel$cf_cv_libtype" >&5
12091 echo $ECHO_N "checking for new_panel in -lpanel$cf_cv_libtype... $ECHO_C" >&6
12092 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 ac_check_lib_save_LIBS=$LIBS
12096 LIBS="-lpanel$cf_cv_libtype $LIBS"
12097 cat >conftest.$ac_ext <<_ACEOF
12098 #line 12098 "configure"
12099 #include "confdefs.h"
12101 /* Override any gcc2 internal prototype to avoid an error. */
12105 /* We use char because int might match the return type of a gcc2
12106 builtin and then its argument prototype would still apply. */
12116 rm -f conftest.$ac_objext conftest$ac_exeext
12117 if { (eval echo "$as_me:12117: \"$ac_link\"") >&5
12118 (eval $ac_link) 2>&5
12120 echo "$as_me:12120: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -s conftest$ac_exeext'
12123 { (eval echo "$as_me:12123: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12126 echo "$as_me:12126: \$? = $ac_status" >&5
12127 (exit $ac_status); }; }; then
12128 eval "$as_ac_Lib=yes"
12130 echo "$as_me: failed program was:" >&5
12131 cat conftest.$ac_ext >&5
12132 eval "$as_ac_Lib=no"
12134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12135 LIBS=$ac_check_lib_save_LIBS
12137 echo "$as_me:12137: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12138 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12139 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12140 cat >>confdefs.h <<EOF
12141 #define `echo "HAVE_LIBpanel$cf_cv_libtype" | $as_tr_cpp` 1
12144 LIBS="-lpanel$cf_cv_libtype $LIBS"
12148 as_ac_Lib=`echo "ac_cv_lib_menu$cf_cv_libtype''_menu_driver" | $as_tr_sh`
12149 echo "$as_me:12149: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
12150 echo $ECHO_N "checking for menu_driver in -lmenu$cf_cv_libtype... $ECHO_C" >&6
12151 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-lmenu$cf_cv_libtype $LIBS"
12156 cat >conftest.$ac_ext <<_ACEOF
12157 #line 12157 "configure"
12158 #include "confdefs.h"
12160 /* Override any gcc2 internal prototype to avoid an error. */
12164 /* We use char because int might match the return type of a gcc2
12165 builtin and then its argument prototype would still apply. */
12166 char menu_driver ();
12175 rm -f conftest.$ac_objext conftest$ac_exeext
12176 if { (eval echo "$as_me:12176: \"$ac_link\"") >&5
12177 (eval $ac_link) 2>&5
12179 echo "$as_me:12179: \$? = $ac_status" >&5
12180 (exit $ac_status); } &&
12181 { ac_try='test -s conftest$ac_exeext'
12182 { (eval echo "$as_me:12182: \"$ac_try\"") >&5
12183 (eval $ac_try) 2>&5
12185 echo "$as_me:12185: \$? = $ac_status" >&5
12186 (exit $ac_status); }; }; then
12187 eval "$as_ac_Lib=yes"
12189 echo "$as_me: failed program was:" >&5
12190 cat conftest.$ac_ext >&5
12191 eval "$as_ac_Lib=no"
12193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12194 LIBS=$ac_check_lib_save_LIBS
12196 echo "$as_me:12196: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12197 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12198 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12199 cat >>confdefs.h <<EOF
12200 #define `echo "HAVE_LIBmenu$cf_cv_libtype" | $as_tr_cpp` 1
12203 LIBS="-lmenu$cf_cv_libtype $LIBS"
12207 as_ac_Lib=`echo "ac_cv_lib_form$cf_cv_libtype''_form_driver" | $as_tr_sh`
12208 echo "$as_me:12208: checking for form_driver in -lform$cf_cv_libtype" >&5
12209 echo $ECHO_N "checking for form_driver in -lform$cf_cv_libtype... $ECHO_C" >&6
12210 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12213 ac_check_lib_save_LIBS=$LIBS
12214 LIBS="-lform$cf_cv_libtype $LIBS"
12215 cat >conftest.$ac_ext <<_ACEOF
12216 #line 12216 "configure"
12217 #include "confdefs.h"
12219 /* Override any gcc2 internal prototype to avoid an error. */
12223 /* We use char because int might match the return type of a gcc2
12224 builtin and then its argument prototype would still apply. */
12225 char form_driver ();
12234 rm -f conftest.$ac_objext conftest$ac_exeext
12235 if { (eval echo "$as_me:12235: \"$ac_link\"") >&5
12236 (eval $ac_link) 2>&5
12238 echo "$as_me:12238: \$? = $ac_status" >&5
12239 (exit $ac_status); } &&
12240 { ac_try='test -s conftest$ac_exeext'
12241 { (eval echo "$as_me:12241: \"$ac_try\"") >&5
12242 (eval $ac_try) 2>&5
12244 echo "$as_me:12244: \$? = $ac_status" >&5
12245 (exit $ac_status); }; }; then
12246 eval "$as_ac_Lib=yes"
12248 echo "$as_me: failed program was:" >&5
12249 cat conftest.$ac_ext >&5
12250 eval "$as_ac_Lib=no"
12252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12253 LIBS=$ac_check_lib_save_LIBS
12255 echo "$as_me:12255: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12256 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12257 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12258 cat >>confdefs.h <<EOF
12259 #define `echo "HAVE_LIBform$cf_cv_libtype" | $as_tr_cpp` 1
12262 LIBS="-lform$cf_cv_libtype $LIBS"
12266 # look for curses-related headers
12276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12277 echo "$as_me:12277: checking for $ac_header" >&5
12278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12282 cat >conftest.$ac_ext <<_ACEOF
12283 #line 12283 "configure"
12284 #include "confdefs.h"
12285 #include <$ac_header>
12287 if { (eval echo "$as_me:12287: \"$ac_cpp conftest.$ac_ext\"") >&5
12288 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12290 egrep -v '^ *\+' conftest.er1 >conftest.err
12292 cat conftest.err >&5
12293 echo "$as_me:12293: \$? = $ac_status" >&5
12294 (exit $ac_status); } >/dev/null; then
12295 if test -s conftest.err; then
12296 ac_cpp_err=$ac_c_preproc_warn_flag
12303 if test -z "$ac_cpp_err"; then
12304 eval "$as_ac_Header=yes"
12306 echo "$as_me: failed program was:" >&5
12307 cat conftest.$ac_ext >&5
12308 eval "$as_ac_Header=no"
12310 rm -f conftest.err conftest.$ac_ext
12312 echo "$as_me:12312: result: `eval echo '${'$as_ac_Header'}'`" >&5
12313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12315 cat >>confdefs.h <<EOF
12316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12325 echo "$as_me:12325: checking return type of signal handlers" >&5
12326 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12327 if test "${ac_cv_type_signal+set}" = set; then
12328 echo $ECHO_N "(cached) $ECHO_C" >&6
12330 cat >conftest.$ac_ext <<_ACEOF
12331 #line 12331 "configure"
12332 #include "confdefs.h"
12333 #include <sys/types.h>
12334 #include <signal.h>
12339 extern "C" void (*signal (int, void (*)(int)))(int);
12341 void (*signal ()) ();
12352 rm -f conftest.$ac_objext
12353 if { (eval echo "$as_me:12353: \"$ac_compile\"") >&5
12354 (eval $ac_compile) 2>&5
12356 echo "$as_me:12356: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -s conftest.$ac_objext'
12359 { (eval echo "$as_me:12359: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12362 echo "$as_me:12362: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 ac_cv_type_signal=void
12366 echo "$as_me: failed program was:" >&5
12367 cat conftest.$ac_ext >&5
12368 ac_cv_type_signal=int
12370 rm -f conftest.$ac_objext conftest.$ac_ext
12372 echo "$as_me:12372: result: $ac_cv_type_signal" >&5
12373 echo "${ECHO_T}$ac_cv_type_signal" >&6
12375 cat >>confdefs.h <<EOF
12376 #define RETSIGTYPE $ac_cv_type_signal
12379 echo "$as_me:12379: checking for ANSI C header files" >&5
12380 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12381 if test "${ac_cv_header_stdc+set}" = set; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 cat >conftest.$ac_ext <<_ACEOF
12385 #line 12385 "configure"
12386 #include "confdefs.h"
12387 #include <stdlib.h>
12388 #include <stdarg.h>
12389 #include <string.h>
12393 if { (eval echo "$as_me:12393: \"$ac_cpp conftest.$ac_ext\"") >&5
12394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12396 egrep -v '^ *\+' conftest.er1 >conftest.err
12398 cat conftest.err >&5
12399 echo "$as_me:12399: \$? = $ac_status" >&5
12400 (exit $ac_status); } >/dev/null; then
12401 if test -s conftest.err; then
12402 ac_cpp_err=$ac_c_preproc_warn_flag
12409 if test -z "$ac_cpp_err"; then
12410 ac_cv_header_stdc=yes
12412 echo "$as_me: failed program was:" >&5
12413 cat conftest.$ac_ext >&5
12414 ac_cv_header_stdc=no
12416 rm -f conftest.err conftest.$ac_ext
12418 if test $ac_cv_header_stdc = yes; then
12419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12420 cat >conftest.$ac_ext <<_ACEOF
12421 #line 12421 "configure"
12422 #include "confdefs.h"
12423 #include <string.h>
12426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12427 egrep "memchr" >/dev/null 2>&1; then
12430 ac_cv_header_stdc=no
12436 if test $ac_cv_header_stdc = yes; then
12437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12438 cat >conftest.$ac_ext <<_ACEOF
12439 #line 12439 "configure"
12440 #include "confdefs.h"
12441 #include <stdlib.h>
12444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12445 egrep "free" >/dev/null 2>&1; then
12448 ac_cv_header_stdc=no
12454 if test $ac_cv_header_stdc = yes; then
12455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12456 if test "$cross_compiling" = yes; then
12459 cat >conftest.$ac_ext <<_ACEOF
12460 #line 12460 "configure"
12461 #include "confdefs.h"
12463 #if ((' ' & 0x0FF) == 0x020)
12464 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12465 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12467 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12468 || ('j' <= (c) && (c) <= 'r') \
12469 || ('s' <= (c) && (c) <= 'z'))
12470 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12478 for (i = 0; i < 256; i++)
12479 if (XOR (islower (i), ISLOWER (i))
12480 || toupper (i) != TOUPPER (i))
12481 $ac_main_return(2);
12482 $ac_main_return (0);
12485 rm -f conftest$ac_exeext
12486 if { (eval echo "$as_me:12486: \"$ac_link\"") >&5
12487 (eval $ac_link) 2>&5
12489 echo "$as_me:12489: \$? = $ac_status" >&5
12490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12491 { (eval echo "$as_me:12491: \"$ac_try\"") >&5
12492 (eval $ac_try) 2>&5
12494 echo "$as_me:12494: \$? = $ac_status" >&5
12495 (exit $ac_status); }; }; then
12498 echo "$as_me: program exited with status $ac_status" >&5
12499 echo "$as_me: failed program was:" >&5
12500 cat conftest.$ac_ext >&5
12501 ac_cv_header_stdc=no
12503 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12507 echo "$as_me:12507: result: $ac_cv_header_stdc" >&5
12508 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12509 if test $ac_cv_header_stdc = yes; then
12511 cat >>confdefs.h <<\EOF
12512 #define STDC_HEADERS 1
12517 echo "$as_me:12517: checking whether time.h and sys/time.h may both be included" >&5
12518 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12519 if test "${ac_cv_header_time+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12522 cat >conftest.$ac_ext <<_ACEOF
12523 #line 12523 "configure"
12524 #include "confdefs.h"
12525 #include <sys/types.h>
12526 #include <sys/time.h>
12532 if ((struct tm *) 0)
12538 rm -f conftest.$ac_objext
12539 if { (eval echo "$as_me:12539: \"$ac_compile\"") >&5
12540 (eval $ac_compile) 2>&5
12542 echo "$as_me:12542: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -s conftest.$ac_objext'
12545 { (eval echo "$as_me:12545: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12548 echo "$as_me:12548: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_cv_header_time=yes
12552 echo "$as_me: failed program was:" >&5
12553 cat conftest.$ac_ext >&5
12554 ac_cv_header_time=no
12556 rm -f conftest.$ac_objext conftest.$ac_ext
12558 echo "$as_me:12558: result: $ac_cv_header_time" >&5
12559 echo "${ECHO_T}$ac_cv_header_time" >&6
12560 if test $ac_cv_header_time = yes; then
12562 cat >>confdefs.h <<\EOF
12563 #define TIME_WITH_SYS_TIME 1
12579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12580 echo "$as_me:12580: checking for $ac_header" >&5
12581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 cat >conftest.$ac_ext <<_ACEOF
12586 #line 12586 "configure"
12587 #include "confdefs.h"
12588 #include <$ac_header>
12590 if { (eval echo "$as_me:12590: \"$ac_cpp conftest.$ac_ext\"") >&5
12591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12593 egrep -v '^ *\+' conftest.er1 >conftest.err
12595 cat conftest.err >&5
12596 echo "$as_me:12596: \$? = $ac_status" >&5
12597 (exit $ac_status); } >/dev/null; then
12598 if test -s conftest.err; then
12599 ac_cpp_err=$ac_c_preproc_warn_flag
12606 if test -z "$ac_cpp_err"; then
12607 eval "$as_ac_Header=yes"
12609 echo "$as_me: failed program was:" >&5
12610 cat conftest.$ac_ext >&5
12611 eval "$as_ac_Header=no"
12613 rm -f conftest.err conftest.$ac_ext
12615 echo "$as_me:12615: result: `eval echo '${'$as_ac_Header'}'`" >&5
12616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12618 cat >>confdefs.h <<EOF
12619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12639 echo "$as_me:12639: checking for $ac_func" >&5
12640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12641 if eval "test \"\${$as_ac_var+set}\" = set"; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 cat >conftest.$ac_ext <<_ACEOF
12645 #line 12645 "configure"
12646 #include "confdefs.h"
12647 /* System header to define __stub macros and hopefully few prototypes,
12648 which can conflict with char $ac_func (); below. */
12649 #include <assert.h>
12650 /* Override any gcc2 internal prototype to avoid an error. */
12654 /* We use char because int might match the return type of a gcc2
12655 builtin and then its argument prototype would still apply. */
12662 /* The GNU C library defines this for functions which it implements
12663 to always fail with ENOSYS. Some functions are actually named
12664 something starting with __ and the normal name is an alias. */
12665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12675 rm -f conftest.$ac_objext conftest$ac_exeext
12676 if { (eval echo "$as_me:12676: \"$ac_link\"") >&5
12677 (eval $ac_link) 2>&5
12679 echo "$as_me:12679: \$? = $ac_status" >&5
12680 (exit $ac_status); } &&
12681 { ac_try='test -s conftest$ac_exeext'
12682 { (eval echo "$as_me:12682: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12685 echo "$as_me:12685: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12687 eval "$as_ac_var=yes"
12689 echo "$as_me: failed program was:" >&5
12690 cat conftest.$ac_ext >&5
12691 eval "$as_ac_var=no"
12693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12695 echo "$as_me:12695: result: `eval echo '${'$as_ac_var'}'`" >&5
12696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12697 if test `eval echo '${'$as_ac_var'}'` = yes; then
12698 cat >>confdefs.h <<EOF
12699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12705 echo "$as_me:12705: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
12706 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
12707 if test "${cf_cv_need_xopen_extension+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 cat >conftest.$ac_ext <<_ACEOF
12712 #line 12712 "configure"
12713 #include "confdefs.h"
12715 #include <stdlib.h>
12716 #include <${cf_cv_ncurses_header:-curses.h}>
12721 #if defined(NCURSES_VERSION_PATCH)
12722 if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
12726 long x = winnstr(stdscr, "", 0);
12728 getbegyx(stdscr, y1, x1)
12733 rm -f conftest.$ac_objext conftest$ac_exeext
12734 if { (eval echo "$as_me:12734: \"$ac_link\"") >&5
12735 (eval $ac_link) 2>&5
12737 echo "$as_me:12737: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
12739 { ac_try='test -s conftest$ac_exeext'
12740 { (eval echo "$as_me:12740: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12743 echo "$as_me:12743: \$? = $ac_status" >&5
12744 (exit $ac_status); }; }; then
12745 cf_cv_need_xopen_extension=no
12747 echo "$as_me: failed program was:" >&5
12748 cat conftest.$ac_ext >&5
12749 cat >conftest.$ac_ext <<_ACEOF
12750 #line 12750 "configure"
12751 #include "confdefs.h"
12753 #define _XOPEN_SOURCE_EXTENDED
12754 #include <stdlib.h>
12755 #include <${cf_cv_ncurses_header:-curses.h}>
12760 #ifdef NCURSES_VERSION
12762 int check2 = curs_set((int)sizeof(check));
12764 long x = winnstr(stdscr, "", 0);
12766 getbegyx(stdscr, y1, x1)
12771 rm -f conftest.$ac_objext conftest$ac_exeext
12772 if { (eval echo "$as_me:12772: \"$ac_link\"") >&5
12773 (eval $ac_link) 2>&5
12775 echo "$as_me:12775: \$? = $ac_status" >&5
12776 (exit $ac_status); } &&
12777 { ac_try='test -s conftest$ac_exeext'
12778 { (eval echo "$as_me:12778: \"$ac_try\"") >&5
12779 (eval $ac_try) 2>&5
12781 echo "$as_me:12781: \$? = $ac_status" >&5
12782 (exit $ac_status); }; }; then
12783 cf_cv_need_xopen_extension=yes
12785 echo "$as_me: failed program was:" >&5
12786 cat conftest.$ac_ext >&5
12787 cf_cv_need_xopen_extension=unknown
12789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12793 echo "$as_me:12793: result: $cf_cv_need_xopen_extension" >&5
12794 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
12795 test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12797 echo "$as_me:12797: checking for term.h" >&5
12798 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
12799 if test "${cf_cv_term_header+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12803 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
12804 # for <term.h> if we do not find the variant.
12806 `echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%/.*%/%'`term.h \
12809 cat >conftest.$ac_ext <<_ACEOF
12810 #line 12810 "configure"
12811 #include "confdefs.h"
12813 #include <${cf_cv_ncurses_header:-curses.h}>
12814 #include <${cf_header}>
12823 rm -f conftest.$ac_objext
12824 if { (eval echo "$as_me:12824: \"$ac_compile\"") >&5
12825 (eval $ac_compile) 2>&5
12827 echo "$as_me:12827: \$? = $ac_status" >&5
12828 (exit $ac_status); } &&
12829 { ac_try='test -s conftest.$ac_objext'
12830 { (eval echo "$as_me:12830: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5
12833 echo "$as_me:12833: \$? = $ac_status" >&5
12834 (exit $ac_status); }; }; then
12835 cf_cv_term_header=$cf_header
12838 echo "$as_me: failed program was:" >&5
12839 cat conftest.$ac_ext >&5
12840 cf_cv_term_header=no
12842 rm -f conftest.$ac_objext conftest.$ac_ext
12845 case $cf_cv_term_header in #(vi
12847 # If curses is ncurses, some packagers still mess it up by trying to make
12848 # us use GNU termcap. This handles the most common case.
12849 for cf_header in ncurses/term.h ncursesw/term.h
12851 cat >conftest.$ac_ext <<_ACEOF
12852 #line 12852 "configure"
12853 #include "confdefs.h"
12855 #include <${cf_cv_ncurses_header:-curses.h}>
12856 #ifdef NCURSES_VERSION
12857 #include <${cf_header}>
12869 rm -f conftest.$ac_objext
12870 if { (eval echo "$as_me:12870: \"$ac_compile\"") >&5
12871 (eval $ac_compile) 2>&5
12873 echo "$as_me:12873: \$? = $ac_status" >&5
12874 (exit $ac_status); } &&
12875 { ac_try='test -s conftest.$ac_objext'
12876 { (eval echo "$as_me:12876: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12879 echo "$as_me:12879: \$? = $ac_status" >&5
12880 (exit $ac_status); }; }; then
12881 cf_cv_term_header=$cf_header
12884 echo "$as_me: failed program was:" >&5
12885 cat conftest.$ac_ext >&5
12886 cf_cv_term_header=no
12888 rm -f conftest.$ac_objext conftest.$ac_ext
12894 echo "$as_me:12894: result: $cf_cv_term_header" >&5
12895 echo "${ECHO_T}$cf_cv_term_header" >&6
12897 case $cf_cv_term_header in #(vi
12899 cat >>confdefs.h <<\EOF
12900 #define HAVE_TERM_H 1
12904 ncurses/term.h) #(vi
12905 cat >>confdefs.h <<\EOF
12906 #define HAVE_NCURSES_TERM_H 1
12911 cat >>confdefs.h <<\EOF
12912 #define HAVE_NCURSESW_TERM_H 1
12943 use_default_colors \
12952 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12954 echo "$as_me:12954: checking for ${cf_func}" >&5
12955 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
12957 echo "${as_me:-configure}:12957: testing ${cf_func} ..." 1>&5
12959 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
12960 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 eval cf_result='$ac_cv_func_'$cf_func
12964 if test ".$cf_result" != ".no"; then
12965 cat >conftest.$ac_ext <<_ACEOF
12966 #line 12966 "configure"
12967 #include "confdefs.h"
12969 #ifdef HAVE_XCURSES
12970 #include <xcurses.h>
12971 char * XCursesProgramName = "test";
12973 #include <${cf_cv_ncurses_header:-curses.h}>
12974 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
12975 #include <ncursesw/term.h>
12976 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
12977 #include <ncurses/term.h>
12978 #elif defined(HAVE_TERM_H)
12988 long foo = (long)(&${cf_func});
12989 ${cf_cv_main_return:-return}(foo == 0);
12996 rm -f conftest.$ac_objext conftest$ac_exeext
12997 if { (eval echo "$as_me:12997: \"$ac_link\"") >&5
12998 (eval $ac_link) 2>&5
13000 echo "$as_me:13000: \$? = $ac_status" >&5
13001 (exit $ac_status); } &&
13002 { ac_try='test -s conftest$ac_exeext'
13003 { (eval echo "$as_me:13003: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13006 echo "$as_me:13006: \$? = $ac_status" >&5
13007 (exit $ac_status); }; }; then
13010 echo "$as_me: failed program was:" >&5
13011 cat conftest.$ac_ext >&5
13014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13016 eval 'cf_cv_func_'$cf_func'=$cf_result'
13020 # use the computed/retrieved cache-value:
13021 eval 'cf_result=$cf_cv_func_'$cf_func
13022 echo "$as_me:13022: result: $cf_result" >&5
13023 echo "${ECHO_T}$cf_result" >&6
13024 if test $cf_result != no; then
13025 cat >>confdefs.h <<EOF
13026 #define HAVE_${cf_tr_func} 1
13032 echo "$as_me:13032: checking for ncurses extended functions" >&5
13033 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
13034 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 cat >conftest.$ac_ext <<_ACEOF
13039 #line 13039 "configure"
13040 #include "confdefs.h"
13042 #include <${cf_cv_ncurses_header:-curses.h}>
13047 int x = NCURSES_EXT_FUNCS
13053 rm -f conftest.$ac_objext
13054 if { (eval echo "$as_me:13054: \"$ac_compile\"") >&5
13055 (eval $ac_compile) 2>&5
13057 echo "$as_me:13057: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
13059 { ac_try='test -s conftest.$ac_objext'
13060 { (eval echo "$as_me:13060: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13063 echo "$as_me:13063: \$? = $ac_status" >&5
13064 (exit $ac_status); }; }; then
13065 cf_cv_ncurses_ext_funcs=defined
13067 echo "$as_me: failed program was:" >&5
13068 cat conftest.$ac_ext >&5
13070 cat >conftest.$ac_ext <<_ACEOF
13071 #line 13071 "configure"
13072 #include "confdefs.h"
13074 #include <${cf_cv_ncurses_header:-curses.h}>
13079 (void) assume_default_colors (0, 0);
13080 (void) curses_version ();
13081 (void) define_key (0, 0);
13082 (void) is_term_resized (0, 0);
13083 (void) key_defined (0);
13084 (void) keybound (0, 0);
13085 (void) keyok (0, 0);
13086 (void) resize_term (0, 0);
13087 (void) resizeterm (0, 0);
13088 (void) use_default_colors ();
13089 (void) use_extended_names (0);
13090 (void) wresize (0, 0, 0);
13095 rm -f conftest.$ac_objext conftest$ac_exeext
13096 if { (eval echo "$as_me:13096: \"$ac_link\"") >&5
13097 (eval $ac_link) 2>&5
13099 echo "$as_me:13099: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try='test -s conftest$ac_exeext'
13102 { (eval echo "$as_me:13102: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13105 echo "$as_me:13105: \$? = $ac_status" >&5
13106 (exit $ac_status); }; }; then
13107 cf_cv_ncurses_ext_funcs=yes
13109 echo "$as_me: failed program was:" >&5
13110 cat conftest.$ac_ext >&5
13111 cf_cv_ncurses_ext_funcs=no
13113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13116 rm -f conftest.$ac_objext conftest.$ac_ext
13119 echo "$as_me:13119: result: $cf_cv_ncurses_ext_funcs" >&5
13120 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
13121 test "$cf_cv_ncurses_ext_funcs" = yes && cat >>confdefs.h <<\EOF
13122 #define NCURSES_EXT_FUNCS 1
13125 echo "$as_me:13125: checking for wide-character functions" >&5
13126 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
13127 if test "${cf_cv_widechar_funcs+set}" = set; then
13128 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 cat >conftest.$ac_ext <<_ACEOF
13132 #line 13132 "configure"
13133 #include "confdefs.h"
13135 #include <${cf_cv_ncurses_header:-curses.h}>
13140 static wchar_t src_wchar[2];
13141 static cchar_t dst_cchar;
13142 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
13148 rm -f conftest.$ac_objext conftest$ac_exeext
13149 if { (eval echo "$as_me:13149: \"$ac_link\"") >&5
13150 (eval $ac_link) 2>&5
13152 echo "$as_me:13152: \$? = $ac_status" >&5
13153 (exit $ac_status); } &&
13154 { ac_try='test -s conftest$ac_exeext'
13155 { (eval echo "$as_me:13155: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13158 echo "$as_me:13158: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 cf_cv_widechar_funcs=yes
13162 echo "$as_me: failed program was:" >&5
13163 cat conftest.$ac_ext >&5
13164 cf_cv_widechar_funcs=no
13166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13169 echo "$as_me:13169: result: $cf_cv_widechar_funcs" >&5
13170 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
13171 if test "$cf_cv_widechar_funcs" != no ; then
13172 cat >>confdefs.h <<\EOF
13173 #define USE_WIDEC_SUPPORT 1
13177 cat >>confdefs.h <<\EOF
13178 #define USE_WIDEC_SUPPORT 0
13183 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
13185 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13186 inttypes.h stdint.h unistd.h
13188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13189 echo "$as_me:13189: checking for $ac_header" >&5
13190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13192 echo $ECHO_N "(cached) $ECHO_C" >&6
13194 cat >conftest.$ac_ext <<_ACEOF
13195 #line 13195 "configure"
13196 #include "confdefs.h"
13197 $ac_includes_default
13198 #include <$ac_header>
13200 rm -f conftest.$ac_objext
13201 if { (eval echo "$as_me:13201: \"$ac_compile\"") >&5
13202 (eval $ac_compile) 2>&5
13204 echo "$as_me:13204: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
13206 { ac_try='test -s conftest.$ac_objext'
13207 { (eval echo "$as_me:13207: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13210 echo "$as_me:13210: \$? = $ac_status" >&5
13211 (exit $ac_status); }; }; then
13212 eval "$as_ac_Header=yes"
13214 echo "$as_me: failed program was:" >&5
13215 cat conftest.$ac_ext >&5
13216 eval "$as_ac_Header=no"
13218 rm -f conftest.$ac_objext conftest.$ac_ext
13220 echo "$as_me:13220: result: `eval echo '${'$as_ac_Header'}'`" >&5
13221 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13223 cat >>confdefs.h <<EOF
13224 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13230 echo "$as_me:13230: checking for pid_t" >&5
13231 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13232 if test "${ac_cv_type_pid_t+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 cat >conftest.$ac_ext <<_ACEOF
13236 #line 13236 "configure"
13237 #include "confdefs.h"
13238 $ac_includes_default
13244 if (sizeof (pid_t))
13250 rm -f conftest.$ac_objext
13251 if { (eval echo "$as_me:13251: \"$ac_compile\"") >&5
13252 (eval $ac_compile) 2>&5
13254 echo "$as_me:13254: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
13256 { ac_try='test -s conftest.$ac_objext'
13257 { (eval echo "$as_me:13257: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13260 echo "$as_me:13260: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 ac_cv_type_pid_t=yes
13264 echo "$as_me: failed program was:" >&5
13265 cat conftest.$ac_ext >&5
13266 ac_cv_type_pid_t=no
13268 rm -f conftest.$ac_objext conftest.$ac_ext
13270 echo "$as_me:13270: result: $ac_cv_type_pid_t" >&5
13271 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13272 if test $ac_cv_type_pid_t = yes; then
13276 cat >>confdefs.h <<EOF
13282 for ac_header in unistd.h vfork.h
13284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13285 echo "$as_me:13285: checking for $ac_header" >&5
13286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 cat >conftest.$ac_ext <<_ACEOF
13291 #line 13291 "configure"
13292 #include "confdefs.h"
13293 #include <$ac_header>
13295 if { (eval echo "$as_me:13295: \"$ac_cpp conftest.$ac_ext\"") >&5
13296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13298 egrep -v '^ *\+' conftest.er1 >conftest.err
13300 cat conftest.err >&5
13301 echo "$as_me:13301: \$? = $ac_status" >&5
13302 (exit $ac_status); } >/dev/null; then
13303 if test -s conftest.err; then
13304 ac_cpp_err=$ac_c_preproc_warn_flag
13311 if test -z "$ac_cpp_err"; then
13312 eval "$as_ac_Header=yes"
13314 echo "$as_me: failed program was:" >&5
13315 cat conftest.$ac_ext >&5
13316 eval "$as_ac_Header=no"
13318 rm -f conftest.err conftest.$ac_ext
13320 echo "$as_me:13320: result: `eval echo '${'$as_ac_Header'}'`" >&5
13321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13323 cat >>confdefs.h <<EOF
13324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13330 for ac_func in fork vfork
13332 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13333 echo "$as_me:13333: checking for $ac_func" >&5
13334 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13335 if eval "test \"\${$as_ac_var+set}\" = set"; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 cat >conftest.$ac_ext <<_ACEOF
13339 #line 13339 "configure"
13340 #include "confdefs.h"
13341 /* System header to define __stub macros and hopefully few prototypes,
13342 which can conflict with char $ac_func (); below. */
13343 #include <assert.h>
13344 /* Override any gcc2 internal prototype to avoid an error. */
13348 /* We use char because int might match the return type of a gcc2
13349 builtin and then its argument prototype would still apply. */
13356 /* The GNU C library defines this for functions which it implements
13357 to always fail with ENOSYS. Some functions are actually named
13358 something starting with __ and the normal name is an alias. */
13359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13369 rm -f conftest.$ac_objext conftest$ac_exeext
13370 if { (eval echo "$as_me:13370: \"$ac_link\"") >&5
13371 (eval $ac_link) 2>&5
13373 echo "$as_me:13373: \$? = $ac_status" >&5
13374 (exit $ac_status); } &&
13375 { ac_try='test -s conftest$ac_exeext'
13376 { (eval echo "$as_me:13376: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13379 echo "$as_me:13379: \$? = $ac_status" >&5
13380 (exit $ac_status); }; }; then
13381 eval "$as_ac_var=yes"
13383 echo "$as_me: failed program was:" >&5
13384 cat conftest.$ac_ext >&5
13385 eval "$as_ac_var=no"
13387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13389 echo "$as_me:13389: result: `eval echo '${'$as_ac_var'}'`" >&5
13390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13391 if test `eval echo '${'$as_ac_var'}'` = yes; then
13392 cat >>confdefs.h <<EOF
13393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13399 ac_cv_func_fork_works=$ac_cv_func_fork
13400 if test "x$ac_cv_func_fork" = xyes; then
13401 echo "$as_me:13401: checking for working fork" >&5
13402 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
13403 if test "${ac_cv_func_fork_works+set}" = set; then
13404 echo $ECHO_N "(cached) $ECHO_C" >&6
13406 if test "$cross_compiling" = yes; then
13407 ac_cv_func_fork_works=cross
13409 cat >conftest.$ac_ext <<_ACEOF
13410 /* By Rüdiger Kuhlmann. */
13411 #include <sys/types.h>
13413 # include <unistd.h>
13415 /* Some systems only have a dummy stub for fork() */
13419 $ac_main_return (1);
13420 $ac_main_return (0);
13423 rm -f conftest$ac_exeext
13424 if { (eval echo "$as_me:13424: \"$ac_link\"") >&5
13425 (eval $ac_link) 2>&5
13427 echo "$as_me:13427: \$? = $ac_status" >&5
13428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13429 { (eval echo "$as_me:13429: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13432 echo "$as_me:13432: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
13434 ac_cv_func_fork_works=yes
13436 echo "$as_me: program exited with status $ac_status" >&5
13437 echo "$as_me: failed program was:" >&5
13438 cat conftest.$ac_ext >&5
13439 ac_cv_func_fork_works=no
13441 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13444 echo "$as_me:13444: result: $ac_cv_func_fork_works" >&5
13445 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
13448 if test "x$ac_cv_func_fork_works" = xcross; then
13450 *-*-amigaos* | *-*-msdosdjgpp*)
13451 # Override, as these systems have only a dummy fork() stub
13452 ac_cv_func_fork_works=no
13455 ac_cv_func_fork_works=yes
13458 { echo "$as_me:13458: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
13459 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
13461 ac_cv_func_vfork_works=$ac_cv_func_vfork
13462 if test "x$ac_cv_func_vfork" = xyes; then
13463 echo "$as_me:13463: checking for working vfork" >&5
13464 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
13465 if test "${ac_cv_func_vfork_works+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 if test "$cross_compiling" = yes; then
13469 ac_cv_func_vfork_works=cross
13471 cat >conftest.$ac_ext <<_ACEOF
13472 #line 13472 "configure"
13473 #include "confdefs.h"
13474 /* Thanks to Paul Eggert for this test. */
13476 #include <sys/types.h>
13477 #include <sys/stat.h>
13479 # include <unistd.h>
13482 # include <vfork.h>
13484 /* On some sparc systems, changes by the child to local and incoming
13485 argument registers are propagated back to the parent. The compiler
13486 is told about this with #include <vfork.h>, but some compilers
13487 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13488 static variable whose address is put into a register that is
13489 clobbered by the vfork. */
13492 sparc_address_test (int arg)
13494 sparc_address_test (arg) int arg;
13497 static pid_t child;
13515 pid_t parent = getpid ();
13518 sparc_address_test ();
13523 /* Here is another test for sparc vfork register problems. This
13524 test uses lots of local variables, at least as many local
13525 variables as main has allocated so far including compiler
13526 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13527 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13528 reuse the register of parent for one of the local variables,
13529 since it will think that parent can't possibly be used any more
13530 in this routine. Assigning to the local variable will thus
13531 munge parent in the parent process. */
13533 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13534 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13535 /* Convince the compiler that p..p7 are live; otherwise, it might
13536 use the same hardware register for all 8 local variables. */
13537 if (p != p1 || p != p2 || p != p3 || p != p4
13538 || p != p5 || p != p6 || p != p7)
13541 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13542 from child file descriptors. If the child closes a descriptor
13543 before it execs or exits, this munges the parent's descriptor
13544 as well. Test for this by closing stdout in the child. */
13545 _exit(close(fileno(stdout)) != 0);
13550 while (wait(&status) != child)
13553 /* Was there some problem with vforking? */
13556 /* Did the child fail? (This shouldn't happen.) */
13559 /* Did the vfork/compiler bug occur? */
13560 || parent != getpid()
13562 /* Did the file descriptor bug occur? */
13563 || fstat(fileno(stdout), &st) != 0
13568 rm -f conftest$ac_exeext
13569 if { (eval echo "$as_me:13569: \"$ac_link\"") >&5
13570 (eval $ac_link) 2>&5
13572 echo "$as_me:13572: \$? = $ac_status" >&5
13573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13574 { (eval echo "$as_me:13574: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13577 echo "$as_me:13577: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13579 ac_cv_func_vfork_works=yes
13581 echo "$as_me: program exited with status $ac_status" >&5
13582 echo "$as_me: failed program was:" >&5
13583 cat conftest.$ac_ext >&5
13584 ac_cv_func_vfork_works=no
13586 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13589 echo "$as_me:13589: result: $ac_cv_func_vfork_works" >&5
13590 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
13593 if test "x$ac_cv_func_fork_works" = xcross; then
13594 ac_cv_func_vfork_works=ac_cv_func_vfork
13595 { echo "$as_me:13595: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
13596 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
13599 if test "x$ac_cv_func_vfork_works" = xyes; then
13601 cat >>confdefs.h <<\EOF
13602 #define HAVE_WORKING_VFORK 1
13607 cat >>confdefs.h <<\EOF
13612 if test "x$ac_cv_func_fork_works" = xyes; then
13614 cat >>confdefs.h <<\EOF
13615 #define HAVE_WORKING_FORK 1
13620 echo "$as_me:13620: checking if sys/time.h works with sys/select.h" >&5
13621 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
13622 if test "${cf_cv_sys_time_select+set}" = set; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 cat >conftest.$ac_ext <<_ACEOF
13627 #line 13627 "configure"
13628 #include "confdefs.h"
13630 #include <sys/types.h>
13631 #ifdef HAVE_SYS_TIME_H
13632 #include <sys/time.h>
13634 #ifdef HAVE_SYS_SELECT_H
13635 #include <sys/select.h>
13646 rm -f conftest.$ac_objext
13647 if { (eval echo "$as_me:13647: \"$ac_compile\"") >&5
13648 (eval $ac_compile) 2>&5
13650 echo "$as_me:13650: \$? = $ac_status" >&5
13651 (exit $ac_status); } &&
13652 { ac_try='test -s conftest.$ac_objext'
13653 { (eval echo "$as_me:13653: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13656 echo "$as_me:13656: \$? = $ac_status" >&5
13657 (exit $ac_status); }; }; then
13658 cf_cv_sys_time_select=yes
13660 echo "$as_me: failed program was:" >&5
13661 cat conftest.$ac_ext >&5
13662 cf_cv_sys_time_select=no
13664 rm -f conftest.$ac_objext conftest.$ac_ext
13668 echo "$as_me:13668: result: $cf_cv_sys_time_select" >&5
13669 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
13670 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
13671 #define HAVE_SYS_TIME_SELECT 1
13674 echo "$as_me:13674: checking for function curses_version" >&5
13675 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
13676 if test "${cf_cv_func_curses_version+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 if test "$cross_compiling" = yes; then
13681 cf_cv_func_curses_version=unknown
13683 cat >conftest.$ac_ext <<_ACEOF
13684 #line 13684 "configure"
13685 #include "confdefs.h"
13687 #include <${cf_cv_ncurses_header:-curses.h}>
13691 sprintf(temp, "%s\n", curses_version());
13692 ${cf_cv_main_return:-return}(0);
13696 rm -f conftest$ac_exeext
13697 if { (eval echo "$as_me:13697: \"$ac_link\"") >&5
13698 (eval $ac_link) 2>&5
13700 echo "$as_me:13700: \$? = $ac_status" >&5
13701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13702 { (eval echo "$as_me:13702: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13705 echo "$as_me:13705: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 cf_cv_func_curses_version=yes
13710 echo "$as_me: program exited with status $ac_status" >&5
13711 echo "$as_me: failed program was:" >&5
13712 cat conftest.$ac_ext >&5
13713 cf_cv_func_curses_version=no
13716 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13720 echo "$as_me:13720: result: $cf_cv_func_curses_version" >&5
13721 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
13722 test "$cf_cv_func_curses_version" = yes && cat >>confdefs.h <<\EOF
13723 #define HAVE_CURSES_VERSION 1
13726 echo "$as_me:13726: checking for ncurses wrap-prefix" >&5
13727 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
13729 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
13730 if test "${with_ncurses_wrap_prefix+set}" = set; then
13731 withval="$with_ncurses_wrap_prefix"
13732 NCURSES_WRAP_PREFIX=$withval
13734 NCURSES_WRAP_PREFIX=_nc_
13736 echo "$as_me:13736: result: $NCURSES_WRAP_PREFIX" >&5
13737 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
13739 echo "$as_me:13739: checking for alternate character set array" >&5
13740 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
13741 if test "${cf_cv_curses_acs_map+set}" = set; then
13742 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 cf_cv_curses_acs_map=unknown
13746 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
13748 cat >conftest.$ac_ext <<_ACEOF
13749 #line 13749 "configure"
13750 #include "confdefs.h"
13752 #include <${cf_cv_ncurses_header:-curses.h}>
13758 $name['k'] = ACS_PLUS
13764 rm -f conftest.$ac_objext conftest$ac_exeext
13765 if { (eval echo "$as_me:13765: \"$ac_link\"") >&5
13766 (eval $ac_link) 2>&5
13768 echo "$as_me:13768: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
13770 { ac_try='test -s conftest$ac_exeext'
13771 { (eval echo "$as_me:13771: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13774 echo "$as_me:13774: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13776 cf_cv_curses_acs_map=$name; break
13778 echo "$as_me: failed program was:" >&5
13779 cat conftest.$ac_ext >&5
13781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13785 echo "$as_me:13785: result: $cf_cv_curses_acs_map" >&5
13786 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
13788 test "$cf_cv_curses_acs_map" != unknown && cat >>confdefs.h <<EOF
13789 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
13792 echo "$as_me:13792: checking for wide alternate character set array" >&5
13793 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
13794 if test "${cf_cv_curses_wacs_map+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13798 cf_cv_curses_wacs_map=unknown
13799 for name in wacs_map _wacs_map __wacs_map _nc_wacs
13801 cat >conftest.$ac_ext <<_ACEOF
13802 #line 13802 "configure"
13803 #include "confdefs.h"
13805 #ifndef _XOPEN_SOURCE_EXTENDED
13806 #define _XOPEN_SOURCE_EXTENDED
13808 #include <${cf_cv_ncurses_header:-curses.h}>
13812 $name['k'] = *WACS_PLUS
13817 rm -f conftest.$ac_objext conftest$ac_exeext
13818 if { (eval echo "$as_me:13818: \"$ac_link\"") >&5
13819 (eval $ac_link) 2>&5
13821 echo "$as_me:13821: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -s conftest$ac_exeext'
13824 { (eval echo "$as_me:13824: \"$ac_try\"") >&5
13825 (eval $ac_try) 2>&5
13827 echo "$as_me:13827: \$? = $ac_status" >&5
13828 (exit $ac_status); }; }; then
13829 cf_cv_curses_wacs_map=$name
13832 echo "$as_me: failed program was:" >&5
13833 cat conftest.$ac_ext >&5
13835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13838 echo "$as_me:13838: result: $cf_cv_curses_wacs_map" >&5
13839 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
13841 echo "$as_me:13841: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
13842 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
13843 cat >conftest.$ac_ext <<_ACEOF
13844 #line 13844 "configure"
13845 #include "confdefs.h"
13847 #ifndef _XOPEN_SOURCE_EXTENDED
13848 #define _XOPEN_SOURCE_EXTENDED
13850 #include <${cf_cv_ncurses_header:-curses.h}>
13861 rm -f conftest.$ac_objext
13862 if { (eval echo "$as_me:13862: \"$ac_compile\"") >&5
13863 (eval $ac_compile) 2>&5
13865 echo "$as_me:13865: \$? = $ac_status" >&5
13866 (exit $ac_status); } &&
13867 { ac_try='test -s conftest.$ac_objext'
13868 { (eval echo "$as_me:13868: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5
13871 echo "$as_me:13871: \$? = $ac_status" >&5
13872 (exit $ac_status); }; }; then
13875 echo "$as_me: failed program was:" >&5
13876 cat conftest.$ac_ext >&5
13879 rm -f conftest.$ac_objext conftest.$ac_ext
13880 echo "$as_me:13880: result: $cf_result" >&5
13881 echo "${ECHO_T}$cf_result" >&6
13882 if test $cf_result = yes ; then
13884 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13886 cat >>confdefs.h <<EOF
13887 #define $cf_result 1
13891 cat >>confdefs.h <<EOF
13892 #define attr_t long
13897 # This is needed on Tru64 5.0 to declare mbstate_t
13898 echo "$as_me:13898: checking if we must include wchar.h to declare mbstate_t" >&5
13899 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
13900 if test "${cf_cv_mbstate_t+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 cat >conftest.$ac_ext <<_ACEOF
13905 #line 13905 "configure"
13906 #include "confdefs.h"
13908 #include <stdlib.h>
13909 #include <stdarg.h>
13911 #ifdef HAVE_LIBUTF8_H
13912 #include <libutf8.h>
13922 rm -f conftest.$ac_objext
13923 if { (eval echo "$as_me:13923: \"$ac_compile\"") >&5
13924 (eval $ac_compile) 2>&5
13926 echo "$as_me:13926: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -s conftest.$ac_objext'
13929 { (eval echo "$as_me:13929: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13932 echo "$as_me:13932: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13936 echo "$as_me: failed program was:" >&5
13937 cat conftest.$ac_ext >&5
13938 cat >conftest.$ac_ext <<_ACEOF
13939 #line 13939 "configure"
13940 #include "confdefs.h"
13942 #include <stdlib.h>
13943 #include <stdarg.h>
13946 #ifdef HAVE_LIBUTF8_H
13947 #include <libutf8.h>
13957 rm -f conftest.$ac_objext
13958 if { (eval echo "$as_me:13958: \"$ac_compile\"") >&5
13959 (eval $ac_compile) 2>&5
13961 echo "$as_me:13961: \$? = $ac_status" >&5
13962 (exit $ac_status); } &&
13963 { ac_try='test -s conftest.$ac_objext'
13964 { (eval echo "$as_me:13964: \"$ac_try\"") >&5
13965 (eval $ac_try) 2>&5
13967 echo "$as_me:13967: \$? = $ac_status" >&5
13968 (exit $ac_status); }; }; then
13969 cf_cv_mbstate_t=yes
13971 echo "$as_me: failed program was:" >&5
13972 cat conftest.$ac_ext >&5
13973 cf_cv_mbstate_t=unknown
13975 rm -f conftest.$ac_objext conftest.$ac_ext
13977 rm -f conftest.$ac_objext conftest.$ac_ext
13979 echo "$as_me:13979: result: $cf_cv_mbstate_t" >&5
13980 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
13982 if test "$cf_cv_mbstate_t" = yes ; then
13983 cat >>confdefs.h <<\EOF
13984 #define NEED_WCHAR_H 1
13990 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
13991 if test "$cf_cv_mbstate_t" = unknown ; then
13992 NCURSES_MBSTATE_T=1
13995 # if we find mbstate_t in either place, use substitution to provide a fallback.
13996 if test "$cf_cv_mbstate_t" != unknown ; then
13997 NCURSES_OK_MBSTATE_T=1
14000 # This is needed on Tru64 5.0 to declare wchar_t
14001 echo "$as_me:14001: checking if we must include wchar.h to declare wchar_t" >&5
14002 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
14003 if test "${cf_cv_wchar_t+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14007 cat >conftest.$ac_ext <<_ACEOF
14008 #line 14008 "configure"
14009 #include "confdefs.h"
14011 #include <stdlib.h>
14012 #include <stdarg.h>
14014 #ifdef HAVE_LIBUTF8_H
14015 #include <libutf8.h>
14025 rm -f conftest.$ac_objext
14026 if { (eval echo "$as_me:14026: \"$ac_compile\"") >&5
14027 (eval $ac_compile) 2>&5
14029 echo "$as_me:14029: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -s conftest.$ac_objext'
14032 { (eval echo "$as_me:14032: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14035 echo "$as_me:14035: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14039 echo "$as_me: failed program was:" >&5
14040 cat conftest.$ac_ext >&5
14041 cat >conftest.$ac_ext <<_ACEOF
14042 #line 14042 "configure"
14043 #include "confdefs.h"
14045 #include <stdlib.h>
14046 #include <stdarg.h>
14049 #ifdef HAVE_LIBUTF8_H
14050 #include <libutf8.h>
14060 rm -f conftest.$ac_objext
14061 if { (eval echo "$as_me:14061: \"$ac_compile\"") >&5
14062 (eval $ac_compile) 2>&5
14064 echo "$as_me:14064: \$? = $ac_status" >&5
14065 (exit $ac_status); } &&
14066 { ac_try='test -s conftest.$ac_objext'
14067 { (eval echo "$as_me:14067: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:14070: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14074 echo "$as_me: failed program was:" >&5
14075 cat conftest.$ac_ext >&5
14076 cf_cv_wchar_t=unknown
14078 rm -f conftest.$ac_objext conftest.$ac_ext
14080 rm -f conftest.$ac_objext conftest.$ac_ext
14082 echo "$as_me:14082: result: $cf_cv_wchar_t" >&5
14083 echo "${ECHO_T}$cf_cv_wchar_t" >&6
14085 if test "$cf_cv_wchar_t" = yes ; then
14086 cat >>confdefs.h <<\EOF
14087 #define NEED_WCHAR_H 1
14093 # if we do not find wchar_t in either place, use substitution to provide a fallback.
14094 if test "$cf_cv_wchar_t" = unknown ; then
14098 # if we find wchar_t in either place, use substitution to provide a fallback.
14099 if test "$cf_cv_wchar_t" != unknown ; then
14100 NCURSES_OK_WCHAR_T=1
14103 # This is needed on Tru64 5.0 to declare wint_t
14104 echo "$as_me:14104: checking if we must include wchar.h to declare wint_t" >&5
14105 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
14106 if test "${cf_cv_wint_t+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14110 cat >conftest.$ac_ext <<_ACEOF
14111 #line 14111 "configure"
14112 #include "confdefs.h"
14114 #include <stdlib.h>
14115 #include <stdarg.h>
14117 #ifdef HAVE_LIBUTF8_H
14118 #include <libutf8.h>
14128 rm -f conftest.$ac_objext
14129 if { (eval echo "$as_me:14129: \"$ac_compile\"") >&5
14130 (eval $ac_compile) 2>&5
14132 echo "$as_me:14132: \$? = $ac_status" >&5
14133 (exit $ac_status); } &&
14134 { ac_try='test -s conftest.$ac_objext'
14135 { (eval echo "$as_me:14135: \"$ac_try\"") >&5
14136 (eval $ac_try) 2>&5
14138 echo "$as_me:14138: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14142 echo "$as_me: failed program was:" >&5
14143 cat conftest.$ac_ext >&5
14144 cat >conftest.$ac_ext <<_ACEOF
14145 #line 14145 "configure"
14146 #include "confdefs.h"
14148 #include <stdlib.h>
14149 #include <stdarg.h>
14152 #ifdef HAVE_LIBUTF8_H
14153 #include <libutf8.h>
14163 rm -f conftest.$ac_objext
14164 if { (eval echo "$as_me:14164: \"$ac_compile\"") >&5
14165 (eval $ac_compile) 2>&5
14167 echo "$as_me:14167: \$? = $ac_status" >&5
14168 (exit $ac_status); } &&
14169 { ac_try='test -s conftest.$ac_objext'
14170 { (eval echo "$as_me:14170: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14173 echo "$as_me:14173: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14177 echo "$as_me: failed program was:" >&5
14178 cat conftest.$ac_ext >&5
14179 cf_cv_wint_t=unknown
14181 rm -f conftest.$ac_objext conftest.$ac_ext
14183 rm -f conftest.$ac_objext conftest.$ac_ext
14185 echo "$as_me:14185: result: $cf_cv_wint_t" >&5
14186 echo "${ECHO_T}$cf_cv_wint_t" >&6
14188 if test "$cf_cv_wint_t" = yes ; then
14189 cat >>confdefs.h <<\EOF
14190 #define NEED_WCHAR_H 1
14196 # if we do not find wint_t in either place, use substitution to provide a fallback.
14197 if test "$cf_cv_wint_t" = unknown ; then
14201 # if we find wint_t in either place, use substitution to provide a fallback.
14202 if test "$cf_cv_wint_t" != unknown ; then
14203 NCURSES_OK_WINT_T=1
14206 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
14208 echo "$as_me:14208: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
14209 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14210 cat >conftest.$ac_ext <<_ACEOF
14211 #line 14211 "configure"
14212 #include "confdefs.h"
14214 #ifndef _XOPEN_SOURCE_EXTENDED
14215 #define _XOPEN_SOURCE_EXTENDED
14217 #include <${cf_cv_ncurses_header:-curses.h}>
14228 rm -f conftest.$ac_objext
14229 if { (eval echo "$as_me:14229: \"$ac_compile\"") >&5
14230 (eval $ac_compile) 2>&5
14232 echo "$as_me:14232: \$? = $ac_status" >&5
14233 (exit $ac_status); } &&
14234 { ac_try='test -s conftest.$ac_objext'
14235 { (eval echo "$as_me:14235: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14238 echo "$as_me:14238: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14242 echo "$as_me: failed program was:" >&5
14243 cat conftest.$ac_ext >&5
14246 rm -f conftest.$ac_objext conftest.$ac_ext
14247 echo "$as_me:14247: result: $cf_result" >&5
14248 echo "${ECHO_T}$cf_result" >&6
14249 if test $cf_result = yes ; then
14251 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14253 cat >>confdefs.h <<EOF
14254 #define $cf_result 1
14258 cat >>confdefs.h <<EOF
14259 #define mbstate_t long
14266 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
14268 echo "$as_me:14268: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
14269 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14270 cat >conftest.$ac_ext <<_ACEOF
14271 #line 14271 "configure"
14272 #include "confdefs.h"
14274 #ifndef _XOPEN_SOURCE_EXTENDED
14275 #define _XOPEN_SOURCE_EXTENDED
14277 #include <${cf_cv_ncurses_header:-curses.h}>
14288 rm -f conftest.$ac_objext
14289 if { (eval echo "$as_me:14289: \"$ac_compile\"") >&5
14290 (eval $ac_compile) 2>&5
14292 echo "$as_me:14292: \$? = $ac_status" >&5
14293 (exit $ac_status); } &&
14294 { ac_try='test -s conftest.$ac_objext'
14295 { (eval echo "$as_me:14295: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14298 echo "$as_me:14298: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
14302 echo "$as_me: failed program was:" >&5
14303 cat conftest.$ac_ext >&5
14306 rm -f conftest.$ac_objext conftest.$ac_ext
14307 echo "$as_me:14307: result: $cf_result" >&5
14308 echo "${ECHO_T}$cf_result" >&6
14309 if test $cf_result = yes ; then
14311 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14313 cat >>confdefs.h <<EOF
14314 #define $cf_result 1
14318 cat >>confdefs.h <<EOF
14319 #define wchar_t long
14326 if test "$NCURSES_OK_WINT_T" = 0 ; then
14328 echo "$as_me:14328: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
14329 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14330 cat >conftest.$ac_ext <<_ACEOF
14331 #line 14331 "configure"
14332 #include "confdefs.h"
14334 #ifndef _XOPEN_SOURCE_EXTENDED
14335 #define _XOPEN_SOURCE_EXTENDED
14337 #include <${cf_cv_ncurses_header:-curses.h}>
14348 rm -f conftest.$ac_objext
14349 if { (eval echo "$as_me:14349: \"$ac_compile\"") >&5
14350 (eval $ac_compile) 2>&5
14352 echo "$as_me:14352: \$? = $ac_status" >&5
14353 (exit $ac_status); } &&
14354 { ac_try='test -s conftest.$ac_objext'
14355 { (eval echo "$as_me:14355: \"$ac_try\"") >&5
14356 (eval $ac_try) 2>&5
14358 echo "$as_me:14358: \$? = $ac_status" >&5
14359 (exit $ac_status); }; }; then
14362 echo "$as_me: failed program was:" >&5
14363 cat conftest.$ac_ext >&5
14366 rm -f conftest.$ac_objext conftest.$ac_ext
14367 echo "$as_me:14367: result: $cf_result" >&5
14368 echo "${ECHO_T}$cf_result" >&6
14369 if test $cf_result = yes ; then
14371 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14373 cat >>confdefs.h <<EOF
14374 #define $cf_result 1
14378 cat >>confdefs.h <<EOF
14379 #define wint_t long
14386 echo "$as_me:14386: checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
14387 echo $ECHO_N "checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14388 cat >conftest.$ac_ext <<_ACEOF
14389 #line 14389 "configure"
14390 #include "confdefs.h"
14392 #ifdef HAVE_XCURSES
14393 #include <xcurses.h>
14394 char * XCursesProgramName = "test";
14396 #include <${cf_cv_ncurses_header:-curses.h}>
14397 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14398 #include <ncursesw/term.h>
14399 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14400 #include <ncurses/term.h>
14401 #elif defined(HAVE_TERM_H)
14410 void *foo = &(boolnames)
14416 rm -f conftest.$ac_objext
14417 if { (eval echo "$as_me:14417: \"$ac_compile\"") >&5
14418 (eval $ac_compile) 2>&5
14420 echo "$as_me:14420: \$? = $ac_status" >&5
14421 (exit $ac_status); } &&
14422 { ac_try='test -s conftest.$ac_objext'
14423 { (eval echo "$as_me:14423: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14426 echo "$as_me:14426: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14430 echo "$as_me: failed program was:" >&5
14431 cat conftest.$ac_ext >&5
14434 rm -f conftest.$ac_objext conftest.$ac_ext
14435 echo "$as_me:14435: result: $cf_result" >&5
14436 echo "${ECHO_T}$cf_result" >&6
14437 if test $cf_result = yes ; then
14439 cf_result=`echo "have_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14441 cat >>confdefs.h <<EOF
14442 #define $cf_result 1
14446 echo "$as_me:14446: checking for data boolnames in library" >&5
14447 echo $ECHO_N "checking for data boolnames in library... $ECHO_C" >&6
14448 cat >conftest.$ac_ext <<_ACEOF
14449 #line 14449 "configure"
14450 #include "confdefs.h"
14452 #ifdef HAVE_XCURSES
14453 #include <xcurses.h>
14454 char * XCursesProgramName = "test";
14456 #include <${cf_cv_ncurses_header:-curses.h}>
14457 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14458 #include <ncursesw/term.h>
14459 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14460 #include <ncurses/term.h>
14461 #elif defined(HAVE_TERM_H)
14466 extern char boolnames;
14472 void *foo = &(boolnames);
14473 ${cf_cv_main_return:-return}(foo == 0);
14480 rm -f conftest.$ac_objext conftest$ac_exeext
14481 if { (eval echo "$as_me:14481: \"$ac_link\"") >&5
14482 (eval $ac_link) 2>&5
14484 echo "$as_me:14484: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
14486 { ac_try='test -s conftest$ac_exeext'
14487 { (eval echo "$as_me:14487: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14490 echo "$as_me:14490: \$? = $ac_status" >&5
14491 (exit $ac_status); }; }; then
14494 echo "$as_me: failed program was:" >&5
14495 cat conftest.$ac_ext >&5
14498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14499 echo "$as_me:14499: result: $cf_result" >&5
14500 echo "${ECHO_T}$cf_result" >&6
14501 if test $cf_result = yes ; then
14503 cf_result=`echo "decl_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14505 cat >>confdefs.h <<EOF
14506 #define $cf_result 1
14512 echo "$as_me:14512: checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
14513 echo $ECHO_N "checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14514 cat >conftest.$ac_ext <<_ACEOF
14515 #line 14515 "configure"
14516 #include "confdefs.h"
14518 #ifdef HAVE_XCURSES
14519 #include <xcurses.h>
14520 char * XCursesProgramName = "test";
14522 #include <${cf_cv_ncurses_header:-curses.h}>
14523 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14524 #include <ncursesw/term.h>
14525 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14526 #include <ncurses/term.h>
14527 #elif defined(HAVE_TERM_H)
14536 void *foo = &(boolfnames)
14542 rm -f conftest.$ac_objext
14543 if { (eval echo "$as_me:14543: \"$ac_compile\"") >&5
14544 (eval $ac_compile) 2>&5
14546 echo "$as_me:14546: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
14548 { ac_try='test -s conftest.$ac_objext'
14549 { (eval echo "$as_me:14549: \"$ac_try\"") >&5
14550 (eval $ac_try) 2>&5
14552 echo "$as_me:14552: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14556 echo "$as_me: failed program was:" >&5
14557 cat conftest.$ac_ext >&5
14560 rm -f conftest.$ac_objext conftest.$ac_ext
14561 echo "$as_me:14561: result: $cf_result" >&5
14562 echo "${ECHO_T}$cf_result" >&6
14563 if test $cf_result = yes ; then
14565 cf_result=`echo "have_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14567 cat >>confdefs.h <<EOF
14568 #define $cf_result 1
14572 echo "$as_me:14572: checking for data boolfnames in library" >&5
14573 echo $ECHO_N "checking for data boolfnames in library... $ECHO_C" >&6
14574 cat >conftest.$ac_ext <<_ACEOF
14575 #line 14575 "configure"
14576 #include "confdefs.h"
14578 #ifdef HAVE_XCURSES
14579 #include <xcurses.h>
14580 char * XCursesProgramName = "test";
14582 #include <${cf_cv_ncurses_header:-curses.h}>
14583 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14584 #include <ncursesw/term.h>
14585 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14586 #include <ncurses/term.h>
14587 #elif defined(HAVE_TERM_H)
14592 extern char boolfnames;
14598 void *foo = &(boolfnames);
14599 ${cf_cv_main_return:-return}(foo == 0);
14606 rm -f conftest.$ac_objext conftest$ac_exeext
14607 if { (eval echo "$as_me:14607: \"$ac_link\"") >&5
14608 (eval $ac_link) 2>&5
14610 echo "$as_me:14610: \$? = $ac_status" >&5
14611 (exit $ac_status); } &&
14612 { ac_try='test -s conftest$ac_exeext'
14613 { (eval echo "$as_me:14613: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14616 echo "$as_me:14616: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14620 echo "$as_me: failed program was:" >&5
14621 cat conftest.$ac_ext >&5
14624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14625 echo "$as_me:14625: result: $cf_result" >&5
14626 echo "${ECHO_T}$cf_result" >&6
14627 if test $cf_result = yes ; then
14629 cf_result=`echo "decl_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14631 cat >>confdefs.h <<EOF
14632 #define $cf_result 1
14641 ac_config_files="$ac_config_files Makefile"
14642 ac_config_commands="$ac_config_commands default"
14643 cat >confcache <<\_ACEOF
14644 # This file is a shell script that caches the results of configure
14645 # tests run on this system so they can be shared between configure
14646 # scripts and configure runs, see configure's option --config-cache.
14647 # It is not useful on other systems. If it contains results you don't
14648 # want to keep, you may remove or edit it.
14650 # config.status only pays attention to the cache file if you give it
14651 # the --recheck option to rerun configure.
14653 # `ac_cv_env_foo' variables (set or unset) will be overriden when
14654 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14655 # following values.
14659 # The following way of writing the cache mishandles newlines in values,
14660 # but we know of no workaround that is simple, portable, and efficient.
14661 # So, don't put newlines in cache variables' values.
14662 # Ultrix sh set writes to stderr and can't be redirected directly,
14663 # and sets the high bit in the cache file unless we assign to the vars.
14666 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14668 # `set' does not quote correctly, so add quotes (double-quote
14669 # substitution turns \\\\ into \\, and sed turns \\ into \).
14672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14675 # `set' quotes correctly as required by POSIX, so do not add quotes.
14677 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14684 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14686 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14688 if cmp -s $cache_file confcache; then :; else
14689 if test -w $cache_file; then
14690 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14691 cat confcache >$cache_file
14693 echo "not updating unwritable cache $cache_file"
14698 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14699 # Let make expand exec_prefix.
14700 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14702 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14703 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14704 # trailing colons and then remove the whole line if VPATH becomes empty
14705 # (actually we leave an empty line to preserve line numbers).
14706 if test "x$srcdir" = x.; then
14707 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14708 s/:*\$(srcdir):*/:/;
14709 s/:*\${srcdir}:*/:/;
14711 s/^\([^=]*=[ ]*\):*/\1/;
14717 DEFS=-DHAVE_CONFIG_H
14719 : ${CONFIG_STATUS=./config.status}
14720 ac_clean_files_save=$ac_clean_files
14721 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14722 { echo "$as_me:14722: creating $CONFIG_STATUS" >&5
14723 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14724 cat >$CONFIG_STATUS <<_ACEOF
14726 # Generated automatically by configure.
14727 # Run this file to recreate the current configuration.
14728 # Compiler output produced by configure, useful for debugging
14729 # configure, is in config.log if it exists.
14732 SHELL=\${CONFIG_SHELL-$SHELL}
14733 ac_cs_invocation="\$0 \$@"
14737 cat >>$CONFIG_STATUS <<\_ACEOF
14738 # Be Bourne compatible
14739 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14742 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14746 # Name of the executable.
14747 as_me=`echo "$0" |sed 's,.*[\\/],,'`
14749 if expr a : '\(a\)' >/dev/null 2>&1; then
14755 rm -f conf$$ conf$$.exe conf$$.file
14757 if ln -s conf$$.file conf$$ 2>/dev/null; then
14758 # We could just check for DJGPP; but this test a) works b) is more generic
14759 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14760 if test -f conf$$.exe; then
14761 # Don't use ln at all; we don't have any links
14766 elif ln conf$$.file conf$$ 2>/dev/null; then
14771 rm -f conf$$ conf$$.exe conf$$.file
14773 as_executable_p="test -f"
14775 # Support unset when possible.
14776 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14783 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
14784 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
14785 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
14786 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
14787 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
14788 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
14789 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
14790 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
14793 # We need space, tab and new line, in precisely that order.
14799 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
14805 # Files that config.status was made for.
14806 if test -n "$ac_config_files"; then
14807 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14810 if test -n "$ac_config_headers"; then
14811 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14814 if test -n "$ac_config_links"; then
14815 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14818 if test -n "$ac_config_commands"; then
14819 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14822 cat >>$CONFIG_STATUS <<\EOF
14825 \`$as_me' instantiates files from templates according to the
14826 current configuration.
14828 Usage: $0 [OPTIONS] [FILE]...
14830 -h, --help print this help, then exit
14831 -V, --version print version number, then exit
14832 -d, --debug don't remove temporary files
14833 --recheck update $as_me by reconfiguring in the same conditions
14834 --file=FILE[:TEMPLATE]
14835 instantiate the configuration file FILE
14836 --header=FILE[:TEMPLATE]
14837 instantiate the configuration header FILE
14839 Configuration files:
14842 Configuration headers:
14845 Configuration commands:
14848 Report bugs to <dickey@invisible-island.net>."
14851 cat >>$CONFIG_STATUS <<EOF
14854 configured by $0, generated by GNU Autoconf 2.52.20101001,
14855 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14857 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14858 Free Software Foundation, Inc.
14859 This config.status script is free software; the Free Software Foundation
14860 gives unlimited permission to copy, distribute and modify it."
14865 cat >>$CONFIG_STATUS <<\EOF
14866 # If no file are specified by the user, then we need to provide default
14867 # value. By we need to know if files were specified by the user.
14873 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14874 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14876 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
14880 *) # This is not an option, so the user has probably given explicit
14882 ac_need_defaults=false;;
14886 # Handling of the options.
14888 cat >>$CONFIG_STATUS <<EOF
14889 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14890 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
14891 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
14893 cat >>$CONFIG_STATUS <<\EOF
14894 --version | --vers* | -V )
14895 echo "$ac_cs_version"; exit 0 ;;
14897 # Conflict between --help and --header
14898 { { echo "$as_me:14898: error: ambiguous option: $1
14899 Try \`$0 --help' for more information." >&5
14900 echo "$as_me: error: ambiguous option: $1
14901 Try \`$0 --help' for more information." >&2;}
14902 { (exit 1); exit 1; }; };;
14903 --help | --hel | -h )
14904 echo "$ac_cs_usage"; exit 0 ;;
14905 --debug | --d* | -d )
14907 --file | --fil | --fi | --f )
14909 CONFIG_FILES="$CONFIG_FILES $1"
14910 ac_need_defaults=false;;
14911 --header | --heade | --head | --hea )
14913 CONFIG_HEADERS="$CONFIG_HEADERS $1"
14914 ac_need_defaults=false;;
14916 # This is an error.
14917 -*) { { echo "$as_me:14917: error: unrecognized option: $1
14918 Try \`$0 --help' for more information." >&5
14919 echo "$as_me: error: unrecognized option: $1
14920 Try \`$0 --help' for more information." >&2;}
14921 { (exit 1); exit 1; }; } ;;
14923 *) ac_config_targets="$ac_config_targets $1" ;;
14932 ## ----------------------- ##
14933 ## Running config.status. ##
14934 ## ----------------------- ##
14936 This file was extended by $as_me 2.52.20101001, executed with
14937 CONFIG_FILES = $CONFIG_FILES
14938 CONFIG_HEADERS = $CONFIG_HEADERS
14939 CONFIG_LINKS = $CONFIG_LINKS
14940 CONFIG_COMMANDS = $CONFIG_COMMANDS
14941 > $ac_cs_invocation
14942 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14947 cat >>$CONFIG_STATUS <<EOF
14949 # INIT-COMMANDS section.
14957 cat >>$CONFIG_STATUS <<\EOF
14958 for ac_config_target in $ac_config_targets
14960 case "$ac_config_target" in
14961 # Handling of arguments.
14962 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14963 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14964 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
14965 *) { { echo "$as_me:14965: error: invalid argument: $ac_config_target" >&5
14966 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14967 { (exit 1); exit 1; }; };;
14971 # If the user did not use the arguments to specify the items to instantiate,
14972 # then the envvar interface is used. Set only those that are not.
14973 # We use the long form for the default assignment because of an extremely
14974 # bizarre bug on SunOS 4.1.3.
14975 if $ac_need_defaults; then
14976 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14977 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14978 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14981 # Create a temporary directory, and hook for its removal unless debugging.
14984 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14985 trap '{ (exit 1); exit 1; }' 1 2 13 15
14988 # Create a (secure) tmp directory for tmp files.
14991 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
14992 test -n "$tmp" && test -d "$tmp"
14995 tmp=$TMPDIR/cs$$-$RANDOM
14996 (umask 077 && mkdir $tmp)
14999 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
15000 { (exit 1); exit 1; }
15005 cat >>$CONFIG_STATUS <<EOF
15008 # CONFIG_FILES section.
15011 # No need to generate the scripts if there are no CONFIG_FILES.
15012 # This happens for instance when ./config.status config.h
15013 if test -n "\$CONFIG_FILES"; then
15014 # Protect against being on the right side of a sed subst in config.status.
15015 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15016 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15017 s,@SHELL@,$SHELL,;t t
15018 s,@exec_prefix@,$exec_prefix,;t t
15019 s,@prefix@,$prefix,;t t
15020 s,@program_transform_name@,$program_transform_name,;t t
15021 s,@bindir@,$bindir,;t t
15022 s,@sbindir@,$sbindir,;t t
15023 s,@libexecdir@,$libexecdir,;t t
15024 s,@datadir@,$datadir,;t t
15025 s,@sysconfdir@,$sysconfdir,;t t
15026 s,@sharedstatedir@,$sharedstatedir,;t t
15027 s,@localstatedir@,$localstatedir,;t t
15028 s,@libdir@,$libdir,;t t
15029 s,@includedir@,$includedir,;t t
15030 s,@oldincludedir@,$oldincludedir,;t t
15031 s,@infodir@,$infodir,;t t
15032 s,@mandir@,$mandir,;t t
15033 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15034 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15035 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15036 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15037 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15038 s,@build_alias@,$build_alias,;t t
15039 s,@host_alias@,$host_alias,;t t
15040 s,@target_alias@,$target_alias,;t t
15041 s,@ECHO_C@,$ECHO_C,;t t
15042 s,@ECHO_N@,$ECHO_N,;t t
15043 s,@ECHO_T@,$ECHO_T,;t t
15044 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15045 s,@DEFS@,$DEFS,;t t
15046 s,@LIBS@,$LIBS,;t t
15047 s,@build@,$build,;t t
15048 s,@build_cpu@,$build_cpu,;t t
15049 s,@build_vendor@,$build_vendor,;t t
15050 s,@build_os@,$build_os,;t t
15051 s,@host@,$host,;t t
15052 s,@host_cpu@,$host_cpu,;t t
15053 s,@host_vendor@,$host_vendor,;t t
15054 s,@host_os@,$host_os,;t t
15055 s,@SET_MAKE@,$SET_MAKE,;t t
15057 s,@CFLAGS@,$CFLAGS,;t t
15058 s,@LDFLAGS@,$LDFLAGS,;t t
15059 s,@CPPFLAGS@,$CPPFLAGS,;t t
15060 s,@ac_ct_CC@,$ac_ct_CC,;t t
15061 s,@EXEEXT@,$EXEEXT,;t t
15062 s,@OBJEXT@,$OBJEXT,;t t
15065 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15066 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15067 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15068 s,@LINT@,$LINT,;t t
15069 s,@LINT_OPTS@,$LINT_OPTS,;t t
15070 s,@CTAGS@,$CTAGS,;t t
15071 s,@ETAGS@,$ETAGS,;t t
15072 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
15073 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
15074 s,@MATH_LIB@,$MATH_LIB,;t t
15075 s,@CC_G_OPT@,$CC_G_OPT,;t t
15076 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
15077 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
15078 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
15079 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
15081 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
15082 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
15083 s,@LD_MODEL@,$LD_MODEL,;t t
15084 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
15085 s,@LIBTOOL@,$LIBTOOL,;t t
15086 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
15087 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
15088 s,@LIB_LINK@,$LIB_LINK,;t t
15089 s,@LINK_TESTS@,$LINK_TESTS,;t t
15090 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
15091 s,@PTHREAD@,$PTHREAD,;t t
15092 s,@TEST_ARGS@,$TEST_ARGS,;t t
15093 s,@TEST_DEPS@,$TEST_DEPS,;t t
15094 s,@TEST_LIBS@,$TEST_LIBS,;t t
15095 s,@TINFO_ARGS@,$TINFO_ARGS,;t t
15096 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
15097 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
15098 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
15099 s,@ECHO_LT@,$ECHO_LT,;t t
15100 s,@ECHO_LD@,$ECHO_LD,;t t
15101 s,@RULE_CC@,$RULE_CC,;t t
15102 s,@SHOW_CC@,$SHOW_CC,;t t
15103 s,@ECHO_CC@,$ECHO_CC,;t t
15104 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
15105 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
15106 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
15107 s,@X_CFLAGS@,$X_CFLAGS,;t t
15108 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15109 s,@X_LIBS@,$X_LIBS,;t t
15110 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15111 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
15112 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
15117 cat >>$CONFIG_STATUS <<\EOF
15118 # Split the substitutions into bite-sized pieces for seds with
15119 # small command number limits, like on Digital OSF/1 and HP-UX.
15120 ac_max_sed_lines=48
15121 ac_sed_frag=1 # Number of current file.
15122 ac_beg=1 # First line for current file.
15123 ac_end=$ac_max_sed_lines # Line after last line for current file.
15126 while $ac_more_lines; do
15127 if test $ac_beg -gt 1; then
15128 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15130 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15132 if test ! -s $tmp/subs.frag; then
15133 ac_more_lines=false
15135 # The purpose of the label and of the branching condition is to
15136 # speed up the sed processing (if there are no `@' at all, there
15137 # is no need to browse any of the substitutions).
15138 # These are the two extra sed commands mentioned above.
15140 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15141 if test -z "$ac_sed_cmds"; then
15142 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15144 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15146 ac_sed_frag=`expr $ac_sed_frag + 1`
15148 ac_end=`expr $ac_end + $ac_max_sed_lines`
15151 if test -z "$ac_sed_cmds"; then
15154 fi # test -n "$CONFIG_FILES"
15157 cat >>$CONFIG_STATUS <<\EOF
15158 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15159 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15161 - | *:- | *:-:* ) # input from stdin
15163 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15164 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15165 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15166 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15167 * ) ac_file_in=$ac_file.in ;;
15170 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15171 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15172 X"$ac_file" : 'X\(//\)[^/]' \| \
15173 X"$ac_file" : 'X\(//\)$' \| \
15174 X"$ac_file" : 'X\(/\)' \| \
15175 . : '\(.\)' 2>/dev/null ||
15177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15179 /^X\(\/\/\)$/{ s//\1/; q; }
15180 /^X\(\/\).*/{ s//\1/; q; }
15182 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15183 { case "$ac_dir" in
15184 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15188 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15189 case $as_mkdir_dir in
15190 # Skip DOS drivespec
15191 ?:) as_incr_dir=$as_mkdir_dir ;;
15193 as_incr_dir=$as_incr_dir/$as_mkdir_dir
15194 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
15199 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
15200 # A "../" for each directory in $ac_dir_suffix.
15201 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
15203 ac_dir_suffix= ac_dots=
15208 if test -z "$ac_dots"; then
15211 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
15213 [\\/]* | ?:[\\/]* )
15214 ac_srcdir=$srcdir$ac_dir_suffix;
15215 ac_top_srcdir=$srcdir ;;
15216 *) # Relative path.
15217 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
15218 ac_top_srcdir=$ac_dots$srcdir ;;
15222 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15223 *) ac_INSTALL=$ac_dots$INSTALL ;;
15226 if test x"$ac_file" != x-; then
15227 { echo "$as_me:15227: creating $ac_file" >&5
15228 echo "$as_me: creating $ac_file" >&6;}
15231 # Let's still pretend it is `configure' which instantiates (i.e., don't
15232 # use $as_me), people would be surprised to read:
15233 # /* config.h. Generated automatically by config.status. */
15234 configure_input="Generated automatically from `echo $ac_file_in |
15235 sed 's,.*/,,'` by configure."
15237 # First look for the input files in the build tree, otherwise in the
15239 ac_file_inputs=`IFS=:
15240 for f in $ac_file_in; do
15242 -) echo $tmp/stdin ;;
15244 # Absolute (can't be DOS-style, as IFS=:)
15245 test -f "$f" || { { echo "$as_me:15245: error: cannot find input file: $f" >&5
15246 echo "$as_me: error: cannot find input file: $f" >&2;}
15247 { (exit 1); exit 1; }; }
15250 if test -f "$f"; then
15253 elif test -f "$srcdir/$f"; then
15258 { { echo "$as_me:15258: error: cannot find input file: $f" >&5
15259 echo "$as_me: error: cannot find input file: $f" >&2;}
15260 { (exit 1); exit 1; }; }
15263 done` || { (exit 1); exit 1; }
15265 cat >>$CONFIG_STATUS <<EOF
15269 cat >>$CONFIG_STATUS <<\EOF
15271 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15272 s,@configure_input@,$configure_input,;t t
15273 s,@srcdir@,$ac_srcdir,;t t
15274 s,@top_srcdir@,$ac_top_srcdir,;t t
15275 s,@INSTALL@,$ac_INSTALL,;t t
15276 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15278 if test x"$ac_file" != x-; then
15279 mv $tmp/out $ac_file
15287 cat >>$CONFIG_STATUS <<\EOF
15290 # CONFIG_HEADER section.
15293 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15294 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15296 # ac_d sets the value in "#define NAME VALUE" lines.
15297 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15298 ac_dB='[ ].*$,\1#\2'
15301 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15302 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15303 ac_iB='\([ ]\),\1#\2define\3'
15306 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15307 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15308 ac_uB='$,\1#\2define\3'
15312 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15313 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15315 - | *:- | *:-:* ) # input from stdin
15317 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15318 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15319 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15320 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15321 * ) ac_file_in=$ac_file.in ;;
15324 test x"$ac_file" != x- && { echo "$as_me:15324: creating $ac_file" >&5
15325 echo "$as_me: creating $ac_file" >&6;}
15327 # First look for the input files in the build tree, otherwise in the
15329 ac_file_inputs=`IFS=:
15330 for f in $ac_file_in; do
15332 -) echo $tmp/stdin ;;
15334 # Absolute (can't be DOS-style, as IFS=:)
15335 test -f "$f" || { { echo "$as_me:15335: error: cannot find input file: $f" >&5
15336 echo "$as_me: error: cannot find input file: $f" >&2;}
15337 { (exit 1); exit 1; }; }
15340 if test -f "$f"; then
15343 elif test -f "$srcdir/$f"; then
15348 { { echo "$as_me:15348: error: cannot find input file: $f" >&5
15349 echo "$as_me: error: cannot find input file: $f" >&2;}
15350 { (exit 1); exit 1; }; }
15353 done` || { (exit 1); exit 1; }
15354 # Remove the trailing spaces.
15355 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15359 # Transform confdefs.h into a list of #define's. We won't use it as a sed
15360 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
15361 # be either 'cat' or 'sort'.
15362 cat confdefs.h | uniq >conftest.vals
15364 # Break up conftest.vals because some shells have a limit on
15365 # the size of here documents, and old seds have small limits too.
15367 rm -f conftest.tail
15368 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
15369 while grep . conftest.vals >/dev/null
15371 # Write chunks of a limited-size here document to conftest.frag.
15372 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
15373 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
15374 echo 'CEOF' >> $CONFIG_STATUS
15375 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15376 rm -f conftest.vals
15377 mv conftest.tail conftest.vals
15379 rm -f conftest.vals
15381 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
15383 echo ' cat >> conftest.edit <<CEOF
15384 /@DEFS@/r conftest.frag
15387 sed -f conftest.edit $tmp/in > $tmp/out
15389 mv $tmp/out $tmp/in
15390 rm -f conftest.edit conftest.frag
15391 ' >> $CONFIG_STATUS
15393 cat >>$CONFIG_STATUS <<\EOF
15394 # Let's still pretend it is `configure' which instantiates (i.e., don't
15395 # use $as_me), people would be surprised to read:
15396 # /* config.h. Generated automatically by config.status. */
15397 if test x"$ac_file" = x-; then
15398 echo "/* Generated automatically by configure. */" >$tmp/config.h
15400 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
15402 cat $tmp/in >>$tmp/config.h
15404 if test x"$ac_file" != x-; then
15405 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
15406 { echo "$as_me:15406: $ac_file is unchanged" >&5
15407 echo "$as_me: $ac_file is unchanged" >&6;}
15409 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15410 X"$ac_file" : 'X\(//\)[^/]' \| \
15411 X"$ac_file" : 'X\(//\)$' \| \
15412 X"$ac_file" : 'X\(/\)' \| \
15413 . : '\(.\)' 2>/dev/null ||
15415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15416 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15417 /^X\(\/\/\)$/{ s//\1/; q; }
15418 /^X\(\/\).*/{ s//\1/; q; }
15420 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15421 { case "$ac_dir" in
15422 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15426 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15427 case $as_mkdir_dir in
15428 # Skip DOS drivespec
15429 ?:) as_incr_dir=$as_mkdir_dir ;;
15431 as_incr_dir=$as_incr_dir/$as_mkdir_dir
15432 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
15439 mv $tmp/config.h $ac_file
15443 rm -f $tmp/config.h
15447 cat >>$CONFIG_STATUS <<\EOF
15449 # CONFIG_COMMANDS section.
15451 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15452 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15453 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15460 if test ! -d $srcdir/$cf_dir; then
15462 elif test -f $srcdir/$cf_dir/programs; then
15463 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
15467 cat >>Makefile <<TEST_EOF
15469 # These rules are generated so we do not rely on suffix rules, which do not
15470 # work consistently for different make-programs (the '\$(MODEL)/' confuses
15471 # some, and the '\$x' confuses others).
15474 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
15477 cat >>Makefile <<TEST_EOF
15479 \$(MODEL)/$N.o : $N.c \\
15482 @echo compiling $N; \$(CC) -c \$(CFLAGS_DEFAULT) $N.c
15486 if test -f ../config.guess && test -f ../config.sub
15488 cat >>Makefile <<TEST_EOF
15490 # if we used CF_INHERIT for getting these files, we can remove them
15492 rm -f config.guess config.sub
15500 cat >>$CONFIG_STATUS <<\EOF
15502 { (exit 0); exit 0; }
15504 chmod +x $CONFIG_STATUS
15505 ac_clean_files=$ac_clean_files_save
15507 # configure is writing to config.log, and then calls config.status.
15508 # config.status does its own redirection, appending to config.log.
15509 # Unfortunately, on DOS this fails, as config.log is still kept open
15510 # by configure, so config.status won't be able to write to it; its
15511 # output is simply discarded. So we exec the FD to /dev/null,
15512 # effectively closing config.log, so it can be properly (re)opened and
15513 # appended to by config.status. When coming back to configure, we
15514 # need to make the FD available again.
15515 if test "$no_create" != yes; then
15518 $SHELL $CONFIG_STATUS || ac_cs_success=false
15520 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15521 # would make configure fail if this is the last instruction.
15522 $ac_cs_success || { (exit 1); exit 1; }