2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20101002.
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"
109 # Initialize some variables set by options.
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
121 program_transform_name=s,x,x,
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datadir='${prefix}/share'
138 sysconfdir='${prefix}/etc'
139 sharedstatedir='${prefix}/com'
140 localstatedir='${prefix}/var'
141 libdir='${exec_prefix}/lib'
142 includedir='${prefix}/include'
143 oldincludedir='/usr/include'
144 infodir='${prefix}/info'
145 mandir='${prefix}/man'
147 # Identity of this package.
157 # If the previous option needs an argument, assign it.
158 if test -n "$ac_prev"; then
159 eval "$ac_prev=\$ac_option"
164 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
166 # Accept the important Cygnus configure options, so we can diagnose typos.
170 -bindir | --bindir | --bindi | --bind | --bin | --bi)
172 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
175 -build | --build | --buil | --bui | --bu)
176 ac_prev=build_alias ;;
177 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178 build_alias=$ac_optarg ;;
180 -cache-file | --cache-file | --cache-fil | --cache-fi \
181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182 ac_prev=cache_file ;;
183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185 cache_file=$ac_optarg ;;
188 cache_file=config.cache ;;
190 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
192 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
194 datadir=$ac_optarg ;;
196 -disable-* | --disable-*)
197 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
198 # Reject names that are not valid shell variable names.
199 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
200 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
201 { (exit 1); exit 1; }; }
202 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
203 eval "enable_$ac_feature=no" ;;
205 -enable-* | --enable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
213 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
216 eval "enable_$ac_feature='$ac_optarg'" ;;
218 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
220 | --exec | --exe | --ex)
221 ac_prev=exec_prefix ;;
222 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224 | --exec=* | --exe=* | --ex=*)
225 exec_prefix=$ac_optarg ;;
227 -gas | --gas | --ga | --g)
228 # Obsolete; use --with-gas.
231 -help | --help | --hel | --he | -h)
233 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
234 ac_init_help=recursive ;;
235 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
236 ac_init_help=short ;;
238 -host | --host | --hos | --ho)
239 ac_prev=host_alias ;;
240 -host=* | --host=* | --hos=* | --ho=*)
241 host_alias=$ac_optarg ;;
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir=$ac_optarg ;;
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir=$ac_optarg ;;
255 -libdir | --libdir | --libdi | --libd)
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir=$ac_optarg ;;
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir=$ac_optarg ;;
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
282 # Obsolete; use --without-fp.
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir=$ac_optarg ;;
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix=$ac_optarg ;;
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix=$ac_optarg ;;
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name=$ac_optarg ;;
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
346 sbindir=$ac_optarg ;;
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
357 sharedstatedir=$ac_optarg ;;
359 -site | --site | --sit)
361 -site=* | --site=* | --sit=*)
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir=$ac_optarg ;;
376 -target | --target | --targe | --targ | --tar | --ta | --t)
377 ac_prev=target_alias ;;
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target_alias=$ac_optarg ;;
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
384 -version | --version | --versio | --versi | --vers | -V)
388 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
389 # Reject names that are not valid shell variable names.
390 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
391 { echo "$as_me: error: invalid package name: $ac_package" >&2
392 { (exit 1); exit 1; }; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 eval "with_$ac_package='$ac_optarg'" ;;
400 -without-* | --without-*)
401 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid package name: $ac_package" >&2
405 { (exit 1); exit 1; }; }
406 ac_package=`echo $ac_package | sed 's/-/_/g'`
407 eval "with_$ac_package=no" ;;
410 # Obsolete; use --with-x.
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes=$ac_optarg ;;
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries=$ac_optarg ;;
427 -*) { echo "$as_me: error: unrecognized option: $ac_option
428 Try \`$0 --help' for more information." >&2
429 { (exit 1); exit 1; }; }
433 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
437 { (exit 1); exit 1; }; }
438 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
439 eval "$ac_envvar='$ac_optarg'"
443 # FIXME: should be removed in autoconf 3.0.
444 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
446 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
447 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
453 if test -n "$ac_prev"; then
454 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
455 { echo "$as_me: error: missing argument to $ac_option" >&2
456 { (exit 1); exit 1; }; }
459 # Be sure to have absolute paths.
460 for ac_var in exec_prefix prefix
462 eval ac_val=$`echo $ac_var`
464 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
465 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
466 { (exit 1); exit 1; }; };;
470 # Be sure to have absolute paths.
471 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
472 localstatedir libdir includedir oldincludedir infodir mandir
474 eval ac_val=$`echo $ac_var`
476 [\\/$]* | ?:[\\/]* ) ;;
477 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
478 { (exit 1); exit 1; }; };;
482 # There might be people who depend on the old broken behavior: `$host'
483 # used to hold the argument of --host etc.
488 # FIXME: should be removed in autoconf 3.0.
489 if test "x$host_alias" != x; then
490 if test "x$build_alias" = x; then
491 cross_compiling=maybe
492 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
493 If a cross compiler is detected then cross compile mode will be used." >&2
494 elif test "x$build_alias" != "x$host_alias"; then
500 test -n "$host_alias" && ac_tool_prefix=$host_alias-
502 test "$silent" = yes && exec 6>/dev/null
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted=yes
507 # Try the directory containing this script, then its parent.
509 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512 if test ! -r $srcdir/$ac_unique_file; then
516 ac_srcdir_defaulted=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
521 { (exit 1); exit 1; }; }
523 { echo "$as_me: error: cannot find sources in $srcdir" >&2
524 { (exit 1); exit 1; }; }
527 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
528 ac_env_build_alias_set=${build_alias+set}
529 ac_env_build_alias_value=$build_alias
530 ac_cv_env_build_alias_set=${build_alias+set}
531 ac_cv_env_build_alias_value=$build_alias
532 ac_env_host_alias_set=${host_alias+set}
533 ac_env_host_alias_value=$host_alias
534 ac_cv_env_host_alias_set=${host_alias+set}
535 ac_cv_env_host_alias_value=$host_alias
536 ac_env_target_alias_set=${target_alias+set}
537 ac_env_target_alias_value=$target_alias
538 ac_cv_env_target_alias_set=${target_alias+set}
539 ac_cv_env_target_alias_value=$target_alias
540 ac_env_CC_set=${CC+set}
542 ac_cv_env_CC_set=${CC+set}
543 ac_cv_env_CC_value=$CC
544 ac_env_CFLAGS_set=${CFLAGS+set}
545 ac_env_CFLAGS_value=$CFLAGS
546 ac_cv_env_CFLAGS_set=${CFLAGS+set}
547 ac_cv_env_CFLAGS_value=$CFLAGS
548 ac_env_LDFLAGS_set=${LDFLAGS+set}
549 ac_env_LDFLAGS_value=$LDFLAGS
550 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
551 ac_cv_env_LDFLAGS_value=$LDFLAGS
552 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
553 ac_env_CPPFLAGS_value=$CPPFLAGS
554 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
555 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
556 ac_env_CPP_set=${CPP+set}
557 ac_env_CPP_value=$CPP
558 ac_cv_env_CPP_set=${CPP+set}
559 ac_cv_env_CPP_value=$CPP
562 # Report the --help message.
564 if test "$ac_init_help" = "long"; then
565 # Omit some internal or obsolete options to make the list less imposing.
566 # This message is too long to be a string in the A/UX 3.1 sh.
568 \`configure' configures this package to adapt to many kinds of systems.
570 Usage: $0 [OPTION]... [VAR=VALUE]...
572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
573 VAR=VALUE. See below for descriptions of some of the useful variables.
575 Defaults for the options are specified in brackets.
578 -h, --help display this help and exit
579 --help=short display options specific to this package
580 --help=recursive display the short help of all the included packages
581 -V, --version display version information and exit
582 -q, --quiet, --silent do not print \`checking...' messages
583 --cache-file=FILE cache test results in FILE [disabled]
584 -C, --config-cache alias for \`--cache-file=config.cache'
585 -n, --no-create do not create output files
586 --srcdir=DIR find the sources in DIR [configure dir or \`..']
591 Installation directories:
592 --prefix=PREFIX install architecture-independent files in PREFIX
594 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
597 By default, \`make install' will install all the files in
598 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
599 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
600 for instance \`--prefix=\$HOME'.
602 For better control, use the options below.
604 Fine tuning of the installation directories:
605 --bindir=DIR user executables [EPREFIX/bin]
606 --sbindir=DIR system admin executables [EPREFIX/sbin]
607 --libexecdir=DIR program executables [EPREFIX/libexec]
608 --datadir=DIR read-only architecture-independent data [PREFIX/share]
609 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
610 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
611 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
612 --libdir=DIR object code libraries [EPREFIX/lib]
613 --includedir=DIR C header files [PREFIX/include]
614 --oldincludedir=DIR C header files for non-gcc [/usr/include]
615 --infodir=DIR info documentation [PREFIX/info]
616 --mandir=DIR man documentation [PREFIX/man]
622 --program-prefix=PREFIX prepend PREFIX to installed program names
623 --program-suffix=SUFFIX append SUFFIX to installed program names
624 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
627 --x-includes=DIR X include files are in DIR
628 --x-libraries=DIR X library files are in DIR
631 --build=BUILD configure for building on BUILD [guessed]
632 --host=HOST build programs to run on HOST [BUILD]
636 if test -n "$ac_init_help"; then
641 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
642 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
645 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
646 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
648 --disable-echo display "compiling" commands
649 --enable-warnings test: turn on gcc compiler warnings
650 --with-dmalloc test: use Gray Watson's dmalloc library
651 --with-dbmalloc test: use Conor Cahill's dbmalloc library
652 --with-valgrind test: use valgrind
653 --disable-leaks test: free permanent memory, analyze leaks
654 --disable-widec disable checks for wide-character functions
655 --with-curses-dir=DIR directory in which (n)curses is installed
656 --with-ncursesw use wide ncurses-libraries (installed)
657 --with-ncurses use ncurses-libraries (installed)
658 --with-pdcurses compile/link with pdcurses X11 library
659 --with-curses-colr compile/link with HPUX 10.x color-curses
660 --with-curses-5lib compile/link with SunOS 5lib curses
661 --with-Xaw3d link with Xaw 3d library
662 --with-neXtaw link with neXT Athena library
663 --with-XawPlus link with Athena-Plus library
664 --with-pkg-config{=path} enable/disable use of pkg-config
665 --with-x use the X Window System
666 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
668 Some influential environment variables:
669 CC C compiler command
670 CFLAGS C compiler flags
671 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
672 nonstandard directory <lib dir>
673 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
674 headers in a nonstandard directory <include dir>
677 Use these variables to override the choices made by `configure' or to help
678 it to find libraries and programs with nonstandard names/locations.
683 if test "$ac_init_help" = "recursive"; then
684 # If there are subdirs, report their specific --help.
686 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
688 # A "../" for each directory in /$ac_subdir.
689 ac_dots=`echo $ac_subdir |
690 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
693 .) # No --srcdir option. We are building in place.
694 ac_sub_srcdir=$srcdir ;;
695 [\\/]* | ?:[\\/]* ) # Absolute path.
696 ac_sub_srcdir=$srcdir/$ac_subdir ;;
698 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
701 # Check for guested configure; otherwise get Cygnus style configure.
702 if test -f $ac_sub_srcdir/configure.gnu; then
704 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
705 elif test -f $ac_sub_srcdir/configure; then
707 $SHELL $ac_sub_srcdir/configure --help=recursive
708 elif test -f $ac_sub_srcdir/configure.ac ||
709 test -f $ac_sub_srcdir/configure.in; then
713 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
719 test -n "$ac_init_help" && exit 0
720 if $ac_init_version; then
723 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
724 Free Software Foundation, Inc.
725 This configure script is free software; the Free Software Foundation
726 gives unlimited permission to copy, distribute and modify it.
732 This file contains any messages produced by compilers while
733 running configure, to aid debugging if configure makes a mistake.
735 It was created by $as_me, which was
736 generated by GNU Autoconf 2.52.20101002. Invocation command line was
747 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
748 uname -m = `(uname -m) 2>/dev/null || echo unknown`
749 uname -r = `(uname -r) 2>/dev/null || echo unknown`
750 uname -s = `(uname -s) 2>/dev/null || echo unknown`
751 uname -v = `(uname -v) 2>/dev/null || echo unknown`
753 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
754 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
756 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
757 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
758 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
759 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
760 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
761 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
762 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
776 # Keep a trace of the command line.
777 # Strip out --no-create and --no-recursion so they do not pile up.
778 # Also quote any args containing shell meta-characters.
784 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
785 | --no-cr | --no-c) ;;
786 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
787 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
788 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
789 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
790 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
792 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
795 # Get rid of the leading space.
798 # When interrupted or exit'd, cleanup temporary files, and complete
799 # config.log. We remove comments because anyway the quotes in there
800 # would cause problems or look ugly.
802 # Save into config.log some information that might help in debugging.
804 echo "## ----------------- ##" >&5
805 echo "## Cache variables. ##" >&5
806 echo "## ----------------- ##" >&5
808 # The following way of writing the cache mishandles newlines in values,
811 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
814 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
819 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
823 sed "/^$/d" confdefs.h >conftest.log
824 if test -s conftest.log; then
826 echo "## ------------ ##" >&5
827 echo "## confdefs.h. ##" >&5
828 echo "## ------------ ##" >&5
833 test "$ac_signal" != 0 &&
834 echo "$as_me: caught signal $ac_signal" >&5
835 echo "$as_me: exit $exit_status" >&5
836 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
839 for ac_signal in 1 2 13 15; do
840 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
844 # confdefs.h avoids OS command line length limits that DEFS can exceed.
845 rm -rf conftest* confdefs.h
846 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
849 # Let the site file select an alternate cache file if it wants to.
850 # Prefer explicitly selected file to automatically selected ones.
851 if test -z "$CONFIG_SITE"; then
852 if test "x$prefix" != xNONE; then
853 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
855 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
858 for ac_site_file in $CONFIG_SITE; do
859 if test -r "$ac_site_file"; then
860 { echo "$as_me:860: loading site script $ac_site_file" >&5
861 echo "$as_me: loading site script $ac_site_file" >&6;}
862 cat "$ac_site_file" >&5
867 if test -r "$cache_file"; then
868 # Some versions of bash will fail to source /dev/null (special
869 # files actually), so we avoid doing that.
870 if test -f "$cache_file"; then
871 { echo "$as_me:871: loading cache $cache_file" >&5
872 echo "$as_me: loading cache $cache_file" >&6;}
874 [\\/]* | ?:[\\/]* ) . $cache_file;;
879 { echo "$as_me:879: creating cache $cache_file" >&5
880 echo "$as_me: creating cache $cache_file" >&6;}
884 # Check that the precious variables saved in the cache have kept the same
886 ac_cache_corrupted=false
887 for ac_var in `(set) 2>&1 |
888 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
889 eval ac_old_set=\$ac_cv_env_${ac_var}_set
890 eval ac_new_set=\$ac_env_${ac_var}_set
891 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
892 eval ac_new_val="\$ac_env_${ac_var}_value"
893 case $ac_old_set,$ac_new_set in
895 { echo "$as_me:895: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
896 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
897 ac_cache_corrupted=: ;;
899 { echo "$as_me:899: error: \`$ac_var' was not set in the previous run" >&5
900 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
901 ac_cache_corrupted=: ;;
904 if test "x$ac_old_val" != "x$ac_new_val"; then
905 { echo "$as_me:905: error: \`$ac_var' has changed since the previous run:" >&5
906 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
907 { echo "$as_me:907: former value: $ac_old_val" >&5
908 echo "$as_me: former value: $ac_old_val" >&2;}
909 { echo "$as_me:909: current value: $ac_new_val" >&5
910 echo "$as_me: current value: $ac_new_val" >&2;}
914 # Pass precious variables to config.status. It doesn't matter if
915 # we pass some twice (in addition to the command line arguments).
916 if test "$ac_new_set" = set; then
918 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
919 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
920 ac_configure_args="$ac_configure_args '$ac_arg'"
922 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
927 if $ac_cache_corrupted; then
928 { echo "$as_me:928: error: changes in the environment can compromise the build" >&5
929 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
930 { { echo "$as_me:930: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
931 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
932 { (exit 1); exit 1; }; }
936 ac_cpp='$CPP $CPPFLAGS'
937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
940 ac_main_return=return
942 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
943 *c*,-n*) ECHO_N= ECHO_C='
945 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
946 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
948 echo "#! $SHELL" >conftest.sh
949 echo "exit 0" >>conftest.sh
951 if { (echo "$as_me:951: PATH=\".;.\"; conftest.sh") >&5
952 (PATH=".;."; conftest.sh) 2>&5
954 echo "$as_me:954: \$? = $ac_status" >&5
955 (exit $ac_status); }; then
956 ac_path_separator=';'
960 PATH_SEPARATOR="$ac_path_separator"
963 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
965 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
967 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
970 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
971 if test -f $ac_dir/install-sh; then
973 ac_install_sh="$ac_aux_dir/install-sh -c"
975 elif test -f $ac_dir/install.sh; then
977 ac_install_sh="$ac_aux_dir/install.sh -c"
979 elif test -f $ac_dir/shtool; then
981 ac_install_sh="$ac_aux_dir/shtool install -c"
985 if test -z "$ac_aux_dir"; then
986 { { echo "$as_me:986: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
987 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
988 { (exit 1); exit 1; }; }
990 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
991 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
992 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
994 # Make sure we can run config.sub.
995 $ac_config_sub sun4 >/dev/null 2>&1 ||
996 { { echo "$as_me:996: error: cannot run $ac_config_sub" >&5
997 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
998 { (exit 1); exit 1; }; }
1000 echo "$as_me:1000: checking build system type" >&5
1001 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1002 if test "${ac_cv_build+set}" = set; then
1003 echo $ECHO_N "(cached) $ECHO_C" >&6
1005 ac_cv_build_alias=$build_alias
1006 test -z "$ac_cv_build_alias" &&
1007 ac_cv_build_alias=`$ac_config_guess`
1008 test -z "$ac_cv_build_alias" &&
1009 { { echo "$as_me:1009: error: cannot guess build type; you must specify one" >&5
1010 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1011 { (exit 1); exit 1; }; }
1012 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1013 { { echo "$as_me:1013: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1014 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1015 { (exit 1); exit 1; }; }
1018 echo "$as_me:1018: result: $ac_cv_build" >&5
1019 echo "${ECHO_T}$ac_cv_build" >&6
1021 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1022 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1023 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1025 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1026 echo "$as_me:1026: checking host system type" >&5
1027 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1028 if test "${ac_cv_host+set}" = set; then
1029 echo $ECHO_N "(cached) $ECHO_C" >&6
1031 ac_cv_host_alias=$host_alias
1032 test -z "$ac_cv_host_alias" &&
1033 ac_cv_host_alias=$ac_cv_build_alias
1034 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1035 { { echo "$as_me:1035: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1036 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1037 { (exit 1); exit 1; }; }
1040 echo "$as_me:1040: result: $ac_cv_host" >&5
1041 echo "${ECHO_T}$ac_cv_host" >&6
1043 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1044 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1045 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1047 system_name="$host_os"
1049 system_name="`(uname -s -r) 2>/dev/null`"
1050 if test -z "$system_name" ; then
1051 system_name="`(hostname) 2>/dev/null`"
1054 test -n "$system_name" && cat >>confdefs.h <<EOF
1055 #define SYSTEM_NAME "$system_name"
1058 if test "${cf_cv_system_name+set}" = set; then
1059 echo $ECHO_N "(cached) $ECHO_C" >&6
1061 cf_cv_system_name="$system_name"
1064 test -z "$system_name" && system_name="$cf_cv_system_name"
1065 test -n "$cf_cv_system_name" && echo "$as_me:1065: result: Configuring for $cf_cv_system_name" >&5
1066 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1068 if test ".$system_name" != ".$cf_cv_system_name" ; then
1069 echo "$as_me:1069: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1070 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1071 { { echo "$as_me:1071: error: \"Please remove config.cache and try again.\"" >&5
1072 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1073 { (exit 1); exit 1; }; }
1076 test "$program_prefix" != NONE &&
1077 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1078 # Use a double $ so make ignores it.
1079 test "$program_suffix" != NONE &&
1080 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1081 # Double any \ or $. echo might interpret backslashes.
1082 # By default was `s,x,x', remove it if useless.
1083 cat <<\_ACEOF >conftest.sed
1084 s/[\\$]/&&/g;s/;s,x,x,$//
1086 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1089 echo "$as_me:1089: checking whether ${MAKE-make} sets \${MAKE}" >&5
1090 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1091 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1092 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1093 echo $ECHO_N "(cached) $ECHO_C" >&6
1095 cat >conftest.make <<\EOF
1097 @echo 'ac_maketemp="${MAKE}"'
1099 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1100 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1101 if test -n "$ac_maketemp"; then
1102 eval ac_cv_prog_make_${ac_make}_set=yes
1104 eval ac_cv_prog_make_${ac_make}_set=no
1108 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1109 echo "$as_me:1109: result: yes" >&5
1110 echo "${ECHO_T}yes" >&6
1113 echo "$as_me:1113: result: no" >&5
1114 echo "${ECHO_T}no" >&6
1115 SET_MAKE="MAKE=${MAKE-make}"
1119 ac_cpp='$CPP $CPPFLAGS'
1120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1123 ac_main_return=return
1124 if test -n "$ac_tool_prefix"; then
1125 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1126 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1127 echo "$as_me:1127: checking for $ac_word" >&5
1128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1129 if test "${ac_cv_prog_CC+set}" = set; then
1130 echo $ECHO_N "(cached) $ECHO_C" >&6
1132 if test -n "$CC"; then
1133 ac_cv_prog_CC="$CC" # Let the user override the test.
1135 ac_save_IFS=$IFS; IFS=$ac_path_separator
1137 for ac_dir in $ac_dummy; do
1139 test -z "$ac_dir" && ac_dir=.
1140 $as_executable_p "$ac_dir/$ac_word" || continue
1141 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1142 echo "$as_me:1142: found $ac_dir/$ac_word" >&5
1149 if test -n "$CC"; then
1150 echo "$as_me:1150: result: $CC" >&5
1151 echo "${ECHO_T}$CC" >&6
1153 echo "$as_me:1153: result: no" >&5
1154 echo "${ECHO_T}no" >&6
1158 if test -z "$ac_cv_prog_CC"; then
1160 # Extract the first word of "gcc", so it can be a program name with args.
1161 set dummy gcc; ac_word=$2
1162 echo "$as_me:1162: checking for $ac_word" >&5
1163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1164 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1165 echo $ECHO_N "(cached) $ECHO_C" >&6
1167 if test -n "$ac_ct_CC"; then
1168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1170 ac_save_IFS=$IFS; IFS=$ac_path_separator
1172 for ac_dir in $ac_dummy; do
1174 test -z "$ac_dir" && ac_dir=.
1175 $as_executable_p "$ac_dir/$ac_word" || continue
1176 ac_cv_prog_ac_ct_CC="gcc"
1177 echo "$as_me:1177: found $ac_dir/$ac_word" >&5
1183 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1184 if test -n "$ac_ct_CC"; then
1185 echo "$as_me:1185: result: $ac_ct_CC" >&5
1186 echo "${ECHO_T}$ac_ct_CC" >&6
1188 echo "$as_me:1188: result: no" >&5
1189 echo "${ECHO_T}no" >&6
1197 if test -z "$CC"; then
1198 if test -n "$ac_tool_prefix"; then
1199 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1200 set dummy ${ac_tool_prefix}cc; ac_word=$2
1201 echo "$as_me:1201: checking for $ac_word" >&5
1202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1203 if test "${ac_cv_prog_CC+set}" = set; then
1204 echo $ECHO_N "(cached) $ECHO_C" >&6
1206 if test -n "$CC"; then
1207 ac_cv_prog_CC="$CC" # Let the user override the test.
1209 ac_save_IFS=$IFS; IFS=$ac_path_separator
1211 for ac_dir in $ac_dummy; do
1213 test -z "$ac_dir" && ac_dir=.
1214 $as_executable_p "$ac_dir/$ac_word" || continue
1215 ac_cv_prog_CC="${ac_tool_prefix}cc"
1216 echo "$as_me:1216: found $ac_dir/$ac_word" >&5
1223 if test -n "$CC"; then
1224 echo "$as_me:1224: result: $CC" >&5
1225 echo "${ECHO_T}$CC" >&6
1227 echo "$as_me:1227: result: no" >&5
1228 echo "${ECHO_T}no" >&6
1232 if test -z "$ac_cv_prog_CC"; then
1234 # Extract the first word of "cc", so it can be a program name with args.
1235 set dummy cc; ac_word=$2
1236 echo "$as_me:1236: checking for $ac_word" >&5
1237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1238 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1239 echo $ECHO_N "(cached) $ECHO_C" >&6
1241 if test -n "$ac_ct_CC"; then
1242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1244 ac_save_IFS=$IFS; IFS=$ac_path_separator
1246 for ac_dir in $ac_dummy; do
1248 test -z "$ac_dir" && ac_dir=.
1249 $as_executable_p "$ac_dir/$ac_word" || continue
1250 ac_cv_prog_ac_ct_CC="cc"
1251 echo "$as_me:1251: found $ac_dir/$ac_word" >&5
1257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1258 if test -n "$ac_ct_CC"; then
1259 echo "$as_me:1259: result: $ac_ct_CC" >&5
1260 echo "${ECHO_T}$ac_ct_CC" >&6
1262 echo "$as_me:1262: result: no" >&5
1263 echo "${ECHO_T}no" >&6
1272 if test -z "$CC"; then
1273 # Extract the first word of "cc", so it can be a program name with args.
1274 set dummy cc; ac_word=$2
1275 echo "$as_me:1275: checking for $ac_word" >&5
1276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1277 if test "${ac_cv_prog_CC+set}" = set; then
1278 echo $ECHO_N "(cached) $ECHO_C" >&6
1280 if test -n "$CC"; then
1281 ac_cv_prog_CC="$CC" # Let the user override the test.
1284 ac_save_IFS=$IFS; IFS=$ac_path_separator
1286 for ac_dir in $ac_dummy; do
1288 test -z "$ac_dir" && ac_dir=.
1289 $as_executable_p "$ac_dir/$ac_word" || continue
1290 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1291 ac_prog_rejected=yes
1295 echo "$as_me:1295: found $ac_dir/$ac_word" >&5
1299 if test $ac_prog_rejected = yes; then
1300 # We found a bogon in the path, so make sure we never use it.
1301 set dummy $ac_cv_prog_CC
1303 if test $# != 0; then
1304 # We chose a different compiler from the bogus one.
1305 # However, it has the same basename, so the bogon will be chosen
1306 # first if we set CC to just the basename; use the full file name.
1308 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1316 if test -n "$CC"; then
1317 echo "$as_me:1317: result: $CC" >&5
1318 echo "${ECHO_T}$CC" >&6
1320 echo "$as_me:1320: result: no" >&5
1321 echo "${ECHO_T}no" >&6
1325 if test -z "$CC"; then
1326 if test -n "$ac_tool_prefix"; then
1329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1331 echo "$as_me:1331: checking for $ac_word" >&5
1332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1333 if test "${ac_cv_prog_CC+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
1336 if test -n "$CC"; then
1337 ac_cv_prog_CC="$CC" # Let the user override the test.
1339 ac_save_IFS=$IFS; IFS=$ac_path_separator
1341 for ac_dir in $ac_dummy; do
1343 test -z "$ac_dir" && ac_dir=.
1344 $as_executable_p "$ac_dir/$ac_word" || continue
1345 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1346 echo "$as_me:1346: found $ac_dir/$ac_word" >&5
1353 if test -n "$CC"; then
1354 echo "$as_me:1354: result: $CC" >&5
1355 echo "${ECHO_T}$CC" >&6
1357 echo "$as_me:1357: result: no" >&5
1358 echo "${ECHO_T}no" >&6
1361 test -n "$CC" && break
1364 if test -z "$CC"; then
1368 # Extract the first word of "$ac_prog", so it can be a program name with args.
1369 set dummy $ac_prog; ac_word=$2
1370 echo "$as_me:1370: checking for $ac_word" >&5
1371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1372 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1373 echo $ECHO_N "(cached) $ECHO_C" >&6
1375 if test -n "$ac_ct_CC"; then
1376 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1378 ac_save_IFS=$IFS; IFS=$ac_path_separator
1380 for ac_dir in $ac_dummy; do
1382 test -z "$ac_dir" && ac_dir=.
1383 $as_executable_p "$ac_dir/$ac_word" || continue
1384 ac_cv_prog_ac_ct_CC="$ac_prog"
1385 echo "$as_me:1385: found $ac_dir/$ac_word" >&5
1391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1392 if test -n "$ac_ct_CC"; then
1393 echo "$as_me:1393: result: $ac_ct_CC" >&5
1394 echo "${ECHO_T}$ac_ct_CC" >&6
1396 echo "$as_me:1396: result: no" >&5
1397 echo "${ECHO_T}no" >&6
1400 test -n "$ac_ct_CC" && break
1408 test -z "$CC" && { { echo "$as_me:1408: error: no acceptable cc found in \$PATH" >&5
1409 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1410 { (exit 1); exit 1; }; }
1412 # Provide some information about the compiler.
1413 echo "$as_me:1413:" \
1414 "checking for C compiler version" >&5
1415 ac_compiler=`set X $ac_compile; echo $2`
1416 { (eval echo "$as_me:1416: \"$ac_compiler --version </dev/null >&5\"") >&5
1417 (eval $ac_compiler --version </dev/null >&5) 2>&5
1419 echo "$as_me:1419: \$? = $ac_status" >&5
1420 (exit $ac_status); }
1421 { (eval echo "$as_me:1421: \"$ac_compiler -v </dev/null >&5\"") >&5
1422 (eval $ac_compiler -v </dev/null >&5) 2>&5
1424 echo "$as_me:1424: \$? = $ac_status" >&5
1425 (exit $ac_status); }
1426 { (eval echo "$as_me:1426: \"$ac_compiler -V </dev/null >&5\"") >&5
1427 (eval $ac_compiler -V </dev/null >&5) 2>&5
1429 echo "$as_me:1429: \$? = $ac_status" >&5
1430 (exit $ac_status); }
1432 cat >conftest.$ac_ext <<_ACEOF
1433 #line 1433 "configure"
1434 #include "confdefs.h"
1444 ac_clean_files_save=$ac_clean_files
1445 ac_clean_files="$ac_clean_files a.out a.exe"
1446 # Try to create an executable without -o first, disregard a.out.
1447 # It will help us diagnose broken compilers, and finding out an intuition
1449 echo "$as_me:1449: checking for C compiler default output" >&5
1450 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1451 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1452 if { (eval echo "$as_me:1452: \"$ac_link_default\"") >&5
1453 (eval $ac_link_default) 2>&5
1455 echo "$as_me:1455: \$? = $ac_status" >&5
1456 (exit $ac_status); }; then
1457 # Find the output, starting from the most likely. This scheme is
1458 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1460 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1461 ls a.out conftest 2>/dev/null;
1462 ls a.* conftest.* 2>/dev/null`; do
1464 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1465 a.out ) # We found the default executable, but exeext='' is most
1468 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1469 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1476 echo "$as_me: failed program was:" >&5
1477 cat conftest.$ac_ext >&5
1478 { { echo "$as_me:1478: error: C compiler cannot create executables" >&5
1479 echo "$as_me: error: C compiler cannot create executables" >&2;}
1480 { (exit 77); exit 77; }; }
1483 ac_exeext=$ac_cv_exeext
1484 echo "$as_me:1484: result: $ac_file" >&5
1485 echo "${ECHO_T}$ac_file" >&6
1487 # Check the compiler produces executables we can run. If not, either
1488 # the compiler is broken, or we cross compile.
1489 echo "$as_me:1489: checking whether the C compiler works" >&5
1490 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1491 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1492 # If not cross compiling, check that we can run a simple program.
1493 if test "$cross_compiling" != yes; then
1494 if { ac_try='./$ac_file'
1495 { (eval echo "$as_me:1495: \"$ac_try\"") >&5
1498 echo "$as_me:1498: \$? = $ac_status" >&5
1499 (exit $ac_status); }; }; then
1502 if test "$cross_compiling" = maybe; then
1505 { { echo "$as_me:1505: error: cannot run C compiled programs.
1506 If you meant to cross compile, use \`--host'." >&5
1507 echo "$as_me: error: cannot run C compiled programs.
1508 If you meant to cross compile, use \`--host'." >&2;}
1509 { (exit 1); exit 1; }; }
1513 echo "$as_me:1513: result: yes" >&5
1514 echo "${ECHO_T}yes" >&6
1516 rm -f a.out a.exe conftest$ac_cv_exeext
1517 ac_clean_files=$ac_clean_files_save
1518 # Check the compiler produces executables we can run. If not, either
1519 # the compiler is broken, or we cross compile.
1520 echo "$as_me:1520: checking whether we are cross compiling" >&5
1521 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1522 echo "$as_me:1522: result: $cross_compiling" >&5
1523 echo "${ECHO_T}$cross_compiling" >&6
1525 echo "$as_me:1525: checking for executable suffix" >&5
1526 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1527 if { (eval echo "$as_me:1527: \"$ac_link\"") >&5
1528 (eval $ac_link) 2>&5
1530 echo "$as_me:1530: \$? = $ac_status" >&5
1531 (exit $ac_status); }; then
1532 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1533 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1534 # work properly (i.e., refer to `conftest.exe'), while it won't with
1536 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1538 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1539 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1546 { { echo "$as_me:1546: error: cannot compute EXEEXT: cannot compile and link" >&5
1547 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1548 { (exit 1); exit 1; }; }
1551 rm -f conftest$ac_cv_exeext
1552 echo "$as_me:1552: result: $ac_cv_exeext" >&5
1553 echo "${ECHO_T}$ac_cv_exeext" >&6
1555 rm -f conftest.$ac_ext
1556 EXEEXT=$ac_cv_exeext
1558 echo "$as_me:1558: checking for object suffix" >&5
1559 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1560 if test "${ac_cv_objext+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 cat >conftest.$ac_ext <<_ACEOF
1564 #line 1564 "configure"
1565 #include "confdefs.h"
1575 rm -f conftest.o conftest.obj
1576 if { (eval echo "$as_me:1576: \"$ac_compile\"") >&5
1577 (eval $ac_compile) 2>&5
1579 echo "$as_me:1579: \$? = $ac_status" >&5
1580 (exit $ac_status); }; then
1581 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1583 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1584 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1589 echo "$as_me: failed program was:" >&5
1590 cat conftest.$ac_ext >&5
1591 { { echo "$as_me:1591: error: cannot compute OBJEXT: cannot compile" >&5
1592 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1593 { (exit 1); exit 1; }; }
1596 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1598 echo "$as_me:1598: result: $ac_cv_objext" >&5
1599 echo "${ECHO_T}$ac_cv_objext" >&6
1600 OBJEXT=$ac_cv_objext
1602 echo "$as_me:1602: checking whether we are using the GNU C compiler" >&5
1603 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1604 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1605 echo $ECHO_N "(cached) $ECHO_C" >&6
1607 cat >conftest.$ac_ext <<_ACEOF
1608 #line 1608 "configure"
1609 #include "confdefs.h"
1622 rm -f conftest.$ac_objext
1623 if { (eval echo "$as_me:1623: \"$ac_compile\"") >&5
1624 (eval $ac_compile) 2>&5
1626 echo "$as_me:1626: \$? = $ac_status" >&5
1627 (exit $ac_status); } &&
1628 { ac_try='test -s conftest.$ac_objext'
1629 { (eval echo "$as_me:1629: \"$ac_try\"") >&5
1632 echo "$as_me:1632: \$? = $ac_status" >&5
1633 (exit $ac_status); }; }; then
1636 echo "$as_me: failed program was:" >&5
1637 cat conftest.$ac_ext >&5
1640 rm -f conftest.$ac_objext conftest.$ac_ext
1641 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1644 echo "$as_me:1644: result: $ac_cv_c_compiler_gnu" >&5
1645 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1646 GCC=`test $ac_compiler_gnu = yes && echo yes`
1647 ac_test_CFLAGS=${CFLAGS+set}
1648 ac_save_CFLAGS=$CFLAGS
1650 echo "$as_me:1650: checking whether $CC accepts -g" >&5
1651 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1652 if test "${ac_cv_prog_cc_g+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 cat >conftest.$ac_ext <<_ACEOF
1656 #line 1656 "configure"
1657 #include "confdefs.h"
1667 rm -f conftest.$ac_objext
1668 if { (eval echo "$as_me:1668: \"$ac_compile\"") >&5
1669 (eval $ac_compile) 2>&5
1671 echo "$as_me:1671: \$? = $ac_status" >&5
1672 (exit $ac_status); } &&
1673 { ac_try='test -s conftest.$ac_objext'
1674 { (eval echo "$as_me:1674: \"$ac_try\"") >&5
1677 echo "$as_me:1677: \$? = $ac_status" >&5
1678 (exit $ac_status); }; }; then
1681 echo "$as_me: failed program was:" >&5
1682 cat conftest.$ac_ext >&5
1685 rm -f conftest.$ac_objext conftest.$ac_ext
1687 echo "$as_me:1687: result: $ac_cv_prog_cc_g" >&5
1688 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1689 if test "$ac_test_CFLAGS" = set; then
1690 CFLAGS=$ac_save_CFLAGS
1691 elif test $ac_cv_prog_cc_g = yes; then
1692 if test "$GCC" = yes; then
1698 if test "$GCC" = yes; then
1704 # Some people use a C++ compiler to compile C. Since we use `exit',
1705 # in C++ we need to declare it. In case someone uses the same compiler
1706 # for both compiling C and C++ we need to have the C++ compiler decide
1707 # the declaration of exit, since it's the most demanding environment.
1708 cat >conftest.$ac_ext <<_ACEOF
1713 rm -f conftest.$ac_objext
1714 if { (eval echo "$as_me:1714: \"$ac_compile\"") >&5
1715 (eval $ac_compile) 2>&5
1717 echo "$as_me:1717: \$? = $ac_status" >&5
1718 (exit $ac_status); } &&
1719 { ac_try='test -s conftest.$ac_objext'
1720 { (eval echo "$as_me:1720: \"$ac_try\"") >&5
1723 echo "$as_me:1723: \$? = $ac_status" >&5
1724 (exit $ac_status); }; }; then
1725 for ac_declaration in \
1727 '#include <stdlib.h>' \
1728 'extern "C" void std::exit (int) throw (); using std::exit;' \
1729 'extern "C" void std::exit (int); using std::exit;' \
1730 'extern "C" void exit (int) throw ();' \
1731 'extern "C" void exit (int);' \
1734 cat >conftest.$ac_ext <<_ACEOF
1735 #line 1735 "configure"
1736 #include "confdefs.h"
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
1761 echo "$as_me: failed program was:" >&5
1762 cat conftest.$ac_ext >&5
1765 rm -f conftest.$ac_objext conftest.$ac_ext
1766 cat >conftest.$ac_ext <<_ACEOF
1767 #line 1767 "configure"
1768 #include "confdefs.h"
1778 rm -f conftest.$ac_objext
1779 if { (eval echo "$as_me:1779: \"$ac_compile\"") >&5
1780 (eval $ac_compile) 2>&5
1782 echo "$as_me:1782: \$? = $ac_status" >&5
1783 (exit $ac_status); } &&
1784 { ac_try='test -s conftest.$ac_objext'
1785 { (eval echo "$as_me:1785: \"$ac_try\"") >&5
1788 echo "$as_me:1788: \$? = $ac_status" >&5
1789 (exit $ac_status); }; }; then
1792 echo "$as_me: failed program was:" >&5
1793 cat conftest.$ac_ext >&5
1795 rm -f conftest.$ac_objext conftest.$ac_ext
1798 if test -n "$ac_declaration"; then
1799 echo '#ifdef __cplusplus' >>confdefs.h
1800 echo $ac_declaration >>confdefs.h
1801 echo '#endif' >>confdefs.h
1805 echo "$as_me: failed program was:" >&5
1806 cat conftest.$ac_ext >&5
1808 rm -f conftest.$ac_objext conftest.$ac_ext
1810 ac_cpp='$CPP $CPPFLAGS'
1811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1814 ac_main_return=return
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1821 ac_main_return=return
1822 echo "$as_me:1822: checking how to run the C preprocessor" >&5
1823 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1824 # On Suns, sometimes $CPP names a directory.
1825 if test -n "$CPP" && test -d "$CPP"; then
1828 if test -z "$CPP"; then
1829 if test "${ac_cv_prog_CPP+set}" = set; then
1830 echo $ECHO_N "(cached) $ECHO_C" >&6
1832 # Double quotes because CPP needs to be expanded
1833 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1836 for ac_c_preproc_warn_flag in '' yes
1838 # Use a header file that comes with gcc, so configuring glibc
1839 # with a fresh cross-compiler works.
1840 # On the NeXT, cc -E runs the code through the compiler's parser,
1841 # not just through cpp. "Syntax error" is here to catch this case.
1842 cat >conftest.$ac_ext <<_ACEOF
1843 #line 1843 "configure"
1844 #include "confdefs.h"
1848 if { (eval echo "$as_me:1848: \"$ac_cpp conftest.$ac_ext\"") >&5
1849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1851 egrep -v '^ *\+' conftest.er1 >conftest.err
1853 cat conftest.err >&5
1854 echo "$as_me:1854: \$? = $ac_status" >&5
1855 (exit $ac_status); } >/dev/null; then
1856 if test -s conftest.err; then
1857 ac_cpp_err=$ac_c_preproc_warn_flag
1864 if test -z "$ac_cpp_err"; then
1867 echo "$as_me: failed program was:" >&5
1868 cat conftest.$ac_ext >&5
1869 # Broken: fails on valid input.
1872 rm -f conftest.err conftest.$ac_ext
1874 # OK, works on sane cases. Now check whether non-existent headers
1875 # can be detected and how.
1876 cat >conftest.$ac_ext <<_ACEOF
1877 #line 1877 "configure"
1878 #include "confdefs.h"
1879 #include <ac_nonexistent.h>
1881 if { (eval echo "$as_me:1881: \"$ac_cpp conftest.$ac_ext\"") >&5
1882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1884 egrep -v '^ *\+' conftest.er1 >conftest.err
1886 cat conftest.err >&5
1887 echo "$as_me:1887: \$? = $ac_status" >&5
1888 (exit $ac_status); } >/dev/null; then
1889 if test -s conftest.err; then
1890 ac_cpp_err=$ac_c_preproc_warn_flag
1897 if test -z "$ac_cpp_err"; then
1898 # Broken: success on invalid input.
1901 echo "$as_me: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1903 # Passes both tests.
1907 rm -f conftest.err conftest.$ac_ext
1910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1911 rm -f conftest.err conftest.$ac_ext
1912 if $ac_preproc_ok; then
1924 echo "$as_me:1924: result: $CPP" >&5
1925 echo "${ECHO_T}$CPP" >&6
1927 for ac_c_preproc_warn_flag in '' yes
1929 # Use a header file that comes with gcc, so configuring glibc
1930 # with a fresh cross-compiler works.
1931 # On the NeXT, cc -E runs the code through the compiler's parser,
1932 # not just through cpp. "Syntax error" is here to catch this case.
1933 cat >conftest.$ac_ext <<_ACEOF
1934 #line 1934 "configure"
1935 #include "confdefs.h"
1939 if { (eval echo "$as_me:1939: \"$ac_cpp conftest.$ac_ext\"") >&5
1940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1942 egrep -v '^ *\+' conftest.er1 >conftest.err
1944 cat conftest.err >&5
1945 echo "$as_me:1945: \$? = $ac_status" >&5
1946 (exit $ac_status); } >/dev/null; then
1947 if test -s conftest.err; then
1948 ac_cpp_err=$ac_c_preproc_warn_flag
1955 if test -z "$ac_cpp_err"; then
1958 echo "$as_me: failed program was:" >&5
1959 cat conftest.$ac_ext >&5
1960 # Broken: fails on valid input.
1963 rm -f conftest.err conftest.$ac_ext
1965 # OK, works on sane cases. Now check whether non-existent headers
1966 # can be detected and how.
1967 cat >conftest.$ac_ext <<_ACEOF
1968 #line 1968 "configure"
1969 #include "confdefs.h"
1970 #include <ac_nonexistent.h>
1972 if { (eval echo "$as_me:1972: \"$ac_cpp conftest.$ac_ext\"") >&5
1973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1975 egrep -v '^ *\+' conftest.er1 >conftest.err
1977 cat conftest.err >&5
1978 echo "$as_me:1978: \$? = $ac_status" >&5
1979 (exit $ac_status); } >/dev/null; then
1980 if test -s conftest.err; then
1981 ac_cpp_err=$ac_c_preproc_warn_flag
1988 if test -z "$ac_cpp_err"; then
1989 # Broken: success on invalid input.
1992 echo "$as_me: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1994 # Passes both tests.
1998 rm -f conftest.err conftest.$ac_ext
2001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2002 rm -f conftest.err conftest.$ac_ext
2003 if $ac_preproc_ok; then
2006 { { echo "$as_me:2006: error: C preprocessor \"$CPP\" fails sanity check" >&5
2007 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2008 { (exit 1); exit 1; }; }
2012 ac_cpp='$CPP $CPPFLAGS'
2013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2016 ac_main_return=return
2018 for ac_prog in mawk gawk nawk awk
2020 # Extract the first word of "$ac_prog", so it can be a program name with args.
2021 set dummy $ac_prog; ac_word=$2
2022 echo "$as_me:2022: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_AWK+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 if test -n "$AWK"; then
2028 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2030 ac_save_IFS=$IFS; IFS=$ac_path_separator
2032 for ac_dir in $ac_dummy; do
2034 test -z "$ac_dir" && ac_dir=.
2035 $as_executable_p "$ac_dir/$ac_word" || continue
2036 ac_cv_prog_AWK="$ac_prog"
2037 echo "$as_me:2037: found $ac_dir/$ac_word" >&5
2044 if test -n "$AWK"; then
2045 echo "$as_me:2045: result: $AWK" >&5
2046 echo "${ECHO_T}$AWK" >&6
2048 echo "$as_me:2048: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2052 test -n "$AWK" && break
2055 # Find a good install program. We prefer a C program (faster),
2056 # so one script is as good as another. But avoid the broken or
2057 # incompatible versions:
2058 # SysV /etc/install, /usr/sbin/install
2059 # SunOS /usr/etc/install
2060 # IRIX /sbin/install
2062 # AmigaOS /C/install, which installs bootblocks on floppy discs
2063 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2064 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2065 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2066 # ./install, which can be erroneously created by make from ./install.sh.
2067 echo "$as_me:2067: checking for a BSD compatible install" >&5
2068 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2069 if test -z "$INSTALL"; then
2070 if test "${ac_cv_path_install+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 ac_save_IFS=$IFS; IFS=$ac_path_separator
2074 for ac_dir in $PATH; do
2076 # Account for people who put trailing slashes in PATH elements.
2078 / | ./ | .// | /cC/* \
2079 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2082 # OSF1 and SCO ODT 3.0 have their own names for install.
2083 # Don't use installbsd from OSF since it installs stuff as root
2085 for ac_prog in ginstall scoinst install; do
2086 if $as_executable_p "$ac_dir/$ac_prog"; then
2087 if test $ac_prog = install &&
2088 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2089 # AIX install. It has an incompatible calling convention.
2091 elif test $ac_prog = install &&
2092 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2093 # program-specific install script used by HP pwplus--don't use.
2096 ac_cv_path_install="$ac_dir/$ac_prog -c"
2106 if test "${ac_cv_path_install+set}" = set; then
2107 INSTALL=$ac_cv_path_install
2109 # As a last resort, use the slow shell script. We don't cache a
2110 # path for INSTALL within a source directory, because that will
2111 # break other packages using the cache if that directory is
2112 # removed, or if the path is relative.
2113 INSTALL=$ac_install_sh
2116 echo "$as_me:2116: result: $INSTALL" >&5
2117 echo "${ECHO_T}$INSTALL" >&6
2119 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2120 # It thinks the first close brace ends the variable substitution.
2121 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2123 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2125 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2131 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2132 test -z "$cf_dir" && cf_dir=.
2133 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2137 for ac_prog in tdlint lint alint splint lclint
2139 # Extract the first word of "$ac_prog", so it can be a program name with args.
2140 set dummy $ac_prog; ac_word=$2
2141 echo "$as_me:2141: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2143 if test "${ac_cv_prog_LINT+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 if test -n "$LINT"; then
2147 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2149 ac_save_IFS=$IFS; IFS=$ac_path_separator
2151 for ac_dir in $ac_dummy; do
2153 test -z "$ac_dir" && ac_dir=.
2154 $as_executable_p "$ac_dir/$ac_word" || continue
2155 ac_cv_prog_LINT="$ac_prog"
2156 echo "$as_me:2156: found $ac_dir/$ac_word" >&5
2162 LINT=$ac_cv_prog_LINT
2163 if test -n "$LINT"; then
2164 echo "$as_me:2164: result: $LINT" >&5
2165 echo "${ECHO_T}$LINT" >&6
2167 echo "$as_me:2167: result: no" >&5
2168 echo "${ECHO_T}no" >&6
2171 test -n "$LINT" && break
2174 echo "$as_me:2174: checking if filesystem supports mixed-case filenames" >&5
2175 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2176 if test "${cf_cv_mixedcase+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test "$cross_compiling" = yes ; then
2181 case $target_alias in #(vi
2182 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2190 rm -f conftest CONFTEST
2192 if test -f CONFTEST ; then
2197 rm -f conftest CONFTEST
2201 echo "$as_me:2201: result: $cf_cv_mixedcase" >&5
2202 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2203 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2204 #define MIXEDCASE_FILENAMES 1
2207 for ac_prog in exctags ctags
2209 # Extract the first word of "$ac_prog", so it can be a program name with args.
2210 set dummy $ac_prog; ac_word=$2
2211 echo "$as_me:2211: checking for $ac_word" >&5
2212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213 if test "${ac_cv_prog_CTAGS+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 if test -n "$CTAGS"; then
2217 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2219 ac_save_IFS=$IFS; IFS=$ac_path_separator
2221 for ac_dir in $ac_dummy; do
2223 test -z "$ac_dir" && ac_dir=.
2224 $as_executable_p "$ac_dir/$ac_word" || continue
2225 ac_cv_prog_CTAGS="$ac_prog"
2226 echo "$as_me:2226: found $ac_dir/$ac_word" >&5
2232 CTAGS=$ac_cv_prog_CTAGS
2233 if test -n "$CTAGS"; then
2234 echo "$as_me:2234: result: $CTAGS" >&5
2235 echo "${ECHO_T}$CTAGS" >&6
2237 echo "$as_me:2237: result: no" >&5
2238 echo "${ECHO_T}no" >&6
2241 test -n "$CTAGS" && break
2244 for ac_prog in exetags etags
2246 # Extract the first word of "$ac_prog", so it can be a program name with args.
2247 set dummy $ac_prog; ac_word=$2
2248 echo "$as_me:2248: checking for $ac_word" >&5
2249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2250 if test "${ac_cv_prog_ETAGS+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 if test -n "$ETAGS"; then
2254 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2256 ac_save_IFS=$IFS; IFS=$ac_path_separator
2258 for ac_dir in $ac_dummy; do
2260 test -z "$ac_dir" && ac_dir=.
2261 $as_executable_p "$ac_dir/$ac_word" || continue
2262 ac_cv_prog_ETAGS="$ac_prog"
2263 echo "$as_me:2263: found $ac_dir/$ac_word" >&5
2269 ETAGS=$ac_cv_prog_ETAGS
2270 if test -n "$ETAGS"; then
2271 echo "$as_me:2271: result: $ETAGS" >&5
2272 echo "${ECHO_T}$ETAGS" >&6
2274 echo "$as_me:2274: result: no" >&5
2275 echo "${ECHO_T}no" >&6
2278 test -n "$ETAGS" && break
2281 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2282 set dummy ${CTAGS:-ctags}; ac_word=$2
2283 echo "$as_me:2283: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2285 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 if test -n "$MAKE_LOWER_TAGS"; then
2289 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2291 ac_save_IFS=$IFS; IFS=$ac_path_separator
2293 for ac_dir in $ac_dummy; do
2295 test -z "$ac_dir" && ac_dir=.
2296 $as_executable_p "$ac_dir/$ac_word" || continue
2297 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2298 echo "$as_me:2298: found $ac_dir/$ac_word" >&5
2302 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2305 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2306 if test -n "$MAKE_LOWER_TAGS"; then
2307 echo "$as_me:2307: result: $MAKE_LOWER_TAGS" >&5
2308 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2310 echo "$as_me:2310: result: no" >&5
2311 echo "${ECHO_T}no" >&6
2314 if test "$cf_cv_mixedcase" = yes ; then
2315 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2316 set dummy ${ETAGS:-etags}; 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_UPPER_TAGS+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 if test -n "$MAKE_UPPER_TAGS"; then
2323 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_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_UPPER_TAGS="yes"
2332 echo "$as_me:2332: found $ac_dir/$ac_word" >&5
2336 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2339 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2340 if test -n "$MAKE_UPPER_TAGS"; then
2341 echo "$as_me:2341: result: $MAKE_UPPER_TAGS" >&5
2342 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2344 echo "$as_me:2344: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2352 if test "$MAKE_UPPER_TAGS" = yes ; then
2358 if test "$MAKE_LOWER_TAGS" = yes ; then
2364 echo "$as_me:2364: checking if -lm needed for math functions" >&5
2365 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2366 if test "${cf_cv_need_libm+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 cat >conftest.$ac_ext <<_ACEOF
2371 #line 2371 "configure"
2372 #include "confdefs.h"
2380 double x = rand(); printf("result = %g\n", sin(x))
2385 rm -f conftest.$ac_objext conftest$ac_exeext
2386 if { (eval echo "$as_me:2386: \"$ac_link\"") >&5
2387 (eval $ac_link) 2>&5
2389 echo "$as_me:2389: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -s conftest$ac_exeext'
2392 { (eval echo "$as_me:2392: \"$ac_try\"") >&5
2395 echo "$as_me:2395: \$? = $ac_status" >&5
2396 (exit $ac_status); }; }; then
2399 echo "$as_me: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2405 echo "$as_me:2405: result: $cf_cv_need_libm" >&5
2406 echo "${ECHO_T}$cf_cv_need_libm" >&6
2407 if test "$cf_cv_need_libm" = yes
2415 CC_SHARED_OPTS=unknown
2416 CPPFLAGS="$CPPFLAGS"
2418 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2419 DFT_UPR_MODEL="NORMAL"
2436 TINFO_LIBS='$(LIBS_CURSES)'
2437 cf_cv_abi_version=""
2438 cf_cv_rel_version=""
2443 # This should have been defined by AC_PROG_CC
2446 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2447 # into CC. This will not help with broken scripts that wrap the compiler with
2448 # options, but eliminates a more common category of user confusion.
2449 echo "$as_me:2449: checking \$CC variable" >&5
2450 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2453 echo "$as_me:2453: result: broken" >&5
2454 echo "${ECHO_T}broken" >&6
2455 { echo "$as_me:2455: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2456 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2458 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2459 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2464 cf_new_extra_cppflags=
2466 for cf_add_cflags in $cf_flags
2468 case $cf_fix_cppflags in
2470 case $cf_add_cflags in #(vi
2471 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2472 case $cf_add_cflags in
2474 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2476 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2477 && test -z "${cf_tst_cflags}" \
2478 && cf_fix_cppflags=yes
2480 if test $cf_fix_cppflags = yes ; then
2481 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2483 elif test "${cf_tst_cflags}" = "\"'" ; then
2484 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2490 *$cf_add_cflags) #(vi
2493 case $cf_add_cflags in #(vi
2495 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2497 CPPFLAGS=`echo "$CPPFLAGS" | \
2498 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2499 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2503 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2508 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2513 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2515 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2517 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2518 && test -z "${cf_tst_cflags}" \
2519 && cf_fix_cppflags=no
2524 if test -n "$cf_new_cflags" ; then
2526 CFLAGS="$CFLAGS $cf_new_cflags"
2529 if test -n "$cf_new_cppflags" ; then
2531 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2534 if test -n "$cf_new_extra_cppflags" ; then
2536 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2541 echo "$as_me:2541: result: ok" >&5
2542 echo "${ECHO_T}ok" >&6
2546 echo "$as_me:2546: checking for ${CC:-cc} option to accept ANSI C" >&5
2547 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2548 if test "${cf_cv_ansi_cc+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 cf_save_CFLAGS="$CFLAGS"
2554 cf_save_CPPFLAGS="$CPPFLAGS"
2555 # Don't try gcc -ansi; that turns off useful extensions and
2556 # breaks some systems' header files.
2557 # AIX -qlanglvl=ansi
2558 # Ultrix and OSF/1 -std1
2559 # HP-UX -Aa -D_HPUX_SOURCE
2561 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2562 for cf_arg in "-DCC_HAS_PROTOS" \
2567 "-Aa -D_HPUX_SOURCE" \
2574 cf_new_extra_cppflags=
2576 for cf_add_cflags in $cf_arg
2578 case $cf_fix_cppflags in
2580 case $cf_add_cflags in #(vi
2581 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2582 case $cf_add_cflags in
2584 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2586 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2587 && test -z "${cf_tst_cflags}" \
2588 && cf_fix_cppflags=yes
2590 if test $cf_fix_cppflags = yes ; then
2591 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2593 elif test "${cf_tst_cflags}" = "\"'" ; then
2594 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2600 *$cf_add_cflags) #(vi
2603 case $cf_add_cflags in #(vi
2605 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2607 CPPFLAGS=`echo "$CPPFLAGS" | \
2608 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2609 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2613 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2618 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2623 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2625 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2627 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2628 && test -z "${cf_tst_cflags}" \
2629 && cf_fix_cppflags=no
2634 if test -n "$cf_new_cflags" ; then
2636 CFLAGS="$CFLAGS $cf_new_cflags"
2639 if test -n "$cf_new_cppflags" ; then
2641 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2644 if test -n "$cf_new_extra_cppflags" ; then
2646 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2649 cat >conftest.$ac_ext <<_ACEOF
2650 #line 2650 "configure"
2651 #include "confdefs.h"
2653 #ifndef CC_HAS_PROTOS
2654 #if !defined(__STDC__) || (__STDC__ != 1)
2663 int test (int i, double x);
2664 struct s1 {int (*f) (int a);};
2665 struct s2 {int (*f) (double a);};
2670 rm -f conftest.$ac_objext
2671 if { (eval echo "$as_me:2671: \"$ac_compile\"") >&5
2672 (eval $ac_compile) 2>&5
2674 echo "$as_me:2674: \$? = $ac_status" >&5
2675 (exit $ac_status); } &&
2676 { ac_try='test -s conftest.$ac_objext'
2677 { (eval echo "$as_me:2677: \"$ac_try\"") >&5
2680 echo "$as_me:2680: \$? = $ac_status" >&5
2681 (exit $ac_status); }; }; then
2682 cf_cv_ansi_cc="$cf_arg"; break
2684 echo "$as_me: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2687 rm -f conftest.$ac_objext conftest.$ac_ext
2689 CFLAGS="$cf_save_CFLAGS"
2690 CPPFLAGS="$cf_save_CPPFLAGS"
2693 echo "$as_me:2693: result: $cf_cv_ansi_cc" >&5
2694 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2696 if test "$cf_cv_ansi_cc" != "no"; then
2697 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2702 cf_new_extra_cppflags=
2704 for cf_add_cflags in $cf_cv_ansi_cc
2706 case $cf_fix_cppflags in
2708 case $cf_add_cflags in #(vi
2709 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2710 case $cf_add_cflags in
2712 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2714 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2715 && test -z "${cf_tst_cflags}" \
2716 && cf_fix_cppflags=yes
2718 if test $cf_fix_cppflags = yes ; then
2719 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2721 elif test "${cf_tst_cflags}" = "\"'" ; then
2722 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2728 *$cf_add_cflags) #(vi
2731 case $cf_add_cflags in #(vi
2733 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2735 CPPFLAGS=`echo "$CPPFLAGS" | \
2736 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2737 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2741 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2746 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2751 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2753 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2755 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2756 && test -z "${cf_tst_cflags}" \
2757 && cf_fix_cppflags=no
2762 if test -n "$cf_new_cflags" ; then
2764 CFLAGS="$CFLAGS $cf_new_cflags"
2767 if test -n "$cf_new_cppflags" ; then
2769 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2772 if test -n "$cf_new_extra_cppflags" ; then
2774 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2778 cat >>confdefs.h <<\EOF
2779 #define CC_HAS_PROTOS 1
2785 if test "$cf_cv_ansi_cc" = "no"; then
2786 { { echo "$as_me:2786: error: Your compiler does not appear to recognize prototypes.
2787 You have the following choices:
2788 a. adjust your compiler options
2789 b. get an up-to-date compiler
2790 c. use a wrapper such as unproto" >&5
2791 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2792 You have the following choices:
2793 a. adjust your compiler options
2794 b. get an up-to-date compiler
2795 c. use a wrapper such as unproto" >&2;}
2796 { (exit 1); exit 1; }; }
2799 if test "$GCC" = yes
2801 cat > conftest.i <<EOF
2803 #define GCC_PRINTF 0
2808 #ifndef GCC_NORETURN
2809 #define GCC_NORETURN /* nothing */
2812 #define GCC_UNUSED /* nothing */
2815 if test "$GCC" = yes
2817 { echo "$as_me:2817: checking for $CC __attribute__ directives..." >&5
2818 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2819 cat > conftest.$ac_ext <<EOF
2820 #line 2820 "${as_me:-configure}"
2821 #include "confdefs.h"
2822 #include "conftest.h"
2823 #include "conftest.i"
2825 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2827 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2830 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2832 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2834 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2835 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2836 extern void foo(void) GCC_NORETURN;
2837 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2839 cf_printf_attribute=no
2840 cf_scanf_attribute=no
2841 for cf_attribute in scanf printf unused noreturn
2844 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2846 cf_directive="__attribute__(($cf_attribute))"
2847 echo "checking for $CC $cf_directive" 1>&5
2849 case $cf_attribute in #(vi
2851 cf_printf_attribute=yes
2852 cat >conftest.h <<EOF
2853 #define GCC_$cf_ATTRIBUTE 1
2857 cf_scanf_attribute=yes
2858 cat >conftest.h <<EOF
2859 #define GCC_$cf_ATTRIBUTE 1
2863 cat >conftest.h <<EOF
2864 #define GCC_$cf_ATTRIBUTE $cf_directive
2869 if { (eval echo "$as_me:2869: \"$ac_compile\"") >&5
2870 (eval $ac_compile) 2>&5
2872 echo "$as_me:2872: \$? = $ac_status" >&5
2873 (exit $ac_status); }; then
2874 test -n "$verbose" && echo "$as_me:2874: result: ... $cf_attribute" >&5
2875 echo "${ECHO_T}... $cf_attribute" >&6
2876 cat conftest.h >>confdefs.h
2877 case $cf_attribute in #(vi
2879 if test "$cf_printf_attribute" = no ; then
2880 cat >>confdefs.h <<EOF
2881 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
2884 cat >>confdefs.h <<EOF
2885 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2890 if test "$cf_scanf_attribute" = no ; then
2891 cat >>confdefs.h <<EOF
2892 #define GCC_SCANFLIKE(fmt,var) /* nothing */
2895 cat >>confdefs.h <<EOF
2896 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2904 fgrep define conftest.i >>confdefs.h
2910 cf_POSIX_C_SOURCE=199506L
2913 case $host_os in #(vi
2915 cf_xopen_source="-D_ALL_SOURCE"
2921 cf_xopen_source="-D_APPLE_C_SOURCE"
2924 cf_xopen_source="-D_DARWIN_C_SOURCE"
2926 freebsd*|dragonfly*) #(vi
2927 # 5.x headers associate
2928 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2929 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2930 cf_POSIX_C_SOURCE=200112L
2932 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2935 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2938 cf_xopen_source="-D_HPUX_SOURCE"
2941 cf_xopen_source="-D_SGI_SOURCE"
2943 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2945 echo "$as_me:2945: checking if we must define _GNU_SOURCE" >&5
2946 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2947 if test "${cf_cv_gnu_source+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2951 cat >conftest.$ac_ext <<_ACEOF
2952 #line 2952 "configure"
2953 #include "confdefs.h"
2954 #include <sys/types.h>
2959 #ifndef _XOPEN_SOURCE
2966 rm -f conftest.$ac_objext
2967 if { (eval echo "$as_me:2967: \"$ac_compile\"") >&5
2968 (eval $ac_compile) 2>&5
2970 echo "$as_me:2970: \$? = $ac_status" >&5
2971 (exit $ac_status); } &&
2972 { ac_try='test -s conftest.$ac_objext'
2973 { (eval echo "$as_me:2973: \"$ac_try\"") >&5
2976 echo "$as_me:2976: \$? = $ac_status" >&5
2977 (exit $ac_status); }; }; then
2980 echo "$as_me: failed program was:" >&5
2981 cat conftest.$ac_ext >&5
2983 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2984 cat >conftest.$ac_ext <<_ACEOF
2985 #line 2985 "configure"
2986 #include "confdefs.h"
2987 #include <sys/types.h>
2992 #ifdef _XOPEN_SOURCE
2999 rm -f conftest.$ac_objext
3000 if { (eval echo "$as_me:3000: \"$ac_compile\"") >&5
3001 (eval $ac_compile) 2>&5
3003 echo "$as_me:3003: \$? = $ac_status" >&5
3004 (exit $ac_status); } &&
3005 { ac_try='test -s conftest.$ac_objext'
3006 { (eval echo "$as_me:3006: \"$ac_try\"") >&5
3009 echo "$as_me:3009: \$? = $ac_status" >&5
3010 (exit $ac_status); }; }; then
3013 echo "$as_me: failed program was:" >&5
3014 cat conftest.$ac_ext >&5
3015 cf_cv_gnu_source=yes
3017 rm -f conftest.$ac_objext conftest.$ac_ext
3021 rm -f conftest.$ac_objext conftest.$ac_ext
3024 echo "$as_me:3024: result: $cf_cv_gnu_source" >&5
3025 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3026 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3030 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
3033 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3036 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3039 cf_xopen_source="-D_OSF_SOURCE"
3042 cf_xopen_source="-D_QNX_SOURCE"
3045 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3047 solaris2.1[0-9]) #(vi
3048 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3050 solaris2.[1-9]) #(vi
3051 cf_xopen_source="-D__EXTENSIONS__"
3054 echo "$as_me:3054: checking if we should define _XOPEN_SOURCE" >&5
3055 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3056 if test "${cf_cv_xopen_source+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3060 cat >conftest.$ac_ext <<_ACEOF
3061 #line 3061 "configure"
3062 #include "confdefs.h"
3063 #include <sys/types.h>
3068 #ifndef _XOPEN_SOURCE
3075 rm -f conftest.$ac_objext
3076 if { (eval echo "$as_me:3076: \"$ac_compile\"") >&5
3077 (eval $ac_compile) 2>&5
3079 echo "$as_me:3079: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (eval echo "$as_me:3082: \"$ac_try\"") >&5
3085 echo "$as_me:3085: \$? = $ac_status" >&5
3086 (exit $ac_status); }; }; then
3087 cf_cv_xopen_source=no
3089 echo "$as_me: failed program was:" >&5
3090 cat conftest.$ac_ext >&5
3092 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3093 cat >conftest.$ac_ext <<_ACEOF
3094 #line 3094 "configure"
3095 #include "confdefs.h"
3096 #include <sys/types.h>
3101 #ifdef _XOPEN_SOURCE
3108 rm -f conftest.$ac_objext
3109 if { (eval echo "$as_me:3109: \"$ac_compile\"") >&5
3110 (eval $ac_compile) 2>&5
3112 echo "$as_me:3112: \$? = $ac_status" >&5
3113 (exit $ac_status); } &&
3114 { ac_try='test -s conftest.$ac_objext'
3115 { (eval echo "$as_me:3115: \"$ac_try\"") >&5
3118 echo "$as_me:3118: \$? = $ac_status" >&5
3119 (exit $ac_status); }; }; then
3120 cf_cv_xopen_source=no
3122 echo "$as_me: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3124 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3126 rm -f conftest.$ac_objext conftest.$ac_ext
3130 rm -f conftest.$ac_objext conftest.$ac_ext
3133 echo "$as_me:3133: result: $cf_cv_xopen_source" >&5
3134 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3135 if test "$cf_cv_xopen_source" != no ; then
3137 CFLAGS=`echo "$CFLAGS" | \
3138 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3139 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3141 CPPFLAGS=`echo "$CPPFLAGS" | \
3142 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3143 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3145 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3150 cf_new_extra_cppflags=
3152 for cf_add_cflags in $cf_temp_xopen_source
3154 case $cf_fix_cppflags in
3156 case $cf_add_cflags in #(vi
3157 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3158 case $cf_add_cflags in
3160 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3162 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3163 && test -z "${cf_tst_cflags}" \
3164 && cf_fix_cppflags=yes
3166 if test $cf_fix_cppflags = yes ; then
3167 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3169 elif test "${cf_tst_cflags}" = "\"'" ; then
3170 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3176 *$cf_add_cflags) #(vi
3179 case $cf_add_cflags in #(vi
3181 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3183 CPPFLAGS=`echo "$CPPFLAGS" | \
3184 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3185 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3189 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3194 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3199 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3201 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3203 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3204 && test -z "${cf_tst_cflags}" \
3205 && cf_fix_cppflags=no
3210 if test -n "$cf_new_cflags" ; then
3212 CFLAGS="$CFLAGS $cf_new_cflags"
3215 if test -n "$cf_new_cppflags" ; then
3217 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3220 if test -n "$cf_new_extra_cppflags" ; then
3222 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3227 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3229 cf_save_CFLAGS="$CFLAGS"
3230 cf_save_CPPFLAGS="$CPPFLAGS"
3232 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3233 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3234 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3236 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3237 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3238 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3240 echo "$as_me:3240: checking if we should define _POSIX_C_SOURCE" >&5
3241 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3242 if test "${cf_cv_posix_c_source+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 echo "${as_me:-configure}:3246: testing if the symbol is already defined go no further ..." 1>&5
3248 cat >conftest.$ac_ext <<_ACEOF
3249 #line 3249 "configure"
3250 #include "confdefs.h"
3251 #include <sys/types.h>
3256 #ifndef _POSIX_C_SOURCE
3263 rm -f conftest.$ac_objext
3264 if { (eval echo "$as_me:3264: \"$ac_compile\"") >&5
3265 (eval $ac_compile) 2>&5
3267 echo "$as_me:3267: \$? = $ac_status" >&5
3268 (exit $ac_status); } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:3270: \"$ac_try\"") >&5
3273 echo "$as_me:3273: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 cf_cv_posix_c_source=no
3277 echo "$as_me: failed program was:" >&5
3278 cat conftest.$ac_ext >&5
3279 cf_want_posix_source=no
3280 case .$cf_POSIX_C_SOURCE in #(vi
3282 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3285 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3286 cf_want_posix_source=yes
3289 cf_want_posix_source=yes
3292 if test "$cf_want_posix_source" = yes ; then
3293 cat >conftest.$ac_ext <<_ACEOF
3294 #line 3294 "configure"
3295 #include "confdefs.h"
3296 #include <sys/types.h>
3301 #ifdef _POSIX_SOURCE
3308 rm -f conftest.$ac_objext
3309 if { (eval echo "$as_me:3309: \"$ac_compile\"") >&5
3310 (eval $ac_compile) 2>&5
3312 echo "$as_me:3312: \$? = $ac_status" >&5
3313 (exit $ac_status); } &&
3314 { ac_try='test -s conftest.$ac_objext'
3315 { (eval echo "$as_me:3315: \"$ac_try\"") >&5
3318 echo "$as_me:3318: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
3322 echo "$as_me: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3324 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3326 rm -f conftest.$ac_objext conftest.$ac_ext
3329 echo "${as_me:-configure}:3329: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3331 CFLAGS="$cf_trim_CFLAGS"
3332 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3334 echo "${as_me:-configure}:3334: testing if the second compile does not leave our definition intact error ..." 1>&5
3336 cat >conftest.$ac_ext <<_ACEOF
3337 #line 3337 "configure"
3338 #include "confdefs.h"
3339 #include <sys/types.h>
3344 #ifndef _POSIX_C_SOURCE
3351 rm -f conftest.$ac_objext
3352 if { (eval echo "$as_me:3352: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>&5
3355 echo "$as_me:3355: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:3358: \"$ac_try\"") >&5
3361 echo "$as_me:3361: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3365 echo "$as_me: failed program was:" >&5
3366 cat conftest.$ac_ext >&5
3367 cf_cv_posix_c_source=no
3369 rm -f conftest.$ac_objext conftest.$ac_ext
3370 CFLAGS="$cf_save_CFLAGS"
3371 CPPFLAGS="$cf_save_CPPFLAGS"
3374 rm -f conftest.$ac_objext conftest.$ac_ext
3377 echo "$as_me:3377: result: $cf_cv_posix_c_source" >&5
3378 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3380 if test "$cf_cv_posix_c_source" != no ; then
3381 CFLAGS="$cf_trim_CFLAGS"
3382 CPPFLAGS="$cf_trim_CPPFLAGS"
3387 cf_new_extra_cppflags=
3389 for cf_add_cflags in $cf_cv_posix_c_source
3391 case $cf_fix_cppflags in
3393 case $cf_add_cflags in #(vi
3394 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3395 case $cf_add_cflags in
3397 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3399 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3400 && test -z "${cf_tst_cflags}" \
3401 && cf_fix_cppflags=yes
3403 if test $cf_fix_cppflags = yes ; then
3404 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3406 elif test "${cf_tst_cflags}" = "\"'" ; then
3407 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3413 *$cf_add_cflags) #(vi
3416 case $cf_add_cflags in #(vi
3418 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3420 CPPFLAGS=`echo "$CPPFLAGS" | \
3421 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3422 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3426 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3431 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3436 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3438 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3440 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3441 && test -z "${cf_tst_cflags}" \
3442 && cf_fix_cppflags=no
3447 if test -n "$cf_new_cflags" ; then
3449 CFLAGS="$CFLAGS $cf_new_cflags"
3452 if test -n "$cf_new_cppflags" ; then
3454 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3457 if test -n "$cf_new_extra_cppflags" ; then
3459 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3467 if test -n "$cf_xopen_source" ; then
3472 cf_new_extra_cppflags=
3474 for cf_add_cflags in $cf_xopen_source
3476 case $cf_fix_cppflags in
3478 case $cf_add_cflags in #(vi
3479 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3480 case $cf_add_cflags in
3482 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3484 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3485 && test -z "${cf_tst_cflags}" \
3486 && cf_fix_cppflags=yes
3488 if test $cf_fix_cppflags = yes ; then
3489 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3491 elif test "${cf_tst_cflags}" = "\"'" ; then
3492 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3498 *$cf_add_cflags) #(vi
3501 case $cf_add_cflags in #(vi
3503 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3505 CPPFLAGS=`echo "$CPPFLAGS" | \
3506 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3507 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3511 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3516 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3521 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3523 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3525 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3526 && test -z "${cf_tst_cflags}" \
3527 && cf_fix_cppflags=no
3532 if test -n "$cf_new_cflags" ; then
3534 CFLAGS="$CFLAGS $cf_new_cflags"
3537 if test -n "$cf_new_cppflags" ; then
3539 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3542 if test -n "$cf_new_extra_cppflags" ; then
3544 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3549 echo "$as_me:3549: checking for $CC option to accept ANSI C" >&5
3550 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3551 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 ac_cv_prog_cc_stdc=no
3556 cat >conftest.$ac_ext <<_ACEOF
3557 #line 3557 "configure"
3558 #include "confdefs.h"
3561 #include <sys/types.h>
3562 #include <sys/stat.h>
3563 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3564 struct buf { int x; };
3565 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3566 static char *e (p, i)
3572 static char *f (char * (*g) (char **, int), char **p, ...)
3577 s = g (p, va_arg (v,int));
3581 int test (int i, double x);
3582 struct s1 {int (*f) (int a);};
3583 struct s2 {int (*f) (double a);};
3584 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3590 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3595 # Don't try gcc -ansi; that turns off useful extensions and
3596 # breaks some systems' header files.
3597 # AIX -qlanglvl=ansi
3598 # Ultrix and OSF/1 -std1
3599 # HP-UX 10.20 and later -Ae
3600 # HP-UX older versions -Aa -D_HPUX_SOURCE
3601 # SVR4 -Xc -D__EXTENSIONS__
3602 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3604 CC="$ac_save_CC $ac_arg"
3605 rm -f conftest.$ac_objext
3606 if { (eval echo "$as_me:3606: \"$ac_compile\"") >&5
3607 (eval $ac_compile) 2>&5
3609 echo "$as_me:3609: \$? = $ac_status" >&5
3610 (exit $ac_status); } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:3612: \"$ac_try\"") >&5
3615 echo "$as_me:3615: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 ac_cv_prog_cc_stdc=$ac_arg
3620 echo "$as_me: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3623 rm -f conftest.$ac_objext
3625 rm -f conftest.$ac_ext conftest.$ac_objext
3630 case "x$ac_cv_prog_cc_stdc" in
3632 echo "$as_me:3632: result: none needed" >&5
3633 echo "${ECHO_T}none needed" >&6 ;;
3635 echo "$as_me:3635: result: $ac_cv_prog_cc_stdc" >&5
3636 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3637 CC="$CC $ac_cv_prog_cc_stdc" ;;
3640 echo "$as_me:3640: checking for an ANSI C-conforming const" >&5
3641 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3642 if test "${ac_cv_c_const+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 cat >conftest.$ac_ext <<_ACEOF
3646 #line 3646 "configure"
3647 #include "confdefs.h"
3652 /* FIXME: Include the comments suggested by Paul. */
3654 /* Ultrix mips cc rejects this. */
3655 typedef int charset[2];
3657 /* SunOS 4.1.1 cc rejects this. */
3658 char const *const *ccp;
3660 /* NEC SVR4.0.2 mips cc rejects this. */
3661 struct point {int x, y;};
3662 static struct point const zero = {0,0};
3663 /* AIX XL C 1.02.0.0 rejects this.
3664 It does not let you subtract one const X* pointer from another in
3665 an arm of an if-expression whose if-part is not a constant
3667 const char *g = "string";
3668 ccp = &g + (g ? g-g : 0);
3669 /* HPUX 7.0 cc rejects these. */
3672 ccp = (char const *const *) p;
3673 { /* SCO 3.2v4 cc rejects this. */
3675 char const *s = 0 ? (char *) 0 : (char const *) 0;
3679 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3681 const int *foo = &x[0];
3684 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3685 typedef const int *iptr;
3689 { /* AIX XL C 1.02.0.0 rejects this saying
3690 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3691 struct s { int j; const int *ap[3]; };
3692 struct s *b; b->j = 5;
3694 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3703 rm -f conftest.$ac_objext
3704 if { (eval echo "$as_me:3704: \"$ac_compile\"") >&5
3705 (eval $ac_compile) 2>&5
3707 echo "$as_me:3707: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 { ac_try='test -s conftest.$ac_objext'
3710 { (eval echo "$as_me:3710: \"$ac_try\"") >&5
3713 echo "$as_me:3713: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3717 echo "$as_me: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3721 rm -f conftest.$ac_objext conftest.$ac_ext
3723 echo "$as_me:3723: result: $ac_cv_c_const" >&5
3724 echo "${ECHO_T}$ac_cv_c_const" >&6
3725 if test $ac_cv_c_const = no; then
3727 cat >>confdefs.h <<\EOF
3733 echo "$as_me:3733: checking for signal global datatype" >&5
3734 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3735 if test "${cf_cv_sig_atomic_t+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 "volatile sig_atomic_t" \
3744 cat >conftest.$ac_ext <<_ACEOF
3745 #line 3745 "configure"
3746 #include "confdefs.h"
3748 #include <sys/types.h>
3754 static void handler(int sig)
3761 signal(SIGINT, handler);
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:3768: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>&5
3771 echo "$as_me:3771: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -s conftest.$ac_objext'
3774 { (eval echo "$as_me:3774: \"$ac_try\"") >&5
3777 echo "$as_me:3777: \$? = $ac_status" >&5
3778 (exit $ac_status); }; }; then
3779 cf_cv_sig_atomic_t=$cf_type
3781 echo "$as_me: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3783 cf_cv_sig_atomic_t=no
3785 rm -f conftest.$ac_objext conftest.$ac_ext
3786 test "$cf_cv_sig_atomic_t" != no && break
3791 echo "$as_me:3791: result: $cf_cv_sig_atomic_t" >&5
3792 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
3793 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
3794 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
3797 echo "$as_me:3797: checking if you want to see long compiling messages" >&5
3798 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
3800 # Check whether --enable-echo or --disable-echo was given.
3801 if test "${enable_echo+set}" = set; then
3802 enableval="$enable_echo"
3803 test "$enableval" != no && enableval=yes
3804 if test "$enableval" != "yes" ; then
3807 ECHO_LD='@echo linking $@;'
3808 RULE_CC='@echo compiling $<'
3809 SHOW_CC='@echo compiling $@'
3831 echo "$as_me:3831: result: $enableval" >&5
3832 echo "${ECHO_T}$enableval" >&6
3835 if test "$GCC" = yes ; then
3836 echo "$as_me:3836: checking version of $CC" >&5
3837 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3838 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3839 test -z "$GCC_VERSION" && GCC_VERSION=unknown
3840 echo "$as_me:3840: result: $GCC_VERSION" >&5
3841 echo "${ECHO_T}$GCC_VERSION" >&6
3844 if ( test "$GCC" = yes || test "$GXX" = yes )
3846 echo "$as_me:3846: checking if you want to turn on gcc warnings" >&5
3847 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
3849 # Check whether --enable-warnings or --disable-warnings was given.
3850 if test "${enable_warnings+set}" = set; then
3851 enableval="$enable_warnings"
3852 test "$enableval" != yes && enableval=no
3853 if test "$enableval" != "no" ; then
3863 echo "$as_me:3863: result: $with_warnings" >&5
3864 echo "${ECHO_T}$with_warnings" >&6
3865 if test "$with_warnings" = "yes"
3868 if test "$GCC" = yes
3870 cat > conftest.i <<EOF
3872 #define GCC_PRINTF 0
3877 #ifndef GCC_NORETURN
3878 #define GCC_NORETURN /* nothing */
3881 #define GCC_UNUSED /* nothing */
3884 if test "$GCC" = yes
3886 { echo "$as_me:3886: checking for $CC __attribute__ directives..." >&5
3887 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3888 cat > conftest.$ac_ext <<EOF
3889 #line 3889 "${as_me:-configure}"
3890 #include "confdefs.h"
3891 #include "conftest.h"
3892 #include "conftest.i"
3894 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3896 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3899 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3901 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3903 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3904 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3905 extern void foo(void) GCC_NORETURN;
3906 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
3908 cf_printf_attribute=no
3909 cf_scanf_attribute=no
3910 for cf_attribute in scanf printf unused noreturn
3913 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3915 cf_directive="__attribute__(($cf_attribute))"
3916 echo "checking for $CC $cf_directive" 1>&5
3918 case $cf_attribute in #(vi
3920 cf_printf_attribute=yes
3921 cat >conftest.h <<EOF
3922 #define GCC_$cf_ATTRIBUTE 1
3926 cf_scanf_attribute=yes
3927 cat >conftest.h <<EOF
3928 #define GCC_$cf_ATTRIBUTE 1
3932 cat >conftest.h <<EOF
3933 #define GCC_$cf_ATTRIBUTE $cf_directive
3938 if { (eval echo "$as_me:3938: \"$ac_compile\"") >&5
3939 (eval $ac_compile) 2>&5
3941 echo "$as_me:3941: \$? = $ac_status" >&5
3942 (exit $ac_status); }; then
3943 test -n "$verbose" && echo "$as_me:3943: result: ... $cf_attribute" >&5
3944 echo "${ECHO_T}... $cf_attribute" >&6
3945 cat conftest.h >>confdefs.h
3946 case $cf_attribute in #(vi
3948 if test "$cf_printf_attribute" = no ; then
3949 cat >>confdefs.h <<EOF
3950 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
3953 cat >>confdefs.h <<EOF
3954 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3959 if test "$cf_scanf_attribute" = no ; then
3960 cat >>confdefs.h <<EOF
3961 #define GCC_SCANFLIKE(fmt,var) /* nothing */
3964 cat >>confdefs.h <<EOF
3965 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3973 fgrep define conftest.i >>confdefs.h
3980 if test "$GCC" = yes ; then
3983 echo "$as_me:3983: checking if this is really Intel C compiler" >&5
3984 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
3985 cf_save_CFLAGS="$CFLAGS"
3986 CFLAGS="$CFLAGS -no-gcc"
3987 cat >conftest.$ac_ext <<_ACEOF
3988 #line 3988 "configure"
3989 #include "confdefs.h"
3995 #ifdef __INTEL_COMPILER
4004 rm -f conftest.$ac_objext
4005 if { (eval echo "$as_me:4005: \"$ac_compile\"") >&5
4006 (eval $ac_compile) 2>&5
4008 echo "$as_me:4008: \$? = $ac_status" >&5
4009 (exit $ac_status); } &&
4010 { ac_try='test -s conftest.$ac_objext'
4011 { (eval echo "$as_me:4011: \"$ac_try\"") >&5
4014 echo "$as_me:4014: \$? = $ac_status" >&5
4015 (exit $ac_status); }; }; then
4017 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
4020 echo "$as_me: failed program was:" >&5
4021 cat conftest.$ac_ext >&5
4023 rm -f conftest.$ac_objext conftest.$ac_ext
4024 CFLAGS="$cf_save_CFLAGS"
4025 echo "$as_me:4025: result: $INTEL_COMPILER" >&5
4026 echo "${ECHO_T}$INTEL_COMPILER" >&6
4031 cat > conftest.$ac_ext <<EOF
4032 #line 4032 "${as_me:-configure}"
4033 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
4036 if test "$INTEL_COMPILER" = yes
4038 # The "-wdXXX" options suppress warnings:
4039 # remark #1419: external declaration in primary source file
4040 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
4041 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
4042 # remark #193: zero used for undefined preprocessing identifier
4043 # remark #593: variable "curs_sb_left_arrow" was set but never used
4044 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
4045 # remark #869: parameter "tw" was never referenced
4046 # remark #981: operands are evaluated in unspecified order
4047 # warning #279: controlling expression is constant
4049 { echo "$as_me:4049: checking for $CC warning options..." >&5
4050 echo "$as_me: checking for $CC warning options..." >&6;}
4051 cf_save_CFLAGS="$CFLAGS"
4052 EXTRA_CFLAGS="-Wall"
4064 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4065 if { (eval echo "$as_me:4065: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>&5
4068 echo "$as_me:4068: \$? = $ac_status" >&5
4069 (exit $ac_status); }; then
4070 test -n "$verbose" && echo "$as_me:4070: result: ... -$cf_opt" >&5
4071 echo "${ECHO_T}... -$cf_opt" >&6
4072 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4075 CFLAGS="$cf_save_CFLAGS"
4077 elif test "$GCC" = yes
4079 { echo "$as_me:4079: checking for $CC warning options..." >&5
4080 echo "$as_me: checking for $CC warning options..." >&6;}
4081 cf_save_CFLAGS="$CFLAGS"
4084 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4085 for cf_opt in W Wall \
4086 Wbad-function-cast \
4090 Wmissing-declarations \
4091 Wmissing-prototypes \
4095 Wstrict-prototypes \
4096 Wundef $cf_warn_CONST
4098 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4099 if { (eval echo "$as_me:4099: \"$ac_compile\"") >&5
4100 (eval $ac_compile) 2>&5
4102 echo "$as_me:4102: \$? = $ac_status" >&5
4103 (exit $ac_status); }; then
4104 test -n "$verbose" && echo "$as_me:4104: result: ... -$cf_opt" >&5
4105 echo "${ECHO_T}... -$cf_opt" >&6
4106 case $cf_opt in #(vi
4108 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4111 case $GCC_VERSION in
4113 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4115 echo "${as_me:-configure}:4115: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4121 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4124 CFLAGS="$cf_save_CFLAGS"
4131 echo "$as_me:4131: checking if you want to use dmalloc for testing" >&5
4132 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
4134 # Check whether --with-dmalloc or --without-dmalloc was given.
4135 if test "${with_dmalloc+set}" = set; then
4136 withval="$with_dmalloc"
4137 cat >>confdefs.h <<\EOF
4138 #define USE_DMALLOC 1
4141 : ${with_cflags:=-g}
4142 : ${with_no_leaks:=yes}
4147 echo "$as_me:4147: result: ${with_dmalloc:-no}" >&5
4148 echo "${ECHO_T}${with_dmalloc:-no}" >&6
4150 case .$with_cflags in #(vi
4152 case .$CFLAGS in #(vi
4160 cf_new_extra_cppflags=
4162 for cf_add_cflags in -g
4164 case $cf_fix_cppflags in
4166 case $cf_add_cflags in #(vi
4167 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4168 case $cf_add_cflags in
4170 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4172 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4173 && test -z "${cf_tst_cflags}" \
4174 && cf_fix_cppflags=yes
4176 if test $cf_fix_cppflags = yes ; then
4177 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4179 elif test "${cf_tst_cflags}" = "\"'" ; then
4180 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4186 *$cf_add_cflags) #(vi
4189 case $cf_add_cflags in #(vi
4191 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4193 CPPFLAGS=`echo "$CPPFLAGS" | \
4194 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4195 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4199 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4204 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4209 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4211 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4213 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4214 && test -z "${cf_tst_cflags}" \
4215 && cf_fix_cppflags=no
4220 if test -n "$cf_new_cflags" ; then
4222 CFLAGS="$CFLAGS $cf_new_cflags"
4225 if test -n "$cf_new_cppflags" ; then
4227 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4230 if test -n "$cf_new_extra_cppflags" ; then
4232 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4240 if test "$with_dmalloc" = yes ; then
4241 echo "$as_me:4241: checking for dmalloc.h" >&5
4242 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
4243 if test "${ac_cv_header_dmalloc_h+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 cat >conftest.$ac_ext <<_ACEOF
4247 #line 4247 "configure"
4248 #include "confdefs.h"
4249 #include <dmalloc.h>
4251 if { (eval echo "$as_me:4251: \"$ac_cpp conftest.$ac_ext\"") >&5
4252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4254 egrep -v '^ *\+' conftest.er1 >conftest.err
4256 cat conftest.err >&5
4257 echo "$as_me:4257: \$? = $ac_status" >&5
4258 (exit $ac_status); } >/dev/null; then
4259 if test -s conftest.err; then
4260 ac_cpp_err=$ac_c_preproc_warn_flag
4267 if test -z "$ac_cpp_err"; then
4268 ac_cv_header_dmalloc_h=yes
4270 echo "$as_me: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4272 ac_cv_header_dmalloc_h=no
4274 rm -f conftest.err conftest.$ac_ext
4276 echo "$as_me:4276: result: $ac_cv_header_dmalloc_h" >&5
4277 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
4278 if test $ac_cv_header_dmalloc_h = yes; then
4280 echo "$as_me:4280: checking for dmalloc_debug in -ldmalloc" >&5
4281 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
4282 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4285 ac_check_lib_save_LIBS=$LIBS
4286 LIBS="-ldmalloc $LIBS"
4287 cat >conftest.$ac_ext <<_ACEOF
4288 #line 4288 "configure"
4289 #include "confdefs.h"
4291 /* Override any gcc2 internal prototype to avoid an error. */
4295 /* We use char because int might match the return type of a gcc2
4296 builtin and then its argument prototype would still apply. */
4297 char dmalloc_debug ();
4306 rm -f conftest.$ac_objext conftest$ac_exeext
4307 if { (eval echo "$as_me:4307: \"$ac_link\"") >&5
4308 (eval $ac_link) 2>&5
4310 echo "$as_me:4310: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -s conftest$ac_exeext'
4313 { (eval echo "$as_me:4313: \"$ac_try\"") >&5
4316 echo "$as_me:4316: \$? = $ac_status" >&5
4317 (exit $ac_status); }; }; then
4318 ac_cv_lib_dmalloc_dmalloc_debug=yes
4320 echo "$as_me: failed program was:" >&5
4321 cat conftest.$ac_ext >&5
4322 ac_cv_lib_dmalloc_dmalloc_debug=no
4324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4325 LIBS=$ac_check_lib_save_LIBS
4327 echo "$as_me:4327: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
4328 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
4329 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
4330 cat >>confdefs.h <<EOF
4331 #define HAVE_LIBDMALLOC 1
4334 LIBS="-ldmalloc $LIBS"
4342 echo "$as_me:4342: checking if you want to use dbmalloc for testing" >&5
4343 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
4345 # Check whether --with-dbmalloc or --without-dbmalloc was given.
4346 if test "${with_dbmalloc+set}" = set; then
4347 withval="$with_dbmalloc"
4348 cat >>confdefs.h <<\EOF
4349 #define USE_DBMALLOC 1
4352 : ${with_cflags:=-g}
4353 : ${with_no_leaks:=yes}
4358 echo "$as_me:4358: result: ${with_dbmalloc:-no}" >&5
4359 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
4361 case .$with_cflags in #(vi
4363 case .$CFLAGS in #(vi
4371 cf_new_extra_cppflags=
4373 for cf_add_cflags in -g
4375 case $cf_fix_cppflags in
4377 case $cf_add_cflags in #(vi
4378 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4379 case $cf_add_cflags in
4381 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4383 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4384 && test -z "${cf_tst_cflags}" \
4385 && cf_fix_cppflags=yes
4387 if test $cf_fix_cppflags = yes ; then
4388 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4390 elif test "${cf_tst_cflags}" = "\"'" ; then
4391 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4397 *$cf_add_cflags) #(vi
4400 case $cf_add_cflags in #(vi
4402 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4404 CPPFLAGS=`echo "$CPPFLAGS" | \
4405 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4406 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4410 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4415 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4420 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4422 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4424 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4425 && test -z "${cf_tst_cflags}" \
4426 && cf_fix_cppflags=no
4431 if test -n "$cf_new_cflags" ; then
4433 CFLAGS="$CFLAGS $cf_new_cflags"
4436 if test -n "$cf_new_cppflags" ; then
4438 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4441 if test -n "$cf_new_extra_cppflags" ; then
4443 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4451 if test "$with_dbmalloc" = yes ; then
4452 echo "$as_me:4452: checking for dbmalloc.h" >&5
4453 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
4454 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 cat >conftest.$ac_ext <<_ACEOF
4458 #line 4458 "configure"
4459 #include "confdefs.h"
4460 #include <dbmalloc.h>
4462 if { (eval echo "$as_me:4462: \"$ac_cpp conftest.$ac_ext\"") >&5
4463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4465 egrep -v '^ *\+' conftest.er1 >conftest.err
4467 cat conftest.err >&5
4468 echo "$as_me:4468: \$? = $ac_status" >&5
4469 (exit $ac_status); } >/dev/null; then
4470 if test -s conftest.err; then
4471 ac_cpp_err=$ac_c_preproc_warn_flag
4478 if test -z "$ac_cpp_err"; then
4479 ac_cv_header_dbmalloc_h=yes
4481 echo "$as_me: failed program was:" >&5
4482 cat conftest.$ac_ext >&5
4483 ac_cv_header_dbmalloc_h=no
4485 rm -f conftest.err conftest.$ac_ext
4487 echo "$as_me:4487: result: $ac_cv_header_dbmalloc_h" >&5
4488 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
4489 if test $ac_cv_header_dbmalloc_h = yes; then
4491 echo "$as_me:4491: checking for debug_malloc in -ldbmalloc" >&5
4492 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
4493 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 ac_check_lib_save_LIBS=$LIBS
4497 LIBS="-ldbmalloc $LIBS"
4498 cat >conftest.$ac_ext <<_ACEOF
4499 #line 4499 "configure"
4500 #include "confdefs.h"
4502 /* Override any gcc2 internal prototype to avoid an error. */
4506 /* We use char because int might match the return type of a gcc2
4507 builtin and then its argument prototype would still apply. */
4508 char debug_malloc ();
4517 rm -f conftest.$ac_objext conftest$ac_exeext
4518 if { (eval echo "$as_me:4518: \"$ac_link\"") >&5
4519 (eval $ac_link) 2>&5
4521 echo "$as_me:4521: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try='test -s conftest$ac_exeext'
4524 { (eval echo "$as_me:4524: \"$ac_try\"") >&5
4527 echo "$as_me:4527: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 ac_cv_lib_dbmalloc_debug_malloc=yes
4531 echo "$as_me: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4533 ac_cv_lib_dbmalloc_debug_malloc=no
4535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4536 LIBS=$ac_check_lib_save_LIBS
4538 echo "$as_me:4538: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
4539 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
4540 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
4541 cat >>confdefs.h <<EOF
4542 #define HAVE_LIBDBMALLOC 1
4545 LIBS="-ldbmalloc $LIBS"
4553 echo "$as_me:4553: checking if you want to use valgrind for testing" >&5
4554 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
4556 # Check whether --with-valgrind or --without-valgrind was given.
4557 if test "${with_valgrind+set}" = set; then
4558 withval="$with_valgrind"
4559 cat >>confdefs.h <<\EOF
4560 #define USE_VALGRIND 1
4563 : ${with_cflags:=-g}
4564 : ${with_no_leaks:=yes}
4569 echo "$as_me:4569: result: ${with_valgrind:-no}" >&5
4570 echo "${ECHO_T}${with_valgrind:-no}" >&6
4572 case .$with_cflags in #(vi
4574 case .$CFLAGS in #(vi
4582 cf_new_extra_cppflags=
4584 for cf_add_cflags in -g
4586 case $cf_fix_cppflags in
4588 case $cf_add_cflags in #(vi
4589 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4590 case $cf_add_cflags in
4592 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4594 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4595 && test -z "${cf_tst_cflags}" \
4596 && cf_fix_cppflags=yes
4598 if test $cf_fix_cppflags = yes ; then
4599 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4601 elif test "${cf_tst_cflags}" = "\"'" ; then
4602 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4608 *$cf_add_cflags) #(vi
4611 case $cf_add_cflags in #(vi
4613 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4615 CPPFLAGS=`echo "$CPPFLAGS" | \
4616 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4617 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4621 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4626 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4631 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4633 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4635 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4636 && test -z "${cf_tst_cflags}" \
4637 && cf_fix_cppflags=no
4642 if test -n "$cf_new_cflags" ; then
4644 CFLAGS="$CFLAGS $cf_new_cflags"
4647 if test -n "$cf_new_cppflags" ; then
4649 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4652 if test -n "$cf_new_extra_cppflags" ; then
4654 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4662 echo "$as_me:4662: checking if you want to perform memory-leak testing" >&5
4663 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
4665 # Check whether --enable-leaks or --disable-leaks was given.
4666 if test "${enable_leaks+set}" = set; then
4667 enableval="$enable_leaks"
4668 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
4670 : ${with_no_leaks:=no}
4672 echo "$as_me:4672: result: $with_no_leaks" >&5
4673 echo "${ECHO_T}$with_no_leaks" >&6
4675 if test "$with_no_leaks" = yes ; then
4676 cat >>confdefs.h <<\EOF
4680 cat >>confdefs.h <<\EOF
4681 #define YY_NO_LEAKS 1
4686 echo "$as_me:4686: checking if you want to check for wide-character functions" >&5
4687 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
4689 # Check whether --enable-widec or --disable-widec was given.
4690 if test "${enable_widec+set}" = set; then
4691 enableval="$enable_widec"
4692 test "$enableval" != no && enableval=yes
4693 if test "$enableval" != "yes" ; then
4703 echo "$as_me:4703: result: $cf_enable_widec" >&5
4704 echo "${ECHO_T}$cf_enable_widec" >&6
4706 echo "$as_me:4706: checking for specific curses-directory" >&5
4707 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4709 # Check whether --with-curses-dir or --without-curses-dir was given.
4710 if test "${with_curses_dir+set}" = set; then
4711 withval="$with_curses_dir"
4712 cf_cv_curses_dir=$withval
4716 echo "$as_me:4716: result: $cf_cv_curses_dir" >&5
4717 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4719 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4722 if test "x$prefix" != xNONE; then
4723 cf_path_syntax="$prefix"
4725 cf_path_syntax="$ac_default_prefix"
4728 case ".$withval" in #(vi
4729 .\$\(*\)*|.\'*\'*) #(vi
4733 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4736 eval withval="$withval"
4737 case ".$withval" in #(vi
4739 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4744 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4747 { { echo "$as_me:4747: error: expected a pathname, not \"$withval\"" >&5
4748 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4749 { (exit 1); exit 1; }; }
4753 if test -d "$cf_cv_curses_dir"
4756 if test -n "$cf_cv_curses_dir/include" ; then
4757 for cf_add_incdir in $cf_cv_curses_dir/include
4759 while test $cf_add_incdir != /usr/include
4761 if test -d $cf_add_incdir
4764 if test -n "$CFLAGS$CPPFLAGS" ; then
4765 # a loop is needed to ensure we can add subdirs of existing dirs
4766 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4767 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4768 cf_have_incdir=yes; break
4773 if test "$cf_have_incdir" = no ; then
4774 if test "$cf_add_incdir" = /usr/local/include ; then
4775 if test "$GCC" = yes
4777 cf_save_CPPFLAGS=$CPPFLAGS
4778 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4779 cat >conftest.$ac_ext <<_ACEOF
4780 #line 4780 "configure"
4781 #include "confdefs.h"
4791 rm -f conftest.$ac_objext
4792 if { (eval echo "$as_me:4792: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>&5
4795 echo "$as_me:4795: \$? = $ac_status" >&5
4796 (exit $ac_status); } &&
4797 { ac_try='test -s conftest.$ac_objext'
4798 { (eval echo "$as_me:4798: \"$ac_try\"") >&5
4801 echo "$as_me:4801: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4805 echo "$as_me: failed program was:" >&5
4806 cat conftest.$ac_ext >&5
4809 rm -f conftest.$ac_objext conftest.$ac_ext
4810 CPPFLAGS=$cf_save_CPPFLAGS
4815 if test "$cf_have_incdir" = no ; then
4816 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4818 echo "${as_me:-configure}:4818: testing adding $cf_add_incdir to include-path ..." 1>&5
4820 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4822 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4823 test "$cf_top_incdir" = "$cf_add_incdir" && break
4824 cf_add_incdir="$cf_top_incdir"
4833 if test -n "$cf_cv_curses_dir/lib" ; then
4834 for cf_add_libdir in $cf_cv_curses_dir/lib
4836 if test $cf_add_libdir = /usr/lib ; then
4838 elif test -d $cf_add_libdir
4841 if test -n "$LDFLAGS$LIBS" ; then
4842 # a loop is needed to ensure we can add subdirs of existing dirs
4843 for cf_test_libdir in $LDFLAGS $LIBS ; do
4844 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4845 cf_have_libdir=yes; break
4849 if test "$cf_have_libdir" = no ; then
4850 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4852 echo "${as_me:-configure}:4852: testing adding $cf_add_libdir to library-path ..." 1>&5
4854 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4863 echo "$as_me:4863: checking for specified curses library type" >&5
4864 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
4866 # Check whether --with-ncursesw or --without-ncursesw was given.
4867 if test "${with_ncursesw+set}" = set; then
4868 withval="$with_ncursesw"
4869 cf_cv_screen=ncursesw
4872 # Check whether --with-ncurses or --without-ncurses was given.
4873 if test "${with_ncurses+set}" = set; then
4874 withval="$with_ncurses"
4875 cf_cv_screen=ncurses
4878 # Check whether --with-pdcurses or --without-pdcurses was given.
4879 if test "${with_pdcurses+set}" = set; then
4880 withval="$with_pdcurses"
4881 cf_cv_screen=pdcurses
4884 # Check whether --with-curses-colr or --without-curses-colr was given.
4885 if test "${with_curses_colr+set}" = set; then
4886 withval="$with_curses_colr"
4887 cf_cv_screen=curses_colr
4890 # Check whether --with-curses-5lib or --without-curses-5lib was given.
4891 if test "${with_curses_5lib+set}" = set; then
4892 withval="$with_curses_5lib"
4893 cf_cv_screen=curses_5lib
4900 echo "$as_me:4900: result: $cf_cv_screen" >&5
4901 echo "${ECHO_T}$cf_cv_screen" >&6
4903 case $cf_cv_screen in
4906 echo "$as_me:4906: checking for extra include directories" >&5
4907 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
4908 if test "${cf_cv_curses_incdir+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 cf_cv_curses_incdir=no
4913 case $host_os in #(vi
4915 if test "x$cf_cv_screen" = "xcurses_colr"
4917 test -d /usr/include/curses_colr && \
4918 cf_cv_curses_incdir="-I/usr/include/curses_colr"
4922 if test "x$cf_cv_screen" = "xcurses_5lib"
4924 test -d /usr/5lib && \
4925 test -d /usr/5include && \
4926 cf_cv_curses_incdir="-I/usr/5include"
4932 echo "$as_me:4932: result: $cf_cv_curses_incdir" >&5
4933 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
4934 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
4936 echo "$as_me:4936: checking if we have identified curses headers" >&5
4937 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4938 if test "${cf_cv_ncurses_header+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 cf_cv_ncurses_header=none
4945 curses.h ncurses/ncurses.h ncurses/curses.h
4947 cat >conftest.$ac_ext <<_ACEOF
4948 #line 4948 "configure"
4949 #include "confdefs.h"
4950 #include <${cf_header}>
4954 initscr(); tgoto("?", 0,0)
4959 rm -f conftest.$ac_objext
4960 if { (eval echo "$as_me:4960: \"$ac_compile\"") >&5
4961 (eval $ac_compile) 2>&5
4963 echo "$as_me:4963: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
4965 { ac_try='test -s conftest.$ac_objext'
4966 { (eval echo "$as_me:4966: \"$ac_try\"") >&5
4969 echo "$as_me:4969: \$? = $ac_status" >&5
4970 (exit $ac_status); }; }; then
4971 cf_cv_ncurses_header=$cf_header; break
4973 echo "$as_me: failed program was:" >&5
4974 cat conftest.$ac_ext >&5
4976 rm -f conftest.$ac_objext conftest.$ac_ext
4980 echo "$as_me:4980: result: $cf_cv_ncurses_header" >&5
4981 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4983 if test "$cf_cv_ncurses_header" = none ; then
4984 { { echo "$as_me:4984: error: No curses header-files found" >&5
4985 echo "$as_me: error: No curses header-files found" >&2;}
4986 { (exit 1); exit 1; }; }
4989 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4991 for ac_header in $cf_cv_ncurses_header
4993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4994 echo "$as_me:4994: checking for $ac_header" >&5
4995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 cat >conftest.$ac_ext <<_ACEOF
5000 #line 5000 "configure"
5001 #include "confdefs.h"
5002 #include <$ac_header>
5004 if { (eval echo "$as_me:5004: \"$ac_cpp conftest.$ac_ext\"") >&5
5005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5007 egrep -v '^ *\+' conftest.er1 >conftest.err
5009 cat conftest.err >&5
5010 echo "$as_me:5010: \$? = $ac_status" >&5
5011 (exit $ac_status); } >/dev/null; then
5012 if test -s conftest.err; then
5013 ac_cpp_err=$ac_c_preproc_warn_flag
5020 if test -z "$ac_cpp_err"; then
5021 eval "$as_ac_Header=yes"
5023 echo "$as_me: failed program was:" >&5
5024 cat conftest.$ac_ext >&5
5025 eval "$as_ac_Header=no"
5027 rm -f conftest.err conftest.$ac_ext
5029 echo "$as_me:5029: result: `eval echo '${'$as_ac_Header'}'`" >&5
5030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5032 cat >>confdefs.h <<EOF
5033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5039 echo "$as_me:5039: checking for terminfo header" >&5
5040 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
5041 if test "${cf_cv_term_header+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 case ${cf_cv_ncurses_header} in #(vi
5046 */ncurses.h|*/ncursesw.h) #(vi
5047 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
5050 cf_term_header=term.h
5054 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
5056 cat >conftest.$ac_ext <<_ACEOF
5057 #line 5057 "configure"
5058 #include "confdefs.h"
5060 #include <${cf_cv_ncurses_header:-curses.h}>
5066 int x = auto_left_margin
5071 rm -f conftest.$ac_objext
5072 if { (eval echo "$as_me:5072: \"$ac_compile\"") >&5
5073 (eval $ac_compile) 2>&5
5075 echo "$as_me:5075: \$? = $ac_status" >&5
5076 (exit $ac_status); } &&
5077 { ac_try='test -s conftest.$ac_objext'
5078 { (eval echo "$as_me:5078: \"$ac_try\"") >&5
5081 echo "$as_me:5081: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
5084 cf_cv_term_header="$cf_test"
5086 echo "$as_me: failed program was:" >&5
5087 cat conftest.$ac_ext >&5
5089 cf_cv_term_header=unknown
5092 rm -f conftest.$ac_objext conftest.$ac_ext
5093 test "$cf_cv_term_header" != unknown && break
5097 echo "$as_me:5097: result: $cf_cv_term_header" >&5
5098 echo "${ECHO_T}$cf_cv_term_header" >&6
5100 # Set definitions to allow ifdef'ing to accommodate subdirectories
5102 case $cf_cv_term_header in # (vi
5104 cat >>confdefs.h <<\EOF
5105 #define HAVE_TERM_H 1
5111 case $cf_cv_term_header in # (vi
5112 ncurses/term.h) #(vi
5113 cat >>confdefs.h <<\EOF
5114 #define HAVE_NCURSES_TERM_H 1
5119 cat >>confdefs.h <<\EOF
5120 #define HAVE_NCURSESW_TERM_H 1
5126 echo "$as_me:5126: checking for ncurses version" >&5
5127 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
5128 if test "${cf_cv_ncurses_version+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 cf_cv_ncurses_version=no
5135 if test "$cross_compiling" = yes; then
5137 # This will not work if the preprocessor splits the line after the
5138 # Autoconf token. The 'unproto' program does that.
5139 cat > conftest.$ac_ext <<EOF
5140 #include <${cf_cv_ncurses_header:-curses.h}>
5142 #ifdef NCURSES_VERSION
5143 Autoconf NCURSES_VERSION
5151 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
5152 { (eval echo "$as_me:5152: \"$cf_try\"") >&5
5155 echo "$as_me:5155: \$? = $ac_status" >&5
5156 (exit $ac_status); }
5157 if test -f conftest.out ; then
5158 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
5159 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
5164 cat >conftest.$ac_ext <<_ACEOF
5165 #line 5165 "configure"
5166 #include "confdefs.h"
5168 #include <${cf_cv_ncurses_header:-curses.h}>
5172 FILE *fp = fopen("$cf_tempfile", "w");
5173 #ifdef NCURSES_VERSION
5174 # ifdef NCURSES_VERSION_PATCH
5175 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
5177 fprintf(fp, "%s\n", NCURSES_VERSION);
5181 fprintf(fp, "old\n");
5186 ${cf_cv_main_return:-return}(0);
5189 rm -f conftest$ac_exeext
5190 if { (eval echo "$as_me:5190: \"$ac_link\"") >&5
5191 (eval $ac_link) 2>&5
5193 echo "$as_me:5193: \$? = $ac_status" >&5
5194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5195 { (eval echo "$as_me:5195: \"$ac_try\"") >&5
5198 echo "$as_me:5198: \$? = $ac_status" >&5
5199 (exit $ac_status); }; }; then
5201 cf_cv_ncurses_version=`cat $cf_tempfile`
5203 echo "$as_me: program exited with status $ac_status" >&5
5204 echo "$as_me: failed program was:" >&5
5205 cat conftest.$ac_ext >&5
5207 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5212 echo "$as_me:5212: result: $cf_cv_ncurses_version" >&5
5213 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
5214 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
5218 echo "$as_me:5218: checking if we have identified curses libraries" >&5
5219 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
5220 cat >conftest.$ac_ext <<_ACEOF
5221 #line 5221 "configure"
5222 #include "confdefs.h"
5223 #include <${cf_cv_ncurses_header:-curses.h}>
5227 initscr(); tgoto("?", 0,0)
5232 rm -f conftest.$ac_objext conftest$ac_exeext
5233 if { (eval echo "$as_me:5233: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>&5
5236 echo "$as_me:5236: \$? = $ac_status" >&5
5237 (exit $ac_status); } &&
5238 { ac_try='test -s conftest$ac_exeext'
5239 { (eval echo "$as_me:5239: \"$ac_try\"") >&5
5242 echo "$as_me:5242: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5246 echo "$as_me: failed program was:" >&5
5247 cat conftest.$ac_ext >&5
5250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5251 echo "$as_me:5251: result: $cf_result" >&5
5252 echo "${ECHO_T}$cf_result" >&6
5254 if test "$cf_result" = no ; then
5255 case $host_os in #(vi
5257 echo "$as_me:5257: checking for tgoto in -lmytinfo" >&5
5258 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5259 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 ac_check_lib_save_LIBS=$LIBS
5263 LIBS="-lmytinfo $LIBS"
5264 cat >conftest.$ac_ext <<_ACEOF
5265 #line 5265 "configure"
5266 #include "confdefs.h"
5268 /* Override any gcc2 internal prototype to avoid an error. */
5272 /* We use char because int might match the return type of a gcc2
5273 builtin and then its argument prototype would still apply. */
5283 rm -f conftest.$ac_objext conftest$ac_exeext
5284 if { (eval echo "$as_me:5284: \"$ac_link\"") >&5
5285 (eval $ac_link) 2>&5
5287 echo "$as_me:5287: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try='test -s conftest$ac_exeext'
5290 { (eval echo "$as_me:5290: \"$ac_try\"") >&5
5293 echo "$as_me:5293: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 ac_cv_lib_mytinfo_tgoto=yes
5297 echo "$as_me: failed program was:" >&5
5298 cat conftest.$ac_ext >&5
5299 ac_cv_lib_mytinfo_tgoto=no
5301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5302 LIBS=$ac_check_lib_save_LIBS
5304 echo "$as_me:5304: result: $ac_cv_lib_mytinfo_tgoto" >&5
5305 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5306 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5307 LIBS="-lmytinfo $LIBS"
5312 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
5313 # next (1998), and xcurses "newer" (2000). There is no header file for
5314 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
5315 # term.h) for cur_colr
5316 if test "x$cf_cv_screen" = "xcurses_colr"
5318 echo "$as_me:5318: checking for initscr in -lcur_colr" >&5
5319 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5320 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 ac_check_lib_save_LIBS=$LIBS
5324 LIBS="-lcur_colr $LIBS"
5325 cat >conftest.$ac_ext <<_ACEOF
5326 #line 5326 "configure"
5327 #include "confdefs.h"
5329 /* Override any gcc2 internal prototype to avoid an error. */
5333 /* We use char because int might match the return type of a gcc2
5334 builtin and then its argument prototype would still apply. */
5344 rm -f conftest.$ac_objext conftest$ac_exeext
5345 if { (eval echo "$as_me:5345: \"$ac_link\"") >&5
5346 (eval $ac_link) 2>&5
5348 echo "$as_me:5348: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try='test -s conftest$ac_exeext'
5351 { (eval echo "$as_me:5351: \"$ac_try\"") >&5
5354 echo "$as_me:5354: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_cv_lib_cur_colr_initscr=yes
5358 echo "$as_me: failed program was:" >&5
5359 cat conftest.$ac_ext >&5
5360 ac_cv_lib_cur_colr_initscr=no
5362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5363 LIBS=$ac_check_lib_save_LIBS
5365 echo "$as_me:5365: result: $ac_cv_lib_cur_colr_initscr" >&5
5366 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5367 if test $ac_cv_lib_cur_colr_initscr = yes; then
5369 LIBS="-lcur_colr $LIBS"
5370 ac_cv_func_initscr=yes
5374 echo "$as_me:5374: checking for initscr in -lHcurses" >&5
5375 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5376 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 ac_check_lib_save_LIBS=$LIBS
5380 LIBS="-lHcurses $LIBS"
5381 cat >conftest.$ac_ext <<_ACEOF
5382 #line 5382 "configure"
5383 #include "confdefs.h"
5385 /* Override any gcc2 internal prototype to avoid an error. */
5389 /* We use char because int might match the return type of a gcc2
5390 builtin and then its argument prototype would still apply. */
5400 rm -f conftest.$ac_objext conftest$ac_exeext
5401 if { (eval echo "$as_me:5401: \"$ac_link\"") >&5
5402 (eval $ac_link) 2>&5
5404 echo "$as_me:5404: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try='test -s conftest$ac_exeext'
5407 { (eval echo "$as_me:5407: \"$ac_try\"") >&5
5410 echo "$as_me:5410: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5412 ac_cv_lib_Hcurses_initscr=yes
5414 echo "$as_me: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5416 ac_cv_lib_Hcurses_initscr=no
5418 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5419 LIBS=$ac_check_lib_save_LIBS
5421 echo "$as_me:5421: result: $ac_cv_lib_Hcurses_initscr" >&5
5422 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5423 if test $ac_cv_lib_Hcurses_initscr = yes; then
5425 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5426 LIBS="-lHcurses $LIBS"
5427 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
5428 ac_cv_func_initscr=yes
5437 case `arch 2>/dev/null` in
5442 if test -n "/lib64" ; then
5443 for cf_add_libdir in /lib64
5445 if test $cf_add_libdir = /usr/lib ; then
5447 elif test -d $cf_add_libdir
5450 if test -n "$LDFLAGS$LIBS" ; then
5451 # a loop is needed to ensure we can add subdirs of existing dirs
5452 for cf_test_libdir in $LDFLAGS $LIBS ; do
5453 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5454 cf_have_libdir=yes; break
5458 if test "$cf_have_libdir" = no ; then
5459 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5461 echo "${as_me:-configure}:5461: testing adding $cf_add_libdir to library-path ..." 1>&5
5463 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5471 if test -n "/lib" ; then
5472 for cf_add_libdir in /lib
5474 if test $cf_add_libdir = /usr/lib ; then
5476 elif test -d $cf_add_libdir
5479 if test -n "$LDFLAGS$LIBS" ; then
5480 # a loop is needed to ensure we can add subdirs of existing dirs
5481 for cf_test_libdir in $LDFLAGS $LIBS ; do
5482 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5483 cf_have_libdir=yes; break
5487 if test "$cf_have_libdir" = no ; then
5488 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5490 echo "${as_me:-configure}:5490: testing adding $cf_add_libdir to library-path ..." 1>&5
5492 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5502 if test -n "/lib" ; then
5503 for cf_add_libdir in /lib
5505 if test $cf_add_libdir = /usr/lib ; then
5507 elif test -d $cf_add_libdir
5510 if test -n "$LDFLAGS$LIBS" ; then
5511 # a loop is needed to ensure we can add subdirs of existing dirs
5512 for cf_test_libdir in $LDFLAGS $LIBS ; do
5513 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5514 cf_have_libdir=yes; break
5518 if test "$cf_have_libdir" = no ; then
5519 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5521 echo "${as_me:-configure}:5521: testing adding $cf_add_libdir to library-path ..." 1>&5
5523 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5533 if test "x$cf_cv_screen" = "xcurses_5lib"
5535 if test -d /usr/5lib ; then
5537 if test -n "/usr/5lib" ; then
5538 for cf_add_libdir in /usr/5lib
5540 if test $cf_add_libdir = /usr/lib ; then
5542 elif test -d $cf_add_libdir
5545 if test -n "$LDFLAGS$LIBS" ; then
5546 # a loop is needed to ensure we can add subdirs of existing dirs
5547 for cf_test_libdir in $LDFLAGS $LIBS ; do
5548 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5549 cf_have_libdir=yes; break
5553 if test "$cf_have_libdir" = no ; then
5554 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5556 echo "${as_me:-configure}:5556: testing adding $cf_add_libdir to library-path ..." 1>&5
5558 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5564 LIBS="-lcurses -ltermcap $LIBS"
5567 ac_cv_func_initscr=yes
5571 if test ".$ac_cv_func_initscr" != .yes ; then
5572 cf_save_LIBS="$LIBS"
5576 if test ".${cf_cv_ncurses_version:-no}" != .no
5578 cf_check_list="ncurses curses cursesX"
5580 cf_check_list="cursesX curses ncurses"
5583 # Check for library containing tgoto. Do this before curses library
5584 # because it may be needed to link the test-case for initscr.
5585 echo "$as_me:5585: checking for tgoto" >&5
5586 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5587 if test "${ac_cv_func_tgoto+set}" = set; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 cat >conftest.$ac_ext <<_ACEOF
5591 #line 5591 "configure"
5592 #include "confdefs.h"
5593 /* System header to define __stub macros and hopefully few prototypes,
5594 which can conflict with char tgoto (); below. */
5596 /* Override any gcc2 internal prototype to avoid an error. */
5600 /* We use char because int might match the return type of a gcc2
5601 builtin and then its argument prototype would still apply. */
5608 /* The GNU C library defines this for functions which it implements
5609 to always fail with ENOSYS. Some functions are actually named
5610 something starting with __ and the normal name is an alias. */
5611 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5621 rm -f conftest.$ac_objext conftest$ac_exeext
5622 if { (eval echo "$as_me:5622: \"$ac_link\"") >&5
5623 (eval $ac_link) 2>&5
5625 echo "$as_me:5625: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 { ac_try='test -s conftest$ac_exeext'
5628 { (eval echo "$as_me:5628: \"$ac_try\"") >&5
5631 echo "$as_me:5631: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5633 ac_cv_func_tgoto=yes
5635 echo "$as_me: failed program was:" >&5
5636 cat conftest.$ac_ext >&5
5639 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5641 echo "$as_me:5641: result: $ac_cv_func_tgoto" >&5
5642 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5643 if test $ac_cv_func_tgoto = yes; then
5644 cf_term_lib=predefined
5647 for cf_term_lib in $cf_check_list termcap termlib unknown
5649 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5650 echo "$as_me:5650: checking for tgoto in -l$cf_term_lib" >&5
5651 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5652 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 ac_check_lib_save_LIBS=$LIBS
5656 LIBS="-l$cf_term_lib $LIBS"
5657 cat >conftest.$ac_ext <<_ACEOF
5658 #line 5658 "configure"
5659 #include "confdefs.h"
5661 /* Override any gcc2 internal prototype to avoid an error. */
5665 /* We use char because int might match the return type of a gcc2
5666 builtin and then its argument prototype would still apply. */
5676 rm -f conftest.$ac_objext conftest$ac_exeext
5677 if { (eval echo "$as_me:5677: \"$ac_link\"") >&5
5678 (eval $ac_link) 2>&5
5680 echo "$as_me:5680: \$? = $ac_status" >&5
5681 (exit $ac_status); } &&
5682 { ac_try='test -s conftest$ac_exeext'
5683 { (eval echo "$as_me:5683: \"$ac_try\"") >&5
5686 echo "$as_me:5686: \$? = $ac_status" >&5
5687 (exit $ac_status); }; }; then
5688 eval "$as_ac_Lib=yes"
5690 echo "$as_me: failed program was:" >&5
5691 cat conftest.$ac_ext >&5
5692 eval "$as_ac_Lib=no"
5694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5695 LIBS=$ac_check_lib_save_LIBS
5697 echo "$as_me:5697: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5698 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5699 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5707 # Check for library containing initscr
5708 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5709 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
5711 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5712 echo "$as_me:5712: checking for initscr in -l$cf_curs_lib" >&5
5713 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5714 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 ac_check_lib_save_LIBS=$LIBS
5718 LIBS="-l$cf_curs_lib $LIBS"
5719 cat >conftest.$ac_ext <<_ACEOF
5720 #line 5720 "configure"
5721 #include "confdefs.h"
5723 /* Override any gcc2 internal prototype to avoid an error. */
5727 /* We use char because int might match the return type of a gcc2
5728 builtin and then its argument prototype would still apply. */
5738 rm -f conftest.$ac_objext conftest$ac_exeext
5739 if { (eval echo "$as_me:5739: \"$ac_link\"") >&5
5740 (eval $ac_link) 2>&5
5742 echo "$as_me:5742: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -s conftest$ac_exeext'
5745 { (eval echo "$as_me:5745: \"$ac_try\"") >&5
5748 echo "$as_me:5748: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5750 eval "$as_ac_Lib=yes"
5752 echo "$as_me: failed program was:" >&5
5753 cat conftest.$ac_ext >&5
5754 eval "$as_ac_Lib=no"
5756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5757 LIBS=$ac_check_lib_save_LIBS
5759 echo "$as_me:5759: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5760 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5761 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5766 test $cf_curs_lib = unknown && { { echo "$as_me:5766: error: no curses library found" >&5
5767 echo "$as_me: error: no curses library found" >&2;}
5768 { (exit 1); exit 1; }; }
5770 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5771 if test "$cf_term_lib" = unknown ; then
5772 echo "$as_me:5772: checking if we can link with $cf_curs_lib library" >&5
5773 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5774 cat >conftest.$ac_ext <<_ACEOF
5775 #line 5775 "configure"
5776 #include "confdefs.h"
5777 #include <${cf_cv_ncurses_header:-curses.h}>
5786 rm -f conftest.$ac_objext conftest$ac_exeext
5787 if { (eval echo "$as_me:5787: \"$ac_link\"") >&5
5788 (eval $ac_link) 2>&5
5790 echo "$as_me:5790: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -s conftest$ac_exeext'
5793 { (eval echo "$as_me:5793: \"$ac_try\"") >&5
5796 echo "$as_me:5796: \$? = $ac_status" >&5
5797 (exit $ac_status); }; }; then
5800 echo "$as_me: failed program was:" >&5
5801 cat conftest.$ac_ext >&5
5804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5805 echo "$as_me:5805: result: $cf_result" >&5
5806 echo "${ECHO_T}$cf_result" >&6
5807 test $cf_result = no && { { echo "$as_me:5807: error: Cannot link curses library" >&5
5808 echo "$as_me: error: Cannot link curses library" >&2;}
5809 { (exit 1); exit 1; }; }
5810 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
5812 elif test "$cf_term_lib" != predefined ; then
5813 echo "$as_me:5813: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5814 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5815 cat >conftest.$ac_ext <<_ACEOF
5816 #line 5816 "configure"
5817 #include "confdefs.h"
5818 #include <${cf_cv_ncurses_header:-curses.h}>
5822 initscr(); tgoto((char *)0, 0, 0);
5827 rm -f conftest.$ac_objext conftest$ac_exeext
5828 if { (eval echo "$as_me:5828: \"$ac_link\"") >&5
5829 (eval $ac_link) 2>&5
5831 echo "$as_me:5831: \$? = $ac_status" >&5
5832 (exit $ac_status); } &&
5833 { ac_try='test -s conftest$ac_exeext'
5834 { (eval echo "$as_me:5834: \"$ac_try\"") >&5
5837 echo "$as_me:5837: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5841 echo "$as_me: failed program was:" >&5
5842 cat conftest.$ac_ext >&5
5844 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5845 cat >conftest.$ac_ext <<_ACEOF
5846 #line 5846 "configure"
5847 #include "confdefs.h"
5848 #include <${cf_cv_ncurses_header:-curses.h}>
5857 rm -f conftest.$ac_objext conftest$ac_exeext
5858 if { (eval echo "$as_me:5858: \"$ac_link\"") >&5
5859 (eval $ac_link) 2>&5
5861 echo "$as_me:5861: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -s conftest$ac_exeext'
5864 { (eval echo "$as_me:5864: \"$ac_try\"") >&5
5867 echo "$as_me:5867: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5871 echo "$as_me: failed program was:" >&5
5872 cat conftest.$ac_ext >&5
5875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5879 echo "$as_me:5879: result: $cf_result" >&5
5880 echo "${ECHO_T}$cf_result" >&6
5885 echo "$as_me:5885: checking for NetBSD form.h" >&5
5886 echo $ECHO_N "checking for NetBSD form.h... $ECHO_C" >&6
5887 if test "${cf_cv_netbsd_form_h+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 cat >conftest.$ac_ext <<_ACEOF
5892 #line 5892 "configure"
5893 #include "confdefs.h"
5895 #include <${cf_cv_ncurses_header:-curses.h}>
5903 int y = current_field(form)->cursor_ypos;
5904 int x = current_field(form)->cursor_xpos;
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
5922 cf_cv_netbsd_form_h=yes
5925 echo "$as_me: failed program was:" >&5
5926 cat conftest.$ac_ext >&5
5927 cf_cv_netbsd_form_h=no
5929 rm -f conftest.$ac_objext conftest.$ac_ext
5932 echo "$as_me:5932: result: $cf_cv_netbsd_form_h" >&5
5933 echo "${ECHO_T}$cf_cv_netbsd_form_h" >&6
5935 test "$cf_cv_netbsd_form_h" = yes && cat >>confdefs.h <<\EOF
5936 #define HAVE_NETBSD_FORM_H 1
5939 echo "$as_me:5939: checking for NetBSD menu.h" >&5
5940 echo $ECHO_N "checking for NetBSD menu.h... $ECHO_C" >&6
5941 if test "${cf_cv_netbsd_menu_h+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 cat >conftest.$ac_ext <<_ACEOF
5946 #line 5946 "configure"
5947 #include "confdefs.h"
5949 #include <${cf_cv_ncurses_header:-curses.h}>
5957 int y = menu->max_item_width;
5963 rm -f conftest.$ac_objext
5964 if { (eval echo "$as_me:5964: \"$ac_compile\"") >&5
5965 (eval $ac_compile) 2>&5
5967 echo "$as_me:5967: \$? = $ac_status" >&5
5968 (exit $ac_status); } &&
5969 { ac_try='test -s conftest.$ac_objext'
5970 { (eval echo "$as_me:5970: \"$ac_try\"") >&5
5973 echo "$as_me:5973: \$? = $ac_status" >&5
5974 (exit $ac_status); }; }; then
5975 cf_cv_netbsd_menu_h=yes
5978 echo "$as_me: failed program was:" >&5
5979 cat conftest.$ac_ext >&5
5980 cf_cv_netbsd_menu_h=no
5982 rm -f conftest.$ac_objext conftest.$ac_ext
5985 echo "$as_me:5985: result: $cf_cv_netbsd_menu_h" >&5
5986 echo "${ECHO_T}$cf_cv_netbsd_menu_h" >&6
5988 test "$cf_cv_netbsd_menu_h" = yes && cat >>confdefs.h <<\EOF
5989 #define HAVE_NETBSD_MENU_H 1
5995 cf_ncuconfig_root=ncurses
5997 echo "Looking for ${cf_ncuconfig_root}-config"
5998 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6000 # Extract the first word of "$ac_prog", so it can be a program name with args.
6001 set dummy $ac_prog; ac_word=$2
6002 echo "$as_me:6002: checking for $ac_word" >&5
6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6004 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 case $NCURSES_CONFIG in
6009 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
6012 ac_save_IFS=$IFS; IFS=$ac_path_separator
6014 for ac_dir in $ac_dummy; do
6016 test -z "$ac_dir" && ac_dir=.
6017 if $as_executable_p "$ac_dir/$ac_word"; then
6018 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
6019 echo "$as_me:6019: found $ac_dir/$ac_word" >&5
6027 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
6029 if test -n "$NCURSES_CONFIG"; then
6030 echo "$as_me:6030: result: $NCURSES_CONFIG" >&5
6031 echo "${ECHO_T}$NCURSES_CONFIG" >&6
6033 echo "$as_me:6033: result: no" >&5
6034 echo "${ECHO_T}no" >&6
6037 test -n "$NCURSES_CONFIG" && break
6039 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
6041 if test "$NCURSES_CONFIG" != none ; then
6043 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
6044 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
6046 # even with config script, some packages use no-override for curses.h
6048 echo "$as_me:6048: checking if we have identified curses headers" >&5
6049 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
6050 if test "${cf_cv_ncurses_header+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 cf_cv_ncurses_header=none
6061 cat >conftest.$ac_ext <<_ACEOF
6062 #line 6062 "configure"
6063 #include "confdefs.h"
6064 #include <${cf_header}>
6068 initscr(); tgoto("?", 0,0)
6073 rm -f conftest.$ac_objext
6074 if { (eval echo "$as_me:6074: \"$ac_compile\"") >&5
6075 (eval $ac_compile) 2>&5
6077 echo "$as_me:6077: \$? = $ac_status" >&5
6078 (exit $ac_status); } &&
6079 { ac_try='test -s conftest.$ac_objext'
6080 { (eval echo "$as_me:6080: \"$ac_try\"") >&5
6083 echo "$as_me:6083: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6085 cf_cv_ncurses_header=$cf_header; break
6087 echo "$as_me: failed program was:" >&5
6088 cat conftest.$ac_ext >&5
6090 rm -f conftest.$ac_objext conftest.$ac_ext
6094 echo "$as_me:6094: result: $cf_cv_ncurses_header" >&5
6095 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
6097 if test "$cf_cv_ncurses_header" = none ; then
6098 { { echo "$as_me:6098: error: No curses header-files found" >&5
6099 echo "$as_me: error: No curses header-files found" >&2;}
6100 { (exit 1); exit 1; }; }
6103 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
6105 for ac_header in $cf_cv_ncurses_header
6107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6108 echo "$as_me:6108: checking for $ac_header" >&5
6109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 cat >conftest.$ac_ext <<_ACEOF
6114 #line 6114 "configure"
6115 #include "confdefs.h"
6116 #include <$ac_header>
6118 if { (eval echo "$as_me:6118: \"$ac_cpp conftest.$ac_ext\"") >&5
6119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6121 egrep -v '^ *\+' conftest.er1 >conftest.err
6123 cat conftest.err >&5
6124 echo "$as_me:6124: \$? = $ac_status" >&5
6125 (exit $ac_status); } >/dev/null; then
6126 if test -s conftest.err; then
6127 ac_cpp_err=$ac_c_preproc_warn_flag
6134 if test -z "$ac_cpp_err"; then
6135 eval "$as_ac_Header=yes"
6137 echo "$as_me: failed program was:" >&5
6138 cat conftest.$ac_ext >&5
6139 eval "$as_ac_Header=no"
6141 rm -f conftest.err conftest.$ac_ext
6143 echo "$as_me:6143: result: `eval echo '${'$as_ac_Header'}'`" >&5
6144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6146 cat >>confdefs.h <<EOF
6147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6153 cat >>confdefs.h <<\EOF
6157 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6159 cat >>confdefs.h <<EOF
6160 #define $cf_nculib_ROOT 1
6163 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
6167 cf_ncuhdr_root=ncurses
6169 test -n "$cf_cv_curses_dir" && \
6170 test "$cf_cv_curses_dir" != "no" && { \
6172 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
6173 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
6175 while test $cf_add_incdir != /usr/include
6177 if test -d $cf_add_incdir
6180 if test -n "$CFLAGS$CPPFLAGS" ; then
6181 # a loop is needed to ensure we can add subdirs of existing dirs
6182 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6183 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6184 cf_have_incdir=yes; break
6189 if test "$cf_have_incdir" = no ; then
6190 if test "$cf_add_incdir" = /usr/local/include ; then
6191 if test "$GCC" = yes
6193 cf_save_CPPFLAGS=$CPPFLAGS
6194 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6195 cat >conftest.$ac_ext <<_ACEOF
6196 #line 6196 "configure"
6197 #include "confdefs.h"
6207 rm -f conftest.$ac_objext
6208 if { (eval echo "$as_me:6208: \"$ac_compile\"") >&5
6209 (eval $ac_compile) 2>&5
6211 echo "$as_me:6211: \$? = $ac_status" >&5
6212 (exit $ac_status); } &&
6213 { ac_try='test -s conftest.$ac_objext'
6214 { (eval echo "$as_me:6214: \"$ac_try\"") >&5
6217 echo "$as_me:6217: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
6221 echo "$as_me: failed program was:" >&5
6222 cat conftest.$ac_ext >&5
6225 rm -f conftest.$ac_objext conftest.$ac_ext
6226 CPPFLAGS=$cf_save_CPPFLAGS
6231 if test "$cf_have_incdir" = no ; then
6232 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6234 echo "${as_me:-configure}:6234: testing adding $cf_add_incdir to include-path ..." 1>&5
6236 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6238 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6239 test "$cf_top_incdir" = "$cf_add_incdir" && break
6240 cf_add_incdir="$cf_top_incdir"
6251 echo "$as_me:6251: checking for $cf_ncuhdr_root header in include-path" >&5
6252 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
6253 if test "${cf_cv_ncurses_h+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
6258 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
6259 for cf_header in $cf_header_list
6262 cat >conftest.$ac_ext <<_ACEOF
6263 #line 6263 "configure"
6264 #include "confdefs.h"
6266 #include <$cf_header>
6271 #ifdef NCURSES_VERSION
6273 printf("%s\n", NCURSES_VERSION);
6286 rm -f conftest.$ac_objext
6287 if { (eval echo "$as_me:6287: \"$ac_compile\"") >&5
6288 (eval $ac_compile) 2>&5
6290 echo "$as_me:6290: \$? = $ac_status" >&5
6291 (exit $ac_status); } &&
6292 { ac_try='test -s conftest.$ac_objext'
6293 { (eval echo "$as_me:6293: \"$ac_try\"") >&5
6296 echo "$as_me:6296: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
6298 cf_cv_ncurses_h=$cf_header
6301 echo "$as_me: failed program was:" >&5
6302 cat conftest.$ac_ext >&5
6305 rm -f conftest.$ac_objext conftest.$ac_ext
6307 test "$cf_cv_ncurses_h" != no && break
6311 echo "$as_me:6311: result: $cf_cv_ncurses_h" >&5
6312 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
6314 if test "$cf_cv_ncurses_h" != no ; then
6315 cf_cv_ncurses_header=$cf_cv_ncurses_h
6318 echo "$as_me:6318: checking for $cf_ncuhdr_root include-path" >&5
6319 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
6320 if test "${cf_cv_ncurses_h2+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 test -n "$verbose" && echo
6328 # collect the current set of include-directories from compiler flags
6329 cf_header_path_list=""
6330 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6331 for cf_header_path in $CPPFLAGS $CFLAGS
6333 case $cf_header_path in #(vi
6335 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6337 test "$cf_header_path" != "NONE" && \
6338 test -d "$cf_header_path" && \
6340 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6341 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6342 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
6343 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
6344 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
6345 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"
6348 cf_header_path_list="$cf_header_path_list $cf_search"
6354 # add the variations for the package we are looking for
6358 test "/usr" != "$prefix" && \
6360 (test $prefix = NONE || test "/usr" != "$prefix") && {
6361 test -n "$verbose" && echo " ... testing for include-directories under /usr"
6362 test -d /usr/include && cf_search="$cf_search /usr/include"
6363 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
6364 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
6365 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
6366 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6369 test "$prefix" != "NONE" && \
6370 test -d "$prefix" && \
6372 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6373 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6374 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
6375 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
6376 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
6377 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6380 test "/usr/local" != "$prefix" && \
6381 test -d "/usr/local" && \
6382 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
6383 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
6384 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
6385 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
6386 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
6387 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
6388 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6391 test "/opt" != "$prefix" && \
6393 (test $prefix = NONE || test "/opt" != "$prefix") && {
6394 test -n "$verbose" && echo " ... testing for include-directories under /opt"
6395 test -d /opt/include && cf_search="$cf_search /opt/include"
6396 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
6397 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
6398 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
6399 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6402 test "$HOME" != "$prefix" && \
6403 test -d "$HOME" && \
6404 (test $prefix = NONE || test "$HOME" != "$prefix") && {
6405 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
6406 test -d $HOME/include && cf_search="$cf_search $HOME/include"
6407 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
6408 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
6409 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
6410 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6413 test "$includedir" != NONE && \
6414 test "$includedir" != "/usr/include" && \
6415 test -d "$includedir" && {
6416 test -d $includedir && cf_search="$cf_search $includedir"
6417 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
6420 test "$oldincludedir" != NONE && \
6421 test "$oldincludedir" != "/usr/include" && \
6422 test -d "$oldincludedir" && {
6423 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6424 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
6427 cf_search="$cf_search $cf_header_path_list"
6429 test -n "$verbose" && echo search path $cf_search
6430 cf_save2_CPPFLAGS="$CPPFLAGS"
6431 for cf_incdir in $cf_search
6434 if test -n "$cf_incdir" ; then
6435 for cf_add_incdir in $cf_incdir
6437 while test $cf_add_incdir != /usr/include
6439 if test -d $cf_add_incdir
6442 if test -n "$CFLAGS$CPPFLAGS" ; then
6443 # a loop is needed to ensure we can add subdirs of existing dirs
6444 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6445 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6446 cf_have_incdir=yes; break
6451 if test "$cf_have_incdir" = no ; then
6452 if test "$cf_add_incdir" = /usr/local/include ; then
6453 if test "$GCC" = yes
6455 cf_save_CPPFLAGS=$CPPFLAGS
6456 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6457 cat >conftest.$ac_ext <<_ACEOF
6458 #line 6458 "configure"
6459 #include "confdefs.h"
6469 rm -f conftest.$ac_objext
6470 if { (eval echo "$as_me:6470: \"$ac_compile\"") >&5
6471 (eval $ac_compile) 2>&5
6473 echo "$as_me:6473: \$? = $ac_status" >&5
6474 (exit $ac_status); } &&
6475 { ac_try='test -s conftest.$ac_objext'
6476 { (eval echo "$as_me:6476: \"$ac_try\"") >&5
6479 echo "$as_me:6479: \$? = $ac_status" >&5
6480 (exit $ac_status); }; }; then
6483 echo "$as_me: failed program was:" >&5
6484 cat conftest.$ac_ext >&5
6487 rm -f conftest.$ac_objext conftest.$ac_ext
6488 CPPFLAGS=$cf_save_CPPFLAGS
6493 if test "$cf_have_incdir" = no ; then
6494 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6496 echo "${as_me:-configure}:6496: testing adding $cf_add_incdir to include-path ..." 1>&5
6498 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6500 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6501 test "$cf_top_incdir" = "$cf_add_incdir" && break
6502 cf_add_incdir="$cf_top_incdir"
6516 cat >conftest.$ac_ext <<_ACEOF
6517 #line 6517 "configure"
6518 #include "confdefs.h"
6520 #include <$cf_header>
6525 #ifdef NCURSES_VERSION
6527 printf("%s\n", NCURSES_VERSION);
6540 rm -f conftest.$ac_objext
6541 if { (eval echo "$as_me:6541: \"$ac_compile\"") >&5
6542 (eval $ac_compile) 2>&5
6544 echo "$as_me:6544: \$? = $ac_status" >&5
6545 (exit $ac_status); } &&
6546 { ac_try='test -s conftest.$ac_objext'
6547 { (eval echo "$as_me:6547: \"$ac_try\"") >&5
6550 echo "$as_me:6550: \$? = $ac_status" >&5
6551 (exit $ac_status); }; }; then
6552 cf_cv_ncurses_h2=$cf_header
6555 echo "$as_me: failed program was:" >&5
6556 cat conftest.$ac_ext >&5
6559 rm -f conftest.$ac_objext conftest.$ac_ext
6561 if test "$cf_cv_ncurses_h2" != no ; then
6562 cf_cv_ncurses_h2=$cf_incdir/$cf_header
6563 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
6566 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
6568 CPPFLAGS="$cf_save2_CPPFLAGS"
6569 test "$cf_cv_ncurses_h2" != no && break
6571 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:6571: error: not found" >&5
6572 echo "$as_me: error: not found" >&2;}
6573 { (exit 1); exit 1; }; }
6576 echo "$as_me:6576: result: $cf_cv_ncurses_h2" >&5
6577 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
6579 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
6580 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
6581 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
6582 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
6585 if test -n "$cf_1st_incdir" ; then
6586 for cf_add_incdir in $cf_1st_incdir
6588 while test $cf_add_incdir != /usr/include
6590 if test -d $cf_add_incdir
6593 if test -n "$CFLAGS$CPPFLAGS" ; then
6594 # a loop is needed to ensure we can add subdirs of existing dirs
6595 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6596 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6597 cf_have_incdir=yes; break
6602 if test "$cf_have_incdir" = no ; then
6603 if test "$cf_add_incdir" = /usr/local/include ; then
6604 if test "$GCC" = yes
6606 cf_save_CPPFLAGS=$CPPFLAGS
6607 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6608 cat >conftest.$ac_ext <<_ACEOF
6609 #line 6609 "configure"
6610 #include "confdefs.h"
6620 rm -f conftest.$ac_objext
6621 if { (eval echo "$as_me:6621: \"$ac_compile\"") >&5
6622 (eval $ac_compile) 2>&5
6624 echo "$as_me:6624: \$? = $ac_status" >&5
6625 (exit $ac_status); } &&
6626 { ac_try='test -s conftest.$ac_objext'
6627 { (eval echo "$as_me:6627: \"$ac_try\"") >&5
6630 echo "$as_me:6630: \$? = $ac_status" >&5
6631 (exit $ac_status); }; }; then
6634 echo "$as_me: failed program was:" >&5
6635 cat conftest.$ac_ext >&5
6638 rm -f conftest.$ac_objext conftest.$ac_ext
6639 CPPFLAGS=$cf_save_CPPFLAGS
6644 if test "$cf_have_incdir" = no ; then
6645 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6647 echo "${as_me:-configure}:6647: testing adding $cf_add_incdir to include-path ..." 1>&5
6649 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6651 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6652 test "$cf_top_incdir" = "$cf_add_incdir" && break
6653 cf_add_incdir="$cf_top_incdir"
6664 # Set definitions to allow ifdef'ing for ncurses.h
6666 case $cf_cv_ncurses_header in # (vi
6668 cat >>confdefs.h <<\EOF
6669 #define HAVE_NCURSES_H 1
6675 case $cf_cv_ncurses_header in # (vi
6676 ncurses/curses.h|ncurses/ncurses.h)
6677 cat >>confdefs.h <<\EOF
6678 #define HAVE_NCURSES_NCURSES_H 1
6682 ncursesw/curses.h|ncursesw/ncurses.h)
6683 cat >>confdefs.h <<\EOF
6684 #define HAVE_NCURSESW_NCURSES_H 1
6690 echo "$as_me:6690: checking for terminfo header" >&5
6691 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6692 if test "${cf_cv_term_header+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 case ${cf_cv_ncurses_header} in #(vi
6697 */ncurses.h|*/ncursesw.h) #(vi
6698 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6701 cf_term_header=term.h
6705 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6707 cat >conftest.$ac_ext <<_ACEOF
6708 #line 6708 "configure"
6709 #include "confdefs.h"
6711 #include <${cf_cv_ncurses_header:-curses.h}>
6717 int x = auto_left_margin
6722 rm -f conftest.$ac_objext
6723 if { (eval echo "$as_me:6723: \"$ac_compile\"") >&5
6724 (eval $ac_compile) 2>&5
6726 echo "$as_me:6726: \$? = $ac_status" >&5
6727 (exit $ac_status); } &&
6728 { ac_try='test -s conftest.$ac_objext'
6729 { (eval echo "$as_me:6729: \"$ac_try\"") >&5
6732 echo "$as_me:6732: \$? = $ac_status" >&5
6733 (exit $ac_status); }; }; then
6735 cf_cv_term_header="$cf_test"
6737 echo "$as_me: failed program was:" >&5
6738 cat conftest.$ac_ext >&5
6740 cf_cv_term_header=unknown
6743 rm -f conftest.$ac_objext conftest.$ac_ext
6744 test "$cf_cv_term_header" != unknown && break
6748 echo "$as_me:6748: result: $cf_cv_term_header" >&5
6749 echo "${ECHO_T}$cf_cv_term_header" >&6
6751 # Set definitions to allow ifdef'ing to accommodate subdirectories
6753 case $cf_cv_term_header in # (vi
6755 cat >>confdefs.h <<\EOF
6756 #define HAVE_TERM_H 1
6762 case $cf_cv_term_header in # (vi
6763 ncurses/term.h) #(vi
6764 cat >>confdefs.h <<\EOF
6765 #define HAVE_NCURSES_TERM_H 1
6770 cat >>confdefs.h <<\EOF
6771 #define HAVE_NCURSESW_TERM_H 1
6777 # some applications need this, but should check for NCURSES_VERSION
6778 cat >>confdefs.h <<\EOF
6782 echo "$as_me:6782: checking for ncurses version" >&5
6783 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
6784 if test "${cf_cv_ncurses_version+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 cf_cv_ncurses_version=no
6791 if test "$cross_compiling" = yes; then
6793 # This will not work if the preprocessor splits the line after the
6794 # Autoconf token. The 'unproto' program does that.
6795 cat > conftest.$ac_ext <<EOF
6796 #include <${cf_cv_ncurses_header:-curses.h}>
6798 #ifdef NCURSES_VERSION
6799 Autoconf NCURSES_VERSION
6807 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
6808 { (eval echo "$as_me:6808: \"$cf_try\"") >&5
6811 echo "$as_me:6811: \$? = $ac_status" >&5
6812 (exit $ac_status); }
6813 if test -f conftest.out ; then
6814 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
6815 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
6820 cat >conftest.$ac_ext <<_ACEOF
6821 #line 6821 "configure"
6822 #include "confdefs.h"
6824 #include <${cf_cv_ncurses_header:-curses.h}>
6828 FILE *fp = fopen("$cf_tempfile", "w");
6829 #ifdef NCURSES_VERSION
6830 # ifdef NCURSES_VERSION_PATCH
6831 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
6833 fprintf(fp, "%s\n", NCURSES_VERSION);
6837 fprintf(fp, "old\n");
6842 ${cf_cv_main_return:-return}(0);
6845 rm -f conftest$ac_exeext
6846 if { (eval echo "$as_me:6846: \"$ac_link\"") >&5
6847 (eval $ac_link) 2>&5
6849 echo "$as_me:6849: \$? = $ac_status" >&5
6850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6851 { (eval echo "$as_me:6851: \"$ac_try\"") >&5
6854 echo "$as_me:6854: \$? = $ac_status" >&5
6855 (exit $ac_status); }; }; then
6857 cf_cv_ncurses_version=`cat $cf_tempfile`
6859 echo "$as_me: program exited with status $ac_status" >&5
6860 echo "$as_me: failed program was:" >&5
6861 cat conftest.$ac_ext >&5
6863 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6868 echo "$as_me:6868: result: $cf_cv_ncurses_version" >&5
6869 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
6870 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
6874 cf_nculib_root=ncurses
6875 # This works, except for the special case where we find gpm, but
6876 # ncurses is in a nonstandard location via $LIBS, and we really want
6879 cf_ncurses_SAVE="$LIBS"
6880 echo "$as_me:6880: checking for Gpm_Open in -lgpm" >&5
6881 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6882 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 ac_check_lib_save_LIBS=$LIBS
6887 cat >conftest.$ac_ext <<_ACEOF
6888 #line 6888 "configure"
6889 #include "confdefs.h"
6891 /* Override any gcc2 internal prototype to avoid an error. */
6895 /* We use char because int might match the return type of a gcc2
6896 builtin and then its argument prototype would still apply. */
6906 rm -f conftest.$ac_objext conftest$ac_exeext
6907 if { (eval echo "$as_me:6907: \"$ac_link\"") >&5
6908 (eval $ac_link) 2>&5
6910 echo "$as_me:6910: \$? = $ac_status" >&5
6911 (exit $ac_status); } &&
6912 { ac_try='test -s conftest$ac_exeext'
6913 { (eval echo "$as_me:6913: \"$ac_try\"") >&5
6916 echo "$as_me:6916: \$? = $ac_status" >&5
6917 (exit $ac_status); }; }; then
6918 ac_cv_lib_gpm_Gpm_Open=yes
6920 echo "$as_me: failed program was:" >&5
6921 cat conftest.$ac_ext >&5
6922 ac_cv_lib_gpm_Gpm_Open=no
6924 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6925 LIBS=$ac_check_lib_save_LIBS
6927 echo "$as_me:6927: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6928 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6929 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6930 echo "$as_me:6930: checking for initscr in -lgpm" >&5
6931 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
6932 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 ac_check_lib_save_LIBS=$LIBS
6937 cat >conftest.$ac_ext <<_ACEOF
6938 #line 6938 "configure"
6939 #include "confdefs.h"
6941 /* Override any gcc2 internal prototype to avoid an error. */
6945 /* We use char because int might match the return type of a gcc2
6946 builtin and then its argument prototype would still apply. */
6956 rm -f conftest.$ac_objext conftest$ac_exeext
6957 if { (eval echo "$as_me:6957: \"$ac_link\"") >&5
6958 (eval $ac_link) 2>&5
6960 echo "$as_me:6960: \$? = $ac_status" >&5
6961 (exit $ac_status); } &&
6962 { ac_try='test -s conftest$ac_exeext'
6963 { (eval echo "$as_me:6963: \"$ac_try\"") >&5
6966 echo "$as_me:6966: \$? = $ac_status" >&5
6967 (exit $ac_status); }; }; then
6968 ac_cv_lib_gpm_initscr=yes
6970 echo "$as_me: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6972 ac_cv_lib_gpm_initscr=no
6974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6975 LIBS=$ac_check_lib_save_LIBS
6977 echo "$as_me:6977: result: $ac_cv_lib_gpm_initscr" >&5
6978 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
6979 if test $ac_cv_lib_gpm_initscr = yes; then
6980 LIBS="$cf_ncurses_SAVE"
6982 cf_ncurses_LIBS="-lgpm"
6987 case $host_os in #(vi
6989 # This is only necessary if you are linking against an obsolete
6990 # version of ncurses (but it should do no harm, since it's static).
6991 if test "$cf_nculib_root" = ncurses ; then
6992 echo "$as_me:6992: checking for tgoto in -lmytinfo" >&5
6993 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6994 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 ac_check_lib_save_LIBS=$LIBS
6998 LIBS="-lmytinfo $LIBS"
6999 cat >conftest.$ac_ext <<_ACEOF
7000 #line 7000 "configure"
7001 #include "confdefs.h"
7003 /* Override any gcc2 internal prototype to avoid an error. */
7007 /* We use char because int might match the return type of a gcc2
7008 builtin and then its argument prototype would still apply. */
7018 rm -f conftest.$ac_objext conftest$ac_exeext
7019 if { (eval echo "$as_me:7019: \"$ac_link\"") >&5
7020 (eval $ac_link) 2>&5
7022 echo "$as_me:7022: \$? = $ac_status" >&5
7023 (exit $ac_status); } &&
7024 { ac_try='test -s conftest$ac_exeext'
7025 { (eval echo "$as_me:7025: \"$ac_try\"") >&5
7028 echo "$as_me:7028: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7030 ac_cv_lib_mytinfo_tgoto=yes
7032 echo "$as_me: failed program was:" >&5
7033 cat conftest.$ac_ext >&5
7034 ac_cv_lib_mytinfo_tgoto=no
7036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7037 LIBS=$ac_check_lib_save_LIBS
7039 echo "$as_me:7039: result: $ac_cv_lib_mytinfo_tgoto" >&5
7040 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
7041 if test $ac_cv_lib_mytinfo_tgoto = yes; then
7042 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
7049 LIBS="$cf_ncurses_LIBS $LIBS"
7051 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
7053 LIBS="-l$cf_nculib_root $LIBS"
7056 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
7058 echo "$as_me:7058: checking for initscr" >&5
7059 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7060 if test "${ac_cv_func_initscr+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 cat >conftest.$ac_ext <<_ACEOF
7064 #line 7064 "configure"
7065 #include "confdefs.h"
7066 /* System header to define __stub macros and hopefully few prototypes,
7067 which can conflict with char initscr (); below. */
7069 /* Override any gcc2 internal prototype to avoid an error. */
7073 /* We use char because int might match the return type of a gcc2
7074 builtin and then its argument prototype would still apply. */
7081 /* The GNU C library defines this for functions which it implements
7082 to always fail with ENOSYS. Some functions are actually named
7083 something starting with __ and the normal name is an alias. */
7084 #if defined (__stub_initscr) || defined (__stub___initscr)
7094 rm -f conftest.$ac_objext conftest$ac_exeext
7095 if { (eval echo "$as_me:7095: \"$ac_link\"") >&5
7096 (eval $ac_link) 2>&5
7098 echo "$as_me:7098: \$? = $ac_status" >&5
7099 (exit $ac_status); } &&
7100 { ac_try='test -s conftest$ac_exeext'
7101 { (eval echo "$as_me:7101: \"$ac_try\"") >&5
7104 echo "$as_me:7104: \$? = $ac_status" >&5
7105 (exit $ac_status); }; }; then
7106 ac_cv_func_initscr=yes
7108 echo "$as_me: failed program was:" >&5
7109 cat conftest.$ac_ext >&5
7110 ac_cv_func_initscr=no
7112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7114 echo "$as_me:7114: result: $ac_cv_func_initscr" >&5
7115 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7116 if test $ac_cv_func_initscr = yes; then
7117 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7120 cf_save_LIBS="$LIBS"
7121 echo "$as_me:7121: checking for initscr in -l$cf_nculib_root" >&5
7122 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
7123 LIBS="-l$cf_nculib_root $LIBS"
7124 cat >conftest.$ac_ext <<_ACEOF
7125 #line 7125 "configure"
7126 #include "confdefs.h"
7127 #include <${cf_cv_ncurses_header:-curses.h}>
7136 rm -f conftest.$ac_objext conftest$ac_exeext
7137 if { (eval echo "$as_me:7137: \"$ac_link\"") >&5
7138 (eval $ac_link) 2>&5
7140 echo "$as_me:7140: \$? = $ac_status" >&5
7141 (exit $ac_status); } &&
7142 { ac_try='test -s conftest$ac_exeext'
7143 { (eval echo "$as_me:7143: \"$ac_try\"") >&5
7146 echo "$as_me:7146: \$? = $ac_status" >&5
7147 (exit $ac_status); }; }; then
7148 echo "$as_me:7148: result: yes" >&5
7149 echo "${ECHO_T}yes" >&6
7150 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7153 echo "$as_me: failed program was:" >&5
7154 cat conftest.$ac_ext >&5
7155 echo "$as_me:7155: result: no" >&5
7156 echo "${ECHO_T}no" >&6
7159 cf_library_path_list=""
7160 if test -n "${LDFLAGS}${LIBS}" ; then
7161 for cf_library_path in $LDFLAGS $LIBS
7163 case $cf_library_path in #(vi
7165 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7167 test "$cf_library_path" != "NONE" && \
7168 test -d "$cf_library_path" && \
7170 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7171 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7172 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
7173 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
7174 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
7175 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"
7178 cf_library_path_list="$cf_library_path_list $cf_search"
7186 test "/usr" != "$prefix" && \
7188 (test $prefix = NONE || test "/usr" != "$prefix") && {
7189 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
7190 test -d /usr/lib && cf_search="$cf_search /usr/lib"
7191 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
7192 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
7193 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
7194 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
7197 test "$prefix" != "NONE" && \
7198 test -d "$prefix" && \
7200 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7201 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7202 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
7203 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
7204 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
7205 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
7208 test "/usr/local" != "$prefix" && \
7209 test -d "/usr/local" && \
7210 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
7211 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
7212 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
7213 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
7214 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
7215 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
7216 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
7219 test "/opt" != "$prefix" && \
7221 (test $prefix = NONE || test "/opt" != "$prefix") && {
7222 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
7223 test -d /opt/lib && cf_search="$cf_search /opt/lib"
7224 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
7225 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
7226 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
7227 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
7230 test "$HOME" != "$prefix" && \
7231 test -d "$HOME" && \
7232 (test $prefix = NONE || test "$HOME" != "$prefix") && {
7233 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
7234 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
7235 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
7236 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
7237 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
7238 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
7241 cf_search="$cf_library_path_list $cf_search"
7243 for cf_libdir in $cf_search
7245 echo "$as_me:7245: checking for -l$cf_nculib_root in $cf_libdir" >&5
7246 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
7247 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
7248 cat >conftest.$ac_ext <<_ACEOF
7249 #line 7249 "configure"
7250 #include "confdefs.h"
7251 #include <${cf_cv_ncurses_header:-curses.h}>
7260 rm -f conftest.$ac_objext conftest$ac_exeext
7261 if { (eval echo "$as_me:7261: \"$ac_link\"") >&5
7262 (eval $ac_link) 2>&5
7264 echo "$as_me:7264: \$? = $ac_status" >&5
7265 (exit $ac_status); } &&
7266 { ac_try='test -s conftest$ac_exeext'
7267 { (eval echo "$as_me:7267: \"$ac_try\"") >&5
7270 echo "$as_me:7270: \$? = $ac_status" >&5
7271 (exit $ac_status); }; }; then
7272 echo "$as_me:7272: result: yes" >&5
7273 echo "${ECHO_T}yes" >&6
7274 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7277 echo "$as_me: failed program was:" >&5
7278 cat conftest.$ac_ext >&5
7279 echo "$as_me:7279: result: no" >&5
7280 echo "${ECHO_T}no" >&6
7281 LIBS="$cf_save_LIBS"
7283 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7291 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
7293 if test $cf_found_library = no ; then
7294 { { echo "$as_me:7294: error: Cannot link $cf_nculib_root library" >&5
7295 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
7296 { (exit 1); exit 1; }; }
7301 if test -n "$cf_ncurses_LIBS" ; then
7302 echo "$as_me:7302: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
7303 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
7304 cf_ncurses_SAVE="$LIBS"
7305 for p in $cf_ncurses_LIBS ; do
7306 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
7307 if test "$q" != "$LIBS" ; then
7311 cat >conftest.$ac_ext <<_ACEOF
7312 #line 7312 "configure"
7313 #include "confdefs.h"
7314 #include <${cf_cv_ncurses_header:-curses.h}>
7318 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7323 rm -f conftest.$ac_objext conftest$ac_exeext
7324 if { (eval echo "$as_me:7324: \"$ac_link\"") >&5
7325 (eval $ac_link) 2>&5
7327 echo "$as_me:7327: \$? = $ac_status" >&5
7328 (exit $ac_status); } &&
7329 { ac_try='test -s conftest$ac_exeext'
7330 { (eval echo "$as_me:7330: \"$ac_try\"") >&5
7333 echo "$as_me:7333: \$? = $ac_status" >&5
7334 (exit $ac_status); }; }; then
7335 echo "$as_me:7335: result: yes" >&5
7336 echo "${ECHO_T}yes" >&6
7338 echo "$as_me: failed program was:" >&5
7339 cat conftest.$ac_ext >&5
7340 echo "$as_me:7340: result: no" >&5
7341 echo "${ECHO_T}no" >&6
7342 LIBS="$cf_ncurses_SAVE"
7344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7347 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7349 cat >>confdefs.h <<EOF
7350 #define $cf_nculib_ROOT 1
7359 echo "$as_me:7359: checking for multibyte character support" >&5
7360 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
7361 if test "${cf_cv_utf8_lib+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 cf_save_LIBS="$LIBS"
7366 cat >conftest.$ac_ext <<_ACEOF
7367 #line 7367 "configure"
7368 #include "confdefs.h"
7379 rm -f conftest.$ac_objext conftest$ac_exeext
7380 if { (eval echo "$as_me:7380: \"$ac_link\"") >&5
7381 (eval $ac_link) 2>&5
7383 echo "$as_me:7383: \$? = $ac_status" >&5
7384 (exit $ac_status); } &&
7385 { ac_try='test -s conftest$ac_exeext'
7386 { (eval echo "$as_me:7386: \"$ac_try\"") >&5
7389 echo "$as_me:7389: \$? = $ac_status" >&5
7390 (exit $ac_status); }; }; then
7393 echo "$as_me: failed program was:" >&5
7394 cat conftest.$ac_ext >&5
7396 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
7397 # will be set on completion of the AC_TRY_LINK below.
7398 cf_cv_header_path_utf8=
7399 cf_cv_library_path_utf8=
7401 echo "${as_me:-configure}:7401: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
7403 cf_save_LIBS="$LIBS"
7405 cat >conftest.$ac_ext <<_ACEOF
7406 #line 7406 "configure"
7407 #include "confdefs.h"
7409 #include <libutf8.h>
7418 rm -f conftest.$ac_objext conftest$ac_exeext
7419 if { (eval echo "$as_me:7419: \"$ac_link\"") >&5
7420 (eval $ac_link) 2>&5
7422 echo "$as_me:7422: \$? = $ac_status" >&5
7423 (exit $ac_status); } &&
7424 { ac_try='test -s conftest$ac_exeext'
7425 { (eval echo "$as_me:7425: \"$ac_try\"") >&5
7428 echo "$as_me:7428: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7431 cf_cv_find_linkage_utf8=yes
7432 cf_cv_header_path_utf8=/usr/include
7433 cf_cv_library_path_utf8=/usr/lib
7436 echo "$as_me: failed program was:" >&5
7437 cat conftest.$ac_ext >&5
7439 LIBS="-lutf8 $cf_save_LIBS"
7441 cat >conftest.$ac_ext <<_ACEOF
7442 #line 7442 "configure"
7443 #include "confdefs.h"
7445 #include <libutf8.h>
7454 rm -f conftest.$ac_objext conftest$ac_exeext
7455 if { (eval echo "$as_me:7455: \"$ac_link\"") >&5
7456 (eval $ac_link) 2>&5
7458 echo "$as_me:7458: \$? = $ac_status" >&5
7459 (exit $ac_status); } &&
7460 { ac_try='test -s conftest$ac_exeext'
7461 { (eval echo "$as_me:7461: \"$ac_try\"") >&5
7464 echo "$as_me:7464: \$? = $ac_status" >&5
7465 (exit $ac_status); }; }; then
7467 cf_cv_find_linkage_utf8=yes
7468 cf_cv_header_path_utf8=/usr/include
7469 cf_cv_library_path_utf8=/usr/lib
7470 cf_cv_library_file_utf8="-lutf8"
7473 echo "$as_me: failed program was:" >&5
7474 cat conftest.$ac_ext >&5
7476 cf_cv_find_linkage_utf8=no
7477 LIBS="$cf_save_LIBS"
7479 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
7481 echo "${as_me:-configure}:7481: testing find linkage for utf8 library ..." 1>&5
7483 echo "${as_me:-configure}:7483: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
7485 cf_save_CPPFLAGS="$CPPFLAGS"
7486 cf_test_CPPFLAGS="$CPPFLAGS"
7490 # collect the current set of include-directories from compiler flags
7491 cf_header_path_list=""
7492 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7493 for cf_header_path in $CPPFLAGS $CFLAGS
7495 case $cf_header_path in #(vi
7497 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7499 test "$cf_header_path" != "NONE" && \
7500 test -d "$cf_header_path" && \
7502 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7503 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7504 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
7505 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
7506 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
7507 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
7510 cf_header_path_list="$cf_header_path_list $cf_search"
7516 # add the variations for the package we are looking for
7520 test "/usr" != "$prefix" && \
7522 (test $prefix = NONE || test "/usr" != "$prefix") && {
7523 test -n "$verbose" && echo " ... testing for include-directories under /usr"
7524 test -d /usr/include && cf_search="$cf_search /usr/include"
7525 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
7526 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
7527 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
7528 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
7531 test "$prefix" != "NONE" && \
7532 test -d "$prefix" && \
7534 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7535 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7536 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
7537 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
7538 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
7539 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
7542 test "/usr/local" != "$prefix" && \
7543 test -d "/usr/local" && \
7544 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
7545 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
7546 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
7547 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
7548 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
7549 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
7550 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
7553 test "/opt" != "$prefix" && \
7555 (test $prefix = NONE || test "/opt" != "$prefix") && {
7556 test -n "$verbose" && echo " ... testing for include-directories under /opt"
7557 test -d /opt/include && cf_search="$cf_search /opt/include"
7558 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
7559 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
7560 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
7561 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
7564 test "$HOME" != "$prefix" && \
7565 test -d "$HOME" && \
7566 (test $prefix = NONE || test "$HOME" != "$prefix") && {
7567 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
7568 test -d $HOME/include && cf_search="$cf_search $HOME/include"
7569 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
7570 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
7571 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
7572 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
7575 test "$includedir" != NONE && \
7576 test "$includedir" != "/usr/include" && \
7577 test -d "$includedir" && {
7578 test -d $includedir && cf_search="$cf_search $includedir"
7579 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
7582 test "$oldincludedir" != NONE && \
7583 test "$oldincludedir" != "/usr/include" && \
7584 test -d "$oldincludedir" && {
7585 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7586 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
7589 cf_search="$cf_search $cf_header_path_list"
7591 for cf_cv_header_path_utf8 in $cf_search
7593 if test -d $cf_cv_header_path_utf8 ; then
7594 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
7596 echo "${as_me:-configure}:7596: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
7598 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
7599 cat >conftest.$ac_ext <<_ACEOF
7600 #line 7600 "configure"
7601 #include "confdefs.h"
7603 #include <libutf8.h>
7612 rm -f conftest.$ac_objext
7613 if { (eval echo "$as_me:7613: \"$ac_compile\"") >&5
7614 (eval $ac_compile) 2>&5
7616 echo "$as_me:7616: \$? = $ac_status" >&5
7617 (exit $ac_status); } &&
7618 { ac_try='test -s conftest.$ac_objext'
7619 { (eval echo "$as_me:7619: \"$ac_try\"") >&5
7622 echo "$as_me:7622: \$? = $ac_status" >&5
7623 (exit $ac_status); }; }; then
7625 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
7627 echo "${as_me:-configure}:7627: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
7629 cf_cv_find_linkage_utf8=maybe
7630 cf_test_CPPFLAGS="$CPPFLAGS"
7633 echo "$as_me: failed program was:" >&5
7634 cat conftest.$ac_ext >&5
7636 CPPFLAGS="$cf_save_CPPFLAGS"
7639 rm -f conftest.$ac_objext conftest.$ac_ext
7643 if test "$cf_cv_find_linkage_utf8" = maybe ; then
7645 echo "${as_me:-configure}:7645: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
7647 cf_save_LIBS="$LIBS"
7648 cf_save_LDFLAGS="$LDFLAGS"
7650 if test "$cf_cv_find_linkage_utf8" != yes ; then
7653 cf_library_path_list=""
7654 if test -n "${LDFLAGS}${LIBS}" ; then
7655 for cf_library_path in $LDFLAGS $LIBS
7657 case $cf_library_path in #(vi
7659 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7661 test "$cf_library_path" != "NONE" && \
7662 test -d "$cf_library_path" && \
7664 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7665 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7666 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
7667 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
7668 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
7669 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
7672 cf_library_path_list="$cf_library_path_list $cf_search"
7680 test "/usr" != "$prefix" && \
7682 (test $prefix = NONE || test "/usr" != "$prefix") && {
7683 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
7684 test -d /usr/lib && cf_search="$cf_search /usr/lib"
7685 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
7686 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
7687 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
7688 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
7691 test "$prefix" != "NONE" && \
7692 test -d "$prefix" && \
7694 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7695 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7696 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
7697 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
7698 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
7699 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
7702 test "/usr/local" != "$prefix" && \
7703 test -d "/usr/local" && \
7704 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
7705 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
7706 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
7707 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
7708 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
7709 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
7710 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
7713 test "/opt" != "$prefix" && \
7715 (test $prefix = NONE || test "/opt" != "$prefix") && {
7716 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
7717 test -d /opt/lib && cf_search="$cf_search /opt/lib"
7718 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
7719 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
7720 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
7721 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
7724 test "$HOME" != "$prefix" && \
7725 test -d "$HOME" && \
7726 (test $prefix = NONE || test "$HOME" != "$prefix") && {
7727 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
7728 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
7729 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
7730 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
7731 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
7732 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
7735 cf_search="$cf_library_path_list $cf_search"
7737 for cf_cv_library_path_utf8 in $cf_search
7739 if test -d $cf_cv_library_path_utf8 ; then
7740 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
7742 echo "${as_me:-configure}:7742: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
7744 CPPFLAGS="$cf_test_CPPFLAGS"
7745 LIBS="-lutf8 $cf_save_LIBS"
7746 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
7747 cat >conftest.$ac_ext <<_ACEOF
7748 #line 7748 "configure"
7749 #include "confdefs.h"
7751 #include <libutf8.h>
7760 rm -f conftest.$ac_objext conftest$ac_exeext
7761 if { (eval echo "$as_me:7761: \"$ac_link\"") >&5
7762 (eval $ac_link) 2>&5
7764 echo "$as_me:7764: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
7766 { ac_try='test -s conftest$ac_exeext'
7767 { (eval echo "$as_me:7767: \"$ac_try\"") >&5
7770 echo "$as_me:7770: \$? = $ac_status" >&5
7771 (exit $ac_status); }; }; then
7773 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
7775 echo "${as_me:-configure}:7775: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
7777 cf_cv_find_linkage_utf8=yes
7778 cf_cv_library_file_utf8="-lutf8"
7781 echo "$as_me: failed program was:" >&5
7782 cat conftest.$ac_ext >&5
7784 CPPFLAGS="$cf_save_CPPFLAGS"
7785 LIBS="$cf_save_LIBS"
7786 LDFLAGS="$cf_save_LDFLAGS"
7789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7792 CPPFLAGS="$cf_save_CPPFLAGS"
7793 LDFLAGS="$cf_save_LDFLAGS"
7797 cf_cv_find_linkage_utf8=no
7801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7806 LIBS="$cf_save_LIBS"
7808 if test "$cf_cv_find_linkage_utf8" = yes ; then
7809 cf_cv_utf8_lib=add-on
7815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7817 echo "$as_me:7817: result: $cf_cv_utf8_lib" >&5
7818 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
7820 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
7822 if test "$cf_cv_utf8_lib" = "add-on" ; then
7823 cat >>confdefs.h <<\EOF
7824 #define HAVE_LIBUTF8_H 1
7827 if test -n "$cf_cv_header_path_utf8" ; then
7828 for cf_add_incdir in $cf_cv_header_path_utf8
7830 while test $cf_add_incdir != /usr/include
7832 if test -d $cf_add_incdir
7835 if test -n "$CFLAGS$CPPFLAGS" ; then
7836 # a loop is needed to ensure we can add subdirs of existing dirs
7837 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7838 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7839 cf_have_incdir=yes; break
7844 if test "$cf_have_incdir" = no ; then
7845 if test "$cf_add_incdir" = /usr/local/include ; then
7846 if test "$GCC" = yes
7848 cf_save_CPPFLAGS=$CPPFLAGS
7849 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7850 cat >conftest.$ac_ext <<_ACEOF
7851 #line 7851 "configure"
7852 #include "confdefs.h"
7862 rm -f conftest.$ac_objext
7863 if { (eval echo "$as_me:7863: \"$ac_compile\"") >&5
7864 (eval $ac_compile) 2>&5
7866 echo "$as_me:7866: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try='test -s conftest.$ac_objext'
7869 { (eval echo "$as_me:7869: \"$ac_try\"") >&5
7872 echo "$as_me:7872: \$? = $ac_status" >&5
7873 (exit $ac_status); }; }; then
7876 echo "$as_me: failed program was:" >&5
7877 cat conftest.$ac_ext >&5
7880 rm -f conftest.$ac_objext conftest.$ac_ext
7881 CPPFLAGS=$cf_save_CPPFLAGS
7886 if test "$cf_have_incdir" = no ; then
7887 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7889 echo "${as_me:-configure}:7889: testing adding $cf_add_incdir to include-path ..." 1>&5
7891 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7893 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7894 test "$cf_top_incdir" = "$cf_add_incdir" && break
7895 cf_add_incdir="$cf_top_incdir"
7904 if test -n "$cf_cv_library_path_utf8" ; then
7905 for cf_add_libdir in $cf_cv_library_path_utf8
7907 if test $cf_add_libdir = /usr/lib ; then
7909 elif test -d $cf_add_libdir
7912 if test -n "$LDFLAGS$LIBS" ; then
7913 # a loop is needed to ensure we can add subdirs of existing dirs
7914 for cf_test_libdir in $LDFLAGS $LIBS ; do
7915 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7916 cf_have_libdir=yes; break
7920 if test "$cf_have_libdir" = no ; then
7921 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7923 echo "${as_me:-configure}:7923: testing adding $cf_add_libdir to library-path ..." 1>&5
7925 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7931 LIBS="$cf_cv_library_file_utf8 $LIBS"
7934 cf_ncuconfig_root=ncursesw
7936 echo "Looking for ${cf_ncuconfig_root}-config"
7937 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
7939 # Extract the first word of "$ac_prog", so it can be a program name with args.
7940 set dummy $ac_prog; ac_word=$2
7941 echo "$as_me:7941: checking for $ac_word" >&5
7942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7943 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 case $NCURSES_CONFIG in
7948 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
7951 ac_save_IFS=$IFS; IFS=$ac_path_separator
7953 for ac_dir in $ac_dummy; do
7955 test -z "$ac_dir" && ac_dir=.
7956 if $as_executable_p "$ac_dir/$ac_word"; then
7957 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
7958 echo "$as_me:7958: found $ac_dir/$ac_word" >&5
7966 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
7968 if test -n "$NCURSES_CONFIG"; then
7969 echo "$as_me:7969: result: $NCURSES_CONFIG" >&5
7970 echo "${ECHO_T}$NCURSES_CONFIG" >&6
7972 echo "$as_me:7972: result: no" >&5
7973 echo "${ECHO_T}no" >&6
7976 test -n "$NCURSES_CONFIG" && break
7978 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
7980 if test "$NCURSES_CONFIG" != none ; then
7982 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
7983 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
7985 # even with config script, some packages use no-override for curses.h
7987 echo "$as_me:7987: checking if we have identified curses headers" >&5
7988 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
7989 if test "${cf_cv_ncurses_header+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 cf_cv_ncurses_header=none
7995 ncursesw/ncurses.h \
8000 cat >conftest.$ac_ext <<_ACEOF
8001 #line 8001 "configure"
8002 #include "confdefs.h"
8003 #include <${cf_header}>
8007 initscr(); tgoto("?", 0,0)
8012 rm -f conftest.$ac_objext
8013 if { (eval echo "$as_me:8013: \"$ac_compile\"") >&5
8014 (eval $ac_compile) 2>&5
8016 echo "$as_me:8016: \$? = $ac_status" >&5
8017 (exit $ac_status); } &&
8018 { ac_try='test -s conftest.$ac_objext'
8019 { (eval echo "$as_me:8019: \"$ac_try\"") >&5
8022 echo "$as_me:8022: \$? = $ac_status" >&5
8023 (exit $ac_status); }; }; then
8024 cf_cv_ncurses_header=$cf_header; break
8026 echo "$as_me: failed program was:" >&5
8027 cat conftest.$ac_ext >&5
8029 rm -f conftest.$ac_objext conftest.$ac_ext
8033 echo "$as_me:8033: result: $cf_cv_ncurses_header" >&5
8034 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
8036 if test "$cf_cv_ncurses_header" = none ; then
8037 { { echo "$as_me:8037: error: No curses header-files found" >&5
8038 echo "$as_me: error: No curses header-files found" >&2;}
8039 { (exit 1); exit 1; }; }
8042 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
8044 for ac_header in $cf_cv_ncurses_header
8046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8047 echo "$as_me:8047: checking for $ac_header" >&5
8048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 cat >conftest.$ac_ext <<_ACEOF
8053 #line 8053 "configure"
8054 #include "confdefs.h"
8055 #include <$ac_header>
8057 if { (eval echo "$as_me:8057: \"$ac_cpp conftest.$ac_ext\"") >&5
8058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8060 egrep -v '^ *\+' conftest.er1 >conftest.err
8062 cat conftest.err >&5
8063 echo "$as_me:8063: \$? = $ac_status" >&5
8064 (exit $ac_status); } >/dev/null; then
8065 if test -s conftest.err; then
8066 ac_cpp_err=$ac_c_preproc_warn_flag
8073 if test -z "$ac_cpp_err"; then
8074 eval "$as_ac_Header=yes"
8076 echo "$as_me: failed program was:" >&5
8077 cat conftest.$ac_ext >&5
8078 eval "$as_ac_Header=no"
8080 rm -f conftest.err conftest.$ac_ext
8082 echo "$as_me:8082: result: `eval echo '${'$as_ac_Header'}'`" >&5
8083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8085 cat >>confdefs.h <<EOF
8086 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8092 cat >>confdefs.h <<\EOF
8096 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8098 cat >>confdefs.h <<EOF
8099 #define $cf_nculib_ROOT 1
8102 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
8106 cf_ncuhdr_root=ncursesw
8108 test -n "$cf_cv_curses_dir" && \
8109 test "$cf_cv_curses_dir" != "no" && { \
8111 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
8112 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
8114 while test $cf_add_incdir != /usr/include
8116 if test -d $cf_add_incdir
8119 if test -n "$CFLAGS$CPPFLAGS" ; then
8120 # a loop is needed to ensure we can add subdirs of existing dirs
8121 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8122 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8123 cf_have_incdir=yes; break
8128 if test "$cf_have_incdir" = no ; then
8129 if test "$cf_add_incdir" = /usr/local/include ; then
8130 if test "$GCC" = yes
8132 cf_save_CPPFLAGS=$CPPFLAGS
8133 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8134 cat >conftest.$ac_ext <<_ACEOF
8135 #line 8135 "configure"
8136 #include "confdefs.h"
8146 rm -f conftest.$ac_objext
8147 if { (eval echo "$as_me:8147: \"$ac_compile\"") >&5
8148 (eval $ac_compile) 2>&5
8150 echo "$as_me:8150: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -s conftest.$ac_objext'
8153 { (eval echo "$as_me:8153: \"$ac_try\"") >&5
8156 echo "$as_me:8156: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8160 echo "$as_me: failed program was:" >&5
8161 cat conftest.$ac_ext >&5
8164 rm -f conftest.$ac_objext conftest.$ac_ext
8165 CPPFLAGS=$cf_save_CPPFLAGS
8170 if test "$cf_have_incdir" = no ; then
8171 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8173 echo "${as_me:-configure}:8173: testing adding $cf_add_incdir to include-path ..." 1>&5
8175 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8177 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8178 test "$cf_top_incdir" = "$cf_add_incdir" && break
8179 cf_add_incdir="$cf_top_incdir"
8190 echo "$as_me:8190: checking for $cf_ncuhdr_root header in include-path" >&5
8191 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
8192 if test "${cf_cv_ncurses_h+set}" = set; then
8193 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
8197 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
8198 for cf_header in $cf_header_list
8201 cat >conftest.$ac_ext <<_ACEOF
8202 #line 8202 "configure"
8203 #include "confdefs.h"
8205 #define _XOPEN_SOURCE_EXTENDED
8206 #undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
8207 #define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
8209 #include <$cf_header>
8214 #ifdef NCURSES_VERSION
8220 printf("%s\n", NCURSES_VERSION);
8233 rm -f conftest.$ac_objext
8234 if { (eval echo "$as_me:8234: \"$ac_compile\"") >&5
8235 (eval $ac_compile) 2>&5
8237 echo "$as_me:8237: \$? = $ac_status" >&5
8238 (exit $ac_status); } &&
8239 { ac_try='test -s conftest.$ac_objext'
8240 { (eval echo "$as_me:8240: \"$ac_try\"") >&5
8243 echo "$as_me:8243: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8245 cf_cv_ncurses_h=$cf_header
8248 echo "$as_me: failed program was:" >&5
8249 cat conftest.$ac_ext >&5
8252 rm -f conftest.$ac_objext conftest.$ac_ext
8254 test "$cf_cv_ncurses_h" != no && break
8258 echo "$as_me:8258: result: $cf_cv_ncurses_h" >&5
8259 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
8261 if test "$cf_cv_ncurses_h" != no ; then
8262 cf_cv_ncurses_header=$cf_cv_ncurses_h
8265 echo "$as_me:8265: checking for $cf_ncuhdr_root include-path" >&5
8266 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
8267 if test "${cf_cv_ncurses_h2+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 test -n "$verbose" && echo
8275 # collect the current set of include-directories from compiler flags
8276 cf_header_path_list=""
8277 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8278 for cf_header_path in $CPPFLAGS $CFLAGS
8280 case $cf_header_path in #(vi
8282 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8284 test "$cf_header_path" != "NONE" && \
8285 test -d "$cf_header_path" && \
8287 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8288 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8289 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
8290 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
8291 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
8292 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"
8295 cf_header_path_list="$cf_header_path_list $cf_search"
8301 # add the variations for the package we are looking for
8305 test "/usr" != "$prefix" && \
8307 (test $prefix = NONE || test "/usr" != "$prefix") && {
8308 test -n "$verbose" && echo " ... testing for include-directories under /usr"
8309 test -d /usr/include && cf_search="$cf_search /usr/include"
8310 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
8311 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
8312 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
8313 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8316 test "$prefix" != "NONE" && \
8317 test -d "$prefix" && \
8319 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8320 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8321 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
8322 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
8323 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
8324 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8327 test "/usr/local" != "$prefix" && \
8328 test -d "/usr/local" && \
8329 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8330 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
8331 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
8332 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
8333 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
8334 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
8335 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8338 test "/opt" != "$prefix" && \
8340 (test $prefix = NONE || test "/opt" != "$prefix") && {
8341 test -n "$verbose" && echo " ... testing for include-directories under /opt"
8342 test -d /opt/include && cf_search="$cf_search /opt/include"
8343 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
8344 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
8345 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
8346 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8349 test "$HOME" != "$prefix" && \
8350 test -d "$HOME" && \
8351 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8352 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
8353 test -d $HOME/include && cf_search="$cf_search $HOME/include"
8354 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
8355 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
8356 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
8357 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8360 test "$includedir" != NONE && \
8361 test "$includedir" != "/usr/include" && \
8362 test -d "$includedir" && {
8363 test -d $includedir && cf_search="$cf_search $includedir"
8364 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
8367 test "$oldincludedir" != NONE && \
8368 test "$oldincludedir" != "/usr/include" && \
8369 test -d "$oldincludedir" && {
8370 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8371 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
8374 cf_search="$cf_search $cf_header_path_list"
8376 test -n "$verbose" && echo search path $cf_search
8377 cf_save2_CPPFLAGS="$CPPFLAGS"
8378 for cf_incdir in $cf_search
8381 if test -n "$cf_incdir" ; then
8382 for cf_add_incdir in $cf_incdir
8384 while test $cf_add_incdir != /usr/include
8386 if test -d $cf_add_incdir
8389 if test -n "$CFLAGS$CPPFLAGS" ; then
8390 # a loop is needed to ensure we can add subdirs of existing dirs
8391 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8392 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8393 cf_have_incdir=yes; break
8398 if test "$cf_have_incdir" = no ; then
8399 if test "$cf_add_incdir" = /usr/local/include ; then
8400 if test "$GCC" = yes
8402 cf_save_CPPFLAGS=$CPPFLAGS
8403 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8404 cat >conftest.$ac_ext <<_ACEOF
8405 #line 8405 "configure"
8406 #include "confdefs.h"
8416 rm -f conftest.$ac_objext
8417 if { (eval echo "$as_me:8417: \"$ac_compile\"") >&5
8418 (eval $ac_compile) 2>&5
8420 echo "$as_me:8420: \$? = $ac_status" >&5
8421 (exit $ac_status); } &&
8422 { ac_try='test -s conftest.$ac_objext'
8423 { (eval echo "$as_me:8423: \"$ac_try\"") >&5
8426 echo "$as_me:8426: \$? = $ac_status" >&5
8427 (exit $ac_status); }; }; then
8430 echo "$as_me: failed program was:" >&5
8431 cat conftest.$ac_ext >&5
8434 rm -f conftest.$ac_objext conftest.$ac_ext
8435 CPPFLAGS=$cf_save_CPPFLAGS
8440 if test "$cf_have_incdir" = no ; then
8441 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8443 echo "${as_me:-configure}:8443: testing adding $cf_add_incdir to include-path ..." 1>&5
8445 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8447 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8448 test "$cf_top_incdir" = "$cf_add_incdir" && break
8449 cf_add_incdir="$cf_top_incdir"
8463 cat >conftest.$ac_ext <<_ACEOF
8464 #line 8464 "configure"
8465 #include "confdefs.h"
8467 #include <$cf_header>
8472 #ifdef NCURSES_VERSION
8474 printf("%s\n", NCURSES_VERSION);
8487 rm -f conftest.$ac_objext
8488 if { (eval echo "$as_me:8488: \"$ac_compile\"") >&5
8489 (eval $ac_compile) 2>&5
8491 echo "$as_me:8491: \$? = $ac_status" >&5
8492 (exit $ac_status); } &&
8493 { ac_try='test -s conftest.$ac_objext'
8494 { (eval echo "$as_me:8494: \"$ac_try\"") >&5
8497 echo "$as_me:8497: \$? = $ac_status" >&5
8498 (exit $ac_status); }; }; then
8499 cf_cv_ncurses_h2=$cf_header
8502 echo "$as_me: failed program was:" >&5
8503 cat conftest.$ac_ext >&5
8506 rm -f conftest.$ac_objext conftest.$ac_ext
8508 if test "$cf_cv_ncurses_h2" != no ; then
8509 cf_cv_ncurses_h2=$cf_incdir/$cf_header
8510 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
8513 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
8515 CPPFLAGS="$cf_save2_CPPFLAGS"
8516 test "$cf_cv_ncurses_h2" != no && break
8518 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:8518: error: not found" >&5
8519 echo "$as_me: error: not found" >&2;}
8520 { (exit 1); exit 1; }; }
8523 echo "$as_me:8523: result: $cf_cv_ncurses_h2" >&5
8524 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
8526 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
8527 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
8528 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
8529 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
8532 if test -n "$cf_1st_incdir" ; then
8533 for cf_add_incdir in $cf_1st_incdir
8535 while test $cf_add_incdir != /usr/include
8537 if test -d $cf_add_incdir
8540 if test -n "$CFLAGS$CPPFLAGS" ; then
8541 # a loop is needed to ensure we can add subdirs of existing dirs
8542 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8543 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8544 cf_have_incdir=yes; break
8549 if test "$cf_have_incdir" = no ; then
8550 if test "$cf_add_incdir" = /usr/local/include ; then
8551 if test "$GCC" = yes
8553 cf_save_CPPFLAGS=$CPPFLAGS
8554 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8555 cat >conftest.$ac_ext <<_ACEOF
8556 #line 8556 "configure"
8557 #include "confdefs.h"
8567 rm -f conftest.$ac_objext
8568 if { (eval echo "$as_me:8568: \"$ac_compile\"") >&5
8569 (eval $ac_compile) 2>&5
8571 echo "$as_me:8571: \$? = $ac_status" >&5
8572 (exit $ac_status); } &&
8573 { ac_try='test -s conftest.$ac_objext'
8574 { (eval echo "$as_me:8574: \"$ac_try\"") >&5
8577 echo "$as_me:8577: \$? = $ac_status" >&5
8578 (exit $ac_status); }; }; then
8581 echo "$as_me: failed program was:" >&5
8582 cat conftest.$ac_ext >&5
8585 rm -f conftest.$ac_objext conftest.$ac_ext
8586 CPPFLAGS=$cf_save_CPPFLAGS
8591 if test "$cf_have_incdir" = no ; then
8592 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8594 echo "${as_me:-configure}:8594: testing adding $cf_add_incdir to include-path ..." 1>&5
8596 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8598 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8599 test "$cf_top_incdir" = "$cf_add_incdir" && break
8600 cf_add_incdir="$cf_top_incdir"
8611 # Set definitions to allow ifdef'ing for ncurses.h
8613 case $cf_cv_ncurses_header in # (vi
8615 cat >>confdefs.h <<\EOF
8616 #define HAVE_NCURSES_H 1
8622 case $cf_cv_ncurses_header in # (vi
8623 ncurses/curses.h|ncurses/ncurses.h)
8624 cat >>confdefs.h <<\EOF
8625 #define HAVE_NCURSES_NCURSES_H 1
8629 ncursesw/curses.h|ncursesw/ncurses.h)
8630 cat >>confdefs.h <<\EOF
8631 #define HAVE_NCURSESW_NCURSES_H 1
8637 echo "$as_me:8637: checking for terminfo header" >&5
8638 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
8639 if test "${cf_cv_term_header+set}" = set; then
8640 echo $ECHO_N "(cached) $ECHO_C" >&6
8643 case ${cf_cv_ncurses_header} in #(vi
8644 */ncurses.h|*/ncursesw.h) #(vi
8645 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8648 cf_term_header=term.h
8652 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
8654 cat >conftest.$ac_ext <<_ACEOF
8655 #line 8655 "configure"
8656 #include "confdefs.h"
8658 #include <${cf_cv_ncurses_header:-curses.h}>
8664 int x = auto_left_margin
8669 rm -f conftest.$ac_objext
8670 if { (eval echo "$as_me:8670: \"$ac_compile\"") >&5
8671 (eval $ac_compile) 2>&5
8673 echo "$as_me:8673: \$? = $ac_status" >&5
8674 (exit $ac_status); } &&
8675 { ac_try='test -s conftest.$ac_objext'
8676 { (eval echo "$as_me:8676: \"$ac_try\"") >&5
8679 echo "$as_me:8679: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8682 cf_cv_term_header="$cf_test"
8684 echo "$as_me: failed program was:" >&5
8685 cat conftest.$ac_ext >&5
8687 cf_cv_term_header=unknown
8690 rm -f conftest.$ac_objext conftest.$ac_ext
8691 test "$cf_cv_term_header" != unknown && break
8695 echo "$as_me:8695: result: $cf_cv_term_header" >&5
8696 echo "${ECHO_T}$cf_cv_term_header" >&6
8698 # Set definitions to allow ifdef'ing to accommodate subdirectories
8700 case $cf_cv_term_header in # (vi
8702 cat >>confdefs.h <<\EOF
8703 #define HAVE_TERM_H 1
8709 case $cf_cv_term_header in # (vi
8710 ncurses/term.h) #(vi
8711 cat >>confdefs.h <<\EOF
8712 #define HAVE_NCURSES_TERM_H 1
8717 cat >>confdefs.h <<\EOF
8718 #define HAVE_NCURSESW_TERM_H 1
8724 # some applications need this, but should check for NCURSES_VERSION
8725 cat >>confdefs.h <<\EOF
8729 echo "$as_me:8729: checking for ncurses version" >&5
8730 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
8731 if test "${cf_cv_ncurses_version+set}" = set; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 cf_cv_ncurses_version=no
8738 if test "$cross_compiling" = yes; then
8740 # This will not work if the preprocessor splits the line after the
8741 # Autoconf token. The 'unproto' program does that.
8742 cat > conftest.$ac_ext <<EOF
8743 #include <${cf_cv_ncurses_header:-curses.h}>
8745 #ifdef NCURSES_VERSION
8746 Autoconf NCURSES_VERSION
8754 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
8755 { (eval echo "$as_me:8755: \"$cf_try\"") >&5
8758 echo "$as_me:8758: \$? = $ac_status" >&5
8759 (exit $ac_status); }
8760 if test -f conftest.out ; then
8761 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
8762 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
8767 cat >conftest.$ac_ext <<_ACEOF
8768 #line 8768 "configure"
8769 #include "confdefs.h"
8771 #include <${cf_cv_ncurses_header:-curses.h}>
8775 FILE *fp = fopen("$cf_tempfile", "w");
8776 #ifdef NCURSES_VERSION
8777 # ifdef NCURSES_VERSION_PATCH
8778 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
8780 fprintf(fp, "%s\n", NCURSES_VERSION);
8784 fprintf(fp, "old\n");
8789 ${cf_cv_main_return:-return}(0);
8792 rm -f conftest$ac_exeext
8793 if { (eval echo "$as_me:8793: \"$ac_link\"") >&5
8794 (eval $ac_link) 2>&5
8796 echo "$as_me:8796: \$? = $ac_status" >&5
8797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8798 { (eval echo "$as_me:8798: \"$ac_try\"") >&5
8801 echo "$as_me:8801: \$? = $ac_status" >&5
8802 (exit $ac_status); }; }; then
8804 cf_cv_ncurses_version=`cat $cf_tempfile`
8806 echo "$as_me: program exited with status $ac_status" >&5
8807 echo "$as_me: failed program was:" >&5
8808 cat conftest.$ac_ext >&5
8810 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8815 echo "$as_me:8815: result: $cf_cv_ncurses_version" >&5
8816 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
8817 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
8821 cf_nculib_root=ncursesw
8822 # This works, except for the special case where we find gpm, but
8823 # ncurses is in a nonstandard location via $LIBS, and we really want
8826 cf_ncurses_SAVE="$LIBS"
8827 echo "$as_me:8827: checking for Gpm_Open in -lgpm" >&5
8828 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
8829 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 ac_check_lib_save_LIBS=$LIBS
8834 cat >conftest.$ac_ext <<_ACEOF
8835 #line 8835 "configure"
8836 #include "confdefs.h"
8838 /* Override any gcc2 internal prototype to avoid an error. */
8842 /* We use char because int might match the return type of a gcc2
8843 builtin and then its argument prototype would still apply. */
8853 rm -f conftest.$ac_objext conftest$ac_exeext
8854 if { (eval echo "$as_me:8854: \"$ac_link\"") >&5
8855 (eval $ac_link) 2>&5
8857 echo "$as_me:8857: \$? = $ac_status" >&5
8858 (exit $ac_status); } &&
8859 { ac_try='test -s conftest$ac_exeext'
8860 { (eval echo "$as_me:8860: \"$ac_try\"") >&5
8863 echo "$as_me:8863: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8865 ac_cv_lib_gpm_Gpm_Open=yes
8867 echo "$as_me: failed program was:" >&5
8868 cat conftest.$ac_ext >&5
8869 ac_cv_lib_gpm_Gpm_Open=no
8871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8872 LIBS=$ac_check_lib_save_LIBS
8874 echo "$as_me:8874: result: $ac_cv_lib_gpm_Gpm_Open" >&5
8875 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
8876 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
8877 echo "$as_me:8877: checking for initscr in -lgpm" >&5
8878 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
8879 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 ac_check_lib_save_LIBS=$LIBS
8884 cat >conftest.$ac_ext <<_ACEOF
8885 #line 8885 "configure"
8886 #include "confdefs.h"
8888 /* Override any gcc2 internal prototype to avoid an error. */
8892 /* We use char because int might match the return type of a gcc2
8893 builtin and then its argument prototype would still apply. */
8903 rm -f conftest.$ac_objext conftest$ac_exeext
8904 if { (eval echo "$as_me:8904: \"$ac_link\"") >&5
8905 (eval $ac_link) 2>&5
8907 echo "$as_me:8907: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -s conftest$ac_exeext'
8910 { (eval echo "$as_me:8910: \"$ac_try\"") >&5
8913 echo "$as_me:8913: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 ac_cv_lib_gpm_initscr=yes
8917 echo "$as_me: failed program was:" >&5
8918 cat conftest.$ac_ext >&5
8919 ac_cv_lib_gpm_initscr=no
8921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8922 LIBS=$ac_check_lib_save_LIBS
8924 echo "$as_me:8924: result: $ac_cv_lib_gpm_initscr" >&5
8925 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
8926 if test $ac_cv_lib_gpm_initscr = yes; then
8927 LIBS="$cf_ncurses_SAVE"
8929 cf_ncurses_LIBS="-lgpm"
8934 case $host_os in #(vi
8936 # This is only necessary if you are linking against an obsolete
8937 # version of ncurses (but it should do no harm, since it's static).
8938 if test "$cf_nculib_root" = ncurses ; then
8939 echo "$as_me:8939: checking for tgoto in -lmytinfo" >&5
8940 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
8941 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 ac_check_lib_save_LIBS=$LIBS
8945 LIBS="-lmytinfo $LIBS"
8946 cat >conftest.$ac_ext <<_ACEOF
8947 #line 8947 "configure"
8948 #include "confdefs.h"
8950 /* Override any gcc2 internal prototype to avoid an error. */
8954 /* We use char because int might match the return type of a gcc2
8955 builtin and then its argument prototype would still apply. */
8965 rm -f conftest.$ac_objext conftest$ac_exeext
8966 if { (eval echo "$as_me:8966: \"$ac_link\"") >&5
8967 (eval $ac_link) 2>&5
8969 echo "$as_me:8969: \$? = $ac_status" >&5
8970 (exit $ac_status); } &&
8971 { ac_try='test -s conftest$ac_exeext'
8972 { (eval echo "$as_me:8972: \"$ac_try\"") >&5
8975 echo "$as_me:8975: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 ac_cv_lib_mytinfo_tgoto=yes
8979 echo "$as_me: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8981 ac_cv_lib_mytinfo_tgoto=no
8983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8984 LIBS=$ac_check_lib_save_LIBS
8986 echo "$as_me:8986: result: $ac_cv_lib_mytinfo_tgoto" >&5
8987 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
8988 if test $ac_cv_lib_mytinfo_tgoto = yes; then
8989 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
8996 LIBS="$cf_ncurses_LIBS $LIBS"
8998 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
9000 LIBS="-l$cf_nculib_root $LIBS"
9003 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
9005 echo "$as_me:9005: checking for initscr" >&5
9006 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
9007 if test "${ac_cv_func_initscr+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9010 cat >conftest.$ac_ext <<_ACEOF
9011 #line 9011 "configure"
9012 #include "confdefs.h"
9013 /* System header to define __stub macros and hopefully few prototypes,
9014 which can conflict with char initscr (); below. */
9016 /* Override any gcc2 internal prototype to avoid an error. */
9020 /* We use char because int might match the return type of a gcc2
9021 builtin and then its argument prototype would still apply. */
9028 /* The GNU C library defines this for functions which it implements
9029 to always fail with ENOSYS. Some functions are actually named
9030 something starting with __ and the normal name is an alias. */
9031 #if defined (__stub_initscr) || defined (__stub___initscr)
9041 rm -f conftest.$ac_objext conftest$ac_exeext
9042 if { (eval echo "$as_me:9042: \"$ac_link\"") >&5
9043 (eval $ac_link) 2>&5
9045 echo "$as_me:9045: \$? = $ac_status" >&5
9046 (exit $ac_status); } &&
9047 { ac_try='test -s conftest$ac_exeext'
9048 { (eval echo "$as_me:9048: \"$ac_try\"") >&5
9051 echo "$as_me:9051: \$? = $ac_status" >&5
9052 (exit $ac_status); }; }; then
9053 ac_cv_func_initscr=yes
9055 echo "$as_me: failed program was:" >&5
9056 cat conftest.$ac_ext >&5
9057 ac_cv_func_initscr=no
9059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9061 echo "$as_me:9061: result: $ac_cv_func_initscr" >&5
9062 echo "${ECHO_T}$ac_cv_func_initscr" >&6
9063 if test $ac_cv_func_initscr = yes; then
9064 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9067 cf_save_LIBS="$LIBS"
9068 echo "$as_me:9068: checking for initscr in -l$cf_nculib_root" >&5
9069 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
9070 LIBS="-l$cf_nculib_root $LIBS"
9071 cat >conftest.$ac_ext <<_ACEOF
9072 #line 9072 "configure"
9073 #include "confdefs.h"
9074 #include <${cf_cv_ncurses_header:-curses.h}>
9083 rm -f conftest.$ac_objext conftest$ac_exeext
9084 if { (eval echo "$as_me:9084: \"$ac_link\"") >&5
9085 (eval $ac_link) 2>&5
9087 echo "$as_me:9087: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -s conftest$ac_exeext'
9090 { (eval echo "$as_me:9090: \"$ac_try\"") >&5
9093 echo "$as_me:9093: \$? = $ac_status" >&5
9094 (exit $ac_status); }; }; then
9095 echo "$as_me:9095: result: yes" >&5
9096 echo "${ECHO_T}yes" >&6
9097 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9100 echo "$as_me: failed program was:" >&5
9101 cat conftest.$ac_ext >&5
9102 echo "$as_me:9102: result: no" >&5
9103 echo "${ECHO_T}no" >&6
9106 cf_library_path_list=""
9107 if test -n "${LDFLAGS}${LIBS}" ; then
9108 for cf_library_path in $LDFLAGS $LIBS
9110 case $cf_library_path in #(vi
9112 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9114 test "$cf_library_path" != "NONE" && \
9115 test -d "$cf_library_path" && \
9117 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9118 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9119 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
9120 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
9121 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
9122 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"
9125 cf_library_path_list="$cf_library_path_list $cf_search"
9133 test "/usr" != "$prefix" && \
9135 (test $prefix = NONE || test "/usr" != "$prefix") && {
9136 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
9137 test -d /usr/lib && cf_search="$cf_search /usr/lib"
9138 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
9139 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
9140 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
9141 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
9144 test "$prefix" != "NONE" && \
9145 test -d "$prefix" && \
9147 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9148 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9149 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
9150 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
9151 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
9152 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
9155 test "/usr/local" != "$prefix" && \
9156 test -d "/usr/local" && \
9157 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
9158 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
9159 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
9160 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
9161 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
9162 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
9163 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
9166 test "/opt" != "$prefix" && \
9168 (test $prefix = NONE || test "/opt" != "$prefix") && {
9169 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
9170 test -d /opt/lib && cf_search="$cf_search /opt/lib"
9171 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
9172 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
9173 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
9174 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
9177 test "$HOME" != "$prefix" && \
9178 test -d "$HOME" && \
9179 (test $prefix = NONE || test "$HOME" != "$prefix") && {
9180 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
9181 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
9182 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
9183 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
9184 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
9185 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
9188 cf_search="$cf_library_path_list $cf_search"
9190 for cf_libdir in $cf_search
9192 echo "$as_me:9192: checking for -l$cf_nculib_root in $cf_libdir" >&5
9193 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
9194 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
9195 cat >conftest.$ac_ext <<_ACEOF
9196 #line 9196 "configure"
9197 #include "confdefs.h"
9198 #include <${cf_cv_ncurses_header:-curses.h}>
9207 rm -f conftest.$ac_objext conftest$ac_exeext
9208 if { (eval echo "$as_me:9208: \"$ac_link\"") >&5
9209 (eval $ac_link) 2>&5
9211 echo "$as_me:9211: \$? = $ac_status" >&5
9212 (exit $ac_status); } &&
9213 { ac_try='test -s conftest$ac_exeext'
9214 { (eval echo "$as_me:9214: \"$ac_try\"") >&5
9217 echo "$as_me:9217: \$? = $ac_status" >&5
9218 (exit $ac_status); }; }; then
9219 echo "$as_me:9219: result: yes" >&5
9220 echo "${ECHO_T}yes" >&6
9221 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9224 echo "$as_me: failed program was:" >&5
9225 cat conftest.$ac_ext >&5
9226 echo "$as_me:9226: result: no" >&5
9227 echo "${ECHO_T}no" >&6
9228 LIBS="$cf_save_LIBS"
9230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9238 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
9240 if test $cf_found_library = no ; then
9241 { { echo "$as_me:9241: error: Cannot link $cf_nculib_root library" >&5
9242 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
9243 { (exit 1); exit 1; }; }
9248 if test -n "$cf_ncurses_LIBS" ; then
9249 echo "$as_me:9249: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
9250 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
9251 cf_ncurses_SAVE="$LIBS"
9252 for p in $cf_ncurses_LIBS ; do
9253 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
9254 if test "$q" != "$LIBS" ; then
9258 cat >conftest.$ac_ext <<_ACEOF
9259 #line 9259 "configure"
9260 #include "confdefs.h"
9261 #include <${cf_cv_ncurses_header:-curses.h}>
9265 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
9270 rm -f conftest.$ac_objext conftest$ac_exeext
9271 if { (eval echo "$as_me:9271: \"$ac_link\"") >&5
9272 (eval $ac_link) 2>&5
9274 echo "$as_me:9274: \$? = $ac_status" >&5
9275 (exit $ac_status); } &&
9276 { ac_try='test -s conftest$ac_exeext'
9277 { (eval echo "$as_me:9277: \"$ac_try\"") >&5
9280 echo "$as_me:9280: \$? = $ac_status" >&5
9281 (exit $ac_status); }; }; then
9282 echo "$as_me:9282: result: yes" >&5
9283 echo "${ECHO_T}yes" >&6
9285 echo "$as_me: failed program was:" >&5
9286 cat conftest.$ac_ext >&5
9287 echo "$as_me:9287: result: no" >&5
9288 echo "${ECHO_T}no" >&6
9289 LIBS="$cf_ncurses_SAVE"
9291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9294 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9296 cat >>confdefs.h <<EOF
9297 #define $cf_nculib_ROOT 1
9305 echo "$as_me:9305: checking if you want to use pkg-config" >&5
9306 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
9308 # Check whether --with-pkg-config or --without-pkg-config was given.
9309 if test "${with_pkg_config+set}" = set; then
9310 withval="$with_pkg_config"
9311 cf_pkg_config=$withval
9315 echo "$as_me:9315: result: $cf_pkg_config" >&5
9316 echo "${ECHO_T}$cf_pkg_config" >&6
9318 case $cf_pkg_config in #(vi
9324 if test -n "$ac_tool_prefix"; then
9325 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9326 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9327 echo "$as_me:9327: checking for $ac_word" >&5
9328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9329 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
9334 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9337 ac_save_IFS=$IFS; IFS=$ac_path_separator
9339 for ac_dir in $ac_dummy; do
9341 test -z "$ac_dir" && ac_dir=.
9342 if $as_executable_p "$ac_dir/$ac_word"; then
9343 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
9344 echo "$as_me:9344: found $ac_dir/$ac_word" >&5
9352 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9354 if test -n "$PKG_CONFIG"; then
9355 echo "$as_me:9355: result: $PKG_CONFIG" >&5
9356 echo "${ECHO_T}$PKG_CONFIG" >&6
9358 echo "$as_me:9358: result: no" >&5
9359 echo "${ECHO_T}no" >&6
9363 if test -z "$ac_cv_path_PKG_CONFIG"; then
9364 ac_pt_PKG_CONFIG=$PKG_CONFIG
9365 # Extract the first word of "pkg-config", so it can be a program name with args.
9366 set dummy pkg-config; ac_word=$2
9367 echo "$as_me:9367: checking for $ac_word" >&5
9368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9369 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9372 case $ac_pt_PKG_CONFIG in
9374 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9377 ac_save_IFS=$IFS; IFS=$ac_path_separator
9379 for ac_dir in $ac_dummy; do
9381 test -z "$ac_dir" && ac_dir=.
9382 if $as_executable_p "$ac_dir/$ac_word"; then
9383 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
9384 echo "$as_me:9384: found $ac_dir/$ac_word" >&5
9389 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
9393 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9395 if test -n "$ac_pt_PKG_CONFIG"; then
9396 echo "$as_me:9396: result: $ac_pt_PKG_CONFIG" >&5
9397 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
9399 echo "$as_me:9399: result: no" >&5
9400 echo "${ECHO_T}no" >&6
9403 PKG_CONFIG=$ac_pt_PKG_CONFIG
9405 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9414 test -z "$PKG_CONFIG" && PKG_CONFIG=none
9415 if test "$PKG_CONFIG" != none ; then
9417 if test "x$prefix" != xNONE; then
9418 cf_path_syntax="$prefix"
9420 cf_path_syntax="$ac_default_prefix"
9423 case ".$PKG_CONFIG" in #(vi
9424 .\$\(*\)*|.\'*\'*) #(vi
9428 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
9431 eval PKG_CONFIG="$PKG_CONFIG"
9432 case ".$PKG_CONFIG" in #(vi
9434 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
9439 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
9442 { { echo "$as_me:9442: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
9443 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
9444 { (exit 1); exit 1; }; }
9450 echo "$as_me:9450: checking for X" >&5
9451 echo $ECHO_N "checking for X... $ECHO_C" >&6
9453 # Check whether --with-x or --without-x was given.
9454 if test "${with_x+set}" = set; then
9458 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9459 if test "x$with_x" = xno; then
9460 # The user explicitly disabled X.
9463 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9464 # Both variables are already set.
9467 if test "${ac_cv_have_x+set}" = set; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9470 # One or both of the vars are not set, and there is no cached value.
9471 ac_x_includes=no ac_x_libraries=no
9473 if mkdir conftest.dir; then
9475 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9476 cat >Imakefile <<'EOF'
9478 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9480 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9481 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9482 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9483 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9484 for ac_extension in a so sl dylib dll; do
9485 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9486 test -f $ac_im_libdir/libX11.$ac_extension; then
9487 ac_im_usrlibdir=$ac_im_libdir; break
9490 # Screen out bogus values from the imake configuration. They are
9491 # bogus both because they are the default anyway, and because
9492 # using them would break gcc on systems where it needs fixed includes.
9493 case $ac_im_incroot in
9495 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9497 case $ac_im_usrlibdir in
9499 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9506 # Standard set of common directories for X headers.
9507 # Check X11 before X11Rn because it is often a symlink to the current release.
9519 /usr/local/X11/include
9520 /usr/local/X11R6/include
9521 /usr/local/X11R5/include
9522 /usr/local/X11R4/include
9524 /usr/local/include/X11
9525 /usr/local/include/X11R6
9526 /usr/local/include/X11R5
9527 /usr/local/include/X11R4
9531 /usr/XFree86/include/X11
9535 /usr/unsupported/include
9537 /usr/local/x11r5/include
9538 /usr/lpp/Xamples/include
9540 /usr/openwin/include
9541 /usr/openwin/share/include'
9543 if test "$ac_x_includes" = no; then
9544 # Guess where to find include files, by looking for Intrinsic.h.
9545 # First, try using that file with no special directory specified.
9546 cat >conftest.$ac_ext <<_ACEOF
9547 #line 9547 "configure"
9548 #include "confdefs.h"
9549 #include <X11/Intrinsic.h>
9551 if { (eval echo "$as_me:9551: \"$ac_cpp conftest.$ac_ext\"") >&5
9552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9554 egrep -v '^ *\+' conftest.er1 >conftest.err
9556 cat conftest.err >&5
9557 echo "$as_me:9557: \$? = $ac_status" >&5
9558 (exit $ac_status); } >/dev/null; then
9559 if test -s conftest.err; then
9560 ac_cpp_err=$ac_c_preproc_warn_flag
9567 if test -z "$ac_cpp_err"; then
9568 # We can compile using X headers with no special include directory.
9571 echo "$as_me: failed program was:" >&5
9572 cat conftest.$ac_ext >&5
9573 for ac_dir in $ac_x_header_dirs; do
9574 if test -r "$ac_dir/X11/Intrinsic.h"; then
9575 ac_x_includes=$ac_dir
9580 rm -f conftest.err conftest.$ac_ext
9581 fi # $ac_x_includes = no
9583 if test "$ac_x_libraries" = no; then
9584 # Check for the libraries.
9585 # See if we find them without any special options.
9586 # Don't add to $LIBS permanently.
9589 cat >conftest.$ac_ext <<_ACEOF
9590 #line 9590 "configure"
9591 #include "confdefs.h"
9592 #include <X11/Intrinsic.h>
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (eval echo "$as_me:9602: \"$ac_link\"") >&5
9603 (eval $ac_link) 2>&5
9605 echo "$as_me:9605: \$? = $ac_status" >&5
9606 (exit $ac_status); } &&
9607 { ac_try='test -s conftest$ac_exeext'
9608 { (eval echo "$as_me:9608: \"$ac_try\"") >&5
9611 echo "$as_me:9611: \$? = $ac_status" >&5
9612 (exit $ac_status); }; }; then
9614 # We can link X programs with no special library path.
9617 echo "$as_me: failed program was:" >&5
9618 cat conftest.$ac_ext >&5
9620 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9622 # Don't even attempt the hair of trying to link an X program!
9623 for ac_extension in a so sl dylib dll; do
9624 if test -r $ac_dir/libXt.$ac_extension; then
9625 ac_x_libraries=$ac_dir
9631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9632 fi # $ac_x_libraries = no
9634 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9635 # Didn't find X anywhere. Cache the known absence of X.
9636 ac_cv_have_x="have_x=no"
9638 # Record where we found X for the cache.
9639 ac_cv_have_x="have_x=yes \
9640 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9645 eval "$ac_cv_have_x"
9648 if test "$have_x" != yes; then
9649 echo "$as_me:9649: result: $have_x" >&5
9650 echo "${ECHO_T}$have_x" >&6
9653 # If each of the values was on the command line, it overrides each guess.
9654 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9655 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9656 # Update the cache value to reflect the command line values.
9657 ac_cv_have_x="have_x=yes \
9658 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9659 echo "$as_me:9659: result: libraries $x_libraries, headers $x_includes" >&5
9660 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9663 if test "$no_x" = yes; then
9664 # Not all programs may use this symbol, but it does not hurt to define it.
9666 cat >>confdefs.h <<\EOF
9667 #define X_DISPLAY_MISSING 1
9670 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9672 if test -n "$x_includes"; then
9673 X_CFLAGS="$X_CFLAGS -I$x_includes"
9676 # It would also be nice to do this for all -L options, not just this one.
9677 if test -n "$x_libraries"; then
9678 X_LIBS="$X_LIBS -L$x_libraries"
9679 # For Solaris; some versions of Sun CC require a space after -R and
9680 # others require no space. Words are not sufficient . . . .
9681 case `(uname -sr) 2>/dev/null` in
9683 echo "$as_me:9683: checking whether -R must be followed by a space" >&5
9684 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9685 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9686 cat >conftest.$ac_ext <<_ACEOF
9687 #line 9687 "configure"
9688 #include "confdefs.h"
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (eval echo "$as_me:9699: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>&5
9702 echo "$as_me:9702: \$? = $ac_status" >&5
9703 (exit $ac_status); } &&
9704 { ac_try='test -s conftest$ac_exeext'
9705 { (eval echo "$as_me:9705: \"$ac_try\"") >&5
9708 echo "$as_me:9708: \$? = $ac_status" >&5
9709 (exit $ac_status); }; }; then
9712 echo "$as_me: failed program was:" >&5
9713 cat conftest.$ac_ext >&5
9716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9717 if test $ac_R_nospace = yes; then
9718 echo "$as_me:9718: result: no" >&5
9719 echo "${ECHO_T}no" >&6
9720 X_LIBS="$X_LIBS -R$x_libraries"
9722 LIBS="$ac_xsave_LIBS -R $x_libraries"
9723 cat >conftest.$ac_ext <<_ACEOF
9724 #line 9724 "configure"
9725 #include "confdefs.h"
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (eval echo "$as_me:9736: \"$ac_link\"") >&5
9737 (eval $ac_link) 2>&5
9739 echo "$as_me:9739: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -s conftest$ac_exeext'
9742 { (eval echo "$as_me:9742: \"$ac_try\"") >&5
9745 echo "$as_me:9745: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9749 echo "$as_me: failed program was:" >&5
9750 cat conftest.$ac_ext >&5
9753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9754 if test $ac_R_space = yes; then
9755 echo "$as_me:9755: result: yes" >&5
9756 echo "${ECHO_T}yes" >&6
9757 X_LIBS="$X_LIBS -R $x_libraries"
9759 echo "$as_me:9759: result: neither works" >&5
9760 echo "${ECHO_T}neither works" >&6
9767 # Check for system-dependent libraries X programs must link with.
9768 # Do this before checking for the system-independent R6 libraries
9769 # (-lICE), since we may need -lsocket or whatever for X linking.
9771 if test "$ISC" = yes; then
9772 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9774 # Martyn Johnson says this is needed for Ultrix, if the X
9775 # libraries were built with DECnet support. And Karl Berry says
9776 # the Alpha needs dnet_stub (dnet does not exist).
9777 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9778 cat >conftest.$ac_ext <<_ACEOF
9779 #line 9779 "configure"
9780 #include "confdefs.h"
9782 /* Override any gcc2 internal prototype to avoid an error. */
9786 /* We use char because int might match the return type of a gcc2
9787 builtin and then its argument prototype would still apply. */
9788 char XOpenDisplay ();
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (eval echo "$as_me:9798: \"$ac_link\"") >&5
9799 (eval $ac_link) 2>&5
9801 echo "$as_me:9801: \$? = $ac_status" >&5
9802 (exit $ac_status); } &&
9803 { ac_try='test -s conftest$ac_exeext'
9804 { (eval echo "$as_me:9804: \"$ac_try\"") >&5
9807 echo "$as_me:9807: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9811 echo "$as_me: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9813 echo "$as_me:9813: checking for dnet_ntoa in -ldnet" >&5
9814 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9815 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 ac_check_lib_save_LIBS=$LIBS
9820 cat >conftest.$ac_ext <<_ACEOF
9821 #line 9821 "configure"
9822 #include "confdefs.h"
9824 /* Override any gcc2 internal prototype to avoid an error. */
9828 /* We use char because int might match the return type of a gcc2
9829 builtin and then its argument prototype would still apply. */
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (eval echo "$as_me:9840: \"$ac_link\"") >&5
9841 (eval $ac_link) 2>&5
9843 echo "$as_me:9843: \$? = $ac_status" >&5
9844 (exit $ac_status); } &&
9845 { ac_try='test -s conftest$ac_exeext'
9846 { (eval echo "$as_me:9846: \"$ac_try\"") >&5
9849 echo "$as_me:9849: \$? = $ac_status" >&5
9850 (exit $ac_status); }; }; then
9851 ac_cv_lib_dnet_dnet_ntoa=yes
9853 echo "$as_me: failed program was:" >&5
9854 cat conftest.$ac_ext >&5
9855 ac_cv_lib_dnet_dnet_ntoa=no
9857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9858 LIBS=$ac_check_lib_save_LIBS
9860 echo "$as_me:9860: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9861 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9862 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9863 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9866 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9867 echo "$as_me:9867: checking for dnet_ntoa in -ldnet_stub" >&5
9868 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9869 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 ac_check_lib_save_LIBS=$LIBS
9873 LIBS="-ldnet_stub $LIBS"
9874 cat >conftest.$ac_ext <<_ACEOF
9875 #line 9875 "configure"
9876 #include "confdefs.h"
9878 /* Override any gcc2 internal prototype to avoid an error. */
9882 /* We use char because int might match the return type of a gcc2
9883 builtin and then its argument prototype would still apply. */
9893 rm -f conftest.$ac_objext conftest$ac_exeext
9894 if { (eval echo "$as_me:9894: \"$ac_link\"") >&5
9895 (eval $ac_link) 2>&5
9897 echo "$as_me:9897: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try='test -s conftest$ac_exeext'
9900 { (eval echo "$as_me:9900: \"$ac_try\"") >&5
9903 echo "$as_me:9903: \$? = $ac_status" >&5
9904 (exit $ac_status); }; }; then
9905 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9907 echo "$as_me: failed program was:" >&5
9908 cat conftest.$ac_ext >&5
9909 ac_cv_lib_dnet_stub_dnet_ntoa=no
9911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9912 LIBS=$ac_check_lib_save_LIBS
9914 echo "$as_me:9914: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9915 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9916 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9917 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9923 LIBS="$ac_xsave_LIBS"
9925 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9926 # to get the SysV transport functions.
9927 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9929 # The nsl library prevents programs from opening the X display
9930 # on Irix 5.2, according to T.E. Dickey.
9931 # The functions gethostbyname, getservbyname, and inet_addr are
9932 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9933 echo "$as_me:9933: checking for gethostbyname" >&5
9934 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9935 if test "${ac_cv_func_gethostbyname+set}" = set; then
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 cat >conftest.$ac_ext <<_ACEOF
9939 #line 9939 "configure"
9940 #include "confdefs.h"
9941 /* System header to define __stub macros and hopefully few prototypes,
9942 which can conflict with char gethostbyname (); below. */
9944 /* Override any gcc2 internal prototype to avoid an error. */
9948 /* We use char because int might match the return type of a gcc2
9949 builtin and then its argument prototype would still apply. */
9950 char gethostbyname ();
9956 /* The GNU C library defines this for functions which it implements
9957 to always fail with ENOSYS. Some functions are actually named
9958 something starting with __ and the normal name is an alias. */
9959 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9969 rm -f conftest.$ac_objext conftest$ac_exeext
9970 if { (eval echo "$as_me:9970: \"$ac_link\"") >&5
9971 (eval $ac_link) 2>&5
9973 echo "$as_me:9973: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -s conftest$ac_exeext'
9976 { (eval echo "$as_me:9976: \"$ac_try\"") >&5
9979 echo "$as_me:9979: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_cv_func_gethostbyname=yes
9983 echo "$as_me: failed program was:" >&5
9984 cat conftest.$ac_ext >&5
9985 ac_cv_func_gethostbyname=no
9987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9989 echo "$as_me:9989: result: $ac_cv_func_gethostbyname" >&5
9990 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9992 if test $ac_cv_func_gethostbyname = no; then
9993 echo "$as_me:9993: checking for gethostbyname in -lnsl" >&5
9994 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9995 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 ac_check_lib_save_LIBS=$LIBS
10000 cat >conftest.$ac_ext <<_ACEOF
10001 #line 10001 "configure"
10002 #include "confdefs.h"
10004 /* Override any gcc2 internal prototype to avoid an error. */
10008 /* We use char because int might match the return type of a gcc2
10009 builtin and then its argument prototype would still apply. */
10010 char gethostbyname ();
10019 rm -f conftest.$ac_objext conftest$ac_exeext
10020 if { (eval echo "$as_me:10020: \"$ac_link\"") >&5
10021 (eval $ac_link) 2>&5
10023 echo "$as_me:10023: \$? = $ac_status" >&5
10024 (exit $ac_status); } &&
10025 { ac_try='test -s conftest$ac_exeext'
10026 { (eval echo "$as_me:10026: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10029 echo "$as_me:10029: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
10031 ac_cv_lib_nsl_gethostbyname=yes
10033 echo "$as_me: failed program was:" >&5
10034 cat conftest.$ac_ext >&5
10035 ac_cv_lib_nsl_gethostbyname=no
10037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10038 LIBS=$ac_check_lib_save_LIBS
10040 echo "$as_me:10040: result: $ac_cv_lib_nsl_gethostbyname" >&5
10041 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10042 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10043 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10046 if test $ac_cv_lib_nsl_gethostbyname = no; then
10047 echo "$as_me:10047: checking for gethostbyname in -lbsd" >&5
10048 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10049 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 ac_check_lib_save_LIBS=$LIBS
10054 cat >conftest.$ac_ext <<_ACEOF
10055 #line 10055 "configure"
10056 #include "confdefs.h"
10058 /* Override any gcc2 internal prototype to avoid an error. */
10062 /* We use char because int might match the return type of a gcc2
10063 builtin and then its argument prototype would still apply. */
10064 char gethostbyname ();
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (eval echo "$as_me:10074: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>&5
10077 echo "$as_me:10077: \$? = $ac_status" >&5
10078 (exit $ac_status); } &&
10079 { ac_try='test -s conftest$ac_exeext'
10080 { (eval echo "$as_me:10080: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10083 echo "$as_me:10083: \$? = $ac_status" >&5
10084 (exit $ac_status); }; }; then
10085 ac_cv_lib_bsd_gethostbyname=yes
10087 echo "$as_me: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 ac_cv_lib_bsd_gethostbyname=no
10091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10092 LIBS=$ac_check_lib_save_LIBS
10094 echo "$as_me:10094: result: $ac_cv_lib_bsd_gethostbyname" >&5
10095 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10096 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10097 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10103 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10104 # socket/setsockopt and other routines are undefined under SCO ODT
10105 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10106 # on later versions), says Simon Leinen: it contains gethostby*
10107 # variants that don't use the nameserver (or something). -lsocket
10108 # must be given before -lnsl if both are needed. We assume that
10109 # if connect needs -lnsl, so does gethostbyname.
10110 echo "$as_me:10110: checking for connect" >&5
10111 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10112 if test "${ac_cv_func_connect+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
10115 cat >conftest.$ac_ext <<_ACEOF
10116 #line 10116 "configure"
10117 #include "confdefs.h"
10118 /* System header to define __stub macros and hopefully few prototypes,
10119 which can conflict with char connect (); below. */
10120 #include <assert.h>
10121 /* Override any gcc2 internal prototype to avoid an error. */
10125 /* We use char because int might match the return type of a gcc2
10126 builtin and then its argument prototype would still apply. */
10133 /* The GNU C library defines this for functions which it implements
10134 to always fail with ENOSYS. Some functions are actually named
10135 something starting with __ and the normal name is an alias. */
10136 #if defined (__stub_connect) || defined (__stub___connect)
10146 rm -f conftest.$ac_objext conftest$ac_exeext
10147 if { (eval echo "$as_me:10147: \"$ac_link\"") >&5
10148 (eval $ac_link) 2>&5
10150 echo "$as_me:10150: \$? = $ac_status" >&5
10151 (exit $ac_status); } &&
10152 { ac_try='test -s conftest$ac_exeext'
10153 { (eval echo "$as_me:10153: \"$ac_try\"") >&5
10154 (eval $ac_try) 2>&5
10156 echo "$as_me:10156: \$? = $ac_status" >&5
10157 (exit $ac_status); }; }; then
10158 ac_cv_func_connect=yes
10160 echo "$as_me: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10162 ac_cv_func_connect=no
10164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10166 echo "$as_me:10166: result: $ac_cv_func_connect" >&5
10167 echo "${ECHO_T}$ac_cv_func_connect" >&6
10169 if test $ac_cv_func_connect = no; then
10170 echo "$as_me:10170: checking for connect in -lsocket" >&5
10171 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10172 if test "${ac_cv_lib_socket_connect+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 ac_check_lib_save_LIBS=$LIBS
10176 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10177 cat >conftest.$ac_ext <<_ACEOF
10178 #line 10178 "configure"
10179 #include "confdefs.h"
10181 /* Override any gcc2 internal prototype to avoid an error. */
10185 /* We use char because int might match the return type of a gcc2
10186 builtin and then its argument prototype would still apply. */
10196 rm -f conftest.$ac_objext conftest$ac_exeext
10197 if { (eval echo "$as_me:10197: \"$ac_link\"") >&5
10198 (eval $ac_link) 2>&5
10200 echo "$as_me:10200: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (eval echo "$as_me:10203: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:10206: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 ac_cv_lib_socket_connect=yes
10210 echo "$as_me: failed program was:" >&5
10211 cat conftest.$ac_ext >&5
10212 ac_cv_lib_socket_connect=no
10214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10215 LIBS=$ac_check_lib_save_LIBS
10217 echo "$as_me:10217: result: $ac_cv_lib_socket_connect" >&5
10218 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10219 if test $ac_cv_lib_socket_connect = yes; then
10220 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10225 # Guillermo Gomez says -lposix is necessary on A/UX.
10226 echo "$as_me:10226: checking for remove" >&5
10227 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10228 if test "${ac_cv_func_remove+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 cat >conftest.$ac_ext <<_ACEOF
10232 #line 10232 "configure"
10233 #include "confdefs.h"
10234 /* System header to define __stub macros and hopefully few prototypes,
10235 which can conflict with char remove (); below. */
10236 #include <assert.h>
10237 /* Override any gcc2 internal prototype to avoid an error. */
10241 /* We use char because int might match the return type of a gcc2
10242 builtin and then its argument prototype would still apply. */
10249 /* The GNU C library defines this for functions which it implements
10250 to always fail with ENOSYS. Some functions are actually named
10251 something starting with __ and the normal name is an alias. */
10252 #if defined (__stub_remove) || defined (__stub___remove)
10262 rm -f conftest.$ac_objext conftest$ac_exeext
10263 if { (eval echo "$as_me:10263: \"$ac_link\"") >&5
10264 (eval $ac_link) 2>&5
10266 echo "$as_me:10266: \$? = $ac_status" >&5
10267 (exit $ac_status); } &&
10268 { ac_try='test -s conftest$ac_exeext'
10269 { (eval echo "$as_me:10269: \"$ac_try\"") >&5
10270 (eval $ac_try) 2>&5
10272 echo "$as_me:10272: \$? = $ac_status" >&5
10273 (exit $ac_status); }; }; then
10274 ac_cv_func_remove=yes
10276 echo "$as_me: failed program was:" >&5
10277 cat conftest.$ac_ext >&5
10278 ac_cv_func_remove=no
10280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10282 echo "$as_me:10282: result: $ac_cv_func_remove" >&5
10283 echo "${ECHO_T}$ac_cv_func_remove" >&6
10285 if test $ac_cv_func_remove = no; then
10286 echo "$as_me:10286: checking for remove in -lposix" >&5
10287 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10288 if test "${ac_cv_lib_posix_remove+set}" = set; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
10291 ac_check_lib_save_LIBS=$LIBS
10292 LIBS="-lposix $LIBS"
10293 cat >conftest.$ac_ext <<_ACEOF
10294 #line 10294 "configure"
10295 #include "confdefs.h"
10297 /* Override any gcc2 internal prototype to avoid an error. */
10301 /* We use char because int might match the return type of a gcc2
10302 builtin and then its argument prototype would still apply. */
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (eval echo "$as_me:10313: \"$ac_link\"") >&5
10314 (eval $ac_link) 2>&5
10316 echo "$as_me:10316: \$? = $ac_status" >&5
10317 (exit $ac_status); } &&
10318 { ac_try='test -s conftest$ac_exeext'
10319 { (eval echo "$as_me:10319: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10322 echo "$as_me:10322: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10324 ac_cv_lib_posix_remove=yes
10326 echo "$as_me: failed program was:" >&5
10327 cat conftest.$ac_ext >&5
10328 ac_cv_lib_posix_remove=no
10330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10331 LIBS=$ac_check_lib_save_LIBS
10333 echo "$as_me:10333: result: $ac_cv_lib_posix_remove" >&5
10334 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10335 if test $ac_cv_lib_posix_remove = yes; then
10336 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10341 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10342 echo "$as_me:10342: checking for shmat" >&5
10343 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10344 if test "${ac_cv_func_shmat+set}" = set; then
10345 echo $ECHO_N "(cached) $ECHO_C" >&6
10347 cat >conftest.$ac_ext <<_ACEOF
10348 #line 10348 "configure"
10349 #include "confdefs.h"
10350 /* System header to define __stub macros and hopefully few prototypes,
10351 which can conflict with char shmat (); below. */
10352 #include <assert.h>
10353 /* Override any gcc2 internal prototype to avoid an error. */
10357 /* We use char because int might match the return type of a gcc2
10358 builtin and then its argument prototype would still apply. */
10365 /* The GNU C library defines this for functions which it implements
10366 to always fail with ENOSYS. Some functions are actually named
10367 something starting with __ and the normal name is an alias. */
10368 #if defined (__stub_shmat) || defined (__stub___shmat)
10378 rm -f conftest.$ac_objext conftest$ac_exeext
10379 if { (eval echo "$as_me:10379: \"$ac_link\"") >&5
10380 (eval $ac_link) 2>&5
10382 echo "$as_me:10382: \$? = $ac_status" >&5
10383 (exit $ac_status); } &&
10384 { ac_try='test -s conftest$ac_exeext'
10385 { (eval echo "$as_me:10385: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10388 echo "$as_me:10388: \$? = $ac_status" >&5
10389 (exit $ac_status); }; }; then
10390 ac_cv_func_shmat=yes
10392 echo "$as_me: failed program was:" >&5
10393 cat conftest.$ac_ext >&5
10394 ac_cv_func_shmat=no
10396 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10398 echo "$as_me:10398: result: $ac_cv_func_shmat" >&5
10399 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10401 if test $ac_cv_func_shmat = no; then
10402 echo "$as_me:10402: checking for shmat in -lipc" >&5
10403 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10404 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10407 ac_check_lib_save_LIBS=$LIBS
10409 cat >conftest.$ac_ext <<_ACEOF
10410 #line 10410 "configure"
10411 #include "confdefs.h"
10413 /* Override any gcc2 internal prototype to avoid an error. */
10417 /* We use char because int might match the return type of a gcc2
10418 builtin and then its argument prototype would still apply. */
10428 rm -f conftest.$ac_objext conftest$ac_exeext
10429 if { (eval echo "$as_me:10429: \"$ac_link\"") >&5
10430 (eval $ac_link) 2>&5
10432 echo "$as_me:10432: \$? = $ac_status" >&5
10433 (exit $ac_status); } &&
10434 { ac_try='test -s conftest$ac_exeext'
10435 { (eval echo "$as_me:10435: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10438 echo "$as_me:10438: \$? = $ac_status" >&5
10439 (exit $ac_status); }; }; then
10440 ac_cv_lib_ipc_shmat=yes
10442 echo "$as_me: failed program was:" >&5
10443 cat conftest.$ac_ext >&5
10444 ac_cv_lib_ipc_shmat=no
10446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10447 LIBS=$ac_check_lib_save_LIBS
10449 echo "$as_me:10449: result: $ac_cv_lib_ipc_shmat" >&5
10450 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10451 if test $ac_cv_lib_ipc_shmat = yes; then
10452 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10458 # Check for libraries that X11R6 Xt/Xaw programs need.
10459 ac_save_LDFLAGS=$LDFLAGS
10460 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10461 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10462 # check for ICE first), but we must link in the order -lSM -lICE or
10463 # we get undefined symbols. So assume we have SM if we have ICE.
10464 # These have to be linked with before -lX11, unlike the other
10465 # libraries we check for below, so use a different variable.
10466 # John Interrante, Karl Berry
10467 echo "$as_me:10467: checking for IceConnectionNumber in -lICE" >&5
10468 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10469 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 ac_check_lib_save_LIBS=$LIBS
10473 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10474 cat >conftest.$ac_ext <<_ACEOF
10475 #line 10475 "configure"
10476 #include "confdefs.h"
10478 /* Override any gcc2 internal prototype to avoid an error. */
10482 /* We use char because int might match the return type of a gcc2
10483 builtin and then its argument prototype would still apply. */
10484 char IceConnectionNumber ();
10488 IceConnectionNumber ();
10493 rm -f conftest.$ac_objext conftest$ac_exeext
10494 if { (eval echo "$as_me:10494: \"$ac_link\"") >&5
10495 (eval $ac_link) 2>&5
10497 echo "$as_me:10497: \$? = $ac_status" >&5
10498 (exit $ac_status); } &&
10499 { ac_try='test -s conftest$ac_exeext'
10500 { (eval echo "$as_me:10500: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10503 echo "$as_me:10503: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
10505 ac_cv_lib_ICE_IceConnectionNumber=yes
10507 echo "$as_me: failed program was:" >&5
10508 cat conftest.$ac_ext >&5
10509 ac_cv_lib_ICE_IceConnectionNumber=no
10511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10512 LIBS=$ac_check_lib_save_LIBS
10514 echo "$as_me:10514: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10515 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10516 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10517 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10520 LDFLAGS=$ac_save_LDFLAGS
10524 cf_x_athena=${cf_x_athena:-Xaw}
10526 echo "$as_me:10526: checking if you want to link with Xaw 3d library" >&5
10527 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
10530 # Check whether --with-Xaw3d or --without-Xaw3d was given.
10531 if test "${with_Xaw3d+set}" = set; then
10532 withval="$with_Xaw3d"
10535 if test "$withval" = yes ; then
10537 echo "$as_me:10537: result: yes" >&5
10538 echo "${ECHO_T}yes" >&6
10540 echo "$as_me:10540: result: no" >&5
10541 echo "${ECHO_T}no" >&6
10544 echo "$as_me:10544: checking if you want to link with neXT Athena library" >&5
10545 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
10548 # Check whether --with-neXtaw or --without-neXtaw was given.
10549 if test "${with_neXtaw+set}" = set; then
10550 withval="$with_neXtaw"
10553 if test "$withval" = yes ; then
10555 echo "$as_me:10555: result: yes" >&5
10556 echo "${ECHO_T}yes" >&6
10558 echo "$as_me:10558: result: no" >&5
10559 echo "${ECHO_T}no" >&6
10562 echo "$as_me:10562: checking if you want to link with Athena-Plus library" >&5
10563 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
10566 # Check whether --with-XawPlus or --without-XawPlus was given.
10567 if test "${with_XawPlus+set}" = set; then
10568 withval="$with_XawPlus"
10571 if test "$withval" = yes ; then
10572 cf_x_athena=XawPlus
10573 echo "$as_me:10573: result: yes" >&5
10574 echo "${ECHO_T}yes" >&6
10576 echo "$as_me:10576: result: no" >&5
10577 echo "${ECHO_T}no" >&6
10582 if test "$PKG_CONFIG" != none ; then
10584 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
10585 for cf_athena_pkg in \
10588 ${cf_x_athena}-devel \
10589 lib${cf_x_athena} \
10590 lib${cf_x_athena}-devel
10593 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
10594 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
10596 echo "${as_me:-configure}:10596: testing found package $cf_athena_pkg ..." 1>&5
10598 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
10599 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
10600 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
10602 echo "${as_me:-configure}:10602: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10604 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
10606 echo "${as_me:-configure}:10606: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
10611 cf_new_extra_cppflags=
10613 for cf_add_cflags in $cf_pkgconfig_incs
10615 case $cf_fix_cppflags in
10617 case $cf_add_cflags in #(vi
10618 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10619 case $cf_add_cflags in
10621 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10623 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10624 && test -z "${cf_tst_cflags}" \
10625 && cf_fix_cppflags=yes
10627 if test $cf_fix_cppflags = yes ; then
10628 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10630 elif test "${cf_tst_cflags}" = "\"'" ; then
10631 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10636 case "$CPPFLAGS" in
10637 *$cf_add_cflags) #(vi
10640 case $cf_add_cflags in #(vi
10642 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10644 CPPFLAGS=`echo "$CPPFLAGS" | \
10645 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10646 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10650 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10655 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10660 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10662 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10664 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10665 && test -z "${cf_tst_cflags}" \
10666 && cf_fix_cppflags=no
10671 if test -n "$cf_new_cflags" ; then
10673 CFLAGS="$CFLAGS $cf_new_cflags"
10676 if test -n "$cf_new_cppflags" ; then
10678 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10681 if test -n "$cf_new_extra_cppflags" ; then
10683 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10686 LIBS="$cf_pkgconfig_libs $LIBS"
10688 cf_x_athena_lib="$cf_pkgconfig_libs"
10690 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10692 cat >>confdefs.h <<EOF
10693 #define $cf_x_athena_LIBS 1
10696 echo "$as_me:10696: checking for usable $cf_x_athena/Xmu package" >&5
10697 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
10698 if test "${cf_cv_xaw_compat+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10702 cat >conftest.$ac_ext <<_ACEOF
10703 #line 10703 "configure"
10704 #include "confdefs.h"
10706 #include <X11/Xmu/CharSet.h>
10712 int check = XmuCompareISOLatin1("big", "small")
10718 rm -f conftest.$ac_objext conftest$ac_exeext
10719 if { (eval echo "$as_me:10719: \"$ac_link\"") >&5
10720 (eval $ac_link) 2>&5
10722 echo "$as_me:10722: \$? = $ac_status" >&5
10723 (exit $ac_status); } &&
10724 { ac_try='test -s conftest$ac_exeext'
10725 { (eval echo "$as_me:10725: \"$ac_try\"") >&5
10726 (eval $ac_try) 2>&5
10728 echo "$as_me:10728: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
10730 cf_cv_xaw_compat=yes
10732 echo "$as_me: failed program was:" >&5
10733 cat conftest.$ac_ext >&5
10734 cf_cv_xaw_compat=no
10736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10738 echo "$as_me:10738: result: $cf_cv_xaw_compat" >&5
10739 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
10741 if test "$cf_cv_xaw_compat" = no
10743 # workaround for broken ".pc" files...
10744 case "$cf_x_athena_lib" in #(vi
10748 test -n "$verbose" && echo " work around broken package" 1>&6
10750 echo "${as_me:-configure}:10750: testing work around broken package ..." 1>&5
10752 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
10753 test -n "$verbose" && echo " found package xmu" 1>&6
10755 echo "${as_me:-configure}:10755: testing found package xmu ..." 1>&5
10757 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
10758 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
10759 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
10761 echo "${as_me:-configure}:10761: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10763 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
10765 echo "${as_me:-configure}:10765: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
10770 cf_new_extra_cppflags=
10772 for cf_add_cflags in $cf_pkgconfig_incs
10774 case $cf_fix_cppflags in
10776 case $cf_add_cflags in #(vi
10777 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10778 case $cf_add_cflags in
10780 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10782 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10783 && test -z "${cf_tst_cflags}" \
10784 && cf_fix_cppflags=yes
10786 if test $cf_fix_cppflags = yes ; then
10787 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10789 elif test "${cf_tst_cflags}" = "\"'" ; then
10790 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10795 case "$CPPFLAGS" in
10796 *$cf_add_cflags) #(vi
10799 case $cf_add_cflags in #(vi
10801 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10803 CPPFLAGS=`echo "$CPPFLAGS" | \
10804 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10805 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10809 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10814 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10819 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10821 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10823 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10824 && test -z "${cf_tst_cflags}" \
10825 && cf_fix_cppflags=no
10830 if test -n "$cf_new_cflags" ; then
10832 CFLAGS="$CFLAGS $cf_new_cflags"
10835 if test -n "$cf_new_cppflags" ; then
10837 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10840 if test -n "$cf_new_extra_cppflags" ; then
10842 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10845 LIBS="$cf_pkgconfig_libs $LIBS"
10849 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10851 echo "${as_me:-configure}:10851: testing ...before $LIBS ..." 1>&5
10853 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s,-lXt ,-lXt -lXmu ," -e 's/ / /g'`
10854 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10856 echo "${as_me:-configure}:10856: testing ...after $LIBS ..." 1>&5
10872 if test -z "$cf_x_athena_lib" ; then
10874 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
10875 test -n "$verbose" && echo " found package Xext" 1>&6
10877 echo "${as_me:-configure}:10877: testing found package Xext ..." 1>&5
10879 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
10880 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
10881 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
10883 echo "${as_me:-configure}:10883: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10885 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
10887 echo "${as_me:-configure}:10887: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
10892 cf_new_extra_cppflags=
10894 for cf_add_cflags in $cf_pkgconfig_incs
10896 case $cf_fix_cppflags in
10898 case $cf_add_cflags in #(vi
10899 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10900 case $cf_add_cflags in
10902 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10904 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10905 && test -z "${cf_tst_cflags}" \
10906 && cf_fix_cppflags=yes
10908 if test $cf_fix_cppflags = yes ; then
10909 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10911 elif test "${cf_tst_cflags}" = "\"'" ; then
10912 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10917 case "$CPPFLAGS" in
10918 *$cf_add_cflags) #(vi
10921 case $cf_add_cflags in #(vi
10923 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10925 CPPFLAGS=`echo "$CPPFLAGS" | \
10926 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10927 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10931 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10936 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10941 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10943 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10945 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10946 && test -z "${cf_tst_cflags}" \
10947 && cf_fix_cppflags=no
10952 if test -n "$cf_new_cflags" ; then
10954 CFLAGS="$CFLAGS $cf_new_cflags"
10957 if test -n "$cf_new_cppflags" ; then
10959 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10962 if test -n "$cf_new_extra_cppflags" ; then
10964 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10967 LIBS="$cf_pkgconfig_libs $LIBS"
10971 echo "$as_me:10971: checking for XextCreateExtension in -lXext" >&5
10972 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
10973 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 ac_check_lib_save_LIBS=$LIBS
10977 LIBS="-lXext $LIBS"
10978 cat >conftest.$ac_ext <<_ACEOF
10979 #line 10979 "configure"
10980 #include "confdefs.h"
10982 /* Override any gcc2 internal prototype to avoid an error. */
10986 /* We use char because int might match the return type of a gcc2
10987 builtin and then its argument prototype would still apply. */
10988 char XextCreateExtension ();
10992 XextCreateExtension ();
10997 rm -f conftest.$ac_objext conftest$ac_exeext
10998 if { (eval echo "$as_me:10998: \"$ac_link\"") >&5
10999 (eval $ac_link) 2>&5
11001 echo "$as_me:11001: \$? = $ac_status" >&5
11002 (exit $ac_status); } &&
11003 { ac_try='test -s conftest$ac_exeext'
11004 { (eval echo "$as_me:11004: \"$ac_try\"") >&5
11005 (eval $ac_try) 2>&5
11007 echo "$as_me:11007: \$? = $ac_status" >&5
11008 (exit $ac_status); }; }; then
11009 ac_cv_lib_Xext_XextCreateExtension=yes
11011 echo "$as_me: failed program was:" >&5
11012 cat conftest.$ac_ext >&5
11013 ac_cv_lib_Xext_XextCreateExtension=no
11015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11016 LIBS=$ac_check_lib_save_LIBS
11018 echo "$as_me:11018: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
11019 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
11020 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
11021 LIBS="-lXext $LIBS"
11028 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
11029 test -n "$verbose" && echo " found package xt" 1>&6
11031 echo "${as_me:-configure}:11031: testing found package xt ..." 1>&5
11033 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
11034 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
11035 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
11037 echo "${as_me:-configure}:11037: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11039 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
11041 echo "${as_me:-configure}:11041: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
11046 cf_new_extra_cppflags=
11048 for cf_add_cflags in $cf_pkgconfig_incs
11050 case $cf_fix_cppflags in
11052 case $cf_add_cflags in #(vi
11053 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11054 case $cf_add_cflags in
11056 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11058 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11059 && test -z "${cf_tst_cflags}" \
11060 && cf_fix_cppflags=yes
11062 if test $cf_fix_cppflags = yes ; then
11063 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11065 elif test "${cf_tst_cflags}" = "\"'" ; then
11066 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11071 case "$CPPFLAGS" in
11072 *$cf_add_cflags) #(vi
11075 case $cf_add_cflags in #(vi
11077 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11079 CPPFLAGS=`echo "$CPPFLAGS" | \
11080 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11081 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11085 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11090 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11095 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11097 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11099 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11100 && test -z "${cf_tst_cflags}" \
11101 && cf_fix_cppflags=no
11106 if test -n "$cf_new_cflags" ; then
11108 CFLAGS="$CFLAGS $cf_new_cflags"
11111 if test -n "$cf_new_cppflags" ; then
11113 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11116 if test -n "$cf_new_extra_cppflags" ; then
11118 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11121 LIBS="$cf_pkgconfig_libs $LIBS"
11123 case "x$LIBS" in #(vi
11127 # we have an "xt" package, but it may omit Xt's dependency on X11
11128 echo "$as_me:11128: checking for usable X dependency" >&5
11129 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
11130 if test "${cf_cv_xt_x11_compat+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11134 cat >conftest.$ac_ext <<_ACEOF
11135 #line 11135 "configure"
11136 #include "confdefs.h"
11138 #include <X11/Xlib.h>
11144 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
11145 int rc2 = XClearWindow((Display*) 0, (Window) 0);
11146 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
11147 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
11153 rm -f conftest.$ac_objext conftest$ac_exeext
11154 if { (eval echo "$as_me:11154: \"$ac_link\"") >&5
11155 (eval $ac_link) 2>&5
11157 echo "$as_me:11157: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try='test -s conftest$ac_exeext'
11160 { (eval echo "$as_me:11160: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11163 echo "$as_me:11163: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 cf_cv_xt_x11_compat=yes
11167 echo "$as_me: failed program was:" >&5
11168 cat conftest.$ac_ext >&5
11169 cf_cv_xt_x11_compat=no
11171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11173 echo "$as_me:11173: result: $cf_cv_xt_x11_compat" >&5
11174 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
11175 if test "$cf_cv_xt_x11_compat" = no
11177 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
11179 echo "${as_me:-configure}:11179: testing work around broken X11 dependency ..." 1>&5
11181 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
11183 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
11184 test -n "$verbose" && echo " found package x11" 1>&6
11186 echo "${as_me:-configure}:11186: testing found package x11 ..." 1>&5
11188 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
11189 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
11190 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
11192 echo "${as_me:-configure}:11192: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11194 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
11196 echo "${as_me:-configure}:11196: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
11201 cf_new_extra_cppflags=
11203 for cf_add_cflags in $cf_pkgconfig_incs
11205 case $cf_fix_cppflags in
11207 case $cf_add_cflags in #(vi
11208 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11209 case $cf_add_cflags in
11211 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11213 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11214 && test -z "${cf_tst_cflags}" \
11215 && cf_fix_cppflags=yes
11217 if test $cf_fix_cppflags = yes ; then
11218 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11220 elif test "${cf_tst_cflags}" = "\"'" ; then
11221 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11226 case "$CPPFLAGS" in
11227 *$cf_add_cflags) #(vi
11230 case $cf_add_cflags in #(vi
11232 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11234 CPPFLAGS=`echo "$CPPFLAGS" | \
11235 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11236 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11240 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11245 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11250 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11252 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11254 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11255 && test -z "${cf_tst_cflags}" \
11256 && cf_fix_cppflags=no
11261 if test -n "$cf_new_cflags" ; then
11263 CFLAGS="$CFLAGS $cf_new_cflags"
11266 if test -n "$cf_new_cppflags" ; then
11268 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11271 if test -n "$cf_new_extra_cppflags" ; then
11273 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11276 LIBS="$cf_pkgconfig_libs $LIBS"
11280 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11282 echo "${as_me:-configure}:11282: testing ...before $LIBS ..." 1>&5
11284 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s,-lXt ,-lXt -lX11 ," -e 's/ / /g'`
11285 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11287 echo "${as_me:-configure}:11287: testing ...after $LIBS ..." 1>&5
11295 echo "$as_me:11295: checking for usable X Toolkit package" >&5
11296 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
11297 if test "${cf_cv_xt_ice_compat+set}" = set; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 cat >conftest.$ac_ext <<_ACEOF
11302 #line 11302 "configure"
11303 #include "confdefs.h"
11305 #include <X11/Shell.h>
11310 int num = IceConnectionNumber(0)
11316 rm -f conftest.$ac_objext conftest$ac_exeext
11317 if { (eval echo "$as_me:11317: \"$ac_link\"") >&5
11318 (eval $ac_link) 2>&5
11320 echo "$as_me:11320: \$? = $ac_status" >&5
11321 (exit $ac_status); } &&
11322 { ac_try='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:11323: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11326 echo "$as_me:11326: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 cf_cv_xt_ice_compat=yes
11330 echo "$as_me: failed program was:" >&5
11331 cat conftest.$ac_ext >&5
11332 cf_cv_xt_ice_compat=no
11334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11336 echo "$as_me:11336: result: $cf_cv_xt_ice_compat" >&5
11337 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
11339 if test "$cf_cv_xt_ice_compat" = no
11341 # workaround for broken ".pc" files used for X Toolkit.
11342 case "x$X_PRE_LIBS" in #(vi
11344 case "x$LIBS" in #(vi
11348 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
11350 echo "${as_me:-configure}:11350: testing work around broken ICE dependency ..." 1>&5
11352 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
11353 test -n "$verbose" && echo " found package ice" 1>&6
11355 echo "${as_me:-configure}:11355: testing found package ice ..." 1>&5
11357 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
11358 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
11359 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
11361 echo "${as_me:-configure}:11361: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11363 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
11365 echo "${as_me:-configure}:11365: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
11370 cf_new_extra_cppflags=
11372 for cf_add_cflags in $cf_pkgconfig_incs
11374 case $cf_fix_cppflags in
11376 case $cf_add_cflags in #(vi
11377 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11378 case $cf_add_cflags in
11380 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11382 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11383 && test -z "${cf_tst_cflags}" \
11384 && cf_fix_cppflags=yes
11386 if test $cf_fix_cppflags = yes ; then
11387 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11389 elif test "${cf_tst_cflags}" = "\"'" ; then
11390 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11395 case "$CPPFLAGS" in
11396 *$cf_add_cflags) #(vi
11399 case $cf_add_cflags in #(vi
11401 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11403 CPPFLAGS=`echo "$CPPFLAGS" | \
11404 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11405 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11409 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11414 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11419 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11421 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11423 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11424 && test -z "${cf_tst_cflags}" \
11425 && cf_fix_cppflags=no
11430 if test -n "$cf_new_cflags" ; then
11432 CFLAGS="$CFLAGS $cf_new_cflags"
11435 if test -n "$cf_new_cppflags" ; then
11437 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11440 if test -n "$cf_new_extra_cppflags" ; then
11442 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11445 LIBS="$cf_pkgconfig_libs $LIBS"
11447 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
11448 test -n "$verbose" && echo " found package sm" 1>&6
11450 echo "${as_me:-configure}:11450: testing found package sm ..." 1>&5
11452 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
11453 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
11454 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11456 echo "${as_me:-configure}:11456: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11458 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11460 echo "${as_me:-configure}:11460: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11465 cf_new_extra_cppflags=
11467 for cf_add_cflags in $cf_pkgconfig_incs
11469 case $cf_fix_cppflags in
11471 case $cf_add_cflags in #(vi
11472 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11473 case $cf_add_cflags in
11475 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11477 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11478 && test -z "${cf_tst_cflags}" \
11479 && cf_fix_cppflags=yes
11481 if test $cf_fix_cppflags = yes ; then
11482 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11484 elif test "${cf_tst_cflags}" = "\"'" ; then
11485 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11490 case "$CPPFLAGS" in
11491 *$cf_add_cflags) #(vi
11494 case $cf_add_cflags in #(vi
11496 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11498 CPPFLAGS=`echo "$CPPFLAGS" | \
11499 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11500 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11504 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11509 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11514 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11516 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11518 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11519 && test -z "${cf_tst_cflags}" \
11520 && cf_fix_cppflags=no
11525 if test -n "$cf_new_cflags" ; then
11527 CFLAGS="$CFLAGS $cf_new_cflags"
11530 if test -n "$cf_new_cppflags" ; then
11532 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11535 if test -n "$cf_new_extra_cppflags" ; then
11537 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11540 LIBS="$cf_pkgconfig_libs $LIBS"
11548 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11550 echo "${as_me:-configure}:11550: testing ...before $LIBS ..." 1>&5
11552 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s,-lXt ,-lXt $X_PRE_LIBS ," -e 's/ / /g'`
11553 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11555 echo "${as_me:-configure}:11555: testing ...after $LIBS ..." 1>&5
11569 LDFLAGS="$X_LIBS $LDFLAGS"
11571 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
11573 echo "${as_me:-configure}:11573: testing checking additions to CFLAGS ..." 1>&5
11575 cf_check_cflags="$CFLAGS"
11576 cf_check_cppflags="$CPPFLAGS"
11581 cf_new_extra_cppflags=
11583 for cf_add_cflags in $X_CFLAGS
11585 case $cf_fix_cppflags in
11587 case $cf_add_cflags in #(vi
11588 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11589 case $cf_add_cflags in
11591 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11593 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11594 && test -z "${cf_tst_cflags}" \
11595 && cf_fix_cppflags=yes
11597 if test $cf_fix_cppflags = yes ; then
11598 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11600 elif test "${cf_tst_cflags}" = "\"'" ; then
11601 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11606 case "$CPPFLAGS" in
11607 *$cf_add_cflags) #(vi
11610 case $cf_add_cflags in #(vi
11612 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11614 CPPFLAGS=`echo "$CPPFLAGS" | \
11615 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11616 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11620 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11625 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11630 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11632 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11634 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11635 && test -z "${cf_tst_cflags}" \
11636 && cf_fix_cppflags=no
11641 if test -n "$cf_new_cflags" ; then
11642 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11644 echo "${as_me:-configure}:11644: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11646 CFLAGS="$CFLAGS $cf_new_cflags"
11649 if test -n "$cf_new_cppflags" ; then
11650 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11652 echo "${as_me:-configure}:11652: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11654 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11657 if test -n "$cf_new_extra_cppflags" ; then
11658 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11660 echo "${as_me:-configure}:11660: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11662 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11665 if test "$cf_check_cflags" != "$CFLAGS" ; then
11666 cat >conftest.$ac_ext <<_ACEOF
11667 #line 11667 "configure"
11668 #include "confdefs.h"
11673 printf("Hello world");
11678 rm -f conftest.$ac_objext conftest$ac_exeext
11679 if { (eval echo "$as_me:11679: \"$ac_link\"") >&5
11680 (eval $ac_link) 2>&5
11682 echo "$as_me:11682: \$? = $ac_status" >&5
11683 (exit $ac_status); } &&
11684 { ac_try='test -s conftest$ac_exeext'
11685 { (eval echo "$as_me:11685: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11688 echo "$as_me:11688: \$? = $ac_status" >&5
11689 (exit $ac_status); }; }; then
11692 echo "$as_me: failed program was:" >&5
11693 cat conftest.$ac_ext >&5
11694 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
11696 echo "${as_me:-configure}:11696: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
11698 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
11699 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
11701 echo "${as_me:-configure}:11701: testing but keeping change to \$CPPFLAGS ..." 1>&5
11704 CFLAGS="$cf_check_flags"
11706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11709 echo "$as_me:11709: checking for XOpenDisplay" >&5
11710 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
11711 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 cat >conftest.$ac_ext <<_ACEOF
11715 #line 11715 "configure"
11716 #include "confdefs.h"
11717 /* System header to define __stub macros and hopefully few prototypes,
11718 which can conflict with char XOpenDisplay (); below. */
11719 #include <assert.h>
11720 /* Override any gcc2 internal prototype to avoid an error. */
11724 /* We use char because int might match the return type of a gcc2
11725 builtin and then its argument prototype would still apply. */
11726 char XOpenDisplay ();
11732 /* The GNU C library defines this for functions which it implements
11733 to always fail with ENOSYS. Some functions are actually named
11734 something starting with __ and the normal name is an alias. */
11735 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
11745 rm -f conftest.$ac_objext conftest$ac_exeext
11746 if { (eval echo "$as_me:11746: \"$ac_link\"") >&5
11747 (eval $ac_link) 2>&5
11749 echo "$as_me:11749: \$? = $ac_status" >&5
11750 (exit $ac_status); } &&
11751 { ac_try='test -s conftest$ac_exeext'
11752 { (eval echo "$as_me:11752: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11755 echo "$as_me:11755: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11757 ac_cv_func_XOpenDisplay=yes
11759 echo "$as_me: failed program was:" >&5
11760 cat conftest.$ac_ext >&5
11761 ac_cv_func_XOpenDisplay=no
11763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11765 echo "$as_me:11765: result: $ac_cv_func_XOpenDisplay" >&5
11766 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
11767 if test $ac_cv_func_XOpenDisplay = yes; then
11771 echo "$as_me:11771: checking for XOpenDisplay in -lX11" >&5
11772 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
11773 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
11774 echo $ECHO_N "(cached) $ECHO_C" >&6
11776 ac_check_lib_save_LIBS=$LIBS
11777 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
11778 cat >conftest.$ac_ext <<_ACEOF
11779 #line 11779 "configure"
11780 #include "confdefs.h"
11782 /* Override any gcc2 internal prototype to avoid an error. */
11786 /* We use char because int might match the return type of a gcc2
11787 builtin and then its argument prototype would still apply. */
11788 char XOpenDisplay ();
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (eval echo "$as_me:11798: \"$ac_link\"") >&5
11799 (eval $ac_link) 2>&5
11801 echo "$as_me:11801: \$? = $ac_status" >&5
11802 (exit $ac_status); } &&
11803 { ac_try='test -s conftest$ac_exeext'
11804 { (eval echo "$as_me:11804: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11807 echo "$as_me:11807: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
11809 ac_cv_lib_X11_XOpenDisplay=yes
11811 echo "$as_me: failed program was:" >&5
11812 cat conftest.$ac_ext >&5
11813 ac_cv_lib_X11_XOpenDisplay=no
11815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11816 LIBS=$ac_check_lib_save_LIBS
11818 echo "$as_me:11818: result: $ac_cv_lib_X11_XOpenDisplay" >&5
11819 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
11820 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
11826 echo "$as_me:11826: checking for XtAppInitialize" >&5
11827 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
11828 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11831 cat >conftest.$ac_ext <<_ACEOF
11832 #line 11832 "configure"
11833 #include "confdefs.h"
11834 /* System header to define __stub macros and hopefully few prototypes,
11835 which can conflict with char XtAppInitialize (); below. */
11836 #include <assert.h>
11837 /* Override any gcc2 internal prototype to avoid an error. */
11841 /* We use char because int might match the return type of a gcc2
11842 builtin and then its argument prototype would still apply. */
11843 char XtAppInitialize ();
11849 /* The GNU C library defines this for functions which it implements
11850 to always fail with ENOSYS. Some functions are actually named
11851 something starting with __ and the normal name is an alias. */
11852 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
11855 f = XtAppInitialize;
11862 rm -f conftest.$ac_objext conftest$ac_exeext
11863 if { (eval echo "$as_me:11863: \"$ac_link\"") >&5
11864 (eval $ac_link) 2>&5
11866 echo "$as_me:11866: \$? = $ac_status" >&5
11867 (exit $ac_status); } &&
11868 { ac_try='test -s conftest$ac_exeext'
11869 { (eval echo "$as_me:11869: \"$ac_try\"") >&5
11870 (eval $ac_try) 2>&5
11872 echo "$as_me:11872: \$? = $ac_status" >&5
11873 (exit $ac_status); }; }; then
11874 ac_cv_func_XtAppInitialize=yes
11876 echo "$as_me: failed program was:" >&5
11877 cat conftest.$ac_ext >&5
11878 ac_cv_func_XtAppInitialize=no
11880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11882 echo "$as_me:11882: result: $ac_cv_func_XtAppInitialize" >&5
11883 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
11884 if test $ac_cv_func_XtAppInitialize = yes; then
11888 echo "$as_me:11888: checking for XtAppInitialize in -lXt" >&5
11889 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
11890 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 ac_check_lib_save_LIBS=$LIBS
11894 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
11895 cat >conftest.$ac_ext <<_ACEOF
11896 #line 11896 "configure"
11897 #include "confdefs.h"
11899 /* Override any gcc2 internal prototype to avoid an error. */
11903 /* We use char because int might match the return type of a gcc2
11904 builtin and then its argument prototype would still apply. */
11905 char XtAppInitialize ();
11909 XtAppInitialize ();
11914 rm -f conftest.$ac_objext conftest$ac_exeext
11915 if { (eval echo "$as_me:11915: \"$ac_link\"") >&5
11916 (eval $ac_link) 2>&5
11918 echo "$as_me:11918: \$? = $ac_status" >&5
11919 (exit $ac_status); } &&
11920 { ac_try='test -s conftest$ac_exeext'
11921 { (eval echo "$as_me:11921: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11924 echo "$as_me:11924: \$? = $ac_status" >&5
11925 (exit $ac_status); }; }; then
11926 ac_cv_lib_Xt_XtAppInitialize=yes
11928 echo "$as_me: failed program was:" >&5
11929 cat conftest.$ac_ext >&5
11930 ac_cv_lib_Xt_XtAppInitialize=no
11932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11933 LIBS=$ac_check_lib_save_LIBS
11935 echo "$as_me:11935: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
11936 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
11937 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
11938 cat >>confdefs.h <<\EOF
11939 #define HAVE_LIBXT 1
11943 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
11950 if test $cf_have_X_LIBS = no ; then
11951 { echo "$as_me:11951: WARNING: Unable to successfully link X Toolkit library (-lXt) with
11952 test program. You will have to check and add the proper libraries by hand
11954 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
11955 test program. You will have to check and add the proper libraries by hand
11956 to makefile." >&2;}
11959 cf_x_athena_root=$cf_x_athena
11962 for cf_path in default \
11963 /usr/contrib/X11R6 \
11964 /usr/contrib/X11R5 \
11968 if test -z "$cf_x_athena_inc" ; then
11969 cf_save="$CPPFLAGS"
11970 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
11971 if test $cf_path != default ; then
11972 CPPFLAGS="$cf_save -I$cf_path/include"
11973 echo "$as_me:11973: checking for $cf_test in $cf_path" >&5
11974 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
11976 echo "$as_me:11976: checking for $cf_test" >&5
11977 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
11979 cat >conftest.$ac_ext <<_ACEOF
11980 #line 11980 "configure"
11981 #include "confdefs.h"
11983 #include <X11/Intrinsic.h>
11984 #include <$cf_test>
11993 rm -f conftest.$ac_objext
11994 if { (eval echo "$as_me:11994: \"$ac_compile\"") >&5
11995 (eval $ac_compile) 2>&5
11997 echo "$as_me:11997: \$? = $ac_status" >&5
11998 (exit $ac_status); } &&
11999 { ac_try='test -s conftest.$ac_objext'
12000 { (eval echo "$as_me:12000: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12003 echo "$as_me:12003: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12007 echo "$as_me: failed program was:" >&5
12008 cat conftest.$ac_ext >&5
12011 rm -f conftest.$ac_objext conftest.$ac_ext
12012 echo "$as_me:12012: result: $cf_result" >&5
12013 echo "${ECHO_T}$cf_result" >&6
12014 if test "$cf_result" = yes ; then
12015 cf_x_athena_inc=$cf_path
12018 CPPFLAGS="$cf_save"
12023 if test -z "$cf_x_athena_inc" ; then
12024 { echo "$as_me:12024: WARNING: Unable to successfully find Athena header files with test program" >&5
12025 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
12026 elif test "$cf_x_athena_inc" != default ; then
12027 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
12030 cf_x_athena_root=$cf_x_athena
12033 for cf_path in default \
12034 /usr/contrib/X11R6 \
12035 /usr/contrib/X11R5 \
12040 ${cf_x_athena_root} \
12041 ${cf_x_athena_root}7 \
12042 ${cf_x_athena_root}6
12045 "-l$cf_lib -lXmu" \
12046 "-l$cf_lib -lXpm -lXmu" \
12047 "-l${cf_lib}_s -lXmu_s"
12049 if test -z "$cf_x_athena_lib" ; then
12051 cf_test=XawSimpleMenuAddGlobalActions
12052 if test $cf_path != default ; then
12053 LIBS="-L$cf_path/lib $cf_libs $LIBS"
12054 echo "$as_me:12054: checking for $cf_libs in $cf_path" >&5
12055 echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6
12057 LIBS="$cf_libs $LIBS"
12058 echo "$as_me:12058: checking for $cf_test in $cf_libs" >&5
12059 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
12061 cat >conftest.$ac_ext <<_ACEOF
12062 #line 12062 "configure"
12063 #include "confdefs.h"
12065 #include <X11/Intrinsic.h>
12066 #include <X11/$cf_x_athena_root/SimpleMenu.h>
12072 $cf_test((XtAppContext) 0)
12077 rm -f conftest.$ac_objext conftest$ac_exeext
12078 if { (eval echo "$as_me:12078: \"$ac_link\"") >&5
12079 (eval $ac_link) 2>&5
12081 echo "$as_me:12081: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
12083 { ac_try='test -s conftest$ac_exeext'
12084 { (eval echo "$as_me:12084: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12087 echo "$as_me:12087: \$? = $ac_status" >&5
12088 (exit $ac_status); }; }; then
12091 echo "$as_me: failed program was:" >&5
12092 cat conftest.$ac_ext >&5
12095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12096 echo "$as_me:12096: result: $cf_result" >&5
12097 echo "${ECHO_T}$cf_result" >&6
12098 if test "$cf_result" = yes ; then
12099 cf_x_athena_lib="$cf_libs"
12105 test -n "$cf_x_athena_lib" && break
12109 if test -z "$cf_x_athena_lib" ; then
12110 { { echo "$as_me:12110: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
12111 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
12112 { (exit 1); exit 1; }; }
12115 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12117 cat >>confdefs.h <<EOF
12118 #define $cf_x_athena_LIBS 1
12123 for ac_prog in xcurses-config
12125 # Extract the first word of "$ac_prog", so it can be a program name with args.
12126 set dummy $ac_prog; ac_word=$2
12127 echo "$as_me:12127: checking for $ac_word" >&5
12128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12129 if test "${ac_cv_path_XCURSES_CONFIG+set}" = set; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12132 case $XCURSES_CONFIG in
12134 ac_cv_path_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test with a path.
12137 ac_save_IFS=$IFS; IFS=$ac_path_separator
12139 for ac_dir in $ac_dummy; do
12141 test -z "$ac_dir" && ac_dir=.
12142 if $as_executable_p "$ac_dir/$ac_word"; then
12143 ac_cv_path_XCURSES_CONFIG="$ac_dir/$ac_word"
12144 echo "$as_me:12144: found $ac_dir/$ac_word" >&5
12152 XCURSES_CONFIG=$ac_cv_path_XCURSES_CONFIG
12154 if test -n "$XCURSES_CONFIG"; then
12155 echo "$as_me:12155: result: $XCURSES_CONFIG" >&5
12156 echo "${ECHO_T}$XCURSES_CONFIG" >&6
12158 echo "$as_me:12158: result: no" >&5
12159 echo "${ECHO_T}no" >&6
12162 test -n "$XCURSES_CONFIG" && break
12164 test -n "$XCURSES_CONFIG" || XCURSES_CONFIG="none"
12166 if test "$XCURSES_CONFIG" != none ; then
12168 CPPFLAGS="$CPPFLAGS `$XCURSES_CONFIG --cflags`"
12169 LIBS="`$XCURSES_CONFIG --libs` $LIBS"
12171 cf_cv_lib_XCurses=yes
12175 LDFLAGS="$LDFLAGS $X_LIBS"
12177 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
12179 echo "${as_me:-configure}:12179: testing checking additions to CFLAGS ..." 1>&5
12181 cf_check_cflags="$CFLAGS"
12182 cf_check_cppflags="$CPPFLAGS"
12187 cf_new_extra_cppflags=
12189 for cf_add_cflags in $X_CFLAGS
12191 case $cf_fix_cppflags in
12193 case $cf_add_cflags in #(vi
12194 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12195 case $cf_add_cflags in
12197 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12199 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12200 && test -z "${cf_tst_cflags}" \
12201 && cf_fix_cppflags=yes
12203 if test $cf_fix_cppflags = yes ; then
12204 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12206 elif test "${cf_tst_cflags}" = "\"'" ; then
12207 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12212 case "$CPPFLAGS" in
12213 *$cf_add_cflags) #(vi
12216 case $cf_add_cflags in #(vi
12218 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12220 CPPFLAGS=`echo "$CPPFLAGS" | \
12221 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12222 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12226 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12231 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12236 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12238 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12240 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12241 && test -z "${cf_tst_cflags}" \
12242 && cf_fix_cppflags=no
12247 if test -n "$cf_new_cflags" ; then
12248 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
12250 echo "${as_me:-configure}:12250: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
12252 CFLAGS="$CFLAGS $cf_new_cflags"
12255 if test -n "$cf_new_cppflags" ; then
12256 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
12258 echo "${as_me:-configure}:12258: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
12260 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12263 if test -n "$cf_new_extra_cppflags" ; then
12264 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
12266 echo "${as_me:-configure}:12266: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
12268 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12271 if test "$cf_check_cflags" != "$CFLAGS" ; then
12272 cat >conftest.$ac_ext <<_ACEOF
12273 #line 12273 "configure"
12274 #include "confdefs.h"
12279 printf("Hello world");
12284 rm -f conftest.$ac_objext conftest$ac_exeext
12285 if { (eval echo "$as_me:12285: \"$ac_link\"") >&5
12286 (eval $ac_link) 2>&5
12288 echo "$as_me:12288: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
12290 { ac_try='test -s conftest$ac_exeext'
12291 { (eval echo "$as_me:12291: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12294 echo "$as_me:12294: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12298 echo "$as_me: failed program was:" >&5
12299 cat conftest.$ac_ext >&5
12300 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
12302 echo "${as_me:-configure}:12302: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
12304 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
12305 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
12307 echo "${as_me:-configure}:12307: testing but keeping change to \$CPPFLAGS ..." 1>&5
12310 CFLAGS="$cf_check_flags"
12312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12315 echo "$as_me:12315: checking for XOpenDisplay in -lX11" >&5
12316 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
12317 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12320 ac_check_lib_save_LIBS=$LIBS
12321 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12322 cat >conftest.$ac_ext <<_ACEOF
12323 #line 12323 "configure"
12324 #include "confdefs.h"
12326 /* Override any gcc2 internal prototype to avoid an error. */
12330 /* We use char because int might match the return type of a gcc2
12331 builtin and then its argument prototype would still apply. */
12332 char XOpenDisplay ();
12341 rm -f conftest.$ac_objext conftest$ac_exeext
12342 if { (eval echo "$as_me:12342: \"$ac_link\"") >&5
12343 (eval $ac_link) 2>&5
12345 echo "$as_me:12345: \$? = $ac_status" >&5
12346 (exit $ac_status); } &&
12347 { ac_try='test -s conftest$ac_exeext'
12348 { (eval echo "$as_me:12348: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12351 echo "$as_me:12351: \$? = $ac_status" >&5
12352 (exit $ac_status); }; }; then
12353 ac_cv_lib_X11_XOpenDisplay=yes
12355 echo "$as_me: failed program was:" >&5
12356 cat conftest.$ac_ext >&5
12357 ac_cv_lib_X11_XOpenDisplay=no
12359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12360 LIBS=$ac_check_lib_save_LIBS
12362 echo "$as_me:12362: result: $ac_cv_lib_X11_XOpenDisplay" >&5
12363 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
12364 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
12368 echo "$as_me:12368: checking for XCurses library" >&5
12369 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
12370 if test "${cf_cv_lib_XCurses+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 LIBS="-lXCurses $LIBS"
12375 cat >conftest.$ac_ext <<_ACEOF
12376 #line 12376 "configure"
12377 #include "confdefs.h"
12379 #include <xcurses.h>
12380 char *XCursesProgramName = "test";
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (eval echo "$as_me:12391: \"$ac_link\"") >&5
12392 (eval $ac_link) 2>&5
12394 echo "$as_me:12394: \$? = $ac_status" >&5
12395 (exit $ac_status); } &&
12396 { ac_try='test -s conftest$ac_exeext'
12397 { (eval echo "$as_me:12397: \"$ac_try\"") >&5
12398 (eval $ac_try) 2>&5
12400 echo "$as_me:12400: \$? = $ac_status" >&5
12401 (exit $ac_status); }; }; then
12402 cf_cv_lib_XCurses=yes
12404 echo "$as_me: failed program was:" >&5
12405 cat conftest.$ac_ext >&5
12406 cf_cv_lib_XCurses=no
12408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12411 echo "$as_me:12411: result: $cf_cv_lib_XCurses" >&5
12412 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
12416 if test $cf_cv_lib_XCurses = yes ; then
12417 cat >>confdefs.h <<\EOF
12421 cat >>confdefs.h <<\EOF
12425 echo "$as_me:12425: checking for xcurses.h" >&5
12426 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
12427 if test "${ac_cv_header_xcurses_h+set}" = set; then
12428 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 cat >conftest.$ac_ext <<_ACEOF
12431 #line 12431 "configure"
12432 #include "confdefs.h"
12433 #include <xcurses.h>
12435 if { (eval echo "$as_me:12435: \"$ac_cpp conftest.$ac_ext\"") >&5
12436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12438 egrep -v '^ *\+' conftest.er1 >conftest.err
12440 cat conftest.err >&5
12441 echo "$as_me:12441: \$? = $ac_status" >&5
12442 (exit $ac_status); } >/dev/null; then
12443 if test -s conftest.err; then
12444 ac_cpp_err=$ac_c_preproc_warn_flag
12451 if test -z "$ac_cpp_err"; then
12452 ac_cv_header_xcurses_h=yes
12454 echo "$as_me: failed program was:" >&5
12455 cat conftest.$ac_ext >&5
12456 ac_cv_header_xcurses_h=no
12458 rm -f conftest.err conftest.$ac_ext
12460 echo "$as_me:12460: result: $ac_cv_header_xcurses_h" >&5
12461 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
12462 if test $ac_cv_header_xcurses_h = yes; then
12463 cat >>confdefs.h <<\EOF
12464 #define HAVE_XCURSES 1
12470 { { echo "$as_me:12470: error: Cannot link with XCurses" >&5
12471 echo "$as_me: error: Cannot link with XCurses" >&2;}
12472 { (exit 1); exit 1; }; }
12478 case $cf_cv_screen in #(vi
12482 # look for curses-related libraries
12484 as_ac_Lib=`echo "ac_cv_lib_panel$cf_cv_libtype''_new_panel" | $as_tr_sh`
12485 echo "$as_me:12485: checking for new_panel in -lpanel$cf_cv_libtype" >&5
12486 echo $ECHO_N "checking for new_panel in -lpanel$cf_cv_libtype... $ECHO_C" >&6
12487 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12488 echo $ECHO_N "(cached) $ECHO_C" >&6
12490 ac_check_lib_save_LIBS=$LIBS
12491 LIBS="-lpanel$cf_cv_libtype $LIBS"
12492 cat >conftest.$ac_ext <<_ACEOF
12493 #line 12493 "configure"
12494 #include "confdefs.h"
12496 /* Override any gcc2 internal prototype to avoid an error. */
12500 /* We use char because int might match the return type of a gcc2
12501 builtin and then its argument prototype would still apply. */
12511 rm -f conftest.$ac_objext conftest$ac_exeext
12512 if { (eval echo "$as_me:12512: \"$ac_link\"") >&5
12513 (eval $ac_link) 2>&5
12515 echo "$as_me:12515: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
12517 { ac_try='test -s conftest$ac_exeext'
12518 { (eval echo "$as_me:12518: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12521 echo "$as_me:12521: \$? = $ac_status" >&5
12522 (exit $ac_status); }; }; then
12523 eval "$as_ac_Lib=yes"
12525 echo "$as_me: failed program was:" >&5
12526 cat conftest.$ac_ext >&5
12527 eval "$as_ac_Lib=no"
12529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12530 LIBS=$ac_check_lib_save_LIBS
12532 echo "$as_me:12532: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12533 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12534 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12535 cat >>confdefs.h <<EOF
12536 #define `echo "HAVE_LIBpanel$cf_cv_libtype" | $as_tr_cpp` 1
12539 LIBS="-lpanel$cf_cv_libtype $LIBS"
12543 as_ac_Lib=`echo "ac_cv_lib_menu$cf_cv_libtype''_menu_driver" | $as_tr_sh`
12544 echo "$as_me:12544: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
12545 echo $ECHO_N "checking for menu_driver in -lmenu$cf_cv_libtype... $ECHO_C" >&6
12546 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 ac_check_lib_save_LIBS=$LIBS
12550 LIBS="-lmenu$cf_cv_libtype $LIBS"
12551 cat >conftest.$ac_ext <<_ACEOF
12552 #line 12552 "configure"
12553 #include "confdefs.h"
12555 /* Override any gcc2 internal prototype to avoid an error. */
12559 /* We use char because int might match the return type of a gcc2
12560 builtin and then its argument prototype would still apply. */
12561 char menu_driver ();
12570 rm -f conftest.$ac_objext conftest$ac_exeext
12571 if { (eval echo "$as_me:12571: \"$ac_link\"") >&5
12572 (eval $ac_link) 2>&5
12574 echo "$as_me:12574: \$? = $ac_status" >&5
12575 (exit $ac_status); } &&
12576 { ac_try='test -s conftest$ac_exeext'
12577 { (eval echo "$as_me:12577: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12580 echo "$as_me:12580: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
12582 eval "$as_ac_Lib=yes"
12584 echo "$as_me: failed program was:" >&5
12585 cat conftest.$ac_ext >&5
12586 eval "$as_ac_Lib=no"
12588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12589 LIBS=$ac_check_lib_save_LIBS
12591 echo "$as_me:12591: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12592 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12593 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12594 cat >>confdefs.h <<EOF
12595 #define `echo "HAVE_LIBmenu$cf_cv_libtype" | $as_tr_cpp` 1
12598 LIBS="-lmenu$cf_cv_libtype $LIBS"
12602 as_ac_Lib=`echo "ac_cv_lib_form$cf_cv_libtype''_form_driver" | $as_tr_sh`
12603 echo "$as_me:12603: checking for form_driver in -lform$cf_cv_libtype" >&5
12604 echo $ECHO_N "checking for form_driver in -lform$cf_cv_libtype... $ECHO_C" >&6
12605 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 ac_check_lib_save_LIBS=$LIBS
12609 LIBS="-lform$cf_cv_libtype $LIBS"
12610 cat >conftest.$ac_ext <<_ACEOF
12611 #line 12611 "configure"
12612 #include "confdefs.h"
12614 /* Override any gcc2 internal prototype to avoid an error. */
12618 /* We use char because int might match the return type of a gcc2
12619 builtin and then its argument prototype would still apply. */
12620 char form_driver ();
12629 rm -f conftest.$ac_objext conftest$ac_exeext
12630 if { (eval echo "$as_me:12630: \"$ac_link\"") >&5
12631 (eval $ac_link) 2>&5
12633 echo "$as_me:12633: \$? = $ac_status" >&5
12634 (exit $ac_status); } &&
12635 { ac_try='test -s conftest$ac_exeext'
12636 { (eval echo "$as_me:12636: \"$ac_try\"") >&5
12637 (eval $ac_try) 2>&5
12639 echo "$as_me:12639: \$? = $ac_status" >&5
12640 (exit $ac_status); }; }; then
12641 eval "$as_ac_Lib=yes"
12643 echo "$as_me: failed program was:" >&5
12644 cat conftest.$ac_ext >&5
12645 eval "$as_ac_Lib=no"
12647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12648 LIBS=$ac_check_lib_save_LIBS
12650 echo "$as_me:12650: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12651 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12652 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12653 cat >>confdefs.h <<EOF
12654 #define `echo "HAVE_LIBform$cf_cv_libtype" | $as_tr_cpp` 1
12657 LIBS="-lform$cf_cv_libtype $LIBS"
12661 # look for curses-related headers
12672 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12673 echo "$as_me:12673: checking for $ac_header" >&5
12674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12676 echo $ECHO_N "(cached) $ECHO_C" >&6
12678 cat >conftest.$ac_ext <<_ACEOF
12679 #line 12679 "configure"
12680 #include "confdefs.h"
12681 #include <$ac_header>
12683 if { (eval echo "$as_me:12683: \"$ac_cpp conftest.$ac_ext\"") >&5
12684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12686 egrep -v '^ *\+' conftest.er1 >conftest.err
12688 cat conftest.err >&5
12689 echo "$as_me:12689: \$? = $ac_status" >&5
12690 (exit $ac_status); } >/dev/null; then
12691 if test -s conftest.err; then
12692 ac_cpp_err=$ac_c_preproc_warn_flag
12699 if test -z "$ac_cpp_err"; then
12700 eval "$as_ac_Header=yes"
12702 echo "$as_me: failed program was:" >&5
12703 cat conftest.$ac_ext >&5
12704 eval "$as_ac_Header=no"
12706 rm -f conftest.err conftest.$ac_ext
12708 echo "$as_me:12708: result: `eval echo '${'$as_ac_Header'}'`" >&5
12709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12711 cat >>confdefs.h <<EOF
12712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12721 echo "$as_me:12721: checking return type of signal handlers" >&5
12722 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12723 if test "${ac_cv_type_signal+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 cat >conftest.$ac_ext <<_ACEOF
12727 #line 12727 "configure"
12728 #include "confdefs.h"
12729 #include <sys/types.h>
12730 #include <signal.h>
12735 extern "C" void (*signal (int, void (*)(int)))(int);
12737 void (*signal ()) ();
12748 rm -f conftest.$ac_objext
12749 if { (eval echo "$as_me:12749: \"$ac_compile\"") >&5
12750 (eval $ac_compile) 2>&5
12752 echo "$as_me:12752: \$? = $ac_status" >&5
12753 (exit $ac_status); } &&
12754 { ac_try='test -s conftest.$ac_objext'
12755 { (eval echo "$as_me:12755: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12758 echo "$as_me:12758: \$? = $ac_status" >&5
12759 (exit $ac_status); }; }; then
12760 ac_cv_type_signal=void
12762 echo "$as_me: failed program was:" >&5
12763 cat conftest.$ac_ext >&5
12764 ac_cv_type_signal=int
12766 rm -f conftest.$ac_objext conftest.$ac_ext
12768 echo "$as_me:12768: result: $ac_cv_type_signal" >&5
12769 echo "${ECHO_T}$ac_cv_type_signal" >&6
12771 cat >>confdefs.h <<EOF
12772 #define RETSIGTYPE $ac_cv_type_signal
12775 echo "$as_me:12775: checking for ANSI C header files" >&5
12776 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12777 if test "${ac_cv_header_stdc+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 cat >conftest.$ac_ext <<_ACEOF
12781 #line 12781 "configure"
12782 #include "confdefs.h"
12783 #include <stdlib.h>
12784 #include <stdarg.h>
12785 #include <string.h>
12789 if { (eval echo "$as_me:12789: \"$ac_cpp conftest.$ac_ext\"") >&5
12790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12792 egrep -v '^ *\+' conftest.er1 >conftest.err
12794 cat conftest.err >&5
12795 echo "$as_me:12795: \$? = $ac_status" >&5
12796 (exit $ac_status); } >/dev/null; then
12797 if test -s conftest.err; then
12798 ac_cpp_err=$ac_c_preproc_warn_flag
12805 if test -z "$ac_cpp_err"; then
12806 ac_cv_header_stdc=yes
12808 echo "$as_me: failed program was:" >&5
12809 cat conftest.$ac_ext >&5
12810 ac_cv_header_stdc=no
12812 rm -f conftest.err conftest.$ac_ext
12814 if test $ac_cv_header_stdc = yes; then
12815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12816 cat >conftest.$ac_ext <<_ACEOF
12817 #line 12817 "configure"
12818 #include "confdefs.h"
12819 #include <string.h>
12822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12823 egrep "memchr" >/dev/null 2>&1; then
12826 ac_cv_header_stdc=no
12832 if test $ac_cv_header_stdc = yes; then
12833 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12834 cat >conftest.$ac_ext <<_ACEOF
12835 #line 12835 "configure"
12836 #include "confdefs.h"
12837 #include <stdlib.h>
12840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12841 egrep "free" >/dev/null 2>&1; then
12844 ac_cv_header_stdc=no
12850 if test $ac_cv_header_stdc = yes; then
12851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12852 if test "$cross_compiling" = yes; then
12855 cat >conftest.$ac_ext <<_ACEOF
12856 #line 12856 "configure"
12857 #include "confdefs.h"
12859 #if ((' ' & 0x0FF) == 0x020)
12860 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12861 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12863 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12864 || ('j' <= (c) && (c) <= 'r') \
12865 || ('s' <= (c) && (c) <= 'z'))
12866 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12869 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12874 for (i = 0; i < 256; i++)
12875 if (XOR (islower (i), ISLOWER (i))
12876 || toupper (i) != TOUPPER (i))
12877 $ac_main_return(2);
12878 $ac_main_return (0);
12881 rm -f conftest$ac_exeext
12882 if { (eval echo "$as_me:12882: \"$ac_link\"") >&5
12883 (eval $ac_link) 2>&5
12885 echo "$as_me:12885: \$? = $ac_status" >&5
12886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12887 { (eval echo "$as_me:12887: \"$ac_try\"") >&5
12888 (eval $ac_try) 2>&5
12890 echo "$as_me:12890: \$? = $ac_status" >&5
12891 (exit $ac_status); }; }; then
12894 echo "$as_me: program exited with status $ac_status" >&5
12895 echo "$as_me: failed program was:" >&5
12896 cat conftest.$ac_ext >&5
12897 ac_cv_header_stdc=no
12899 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12903 echo "$as_me:12903: result: $ac_cv_header_stdc" >&5
12904 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12905 if test $ac_cv_header_stdc = yes; then
12907 cat >>confdefs.h <<\EOF
12908 #define STDC_HEADERS 1
12913 echo "$as_me:12913: checking whether time.h and sys/time.h may both be included" >&5
12914 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12915 if test "${ac_cv_header_time+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12918 cat >conftest.$ac_ext <<_ACEOF
12919 #line 12919 "configure"
12920 #include "confdefs.h"
12921 #include <sys/types.h>
12922 #include <sys/time.h>
12928 if ((struct tm *) 0)
12934 rm -f conftest.$ac_objext
12935 if { (eval echo "$as_me:12935: \"$ac_compile\"") >&5
12936 (eval $ac_compile) 2>&5
12938 echo "$as_me:12938: \$? = $ac_status" >&5
12939 (exit $ac_status); } &&
12940 { ac_try='test -s conftest.$ac_objext'
12941 { (eval echo "$as_me:12941: \"$ac_try\"") >&5
12942 (eval $ac_try) 2>&5
12944 echo "$as_me:12944: \$? = $ac_status" >&5
12945 (exit $ac_status); }; }; then
12946 ac_cv_header_time=yes
12948 echo "$as_me: failed program was:" >&5
12949 cat conftest.$ac_ext >&5
12950 ac_cv_header_time=no
12952 rm -f conftest.$ac_objext conftest.$ac_ext
12954 echo "$as_me:12954: result: $ac_cv_header_time" >&5
12955 echo "${ECHO_T}$ac_cv_header_time" >&6
12956 if test $ac_cv_header_time = yes; then
12958 cat >>confdefs.h <<\EOF
12959 #define TIME_WITH_SYS_TIME 1
12976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12977 echo "$as_me:12977: checking for $ac_header" >&5
12978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12980 echo $ECHO_N "(cached) $ECHO_C" >&6
12982 cat >conftest.$ac_ext <<_ACEOF
12983 #line 12983 "configure"
12984 #include "confdefs.h"
12985 #include <$ac_header>
12987 if { (eval echo "$as_me:12987: \"$ac_cpp conftest.$ac_ext\"") >&5
12988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12990 egrep -v '^ *\+' conftest.er1 >conftest.err
12992 cat conftest.err >&5
12993 echo "$as_me:12993: \$? = $ac_status" >&5
12994 (exit $ac_status); } >/dev/null; then
12995 if test -s conftest.err; then
12996 ac_cpp_err=$ac_c_preproc_warn_flag
13003 if test -z "$ac_cpp_err"; then
13004 eval "$as_ac_Header=yes"
13006 echo "$as_me: failed program was:" >&5
13007 cat conftest.$ac_ext >&5
13008 eval "$as_ac_Header=no"
13010 rm -f conftest.err conftest.$ac_ext
13012 echo "$as_me:13012: result: `eval echo '${'$as_ac_Header'}'`" >&5
13013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13015 cat >>confdefs.h <<EOF
13016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13022 for ac_header in unistd.h getopt.h
13024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13025 echo "$as_me:13025: checking for $ac_header" >&5
13026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13030 cat >conftest.$ac_ext <<_ACEOF
13031 #line 13031 "configure"
13032 #include "confdefs.h"
13033 #include <$ac_header>
13035 if { (eval echo "$as_me:13035: \"$ac_cpp conftest.$ac_ext\"") >&5
13036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13038 egrep -v '^ *\+' conftest.er1 >conftest.err
13040 cat conftest.err >&5
13041 echo "$as_me:13041: \$? = $ac_status" >&5
13042 (exit $ac_status); } >/dev/null; then
13043 if test -s conftest.err; then
13044 ac_cpp_err=$ac_c_preproc_warn_flag
13051 if test -z "$ac_cpp_err"; then
13052 eval "$as_ac_Header=yes"
13054 echo "$as_me: failed program was:" >&5
13055 cat conftest.$ac_ext >&5
13056 eval "$as_ac_Header=no"
13058 rm -f conftest.err conftest.$ac_ext
13060 echo "$as_me:13060: result: `eval echo '${'$as_ac_Header'}'`" >&5
13061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13063 cat >>confdefs.h <<EOF
13064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13070 echo "$as_me:13070: checking for header declaring getopt variables" >&5
13071 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
13072 if test "${cf_cv_getopt_header+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 cf_cv_getopt_header=none
13077 for cf_header in stdio.h stdlib.h unistd.h getopt.h
13079 cat >conftest.$ac_ext <<_ACEOF
13080 #line 13080 "configure"
13081 #include "confdefs.h"
13083 #include <$cf_header>
13087 int x = optind; char *y = optarg
13092 rm -f conftest.$ac_objext
13093 if { (eval echo "$as_me:13093: \"$ac_compile\"") >&5
13094 (eval $ac_compile) 2>&5
13096 echo "$as_me:13096: \$? = $ac_status" >&5
13097 (exit $ac_status); } &&
13098 { ac_try='test -s conftest.$ac_objext'
13099 { (eval echo "$as_me:13099: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13102 echo "$as_me:13102: \$? = $ac_status" >&5
13103 (exit $ac_status); }; }; then
13104 cf_cv_getopt_header=$cf_header
13107 echo "$as_me: failed program was:" >&5
13108 cat conftest.$ac_ext >&5
13110 rm -f conftest.$ac_objext conftest.$ac_ext
13114 echo "$as_me:13114: result: $cf_cv_getopt_header" >&5
13115 echo "${ECHO_T}$cf_cv_getopt_header" >&6
13116 if test $cf_cv_getopt_header != none ; then
13117 cat >>confdefs.h <<\EOF
13118 #define HAVE_GETOPT_HEADER 1
13128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13129 echo "$as_me:13129: checking for $ac_func" >&5
13130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13131 if eval "test \"\${$as_ac_var+set}\" = set"; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13134 cat >conftest.$ac_ext <<_ACEOF
13135 #line 13135 "configure"
13136 #include "confdefs.h"
13137 /* System header to define __stub macros and hopefully few prototypes,
13138 which can conflict with char $ac_func (); below. */
13139 #include <assert.h>
13140 /* Override any gcc2 internal prototype to avoid an error. */
13144 /* We use char because int might match the return type of a gcc2
13145 builtin and then its argument prototype would still apply. */
13152 /* The GNU C library defines this for functions which it implements
13153 to always fail with ENOSYS. Some functions are actually named
13154 something starting with __ and the normal name is an alias. */
13155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13165 rm -f conftest.$ac_objext conftest$ac_exeext
13166 if { (eval echo "$as_me:13166: \"$ac_link\"") >&5
13167 (eval $ac_link) 2>&5
13169 echo "$as_me:13169: \$? = $ac_status" >&5
13170 (exit $ac_status); } &&
13171 { ac_try='test -s conftest$ac_exeext'
13172 { (eval echo "$as_me:13172: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13175 echo "$as_me:13175: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13177 eval "$as_ac_var=yes"
13179 echo "$as_me: failed program was:" >&5
13180 cat conftest.$ac_ext >&5
13181 eval "$as_ac_var=no"
13183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13185 echo "$as_me:13185: result: `eval echo '${'$as_ac_var'}'`" >&5
13186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13187 if test `eval echo '${'$as_ac_var'}'` = yes; then
13188 cat >>confdefs.h <<EOF
13189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13195 if test "$cf_enable_widec" = yes; then
13208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13209 echo "$as_me:13209: checking for $ac_func" >&5
13210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13211 if eval "test \"\${$as_ac_var+set}\" = set"; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 cat >conftest.$ac_ext <<_ACEOF
13215 #line 13215 "configure"
13216 #include "confdefs.h"
13217 /* System header to define __stub macros and hopefully few prototypes,
13218 which can conflict with char $ac_func (); below. */
13219 #include <assert.h>
13220 /* Override any gcc2 internal prototype to avoid an error. */
13224 /* We use char because int might match the return type of a gcc2
13225 builtin and then its argument prototype would still apply. */
13232 /* The GNU C library defines this for functions which it implements
13233 to always fail with ENOSYS. Some functions are actually named
13234 something starting with __ and the normal name is an alias. */
13235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13245 rm -f conftest.$ac_objext conftest$ac_exeext
13246 if { (eval echo "$as_me:13246: \"$ac_link\"") >&5
13247 (eval $ac_link) 2>&5
13249 echo "$as_me:13249: \$? = $ac_status" >&5
13250 (exit $ac_status); } &&
13251 { ac_try='test -s conftest$ac_exeext'
13252 { (eval echo "$as_me:13252: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13255 echo "$as_me:13255: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
13257 eval "$as_ac_var=yes"
13259 echo "$as_me: failed program was:" >&5
13260 cat conftest.$ac_ext >&5
13261 eval "$as_ac_var=no"
13263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13265 echo "$as_me:13265: result: `eval echo '${'$as_ac_var'}'`" >&5
13266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13267 if test `eval echo '${'$as_ac_var'}'` = yes; then
13268 cat >>confdefs.h <<EOF
13269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13277 echo "$as_me:13277: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
13278 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
13279 if test "${cf_cv_need_xopen_extension+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 cat >conftest.$ac_ext <<_ACEOF
13284 #line 13284 "configure"
13285 #include "confdefs.h"
13287 #include <stdlib.h>
13288 #include <${cf_cv_ncurses_header:-curses.h}>
13293 #if defined(NCURSES_VERSION_PATCH)
13294 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
13298 long x = winnstr(stdscr, "", 0);
13300 getbegyx(stdscr, y1, x1)
13305 rm -f conftest.$ac_objext conftest$ac_exeext
13306 if { (eval echo "$as_me:13306: \"$ac_link\"") >&5
13307 (eval $ac_link) 2>&5
13309 echo "$as_me:13309: \$? = $ac_status" >&5
13310 (exit $ac_status); } &&
13311 { ac_try='test -s conftest$ac_exeext'
13312 { (eval echo "$as_me:13312: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13315 echo "$as_me:13315: \$? = $ac_status" >&5
13316 (exit $ac_status); }; }; then
13317 cf_cv_need_xopen_extension=no
13319 echo "$as_me: failed program was:" >&5
13320 cat conftest.$ac_ext >&5
13321 cat >conftest.$ac_ext <<_ACEOF
13322 #line 13322 "configure"
13323 #include "confdefs.h"
13325 #define _XOPEN_SOURCE_EXTENDED
13326 #include <stdlib.h>
13327 #include <${cf_cv_ncurses_header:-curses.h}>
13332 #ifdef NCURSES_VERSION
13334 int check2 = curs_set((int)sizeof(check));
13336 long x = winnstr(stdscr, "", 0);
13338 getbegyx(stdscr, y1, x1)
13343 rm -f conftest.$ac_objext conftest$ac_exeext
13344 if { (eval echo "$as_me:13344: \"$ac_link\"") >&5
13345 (eval $ac_link) 2>&5
13347 echo "$as_me:13347: \$? = $ac_status" >&5
13348 (exit $ac_status); } &&
13349 { ac_try='test -s conftest$ac_exeext'
13350 { (eval echo "$as_me:13350: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13353 echo "$as_me:13353: \$? = $ac_status" >&5
13354 (exit $ac_status); }; }; then
13355 cf_cv_need_xopen_extension=yes
13357 echo "$as_me: failed program was:" >&5
13358 cat conftest.$ac_ext >&5
13359 cf_cv_need_xopen_extension=unknown
13361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13365 echo "$as_me:13365: result: $cf_cv_need_xopen_extension" >&5
13366 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
13367 test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
13369 echo "$as_me:13369: checking for term.h" >&5
13370 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13371 if test "${cf_cv_term_header+set}" = set; then
13372 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
13376 # for <term.h> if we do not find the variant.
13378 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
13380 case ${cf_cv_ncurses_header:-curses.h} in #(vi
13382 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
13383 cf_header_list="$cf_header_item $cf_header_list"
13387 for cf_header in $cf_header_list
13389 cat >conftest.$ac_ext <<_ACEOF
13390 #line 13390 "configure"
13391 #include "confdefs.h"
13393 #include <${cf_cv_ncurses_header:-curses.h}>
13394 #include <${cf_header}>
13403 rm -f conftest.$ac_objext
13404 if { (eval echo "$as_me:13404: \"$ac_compile\"") >&5
13405 (eval $ac_compile) 2>&5
13407 echo "$as_me:13407: \$? = $ac_status" >&5
13408 (exit $ac_status); } &&
13409 { ac_try='test -s conftest.$ac_objext'
13410 { (eval echo "$as_me:13410: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13413 echo "$as_me:13413: \$? = $ac_status" >&5
13414 (exit $ac_status); }; }; then
13415 cf_cv_term_header=$cf_header
13418 echo "$as_me: failed program was:" >&5
13419 cat conftest.$ac_ext >&5
13420 cf_cv_term_header=no
13422 rm -f conftest.$ac_objext conftest.$ac_ext
13425 case $cf_cv_term_header in #(vi
13427 # If curses is ncurses, some packagers still mess it up by trying to make
13428 # us use GNU termcap. This handles the most common case.
13429 for cf_header in ncurses/term.h ncursesw/term.h
13431 cat >conftest.$ac_ext <<_ACEOF
13432 #line 13432 "configure"
13433 #include "confdefs.h"
13435 #include <${cf_cv_ncurses_header:-curses.h}>
13436 #ifdef NCURSES_VERSION
13437 #include <${cf_header}>
13449 rm -f conftest.$ac_objext
13450 if { (eval echo "$as_me:13450: \"$ac_compile\"") >&5
13451 (eval $ac_compile) 2>&5
13453 echo "$as_me:13453: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -s conftest.$ac_objext'
13456 { (eval echo "$as_me:13456: \"$ac_try\"") >&5
13457 (eval $ac_try) 2>&5
13459 echo "$as_me:13459: \$? = $ac_status" >&5
13460 (exit $ac_status); }; }; then
13461 cf_cv_term_header=$cf_header
13464 echo "$as_me: failed program was:" >&5
13465 cat conftest.$ac_ext >&5
13466 cf_cv_term_header=no
13468 rm -f conftest.$ac_objext conftest.$ac_ext
13474 echo "$as_me:13474: result: $cf_cv_term_header" >&5
13475 echo "${ECHO_T}$cf_cv_term_header" >&6
13477 case $cf_cv_term_header in #(vi
13479 cat >>confdefs.h <<\EOF
13480 #define HAVE_TERM_H 1
13484 ncurses/term.h) #(vi
13485 cat >>confdefs.h <<\EOF
13486 #define HAVE_NCURSES_TERM_H 1
13491 cat >>confdefs.h <<\EOF
13492 #define HAVE_NCURSESW_TERM_H 1
13498 echo "$as_me:13498: checking for unctrl.h" >&5
13499 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
13500 if test "${cf_cv_unctrl_header+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13504 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
13505 # for <unctrl.h> if we do not find the variant.
13507 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
13509 case ${cf_cv_ncurses_header:-curses.h} in #(vi
13511 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
13512 cf_header_list="$cf_header_item $cf_header_list"
13516 for cf_header in $cf_header_list
13518 cat >conftest.$ac_ext <<_ACEOF
13519 #line 13519 "configure"
13520 #include "confdefs.h"
13522 #include <${cf_cv_ncurses_header:-curses.h}>
13523 #include <${cf_header}>
13532 rm -f conftest.$ac_objext
13533 if { (eval echo "$as_me:13533: \"$ac_compile\"") >&5
13534 (eval $ac_compile) 2>&5
13536 echo "$as_me:13536: \$? = $ac_status" >&5
13537 (exit $ac_status); } &&
13538 { ac_try='test -s conftest.$ac_objext'
13539 { (eval echo "$as_me:13539: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13542 echo "$as_me:13542: \$? = $ac_status" >&5
13543 (exit $ac_status); }; }; then
13544 cf_cv_unctrl_header=$cf_header
13547 echo "$as_me: failed program was:" >&5
13548 cat conftest.$ac_ext >&5
13549 cf_cv_unctrl_header=no
13551 rm -f conftest.$ac_objext conftest.$ac_ext
13554 case $cf_cv_unctrl_header in #(vi
13556 { echo "$as_me:13556: WARNING: unctrl.h header not found" >&5
13557 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
13562 echo "$as_me:13562: result: $cf_cv_unctrl_header" >&5
13563 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
13565 case $cf_cv_unctrl_header in #(vi
13567 cat >>confdefs.h <<\EOF
13568 #define HAVE_UNCTRL_H 1
13572 ncurses/unctrl.h) #(vi
13573 cat >>confdefs.h <<\EOF
13574 #define HAVE_NCURSES_UNCTRL_H 1
13579 cat >>confdefs.h <<\EOF
13580 #define HAVE_NCURSESW_UNCTRL_H 1
13587 assume_default_colors \
13613 use_default_colors \
13625 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13627 echo "$as_me:13627: checking for ${cf_func}" >&5
13628 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
13630 echo "${as_me:-configure}:13630: testing ${cf_func} ..." 1>&5
13632 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
13633 echo $ECHO_N "(cached) $ECHO_C" >&6
13636 eval cf_result='$ac_cv_func_'$cf_func
13637 if test ".$cf_result" != ".no"; then
13638 cat >conftest.$ac_ext <<_ACEOF
13639 #line 13639 "configure"
13640 #include "confdefs.h"
13642 #ifdef HAVE_XCURSES
13643 #include <xcurses.h>
13644 char * XCursesProgramName = "test";
13646 #include <${cf_cv_ncurses_header:-curses.h}>
13647 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
13648 #include <ncursesw/term.h>
13649 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
13650 #include <ncurses/term.h>
13651 #elif defined(HAVE_TERM_H)
13661 long foo = (long)(&${cf_func});
13662 if (foo + 1234 > 5678)
13663 ${cf_cv_main_return:-return}(foo);
13670 rm -f conftest.$ac_objext conftest$ac_exeext
13671 if { (eval echo "$as_me:13671: \"$ac_link\"") >&5
13672 (eval $ac_link) 2>&5
13674 echo "$as_me:13674: \$? = $ac_status" >&5
13675 (exit $ac_status); } &&
13676 { ac_try='test -s conftest$ac_exeext'
13677 { (eval echo "$as_me:13677: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13680 echo "$as_me:13680: \$? = $ac_status" >&5
13681 (exit $ac_status); }; }; then
13684 echo "$as_me: failed program was:" >&5
13685 cat conftest.$ac_ext >&5
13688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13690 eval 'cf_cv_func_'$cf_func'=$cf_result'
13694 # use the computed/retrieved cache-value:
13695 eval 'cf_result=$cf_cv_func_'$cf_func
13696 echo "$as_me:13696: result: $cf_result" >&5
13697 echo "${ECHO_T}$cf_result" >&6
13698 if test $cf_result != no; then
13699 cat >>confdefs.h <<EOF
13700 #define HAVE_${cf_tr_func} 1
13706 for cf_func in tputs
13709 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13711 echo "$as_me:13711: checking for ${cf_func}" >&5
13712 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
13714 echo "${as_me:-configure}:13714: testing ${cf_func} ..." 1>&5
13716 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
13717 echo $ECHO_N "(cached) $ECHO_C" >&6
13720 eval cf_result='$ac_cv_func_'$cf_func
13721 if test ".$cf_result" != ".no"; then
13722 cat >conftest.$ac_ext <<_ACEOF
13723 #line 13723 "configure"
13724 #include "confdefs.h"
13726 #ifdef HAVE_XCURSES
13727 #include <xcurses.h>
13728 char * XCursesProgramName = "test";
13730 #include <${cf_cv_ncurses_header:-curses.h}>
13731 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
13732 #include <ncursesw/term.h>
13733 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
13734 #include <ncurses/term.h>
13735 #elif defined(HAVE_TERM_H)
13745 long foo = (long)(&${cf_func});
13746 if (foo + 1234 > 5678)
13747 ${cf_cv_main_return:-return}(foo);
13754 rm -f conftest.$ac_objext conftest$ac_exeext
13755 if { (eval echo "$as_me:13755: \"$ac_link\"") >&5
13756 (eval $ac_link) 2>&5
13758 echo "$as_me:13758: \$? = $ac_status" >&5
13759 (exit $ac_status); } &&
13760 { ac_try='test -s conftest$ac_exeext'
13761 { (eval echo "$as_me:13761: \"$ac_try\"") >&5
13762 (eval $ac_try) 2>&5
13764 echo "$as_me:13764: \$? = $ac_status" >&5
13765 (exit $ac_status); }; }; then
13768 echo "$as_me: failed program was:" >&5
13769 cat conftest.$ac_ext >&5
13772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13774 eval 'cf_cv_func_'$cf_func'=$cf_result'
13778 # use the computed/retrieved cache-value:
13779 eval 'cf_result=$cf_cv_func_'$cf_func
13780 echo "$as_me:13780: result: $cf_result" >&5
13781 echo "${ECHO_T}$cf_result" >&6
13782 if test $cf_result != no; then
13783 cat >>confdefs.h <<EOF
13784 #define HAVE_${cf_tr_func} 1
13790 if test x$cf_cv_func_tputs = xyes
13793 for cf_arg in int char
13795 for cf_ret in int void
13797 if test $cf_ret = void
13799 cf_return="/* nothing */"
13801 cf_return="return value"
13803 cat >conftest.$ac_ext <<_ACEOF
13804 #line 13804 "configure"
13805 #include "confdefs.h"
13807 #include <${cf_cv_ncurses_header:-curses.h}>
13808 #include <$cf_cv_term_header>
13810 static $cf_ret outc($cf_arg value) { $cf_return; }
13816 tputs("hello", 0, outc);
13817 ${cf_cv_main_return:-return}(0);
13823 rm -f conftest.$ac_objext
13824 if { (eval echo "$as_me:13824: \"$ac_compile\"") >&5
13825 (eval $ac_compile) 2>&5
13827 echo "$as_me:13827: \$? = $ac_status" >&5
13828 (exit $ac_status); } &&
13829 { ac_try='test -s conftest.$ac_objext'
13830 { (eval echo "$as_me:13830: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13833 echo "$as_me:13833: \$? = $ac_status" >&5
13834 (exit $ac_status); }; }; then
13836 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
13838 echo "${as_me:-configure}:13838: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
13840 cat >>confdefs.h <<EOF
13841 #define TPUTS_ARG $cf_arg
13842 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
13843 #define TPUTS_RETURN(value) $cf_return
13849 echo "$as_me: failed program was:" >&5
13850 cat conftest.$ac_ext >&5
13852 rm -f conftest.$ac_objext conftest.$ac_ext
13854 test $cf_done = yes && break
13858 echo "$as_me:13858: checking for ncurses extended functions" >&5
13859 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
13860 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
13861 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 cat >conftest.$ac_ext <<_ACEOF
13865 #line 13865 "configure"
13866 #include "confdefs.h"
13868 #include <${cf_cv_ncurses_header:-curses.h}>
13873 int x = NCURSES_EXT_FUNCS
13879 rm -f conftest.$ac_objext
13880 if { (eval echo "$as_me:13880: \"$ac_compile\"") >&5
13881 (eval $ac_compile) 2>&5
13883 echo "$as_me:13883: \$? = $ac_status" >&5
13884 (exit $ac_status); } &&
13885 { ac_try='test -s conftest.$ac_objext'
13886 { (eval echo "$as_me:13886: \"$ac_try\"") >&5
13887 (eval $ac_try) 2>&5
13889 echo "$as_me:13889: \$? = $ac_status" >&5
13890 (exit $ac_status); }; }; then
13891 cf_cv_ncurses_ext_funcs=defined
13893 echo "$as_me: failed program was:" >&5
13894 cat conftest.$ac_ext >&5
13896 cat >conftest.$ac_ext <<_ACEOF
13897 #line 13897 "configure"
13898 #include "confdefs.h"
13900 #include <${cf_cv_ncurses_header:-curses.h}>
13905 (void) assume_default_colors (0, 0);
13906 (void) curses_version ();
13907 (void) define_key (0, 0);
13908 (void) is_term_resized (0, 0);
13909 (void) key_defined (0);
13910 (void) keybound (0, 0);
13911 (void) keyok (0, 0);
13912 (void) resize_term (0, 0);
13913 (void) resizeterm (0, 0);
13914 (void) use_default_colors ();
13915 (void) use_extended_names (0);
13916 (void) wresize (0, 0, 0);
13921 rm -f conftest.$ac_objext conftest$ac_exeext
13922 if { (eval echo "$as_me:13922: \"$ac_link\"") >&5
13923 (eval $ac_link) 2>&5
13925 echo "$as_me:13925: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
13927 { ac_try='test -s conftest$ac_exeext'
13928 { (eval echo "$as_me:13928: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13931 echo "$as_me:13931: \$? = $ac_status" >&5
13932 (exit $ac_status); }; }; then
13933 cf_cv_ncurses_ext_funcs=yes
13935 echo "$as_me: failed program was:" >&5
13936 cat conftest.$ac_ext >&5
13937 cf_cv_ncurses_ext_funcs=no
13939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13942 rm -f conftest.$ac_objext conftest.$ac_ext
13945 echo "$as_me:13945: result: $cf_cv_ncurses_ext_funcs" >&5
13946 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
13947 test "$cf_cv_ncurses_ext_funcs" = yes && cat >>confdefs.h <<\EOF
13948 #define NCURSES_EXT_FUNCS 1
13951 if test "$cf_enable_widec" = yes
13953 echo "$as_me:13953: checking for wide-character functions" >&5
13954 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
13955 if test "${cf_cv_widechar_funcs+set}" = set; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 cat >conftest.$ac_ext <<_ACEOF
13960 #line 13960 "configure"
13961 #include "confdefs.h"
13963 #include <${cf_cv_ncurses_header:-curses.h}>
13968 static wchar_t src_wchar[2];
13969 static cchar_t dst_cchar;
13970 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
13976 rm -f conftest.$ac_objext conftest$ac_exeext
13977 if { (eval echo "$as_me:13977: \"$ac_link\"") >&5
13978 (eval $ac_link) 2>&5
13980 echo "$as_me:13980: \$? = $ac_status" >&5
13981 (exit $ac_status); } &&
13982 { ac_try='test -s conftest$ac_exeext'
13983 { (eval echo "$as_me:13983: \"$ac_try\"") >&5
13984 (eval $ac_try) 2>&5
13986 echo "$as_me:13986: \$? = $ac_status" >&5
13987 (exit $ac_status); }; }; then
13988 cf_cv_widechar_funcs=yes
13990 echo "$as_me: failed program was:" >&5
13991 cat conftest.$ac_ext >&5
13992 cf_cv_widechar_funcs=no
13994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13997 echo "$as_me:13997: result: $cf_cv_widechar_funcs" >&5
13998 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
13999 if test "$cf_cv_widechar_funcs" != no ; then
14000 cat >>confdefs.h <<\EOF
14001 #define USE_WIDEC_SUPPORT 1
14005 cat >>confdefs.h <<\EOF
14006 #define USE_WIDEC_SUPPORT 0
14011 cat >>confdefs.h <<\EOF
14012 #define USE_WIDEC_SUPPORT 0
14017 echo "$as_me:14017: checking if sys/time.h works with sys/select.h" >&5
14018 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
14019 if test "${cf_cv_sys_time_select+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14023 cat >conftest.$ac_ext <<_ACEOF
14024 #line 14024 "configure"
14025 #include "confdefs.h"
14027 #include <sys/types.h>
14028 #ifdef HAVE_SYS_TIME_H
14029 #include <sys/time.h>
14031 #ifdef HAVE_SYS_SELECT_H
14032 #include <sys/select.h>
14043 rm -f conftest.$ac_objext
14044 if { (eval echo "$as_me:14044: \"$ac_compile\"") >&5
14045 (eval $ac_compile) 2>&5
14047 echo "$as_me:14047: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -s conftest.$ac_objext'
14050 { (eval echo "$as_me:14050: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14053 echo "$as_me:14053: \$? = $ac_status" >&5
14054 (exit $ac_status); }; }; then
14055 cf_cv_sys_time_select=yes
14057 echo "$as_me: failed program was:" >&5
14058 cat conftest.$ac_ext >&5
14059 cf_cv_sys_time_select=no
14061 rm -f conftest.$ac_objext conftest.$ac_ext
14065 echo "$as_me:14065: result: $cf_cv_sys_time_select" >&5
14066 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
14067 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
14068 #define HAVE_SYS_TIME_SELECT 1
14071 echo "$as_me:14071: checking for function curses_version" >&5
14072 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
14073 if test "${cf_cv_func_curses_version+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14077 if test "$cross_compiling" = yes; then
14078 cf_cv_func_curses_version=unknown
14080 cat >conftest.$ac_ext <<_ACEOF
14081 #line 14081 "configure"
14082 #include "confdefs.h"
14084 #include <${cf_cv_ncurses_header:-curses.h}>
14088 sprintf(temp, "%s\n", curses_version());
14089 ${cf_cv_main_return:-return}(0);
14093 rm -f conftest$ac_exeext
14094 if { (eval echo "$as_me:14094: \"$ac_link\"") >&5
14095 (eval $ac_link) 2>&5
14097 echo "$as_me:14097: \$? = $ac_status" >&5
14098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14099 { (eval echo "$as_me:14099: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14102 echo "$as_me:14102: \$? = $ac_status" >&5
14103 (exit $ac_status); }; }; then
14104 cf_cv_func_curses_version=yes
14107 echo "$as_me: program exited with status $ac_status" >&5
14108 echo "$as_me: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14110 cf_cv_func_curses_version=no
14113 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14117 echo "$as_me:14117: result: $cf_cv_func_curses_version" >&5
14118 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
14119 test "$cf_cv_func_curses_version" = yes && cat >>confdefs.h <<\EOF
14120 #define HAVE_CURSES_VERSION 1
14123 echo "$as_me:14123: checking for ncurses wrap-prefix" >&5
14124 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
14126 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
14127 if test "${with_ncurses_wrap_prefix+set}" = set; then
14128 withval="$with_ncurses_wrap_prefix"
14129 NCURSES_WRAP_PREFIX=$withval
14131 NCURSES_WRAP_PREFIX=_nc_
14133 echo "$as_me:14133: result: $NCURSES_WRAP_PREFIX" >&5
14134 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
14136 echo "$as_me:14136: checking for alternate character set array" >&5
14137 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
14138 if test "${cf_cv_curses_acs_map+set}" = set; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 cf_cv_curses_acs_map=unknown
14143 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
14145 cat >conftest.$ac_ext <<_ACEOF
14146 #line 14146 "configure"
14147 #include "confdefs.h"
14149 #include <${cf_cv_ncurses_header:-curses.h}>
14155 $name['k'] = ACS_PLUS
14161 rm -f conftest.$ac_objext conftest$ac_exeext
14162 if { (eval echo "$as_me:14162: \"$ac_link\"") >&5
14163 (eval $ac_link) 2>&5
14165 echo "$as_me:14165: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
14167 { ac_try='test -s conftest$ac_exeext'
14168 { (eval echo "$as_me:14168: \"$ac_try\"") >&5
14169 (eval $ac_try) 2>&5
14171 echo "$as_me:14171: \$? = $ac_status" >&5
14172 (exit $ac_status); }; }; then
14173 cf_cv_curses_acs_map=$name; break
14175 echo "$as_me: failed program was:" >&5
14176 cat conftest.$ac_ext >&5
14178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14182 echo "$as_me:14182: result: $cf_cv_curses_acs_map" >&5
14183 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
14185 test "$cf_cv_curses_acs_map" != unknown && cat >>confdefs.h <<EOF
14186 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
14189 if test "$cf_enable_widec" = yes; then
14191 echo "$as_me:14191: checking for wide alternate character set array" >&5
14192 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
14193 if test "${cf_cv_curses_wacs_map+set}" = set; then
14194 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 cf_cv_curses_wacs_map=unknown
14198 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
14200 cat >conftest.$ac_ext <<_ACEOF
14201 #line 14201 "configure"
14202 #include "confdefs.h"
14204 #ifndef _XOPEN_SOURCE_EXTENDED
14205 #define _XOPEN_SOURCE_EXTENDED
14207 #include <${cf_cv_ncurses_header:-curses.h}>
14211 void *foo = &($name['k'])
14216 rm -f conftest.$ac_objext conftest$ac_exeext
14217 if { (eval echo "$as_me:14217: \"$ac_link\"") >&5
14218 (eval $ac_link) 2>&5
14220 echo "$as_me:14220: \$? = $ac_status" >&5
14221 (exit $ac_status); } &&
14222 { ac_try='test -s conftest$ac_exeext'
14223 { (eval echo "$as_me:14223: \"$ac_try\"") >&5
14224 (eval $ac_try) 2>&5
14226 echo "$as_me:14226: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 cf_cv_curses_wacs_map=$name
14231 echo "$as_me: failed program was:" >&5
14232 cat conftest.$ac_ext >&5
14234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14237 echo "$as_me:14237: result: $cf_cv_curses_wacs_map" >&5
14238 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
14240 test "$cf_cv_curses_wacs_map" != unknown && cat >>confdefs.h <<EOF
14241 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
14244 echo "$as_me:14244: checking for wide alternate character constants" >&5
14245 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
14246 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 cf_cv_curses_wacs_symbols=no
14251 if test "$cf_cv_curses_wacs_map" != unknown
14253 cat >conftest.$ac_ext <<_ACEOF
14254 #line 14254 "configure"
14255 #include "confdefs.h"
14257 #ifndef _XOPEN_SOURCE_EXTENDED
14258 #define _XOPEN_SOURCE_EXTENDED
14260 #include <${cf_cv_ncurses_header:-curses.h}>
14264 cchar_t *foo = WACS_PLUS;
14265 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
14270 rm -f conftest.$ac_objext conftest$ac_exeext
14271 if { (eval echo "$as_me:14271: \"$ac_link\"") >&5
14272 (eval $ac_link) 2>&5
14274 echo "$as_me:14274: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
14276 { ac_try='test -s conftest$ac_exeext'
14277 { (eval echo "$as_me:14277: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14280 echo "$as_me:14280: \$? = $ac_status" >&5
14281 (exit $ac_status); }; }; then
14282 cf_cv_curses_wacs_symbols=yes
14284 echo "$as_me: failed program was:" >&5
14285 cat conftest.$ac_ext >&5
14287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14289 cat >conftest.$ac_ext <<_ACEOF
14290 #line 14290 "configure"
14291 #include "confdefs.h"
14293 #ifndef _XOPEN_SOURCE_EXTENDED
14294 #define _XOPEN_SOURCE_EXTENDED
14296 #include <${cf_cv_ncurses_header:-curses.h}>
14300 cchar_t *foo = WACS_PLUS
14305 rm -f conftest.$ac_objext conftest$ac_exeext
14306 if { (eval echo "$as_me:14306: \"$ac_link\"") >&5
14307 (eval $ac_link) 2>&5
14309 echo "$as_me:14309: \$? = $ac_status" >&5
14310 (exit $ac_status); } &&
14311 { ac_try='test -s conftest$ac_exeext'
14312 { (eval echo "$as_me:14312: \"$ac_try\"") >&5
14313 (eval $ac_try) 2>&5
14315 echo "$as_me:14315: \$? = $ac_status" >&5
14316 (exit $ac_status); }; }; then
14317 cf_cv_curses_wacs_symbols=yes
14319 echo "$as_me: failed program was:" >&5
14320 cat conftest.$ac_ext >&5
14322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14326 echo "$as_me:14326: result: $cf_cv_curses_wacs_symbols" >&5
14327 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
14329 test "$cf_cv_curses_wacs_symbols" != no && cat >>confdefs.h <<\EOF
14330 #define CURSES_WACS_SYMBOLS 1
14335 echo "$as_me:14335: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
14336 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14337 cat >conftest.$ac_ext <<_ACEOF
14338 #line 14338 "configure"
14339 #include "confdefs.h"
14341 #ifndef _XOPEN_SOURCE_EXTENDED
14342 #define _XOPEN_SOURCE_EXTENDED
14344 #include <${cf_cv_ncurses_header:-curses.h}>
14355 rm -f conftest.$ac_objext
14356 if { (eval echo "$as_me:14356: \"$ac_compile\"") >&5
14357 (eval $ac_compile) 2>&5
14359 echo "$as_me:14359: \$? = $ac_status" >&5
14360 (exit $ac_status); } &&
14361 { ac_try='test -s conftest.$ac_objext'
14362 { (eval echo "$as_me:14362: \"$ac_try\"") >&5
14363 (eval $ac_try) 2>&5
14365 echo "$as_me:14365: \$? = $ac_status" >&5
14366 (exit $ac_status); }; }; then
14369 echo "$as_me: failed program was:" >&5
14370 cat conftest.$ac_ext >&5
14373 rm -f conftest.$ac_objext conftest.$ac_ext
14374 echo "$as_me:14374: result: $cf_result" >&5
14375 echo "${ECHO_T}$cf_result" >&6
14376 if test $cf_result = yes ; then
14378 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14380 cat >>confdefs.h <<EOF
14381 #define $cf_result 1
14385 cat >>confdefs.h <<EOF
14386 #define attr_t long
14391 if test "$cf_enable_widec" = yes; then
14393 # This is needed on Tru64 5.0 to declare mbstate_t
14394 echo "$as_me:14394: checking if we must include wchar.h to declare mbstate_t" >&5
14395 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
14396 if test "${cf_cv_mbstate_t+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 cat >conftest.$ac_ext <<_ACEOF
14401 #line 14401 "configure"
14402 #include "confdefs.h"
14404 #include <stdlib.h>
14405 #include <stdarg.h>
14407 #ifdef HAVE_LIBUTF8_H
14408 #include <libutf8.h>
14418 rm -f conftest.$ac_objext
14419 if { (eval echo "$as_me:14419: \"$ac_compile\"") >&5
14420 (eval $ac_compile) 2>&5
14422 echo "$as_me:14422: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
14424 { ac_try='test -s conftest.$ac_objext'
14425 { (eval echo "$as_me:14425: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14428 echo "$as_me:14428: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14432 echo "$as_me: failed program was:" >&5
14433 cat conftest.$ac_ext >&5
14434 cat >conftest.$ac_ext <<_ACEOF
14435 #line 14435 "configure"
14436 #include "confdefs.h"
14438 #include <stdlib.h>
14439 #include <stdarg.h>
14442 #ifdef HAVE_LIBUTF8_H
14443 #include <libutf8.h>
14453 rm -f conftest.$ac_objext
14454 if { (eval echo "$as_me:14454: \"$ac_compile\"") >&5
14455 (eval $ac_compile) 2>&5
14457 echo "$as_me:14457: \$? = $ac_status" >&5
14458 (exit $ac_status); } &&
14459 { ac_try='test -s conftest.$ac_objext'
14460 { (eval echo "$as_me:14460: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14463 echo "$as_me:14463: \$? = $ac_status" >&5
14464 (exit $ac_status); }; }; then
14465 cf_cv_mbstate_t=yes
14467 echo "$as_me: failed program was:" >&5
14468 cat conftest.$ac_ext >&5
14469 cf_cv_mbstate_t=unknown
14471 rm -f conftest.$ac_objext conftest.$ac_ext
14473 rm -f conftest.$ac_objext conftest.$ac_ext
14475 echo "$as_me:14475: result: $cf_cv_mbstate_t" >&5
14476 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
14478 if test "$cf_cv_mbstate_t" = yes ; then
14479 cat >>confdefs.h <<\EOF
14480 #define NEED_WCHAR_H 1
14486 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
14487 if test "$cf_cv_mbstate_t" = unknown ; then
14488 NCURSES_MBSTATE_T=1
14491 # if we find mbstate_t in either place, use substitution to provide a fallback.
14492 if test "$cf_cv_mbstate_t" != unknown ; then
14493 NCURSES_OK_MBSTATE_T=1
14496 # This is needed on Tru64 5.0 to declare wchar_t
14497 echo "$as_me:14497: checking if we must include wchar.h to declare wchar_t" >&5
14498 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
14499 if test "${cf_cv_wchar_t+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 cat >conftest.$ac_ext <<_ACEOF
14504 #line 14504 "configure"
14505 #include "confdefs.h"
14507 #include <stdlib.h>
14508 #include <stdarg.h>
14510 #ifdef HAVE_LIBUTF8_H
14511 #include <libutf8.h>
14521 rm -f conftest.$ac_objext
14522 if { (eval echo "$as_me:14522: \"$ac_compile\"") >&5
14523 (eval $ac_compile) 2>&5
14525 echo "$as_me:14525: \$? = $ac_status" >&5
14526 (exit $ac_status); } &&
14527 { ac_try='test -s conftest.$ac_objext'
14528 { (eval echo "$as_me:14528: \"$ac_try\"") >&5
14529 (eval $ac_try) 2>&5
14531 echo "$as_me:14531: \$? = $ac_status" >&5
14532 (exit $ac_status); }; }; then
14535 echo "$as_me: failed program was:" >&5
14536 cat conftest.$ac_ext >&5
14537 cat >conftest.$ac_ext <<_ACEOF
14538 #line 14538 "configure"
14539 #include "confdefs.h"
14541 #include <stdlib.h>
14542 #include <stdarg.h>
14545 #ifdef HAVE_LIBUTF8_H
14546 #include <libutf8.h>
14556 rm -f conftest.$ac_objext
14557 if { (eval echo "$as_me:14557: \"$ac_compile\"") >&5
14558 (eval $ac_compile) 2>&5
14560 echo "$as_me:14560: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
14562 { ac_try='test -s conftest.$ac_objext'
14563 { (eval echo "$as_me:14563: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14566 echo "$as_me:14566: \$? = $ac_status" >&5
14567 (exit $ac_status); }; }; then
14570 echo "$as_me: failed program was:" >&5
14571 cat conftest.$ac_ext >&5
14572 cf_cv_wchar_t=unknown
14574 rm -f conftest.$ac_objext conftest.$ac_ext
14576 rm -f conftest.$ac_objext conftest.$ac_ext
14578 echo "$as_me:14578: result: $cf_cv_wchar_t" >&5
14579 echo "${ECHO_T}$cf_cv_wchar_t" >&6
14581 if test "$cf_cv_wchar_t" = yes ; then
14582 cat >>confdefs.h <<\EOF
14583 #define NEED_WCHAR_H 1
14589 # if we do not find wchar_t in either place, use substitution to provide a fallback.
14590 if test "$cf_cv_wchar_t" = unknown ; then
14594 # if we find wchar_t in either place, use substitution to provide a fallback.
14595 if test "$cf_cv_wchar_t" != unknown ; then
14596 NCURSES_OK_WCHAR_T=1
14599 # This is needed on Tru64 5.0 to declare wint_t
14600 echo "$as_me:14600: checking if we must include wchar.h to declare wint_t" >&5
14601 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
14602 if test "${cf_cv_wint_t+set}" = set; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 cat >conftest.$ac_ext <<_ACEOF
14607 #line 14607 "configure"
14608 #include "confdefs.h"
14610 #include <stdlib.h>
14611 #include <stdarg.h>
14613 #ifdef HAVE_LIBUTF8_H
14614 #include <libutf8.h>
14624 rm -f conftest.$ac_objext
14625 if { (eval echo "$as_me:14625: \"$ac_compile\"") >&5
14626 (eval $ac_compile) 2>&5
14628 echo "$as_me:14628: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -s conftest.$ac_objext'
14631 { (eval echo "$as_me:14631: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14634 echo "$as_me:14634: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14638 echo "$as_me: failed program was:" >&5
14639 cat conftest.$ac_ext >&5
14640 cat >conftest.$ac_ext <<_ACEOF
14641 #line 14641 "configure"
14642 #include "confdefs.h"
14644 #include <stdlib.h>
14645 #include <stdarg.h>
14648 #ifdef HAVE_LIBUTF8_H
14649 #include <libutf8.h>
14659 rm -f conftest.$ac_objext
14660 if { (eval echo "$as_me:14660: \"$ac_compile\"") >&5
14661 (eval $ac_compile) 2>&5
14663 echo "$as_me:14663: \$? = $ac_status" >&5
14664 (exit $ac_status); } &&
14665 { ac_try='test -s conftest.$ac_objext'
14666 { (eval echo "$as_me:14666: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14669 echo "$as_me:14669: \$? = $ac_status" >&5
14670 (exit $ac_status); }; }; then
14673 echo "$as_me: failed program was:" >&5
14674 cat conftest.$ac_ext >&5
14675 cf_cv_wint_t=unknown
14677 rm -f conftest.$ac_objext conftest.$ac_ext
14679 rm -f conftest.$ac_objext conftest.$ac_ext
14681 echo "$as_me:14681: result: $cf_cv_wint_t" >&5
14682 echo "${ECHO_T}$cf_cv_wint_t" >&6
14684 if test "$cf_cv_wint_t" = yes ; then
14685 cat >>confdefs.h <<\EOF
14686 #define NEED_WCHAR_H 1
14692 # if we do not find wint_t in either place, use substitution to provide a fallback.
14693 if test "$cf_cv_wint_t" = unknown ; then
14697 # if we find wint_t in either place, use substitution to provide a fallback.
14698 if test "$cf_cv_wint_t" != unknown ; then
14699 NCURSES_OK_WINT_T=1
14702 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
14704 echo "$as_me:14704: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
14705 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14706 cat >conftest.$ac_ext <<_ACEOF
14707 #line 14707 "configure"
14708 #include "confdefs.h"
14710 #ifndef _XOPEN_SOURCE_EXTENDED
14711 #define _XOPEN_SOURCE_EXTENDED
14713 #include <${cf_cv_ncurses_header:-curses.h}>
14724 rm -f conftest.$ac_objext
14725 if { (eval echo "$as_me:14725: \"$ac_compile\"") >&5
14726 (eval $ac_compile) 2>&5
14728 echo "$as_me:14728: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
14730 { ac_try='test -s conftest.$ac_objext'
14731 { (eval echo "$as_me:14731: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14734 echo "$as_me:14734: \$? = $ac_status" >&5
14735 (exit $ac_status); }; }; then
14738 echo "$as_me: failed program was:" >&5
14739 cat conftest.$ac_ext >&5
14742 rm -f conftest.$ac_objext conftest.$ac_ext
14743 echo "$as_me:14743: result: $cf_result" >&5
14744 echo "${ECHO_T}$cf_result" >&6
14745 if test $cf_result = yes ; then
14747 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14749 cat >>confdefs.h <<EOF
14750 #define $cf_result 1
14754 cat >>confdefs.h <<EOF
14755 #define mbstate_t long
14762 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
14764 echo "$as_me:14764: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
14765 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14766 cat >conftest.$ac_ext <<_ACEOF
14767 #line 14767 "configure"
14768 #include "confdefs.h"
14770 #ifndef _XOPEN_SOURCE_EXTENDED
14771 #define _XOPEN_SOURCE_EXTENDED
14773 #include <${cf_cv_ncurses_header:-curses.h}>
14784 rm -f conftest.$ac_objext
14785 if { (eval echo "$as_me:14785: \"$ac_compile\"") >&5
14786 (eval $ac_compile) 2>&5
14788 echo "$as_me:14788: \$? = $ac_status" >&5
14789 (exit $ac_status); } &&
14790 { ac_try='test -s conftest.$ac_objext'
14791 { (eval echo "$as_me:14791: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14794 echo "$as_me:14794: \$? = $ac_status" >&5
14795 (exit $ac_status); }; }; then
14798 echo "$as_me: failed program was:" >&5
14799 cat conftest.$ac_ext >&5
14802 rm -f conftest.$ac_objext conftest.$ac_ext
14803 echo "$as_me:14803: result: $cf_result" >&5
14804 echo "${ECHO_T}$cf_result" >&6
14805 if test $cf_result = yes ; then
14807 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14809 cat >>confdefs.h <<EOF
14810 #define $cf_result 1
14814 cat >>confdefs.h <<EOF
14815 #define wchar_t long
14822 if test "$NCURSES_OK_WINT_T" = 0 ; then
14824 echo "$as_me:14824: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
14825 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14826 cat >conftest.$ac_ext <<_ACEOF
14827 #line 14827 "configure"
14828 #include "confdefs.h"
14830 #ifndef _XOPEN_SOURCE_EXTENDED
14831 #define _XOPEN_SOURCE_EXTENDED
14833 #include <${cf_cv_ncurses_header:-curses.h}>
14844 rm -f conftest.$ac_objext
14845 if { (eval echo "$as_me:14845: \"$ac_compile\"") >&5
14846 (eval $ac_compile) 2>&5
14848 echo "$as_me:14848: \$? = $ac_status" >&5
14849 (exit $ac_status); } &&
14850 { ac_try='test -s conftest.$ac_objext'
14851 { (eval echo "$as_me:14851: \"$ac_try\"") >&5
14852 (eval $ac_try) 2>&5
14854 echo "$as_me:14854: \$? = $ac_status" >&5
14855 (exit $ac_status); }; }; then
14858 echo "$as_me: failed program was:" >&5
14859 cat conftest.$ac_ext >&5
14862 rm -f conftest.$ac_objext conftest.$ac_ext
14863 echo "$as_me:14863: result: $cf_result" >&5
14864 echo "${ECHO_T}$cf_result" >&6
14865 if test $cf_result = yes ; then
14867 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14869 cat >>confdefs.h <<EOF
14870 #define $cf_result 1
14874 cat >>confdefs.h <<EOF
14875 #define wint_t long
14883 echo "$as_me:14883: checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
14884 echo $ECHO_N "checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14886 cat >conftest.$ac_ext <<_ACEOF
14887 #line 14887 "configure"
14888 #include "confdefs.h"
14890 #ifdef HAVE_XCURSES
14891 #include <xcurses.h>
14892 char * XCursesProgramName = "test";
14894 #include <${cf_cv_ncurses_header:-curses.h}>
14895 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14896 #include <ncursesw/term.h>
14897 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14898 #include <ncurses/term.h>
14899 #elif defined(HAVE_TERM_H)
14908 void *foo = &(boolnames)
14914 rm -f conftest.$ac_objext
14915 if { (eval echo "$as_me:14915: \"$ac_compile\"") >&5
14916 (eval $ac_compile) 2>&5
14918 echo "$as_me:14918: \$? = $ac_status" >&5
14919 (exit $ac_status); } &&
14920 { ac_try='test -s conftest.$ac_objext'
14921 { (eval echo "$as_me:14921: \"$ac_try\"") >&5
14922 (eval $ac_try) 2>&5
14924 echo "$as_me:14924: \$? = $ac_status" >&5
14925 (exit $ac_status); }; }; then
14928 echo "$as_me: failed program was:" >&5
14929 cat conftest.$ac_ext >&5
14932 rm -f conftest.$ac_objext conftest.$ac_ext
14933 echo "$as_me:14933: result: $cf_result" >&5
14934 echo "${ECHO_T}$cf_result" >&6
14936 if test $cf_result = yes ; then
14938 cf_result=`echo "have_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14940 cat >>confdefs.h <<EOF
14941 #define $cf_result 1
14945 echo "$as_me:14945: checking for data boolnames in library" >&5
14946 echo $ECHO_N "checking for data boolnames in library... $ECHO_C" >&6
14947 # BSD linkers insist on making weak linkage, but resolve at runtime.
14948 if test "$cross_compiling" = yes; then
14951 cat >conftest.$ac_ext <<_ACEOF
14952 #line 14952 "configure"
14953 #include "confdefs.h"
14955 #ifdef HAVE_XCURSES
14956 #include <xcurses.h>
14957 char * XCursesProgramName = "test";
14959 #include <${cf_cv_ncurses_header:-curses.h}>
14960 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14961 #include <ncursesw/term.h>
14962 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14963 #include <ncurses/term.h>
14964 #elif defined(HAVE_TERM_H)
14969 extern char boolnames;
14975 void *foo = &(boolnames);
14976 ${cf_cv_main_return:-return}(foo == 0);
14983 rm -f conftest.$ac_objext conftest$ac_exeext
14984 if { (eval echo "$as_me:14984: \"$ac_link\"") >&5
14985 (eval $ac_link) 2>&5
14987 echo "$as_me:14987: \$? = $ac_status" >&5
14988 (exit $ac_status); } &&
14989 { ac_try='test -s conftest$ac_exeext'
14990 { (eval echo "$as_me:14990: \"$ac_try\"") >&5
14991 (eval $ac_try) 2>&5
14993 echo "$as_me:14993: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14997 echo "$as_me: failed program was:" >&5
14998 cat conftest.$ac_ext >&5
15001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15004 cat >conftest.$ac_ext <<_ACEOF
15005 #line 15005 "configure"
15006 #include "confdefs.h"
15008 #ifdef HAVE_XCURSES
15009 #include <xcurses.h>
15010 char * XCursesProgramName = "test";
15012 #include <${cf_cv_ncurses_header:-curses.h}>
15013 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15014 #include <ncursesw/term.h>
15015 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15016 #include <ncurses/term.h>
15017 #elif defined(HAVE_TERM_H)
15022 extern char boolnames;
15025 void *foo = &(boolnames);
15026 ${cf_cv_main_return:-return}(foo == 0);
15029 rm -f conftest$ac_exeext
15030 if { (eval echo "$as_me:15030: \"$ac_link\"") >&5
15031 (eval $ac_link) 2>&5
15033 echo "$as_me:15033: \$? = $ac_status" >&5
15034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15035 { (eval echo "$as_me:15035: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15038 echo "$as_me:15038: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15042 echo "$as_me: program exited with status $ac_status" >&5
15043 echo "$as_me: failed program was:" >&5
15044 cat conftest.$ac_ext >&5
15047 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15049 echo "$as_me:15049: result: $cf_result" >&5
15050 echo "${ECHO_T}$cf_result" >&6
15051 if test $cf_result = yes ; then
15053 cf_result=`echo "decl_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15055 cat >>confdefs.h <<EOF
15056 #define $cf_result 1
15062 echo "$as_me:15062: checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
15063 echo $ECHO_N "checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15065 cat >conftest.$ac_ext <<_ACEOF
15066 #line 15066 "configure"
15067 #include "confdefs.h"
15069 #ifdef HAVE_XCURSES
15070 #include <xcurses.h>
15071 char * XCursesProgramName = "test";
15073 #include <${cf_cv_ncurses_header:-curses.h}>
15074 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15075 #include <ncursesw/term.h>
15076 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15077 #include <ncurses/term.h>
15078 #elif defined(HAVE_TERM_H)
15087 void *foo = &(boolfnames)
15093 rm -f conftest.$ac_objext
15094 if { (eval echo "$as_me:15094: \"$ac_compile\"") >&5
15095 (eval $ac_compile) 2>&5
15097 echo "$as_me:15097: \$? = $ac_status" >&5
15098 (exit $ac_status); } &&
15099 { ac_try='test -s conftest.$ac_objext'
15100 { (eval echo "$as_me:15100: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15103 echo "$as_me:15103: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15107 echo "$as_me: failed program was:" >&5
15108 cat conftest.$ac_ext >&5
15111 rm -f conftest.$ac_objext conftest.$ac_ext
15112 echo "$as_me:15112: result: $cf_result" >&5
15113 echo "${ECHO_T}$cf_result" >&6
15115 if test $cf_result = yes ; then
15117 cf_result=`echo "have_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15119 cat >>confdefs.h <<EOF
15120 #define $cf_result 1
15124 echo "$as_me:15124: checking for data boolfnames in library" >&5
15125 echo $ECHO_N "checking for data boolfnames in library... $ECHO_C" >&6
15126 # BSD linkers insist on making weak linkage, but resolve at runtime.
15127 if test "$cross_compiling" = yes; then
15130 cat >conftest.$ac_ext <<_ACEOF
15131 #line 15131 "configure"
15132 #include "confdefs.h"
15134 #ifdef HAVE_XCURSES
15135 #include <xcurses.h>
15136 char * XCursesProgramName = "test";
15138 #include <${cf_cv_ncurses_header:-curses.h}>
15139 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15140 #include <ncursesw/term.h>
15141 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15142 #include <ncurses/term.h>
15143 #elif defined(HAVE_TERM_H)
15148 extern char boolfnames;
15154 void *foo = &(boolfnames);
15155 ${cf_cv_main_return:-return}(foo == 0);
15162 rm -f conftest.$ac_objext conftest$ac_exeext
15163 if { (eval echo "$as_me:15163: \"$ac_link\"") >&5
15164 (eval $ac_link) 2>&5
15166 echo "$as_me:15166: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -s conftest$ac_exeext'
15169 { (eval echo "$as_me:15169: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15172 echo "$as_me:15172: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15176 echo "$as_me: failed program was:" >&5
15177 cat conftest.$ac_ext >&5
15180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15183 cat >conftest.$ac_ext <<_ACEOF
15184 #line 15184 "configure"
15185 #include "confdefs.h"
15187 #ifdef HAVE_XCURSES
15188 #include <xcurses.h>
15189 char * XCursesProgramName = "test";
15191 #include <${cf_cv_ncurses_header:-curses.h}>
15192 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15193 #include <ncursesw/term.h>
15194 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15195 #include <ncurses/term.h>
15196 #elif defined(HAVE_TERM_H)
15201 extern char boolfnames;
15204 void *foo = &(boolfnames);
15205 ${cf_cv_main_return:-return}(foo == 0);
15208 rm -f conftest$ac_exeext
15209 if { (eval echo "$as_me:15209: \"$ac_link\"") >&5
15210 (eval $ac_link) 2>&5
15212 echo "$as_me:15212: \$? = $ac_status" >&5
15213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15214 { (eval echo "$as_me:15214: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15217 echo "$as_me:15217: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15221 echo "$as_me: program exited with status $ac_status" >&5
15222 echo "$as_me: failed program was:" >&5
15223 cat conftest.$ac_ext >&5
15226 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15228 echo "$as_me:15228: result: $cf_result" >&5
15229 echo "${ECHO_T}$cf_result" >&6
15230 if test $cf_result = yes ; then
15232 cf_result=`echo "decl_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15234 cat >>confdefs.h <<EOF
15235 #define $cf_result 1
15244 ac_config_files="$ac_config_files Makefile"
15245 ac_config_commands="$ac_config_commands default"
15246 cat >confcache <<\_ACEOF
15247 # This file is a shell script that caches the results of configure
15248 # tests run on this system so they can be shared between configure
15249 # scripts and configure runs, see configure's option --config-cache.
15250 # It is not useful on other systems. If it contains results you don't
15251 # want to keep, you may remove or edit it.
15253 # config.status only pays attention to the cache file if you give it
15254 # the --recheck option to rerun configure.
15256 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15257 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15258 # following values.
15262 # The following way of writing the cache mishandles newlines in values,
15263 # but we know of no workaround that is simple, portable, and efficient.
15264 # So, don't put newlines in cache variables' values.
15265 # Ultrix sh set writes to stderr and can't be redirected directly,
15266 # and sets the high bit in the cache file unless we assign to the vars.
15269 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15271 # `set' does not quote correctly, so add quotes (double-quote
15272 # substitution turns \\\\ into \\, and sed turns \\ into \).
15275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15278 # `set' quotes correctly as required by POSIX, so do not add quotes.
15280 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15287 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15289 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15291 if cmp -s $cache_file confcache; then :; else
15292 if test -w $cache_file; then
15293 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15294 cat confcache >$cache_file
15296 echo "not updating unwritable cache $cache_file"
15301 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15302 # Let make expand exec_prefix.
15303 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15305 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15306 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15307 # trailing colons and then remove the whole line if VPATH becomes empty
15308 # (actually we leave an empty line to preserve line numbers).
15309 if test "x$srcdir" = x.; then
15310 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15311 s/:*\$(srcdir):*/:/;
15312 s/:*\${srcdir}:*/:/;
15314 s/^\([^=]*=[ ]*\):*/\1/;
15320 DEFS=-DHAVE_CONFIG_H
15322 : ${CONFIG_STATUS=./config.status}
15323 ac_clean_files_save=$ac_clean_files
15324 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15325 { echo "$as_me:15325: creating $CONFIG_STATUS" >&5
15326 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15327 cat >$CONFIG_STATUS <<_ACEOF
15329 # Generated automatically by configure.
15330 # Run this file to recreate the current configuration.
15331 # Compiler output produced by configure, useful for debugging
15332 # configure, is in config.log if it exists.
15335 SHELL=\${CONFIG_SHELL-$SHELL}
15336 ac_cs_invocation="\$0 \$@"
15340 cat >>$CONFIG_STATUS <<\_ACEOF
15341 # Be Bourne compatible
15342 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15345 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15349 # Name of the executable.
15350 as_me=`echo "$0" |sed 's,.*[\\/],,'`
15352 if expr a : '\(a\)' >/dev/null 2>&1; then
15358 rm -f conf$$ conf$$.exe conf$$.file
15360 if ln -s conf$$.file conf$$ 2>/dev/null; then
15361 # We could just check for DJGPP; but this test a) works b) is more generic
15362 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15363 if test -f conf$$.exe; then
15364 # Don't use ln at all; we don't have any links
15369 elif ln conf$$.file conf$$ 2>/dev/null; then
15374 rm -f conf$$ conf$$.exe conf$$.file
15376 as_executable_p="test -f"
15378 # Support unset when possible.
15379 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15386 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
15387 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
15388 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
15389 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
15390 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
15391 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
15392 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
15393 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
15396 # We need space, tab and new line, in precisely that order.
15402 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
15408 # Files that config.status was made for.
15409 if test -n "$ac_config_files"; then
15410 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15413 if test -n "$ac_config_headers"; then
15414 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15417 if test -n "$ac_config_links"; then
15418 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15421 if test -n "$ac_config_commands"; then
15422 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15425 cat >>$CONFIG_STATUS <<\EOF
15428 \`$as_me' instantiates files from templates according to the
15429 current configuration.
15431 Usage: $0 [OPTIONS] [FILE]...
15433 -h, --help print this help, then exit
15434 -V, --version print version number, then exit
15435 -d, --debug don't remove temporary files
15436 --recheck update $as_me by reconfiguring in the same conditions
15437 --file=FILE[:TEMPLATE]
15438 instantiate the configuration file FILE
15439 --header=FILE[:TEMPLATE]
15440 instantiate the configuration header FILE
15442 Configuration files:
15445 Configuration headers:
15448 Configuration commands:
15451 Report bugs to <dickey@invisible-island.net>."
15454 cat >>$CONFIG_STATUS <<EOF
15457 configured by $0, generated by GNU Autoconf 2.52.20101002,
15458 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15460 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15461 Free Software Foundation, Inc.
15462 This config.status script is free software; the Free Software Foundation
15463 gives unlimited permission to copy, distribute and modify it."
15468 cat >>$CONFIG_STATUS <<\EOF
15469 # If no file are specified by the user, then we need to provide default
15470 # value. By we need to know if files were specified by the user.
15476 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15477 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15479 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
15483 *) # This is not an option, so the user has probably given explicit
15485 ac_need_defaults=false;;
15489 # Handling of the options.
15491 cat >>$CONFIG_STATUS <<EOF
15492 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15493 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
15494 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
15496 cat >>$CONFIG_STATUS <<\EOF
15497 --version | --vers* | -V )
15498 echo "$ac_cs_version"; exit 0 ;;
15500 # Conflict between --help and --header
15501 { { echo "$as_me:15501: error: ambiguous option: $1
15502 Try \`$0 --help' for more information." >&5
15503 echo "$as_me: error: ambiguous option: $1
15504 Try \`$0 --help' for more information." >&2;}
15505 { (exit 1); exit 1; }; };;
15506 --help | --hel | -h )
15507 echo "$ac_cs_usage"; exit 0 ;;
15508 --debug | --d* | -d )
15510 --file | --fil | --fi | --f )
15512 CONFIG_FILES="$CONFIG_FILES $1"
15513 ac_need_defaults=false;;
15514 --header | --heade | --head | --hea )
15516 CONFIG_HEADERS="$CONFIG_HEADERS $1"
15517 ac_need_defaults=false;;
15519 # This is an error.
15520 -*) { { echo "$as_me:15520: error: unrecognized option: $1
15521 Try \`$0 --help' for more information." >&5
15522 echo "$as_me: error: unrecognized option: $1
15523 Try \`$0 --help' for more information." >&2;}
15524 { (exit 1); exit 1; }; } ;;
15526 *) ac_config_targets="$ac_config_targets $1" ;;
15535 ## ----------------------- ##
15536 ## Running config.status. ##
15537 ## ----------------------- ##
15539 This file was extended by $as_me 2.52.20101002, executed with
15540 CONFIG_FILES = $CONFIG_FILES
15541 CONFIG_HEADERS = $CONFIG_HEADERS
15542 CONFIG_LINKS = $CONFIG_LINKS
15543 CONFIG_COMMANDS = $CONFIG_COMMANDS
15544 > $ac_cs_invocation
15545 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15550 cat >>$CONFIG_STATUS <<EOF
15552 # INIT-COMMANDS section.
15560 cat >>$CONFIG_STATUS <<\EOF
15561 for ac_config_target in $ac_config_targets
15563 case "$ac_config_target" in
15564 # Handling of arguments.
15565 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15566 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15567 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
15568 *) { { echo "$as_me:15568: error: invalid argument: $ac_config_target" >&5
15569 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15570 { (exit 1); exit 1; }; };;
15574 # If the user did not use the arguments to specify the items to instantiate,
15575 # then the envvar interface is used. Set only those that are not.
15576 # We use the long form for the default assignment because of an extremely
15577 # bizarre bug on SunOS 4.1.3.
15578 if $ac_need_defaults; then
15579 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15580 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15581 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15584 # Create a temporary directory, and hook for its removal unless debugging.
15587 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15588 trap '{ (exit 1); exit 1; }' 1 2 13 15
15591 # Create a (secure) tmp directory for tmp files.
15594 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
15595 test -n "$tmp" && test -d "$tmp"
15598 tmp=$TMPDIR/cs$$-$RANDOM
15599 (umask 077 && mkdir $tmp)
15602 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
15603 { (exit 1); exit 1; }
15608 cat >>$CONFIG_STATUS <<EOF
15611 # CONFIG_FILES section.
15614 # No need to generate the scripts if there are no CONFIG_FILES.
15615 # This happens for instance when ./config.status config.h
15616 if test -n "\$CONFIG_FILES"; then
15617 # Protect against being on the right side of a sed subst in config.status.
15618 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15619 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15620 s,@SHELL@,$SHELL,;t t
15621 s,@exec_prefix@,$exec_prefix,;t t
15622 s,@prefix@,$prefix,;t t
15623 s,@program_transform_name@,$program_transform_name,;t t
15624 s,@bindir@,$bindir,;t t
15625 s,@sbindir@,$sbindir,;t t
15626 s,@libexecdir@,$libexecdir,;t t
15627 s,@datadir@,$datadir,;t t
15628 s,@sysconfdir@,$sysconfdir,;t t
15629 s,@sharedstatedir@,$sharedstatedir,;t t
15630 s,@localstatedir@,$localstatedir,;t t
15631 s,@libdir@,$libdir,;t t
15632 s,@includedir@,$includedir,;t t
15633 s,@oldincludedir@,$oldincludedir,;t t
15634 s,@infodir@,$infodir,;t t
15635 s,@mandir@,$mandir,;t t
15636 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15637 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15638 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15639 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15640 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15641 s,@build_alias@,$build_alias,;t t
15642 s,@host_alias@,$host_alias,;t t
15643 s,@target_alias@,$target_alias,;t t
15644 s,@ECHO_C@,$ECHO_C,;t t
15645 s,@ECHO_N@,$ECHO_N,;t t
15646 s,@ECHO_T@,$ECHO_T,;t t
15647 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15648 s,@DEFS@,$DEFS,;t t
15649 s,@LIBS@,$LIBS,;t t
15650 s,@build@,$build,;t t
15651 s,@build_cpu@,$build_cpu,;t t
15652 s,@build_vendor@,$build_vendor,;t t
15653 s,@build_os@,$build_os,;t t
15654 s,@host@,$host,;t t
15655 s,@host_cpu@,$host_cpu,;t t
15656 s,@host_vendor@,$host_vendor,;t t
15657 s,@host_os@,$host_os,;t t
15658 s,@SET_MAKE@,$SET_MAKE,;t t
15660 s,@CFLAGS@,$CFLAGS,;t t
15661 s,@LDFLAGS@,$LDFLAGS,;t t
15662 s,@CPPFLAGS@,$CPPFLAGS,;t t
15663 s,@ac_ct_CC@,$ac_ct_CC,;t t
15664 s,@EXEEXT@,$EXEEXT,;t t
15665 s,@OBJEXT@,$OBJEXT,;t t
15668 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15669 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15670 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15671 s,@LINT@,$LINT,;t t
15672 s,@LINT_OPTS@,$LINT_OPTS,;t t
15673 s,@CTAGS@,$CTAGS,;t t
15674 s,@ETAGS@,$ETAGS,;t t
15675 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
15676 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
15677 s,@MATH_LIB@,$MATH_LIB,;t t
15678 s,@top_builddir@,$top_builddir,;t t
15679 s,@CC_G_OPT@,$CC_G_OPT,;t t
15680 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
15681 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
15682 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
15683 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
15685 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
15686 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
15687 s,@LD_MODEL@,$LD_MODEL,;t t
15688 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
15689 s,@LIBTOOL@,$LIBTOOL,;t t
15690 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
15691 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
15692 s,@LIB_LINK@,$LIB_LINK,;t t
15693 s,@LINK_TESTS@,$LINK_TESTS,;t t
15694 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
15695 s,@PTHREAD@,$PTHREAD,;t t
15696 s,@TEST_ARGS@,$TEST_ARGS,;t t
15697 s,@TEST_DEPS@,$TEST_DEPS,;t t
15698 s,@TEST_LIBS@,$TEST_LIBS,;t t
15699 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
15700 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
15701 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
15702 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
15703 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
15704 s,@ECHO_LT@,$ECHO_LT,;t t
15705 s,@ECHO_LD@,$ECHO_LD,;t t
15706 s,@RULE_CC@,$RULE_CC,;t t
15707 s,@SHOW_CC@,$SHOW_CC,;t t
15708 s,@ECHO_CC@,$ECHO_CC,;t t
15709 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
15710 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
15711 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
15712 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
15713 s,@X_CFLAGS@,$X_CFLAGS,;t t
15714 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15715 s,@X_LIBS@,$X_LIBS,;t t
15716 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15717 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
15718 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
15723 cat >>$CONFIG_STATUS <<\EOF
15724 # Split the substitutions into bite-sized pieces for seds with
15725 # small command number limits, like on Digital OSF/1 and HP-UX.
15726 ac_max_sed_lines=48
15727 ac_sed_frag=1 # Number of current file.
15728 ac_beg=1 # First line for current file.
15729 ac_end=$ac_max_sed_lines # Line after last line for current file.
15732 while $ac_more_lines; do
15733 if test $ac_beg -gt 1; then
15734 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15736 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15738 if test ! -s $tmp/subs.frag; then
15739 ac_more_lines=false
15741 # The purpose of the label and of the branching condition is to
15742 # speed up the sed processing (if there are no `@' at all, there
15743 # is no need to browse any of the substitutions).
15744 # These are the two extra sed commands mentioned above.
15746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15747 if test -z "$ac_sed_cmds"; then
15748 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15750 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15752 ac_sed_frag=`expr $ac_sed_frag + 1`
15754 ac_end=`expr $ac_end + $ac_max_sed_lines`
15757 if test -z "$ac_sed_cmds"; then
15760 fi # test -n "$CONFIG_FILES"
15763 cat >>$CONFIG_STATUS <<\EOF
15764 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15765 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15767 - | *:- | *:-:* ) # input from stdin
15769 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15770 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15771 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15772 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15773 * ) ac_file_in=$ac_file.in ;;
15776 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15777 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15778 X"$ac_file" : 'X\(//\)[^/]' \| \
15779 X"$ac_file" : 'X\(//\)$' \| \
15780 X"$ac_file" : 'X\(/\)' \| \
15781 . : '\(.\)' 2>/dev/null ||
15783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15784 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15785 /^X\(\/\/\)$/{ s//\1/; q; }
15786 /^X\(\/\).*/{ s//\1/; q; }
15788 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15789 { case "$ac_dir" in
15790 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15794 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15795 case $as_mkdir_dir in
15796 # Skip DOS drivespec
15797 ?:) as_incr_dir=$as_mkdir_dir ;;
15799 as_incr_dir=$as_incr_dir/$as_mkdir_dir
15800 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
15805 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
15806 # A "../" for each directory in $ac_dir_suffix.
15807 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
15809 ac_dir_suffix= ac_dots=
15814 if test -z "$ac_dots"; then
15817 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
15819 [\\/]* | ?:[\\/]* )
15820 ac_srcdir=$srcdir$ac_dir_suffix;
15821 ac_top_srcdir=$srcdir ;;
15822 *) # Relative path.
15823 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
15824 ac_top_srcdir=$ac_dots$srcdir ;;
15828 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15829 *) ac_INSTALL=$ac_dots$INSTALL ;;
15832 if test x"$ac_file" != x-; then
15833 { echo "$as_me:15833: creating $ac_file" >&5
15834 echo "$as_me: creating $ac_file" >&6;}
15837 # Let's still pretend it is `configure' which instantiates (i.e., don't
15838 # use $as_me), people would be surprised to read:
15839 # /* config.h. Generated automatically by config.status. */
15840 configure_input="Generated automatically from `echo $ac_file_in |
15841 sed 's,.*/,,'` by configure."
15843 # First look for the input files in the build tree, otherwise in the
15845 ac_file_inputs=`IFS=:
15846 for f in $ac_file_in; do
15848 -) echo $tmp/stdin ;;
15850 # Absolute (can't be DOS-style, as IFS=:)
15851 test -f "$f" || { { echo "$as_me:15851: error: cannot find input file: $f" >&5
15852 echo "$as_me: error: cannot find input file: $f" >&2;}
15853 { (exit 1); exit 1; }; }
15856 if test -f "$f"; then
15859 elif test -f "$srcdir/$f"; then
15864 { { echo "$as_me:15864: error: cannot find input file: $f" >&5
15865 echo "$as_me: error: cannot find input file: $f" >&2;}
15866 { (exit 1); exit 1; }; }
15869 done` || { (exit 1); exit 1; }
15871 cat >>$CONFIG_STATUS <<EOF
15875 cat >>$CONFIG_STATUS <<\EOF
15877 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15878 s,@configure_input@,$configure_input,;t t
15879 s,@srcdir@,$ac_srcdir,;t t
15880 s,@top_srcdir@,$ac_top_srcdir,;t t
15881 s,@INSTALL@,$ac_INSTALL,;t t
15882 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15884 if test x"$ac_file" != x-; then
15885 mv $tmp/out $ac_file
15893 cat >>$CONFIG_STATUS <<\EOF
15896 # CONFIG_HEADER section.
15899 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15900 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15902 # ac_d sets the value in "#define NAME VALUE" lines.
15903 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15904 ac_dB='[ ].*$,\1#\2'
15907 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15908 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15909 ac_iB='\([ ]\),\1#\2define\3'
15912 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15913 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15914 ac_uB='$,\1#\2define\3'
15918 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15919 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15921 - | *:- | *:-:* ) # input from stdin
15923 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15924 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15925 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15926 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15927 * ) ac_file_in=$ac_file.in ;;
15930 test x"$ac_file" != x- && { echo "$as_me:15930: creating $ac_file" >&5
15931 echo "$as_me: creating $ac_file" >&6;}
15933 # First look for the input files in the build tree, otherwise in the
15935 ac_file_inputs=`IFS=:
15936 for f in $ac_file_in; do
15938 -) echo $tmp/stdin ;;
15940 # Absolute (can't be DOS-style, as IFS=:)
15941 test -f "$f" || { { echo "$as_me:15941: error: cannot find input file: $f" >&5
15942 echo "$as_me: error: cannot find input file: $f" >&2;}
15943 { (exit 1); exit 1; }; }
15946 if test -f "$f"; then
15949 elif test -f "$srcdir/$f"; then
15954 { { echo "$as_me:15954: error: cannot find input file: $f" >&5
15955 echo "$as_me: error: cannot find input file: $f" >&2;}
15956 { (exit 1); exit 1; }; }
15959 done` || { (exit 1); exit 1; }
15960 # Remove the trailing spaces.
15961 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15965 # Transform confdefs.h into a list of #define's. We won't use it as a sed
15966 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
15967 # be either 'cat' or 'sort'.
15968 cat confdefs.h | uniq >conftest.vals
15970 # Break up conftest.vals because some shells have a limit on
15971 # the size of here documents, and old seds have small limits too.
15973 rm -f conftest.tail
15974 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
15975 while grep . conftest.vals >/dev/null
15977 # Write chunks of a limited-size here document to conftest.frag.
15978 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
15979 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
15980 echo 'CEOF' >> $CONFIG_STATUS
15981 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15982 rm -f conftest.vals
15983 mv conftest.tail conftest.vals
15985 rm -f conftest.vals
15987 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
15989 echo ' cat >> conftest.edit <<CEOF
15990 /@DEFS@/r conftest.frag
15993 sed -f conftest.edit $tmp/in > $tmp/out
15995 mv $tmp/out $tmp/in
15996 rm -f conftest.edit conftest.frag
15997 ' >> $CONFIG_STATUS
15999 cat >>$CONFIG_STATUS <<\EOF
16000 # Let's still pretend it is `configure' which instantiates (i.e., don't
16001 # use $as_me), people would be surprised to read:
16002 # /* config.h. Generated automatically by config.status. */
16003 if test x"$ac_file" = x-; then
16004 echo "/* Generated automatically by configure. */" >$tmp/config.h
16006 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
16008 cat $tmp/in >>$tmp/config.h
16010 if test x"$ac_file" != x-; then
16011 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16012 { echo "$as_me:16012: $ac_file is unchanged" >&5
16013 echo "$as_me: $ac_file is unchanged" >&6;}
16015 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16016 X"$ac_file" : 'X\(//\)[^/]' \| \
16017 X"$ac_file" : 'X\(//\)$' \| \
16018 X"$ac_file" : 'X\(/\)' \| \
16019 . : '\(.\)' 2>/dev/null ||
16021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16023 /^X\(\/\/\)$/{ s//\1/; q; }
16024 /^X\(\/\).*/{ s//\1/; q; }
16026 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16027 { case "$ac_dir" in
16028 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16032 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16033 case $as_mkdir_dir in
16034 # Skip DOS drivespec
16035 ?:) as_incr_dir=$as_mkdir_dir ;;
16037 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16038 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
16045 mv $tmp/config.h $ac_file
16049 rm -f $tmp/config.h
16053 cat >>$CONFIG_STATUS <<\EOF
16055 # CONFIG_COMMANDS section.
16057 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16058 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16059 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16066 if test ! -d $srcdir/$cf_dir; then
16068 elif test -f $srcdir/$cf_dir/programs; then
16069 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
16073 cat >>Makefile <<TEST_EOF
16075 # These rules are generated so we do not rely on suffix rules, which do not
16076 # work consistently for different make-programs (the '\$(MODEL)/' confuses
16077 # some, and the '\$x' confuses others).
16080 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
16083 cat >>Makefile <<TEST_EOF
16085 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
16086 \$(srcdir)/test.priv.h \\
16088 @echo compiling $N; \$(CC) -c \$(CFLAGS_DEFAULT) \$(srcdir)/$N.c
16092 if test -f ../config.guess && test -f ../config.sub
16094 cat >>Makefile <<TEST_EOF
16096 # if we used CF_INHERIT for getting these files, we can remove them
16098 rm -f config.guess config.sub
16106 cat >>$CONFIG_STATUS <<\EOF
16108 { (exit 0); exit 0; }
16110 chmod +x $CONFIG_STATUS
16111 ac_clean_files=$ac_clean_files_save
16113 # configure is writing to config.log, and then calls config.status.
16114 # config.status does its own redirection, appending to config.log.
16115 # Unfortunately, on DOS this fails, as config.log is still kept open
16116 # by configure, so config.status won't be able to write to it; its
16117 # output is simply discarded. So we exec the FD to /dev/null,
16118 # effectively closing config.log, so it can be properly (re)opened and
16119 # appended to by config.status. When coming back to configure, we
16120 # need to make the FD available again.
16121 if test "$no_create" != yes; then
16124 $SHELL $CONFIG_STATUS || ac_cs_success=false
16126 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16127 # would make configure fail if this is the last instruction.
16128 $ac_cs_success || { (exit 1); exit 1; }