2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20121002.
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 datarootdir='${prefix}/share'
138 datadir='${datarootdir}'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${datarootdir}/info'
146 mandir='${datarootdir}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build_alias ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build_alias=$ac_optarg ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file=$ac_optarg ;;
189 cache_file=config.cache ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir=$ac_optarg ;;
197 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
198 | --dataroo | --dataro | --datar)
199 ac_prev=datarootdir ;;
200 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
201 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
202 datarootdir=$ac_optarg ;;
204 -disable-* | --disable-*)
205 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
206 # Reject names that are not valid shell variable names.
207 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
208 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
209 { (exit 1); exit 1; }; }
210 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
211 eval "enable_$ac_feature=no" ;;
213 -enable-* | --enable-*)
214 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
215 # Reject names that are not valid shell variable names.
216 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
217 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
218 { (exit 1); exit 1; }; }
219 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
221 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
224 eval "enable_$ac_feature='$ac_optarg'" ;;
226 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
227 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
228 | --exec | --exe | --ex)
229 ac_prev=exec_prefix ;;
230 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
231 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
232 | --exec=* | --exe=* | --ex=*)
233 exec_prefix=$ac_optarg ;;
235 -gas | --gas | --ga | --g)
236 # Obsolete; use --with-gas.
239 -help | --help | --hel | --he | -h)
241 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
242 ac_init_help=recursive ;;
243 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
244 ac_init_help=short ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host_alias ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host_alias=$ac_optarg ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir=$ac_optarg ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir=$ac_optarg ;;
263 -libdir | --libdir | --libdi | --libd)
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir=$ac_optarg ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir=$ac_optarg ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 # Obsolete; use --without-fp.
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir=$ac_optarg ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix=$ac_optarg ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name=$ac_optarg ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354 sbindir=$ac_optarg ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365 sharedstatedir=$ac_optarg ;;
367 -site | --site | --sit)
369 -site=* | --site=* | --sit=*)
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir=$ac_optarg ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target_alias ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target_alias=$ac_optarg ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
392 -version | --version | --versio | --versi | --vers | -V)
396 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid package name: $ac_package" >&2
400 { (exit 1); exit 1; }; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
406 eval "with_$ac_package='$ac_optarg'" ;;
408 -without-* | --without-*)
409 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid package name: $ac_package" >&2
413 { (exit 1); exit 1; }; }
414 ac_package=`echo $ac_package | sed 's/-/_/g'`
415 eval "with_$ac_package=no" ;;
418 # Obsolete; use --with-x.
421 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422 | --x-incl | --x-inc | --x-in | --x-i)
423 ac_prev=x_includes ;;
424 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426 x_includes=$ac_optarg ;;
428 -x-libraries | --x-libraries | --x-librarie | --x-librari \
429 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430 ac_prev=x_libraries ;;
431 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433 x_libraries=$ac_optarg ;;
435 -*) { echo "$as_me: error: unrecognized option: $ac_option
436 Try \`$0 --help' for more information." >&2
437 { (exit 1); exit 1; }; }
441 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
442 # Reject names that are not valid shell variable names.
443 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
444 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
445 { (exit 1); exit 1; }; }
446 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
447 eval "$ac_envvar='$ac_optarg'"
451 # FIXME: should be removed in autoconf 3.0.
452 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
453 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
454 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
455 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
461 if test -n "$ac_prev"; then
462 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
463 { echo "$as_me: error: missing argument to $ac_option" >&2
464 { (exit 1); exit 1; }; }
467 # Be sure to have absolute paths.
468 for ac_var in exec_prefix prefix
470 eval ac_val=$`echo $ac_var`
472 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
473 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
474 { (exit 1); exit 1; }; };;
478 # Be sure to have absolute paths.
479 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
480 localstatedir libdir includedir oldincludedir infodir mandir
482 eval ac_val=$`echo $ac_var`
484 [\\/$]* | ?:[\\/]* ) ;;
485 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
486 { (exit 1); exit 1; }; };;
490 # There might be people who depend on the old broken behavior: `$host'
491 # used to hold the argument of --host etc.
496 # FIXME: should be removed in autoconf 3.0.
497 if test "x$host_alias" != x; then
498 if test "x$build_alias" = x; then
499 cross_compiling=maybe
500 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
501 If a cross compiler is detected then cross compile mode will be used." >&2
502 elif test "x$build_alias" != "x$host_alias"; then
508 test -n "$host_alias" && ac_tool_prefix=$host_alias-
510 test "$silent" = yes && exec 6>/dev/null
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted=yes
515 # Try the directory containing this script, then its parent.
517 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 if test ! -r $srcdir/$ac_unique_file; then
524 ac_srcdir_defaulted=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
529 { (exit 1); exit 1; }; }
531 { echo "$as_me: error: cannot find sources in $srcdir" >&2
532 { (exit 1); exit 1; }; }
535 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
536 ac_env_build_alias_set=${build_alias+set}
537 ac_env_build_alias_value=$build_alias
538 ac_cv_env_build_alias_set=${build_alias+set}
539 ac_cv_env_build_alias_value=$build_alias
540 ac_env_host_alias_set=${host_alias+set}
541 ac_env_host_alias_value=$host_alias
542 ac_cv_env_host_alias_set=${host_alias+set}
543 ac_cv_env_host_alias_value=$host_alias
544 ac_env_target_alias_set=${target_alias+set}
545 ac_env_target_alias_value=$target_alias
546 ac_cv_env_target_alias_set=${target_alias+set}
547 ac_cv_env_target_alias_value=$target_alias
548 ac_env_CC_set=${CC+set}
550 ac_cv_env_CC_set=${CC+set}
551 ac_cv_env_CC_value=$CC
552 ac_env_CFLAGS_set=${CFLAGS+set}
553 ac_env_CFLAGS_value=$CFLAGS
554 ac_cv_env_CFLAGS_set=${CFLAGS+set}
555 ac_cv_env_CFLAGS_value=$CFLAGS
556 ac_env_LDFLAGS_set=${LDFLAGS+set}
557 ac_env_LDFLAGS_value=$LDFLAGS
558 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
559 ac_cv_env_LDFLAGS_value=$LDFLAGS
560 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
561 ac_env_CPPFLAGS_value=$CPPFLAGS
562 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
563 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
564 ac_env_CPP_set=${CPP+set}
565 ac_env_CPP_value=$CPP
566 ac_cv_env_CPP_set=${CPP+set}
567 ac_cv_env_CPP_value=$CPP
570 # Report the --help message.
572 if test "$ac_init_help" = "long"; then
573 # Omit some internal or obsolete options to make the list less imposing.
574 # This message is too long to be a string in the A/UX 3.1 sh.
576 \`configure' configures this package to adapt to many kinds of systems.
578 Usage: $0 [OPTION]... [VAR=VALUE]...
580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
581 VAR=VALUE. See below for descriptions of some of the useful variables.
583 Defaults for the options are specified in brackets.
586 -h, --help display this help and exit
587 --help=short display options specific to this package
588 --help=recursive display the short help of all the included packages
589 -V, --version display version information and exit
590 -q, --quiet, --silent do not print \`checking...' messages
591 --cache-file=FILE cache test results in FILE [disabled]
592 -C, --config-cache alias for \`--cache-file=config.cache'
593 -n, --no-create do not create output files
594 --srcdir=DIR find the sources in DIR [configure dir or \`..']
599 Installation directories:
600 --prefix=PREFIX install architecture-independent files in PREFIX
602 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
605 By default, \`make install' will install all the files in
606 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
607 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
608 for instance \`--prefix=\$HOME'.
610 For better control, use the options below.
612 Fine tuning of the installation directories:
613 --bindir=DIR user executables [EPREFIX/bin]
614 --sbindir=DIR system admin executables [EPREFIX/sbin]
615 --libexecdir=DIR program executables [EPREFIX/libexec]
616 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
617 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
618 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
619 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
620 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
621 --libdir=DIR object code libraries [EPREFIX/lib]
622 --includedir=DIR C header files [PREFIX/include]
623 --oldincludedir=DIR C header files for non-gcc [/usr/include]
624 --infodir=DIR info documentation [DATAROOTDIR/info]
625 --mandir=DIR man documentation [DATAROOTDIR/man]
631 --program-prefix=PREFIX prepend PREFIX to installed program names
632 --program-suffix=SUFFIX append SUFFIX to installed program names
633 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
636 --x-includes=DIR X include files are in DIR
637 --x-libraries=DIR X library files are in DIR
640 --build=BUILD configure for building on BUILD [guessed]
641 --host=HOST build programs to run on HOST [BUILD]
645 if test -n "$ac_init_help"; then
650 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
651 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
654 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
655 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
658 --with-pkg-config{=path} enable/disable use of pkg-config
659 --disable-echo do not display "compiling" commands
660 Curses Version-dependent Options:
661 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
662 --disable-widec disable checks for wide-character functions
663 --with-curses-dir=DIR directory in which (n)curses is installed
664 --with-ncursesw use wide ncurses-libraries
665 --with-ncurses use ncurses-libraries
666 --with-pdcurses compile/link with pdcurses X11 library
667 --with-curses-colr compile/link with HPUX 10.x color-curses
668 --with-curses-5lib compile/link with SunOS 5lib curses
669 --with-Xaw3d link with Xaw 3d library
670 --with-neXtaw link with neXT Athena library
671 --with-XawPlus link with Athena-Plus library
672 --with-x use the X Window System
673 Testing/development Options:
674 --enable-warnings test: turn on gcc compiler warnings
675 --with-dmalloc test: use Gray Watson's dmalloc library
676 --with-dbmalloc test: use Conor Cahill's dbmalloc library
677 --with-valgrind test: use valgrind
678 --disable-leaks test: free permanent memory, analyze leaks
679 --disable-rpath-hack don't add rpath options for additional libraries
681 Some influential environment variables:
682 CC C compiler command
683 CFLAGS C compiler flags
684 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
685 nonstandard directory <lib dir>
686 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
687 headers in a nonstandard directory <include dir>
690 Use these variables to override the choices made by `configure' or to help
691 it to find libraries and programs with nonstandard names/locations.
696 if test "$ac_init_help" = "recursive"; then
697 # If there are subdirs, report their specific --help.
699 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
701 # A "../" for each directory in /$ac_subdir.
702 ac_dots=`echo $ac_subdir |
703 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
706 .) # No --srcdir option. We are building in place.
707 ac_sub_srcdir=$srcdir ;;
708 [\\/]* | ?:[\\/]* ) # Absolute path.
709 ac_sub_srcdir=$srcdir/$ac_subdir ;;
711 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
714 # Check for guested configure; otherwise get Cygnus style configure.
715 if test -f $ac_sub_srcdir/configure.gnu; then
717 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
718 elif test -f $ac_sub_srcdir/configure; then
720 $SHELL $ac_sub_srcdir/configure --help=recursive
721 elif test -f $ac_sub_srcdir/configure.ac ||
722 test -f $ac_sub_srcdir/configure.in; then
726 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
732 test -n "$ac_init_help" && exit 0
733 if $ac_init_version; then
736 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
737 Free Software Foundation, Inc.
738 This configure script is free software; the Free Software Foundation
739 gives unlimited permission to copy, distribute and modify it.
745 This file contains any messages produced by compilers while
746 running configure, to aid debugging if configure makes a mistake.
748 It was created by $as_me, which was
749 generated by GNU Autoconf 2.52.20121002. Invocation command line was
760 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
761 uname -m = `(uname -m) 2>/dev/null || echo unknown`
762 uname -r = `(uname -r) 2>/dev/null || echo unknown`
763 uname -s = `(uname -s) 2>/dev/null || echo unknown`
764 uname -v = `(uname -v) 2>/dev/null || echo unknown`
766 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
767 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
769 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
770 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
771 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
772 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
773 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
774 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
775 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
789 # Keep a trace of the command line.
790 # Strip out --no-create and --no-recursion so they do not pile up.
791 # Also quote any args containing shell meta-characters.
797 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
798 | --no-cr | --no-c) ;;
799 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
800 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
801 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
802 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
803 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
805 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
808 # Get rid of the leading space.
811 # When interrupted or exit'd, cleanup temporary files, and complete
812 # config.log. We remove comments because anyway the quotes in there
813 # would cause problems or look ugly.
815 # Save into config.log some information that might help in debugging.
817 echo "## ----------------- ##" >&5
818 echo "## Cache variables. ##" >&5
819 echo "## ----------------- ##" >&5
821 # The following way of writing the cache mishandles newlines in values,
824 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
827 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
832 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
836 sed "/^$/d" confdefs.h >conftest.log
837 if test -s conftest.log; then
839 echo "## ------------ ##" >&5
840 echo "## confdefs.h. ##" >&5
841 echo "## ------------ ##" >&5
846 test "$ac_signal" != 0 &&
847 echo "$as_me: caught signal $ac_signal" >&5
848 echo "$as_me: exit $exit_status" >&5
849 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
852 for ac_signal in 1 2 13 15; do
853 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
857 # confdefs.h avoids OS command line length limits that DEFS can exceed.
858 rm -rf conftest* confdefs.h
859 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
862 # Let the site file select an alternate cache file if it wants to.
863 # Prefer explicitly selected file to automatically selected ones.
864 if test -z "$CONFIG_SITE"; then
865 if test "x$prefix" != xNONE; then
866 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
868 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
871 for ac_site_file in $CONFIG_SITE; do
872 if test -r "$ac_site_file"; then
873 { echo "$as_me:873: loading site script $ac_site_file" >&5
874 echo "$as_me: loading site script $ac_site_file" >&6;}
875 cat "$ac_site_file" >&5
880 if test -r "$cache_file"; then
881 # Some versions of bash will fail to source /dev/null (special
882 # files actually), so we avoid doing that.
883 if test -f "$cache_file"; then
884 { echo "$as_me:884: loading cache $cache_file" >&5
885 echo "$as_me: loading cache $cache_file" >&6;}
887 [\\/]* | ?:[\\/]* ) . $cache_file;;
892 { echo "$as_me:892: creating cache $cache_file" >&5
893 echo "$as_me: creating cache $cache_file" >&6;}
897 # Check that the precious variables saved in the cache have kept the same
899 ac_cache_corrupted=false
900 for ac_var in `(set) 2>&1 |
901 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
902 eval ac_old_set=\$ac_cv_env_${ac_var}_set
903 eval ac_new_set=\$ac_env_${ac_var}_set
904 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
905 eval ac_new_val="\$ac_env_${ac_var}_value"
906 case $ac_old_set,$ac_new_set in
908 { echo "$as_me:908: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
909 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
910 ac_cache_corrupted=: ;;
912 { echo "$as_me:912: error: \`$ac_var' was not set in the previous run" >&5
913 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
914 ac_cache_corrupted=: ;;
917 if test "x$ac_old_val" != "x$ac_new_val"; then
918 { echo "$as_me:918: error: \`$ac_var' has changed since the previous run:" >&5
919 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
920 { echo "$as_me:920: former value: $ac_old_val" >&5
921 echo "$as_me: former value: $ac_old_val" >&2;}
922 { echo "$as_me:922: current value: $ac_new_val" >&5
923 echo "$as_me: current value: $ac_new_val" >&2;}
927 # Pass precious variables to config.status. It doesn't matter if
928 # we pass some twice (in addition to the command line arguments).
929 if test "$ac_new_set" = set; then
931 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
932 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
933 ac_configure_args="$ac_configure_args '$ac_arg'"
935 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
940 if $ac_cache_corrupted; then
941 { echo "$as_me:941: error: changes in the environment can compromise the build" >&5
942 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
943 { { echo "$as_me:943: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
944 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
945 { (exit 1); exit 1; }; }
949 ac_cpp='$CPP $CPPFLAGS'
950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
953 ac_main_return=return
955 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
956 *c*,-n*) ECHO_N= ECHO_C='
958 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
959 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
961 echo "#! $SHELL" >conftest.sh
962 echo "exit 0" >>conftest.sh
964 if { (echo "$as_me:964: PATH=\".;.\"; conftest.sh") >&5
965 (PATH=".;."; conftest.sh) 2>&5
967 echo "$as_me:967: \$? = $ac_status" >&5
968 (exit $ac_status); }; then
969 ac_path_separator=';'
973 PATH_SEPARATOR="$ac_path_separator"
976 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
978 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
980 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
983 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
984 if test -f $ac_dir/install-sh; then
986 ac_install_sh="$ac_aux_dir/install-sh -c"
988 elif test -f $ac_dir/install.sh; then
990 ac_install_sh="$ac_aux_dir/install.sh -c"
992 elif test -f $ac_dir/shtool; then
994 ac_install_sh="$ac_aux_dir/shtool install -c"
998 if test -z "$ac_aux_dir"; then
999 { { echo "$as_me:999: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1000 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1001 { (exit 1); exit 1; }; }
1003 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1004 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1005 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1007 # Make sure we can run config.sub.
1008 $ac_config_sub sun4 >/dev/null 2>&1 ||
1009 { { echo "$as_me:1009: error: cannot run $ac_config_sub" >&5
1010 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1011 { (exit 1); exit 1; }; }
1013 echo "$as_me:1013: checking build system type" >&5
1014 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1015 if test "${ac_cv_build+set}" = set; then
1016 echo $ECHO_N "(cached) $ECHO_C" >&6
1018 ac_cv_build_alias=$build_alias
1019 test -z "$ac_cv_build_alias" &&
1020 ac_cv_build_alias=`$ac_config_guess`
1021 test -z "$ac_cv_build_alias" &&
1022 { { echo "$as_me:1022: error: cannot guess build type; you must specify one" >&5
1023 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1024 { (exit 1); exit 1; }; }
1025 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1026 { { echo "$as_me:1026: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1027 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1028 { (exit 1); exit 1; }; }
1031 echo "$as_me:1031: result: $ac_cv_build" >&5
1032 echo "${ECHO_T}$ac_cv_build" >&6
1034 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1035 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1036 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1038 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1039 echo "$as_me:1039: checking host system type" >&5
1040 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1041 if test "${ac_cv_host+set}" = set; then
1042 echo $ECHO_N "(cached) $ECHO_C" >&6
1044 ac_cv_host_alias=$host_alias
1045 test -z "$ac_cv_host_alias" &&
1046 ac_cv_host_alias=$ac_cv_build_alias
1047 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1048 { { echo "$as_me:1048: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1049 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1050 { (exit 1); exit 1; }; }
1053 echo "$as_me:1053: result: $ac_cv_host" >&5
1054 echo "${ECHO_T}$ac_cv_host" >&6
1056 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1057 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1058 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060 system_name="$host_os"
1062 system_name="`(uname -s -r) 2>/dev/null`"
1063 if test -z "$system_name" ; then
1064 system_name="`(hostname) 2>/dev/null`"
1067 test -n "$system_name" &&
1068 cat >>confdefs.h <<EOF
1069 #define SYSTEM_NAME "$system_name"
1072 if test "${cf_cv_system_name+set}" = set; then
1073 echo $ECHO_N "(cached) $ECHO_C" >&6
1075 cf_cv_system_name="$system_name"
1078 test -z "$system_name" && system_name="$cf_cv_system_name"
1079 test -n "$cf_cv_system_name" && echo "$as_me:1079: result: Configuring for $cf_cv_system_name" >&5
1080 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1082 if test ".$system_name" != ".$cf_cv_system_name" ; then
1083 echo "$as_me:1083: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1084 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1085 { { echo "$as_me:1085: error: \"Please remove config.cache and try again.\"" >&5
1086 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1087 { (exit 1); exit 1; }; }
1090 test "$program_prefix" != NONE &&
1091 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1092 # Use a double $ so make ignores it.
1093 test "$program_suffix" != NONE &&
1094 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1095 # Double any \ or $. echo might interpret backslashes.
1096 # By default was `s,x,x', remove it if useless.
1097 cat <<\_ACEOF >conftest.sed
1098 s/[\\$]/&&/g;s/;s,x,x,$//
1100 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1103 echo "$as_me:1103: checking whether ${MAKE-make} sets \${MAKE}" >&5
1104 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1105 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1106 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1107 echo $ECHO_N "(cached) $ECHO_C" >&6
1109 cat >conftest.make <<\EOF
1111 @echo 'ac_maketemp="${MAKE}"'
1113 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1114 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1115 if test -n "$ac_maketemp"; then
1116 eval ac_cv_prog_make_${ac_make}_set=yes
1118 eval ac_cv_prog_make_${ac_make}_set=no
1122 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1123 echo "$as_me:1123: result: yes" >&5
1124 echo "${ECHO_T}yes" >&6
1127 echo "$as_me:1127: result: no" >&5
1128 echo "${ECHO_T}no" >&6
1129 SET_MAKE="MAKE=${MAKE-make}"
1133 ac_cpp='$CPP $CPPFLAGS'
1134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1137 ac_main_return=return
1138 if test -n "$ac_tool_prefix"; then
1139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1140 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1141 echo "$as_me:1141: checking for $ac_word" >&5
1142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1143 if test "${ac_cv_prog_CC+set}" = set; then
1144 echo $ECHO_N "(cached) $ECHO_C" >&6
1146 if test -n "$CC"; then
1147 ac_cv_prog_CC="$CC" # Let the user override the test.
1149 ac_save_IFS=$IFS; IFS=$ac_path_separator
1151 for ac_dir in $ac_dummy; do
1153 test -z "$ac_dir" && ac_dir=.
1154 $as_executable_p "$ac_dir/$ac_word" || continue
1155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1156 echo "$as_me:1156: found $ac_dir/$ac_word" >&5
1163 if test -n "$CC"; then
1164 echo "$as_me:1164: result: $CC" >&5
1165 echo "${ECHO_T}$CC" >&6
1167 echo "$as_me:1167: result: no" >&5
1168 echo "${ECHO_T}no" >&6
1172 if test -z "$ac_cv_prog_CC"; then
1174 # Extract the first word of "gcc", so it can be a program name with args.
1175 set dummy gcc; ac_word=$2
1176 echo "$as_me:1176: checking for $ac_word" >&5
1177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1179 echo $ECHO_N "(cached) $ECHO_C" >&6
1181 if test -n "$ac_ct_CC"; then
1182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1184 ac_save_IFS=$IFS; IFS=$ac_path_separator
1186 for ac_dir in $ac_dummy; do
1188 test -z "$ac_dir" && ac_dir=.
1189 $as_executable_p "$ac_dir/$ac_word" || continue
1190 ac_cv_prog_ac_ct_CC="gcc"
1191 echo "$as_me:1191: found $ac_dir/$ac_word" >&5
1197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1198 if test -n "$ac_ct_CC"; then
1199 echo "$as_me:1199: result: $ac_ct_CC" >&5
1200 echo "${ECHO_T}$ac_ct_CC" >&6
1202 echo "$as_me:1202: result: no" >&5
1203 echo "${ECHO_T}no" >&6
1211 if test -z "$CC"; then
1212 if test -n "$ac_tool_prefix"; then
1213 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1214 set dummy ${ac_tool_prefix}cc; ac_word=$2
1215 echo "$as_me:1215: checking for $ac_word" >&5
1216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1217 if test "${ac_cv_prog_CC+set}" = set; then
1218 echo $ECHO_N "(cached) $ECHO_C" >&6
1220 if test -n "$CC"; then
1221 ac_cv_prog_CC="$CC" # Let the user override the test.
1223 ac_save_IFS=$IFS; IFS=$ac_path_separator
1225 for ac_dir in $ac_dummy; do
1227 test -z "$ac_dir" && ac_dir=.
1228 $as_executable_p "$ac_dir/$ac_word" || continue
1229 ac_cv_prog_CC="${ac_tool_prefix}cc"
1230 echo "$as_me:1230: found $ac_dir/$ac_word" >&5
1237 if test -n "$CC"; then
1238 echo "$as_me:1238: result: $CC" >&5
1239 echo "${ECHO_T}$CC" >&6
1241 echo "$as_me:1241: result: no" >&5
1242 echo "${ECHO_T}no" >&6
1246 if test -z "$ac_cv_prog_CC"; then
1248 # Extract the first word of "cc", so it can be a program name with args.
1249 set dummy cc; ac_word=$2
1250 echo "$as_me:1250: checking for $ac_word" >&5
1251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1252 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1253 echo $ECHO_N "(cached) $ECHO_C" >&6
1255 if test -n "$ac_ct_CC"; then
1256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1258 ac_save_IFS=$IFS; IFS=$ac_path_separator
1260 for ac_dir in $ac_dummy; do
1262 test -z "$ac_dir" && ac_dir=.
1263 $as_executable_p "$ac_dir/$ac_word" || continue
1264 ac_cv_prog_ac_ct_CC="cc"
1265 echo "$as_me:1265: found $ac_dir/$ac_word" >&5
1271 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1272 if test -n "$ac_ct_CC"; then
1273 echo "$as_me:1273: result: $ac_ct_CC" >&5
1274 echo "${ECHO_T}$ac_ct_CC" >&6
1276 echo "$as_me:1276: result: no" >&5
1277 echo "${ECHO_T}no" >&6
1286 if test -z "$CC"; then
1287 # Extract the first word of "cc", so it can be a program name with args.
1288 set dummy cc; ac_word=$2
1289 echo "$as_me:1289: checking for $ac_word" >&5
1290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1291 if test "${ac_cv_prog_CC+set}" = set; then
1292 echo $ECHO_N "(cached) $ECHO_C" >&6
1294 if test -n "$CC"; then
1295 ac_cv_prog_CC="$CC" # Let the user override the test.
1298 ac_save_IFS=$IFS; IFS=$ac_path_separator
1300 for ac_dir in $ac_dummy; do
1302 test -z "$ac_dir" && ac_dir=.
1303 $as_executable_p "$ac_dir/$ac_word" || continue
1304 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1305 ac_prog_rejected=yes
1309 echo "$as_me:1309: found $ac_dir/$ac_word" >&5
1313 if test $ac_prog_rejected = yes; then
1314 # We found a bogon in the path, so make sure we never use it.
1315 set dummy $ac_cv_prog_CC
1317 if test $# != 0; then
1318 # We chose a different compiler from the bogus one.
1319 # However, it has the same basename, so the bogon will be chosen
1320 # first if we set CC to just the basename; use the full file name.
1322 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1330 if test -n "$CC"; then
1331 echo "$as_me:1331: result: $CC" >&5
1332 echo "${ECHO_T}$CC" >&6
1334 echo "$as_me:1334: result: no" >&5
1335 echo "${ECHO_T}no" >&6
1339 if test -z "$CC"; then
1340 if test -n "$ac_tool_prefix"; then
1343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1345 echo "$as_me:1345: checking for $ac_word" >&5
1346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1347 if test "${ac_cv_prog_CC+set}" = set; then
1348 echo $ECHO_N "(cached) $ECHO_C" >&6
1350 if test -n "$CC"; then
1351 ac_cv_prog_CC="$CC" # Let the user override the test.
1353 ac_save_IFS=$IFS; IFS=$ac_path_separator
1355 for ac_dir in $ac_dummy; do
1357 test -z "$ac_dir" && ac_dir=.
1358 $as_executable_p "$ac_dir/$ac_word" || continue
1359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1360 echo "$as_me:1360: found $ac_dir/$ac_word" >&5
1367 if test -n "$CC"; then
1368 echo "$as_me:1368: result: $CC" >&5
1369 echo "${ECHO_T}$CC" >&6
1371 echo "$as_me:1371: result: no" >&5
1372 echo "${ECHO_T}no" >&6
1375 test -n "$CC" && break
1378 if test -z "$CC"; then
1382 # Extract the first word of "$ac_prog", so it can be a program name with args.
1383 set dummy $ac_prog; ac_word=$2
1384 echo "$as_me:1384: checking for $ac_word" >&5
1385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1386 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1389 if test -n "$ac_ct_CC"; then
1390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1392 ac_save_IFS=$IFS; IFS=$ac_path_separator
1394 for ac_dir in $ac_dummy; do
1396 test -z "$ac_dir" && ac_dir=.
1397 $as_executable_p "$ac_dir/$ac_word" || continue
1398 ac_cv_prog_ac_ct_CC="$ac_prog"
1399 echo "$as_me:1399: found $ac_dir/$ac_word" >&5
1405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1406 if test -n "$ac_ct_CC"; then
1407 echo "$as_me:1407: result: $ac_ct_CC" >&5
1408 echo "${ECHO_T}$ac_ct_CC" >&6
1410 echo "$as_me:1410: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1414 test -n "$ac_ct_CC" && break
1422 test -z "$CC" && { { echo "$as_me:1422: error: no acceptable cc found in \$PATH" >&5
1423 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1424 { (exit 1); exit 1; }; }
1426 # Provide some information about the compiler.
1427 echo "$as_me:1427:" \
1428 "checking for C compiler version" >&5
1429 ac_compiler=`set X $ac_compile; echo $2`
1430 { (eval echo "$as_me:1430: \"$ac_compiler --version </dev/null >&5\"") >&5
1431 (eval $ac_compiler --version </dev/null >&5) 2>&5
1433 echo "$as_me:1433: \$? = $ac_status" >&5
1434 (exit $ac_status); }
1435 { (eval echo "$as_me:1435: \"$ac_compiler -v </dev/null >&5\"") >&5
1436 (eval $ac_compiler -v </dev/null >&5) 2>&5
1438 echo "$as_me:1438: \$? = $ac_status" >&5
1439 (exit $ac_status); }
1440 { (eval echo "$as_me:1440: \"$ac_compiler -V </dev/null >&5\"") >&5
1441 (eval $ac_compiler -V </dev/null >&5) 2>&5
1443 echo "$as_me:1443: \$? = $ac_status" >&5
1444 (exit $ac_status); }
1446 cat >conftest.$ac_ext <<_ACEOF
1447 #line 1447 "configure"
1448 #include "confdefs.h"
1458 ac_clean_files_save=$ac_clean_files
1459 ac_clean_files="$ac_clean_files a.out a.exe"
1460 # Try to create an executable without -o first, disregard a.out.
1461 # It will help us diagnose broken compilers, and finding out an intuition
1463 echo "$as_me:1463: checking for C compiler default output" >&5
1464 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1465 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1466 if { (eval echo "$as_me:1466: \"$ac_link_default\"") >&5
1467 (eval $ac_link_default) 2>&5
1469 echo "$as_me:1469: \$? = $ac_status" >&5
1470 (exit $ac_status); }; then
1471 # Find the output, starting from the most likely. This scheme is
1472 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1474 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1475 ls a.out conftest 2>/dev/null;
1476 ls a.* conftest.* 2>/dev/null`; do
1478 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1479 a.out ) # We found the default executable, but exeext='' is most
1482 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1483 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1490 echo "$as_me: failed program was:" >&5
1491 cat conftest.$ac_ext >&5
1492 { { echo "$as_me:1492: error: C compiler cannot create executables" >&5
1493 echo "$as_me: error: C compiler cannot create executables" >&2;}
1494 { (exit 77); exit 77; }; }
1497 ac_exeext=$ac_cv_exeext
1498 echo "$as_me:1498: result: $ac_file" >&5
1499 echo "${ECHO_T}$ac_file" >&6
1501 # Check the compiler produces executables we can run. If not, either
1502 # the compiler is broken, or we cross compile.
1503 echo "$as_me:1503: checking whether the C compiler works" >&5
1504 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1505 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1506 # If not cross compiling, check that we can run a simple program.
1507 if test "$cross_compiling" != yes; then
1508 if { ac_try='./$ac_file'
1509 { (eval echo "$as_me:1509: \"$ac_try\"") >&5
1512 echo "$as_me:1512: \$? = $ac_status" >&5
1513 (exit $ac_status); }; }; then
1516 if test "$cross_compiling" = maybe; then
1519 { { echo "$as_me:1519: error: cannot run C compiled programs.
1520 If you meant to cross compile, use \`--host'." >&5
1521 echo "$as_me: error: cannot run C compiled programs.
1522 If you meant to cross compile, use \`--host'." >&2;}
1523 { (exit 1); exit 1; }; }
1527 echo "$as_me:1527: result: yes" >&5
1528 echo "${ECHO_T}yes" >&6
1530 rm -f a.out a.exe conftest$ac_cv_exeext
1531 ac_clean_files=$ac_clean_files_save
1532 # Check the compiler produces executables we can run. If not, either
1533 # the compiler is broken, or we cross compile.
1534 echo "$as_me:1534: checking whether we are cross compiling" >&5
1535 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1536 echo "$as_me:1536: result: $cross_compiling" >&5
1537 echo "${ECHO_T}$cross_compiling" >&6
1539 echo "$as_me:1539: checking for executable suffix" >&5
1540 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1541 if { (eval echo "$as_me:1541: \"$ac_link\"") >&5
1542 (eval $ac_link) 2>&5
1544 echo "$as_me:1544: \$? = $ac_status" >&5
1545 (exit $ac_status); }; then
1546 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1547 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1548 # work properly (i.e., refer to `conftest.exe'), while it won't with
1550 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1552 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1553 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1560 { { echo "$as_me:1560: error: cannot compute EXEEXT: cannot compile and link" >&5
1561 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1562 { (exit 1); exit 1; }; }
1565 rm -f conftest$ac_cv_exeext
1566 echo "$as_me:1566: result: $ac_cv_exeext" >&5
1567 echo "${ECHO_T}$ac_cv_exeext" >&6
1569 rm -f conftest.$ac_ext
1570 EXEEXT=$ac_cv_exeext
1572 echo "$as_me:1572: checking for object suffix" >&5
1573 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1574 if test "${ac_cv_objext+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 cat >conftest.$ac_ext <<_ACEOF
1578 #line 1578 "configure"
1579 #include "confdefs.h"
1589 rm -f conftest.o conftest.obj
1590 if { (eval echo "$as_me:1590: \"$ac_compile\"") >&5
1591 (eval $ac_compile) 2>&5
1593 echo "$as_me:1593: \$? = $ac_status" >&5
1594 (exit $ac_status); }; then
1595 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1597 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1598 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1603 echo "$as_me: failed program was:" >&5
1604 cat conftest.$ac_ext >&5
1605 { { echo "$as_me:1605: error: cannot compute OBJEXT: cannot compile" >&5
1606 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1607 { (exit 1); exit 1; }; }
1610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1612 echo "$as_me:1612: result: $ac_cv_objext" >&5
1613 echo "${ECHO_T}$ac_cv_objext" >&6
1614 OBJEXT=$ac_cv_objext
1616 echo "$as_me:1616: checking whether we are using the GNU C compiler" >&5
1617 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 cat >conftest.$ac_ext <<_ACEOF
1622 #line 1622 "configure"
1623 #include "confdefs.h"
1636 rm -f conftest.$ac_objext
1637 if { (eval echo "$as_me:1637: \"$ac_compile\"") >&5
1638 (eval $ac_compile) 2>&5
1640 echo "$as_me:1640: \$? = $ac_status" >&5
1641 (exit $ac_status); } &&
1642 { ac_try='test -s conftest.$ac_objext'
1643 { (eval echo "$as_me:1643: \"$ac_try\"") >&5
1646 echo "$as_me:1646: \$? = $ac_status" >&5
1647 (exit $ac_status); }; }; then
1650 echo "$as_me: failed program was:" >&5
1651 cat conftest.$ac_ext >&5
1654 rm -f conftest.$ac_objext conftest.$ac_ext
1655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1658 echo "$as_me:1658: result: $ac_cv_c_compiler_gnu" >&5
1659 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1660 GCC=`test $ac_compiler_gnu = yes && echo yes`
1661 ac_test_CFLAGS=${CFLAGS+set}
1662 ac_save_CFLAGS=$CFLAGS
1664 echo "$as_me:1664: checking whether $CC accepts -g" >&5
1665 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1666 if test "${ac_cv_prog_cc_g+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 cat >conftest.$ac_ext <<_ACEOF
1670 #line 1670 "configure"
1671 #include "confdefs.h"
1681 rm -f conftest.$ac_objext
1682 if { (eval echo "$as_me:1682: \"$ac_compile\"") >&5
1683 (eval $ac_compile) 2>&5
1685 echo "$as_me:1685: \$? = $ac_status" >&5
1686 (exit $ac_status); } &&
1687 { ac_try='test -s conftest.$ac_objext'
1688 { (eval echo "$as_me:1688: \"$ac_try\"") >&5
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); }; }; then
1695 echo "$as_me: failed program was:" >&5
1696 cat conftest.$ac_ext >&5
1699 rm -f conftest.$ac_objext conftest.$ac_ext
1701 echo "$as_me:1701: result: $ac_cv_prog_cc_g" >&5
1702 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1703 if test "$ac_test_CFLAGS" = set; then
1704 CFLAGS=$ac_save_CFLAGS
1705 elif test $ac_cv_prog_cc_g = yes; then
1706 if test "$GCC" = yes; then
1712 if test "$GCC" = yes; then
1718 # Some people use a C++ compiler to compile C. Since we use `exit',
1719 # in C++ we need to declare it. In case someone uses the same compiler
1720 # for both compiling C and C++ we need to have the C++ compiler decide
1721 # the declaration of exit, since it's the most demanding environment.
1722 cat >conftest.$ac_ext <<_ACEOF
1727 rm -f conftest.$ac_objext
1728 if { (eval echo "$as_me:1728: \"$ac_compile\"") >&5
1729 (eval $ac_compile) 2>&5
1731 echo "$as_me:1731: \$? = $ac_status" >&5
1732 (exit $ac_status); } &&
1733 { ac_try='test -s conftest.$ac_objext'
1734 { (eval echo "$as_me:1734: \"$ac_try\"") >&5
1737 echo "$as_me:1737: \$? = $ac_status" >&5
1738 (exit $ac_status); }; }; then
1739 for ac_declaration in \
1741 '#include <stdlib.h>' \
1742 'extern "C" void std::exit (int) throw (); using std::exit;' \
1743 'extern "C" void std::exit (int); using std::exit;' \
1744 'extern "C" void exit (int) throw ();' \
1745 'extern "C" void exit (int);' \
1748 cat >conftest.$ac_ext <<_ACEOF
1749 #line 1749 "configure"
1750 #include "confdefs.h"
1761 rm -f conftest.$ac_objext
1762 if { (eval echo "$as_me:1762: \"$ac_compile\"") >&5
1763 (eval $ac_compile) 2>&5
1765 echo "$as_me:1765: \$? = $ac_status" >&5
1766 (exit $ac_status); } &&
1767 { ac_try='test -s conftest.$ac_objext'
1768 { (eval echo "$as_me:1768: \"$ac_try\"") >&5
1771 echo "$as_me:1771: \$? = $ac_status" >&5
1772 (exit $ac_status); }; }; then
1775 echo "$as_me: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1779 rm -f conftest.$ac_objext conftest.$ac_ext
1780 cat >conftest.$ac_ext <<_ACEOF
1781 #line 1781 "configure"
1782 #include "confdefs.h"
1792 rm -f conftest.$ac_objext
1793 if { (eval echo "$as_me:1793: \"$ac_compile\"") >&5
1794 (eval $ac_compile) 2>&5
1796 echo "$as_me:1796: \$? = $ac_status" >&5
1797 (exit $ac_status); } &&
1798 { ac_try='test -s conftest.$ac_objext'
1799 { (eval echo "$as_me:1799: \"$ac_try\"") >&5
1802 echo "$as_me:1802: \$? = $ac_status" >&5
1803 (exit $ac_status); }; }; then
1806 echo "$as_me: failed program was:" >&5
1807 cat conftest.$ac_ext >&5
1809 rm -f conftest.$ac_objext conftest.$ac_ext
1812 if test -n "$ac_declaration"; then
1813 echo '#ifdef __cplusplus' >>confdefs.h
1814 echo $ac_declaration >>confdefs.h
1815 echo '#endif' >>confdefs.h
1819 echo "$as_me: failed program was:" >&5
1820 cat conftest.$ac_ext >&5
1822 rm -f conftest.$ac_objext conftest.$ac_ext
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828 ac_main_return=return
1831 if test "$GCC" = yes ; then
1832 echo "$as_me:1832: checking version of $CC" >&5
1833 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1834 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(\(GCC\|Debian\)[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1835 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1836 echo "$as_me:1836: result: $GCC_VERSION" >&5
1837 echo "${ECHO_T}$GCC_VERSION" >&6
1840 echo "$as_me:1840: checking for $CC option to accept ANSI C" >&5
1841 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1842 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 ac_cv_prog_cc_stdc=no
1847 cat >conftest.$ac_ext <<_ACEOF
1848 #line 1848 "configure"
1849 #include "confdefs.h"
1852 #include <sys/types.h>
1853 #include <sys/stat.h>
1854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1855 struct buf { int x; };
1856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1857 static char *e (p, i)
1863 static char *f (char * (*g) (char **, int), char **p, ...)
1868 s = g (p, va_arg (v,int));
1872 int test (int i, double x);
1873 struct s1 {int (*f) (int a);};
1874 struct s2 {int (*f) (double a);};
1875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1886 # Don't try gcc -ansi; that turns off useful extensions and
1887 # breaks some systems' header files.
1888 # AIX -qlanglvl=ansi
1889 # Ultrix and OSF/1 -std1
1890 # HP-UX 10.20 and later -Ae
1891 # HP-UX older versions -Aa -D_HPUX_SOURCE
1892 # SVR4 -Xc -D__EXTENSIONS__
1893 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1895 CC="$ac_save_CC $ac_arg"
1896 rm -f conftest.$ac_objext
1897 if { (eval echo "$as_me:1897: \"$ac_compile\"") >&5
1898 (eval $ac_compile) 2>&5
1900 echo "$as_me:1900: \$? = $ac_status" >&5
1901 (exit $ac_status); } &&
1902 { ac_try='test -s conftest.$ac_objext'
1903 { (eval echo "$as_me:1903: \"$ac_try\"") >&5
1906 echo "$as_me:1906: \$? = $ac_status" >&5
1907 (exit $ac_status); }; }; then
1908 ac_cv_prog_cc_stdc=$ac_arg
1911 echo "$as_me: failed program was:" >&5
1912 cat conftest.$ac_ext >&5
1914 rm -f conftest.$ac_objext
1916 rm -f conftest.$ac_ext conftest.$ac_objext
1921 case "x$ac_cv_prog_cc_stdc" in
1923 echo "$as_me:1923: result: none needed" >&5
1924 echo "${ECHO_T}none needed" >&6 ;;
1926 echo "$as_me:1926: result: $ac_cv_prog_cc_stdc" >&5
1927 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1928 CC="$CC $ac_cv_prog_cc_stdc" ;;
1931 # This should have been defined by AC_PROG_CC
1934 echo "$as_me:1934: checking \$CC variable" >&5
1935 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1938 echo "$as_me:1938: result: broken" >&5
1939 echo "${ECHO_T}broken" >&6
1940 { echo "$as_me:1940: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1941 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1943 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
1944 CC=`echo "$CC" | sed -e 's/[ ].*//'`
1949 cf_new_extra_cppflags=
1951 for cf_add_cflags in $cf_flags
1953 case $cf_fix_cppflags in
1955 case $cf_add_cflags in #(vi
1956 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
1957 case $cf_add_cflags in
1959 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1961 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1962 && test -z "${cf_tst_cflags}" \
1963 && cf_fix_cppflags=yes
1965 if test $cf_fix_cppflags = yes ; then
1966 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1968 elif test "${cf_tst_cflags}" = "\"'" ; then
1969 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1975 *$cf_add_cflags) #(vi
1978 case $cf_add_cflags in #(vi
1980 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1982 CPPFLAGS=`echo "$CPPFLAGS" | \
1983 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1984 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1988 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1993 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
1998 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2000 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2002 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2003 && test -z "${cf_tst_cflags}" \
2004 && cf_fix_cppflags=no
2009 if test -n "$cf_new_cflags" ; then
2011 CFLAGS="$CFLAGS $cf_new_cflags"
2014 if test -n "$cf_new_cppflags" ; then
2016 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2019 if test -n "$cf_new_extra_cppflags" ; then
2021 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2026 echo "$as_me:2026: result: ok" >&5
2027 echo "${ECHO_T}ok" >&6
2032 ac_cpp='$CPP $CPPFLAGS'
2033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2036 ac_main_return=return
2037 echo "$as_me:2037: checking how to run the C preprocessor" >&5
2038 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2039 # On Suns, sometimes $CPP names a directory.
2040 if test -n "$CPP" && test -d "$CPP"; then
2043 if test -z "$CPP"; then
2044 if test "${ac_cv_prog_CPP+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 # Double quotes because CPP needs to be expanded
2048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2051 for ac_c_preproc_warn_flag in '' yes
2053 # Use a header file that comes with gcc, so configuring glibc
2054 # with a fresh cross-compiler works.
2055 # On the NeXT, cc -E runs the code through the compiler's parser,
2056 # not just through cpp. "Syntax error" is here to catch this case.
2057 cat >conftest.$ac_ext <<_ACEOF
2058 #line 2058 "configure"
2059 #include "confdefs.h"
2063 if { (eval echo "$as_me:2063: \"$ac_cpp conftest.$ac_ext\"") >&5
2064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2066 egrep -v '^ *\+' conftest.er1 >conftest.err
2068 cat conftest.err >&5
2069 echo "$as_me:2069: \$? = $ac_status" >&5
2070 (exit $ac_status); } >/dev/null; then
2071 if test -s conftest.err; then
2072 ac_cpp_err=$ac_c_preproc_warn_flag
2079 if test -z "$ac_cpp_err"; then
2082 echo "$as_me: failed program was:" >&5
2083 cat conftest.$ac_ext >&5
2084 # Broken: fails on valid input.
2087 rm -f conftest.err conftest.$ac_ext
2089 # OK, works on sane cases. Now check whether non-existent headers
2090 # can be detected and how.
2091 cat >conftest.$ac_ext <<_ACEOF
2092 #line 2092 "configure"
2093 #include "confdefs.h"
2094 #include <ac_nonexistent.h>
2096 if { (eval echo "$as_me:2096: \"$ac_cpp conftest.$ac_ext\"") >&5
2097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2099 egrep -v '^ *\+' conftest.er1 >conftest.err
2101 cat conftest.err >&5
2102 echo "$as_me:2102: \$? = $ac_status" >&5
2103 (exit $ac_status); } >/dev/null; then
2104 if test -s conftest.err; then
2105 ac_cpp_err=$ac_c_preproc_warn_flag
2112 if test -z "$ac_cpp_err"; then
2113 # Broken: success on invalid input.
2116 echo "$as_me: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2118 # Passes both tests.
2122 rm -f conftest.err conftest.$ac_ext
2125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2126 rm -f conftest.err conftest.$ac_ext
2127 if $ac_preproc_ok; then
2139 echo "$as_me:2139: result: $CPP" >&5
2140 echo "${ECHO_T}$CPP" >&6
2142 for ac_c_preproc_warn_flag in '' yes
2144 # Use a header file that comes with gcc, so configuring glibc
2145 # with a fresh cross-compiler works.
2146 # On the NeXT, cc -E runs the code through the compiler's parser,
2147 # not just through cpp. "Syntax error" is here to catch this case.
2148 cat >conftest.$ac_ext <<_ACEOF
2149 #line 2149 "configure"
2150 #include "confdefs.h"
2154 if { (eval echo "$as_me:2154: \"$ac_cpp conftest.$ac_ext\"") >&5
2155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2157 egrep -v '^ *\+' conftest.er1 >conftest.err
2159 cat conftest.err >&5
2160 echo "$as_me:2160: \$? = $ac_status" >&5
2161 (exit $ac_status); } >/dev/null; then
2162 if test -s conftest.err; then
2163 ac_cpp_err=$ac_c_preproc_warn_flag
2170 if test -z "$ac_cpp_err"; then
2173 echo "$as_me: failed program was:" >&5
2174 cat conftest.$ac_ext >&5
2175 # Broken: fails on valid input.
2178 rm -f conftest.err conftest.$ac_ext
2180 # OK, works on sane cases. Now check whether non-existent headers
2181 # can be detected and how.
2182 cat >conftest.$ac_ext <<_ACEOF
2183 #line 2183 "configure"
2184 #include "confdefs.h"
2185 #include <ac_nonexistent.h>
2187 if { (eval echo "$as_me:2187: \"$ac_cpp conftest.$ac_ext\"") >&5
2188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2190 egrep -v '^ *\+' conftest.er1 >conftest.err
2192 cat conftest.err >&5
2193 echo "$as_me:2193: \$? = $ac_status" >&5
2194 (exit $ac_status); } >/dev/null; then
2195 if test -s conftest.err; then
2196 ac_cpp_err=$ac_c_preproc_warn_flag
2203 if test -z "$ac_cpp_err"; then
2204 # Broken: success on invalid input.
2207 echo "$as_me: failed program was:" >&5
2208 cat conftest.$ac_ext >&5
2209 # Passes both tests.
2213 rm -f conftest.err conftest.$ac_ext
2216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2217 rm -f conftest.err conftest.$ac_ext
2218 if $ac_preproc_ok; then
2221 { { echo "$as_me:2221: error: C preprocessor \"$CPP\" fails sanity check" >&5
2222 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2223 { (exit 1); exit 1; }; }
2227 ac_cpp='$CPP $CPPFLAGS'
2228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231 ac_main_return=return
2233 for ac_prog in mawk gawk nawk awk
2235 # Extract the first word of "$ac_prog", so it can be a program name with args.
2236 set dummy $ac_prog; ac_word=$2
2237 echo "$as_me:2237: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239 if test "${ac_cv_prog_AWK+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 if test -n "$AWK"; then
2243 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2245 ac_save_IFS=$IFS; IFS=$ac_path_separator
2247 for ac_dir in $ac_dummy; do
2249 test -z "$ac_dir" && ac_dir=.
2250 $as_executable_p "$ac_dir/$ac_word" || continue
2251 ac_cv_prog_AWK="$ac_prog"
2252 echo "$as_me:2252: found $ac_dir/$ac_word" >&5
2259 if test -n "$AWK"; then
2260 echo "$as_me:2260: result: $AWK" >&5
2261 echo "${ECHO_T}$AWK" >&6
2263 echo "$as_me:2263: result: no" >&5
2264 echo "${ECHO_T}no" >&6
2267 test -n "$AWK" && break
2270 # Find a good install program. We prefer a C program (faster),
2271 # so one script is as good as another. But avoid the broken or
2272 # incompatible versions:
2273 # SysV /etc/install, /usr/sbin/install
2274 # SunOS /usr/etc/install
2275 # IRIX /sbin/install
2277 # AmigaOS /C/install, which installs bootblocks on floppy discs
2278 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2279 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2280 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2281 # ./install, which can be erroneously created by make from ./install.sh.
2282 echo "$as_me:2282: checking for a BSD compatible install" >&5
2283 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2284 if test -z "$INSTALL"; then
2285 if test "${ac_cv_path_install+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 ac_save_IFS=$IFS; IFS=$ac_path_separator
2289 for ac_dir in $PATH; do
2291 # Account for people who put trailing slashes in PATH elements.
2293 / | ./ | .// | /cC/* \
2294 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2297 # OSF1 and SCO ODT 3.0 have their own names for install.
2298 # Don't use installbsd from OSF since it installs stuff as root
2300 for ac_prog in ginstall scoinst install; do
2301 if $as_executable_p "$ac_dir/$ac_prog"; then
2302 if test $ac_prog = install &&
2303 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2304 # AIX install. It has an incompatible calling convention.
2306 elif test $ac_prog = install &&
2307 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2308 # program-specific install script used by HP pwplus--don't use.
2311 ac_cv_path_install="$ac_dir/$ac_prog -c"
2321 if test "${ac_cv_path_install+set}" = set; then
2322 INSTALL=$ac_cv_path_install
2324 # As a last resort, use the slow shell script. We don't cache a
2325 # path for INSTALL within a source directory, because that will
2326 # break other packages using the cache if that directory is
2327 # removed, or if the path is relative.
2328 INSTALL=$ac_install_sh
2331 echo "$as_me:2331: result: $INSTALL" >&5
2332 echo "${ECHO_T}$INSTALL" >&6
2334 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2335 # It thinks the first close brace ends the variable substitution.
2336 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2338 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2340 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2346 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2347 test -z "$cf_dir" && cf_dir=.
2348 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2352 for ac_prog in tdlint lint alint splint lclint
2354 # Extract the first word of "$ac_prog", so it can be a program name with args.
2355 set dummy $ac_prog; ac_word=$2
2356 echo "$as_me:2356: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2358 if test "${ac_cv_prog_LINT+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 if test -n "$LINT"; then
2362 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2364 ac_save_IFS=$IFS; IFS=$ac_path_separator
2366 for ac_dir in $ac_dummy; do
2368 test -z "$ac_dir" && ac_dir=.
2369 $as_executable_p "$ac_dir/$ac_word" || continue
2370 ac_cv_prog_LINT="$ac_prog"
2371 echo "$as_me:2371: found $ac_dir/$ac_word" >&5
2377 LINT=$ac_cv_prog_LINT
2378 if test -n "$LINT"; then
2379 echo "$as_me:2379: result: $LINT" >&5
2380 echo "${ECHO_T}$LINT" >&6
2382 echo "$as_me:2382: result: no" >&5
2383 echo "${ECHO_T}no" >&6
2386 test -n "$LINT" && break
2389 echo "$as_me:2389: checking if filesystem supports mixed-case filenames" >&5
2390 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2391 if test "${cf_cv_mixedcase+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 if test "$cross_compiling" = yes ; then
2396 case $target_alias in #(vi
2397 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2405 rm -f conftest CONFTEST
2407 if test -f CONFTEST ; then
2412 rm -f conftest CONFTEST
2416 echo "$as_me:2416: result: $cf_cv_mixedcase" >&5
2417 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2418 test "$cf_cv_mixedcase" = yes &&
2419 cat >>confdefs.h <<\EOF
2420 #define MIXEDCASE_FILENAMES 1
2423 for ac_prog in exctags ctags
2425 # Extract the first word of "$ac_prog", so it can be a program name with args.
2426 set dummy $ac_prog; ac_word=$2
2427 echo "$as_me:2427: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429 if test "${ac_cv_prog_CTAGS+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 if test -n "$CTAGS"; then
2433 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2435 ac_save_IFS=$IFS; IFS=$ac_path_separator
2437 for ac_dir in $ac_dummy; do
2439 test -z "$ac_dir" && ac_dir=.
2440 $as_executable_p "$ac_dir/$ac_word" || continue
2441 ac_cv_prog_CTAGS="$ac_prog"
2442 echo "$as_me:2442: found $ac_dir/$ac_word" >&5
2448 CTAGS=$ac_cv_prog_CTAGS
2449 if test -n "$CTAGS"; then
2450 echo "$as_me:2450: result: $CTAGS" >&5
2451 echo "${ECHO_T}$CTAGS" >&6
2453 echo "$as_me:2453: result: no" >&5
2454 echo "${ECHO_T}no" >&6
2457 test -n "$CTAGS" && break
2460 for ac_prog in exetags etags
2462 # Extract the first word of "$ac_prog", so it can be a program name with args.
2463 set dummy $ac_prog; ac_word=$2
2464 echo "$as_me:2464: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2466 if test "${ac_cv_prog_ETAGS+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 if test -n "$ETAGS"; then
2470 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2472 ac_save_IFS=$IFS; IFS=$ac_path_separator
2474 for ac_dir in $ac_dummy; do
2476 test -z "$ac_dir" && ac_dir=.
2477 $as_executable_p "$ac_dir/$ac_word" || continue
2478 ac_cv_prog_ETAGS="$ac_prog"
2479 echo "$as_me:2479: found $ac_dir/$ac_word" >&5
2485 ETAGS=$ac_cv_prog_ETAGS
2486 if test -n "$ETAGS"; then
2487 echo "$as_me:2487: result: $ETAGS" >&5
2488 echo "${ECHO_T}$ETAGS" >&6
2490 echo "$as_me:2490: result: no" >&5
2491 echo "${ECHO_T}no" >&6
2494 test -n "$ETAGS" && break
2497 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2498 set dummy ${CTAGS:-ctags}; ac_word=$2
2499 echo "$as_me:2499: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2501 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 if test -n "$MAKE_LOWER_TAGS"; then
2505 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2507 ac_save_IFS=$IFS; IFS=$ac_path_separator
2509 for ac_dir in $ac_dummy; do
2511 test -z "$ac_dir" && ac_dir=.
2512 $as_executable_p "$ac_dir/$ac_word" || continue
2513 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2514 echo "$as_me:2514: found $ac_dir/$ac_word" >&5
2518 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2521 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2522 if test -n "$MAKE_LOWER_TAGS"; then
2523 echo "$as_me:2523: result: $MAKE_LOWER_TAGS" >&5
2524 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2526 echo "$as_me:2526: result: no" >&5
2527 echo "${ECHO_T}no" >&6
2530 if test "$cf_cv_mixedcase" = yes ; then
2531 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2532 set dummy ${ETAGS:-etags}; ac_word=$2
2533 echo "$as_me:2533: checking for $ac_word" >&5
2534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2535 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2538 if test -n "$MAKE_UPPER_TAGS"; then
2539 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2541 ac_save_IFS=$IFS; IFS=$ac_path_separator
2543 for ac_dir in $ac_dummy; do
2545 test -z "$ac_dir" && ac_dir=.
2546 $as_executable_p "$ac_dir/$ac_word" || continue
2547 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2548 echo "$as_me:2548: found $ac_dir/$ac_word" >&5
2552 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2555 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2556 if test -n "$MAKE_UPPER_TAGS"; then
2557 echo "$as_me:2557: result: $MAKE_UPPER_TAGS" >&5
2558 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2560 echo "$as_me:2560: result: no" >&5
2561 echo "${ECHO_T}no" >&6
2568 if test "$MAKE_UPPER_TAGS" = yes ; then
2574 if test "$MAKE_LOWER_TAGS" = yes ; then
2580 echo "$as_me:2580: checking if -lm needed for math functions" >&5
2581 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2582 if test "${cf_cv_need_libm+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 cat >conftest.$ac_ext <<_ACEOF
2587 #line 2587 "configure"
2588 #include "confdefs.h"
2596 double x = rand(); printf("result = %g\n", sin(x))
2601 rm -f conftest.$ac_objext conftest$ac_exeext
2602 if { (eval echo "$as_me:2602: \"$ac_link\"") >&5
2603 (eval $ac_link) 2>&5
2605 echo "$as_me:2605: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -s conftest$ac_exeext'
2608 { (eval echo "$as_me:2608: \"$ac_try\"") >&5
2611 echo "$as_me:2611: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2615 echo "$as_me: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2621 echo "$as_me:2621: result: $cf_cv_need_libm" >&5
2622 echo "${ECHO_T}$cf_cv_need_libm" >&6
2623 if test "$cf_cv_need_libm" = yes
2631 CC_SHARED_OPTS=unknown
2632 CPPFLAGS="$CPPFLAGS"
2634 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2635 DFT_UPR_MODEL="NORMAL"
2652 TINFO_LIBS='$(LIBS_CURSES)'
2653 cf_cv_abi_version=""
2654 cf_cv_rel_version=""
2659 if test "$GCC" = yes
2661 cat > conftest.i <<EOF
2663 #define GCC_PRINTF 0
2668 #ifndef GCC_NORETURN
2669 #define GCC_NORETURN /* nothing */
2672 #define GCC_UNUSED /* nothing */
2675 if test "$GCC" = yes
2677 { echo "$as_me:2677: checking for $CC __attribute__ directives..." >&5
2678 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2679 cat > conftest.$ac_ext <<EOF
2680 #line 2680 "${as_me:-configure}"
2681 #include "confdefs.h"
2682 #include "conftest.h"
2683 #include "conftest.i"
2685 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2687 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2690 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2692 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2694 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2695 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2696 extern void foo(void) GCC_NORETURN;
2697 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2699 cf_printf_attribute=no
2700 cf_scanf_attribute=no
2701 for cf_attribute in scanf printf unused noreturn
2704 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2706 cf_directive="__attribute__(($cf_attribute))"
2707 echo "checking for $CC $cf_directive" 1>&5
2709 case $cf_attribute in #(vi
2711 cf_printf_attribute=yes
2712 cat >conftest.h <<EOF
2713 #define GCC_$cf_ATTRIBUTE 1
2717 cf_scanf_attribute=yes
2718 cat >conftest.h <<EOF
2719 #define GCC_$cf_ATTRIBUTE 1
2723 cat >conftest.h <<EOF
2724 #define GCC_$cf_ATTRIBUTE $cf_directive
2729 if { (eval echo "$as_me:2729: \"$ac_compile\"") >&5
2730 (eval $ac_compile) 2>&5
2732 echo "$as_me:2732: \$? = $ac_status" >&5
2733 (exit $ac_status); }; then
2734 test -n "$verbose" && echo "$as_me:2734: result: ... $cf_attribute" >&5
2735 echo "${ECHO_T}... $cf_attribute" >&6
2736 cat conftest.h >>confdefs.h
2737 case $cf_attribute in #(vi
2740 cat >>confdefs.h <<EOF
2741 #define GCC_NORETURN $cf_directive
2746 cf_value='/* nothing */'
2747 if test "$cf_printf_attribute" != no ; then
2748 cf_value='__attribute__((format(printf,fmt,var)))'
2750 cat >>confdefs.h <<\EOF
2751 #define GCC_PRINTF 1
2756 cat >>confdefs.h <<EOF
2757 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2762 cf_value='/* nothing */'
2763 if test "$cf_scanf_attribute" != no ; then
2764 cf_value='__attribute__((format(scanf,fmt,var)))'
2766 cat >>confdefs.h <<\EOF
2772 cat >>confdefs.h <<EOF
2773 #define GCC_SCANFLIKE(fmt,var) $cf_value
2779 cat >>confdefs.h <<EOF
2780 #define GCC_UNUSED $cf_directive
2788 fgrep define conftest.i >>confdefs.h
2794 cf_POSIX_C_SOURCE=199506L
2797 case $host_os in #(vi
2799 cf_xopen_source="-D_ALL_SOURCE"
2805 cf_xopen_source="-D_APPLE_C_SOURCE"
2808 cf_xopen_source="-D_DARWIN_C_SOURCE"
2811 freebsd*|dragonfly*) #(vi
2812 # 5.x headers associate
2813 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2814 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2815 cf_POSIX_C_SOURCE=200112L
2817 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2820 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2823 cf_xopen_source="-D_HPUX_SOURCE"
2826 cf_xopen_source="-D_SGI_SOURCE"
2829 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2831 echo "$as_me:2831: checking if we must define _GNU_SOURCE" >&5
2832 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2833 if test "${cf_cv_gnu_source+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 cat >conftest.$ac_ext <<_ACEOF
2838 #line 2838 "configure"
2839 #include "confdefs.h"
2840 #include <sys/types.h>
2845 #ifndef _XOPEN_SOURCE
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:2853: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>&5
2856 echo "$as_me:2856: \$? = $ac_status" >&5
2857 (exit $ac_status); } &&
2858 { ac_try='test -s conftest.$ac_objext'
2859 { (eval echo "$as_me:2859: \"$ac_try\"") >&5
2862 echo "$as_me:2862: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2866 echo "$as_me: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2869 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2870 cat >conftest.$ac_ext <<_ACEOF
2871 #line 2871 "configure"
2872 #include "confdefs.h"
2873 #include <sys/types.h>
2878 #ifdef _XOPEN_SOURCE
2885 rm -f conftest.$ac_objext
2886 if { (eval echo "$as_me:2886: \"$ac_compile\"") >&5
2887 (eval $ac_compile) 2>&5
2889 echo "$as_me:2889: \$? = $ac_status" >&5
2890 (exit $ac_status); } &&
2891 { ac_try='test -s conftest.$ac_objext'
2892 { (eval echo "$as_me:2892: \"$ac_try\"") >&5
2895 echo "$as_me:2895: \$? = $ac_status" >&5
2896 (exit $ac_status); }; }; then
2899 echo "$as_me: failed program was:" >&5
2900 cat conftest.$ac_ext >&5
2901 cf_cv_gnu_source=yes
2903 rm -f conftest.$ac_objext conftest.$ac_ext
2907 rm -f conftest.$ac_objext conftest.$ac_ext
2910 echo "$as_me:2910: result: $cf_cv_gnu_source" >&5
2911 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2912 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2916 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2919 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2921 cf_save_CFLAGS="$CFLAGS"
2922 cf_save_CPPFLAGS="$CPPFLAGS"
2924 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2925 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2926 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2928 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2929 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2930 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2932 echo "$as_me:2932: checking if we should define _POSIX_C_SOURCE" >&5
2933 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2934 if test "${cf_cv_posix_c_source+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 echo "${as_me:-configure}:2938: testing if the symbol is already defined go no further ..." 1>&5
2940 cat >conftest.$ac_ext <<_ACEOF
2941 #line 2941 "configure"
2942 #include "confdefs.h"
2943 #include <sys/types.h>
2948 #ifndef _POSIX_C_SOURCE
2955 rm -f conftest.$ac_objext
2956 if { (eval echo "$as_me:2956: \"$ac_compile\"") >&5
2957 (eval $ac_compile) 2>&5
2959 echo "$as_me:2959: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try='test -s conftest.$ac_objext'
2962 { (eval echo "$as_me:2962: \"$ac_try\"") >&5
2965 echo "$as_me:2965: \$? = $ac_status" >&5
2966 (exit $ac_status); }; }; then
2967 cf_cv_posix_c_source=no
2969 echo "$as_me: failed program was:" >&5
2970 cat conftest.$ac_ext >&5
2971 cf_want_posix_source=no
2972 case .$cf_POSIX_C_SOURCE in #(vi
2974 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2977 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2978 cf_want_posix_source=yes
2981 cf_want_posix_source=yes
2984 if test "$cf_want_posix_source" = yes ; then
2985 cat >conftest.$ac_ext <<_ACEOF
2986 #line 2986 "configure"
2987 #include "confdefs.h"
2988 #include <sys/types.h>
2993 #ifdef _POSIX_SOURCE
3000 rm -f conftest.$ac_objext
3001 if { (eval echo "$as_me:3001: \"$ac_compile\"") >&5
3002 (eval $ac_compile) 2>&5
3004 echo "$as_me:3004: \$? = $ac_status" >&5
3005 (exit $ac_status); } &&
3006 { ac_try='test -s conftest.$ac_objext'
3007 { (eval echo "$as_me:3007: \"$ac_try\"") >&5
3010 echo "$as_me:3010: \$? = $ac_status" >&5
3011 (exit $ac_status); }; }; then
3014 echo "$as_me: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3016 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3018 rm -f conftest.$ac_objext conftest.$ac_ext
3021 echo "${as_me:-configure}:3021: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3023 CFLAGS="$cf_trim_CFLAGS"
3024 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3026 echo "${as_me:-configure}:3026: testing if the second compile does not leave our definition intact error ..." 1>&5
3028 cat >conftest.$ac_ext <<_ACEOF
3029 #line 3029 "configure"
3030 #include "confdefs.h"
3031 #include <sys/types.h>
3036 #ifndef _POSIX_C_SOURCE
3043 rm -f conftest.$ac_objext
3044 if { (eval echo "$as_me:3044: \"$ac_compile\"") >&5
3045 (eval $ac_compile) 2>&5
3047 echo "$as_me:3047: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (eval echo "$as_me:3050: \"$ac_try\"") >&5
3053 echo "$as_me:3053: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3057 echo "$as_me: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3059 cf_cv_posix_c_source=no
3061 rm -f conftest.$ac_objext conftest.$ac_ext
3062 CFLAGS="$cf_save_CFLAGS"
3063 CPPFLAGS="$cf_save_CPPFLAGS"
3066 rm -f conftest.$ac_objext conftest.$ac_ext
3069 echo "$as_me:3069: result: $cf_cv_posix_c_source" >&5
3070 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3072 if test "$cf_cv_posix_c_source" != no ; then
3073 CFLAGS="$cf_trim_CFLAGS"
3074 CPPFLAGS="$cf_trim_CPPFLAGS"
3079 cf_new_extra_cppflags=
3081 for cf_add_cflags in $cf_cv_posix_c_source
3083 case $cf_fix_cppflags in
3085 case $cf_add_cflags in #(vi
3086 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3087 case $cf_add_cflags in
3089 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3091 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3092 && test -z "${cf_tst_cflags}" \
3093 && cf_fix_cppflags=yes
3095 if test $cf_fix_cppflags = yes ; then
3096 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3098 elif test "${cf_tst_cflags}" = "\"'" ; then
3099 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3105 *$cf_add_cflags) #(vi
3108 case $cf_add_cflags in #(vi
3110 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3112 CPPFLAGS=`echo "$CPPFLAGS" | \
3113 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3114 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3118 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3123 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3128 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3130 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3132 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3133 && test -z "${cf_tst_cflags}" \
3134 && cf_fix_cppflags=no
3139 if test -n "$cf_new_cflags" ; then
3141 CFLAGS="$CFLAGS $cf_new_cflags"
3144 if test -n "$cf_new_cppflags" ; then
3146 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3149 if test -n "$cf_new_extra_cppflags" ; then
3151 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3158 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3161 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3162 cf_xopen_source="-D_BSD_SOURCE"
3166 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3169 cf_xopen_source="-D_OSF_SOURCE"
3172 cf_xopen_source="-D_QNX_SOURCE"
3175 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3178 cf_xopen_source="-D__EXTENSIONS__"
3182 echo "$as_me:3182: checking if we should define _XOPEN_SOURCE" >&5
3183 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3184 if test "${cf_cv_xopen_source+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 cat >conftest.$ac_ext <<_ACEOF
3189 #line 3189 "configure"
3190 #include "confdefs.h"
3194 #include <sys/types.h>
3200 #ifndef _XOPEN_SOURCE
3207 rm -f conftest.$ac_objext
3208 if { (eval echo "$as_me:3208: \"$ac_compile\"") >&5
3209 (eval $ac_compile) 2>&5
3211 echo "$as_me:3211: \$? = $ac_status" >&5
3212 (exit $ac_status); } &&
3213 { ac_try='test -s conftest.$ac_objext'
3214 { (eval echo "$as_me:3214: \"$ac_try\"") >&5
3217 echo "$as_me:3217: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
3219 cf_cv_xopen_source=no
3221 echo "$as_me: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3224 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3225 cat >conftest.$ac_ext <<_ACEOF
3226 #line 3226 "configure"
3227 #include "confdefs.h"
3231 #include <sys/types.h>
3237 #ifdef _XOPEN_SOURCE
3244 rm -f conftest.$ac_objext
3245 if { (eval echo "$as_me:3245: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>&5
3248 echo "$as_me:3248: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:3251: \"$ac_try\"") >&5
3254 echo "$as_me:3254: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 cf_cv_xopen_source=no
3258 echo "$as_me: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3260 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3262 rm -f conftest.$ac_objext conftest.$ac_ext
3266 rm -f conftest.$ac_objext conftest.$ac_ext
3269 echo "$as_me:3269: result: $cf_cv_xopen_source" >&5
3270 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3272 if test "$cf_cv_xopen_source" != no ; then
3274 CFLAGS=`echo "$CFLAGS" | \
3275 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3276 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3278 CPPFLAGS=`echo "$CPPFLAGS" | \
3279 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3280 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3282 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3287 cf_new_extra_cppflags=
3289 for cf_add_cflags in $cf_temp_xopen_source
3291 case $cf_fix_cppflags in
3293 case $cf_add_cflags in #(vi
3294 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3295 case $cf_add_cflags in
3297 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3299 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3300 && test -z "${cf_tst_cflags}" \
3301 && cf_fix_cppflags=yes
3303 if test $cf_fix_cppflags = yes ; then
3304 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3306 elif test "${cf_tst_cflags}" = "\"'" ; then
3307 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3313 *$cf_add_cflags) #(vi
3316 case $cf_add_cflags in #(vi
3318 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3320 CPPFLAGS=`echo "$CPPFLAGS" | \
3321 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3322 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3326 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3331 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3336 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3338 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3340 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3341 && test -z "${cf_tst_cflags}" \
3342 && cf_fix_cppflags=no
3347 if test -n "$cf_new_cflags" ; then
3349 CFLAGS="$CFLAGS $cf_new_cflags"
3352 if test -n "$cf_new_cppflags" ; then
3354 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3357 if test -n "$cf_new_extra_cppflags" ; then
3359 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3364 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3366 cf_save_CFLAGS="$CFLAGS"
3367 cf_save_CPPFLAGS="$CPPFLAGS"
3369 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3370 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3371 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3373 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3374 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3375 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3377 echo "$as_me:3377: checking if we should define _POSIX_C_SOURCE" >&5
3378 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3379 if test "${cf_cv_posix_c_source+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 echo "${as_me:-configure}:3383: testing if the symbol is already defined go no further ..." 1>&5
3385 cat >conftest.$ac_ext <<_ACEOF
3386 #line 3386 "configure"
3387 #include "confdefs.h"
3388 #include <sys/types.h>
3393 #ifndef _POSIX_C_SOURCE
3400 rm -f conftest.$ac_objext
3401 if { (eval echo "$as_me:3401: \"$ac_compile\"") >&5
3402 (eval $ac_compile) 2>&5
3404 echo "$as_me:3404: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
3406 { ac_try='test -s conftest.$ac_objext'
3407 { (eval echo "$as_me:3407: \"$ac_try\"") >&5
3410 echo "$as_me:3410: \$? = $ac_status" >&5
3411 (exit $ac_status); }; }; then
3412 cf_cv_posix_c_source=no
3414 echo "$as_me: failed program was:" >&5
3415 cat conftest.$ac_ext >&5
3416 cf_want_posix_source=no
3417 case .$cf_POSIX_C_SOURCE in #(vi
3419 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3422 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3423 cf_want_posix_source=yes
3426 cf_want_posix_source=yes
3429 if test "$cf_want_posix_source" = yes ; then
3430 cat >conftest.$ac_ext <<_ACEOF
3431 #line 3431 "configure"
3432 #include "confdefs.h"
3433 #include <sys/types.h>
3438 #ifdef _POSIX_SOURCE
3445 rm -f conftest.$ac_objext
3446 if { (eval echo "$as_me:3446: \"$ac_compile\"") >&5
3447 (eval $ac_compile) 2>&5
3449 echo "$as_me:3449: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try='test -s conftest.$ac_objext'
3452 { (eval echo "$as_me:3452: \"$ac_try\"") >&5
3455 echo "$as_me:3455: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3459 echo "$as_me: failed program was:" >&5
3460 cat conftest.$ac_ext >&5
3461 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3463 rm -f conftest.$ac_objext conftest.$ac_ext
3466 echo "${as_me:-configure}:3466: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3468 CFLAGS="$cf_trim_CFLAGS"
3469 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3471 echo "${as_me:-configure}:3471: testing if the second compile does not leave our definition intact error ..." 1>&5
3473 cat >conftest.$ac_ext <<_ACEOF
3474 #line 3474 "configure"
3475 #include "confdefs.h"
3476 #include <sys/types.h>
3481 #ifndef _POSIX_C_SOURCE
3488 rm -f conftest.$ac_objext
3489 if { (eval echo "$as_me:3489: \"$ac_compile\"") >&5
3490 (eval $ac_compile) 2>&5
3492 echo "$as_me:3492: \$? = $ac_status" >&5
3493 (exit $ac_status); } &&
3494 { ac_try='test -s conftest.$ac_objext'
3495 { (eval echo "$as_me:3495: \"$ac_try\"") >&5
3498 echo "$as_me:3498: \$? = $ac_status" >&5
3499 (exit $ac_status); }; }; then
3502 echo "$as_me: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 cf_cv_posix_c_source=no
3506 rm -f conftest.$ac_objext conftest.$ac_ext
3507 CFLAGS="$cf_save_CFLAGS"
3508 CPPFLAGS="$cf_save_CPPFLAGS"
3511 rm -f conftest.$ac_objext conftest.$ac_ext
3514 echo "$as_me:3514: result: $cf_cv_posix_c_source" >&5
3515 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3517 if test "$cf_cv_posix_c_source" != no ; then
3518 CFLAGS="$cf_trim_CFLAGS"
3519 CPPFLAGS="$cf_trim_CPPFLAGS"
3524 cf_new_extra_cppflags=
3526 for cf_add_cflags in $cf_cv_posix_c_source
3528 case $cf_fix_cppflags in
3530 case $cf_add_cflags in #(vi
3531 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3532 case $cf_add_cflags in
3534 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3536 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3537 && test -z "${cf_tst_cflags}" \
3538 && cf_fix_cppflags=yes
3540 if test $cf_fix_cppflags = yes ; then
3541 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3543 elif test "${cf_tst_cflags}" = "\"'" ; then
3544 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3550 *$cf_add_cflags) #(vi
3553 case $cf_add_cflags in #(vi
3555 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3557 CPPFLAGS=`echo "$CPPFLAGS" | \
3558 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3559 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3563 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3568 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3573 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3575 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3577 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3578 && test -z "${cf_tst_cflags}" \
3579 && cf_fix_cppflags=no
3584 if test -n "$cf_new_cflags" ; then
3586 CFLAGS="$CFLAGS $cf_new_cflags"
3589 if test -n "$cf_new_cppflags" ; then
3591 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3594 if test -n "$cf_new_extra_cppflags" ; then
3596 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3604 if test -n "$cf_xopen_source" ; then
3609 cf_new_extra_cppflags=
3611 for cf_add_cflags in $cf_xopen_source
3613 case $cf_fix_cppflags in
3615 case $cf_add_cflags in #(vi
3616 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3617 case $cf_add_cflags in
3619 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3621 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3622 && test -z "${cf_tst_cflags}" \
3623 && cf_fix_cppflags=yes
3625 if test $cf_fix_cppflags = yes ; then
3626 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3628 elif test "${cf_tst_cflags}" = "\"'" ; then
3629 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3635 *$cf_add_cflags) #(vi
3638 case $cf_add_cflags in #(vi
3640 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3642 CPPFLAGS=`echo "$CPPFLAGS" | \
3643 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3644 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3648 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3653 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3658 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3660 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3662 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3663 && test -z "${cf_tst_cflags}" \
3664 && cf_fix_cppflags=no
3669 if test -n "$cf_new_cflags" ; then
3671 CFLAGS="$CFLAGS $cf_new_cflags"
3674 if test -n "$cf_new_cppflags" ; then
3676 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3679 if test -n "$cf_new_extra_cppflags" ; then
3681 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3686 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3687 echo "$as_me:3687: checking if _XOPEN_SOURCE really is set" >&5
3688 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3689 cat >conftest.$ac_ext <<_ACEOF
3690 #line 3690 "configure"
3691 #include "confdefs.h"
3697 #ifndef _XOPEN_SOURCE
3704 rm -f conftest.$ac_objext
3705 if { (eval echo "$as_me:3705: \"$ac_compile\"") >&5
3706 (eval $ac_compile) 2>&5
3708 echo "$as_me:3708: \$? = $ac_status" >&5
3709 (exit $ac_status); } &&
3710 { ac_try='test -s conftest.$ac_objext'
3711 { (eval echo "$as_me:3711: \"$ac_try\"") >&5
3714 echo "$as_me:3714: \$? = $ac_status" >&5
3715 (exit $ac_status); }; }; then
3716 cf_XOPEN_SOURCE_set=yes
3718 echo "$as_me: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3720 cf_XOPEN_SOURCE_set=no
3722 rm -f conftest.$ac_objext conftest.$ac_ext
3723 echo "$as_me:3723: result: $cf_XOPEN_SOURCE_set" >&5
3724 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3725 if test $cf_XOPEN_SOURCE_set = yes
3727 cat >conftest.$ac_ext <<_ACEOF
3728 #line 3728 "configure"
3729 #include "confdefs.h"
3735 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3742 rm -f conftest.$ac_objext
3743 if { (eval echo "$as_me:3743: \"$ac_compile\"") >&5
3744 (eval $ac_compile) 2>&5
3746 echo "$as_me:3746: \$? = $ac_status" >&5
3747 (exit $ac_status); } &&
3748 { ac_try='test -s conftest.$ac_objext'
3749 { (eval echo "$as_me:3749: \"$ac_try\"") >&5
3752 echo "$as_me:3752: \$? = $ac_status" >&5
3753 (exit $ac_status); }; }; then
3754 cf_XOPEN_SOURCE_set_ok=yes
3756 echo "$as_me: failed program was:" >&5
3757 cat conftest.$ac_ext >&5
3758 cf_XOPEN_SOURCE_set_ok=no
3760 rm -f conftest.$ac_objext conftest.$ac_ext
3761 if test $cf_XOPEN_SOURCE_set_ok = no
3763 { echo "$as_me:3763: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3764 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3768 echo "$as_me:3768: checking if we should define _XOPEN_SOURCE" >&5
3769 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3770 if test "${cf_cv_xopen_source+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 cat >conftest.$ac_ext <<_ACEOF
3775 #line 3775 "configure"
3776 #include "confdefs.h"
3780 #include <sys/types.h>
3786 #ifndef _XOPEN_SOURCE
3793 rm -f conftest.$ac_objext
3794 if { (eval echo "$as_me:3794: \"$ac_compile\"") >&5
3795 (eval $ac_compile) 2>&5
3797 echo "$as_me:3797: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:3800: \"$ac_try\"") >&5
3803 echo "$as_me:3803: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 cf_cv_xopen_source=no
3807 echo "$as_me: failed program was:" >&5
3808 cat conftest.$ac_ext >&5
3810 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3811 cat >conftest.$ac_ext <<_ACEOF
3812 #line 3812 "configure"
3813 #include "confdefs.h"
3817 #include <sys/types.h>
3823 #ifdef _XOPEN_SOURCE
3830 rm -f conftest.$ac_objext
3831 if { (eval echo "$as_me:3831: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>&5
3834 echo "$as_me:3834: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:3837: \"$ac_try\"") >&5
3840 echo "$as_me:3840: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 cf_cv_xopen_source=no
3844 echo "$as_me: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3846 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3848 rm -f conftest.$ac_objext conftest.$ac_ext
3852 rm -f conftest.$ac_objext conftest.$ac_ext
3855 echo "$as_me:3855: result: $cf_cv_xopen_source" >&5
3856 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3858 if test "$cf_cv_xopen_source" != no ; then
3860 CFLAGS=`echo "$CFLAGS" | \
3861 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3862 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3864 CPPFLAGS=`echo "$CPPFLAGS" | \
3865 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3866 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3868 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3873 cf_new_extra_cppflags=
3875 for cf_add_cflags in $cf_temp_xopen_source
3877 case $cf_fix_cppflags in
3879 case $cf_add_cflags in #(vi
3880 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3881 case $cf_add_cflags in
3883 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3885 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3886 && test -z "${cf_tst_cflags}" \
3887 && cf_fix_cppflags=yes
3889 if test $cf_fix_cppflags = yes ; then
3890 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3892 elif test "${cf_tst_cflags}" = "\"'" ; then
3893 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3899 *$cf_add_cflags) #(vi
3902 case $cf_add_cflags in #(vi
3904 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3906 CPPFLAGS=`echo "$CPPFLAGS" | \
3907 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3908 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3912 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3917 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3922 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3924 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3926 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3927 && test -z "${cf_tst_cflags}" \
3928 && cf_fix_cppflags=no
3933 if test -n "$cf_new_cflags" ; then
3935 CFLAGS="$CFLAGS $cf_new_cflags"
3938 if test -n "$cf_new_cppflags" ; then
3940 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3943 if test -n "$cf_new_extra_cppflags" ; then
3945 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3953 echo "$as_me:3953: checking for signal global datatype" >&5
3954 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3955 if test "${cf_cv_sig_atomic_t+set}" = set; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 "volatile sig_atomic_t" \
3964 cat >conftest.$ac_ext <<_ACEOF
3965 #line 3965 "configure"
3966 #include "confdefs.h"
3968 #include <sys/types.h>
3974 static void handler(int sig)
3981 signal(SIGINT, handler);
3987 rm -f conftest.$ac_objext
3988 if { (eval echo "$as_me:3988: \"$ac_compile\"") >&5
3989 (eval $ac_compile) 2>&5
3991 echo "$as_me:3991: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -s conftest.$ac_objext'
3994 { (eval echo "$as_me:3994: \"$ac_try\"") >&5
3997 echo "$as_me:3997: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 cf_cv_sig_atomic_t=$cf_type
4001 echo "$as_me: failed program was:" >&5
4002 cat conftest.$ac_ext >&5
4003 cf_cv_sig_atomic_t=no
4005 rm -f conftest.$ac_objext conftest.$ac_ext
4006 test "$cf_cv_sig_atomic_t" != no && break
4011 echo "$as_me:4011: result: $cf_cv_sig_atomic_t" >&5
4012 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4013 test "$cf_cv_sig_atomic_t" != no &&
4014 cat >>confdefs.h <<EOF
4015 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4018 echo "$as_me:4018: checking if you want to use pkg-config" >&5
4019 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4021 # Check whether --with-pkg-config or --without-pkg-config was given.
4022 if test "${with_pkg_config+set}" = set; then
4023 withval="$with_pkg_config"
4024 cf_pkg_config=$withval
4028 echo "$as_me:4028: result: $cf_pkg_config" >&5
4029 echo "${ECHO_T}$cf_pkg_config" >&6
4031 case $cf_pkg_config in #(vi
4037 if test -n "$ac_tool_prefix"; then
4038 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4039 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4040 echo "$as_me:4040: checking for $ac_word" >&5
4041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4042 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4050 ac_save_IFS=$IFS; IFS=$ac_path_separator
4052 for ac_dir in $ac_dummy; do
4054 test -z "$ac_dir" && ac_dir=.
4055 if $as_executable_p "$ac_dir/$ac_word"; then
4056 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4057 echo "$as_me:4057: found $ac_dir/$ac_word" >&5
4065 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4067 if test -n "$PKG_CONFIG"; then
4068 echo "$as_me:4068: result: $PKG_CONFIG" >&5
4069 echo "${ECHO_T}$PKG_CONFIG" >&6
4071 echo "$as_me:4071: result: no" >&5
4072 echo "${ECHO_T}no" >&6
4076 if test -z "$ac_cv_path_PKG_CONFIG"; then
4077 ac_pt_PKG_CONFIG=$PKG_CONFIG
4078 # Extract the first word of "pkg-config", so it can be a program name with args.
4079 set dummy pkg-config; ac_word=$2
4080 echo "$as_me:4080: checking for $ac_word" >&5
4081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4082 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 case $ac_pt_PKG_CONFIG in
4087 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4090 ac_save_IFS=$IFS; IFS=$ac_path_separator
4092 for ac_dir in $ac_dummy; do
4094 test -z "$ac_dir" && ac_dir=.
4095 if $as_executable_p "$ac_dir/$ac_word"; then
4096 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4097 echo "$as_me:4097: found $ac_dir/$ac_word" >&5
4102 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4106 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4108 if test -n "$ac_pt_PKG_CONFIG"; then
4109 echo "$as_me:4109: result: $ac_pt_PKG_CONFIG" >&5
4110 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4112 echo "$as_me:4112: result: no" >&5
4113 echo "${ECHO_T}no" >&6
4116 PKG_CONFIG=$ac_pt_PKG_CONFIG
4118 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4127 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4128 if test "$PKG_CONFIG" != none ; then
4130 if test "x$prefix" != xNONE; then
4131 cf_path_syntax="$prefix"
4133 cf_path_syntax="$ac_default_prefix"
4136 case ".$PKG_CONFIG" in #(vi
4137 .\$\(*\)*|.\'*\'*) #(vi
4141 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4143 .\${*prefix}*|.\${*dir}*) #(vi
4144 eval PKG_CONFIG="$PKG_CONFIG"
4145 case ".$PKG_CONFIG" in #(vi
4147 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4152 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4155 { { echo "$as_me:4155: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4156 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4157 { (exit 1); exit 1; }; }
4163 echo "$as_me:4163: checking if you want to see long compiling messages" >&5
4164 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4166 # Check whether --enable-echo or --disable-echo was given.
4167 if test "${enable_echo+set}" = set; then
4168 enableval="$enable_echo"
4169 test "$enableval" != no && enableval=yes
4170 if test "$enableval" != "yes" ; then
4173 ECHO_LD='@echo linking $@;'
4174 RULE_CC='@echo compiling $<'
4175 SHOW_CC='@echo compiling $@'
4197 echo "$as_me:4197: result: $enableval" >&5
4198 echo "${ECHO_T}$enableval" >&6
4200 echo "$as_me:4200: checking for ncurses wrap-prefix" >&5
4201 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
4203 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
4204 if test "${with_ncurses_wrap_prefix+set}" = set; then
4205 withval="$with_ncurses_wrap_prefix"
4206 NCURSES_WRAP_PREFIX=$withval
4208 NCURSES_WRAP_PREFIX=_nc_
4210 echo "$as_me:4210: result: $NCURSES_WRAP_PREFIX" >&5
4211 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
4213 echo "$as_me:4213: checking if you want to check for wide-character functions" >&5
4214 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
4216 # Check whether --enable-widec or --disable-widec was given.
4217 if test "${enable_widec+set}" = set; then
4218 enableval="$enable_widec"
4219 test "$enableval" != no && enableval=yes
4220 if test "$enableval" != "yes" ; then
4230 echo "$as_me:4230: result: $cf_enable_widec" >&5
4231 echo "${ECHO_T}$cf_enable_widec" >&6
4233 echo "$as_me:4233: checking for specific curses-directory" >&5
4234 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4236 # Check whether --with-curses-dir or --without-curses-dir was given.
4237 if test "${with_curses_dir+set}" = set; then
4238 withval="$with_curses_dir"
4239 cf_cv_curses_dir=$withval
4243 echo "$as_me:4243: result: $cf_cv_curses_dir" >&5
4244 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4246 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4249 if test "x$prefix" != xNONE; then
4250 cf_path_syntax="$prefix"
4252 cf_path_syntax="$ac_default_prefix"
4255 case ".$withval" in #(vi
4256 .\$\(*\)*|.\'*\'*) #(vi
4260 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4262 .\${*prefix}*|.\${*dir}*) #(vi
4263 eval withval="$withval"
4264 case ".$withval" in #(vi
4266 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4271 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4274 { { echo "$as_me:4274: error: expected a pathname, not \"$withval\"" >&5
4275 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4276 { (exit 1); exit 1; }; }
4280 if test -d "$cf_cv_curses_dir"
4283 if test -n "$cf_cv_curses_dir/include" ; then
4284 for cf_add_incdir in $cf_cv_curses_dir/include
4286 while test $cf_add_incdir != /usr/include
4288 if test -d $cf_add_incdir
4291 if test -n "$CFLAGS$CPPFLAGS" ; then
4292 # a loop is needed to ensure we can add subdirs of existing dirs
4293 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4294 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4295 cf_have_incdir=yes; break
4300 if test "$cf_have_incdir" = no ; then
4301 if test "$cf_add_incdir" = /usr/local/include ; then
4302 if test "$GCC" = yes
4304 cf_save_CPPFLAGS=$CPPFLAGS
4305 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4306 cat >conftest.$ac_ext <<_ACEOF
4307 #line 4307 "configure"
4308 #include "confdefs.h"
4318 rm -f conftest.$ac_objext
4319 if { (eval echo "$as_me:4319: \"$ac_compile\"") >&5
4320 (eval $ac_compile) 2>&5
4322 echo "$as_me:4322: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try='test -s conftest.$ac_objext'
4325 { (eval echo "$as_me:4325: \"$ac_try\"") >&5
4328 echo "$as_me:4328: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4332 echo "$as_me: failed program was:" >&5
4333 cat conftest.$ac_ext >&5
4336 rm -f conftest.$ac_objext conftest.$ac_ext
4337 CPPFLAGS=$cf_save_CPPFLAGS
4342 if test "$cf_have_incdir" = no ; then
4343 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4345 echo "${as_me:-configure}:4345: testing adding $cf_add_incdir to include-path ..." 1>&5
4347 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4349 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4350 test "$cf_top_incdir" = "$cf_add_incdir" && break
4351 cf_add_incdir="$cf_top_incdir"
4360 if test -n "$cf_cv_curses_dir/lib" ; then
4361 for cf_add_libdir in $cf_cv_curses_dir/lib
4363 if test $cf_add_libdir = /usr/lib ; then
4365 elif test -d $cf_add_libdir
4368 if test -n "$LDFLAGS$LIBS" ; then
4369 # a loop is needed to ensure we can add subdirs of existing dirs
4370 for cf_test_libdir in $LDFLAGS $LIBS ; do
4371 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4372 cf_have_libdir=yes; break
4376 if test "$cf_have_libdir" = no ; then
4377 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4379 echo "${as_me:-configure}:4379: testing adding $cf_add_libdir to library-path ..." 1>&5
4381 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4392 echo "$as_me:4392: checking for specified curses library type" >&5
4393 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
4395 # Check whether --with-ncursesw or --without-ncursesw was given.
4396 if test "${with_ncursesw+set}" = set; then
4397 withval="$with_ncursesw"
4398 cf_cv_screen=ncursesw
4401 # Check whether --with-ncurses or --without-ncurses was given.
4402 if test "${with_ncurses+set}" = set; then
4403 withval="$with_ncurses"
4404 cf_cv_screen=ncurses
4407 # Check whether --with-pdcurses or --without-pdcurses was given.
4408 if test "${with_pdcurses+set}" = set; then
4409 withval="$with_pdcurses"
4410 cf_cv_screen=pdcurses
4413 # Check whether --with-curses-colr or --without-curses-colr was given.
4414 if test "${with_curses_colr+set}" = set; then
4415 withval="$with_curses_colr"
4416 cf_cv_screen=curses_colr
4419 # Check whether --with-curses-5lib or --without-curses-5lib was given.
4420 if test "${with_curses_5lib+set}" = set; then
4421 withval="$with_curses_5lib"
4422 cf_cv_screen=curses_5lib
4429 echo "$as_me:4429: result: $cf_cv_screen" >&5
4430 echo "${ECHO_T}$cf_cv_screen" >&6
4432 case $cf_cv_screen in #(vi
4433 curses|curses_*) #(vi
4435 echo "$as_me:4435: checking for extra include directories" >&5
4436 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
4437 if test "${cf_cv_curses_incdir+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 cf_cv_curses_incdir=no
4442 case $host_os in #(vi
4444 if test "x$cf_cv_screen" = "xcurses_colr"
4446 test -d /usr/include/curses_colr && \
4447 cf_cv_curses_incdir="-I/usr/include/curses_colr"
4451 if test "x$cf_cv_screen" = "xcurses_5lib"
4453 test -d /usr/5lib && \
4454 test -d /usr/5include && \
4455 cf_cv_curses_incdir="-I/usr/5include"
4461 echo "$as_me:4461: result: $cf_cv_curses_incdir" >&5
4462 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
4463 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
4465 echo "$as_me:4465: checking if we have identified curses headers" >&5
4466 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4467 if test "${cf_cv_ncurses_header+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 cf_cv_ncurses_header=none
4474 curses.h ncurses/ncurses.h ncurses/curses.h
4476 cat >conftest.$ac_ext <<_ACEOF
4477 #line 4477 "configure"
4478 #include "confdefs.h"
4479 #include <${cf_header}>
4483 initscr(); tgoto("?", 0,0)
4488 rm -f conftest.$ac_objext
4489 if { (eval echo "$as_me:4489: \"$ac_compile\"") >&5
4490 (eval $ac_compile) 2>&5
4492 echo "$as_me:4492: \$? = $ac_status" >&5
4493 (exit $ac_status); } &&
4494 { ac_try='test -s conftest.$ac_objext'
4495 { (eval echo "$as_me:4495: \"$ac_try\"") >&5
4498 echo "$as_me:4498: \$? = $ac_status" >&5
4499 (exit $ac_status); }; }; then
4500 cf_cv_ncurses_header=$cf_header; break
4502 echo "$as_me: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4505 rm -f conftest.$ac_objext conftest.$ac_ext
4509 echo "$as_me:4509: result: $cf_cv_ncurses_header" >&5
4510 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4512 if test "$cf_cv_ncurses_header" = none ; then
4513 { { echo "$as_me:4513: error: No curses header-files found" >&5
4514 echo "$as_me: error: No curses header-files found" >&2;}
4515 { (exit 1); exit 1; }; }
4518 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4520 for ac_header in $cf_cv_ncurses_header
4522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4523 echo "$as_me:4523: checking for $ac_header" >&5
4524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 cat >conftest.$ac_ext <<_ACEOF
4529 #line 4529 "configure"
4530 #include "confdefs.h"
4531 #include <$ac_header>
4533 if { (eval echo "$as_me:4533: \"$ac_cpp conftest.$ac_ext\"") >&5
4534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4536 egrep -v '^ *\+' conftest.er1 >conftest.err
4538 cat conftest.err >&5
4539 echo "$as_me:4539: \$? = $ac_status" >&5
4540 (exit $ac_status); } >/dev/null; then
4541 if test -s conftest.err; then
4542 ac_cpp_err=$ac_c_preproc_warn_flag
4549 if test -z "$ac_cpp_err"; then
4550 eval "$as_ac_Header=yes"
4552 echo "$as_me: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4554 eval "$as_ac_Header=no"
4556 rm -f conftest.err conftest.$ac_ext
4558 echo "$as_me:4558: result: `eval echo '${'$as_ac_Header'}'`" >&5
4559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4561 cat >>confdefs.h <<EOF
4562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4568 echo "$as_me:4568: checking for terminfo header" >&5
4569 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4570 if test "${cf_cv_term_header+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 case ${cf_cv_ncurses_header} in #(vi
4575 */ncurses.h|*/ncursesw.h) #(vi
4576 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4579 cf_term_header=term.h
4583 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4585 cat >conftest.$ac_ext <<_ACEOF
4586 #line 4586 "configure"
4587 #include "confdefs.h"
4589 #include <${cf_cv_ncurses_header:-curses.h}>
4595 int x = auto_left_margin
4600 rm -f conftest.$ac_objext
4601 if { (eval echo "$as_me:4601: \"$ac_compile\"") >&5
4602 (eval $ac_compile) 2>&5
4604 echo "$as_me:4604: \$? = $ac_status" >&5
4605 (exit $ac_status); } &&
4606 { ac_try='test -s conftest.$ac_objext'
4607 { (eval echo "$as_me:4607: \"$ac_try\"") >&5
4610 echo "$as_me:4610: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then
4613 cf_cv_term_header="$cf_test"
4615 echo "$as_me: failed program was:" >&5
4616 cat conftest.$ac_ext >&5
4618 cf_cv_term_header=unknown
4621 rm -f conftest.$ac_objext conftest.$ac_ext
4622 test "$cf_cv_term_header" != unknown && break
4626 echo "$as_me:4626: result: $cf_cv_term_header" >&5
4627 echo "${ECHO_T}$cf_cv_term_header" >&6
4629 # Set definitions to allow ifdef'ing to accommodate subdirectories
4631 case $cf_cv_term_header in # (vi
4634 cat >>confdefs.h <<\EOF
4635 #define HAVE_TERM_H 1
4641 case $cf_cv_term_header in # (vi
4642 ncurses/term.h) #(vi
4644 cat >>confdefs.h <<\EOF
4645 #define HAVE_NCURSES_TERM_H 1
4651 cat >>confdefs.h <<\EOF
4652 #define HAVE_NCURSESW_TERM_H 1
4658 echo "$as_me:4658: checking for ncurses version" >&5
4659 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
4660 if test "${cf_cv_ncurses_version+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 cf_cv_ncurses_version=no
4667 if test "$cross_compiling" = yes; then
4669 # This will not work if the preprocessor splits the line after the
4670 # Autoconf token. The 'unproto' program does that.
4671 cat > conftest.$ac_ext <<EOF
4672 #include <${cf_cv_ncurses_header:-curses.h}>
4674 #ifdef NCURSES_VERSION
4675 Autoconf NCURSES_VERSION
4683 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
4684 { (eval echo "$as_me:4684: \"$cf_try\"") >&5
4687 echo "$as_me:4687: \$? = $ac_status" >&5
4688 (exit $ac_status); }
4689 if test -f conftest.out ; then
4690 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
4691 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
4696 cat >conftest.$ac_ext <<_ACEOF
4697 #line 4697 "configure"
4698 #include "confdefs.h"
4700 #include <${cf_cv_ncurses_header:-curses.h}>
4704 FILE *fp = fopen("$cf_tempfile", "w");
4705 #ifdef NCURSES_VERSION
4706 # ifdef NCURSES_VERSION_PATCH
4707 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
4709 fprintf(fp, "%s\n", NCURSES_VERSION);
4713 fprintf(fp, "old\n");
4718 ${cf_cv_main_return:-return}(0);
4721 rm -f conftest$ac_exeext
4722 if { (eval echo "$as_me:4722: \"$ac_link\"") >&5
4723 (eval $ac_link) 2>&5
4725 echo "$as_me:4725: \$? = $ac_status" >&5
4726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4727 { (eval echo "$as_me:4727: \"$ac_try\"") >&5
4730 echo "$as_me:4730: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4733 cf_cv_ncurses_version=`cat $cf_tempfile`
4735 echo "$as_me: program exited with status $ac_status" >&5
4736 echo "$as_me: failed program was:" >&5
4737 cat conftest.$ac_ext >&5
4739 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4744 echo "$as_me:4744: result: $cf_cv_ncurses_version" >&5
4745 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
4746 test "$cf_cv_ncurses_version" = no ||
4747 cat >>confdefs.h <<\EOF
4751 echo "$as_me:4751: checking if we have identified curses libraries" >&5
4752 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
4753 cat >conftest.$ac_ext <<_ACEOF
4754 #line 4754 "configure"
4755 #include "confdefs.h"
4756 #include <${cf_cv_ncurses_header:-curses.h}>
4760 initscr(); tgoto("?", 0,0)
4765 rm -f conftest.$ac_objext conftest$ac_exeext
4766 if { (eval echo "$as_me:4766: \"$ac_link\"") >&5
4767 (eval $ac_link) 2>&5
4769 echo "$as_me:4769: \$? = $ac_status" >&5
4770 (exit $ac_status); } &&
4771 { ac_try='test -s conftest$ac_exeext'
4772 { (eval echo "$as_me:4772: \"$ac_try\"") >&5
4775 echo "$as_me:4775: \$? = $ac_status" >&5
4776 (exit $ac_status); }; }; then
4779 echo "$as_me: failed program was:" >&5
4780 cat conftest.$ac_ext >&5
4783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4784 echo "$as_me:4784: result: $cf_result" >&5
4785 echo "${ECHO_T}$cf_result" >&6
4787 if test "$cf_result" = no ; then
4788 case $host_os in #(vi
4790 echo "$as_me:4790: checking for tgoto in -lmytinfo" >&5
4791 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
4792 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 ac_check_lib_save_LIBS=$LIBS
4796 LIBS="-lmytinfo $LIBS"
4797 cat >conftest.$ac_ext <<_ACEOF
4798 #line 4798 "configure"
4799 #include "confdefs.h"
4801 /* Override any gcc2 internal prototype to avoid an error. */
4805 /* We use char because int might match the return type of a gcc2
4806 builtin and then its argument prototype would still apply. */
4816 rm -f conftest.$ac_objext conftest$ac_exeext
4817 if { (eval echo "$as_me:4817: \"$ac_link\"") >&5
4818 (eval $ac_link) 2>&5
4820 echo "$as_me:4820: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try='test -s conftest$ac_exeext'
4823 { (eval echo "$as_me:4823: \"$ac_try\"") >&5
4826 echo "$as_me:4826: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4828 ac_cv_lib_mytinfo_tgoto=yes
4830 echo "$as_me: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4832 ac_cv_lib_mytinfo_tgoto=no
4834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4835 LIBS=$ac_check_lib_save_LIBS
4837 echo "$as_me:4837: result: $ac_cv_lib_mytinfo_tgoto" >&5
4838 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
4839 if test $ac_cv_lib_mytinfo_tgoto = yes; then
4840 LIBS="-lmytinfo $LIBS"
4845 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
4846 # next (1998), and xcurses "newer" (2000). There is no header file for
4847 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
4848 # term.h) for cur_colr
4849 if test "x$cf_cv_screen" = "xcurses_colr"
4851 echo "$as_me:4851: checking for initscr in -lcur_colr" >&5
4852 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
4853 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 ac_check_lib_save_LIBS=$LIBS
4857 LIBS="-lcur_colr $LIBS"
4858 cat >conftest.$ac_ext <<_ACEOF
4859 #line 4859 "configure"
4860 #include "confdefs.h"
4862 /* Override any gcc2 internal prototype to avoid an error. */
4866 /* We use char because int might match the return type of a gcc2
4867 builtin and then its argument prototype would still apply. */
4877 rm -f conftest.$ac_objext conftest$ac_exeext
4878 if { (eval echo "$as_me:4878: \"$ac_link\"") >&5
4879 (eval $ac_link) 2>&5
4881 echo "$as_me:4881: \$? = $ac_status" >&5
4882 (exit $ac_status); } &&
4883 { ac_try='test -s conftest$ac_exeext'
4884 { (eval echo "$as_me:4884: \"$ac_try\"") >&5
4887 echo "$as_me:4887: \$? = $ac_status" >&5
4888 (exit $ac_status); }; }; then
4889 ac_cv_lib_cur_colr_initscr=yes
4891 echo "$as_me: failed program was:" >&5
4892 cat conftest.$ac_ext >&5
4893 ac_cv_lib_cur_colr_initscr=no
4895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4896 LIBS=$ac_check_lib_save_LIBS
4898 echo "$as_me:4898: result: $ac_cv_lib_cur_colr_initscr" >&5
4899 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
4900 if test $ac_cv_lib_cur_colr_initscr = yes; then
4902 LIBS="-lcur_colr $LIBS"
4903 ac_cv_func_initscr=yes
4907 echo "$as_me:4907: checking for initscr in -lHcurses" >&5
4908 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
4909 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 ac_check_lib_save_LIBS=$LIBS
4913 LIBS="-lHcurses $LIBS"
4914 cat >conftest.$ac_ext <<_ACEOF
4915 #line 4915 "configure"
4916 #include "confdefs.h"
4918 /* Override any gcc2 internal prototype to avoid an error. */
4922 /* We use char because int might match the return type of a gcc2
4923 builtin and then its argument prototype would still apply. */
4933 rm -f conftest.$ac_objext conftest$ac_exeext
4934 if { (eval echo "$as_me:4934: \"$ac_link\"") >&5
4935 (eval $ac_link) 2>&5
4937 echo "$as_me:4937: \$? = $ac_status" >&5
4938 (exit $ac_status); } &&
4939 { ac_try='test -s conftest$ac_exeext'
4940 { (eval echo "$as_me:4940: \"$ac_try\"") >&5
4943 echo "$as_me:4943: \$? = $ac_status" >&5
4944 (exit $ac_status); }; }; then
4945 ac_cv_lib_Hcurses_initscr=yes
4947 echo "$as_me: failed program was:" >&5
4948 cat conftest.$ac_ext >&5
4949 ac_cv_lib_Hcurses_initscr=no
4951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4952 LIBS=$ac_check_lib_save_LIBS
4954 echo "$as_me:4954: result: $ac_cv_lib_Hcurses_initscr" >&5
4955 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
4956 if test $ac_cv_lib_Hcurses_initscr = yes; then
4958 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
4959 LIBS="-lHcurses $LIBS"
4960 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
4961 ac_cv_func_initscr=yes
4970 case `arch 2>/dev/null` in
4975 if test -n "/lib64" ; then
4976 for cf_add_libdir in /lib64
4978 if test $cf_add_libdir = /usr/lib ; then
4980 elif test -d $cf_add_libdir
4983 if test -n "$LDFLAGS$LIBS" ; then
4984 # a loop is needed to ensure we can add subdirs of existing dirs
4985 for cf_test_libdir in $LDFLAGS $LIBS ; do
4986 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4987 cf_have_libdir=yes; break
4991 if test "$cf_have_libdir" = no ; then
4992 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4994 echo "${as_me:-configure}:4994: testing adding $cf_add_libdir to library-path ..." 1>&5
4996 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5004 if test -n "/lib" ; then
5005 for cf_add_libdir in /lib
5007 if test $cf_add_libdir = /usr/lib ; then
5009 elif test -d $cf_add_libdir
5012 if test -n "$LDFLAGS$LIBS" ; then
5013 # a loop is needed to ensure we can add subdirs of existing dirs
5014 for cf_test_libdir in $LDFLAGS $LIBS ; do
5015 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5016 cf_have_libdir=yes; break
5020 if test "$cf_have_libdir" = no ; then
5021 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5023 echo "${as_me:-configure}:5023: testing adding $cf_add_libdir to library-path ..." 1>&5
5025 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5035 if test -n "/lib" ; then
5036 for cf_add_libdir in /lib
5038 if test $cf_add_libdir = /usr/lib ; then
5040 elif test -d $cf_add_libdir
5043 if test -n "$LDFLAGS$LIBS" ; then
5044 # a loop is needed to ensure we can add subdirs of existing dirs
5045 for cf_test_libdir in $LDFLAGS $LIBS ; do
5046 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5047 cf_have_libdir=yes; break
5051 if test "$cf_have_libdir" = no ; then
5052 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5054 echo "${as_me:-configure}:5054: testing adding $cf_add_libdir to library-path ..." 1>&5
5056 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5066 if test "x$cf_cv_screen" = "xcurses_5lib"
5068 if test -d /usr/5lib ; then
5070 if test -n "/usr/5lib" ; then
5071 for cf_add_libdir in /usr/5lib
5073 if test $cf_add_libdir = /usr/lib ; then
5075 elif test -d $cf_add_libdir
5078 if test -n "$LDFLAGS$LIBS" ; then
5079 # a loop is needed to ensure we can add subdirs of existing dirs
5080 for cf_test_libdir in $LDFLAGS $LIBS ; do
5081 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5082 cf_have_libdir=yes; break
5086 if test "$cf_have_libdir" = no ; then
5087 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5089 echo "${as_me:-configure}:5089: testing adding $cf_add_libdir to library-path ..." 1>&5
5091 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5097 LIBS="-lcurses -ltermcap $LIBS"
5100 ac_cv_func_initscr=yes
5104 if test ".$ac_cv_func_initscr" != .yes ; then
5105 cf_save_LIBS="$LIBS"
5109 if test ".${cf_cv_ncurses_version:-no}" != .no
5111 cf_check_list="ncurses curses cursesX"
5113 cf_check_list="cursesX curses ncurses"
5116 # Check for library containing tgoto. Do this before curses library
5117 # because it may be needed to link the test-case for initscr.
5118 echo "$as_me:5118: checking for tgoto" >&5
5119 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5120 if test "${ac_cv_func_tgoto+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 cat >conftest.$ac_ext <<_ACEOF
5124 #line 5124 "configure"
5125 #include "confdefs.h"
5126 /* System header to define __stub macros and hopefully few prototypes,
5127 which can conflict with char tgoto (); below. */
5129 /* Override any gcc2 internal prototype to avoid an error. */
5133 /* We use char because int might match the return type of a gcc2
5134 builtin and then its argument prototype would still apply. */
5141 /* The GNU C library defines this for functions which it implements
5142 to always fail with ENOSYS. Some functions are actually named
5143 something starting with __ and the normal name is an alias. */
5144 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5147 f = tgoto; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5154 rm -f conftest.$ac_objext conftest$ac_exeext
5155 if { (eval echo "$as_me:5155: \"$ac_link\"") >&5
5156 (eval $ac_link) 2>&5
5158 echo "$as_me:5158: \$? = $ac_status" >&5
5159 (exit $ac_status); } &&
5160 { ac_try='test -s conftest$ac_exeext'
5161 { (eval echo "$as_me:5161: \"$ac_try\"") >&5
5164 echo "$as_me:5164: \$? = $ac_status" >&5
5165 (exit $ac_status); }; }; then
5166 ac_cv_func_tgoto=yes
5168 echo "$as_me: failed program was:" >&5
5169 cat conftest.$ac_ext >&5
5172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5174 echo "$as_me:5174: result: $ac_cv_func_tgoto" >&5
5175 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5176 if test $ac_cv_func_tgoto = yes; then
5177 cf_term_lib=predefined
5180 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
5182 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5183 echo "$as_me:5183: checking for tgoto in -l$cf_term_lib" >&5
5184 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5185 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 ac_check_lib_save_LIBS=$LIBS
5189 LIBS="-l$cf_term_lib $LIBS"
5190 cat >conftest.$ac_ext <<_ACEOF
5191 #line 5191 "configure"
5192 #include "confdefs.h"
5194 /* Override any gcc2 internal prototype to avoid an error. */
5198 /* We use char because int might match the return type of a gcc2
5199 builtin and then its argument prototype would still apply. */
5209 rm -f conftest.$ac_objext conftest$ac_exeext
5210 if { (eval echo "$as_me:5210: \"$ac_link\"") >&5
5211 (eval $ac_link) 2>&5
5213 echo "$as_me:5213: \$? = $ac_status" >&5
5214 (exit $ac_status); } &&
5215 { ac_try='test -s conftest$ac_exeext'
5216 { (eval echo "$as_me:5216: \"$ac_try\"") >&5
5219 echo "$as_me:5219: \$? = $ac_status" >&5
5220 (exit $ac_status); }; }; then
5221 eval "$as_ac_Lib=yes"
5223 echo "$as_me: failed program was:" >&5
5224 cat conftest.$ac_ext >&5
5225 eval "$as_ac_Lib=no"
5227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5228 LIBS=$ac_check_lib_save_LIBS
5230 echo "$as_me:5230: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5231 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5232 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5240 # Check for library containing initscr
5241 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5242 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
5244 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5245 echo "$as_me:5245: checking for initscr in -l$cf_curs_lib" >&5
5246 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5247 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 ac_check_lib_save_LIBS=$LIBS
5251 LIBS="-l$cf_curs_lib $LIBS"
5252 cat >conftest.$ac_ext <<_ACEOF
5253 #line 5253 "configure"
5254 #include "confdefs.h"
5256 /* Override any gcc2 internal prototype to avoid an error. */
5260 /* We use char because int might match the return type of a gcc2
5261 builtin and then its argument prototype would still apply. */
5271 rm -f conftest.$ac_objext conftest$ac_exeext
5272 if { (eval echo "$as_me:5272: \"$ac_link\"") >&5
5273 (eval $ac_link) 2>&5
5275 echo "$as_me:5275: \$? = $ac_status" >&5
5276 (exit $ac_status); } &&
5277 { ac_try='test -s conftest$ac_exeext'
5278 { (eval echo "$as_me:5278: \"$ac_try\"") >&5
5281 echo "$as_me:5281: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 eval "$as_ac_Lib=yes"
5285 echo "$as_me: failed program was:" >&5
5286 cat conftest.$ac_ext >&5
5287 eval "$as_ac_Lib=no"
5289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5290 LIBS=$ac_check_lib_save_LIBS
5292 echo "$as_me:5292: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5293 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5294 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5299 test $cf_curs_lib = unknown && { { echo "$as_me:5299: error: no curses library found" >&5
5300 echo "$as_me: error: no curses library found" >&2;}
5301 { (exit 1); exit 1; }; }
5303 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5304 if test "$cf_term_lib" = unknown ; then
5305 echo "$as_me:5305: checking if we can link with $cf_curs_lib library" >&5
5306 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5307 cat >conftest.$ac_ext <<_ACEOF
5308 #line 5308 "configure"
5309 #include "confdefs.h"
5310 #include <${cf_cv_ncurses_header:-curses.h}>
5319 rm -f conftest.$ac_objext conftest$ac_exeext
5320 if { (eval echo "$as_me:5320: \"$ac_link\"") >&5
5321 (eval $ac_link) 2>&5
5323 echo "$as_me:5323: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try='test -s conftest$ac_exeext'
5326 { (eval echo "$as_me:5326: \"$ac_try\"") >&5
5329 echo "$as_me:5329: \$? = $ac_status" >&5
5330 (exit $ac_status); }; }; then
5333 echo "$as_me: failed program was:" >&5
5334 cat conftest.$ac_ext >&5
5337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5338 echo "$as_me:5338: result: $cf_result" >&5
5339 echo "${ECHO_T}$cf_result" >&6
5340 test $cf_result = no && { { echo "$as_me:5340: error: Cannot link curses library" >&5
5341 echo "$as_me: error: Cannot link curses library" >&2;}
5342 { (exit 1); exit 1; }; }
5343 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
5345 elif test "$cf_term_lib" != predefined ; then
5346 echo "$as_me:5346: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5347 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5348 cat >conftest.$ac_ext <<_ACEOF
5349 #line 5349 "configure"
5350 #include "confdefs.h"
5351 #include <${cf_cv_ncurses_header:-curses.h}>
5355 initscr(); tgoto((char *)0, 0, 0);
5360 rm -f conftest.$ac_objext conftest$ac_exeext
5361 if { (eval echo "$as_me:5361: \"$ac_link\"") >&5
5362 (eval $ac_link) 2>&5
5364 echo "$as_me:5364: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -s conftest$ac_exeext'
5367 { (eval echo "$as_me:5367: \"$ac_try\"") >&5
5370 echo "$as_me:5370: \$? = $ac_status" >&5
5371 (exit $ac_status); }; }; then
5374 echo "$as_me: failed program was:" >&5
5375 cat conftest.$ac_ext >&5
5377 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5378 cat >conftest.$ac_ext <<_ACEOF
5379 #line 5379 "configure"
5380 #include "confdefs.h"
5381 #include <${cf_cv_ncurses_header:-curses.h}>
5390 rm -f conftest.$ac_objext conftest$ac_exeext
5391 if { (eval echo "$as_me:5391: \"$ac_link\"") >&5
5392 (eval $ac_link) 2>&5
5394 echo "$as_me:5394: \$? = $ac_status" >&5
5395 (exit $ac_status); } &&
5396 { ac_try='test -s conftest$ac_exeext'
5397 { (eval echo "$as_me:5397: \"$ac_try\"") >&5
5400 echo "$as_me:5400: \$? = $ac_status" >&5
5401 (exit $ac_status); }; }; then
5404 echo "$as_me: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5412 echo "$as_me:5412: result: $cf_result" >&5
5413 echo "${ECHO_T}$cf_result" >&6
5421 cf_ncuconfig_root=ncurses
5423 echo "Looking for ${cf_ncuconfig_root}-config"
5425 if test -n "$ac_tool_prefix"; then
5426 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
5428 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5429 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5430 echo "$as_me:5430: checking for $ac_word" >&5
5431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5432 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 if test -n "$NCURSES_CONFIG"; then
5436 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
5438 ac_save_IFS=$IFS; IFS=$ac_path_separator
5440 for ac_dir in $ac_dummy; do
5442 test -z "$ac_dir" && ac_dir=.
5443 $as_executable_p "$ac_dir/$ac_word" || continue
5444 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
5445 echo "$as_me:5445: found $ac_dir/$ac_word" >&5
5451 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
5452 if test -n "$NCURSES_CONFIG"; then
5453 echo "$as_me:5453: result: $NCURSES_CONFIG" >&5
5454 echo "${ECHO_T}$NCURSES_CONFIG" >&6
5456 echo "$as_me:5456: result: no" >&5
5457 echo "${ECHO_T}no" >&6
5460 test -n "$NCURSES_CONFIG" && break
5463 if test -z "$NCURSES_CONFIG"; then
5464 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
5465 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
5467 # Extract the first word of "$ac_prog", so it can be a program name with args.
5468 set dummy $ac_prog; ac_word=$2
5469 echo "$as_me:5469: checking for $ac_word" >&5
5470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5471 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 if test -n "$ac_ct_NCURSES_CONFIG"; then
5475 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
5477 ac_save_IFS=$IFS; IFS=$ac_path_separator
5479 for ac_dir in $ac_dummy; do
5481 test -z "$ac_dir" && ac_dir=.
5482 $as_executable_p "$ac_dir/$ac_word" || continue
5483 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
5484 echo "$as_me:5484: found $ac_dir/$ac_word" >&5
5490 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
5491 if test -n "$ac_ct_NCURSES_CONFIG"; then
5492 echo "$as_me:5492: result: $ac_ct_NCURSES_CONFIG" >&5
5493 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
5495 echo "$as_me:5495: result: no" >&5
5496 echo "${ECHO_T}no" >&6
5499 test -n "$ac_ct_NCURSES_CONFIG" && break
5501 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
5503 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
5506 if test "$NCURSES_CONFIG" != none ; then
5508 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
5509 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
5511 # even with config script, some packages use no-override for curses.h
5513 echo "$as_me:5513: checking if we have identified curses headers" >&5
5514 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
5515 if test "${cf_cv_ncurses_header+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5519 cf_cv_ncurses_header=none
5526 cat >conftest.$ac_ext <<_ACEOF
5527 #line 5527 "configure"
5528 #include "confdefs.h"
5529 #include <${cf_header}>
5533 initscr(); tgoto("?", 0,0)
5538 rm -f conftest.$ac_objext
5539 if { (eval echo "$as_me:5539: \"$ac_compile\"") >&5
5540 (eval $ac_compile) 2>&5
5542 echo "$as_me:5542: \$? = $ac_status" >&5
5543 (exit $ac_status); } &&
5544 { ac_try='test -s conftest.$ac_objext'
5545 { (eval echo "$as_me:5545: \"$ac_try\"") >&5
5548 echo "$as_me:5548: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5550 cf_cv_ncurses_header=$cf_header; break
5552 echo "$as_me: failed program was:" >&5
5553 cat conftest.$ac_ext >&5
5555 rm -f conftest.$ac_objext conftest.$ac_ext
5559 echo "$as_me:5559: result: $cf_cv_ncurses_header" >&5
5560 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
5562 if test "$cf_cv_ncurses_header" = none ; then
5563 { { echo "$as_me:5563: error: No curses header-files found" >&5
5564 echo "$as_me: error: No curses header-files found" >&2;}
5565 { (exit 1); exit 1; }; }
5568 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
5570 for ac_header in $cf_cv_ncurses_header
5572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5573 echo "$as_me:5573: checking for $ac_header" >&5
5574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 cat >conftest.$ac_ext <<_ACEOF
5579 #line 5579 "configure"
5580 #include "confdefs.h"
5581 #include <$ac_header>
5583 if { (eval echo "$as_me:5583: \"$ac_cpp conftest.$ac_ext\"") >&5
5584 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5586 egrep -v '^ *\+' conftest.er1 >conftest.err
5588 cat conftest.err >&5
5589 echo "$as_me:5589: \$? = $ac_status" >&5
5590 (exit $ac_status); } >/dev/null; then
5591 if test -s conftest.err; then
5592 ac_cpp_err=$ac_c_preproc_warn_flag
5599 if test -z "$ac_cpp_err"; then
5600 eval "$as_ac_Header=yes"
5602 echo "$as_me: failed program was:" >&5
5603 cat conftest.$ac_ext >&5
5604 eval "$as_ac_Header=no"
5606 rm -f conftest.err conftest.$ac_ext
5608 echo "$as_me:5608: result: `eval echo '${'$as_ac_Header'}'`" >&5
5609 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5611 cat >>confdefs.h <<EOF
5612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5618 cat >>confdefs.h <<\EOF
5622 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5624 cat >>confdefs.h <<EOF
5625 #define $cf_nculib_ROOT 1
5628 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
5632 cf_ncuhdr_root=ncurses
5634 test -n "$cf_cv_curses_dir" && \
5635 test "$cf_cv_curses_dir" != "no" && { \
5637 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
5638 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
5640 while test $cf_add_incdir != /usr/include
5642 if test -d $cf_add_incdir
5645 if test -n "$CFLAGS$CPPFLAGS" ; then
5646 # a loop is needed to ensure we can add subdirs of existing dirs
5647 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5648 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5649 cf_have_incdir=yes; break
5654 if test "$cf_have_incdir" = no ; then
5655 if test "$cf_add_incdir" = /usr/local/include ; then
5656 if test "$GCC" = yes
5658 cf_save_CPPFLAGS=$CPPFLAGS
5659 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5660 cat >conftest.$ac_ext <<_ACEOF
5661 #line 5661 "configure"
5662 #include "confdefs.h"
5672 rm -f conftest.$ac_objext
5673 if { (eval echo "$as_me:5673: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>&5
5676 echo "$as_me:5676: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:5679: \"$ac_try\"") >&5
5682 echo "$as_me:5682: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5686 echo "$as_me: failed program was:" >&5
5687 cat conftest.$ac_ext >&5
5690 rm -f conftest.$ac_objext conftest.$ac_ext
5691 CPPFLAGS=$cf_save_CPPFLAGS
5696 if test "$cf_have_incdir" = no ; then
5697 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5699 echo "${as_me:-configure}:5699: testing adding $cf_add_incdir to include-path ..." 1>&5
5701 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5703 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5704 test "$cf_top_incdir" = "$cf_add_incdir" && break
5705 cf_add_incdir="$cf_top_incdir"
5716 echo "$as_me:5716: checking for $cf_ncuhdr_root header in include-path" >&5
5717 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
5718 if test "${cf_cv_ncurses_h+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5722 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
5723 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
5724 for cf_header in $cf_header_list
5727 cat >conftest.$ac_ext <<_ACEOF
5728 #line 5728 "configure"
5729 #include "confdefs.h"
5731 #include <$cf_header>
5736 #ifdef NCURSES_VERSION
5738 printf("%s\n", NCURSES_VERSION);
5751 rm -f conftest.$ac_objext
5752 if { (eval echo "$as_me:5752: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>&5
5755 echo "$as_me:5755: \$? = $ac_status" >&5
5756 (exit $ac_status); } &&
5757 { ac_try='test -s conftest.$ac_objext'
5758 { (eval echo "$as_me:5758: \"$ac_try\"") >&5
5761 echo "$as_me:5761: \$? = $ac_status" >&5
5762 (exit $ac_status); }; }; then
5763 cf_cv_ncurses_h=$cf_header
5766 echo "$as_me: failed program was:" >&5
5767 cat conftest.$ac_ext >&5
5770 rm -f conftest.$ac_objext conftest.$ac_ext
5772 test "$cf_cv_ncurses_h" != no && break
5776 echo "$as_me:5776: result: $cf_cv_ncurses_h" >&5
5777 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
5779 if test "$cf_cv_ncurses_h" != no ; then
5780 cf_cv_ncurses_header=$cf_cv_ncurses_h
5783 echo "$as_me:5783: checking for $cf_ncuhdr_root include-path" >&5
5784 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
5785 if test "${cf_cv_ncurses_h2+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 test -n "$verbose" && echo
5793 # collect the current set of include-directories from compiler flags
5794 cf_header_path_list=""
5795 if test -n "${CFLAGS}${CPPFLAGS}" ; then
5796 for cf_header_path in $CPPFLAGS $CFLAGS
5798 case $cf_header_path in #(vi
5800 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
5802 test "$cf_header_path" != "NONE" && \
5803 test -d "$cf_header_path" && \
5805 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
5806 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
5807 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
5808 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
5809 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
5810 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"
5813 cf_header_path_list="$cf_header_path_list $cf_search"
5819 # add the variations for the package we are looking for
5823 test "/usr" != "$prefix" && \
5825 (test $prefix = NONE || test "/usr" != "$prefix") && {
5826 test -n "$verbose" && echo " ... testing for include-directories under /usr"
5827 test -d /usr/include && cf_search="$cf_search /usr/include"
5828 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
5829 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
5830 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
5831 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5834 test "$prefix" != "NONE" && \
5835 test -d "$prefix" && \
5837 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
5838 test -d $prefix/include && cf_search="$cf_search $prefix/include"
5839 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
5840 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
5841 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
5842 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5845 test "/usr/local" != "$prefix" && \
5846 test -d "/usr/local" && \
5847 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
5848 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
5849 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
5850 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
5851 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
5852 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
5853 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5856 test "/opt" != "$prefix" && \
5858 (test $prefix = NONE || test "/opt" != "$prefix") && {
5859 test -n "$verbose" && echo " ... testing for include-directories under /opt"
5860 test -d /opt/include && cf_search="$cf_search /opt/include"
5861 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
5862 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
5863 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
5864 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5867 test "$HOME" != "$prefix" && \
5868 test -d "$HOME" && \
5869 (test $prefix = NONE || test "$HOME" != "$prefix") && {
5870 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
5871 test -d $HOME/include && cf_search="$cf_search $HOME/include"
5872 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
5873 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
5874 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
5875 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5878 test "$includedir" != NONE && \
5879 test "$includedir" != "/usr/include" && \
5880 test -d "$includedir" && {
5881 test -d $includedir && cf_search="$cf_search $includedir"
5882 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
5885 test "$oldincludedir" != NONE && \
5886 test "$oldincludedir" != "/usr/include" && \
5887 test -d "$oldincludedir" && {
5888 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
5889 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
5892 cf_search="$cf_search $cf_header_path_list"
5894 test -n "$verbose" && echo search path $cf_search
5895 cf_save2_CPPFLAGS="$CPPFLAGS"
5896 for cf_incdir in $cf_search
5899 if test -n "$cf_incdir" ; then
5900 for cf_add_incdir in $cf_incdir
5902 while test $cf_add_incdir != /usr/include
5904 if test -d $cf_add_incdir
5907 if test -n "$CFLAGS$CPPFLAGS" ; then
5908 # a loop is needed to ensure we can add subdirs of existing dirs
5909 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5910 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5911 cf_have_incdir=yes; break
5916 if test "$cf_have_incdir" = no ; then
5917 if test "$cf_add_incdir" = /usr/local/include ; then
5918 if test "$GCC" = yes
5920 cf_save_CPPFLAGS=$CPPFLAGS
5921 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5922 cat >conftest.$ac_ext <<_ACEOF
5923 #line 5923 "configure"
5924 #include "confdefs.h"
5934 rm -f conftest.$ac_objext
5935 if { (eval echo "$as_me:5935: \"$ac_compile\"") >&5
5936 (eval $ac_compile) 2>&5
5938 echo "$as_me:5938: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try='test -s conftest.$ac_objext'
5941 { (eval echo "$as_me:5941: \"$ac_try\"") >&5
5944 echo "$as_me:5944: \$? = $ac_status" >&5
5945 (exit $ac_status); }; }; then
5948 echo "$as_me: failed program was:" >&5
5949 cat conftest.$ac_ext >&5
5952 rm -f conftest.$ac_objext conftest.$ac_ext
5953 CPPFLAGS=$cf_save_CPPFLAGS
5958 if test "$cf_have_incdir" = no ; then
5959 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5961 echo "${as_me:-configure}:5961: testing adding $cf_add_incdir to include-path ..." 1>&5
5963 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5965 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5966 test "$cf_top_incdir" = "$cf_add_incdir" && break
5967 cf_add_incdir="$cf_top_incdir"
5981 cat >conftest.$ac_ext <<_ACEOF
5982 #line 5982 "configure"
5983 #include "confdefs.h"
5985 #include <$cf_header>
5990 #ifdef NCURSES_VERSION
5992 printf("%s\n", NCURSES_VERSION);
6005 rm -f conftest.$ac_objext
6006 if { (eval echo "$as_me:6006: \"$ac_compile\"") >&5
6007 (eval $ac_compile) 2>&5
6009 echo "$as_me:6009: \$? = $ac_status" >&5
6010 (exit $ac_status); } &&
6011 { ac_try='test -s conftest.$ac_objext'
6012 { (eval echo "$as_me:6012: \"$ac_try\"") >&5
6015 echo "$as_me:6015: \$? = $ac_status" >&5
6016 (exit $ac_status); }; }; then
6017 cf_cv_ncurses_h2=$cf_header
6020 echo "$as_me: failed program was:" >&5
6021 cat conftest.$ac_ext >&5
6024 rm -f conftest.$ac_objext conftest.$ac_ext
6026 if test "$cf_cv_ncurses_h2" != no ; then
6027 cf_cv_ncurses_h2=$cf_incdir/$cf_header
6028 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
6031 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
6033 CPPFLAGS="$cf_save2_CPPFLAGS"
6034 test "$cf_cv_ncurses_h2" != no && break
6036 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:6036: error: not found" >&5
6037 echo "$as_me: error: not found" >&2;}
6038 { (exit 1); exit 1; }; }
6041 echo "$as_me:6041: result: $cf_cv_ncurses_h2" >&5
6042 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
6044 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
6045 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
6046 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
6047 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
6050 if test -n "$cf_1st_incdir" ; then
6051 for cf_add_incdir in $cf_1st_incdir
6053 while test $cf_add_incdir != /usr/include
6055 if test -d $cf_add_incdir
6058 if test -n "$CFLAGS$CPPFLAGS" ; then
6059 # a loop is needed to ensure we can add subdirs of existing dirs
6060 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6061 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6062 cf_have_incdir=yes; break
6067 if test "$cf_have_incdir" = no ; then
6068 if test "$cf_add_incdir" = /usr/local/include ; then
6069 if test "$GCC" = yes
6071 cf_save_CPPFLAGS=$CPPFLAGS
6072 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6073 cat >conftest.$ac_ext <<_ACEOF
6074 #line 6074 "configure"
6075 #include "confdefs.h"
6085 rm -f conftest.$ac_objext
6086 if { (eval echo "$as_me:6086: \"$ac_compile\"") >&5
6087 (eval $ac_compile) 2>&5
6089 echo "$as_me:6089: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -s conftest.$ac_objext'
6092 { (eval echo "$as_me:6092: \"$ac_try\"") >&5
6095 echo "$as_me:6095: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6099 echo "$as_me: failed program was:" >&5
6100 cat conftest.$ac_ext >&5
6103 rm -f conftest.$ac_objext conftest.$ac_ext
6104 CPPFLAGS=$cf_save_CPPFLAGS
6109 if test "$cf_have_incdir" = no ; then
6110 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6112 echo "${as_me:-configure}:6112: testing adding $cf_add_incdir to include-path ..." 1>&5
6114 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6116 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6117 test "$cf_top_incdir" = "$cf_add_incdir" && break
6118 cf_add_incdir="$cf_top_incdir"
6129 # Set definitions to allow ifdef'ing for ncurses.h
6131 case $cf_cv_ncurses_header in # (vi
6134 cat >>confdefs.h <<\EOF
6135 #define HAVE_NCURSES_H 1
6141 case $cf_cv_ncurses_header in # (vi
6142 ncurses/curses.h|ncurses/ncurses.h)
6144 cat >>confdefs.h <<\EOF
6145 #define HAVE_NCURSES_NCURSES_H 1
6149 ncursesw/curses.h|ncursesw/ncurses.h)
6151 cat >>confdefs.h <<\EOF
6152 #define HAVE_NCURSESW_NCURSES_H 1
6158 echo "$as_me:6158: checking for terminfo header" >&5
6159 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6160 if test "${cf_cv_term_header+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 case ${cf_cv_ncurses_header} in #(vi
6165 */ncurses.h|*/ncursesw.h) #(vi
6166 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6169 cf_term_header=term.h
6173 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6175 cat >conftest.$ac_ext <<_ACEOF
6176 #line 6176 "configure"
6177 #include "confdefs.h"
6179 #include <${cf_cv_ncurses_header:-curses.h}>
6185 int x = auto_left_margin
6190 rm -f conftest.$ac_objext
6191 if { (eval echo "$as_me:6191: \"$ac_compile\"") >&5
6192 (eval $ac_compile) 2>&5
6194 echo "$as_me:6194: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -s conftest.$ac_objext'
6197 { (eval echo "$as_me:6197: \"$ac_try\"") >&5
6200 echo "$as_me:6200: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6203 cf_cv_term_header="$cf_test"
6205 echo "$as_me: failed program was:" >&5
6206 cat conftest.$ac_ext >&5
6208 cf_cv_term_header=unknown
6211 rm -f conftest.$ac_objext conftest.$ac_ext
6212 test "$cf_cv_term_header" != unknown && break
6216 echo "$as_me:6216: result: $cf_cv_term_header" >&5
6217 echo "${ECHO_T}$cf_cv_term_header" >&6
6219 # Set definitions to allow ifdef'ing to accommodate subdirectories
6221 case $cf_cv_term_header in # (vi
6224 cat >>confdefs.h <<\EOF
6225 #define HAVE_TERM_H 1
6231 case $cf_cv_term_header in # (vi
6232 ncurses/term.h) #(vi
6234 cat >>confdefs.h <<\EOF
6235 #define HAVE_NCURSES_TERM_H 1
6241 cat >>confdefs.h <<\EOF
6242 #define HAVE_NCURSESW_TERM_H 1
6248 # some applications need this, but should check for NCURSES_VERSION
6250 cat >>confdefs.h <<\EOF
6254 echo "$as_me:6254: checking for ncurses version" >&5
6255 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
6256 if test "${cf_cv_ncurses_version+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 cf_cv_ncurses_version=no
6263 if test "$cross_compiling" = yes; then
6265 # This will not work if the preprocessor splits the line after the
6266 # Autoconf token. The 'unproto' program does that.
6267 cat > conftest.$ac_ext <<EOF
6268 #include <${cf_cv_ncurses_header:-curses.h}>
6270 #ifdef NCURSES_VERSION
6271 Autoconf NCURSES_VERSION
6279 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
6280 { (eval echo "$as_me:6280: \"$cf_try\"") >&5
6283 echo "$as_me:6283: \$? = $ac_status" >&5
6284 (exit $ac_status); }
6285 if test -f conftest.out ; then
6286 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
6287 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
6292 cat >conftest.$ac_ext <<_ACEOF
6293 #line 6293 "configure"
6294 #include "confdefs.h"
6296 #include <${cf_cv_ncurses_header:-curses.h}>
6300 FILE *fp = fopen("$cf_tempfile", "w");
6301 #ifdef NCURSES_VERSION
6302 # ifdef NCURSES_VERSION_PATCH
6303 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
6305 fprintf(fp, "%s\n", NCURSES_VERSION);
6309 fprintf(fp, "old\n");
6314 ${cf_cv_main_return:-return}(0);
6317 rm -f conftest$ac_exeext
6318 if { (eval echo "$as_me:6318: \"$ac_link\"") >&5
6319 (eval $ac_link) 2>&5
6321 echo "$as_me:6321: \$? = $ac_status" >&5
6322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6323 { (eval echo "$as_me:6323: \"$ac_try\"") >&5
6326 echo "$as_me:6326: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
6329 cf_cv_ncurses_version=`cat $cf_tempfile`
6331 echo "$as_me: program exited with status $ac_status" >&5
6332 echo "$as_me: failed program was:" >&5
6333 cat conftest.$ac_ext >&5
6335 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6340 echo "$as_me:6340: result: $cf_cv_ncurses_version" >&5
6341 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
6342 test "$cf_cv_ncurses_version" = no ||
6343 cat >>confdefs.h <<\EOF
6347 cf_nculib_root=ncurses
6348 # This works, except for the special case where we find gpm, but
6349 # ncurses is in a nonstandard location via $LIBS, and we really want
6352 cf_ncurses_SAVE="$LIBS"
6353 echo "$as_me:6353: checking for Gpm_Open in -lgpm" >&5
6354 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6355 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 ac_check_lib_save_LIBS=$LIBS
6360 cat >conftest.$ac_ext <<_ACEOF
6361 #line 6361 "configure"
6362 #include "confdefs.h"
6364 /* Override any gcc2 internal prototype to avoid an error. */
6368 /* We use char because int might match the return type of a gcc2
6369 builtin and then its argument prototype would still apply. */
6379 rm -f conftest.$ac_objext conftest$ac_exeext
6380 if { (eval echo "$as_me:6380: \"$ac_link\"") >&5
6381 (eval $ac_link) 2>&5
6383 echo "$as_me:6383: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -s conftest$ac_exeext'
6386 { (eval echo "$as_me:6386: \"$ac_try\"") >&5
6389 echo "$as_me:6389: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
6391 ac_cv_lib_gpm_Gpm_Open=yes
6393 echo "$as_me: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6395 ac_cv_lib_gpm_Gpm_Open=no
6397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6398 LIBS=$ac_check_lib_save_LIBS
6400 echo "$as_me:6400: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6401 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6402 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6403 echo "$as_me:6403: checking for initscr in -lgpm" >&5
6404 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
6405 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
6406 echo $ECHO_N "(cached) $ECHO_C" >&6
6408 ac_check_lib_save_LIBS=$LIBS
6410 cat >conftest.$ac_ext <<_ACEOF
6411 #line 6411 "configure"
6412 #include "confdefs.h"
6414 /* Override any gcc2 internal prototype to avoid an error. */
6418 /* We use char because int might match the return type of a gcc2
6419 builtin and then its argument prototype would still apply. */
6429 rm -f conftest.$ac_objext conftest$ac_exeext
6430 if { (eval echo "$as_me:6430: \"$ac_link\"") >&5
6431 (eval $ac_link) 2>&5
6433 echo "$as_me:6433: \$? = $ac_status" >&5
6434 (exit $ac_status); } &&
6435 { ac_try='test -s conftest$ac_exeext'
6436 { (eval echo "$as_me:6436: \"$ac_try\"") >&5
6439 echo "$as_me:6439: \$? = $ac_status" >&5
6440 (exit $ac_status); }; }; then
6441 ac_cv_lib_gpm_initscr=yes
6443 echo "$as_me: failed program was:" >&5
6444 cat conftest.$ac_ext >&5
6445 ac_cv_lib_gpm_initscr=no
6447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6448 LIBS=$ac_check_lib_save_LIBS
6450 echo "$as_me:6450: result: $ac_cv_lib_gpm_initscr" >&5
6451 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
6452 if test $ac_cv_lib_gpm_initscr = yes; then
6453 LIBS="$cf_ncurses_SAVE"
6455 cf_ncurses_LIBS="-lgpm"
6460 case $host_os in #(vi
6462 # This is only necessary if you are linking against an obsolete
6463 # version of ncurses (but it should do no harm, since it's static).
6464 if test "$cf_nculib_root" = ncurses ; then
6465 echo "$as_me:6465: checking for tgoto in -lmytinfo" >&5
6466 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6467 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 ac_check_lib_save_LIBS=$LIBS
6471 LIBS="-lmytinfo $LIBS"
6472 cat >conftest.$ac_ext <<_ACEOF
6473 #line 6473 "configure"
6474 #include "confdefs.h"
6476 /* Override any gcc2 internal prototype to avoid an error. */
6480 /* We use char because int might match the return type of a gcc2
6481 builtin and then its argument prototype would still apply. */
6491 rm -f conftest.$ac_objext conftest$ac_exeext
6492 if { (eval echo "$as_me:6492: \"$ac_link\"") >&5
6493 (eval $ac_link) 2>&5
6495 echo "$as_me:6495: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
6497 { ac_try='test -s conftest$ac_exeext'
6498 { (eval echo "$as_me:6498: \"$ac_try\"") >&5
6501 echo "$as_me:6501: \$? = $ac_status" >&5
6502 (exit $ac_status); }; }; then
6503 ac_cv_lib_mytinfo_tgoto=yes
6505 echo "$as_me: failed program was:" >&5
6506 cat conftest.$ac_ext >&5
6507 ac_cv_lib_mytinfo_tgoto=no
6509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6510 LIBS=$ac_check_lib_save_LIBS
6512 echo "$as_me:6512: result: $ac_cv_lib_mytinfo_tgoto" >&5
6513 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
6514 if test $ac_cv_lib_mytinfo_tgoto = yes; then
6515 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
6522 LIBS="$cf_ncurses_LIBS $LIBS"
6524 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
6526 LIBS="-l$cf_nculib_root $LIBS"
6529 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
6531 echo "$as_me:6531: checking for initscr" >&5
6532 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6533 if test "${ac_cv_func_initscr+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 cat >conftest.$ac_ext <<_ACEOF
6537 #line 6537 "configure"
6538 #include "confdefs.h"
6539 /* System header to define __stub macros and hopefully few prototypes,
6540 which can conflict with char initscr (); below. */
6542 /* Override any gcc2 internal prototype to avoid an error. */
6546 /* We use char because int might match the return type of a gcc2
6547 builtin and then its argument prototype would still apply. */
6554 /* The GNU C library defines this for functions which it implements
6555 to always fail with ENOSYS. Some functions are actually named
6556 something starting with __ and the normal name is an alias. */
6557 #if defined (__stub_initscr) || defined (__stub___initscr)
6560 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
6567 rm -f conftest.$ac_objext conftest$ac_exeext
6568 if { (eval echo "$as_me:6568: \"$ac_link\"") >&5
6569 (eval $ac_link) 2>&5
6571 echo "$as_me:6571: \$? = $ac_status" >&5
6572 (exit $ac_status); } &&
6573 { ac_try='test -s conftest$ac_exeext'
6574 { (eval echo "$as_me:6574: \"$ac_try\"") >&5
6577 echo "$as_me:6577: \$? = $ac_status" >&5
6578 (exit $ac_status); }; }; then
6579 ac_cv_func_initscr=yes
6581 echo "$as_me: failed program was:" >&5
6582 cat conftest.$ac_ext >&5
6583 ac_cv_func_initscr=no
6585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6587 echo "$as_me:6587: result: $ac_cv_func_initscr" >&5
6588 echo "${ECHO_T}$ac_cv_func_initscr" >&6
6589 if test $ac_cv_func_initscr = yes; then
6590 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6593 cf_save_LIBS="$LIBS"
6594 echo "$as_me:6594: checking for initscr in -l$cf_nculib_root" >&5
6595 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
6596 LIBS="-l$cf_nculib_root $LIBS"
6597 cat >conftest.$ac_ext <<_ACEOF
6598 #line 6598 "configure"
6599 #include "confdefs.h"
6600 #include <${cf_cv_ncurses_header:-curses.h}>
6609 rm -f conftest.$ac_objext conftest$ac_exeext
6610 if { (eval echo "$as_me:6610: \"$ac_link\"") >&5
6611 (eval $ac_link) 2>&5
6613 echo "$as_me:6613: \$? = $ac_status" >&5
6614 (exit $ac_status); } &&
6615 { ac_try='test -s conftest$ac_exeext'
6616 { (eval echo "$as_me:6616: \"$ac_try\"") >&5
6619 echo "$as_me:6619: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6621 echo "$as_me:6621: result: yes" >&5
6622 echo "${ECHO_T}yes" >&6
6623 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6626 echo "$as_me: failed program was:" >&5
6627 cat conftest.$ac_ext >&5
6628 echo "$as_me:6628: result: no" >&5
6629 echo "${ECHO_T}no" >&6
6632 cf_library_path_list=""
6633 if test -n "${LDFLAGS}${LIBS}" ; then
6634 for cf_library_path in $LDFLAGS $LIBS
6636 case $cf_library_path in #(vi
6638 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
6640 test "$cf_library_path" != "NONE" && \
6641 test -d "$cf_library_path" && \
6643 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
6644 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
6645 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
6646 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
6647 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
6648 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"
6651 cf_library_path_list="$cf_library_path_list $cf_search"
6659 test "/usr" != "$prefix" && \
6661 (test $prefix = NONE || test "/usr" != "$prefix") && {
6662 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
6663 test -d /usr/lib && cf_search="$cf_search /usr/lib"
6664 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
6665 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
6666 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
6667 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
6670 test "$prefix" != "NONE" && \
6671 test -d "$prefix" && \
6673 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
6674 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
6675 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
6676 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
6677 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
6678 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
6681 test "/usr/local" != "$prefix" && \
6682 test -d "/usr/local" && \
6683 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
6684 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
6685 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
6686 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
6687 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
6688 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
6689 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
6692 test "/opt" != "$prefix" && \
6694 (test $prefix = NONE || test "/opt" != "$prefix") && {
6695 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
6696 test -d /opt/lib && cf_search="$cf_search /opt/lib"
6697 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
6698 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
6699 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
6700 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
6703 test "$HOME" != "$prefix" && \
6704 test -d "$HOME" && \
6705 (test $prefix = NONE || test "$HOME" != "$prefix") && {
6706 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
6707 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
6708 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
6709 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
6710 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
6711 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
6714 cf_search="$cf_library_path_list $cf_search"
6716 for cf_libdir in $cf_search
6718 echo "$as_me:6718: checking for -l$cf_nculib_root in $cf_libdir" >&5
6719 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
6720 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
6721 cat >conftest.$ac_ext <<_ACEOF
6722 #line 6722 "configure"
6723 #include "confdefs.h"
6724 #include <${cf_cv_ncurses_header:-curses.h}>
6733 rm -f conftest.$ac_objext conftest$ac_exeext
6734 if { (eval echo "$as_me:6734: \"$ac_link\"") >&5
6735 (eval $ac_link) 2>&5
6737 echo "$as_me:6737: \$? = $ac_status" >&5
6738 (exit $ac_status); } &&
6739 { ac_try='test -s conftest$ac_exeext'
6740 { (eval echo "$as_me:6740: \"$ac_try\"") >&5
6743 echo "$as_me:6743: \$? = $ac_status" >&5
6744 (exit $ac_status); }; }; then
6745 echo "$as_me:6745: result: yes" >&5
6746 echo "${ECHO_T}yes" >&6
6747 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6750 echo "$as_me: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6752 echo "$as_me:6752: result: no" >&5
6753 echo "${ECHO_T}no" >&6
6754 LIBS="$cf_save_LIBS"
6756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6764 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
6766 if test $cf_found_library = no ; then
6767 { { echo "$as_me:6767: error: Cannot link $cf_nculib_root library" >&5
6768 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
6769 { (exit 1); exit 1; }; }
6774 if test -n "$cf_ncurses_LIBS" ; then
6775 echo "$as_me:6775: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
6776 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
6777 cf_ncurses_SAVE="$LIBS"
6778 for p in $cf_ncurses_LIBS ; do
6779 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
6780 if test "$q" != "$LIBS" ; then
6784 cat >conftest.$ac_ext <<_ACEOF
6785 #line 6785 "configure"
6786 #include "confdefs.h"
6787 #include <${cf_cv_ncurses_header:-curses.h}>
6791 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
6796 rm -f conftest.$ac_objext conftest$ac_exeext
6797 if { (eval echo "$as_me:6797: \"$ac_link\"") >&5
6798 (eval $ac_link) 2>&5
6800 echo "$as_me:6800: \$? = $ac_status" >&5
6801 (exit $ac_status); } &&
6802 { ac_try='test -s conftest$ac_exeext'
6803 { (eval echo "$as_me:6803: \"$ac_try\"") >&5
6806 echo "$as_me:6806: \$? = $ac_status" >&5
6807 (exit $ac_status); }; }; then
6808 echo "$as_me:6808: result: yes" >&5
6809 echo "${ECHO_T}yes" >&6
6811 echo "$as_me: failed program was:" >&5
6812 cat conftest.$ac_ext >&5
6813 echo "$as_me:6813: result: no" >&5
6814 echo "${ECHO_T}no" >&6
6815 LIBS="$cf_ncurses_SAVE"
6817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6820 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6822 cat >>confdefs.h <<EOF
6823 #define $cf_nculib_ROOT 1
6831 echo "$as_me:6831: checking for multibyte character support" >&5
6832 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
6833 if test "${cf_cv_utf8_lib+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 cf_save_LIBS="$LIBS"
6838 cat >conftest.$ac_ext <<_ACEOF
6839 #line 6839 "configure"
6840 #include "confdefs.h"
6851 rm -f conftest.$ac_objext conftest$ac_exeext
6852 if { (eval echo "$as_me:6852: \"$ac_link\"") >&5
6853 (eval $ac_link) 2>&5
6855 echo "$as_me:6855: \$? = $ac_status" >&5
6856 (exit $ac_status); } &&
6857 { ac_try='test -s conftest$ac_exeext'
6858 { (eval echo "$as_me:6858: \"$ac_try\"") >&5
6861 echo "$as_me:6861: \$? = $ac_status" >&5
6862 (exit $ac_status); }; }; then
6865 echo "$as_me: failed program was:" >&5
6866 cat conftest.$ac_ext >&5
6868 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
6869 # will be set on completion of the AC_TRY_LINK below.
6870 cf_cv_header_path_utf8=
6871 cf_cv_library_path_utf8=
6873 echo "${as_me:-configure}:6873: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
6875 cf_save_LIBS="$LIBS"
6877 cat >conftest.$ac_ext <<_ACEOF
6878 #line 6878 "configure"
6879 #include "confdefs.h"
6881 #include <libutf8.h>
6890 rm -f conftest.$ac_objext conftest$ac_exeext
6891 if { (eval echo "$as_me:6891: \"$ac_link\"") >&5
6892 (eval $ac_link) 2>&5
6894 echo "$as_me:6894: \$? = $ac_status" >&5
6895 (exit $ac_status); } &&
6896 { ac_try='test -s conftest$ac_exeext'
6897 { (eval echo "$as_me:6897: \"$ac_try\"") >&5
6900 echo "$as_me:6900: \$? = $ac_status" >&5
6901 (exit $ac_status); }; }; then
6903 cf_cv_find_linkage_utf8=yes
6904 cf_cv_header_path_utf8=/usr/include
6905 cf_cv_library_path_utf8=/usr/lib
6908 echo "$as_me: failed program was:" >&5
6909 cat conftest.$ac_ext >&5
6911 LIBS="-lutf8 $cf_save_LIBS"
6913 cat >conftest.$ac_ext <<_ACEOF
6914 #line 6914 "configure"
6915 #include "confdefs.h"
6917 #include <libutf8.h>
6926 rm -f conftest.$ac_objext conftest$ac_exeext
6927 if { (eval echo "$as_me:6927: \"$ac_link\"") >&5
6928 (eval $ac_link) 2>&5
6930 echo "$as_me:6930: \$? = $ac_status" >&5
6931 (exit $ac_status); } &&
6932 { ac_try='test -s conftest$ac_exeext'
6933 { (eval echo "$as_me:6933: \"$ac_try\"") >&5
6936 echo "$as_me:6936: \$? = $ac_status" >&5
6937 (exit $ac_status); }; }; then
6939 cf_cv_find_linkage_utf8=yes
6940 cf_cv_header_path_utf8=/usr/include
6941 cf_cv_library_path_utf8=/usr/lib
6942 cf_cv_library_file_utf8="-lutf8"
6945 echo "$as_me: failed program was:" >&5
6946 cat conftest.$ac_ext >&5
6948 cf_cv_find_linkage_utf8=no
6949 LIBS="$cf_save_LIBS"
6951 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
6953 echo "${as_me:-configure}:6953: testing find linkage for utf8 library ..." 1>&5
6955 echo "${as_me:-configure}:6955: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
6957 cf_save_CPPFLAGS="$CPPFLAGS"
6958 cf_test_CPPFLAGS="$CPPFLAGS"
6962 # collect the current set of include-directories from compiler flags
6963 cf_header_path_list=""
6964 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6965 for cf_header_path in $CPPFLAGS $CFLAGS
6967 case $cf_header_path in #(vi
6969 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6971 test "$cf_header_path" != "NONE" && \
6972 test -d "$cf_header_path" && \
6974 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6975 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6976 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
6977 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
6978 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
6979 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
6982 cf_header_path_list="$cf_header_path_list $cf_search"
6988 # add the variations for the package we are looking for
6992 test "/usr" != "$prefix" && \
6994 (test $prefix = NONE || test "/usr" != "$prefix") && {
6995 test -n "$verbose" && echo " ... testing for include-directories under /usr"
6996 test -d /usr/include && cf_search="$cf_search /usr/include"
6997 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
6998 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
6999 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
7000 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
7003 test "$prefix" != "NONE" && \
7004 test -d "$prefix" && \
7006 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7007 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7008 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
7009 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
7010 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
7011 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
7014 test "/usr/local" != "$prefix" && \
7015 test -d "/usr/local" && \
7016 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
7017 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
7018 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
7019 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
7020 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
7021 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
7022 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
7025 test "/opt" != "$prefix" && \
7027 (test $prefix = NONE || test "/opt" != "$prefix") && {
7028 test -n "$verbose" && echo " ... testing for include-directories under /opt"
7029 test -d /opt/include && cf_search="$cf_search /opt/include"
7030 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
7031 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
7032 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
7033 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
7036 test "$HOME" != "$prefix" && \
7037 test -d "$HOME" && \
7038 (test $prefix = NONE || test "$HOME" != "$prefix") && {
7039 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
7040 test -d $HOME/include && cf_search="$cf_search $HOME/include"
7041 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
7042 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
7043 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
7044 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
7047 test "$includedir" != NONE && \
7048 test "$includedir" != "/usr/include" && \
7049 test -d "$includedir" && {
7050 test -d $includedir && cf_search="$cf_search $includedir"
7051 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
7054 test "$oldincludedir" != NONE && \
7055 test "$oldincludedir" != "/usr/include" && \
7056 test -d "$oldincludedir" && {
7057 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7058 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
7061 cf_search="$cf_search $cf_header_path_list"
7063 for cf_cv_header_path_utf8 in $cf_search
7065 if test -d $cf_cv_header_path_utf8 ; then
7066 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
7068 echo "${as_me:-configure}:7068: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
7070 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
7071 cat >conftest.$ac_ext <<_ACEOF
7072 #line 7072 "configure"
7073 #include "confdefs.h"
7075 #include <libutf8.h>
7084 rm -f conftest.$ac_objext
7085 if { (eval echo "$as_me:7085: \"$ac_compile\"") >&5
7086 (eval $ac_compile) 2>&5
7088 echo "$as_me:7088: \$? = $ac_status" >&5
7089 (exit $ac_status); } &&
7090 { ac_try='test -s conftest.$ac_objext'
7091 { (eval echo "$as_me:7091: \"$ac_try\"") >&5
7094 echo "$as_me:7094: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7097 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
7099 echo "${as_me:-configure}:7099: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
7101 cf_cv_find_linkage_utf8=maybe
7102 cf_test_CPPFLAGS="$CPPFLAGS"
7105 echo "$as_me: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7108 CPPFLAGS="$cf_save_CPPFLAGS"
7111 rm -f conftest.$ac_objext conftest.$ac_ext
7115 if test "$cf_cv_find_linkage_utf8" = maybe ; then
7117 echo "${as_me:-configure}:7117: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
7119 cf_save_LIBS="$LIBS"
7120 cf_save_LDFLAGS="$LDFLAGS"
7122 if test "$cf_cv_find_linkage_utf8" != yes ; then
7125 cf_library_path_list=""
7126 if test -n "${LDFLAGS}${LIBS}" ; then
7127 for cf_library_path in $LDFLAGS $LIBS
7129 case $cf_library_path in #(vi
7131 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7133 test "$cf_library_path" != "NONE" && \
7134 test -d "$cf_library_path" && \
7136 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7137 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7138 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
7139 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
7140 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
7141 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
7144 cf_library_path_list="$cf_library_path_list $cf_search"
7152 test "/usr" != "$prefix" && \
7154 (test $prefix = NONE || test "/usr" != "$prefix") && {
7155 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
7156 test -d /usr/lib && cf_search="$cf_search /usr/lib"
7157 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
7158 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
7159 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
7160 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
7163 test "$prefix" != "NONE" && \
7164 test -d "$prefix" && \
7166 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7167 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7168 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
7169 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
7170 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
7171 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
7174 test "/usr/local" != "$prefix" && \
7175 test -d "/usr/local" && \
7176 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
7177 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
7178 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
7179 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
7180 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
7181 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
7182 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
7185 test "/opt" != "$prefix" && \
7187 (test $prefix = NONE || test "/opt" != "$prefix") && {
7188 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
7189 test -d /opt/lib && cf_search="$cf_search /opt/lib"
7190 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
7191 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
7192 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
7193 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
7196 test "$HOME" != "$prefix" && \
7197 test -d "$HOME" && \
7198 (test $prefix = NONE || test "$HOME" != "$prefix") && {
7199 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
7200 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
7201 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
7202 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
7203 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
7204 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
7207 cf_search="$cf_library_path_list $cf_search"
7209 for cf_cv_library_path_utf8 in $cf_search
7211 if test -d $cf_cv_library_path_utf8 ; then
7212 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
7214 echo "${as_me:-configure}:7214: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
7216 CPPFLAGS="$cf_test_CPPFLAGS"
7217 LIBS="-lutf8 $cf_save_LIBS"
7218 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
7219 cat >conftest.$ac_ext <<_ACEOF
7220 #line 7220 "configure"
7221 #include "confdefs.h"
7223 #include <libutf8.h>
7232 rm -f conftest.$ac_objext conftest$ac_exeext
7233 if { (eval echo "$as_me:7233: \"$ac_link\"") >&5
7234 (eval $ac_link) 2>&5
7236 echo "$as_me:7236: \$? = $ac_status" >&5
7237 (exit $ac_status); } &&
7238 { ac_try='test -s conftest$ac_exeext'
7239 { (eval echo "$as_me:7239: \"$ac_try\"") >&5
7242 echo "$as_me:7242: \$? = $ac_status" >&5
7243 (exit $ac_status); }; }; then
7245 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
7247 echo "${as_me:-configure}:7247: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
7249 cf_cv_find_linkage_utf8=yes
7250 cf_cv_library_file_utf8="-lutf8"
7253 echo "$as_me: failed program was:" >&5
7254 cat conftest.$ac_ext >&5
7256 CPPFLAGS="$cf_save_CPPFLAGS"
7257 LIBS="$cf_save_LIBS"
7258 LDFLAGS="$cf_save_LDFLAGS"
7261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7264 CPPFLAGS="$cf_save_CPPFLAGS"
7265 LDFLAGS="$cf_save_LDFLAGS"
7269 cf_cv_find_linkage_utf8=no
7273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7278 LIBS="$cf_save_LIBS"
7280 if test "$cf_cv_find_linkage_utf8" = yes ; then
7281 cf_cv_utf8_lib=add-on
7287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7289 echo "$as_me:7289: result: $cf_cv_utf8_lib" >&5
7290 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
7292 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
7294 if test "$cf_cv_utf8_lib" = "add-on" ; then
7296 cat >>confdefs.h <<\EOF
7297 #define HAVE_LIBUTF8_H 1
7300 if test -n "$cf_cv_header_path_utf8" ; then
7301 for cf_add_incdir in $cf_cv_header_path_utf8
7303 while test $cf_add_incdir != /usr/include
7305 if test -d $cf_add_incdir
7308 if test -n "$CFLAGS$CPPFLAGS" ; then
7309 # a loop is needed to ensure we can add subdirs of existing dirs
7310 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7311 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7312 cf_have_incdir=yes; break
7317 if test "$cf_have_incdir" = no ; then
7318 if test "$cf_add_incdir" = /usr/local/include ; then
7319 if test "$GCC" = yes
7321 cf_save_CPPFLAGS=$CPPFLAGS
7322 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7323 cat >conftest.$ac_ext <<_ACEOF
7324 #line 7324 "configure"
7325 #include "confdefs.h"
7335 rm -f conftest.$ac_objext
7336 if { (eval echo "$as_me:7336: \"$ac_compile\"") >&5
7337 (eval $ac_compile) 2>&5
7339 echo "$as_me:7339: \$? = $ac_status" >&5
7340 (exit $ac_status); } &&
7341 { ac_try='test -s conftest.$ac_objext'
7342 { (eval echo "$as_me:7342: \"$ac_try\"") >&5
7345 echo "$as_me:7345: \$? = $ac_status" >&5
7346 (exit $ac_status); }; }; then
7349 echo "$as_me: failed program was:" >&5
7350 cat conftest.$ac_ext >&5
7353 rm -f conftest.$ac_objext conftest.$ac_ext
7354 CPPFLAGS=$cf_save_CPPFLAGS
7359 if test "$cf_have_incdir" = no ; then
7360 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7362 echo "${as_me:-configure}:7362: testing adding $cf_add_incdir to include-path ..." 1>&5
7364 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7366 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7367 test "$cf_top_incdir" = "$cf_add_incdir" && break
7368 cf_add_incdir="$cf_top_incdir"
7377 if test -n "$cf_cv_library_path_utf8" ; then
7378 for cf_add_libdir in $cf_cv_library_path_utf8
7380 if test $cf_add_libdir = /usr/lib ; then
7382 elif test -d $cf_add_libdir
7385 if test -n "$LDFLAGS$LIBS" ; then
7386 # a loop is needed to ensure we can add subdirs of existing dirs
7387 for cf_test_libdir in $LDFLAGS $LIBS ; do
7388 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7389 cf_have_libdir=yes; break
7393 if test "$cf_have_libdir" = no ; then
7394 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7396 echo "${as_me:-configure}:7396: testing adding $cf_add_libdir to library-path ..." 1>&5
7398 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7404 LIBS="$cf_cv_library_file_utf8 $LIBS"
7407 cf_ncuconfig_root=ncursesw
7409 echo "Looking for ${cf_ncuconfig_root}-config"
7411 if test -n "$ac_tool_prefix"; then
7412 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
7414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7416 echo "$as_me:7416: checking for $ac_word" >&5
7417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7418 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 if test -n "$NCURSES_CONFIG"; then
7422 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
7424 ac_save_IFS=$IFS; IFS=$ac_path_separator
7426 for ac_dir in $ac_dummy; do
7428 test -z "$ac_dir" && ac_dir=.
7429 $as_executable_p "$ac_dir/$ac_word" || continue
7430 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
7431 echo "$as_me:7431: found $ac_dir/$ac_word" >&5
7437 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
7438 if test -n "$NCURSES_CONFIG"; then
7439 echo "$as_me:7439: result: $NCURSES_CONFIG" >&5
7440 echo "${ECHO_T}$NCURSES_CONFIG" >&6
7442 echo "$as_me:7442: result: no" >&5
7443 echo "${ECHO_T}no" >&6
7446 test -n "$NCURSES_CONFIG" && break
7449 if test -z "$NCURSES_CONFIG"; then
7450 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
7451 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
7453 # Extract the first word of "$ac_prog", so it can be a program name with args.
7454 set dummy $ac_prog; ac_word=$2
7455 echo "$as_me:7455: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7457 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 if test -n "$ac_ct_NCURSES_CONFIG"; then
7461 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
7463 ac_save_IFS=$IFS; IFS=$ac_path_separator
7465 for ac_dir in $ac_dummy; do
7467 test -z "$ac_dir" && ac_dir=.
7468 $as_executable_p "$ac_dir/$ac_word" || continue
7469 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
7470 echo "$as_me:7470: found $ac_dir/$ac_word" >&5
7476 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
7477 if test -n "$ac_ct_NCURSES_CONFIG"; then
7478 echo "$as_me:7478: result: $ac_ct_NCURSES_CONFIG" >&5
7479 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
7481 echo "$as_me:7481: result: no" >&5
7482 echo "${ECHO_T}no" >&6
7485 test -n "$ac_ct_NCURSES_CONFIG" && break
7487 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
7489 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
7492 if test "$NCURSES_CONFIG" != none ; then
7494 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
7495 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
7497 # even with config script, some packages use no-override for curses.h
7499 echo "$as_me:7499: checking if we have identified curses headers" >&5
7500 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
7501 if test "${cf_cv_ncurses_header+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 cf_cv_ncurses_header=none
7507 ncursesw/ncurses.h \
7512 cat >conftest.$ac_ext <<_ACEOF
7513 #line 7513 "configure"
7514 #include "confdefs.h"
7515 #include <${cf_header}>
7519 initscr(); tgoto("?", 0,0)
7524 rm -f conftest.$ac_objext
7525 if { (eval echo "$as_me:7525: \"$ac_compile\"") >&5
7526 (eval $ac_compile) 2>&5
7528 echo "$as_me:7528: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try='test -s conftest.$ac_objext'
7531 { (eval echo "$as_me:7531: \"$ac_try\"") >&5
7534 echo "$as_me:7534: \$? = $ac_status" >&5
7535 (exit $ac_status); }; }; then
7536 cf_cv_ncurses_header=$cf_header; break
7538 echo "$as_me: failed program was:" >&5
7539 cat conftest.$ac_ext >&5
7541 rm -f conftest.$ac_objext conftest.$ac_ext
7545 echo "$as_me:7545: result: $cf_cv_ncurses_header" >&5
7546 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
7548 if test "$cf_cv_ncurses_header" = none ; then
7549 { { echo "$as_me:7549: error: No curses header-files found" >&5
7550 echo "$as_me: error: No curses header-files found" >&2;}
7551 { (exit 1); exit 1; }; }
7554 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
7556 for ac_header in $cf_cv_ncurses_header
7558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7559 echo "$as_me:7559: checking for $ac_header" >&5
7560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 cat >conftest.$ac_ext <<_ACEOF
7565 #line 7565 "configure"
7566 #include "confdefs.h"
7567 #include <$ac_header>
7569 if { (eval echo "$as_me:7569: \"$ac_cpp conftest.$ac_ext\"") >&5
7570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7572 egrep -v '^ *\+' conftest.er1 >conftest.err
7574 cat conftest.err >&5
7575 echo "$as_me:7575: \$? = $ac_status" >&5
7576 (exit $ac_status); } >/dev/null; then
7577 if test -s conftest.err; then
7578 ac_cpp_err=$ac_c_preproc_warn_flag
7585 if test -z "$ac_cpp_err"; then
7586 eval "$as_ac_Header=yes"
7588 echo "$as_me: failed program was:" >&5
7589 cat conftest.$ac_ext >&5
7590 eval "$as_ac_Header=no"
7592 rm -f conftest.err conftest.$ac_ext
7594 echo "$as_me:7594: result: `eval echo '${'$as_ac_Header'}'`" >&5
7595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7597 cat >>confdefs.h <<EOF
7598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7604 cat >>confdefs.h <<\EOF
7608 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7610 cat >>confdefs.h <<EOF
7611 #define $cf_nculib_ROOT 1
7614 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
7618 cf_ncuhdr_root=ncursesw
7620 test -n "$cf_cv_curses_dir" && \
7621 test "$cf_cv_curses_dir" != "no" && { \
7623 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
7624 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
7626 while test $cf_add_incdir != /usr/include
7628 if test -d $cf_add_incdir
7631 if test -n "$CFLAGS$CPPFLAGS" ; then
7632 # a loop is needed to ensure we can add subdirs of existing dirs
7633 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7634 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7635 cf_have_incdir=yes; break
7640 if test "$cf_have_incdir" = no ; then
7641 if test "$cf_add_incdir" = /usr/local/include ; then
7642 if test "$GCC" = yes
7644 cf_save_CPPFLAGS=$CPPFLAGS
7645 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7646 cat >conftest.$ac_ext <<_ACEOF
7647 #line 7647 "configure"
7648 #include "confdefs.h"
7658 rm -f conftest.$ac_objext
7659 if { (eval echo "$as_me:7659: \"$ac_compile\"") >&5
7660 (eval $ac_compile) 2>&5
7662 echo "$as_me:7662: \$? = $ac_status" >&5
7663 (exit $ac_status); } &&
7664 { ac_try='test -s conftest.$ac_objext'
7665 { (eval echo "$as_me:7665: \"$ac_try\"") >&5
7668 echo "$as_me:7668: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7672 echo "$as_me: failed program was:" >&5
7673 cat conftest.$ac_ext >&5
7676 rm -f conftest.$ac_objext conftest.$ac_ext
7677 CPPFLAGS=$cf_save_CPPFLAGS
7682 if test "$cf_have_incdir" = no ; then
7683 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7685 echo "${as_me:-configure}:7685: testing adding $cf_add_incdir to include-path ..." 1>&5
7687 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7689 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7690 test "$cf_top_incdir" = "$cf_add_incdir" && break
7691 cf_add_incdir="$cf_top_incdir"
7702 echo "$as_me:7702: checking for $cf_ncuhdr_root header in include-path" >&5
7703 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
7704 if test "${cf_cv_ncurses_h+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7708 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
7709 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
7710 for cf_header in $cf_header_list
7713 cat >conftest.$ac_ext <<_ACEOF
7714 #line 7714 "configure"
7715 #include "confdefs.h"
7717 #define _XOPEN_SOURCE_EXTENDED
7718 #undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
7719 #define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
7721 #include <$cf_header>
7726 #ifdef NCURSES_VERSION
7732 printf("%s\n", NCURSES_VERSION);
7745 rm -f conftest.$ac_objext
7746 if { (eval echo "$as_me:7746: \"$ac_compile\"") >&5
7747 (eval $ac_compile) 2>&5
7749 echo "$as_me:7749: \$? = $ac_status" >&5
7750 (exit $ac_status); } &&
7751 { ac_try='test -s conftest.$ac_objext'
7752 { (eval echo "$as_me:7752: \"$ac_try\"") >&5
7755 echo "$as_me:7755: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 cf_cv_ncurses_h=$cf_header
7760 echo "$as_me: failed program was:" >&5
7761 cat conftest.$ac_ext >&5
7764 rm -f conftest.$ac_objext conftest.$ac_ext
7766 test "$cf_cv_ncurses_h" != no && break
7770 echo "$as_me:7770: result: $cf_cv_ncurses_h" >&5
7771 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
7773 if test "$cf_cv_ncurses_h" != no ; then
7774 cf_cv_ncurses_header=$cf_cv_ncurses_h
7777 echo "$as_me:7777: checking for $cf_ncuhdr_root include-path" >&5
7778 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
7779 if test "${cf_cv_ncurses_h2+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 test -n "$verbose" && echo
7787 # collect the current set of include-directories from compiler flags
7788 cf_header_path_list=""
7789 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7790 for cf_header_path in $CPPFLAGS $CFLAGS
7792 case $cf_header_path in #(vi
7794 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7796 test "$cf_header_path" != "NONE" && \
7797 test -d "$cf_header_path" && \
7799 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7800 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7801 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
7802 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
7803 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
7804 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"
7807 cf_header_path_list="$cf_header_path_list $cf_search"
7813 # add the variations for the package we are looking for
7817 test "/usr" != "$prefix" && \
7819 (test $prefix = NONE || test "/usr" != "$prefix") && {
7820 test -n "$verbose" && echo " ... testing for include-directories under /usr"
7821 test -d /usr/include && cf_search="$cf_search /usr/include"
7822 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
7823 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
7824 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
7825 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7828 test "$prefix" != "NONE" && \
7829 test -d "$prefix" && \
7831 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7832 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7833 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
7834 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
7835 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
7836 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7839 test "/usr/local" != "$prefix" && \
7840 test -d "/usr/local" && \
7841 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
7842 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
7843 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
7844 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
7845 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
7846 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
7847 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7850 test "/opt" != "$prefix" && \
7852 (test $prefix = NONE || test "/opt" != "$prefix") && {
7853 test -n "$verbose" && echo " ... testing for include-directories under /opt"
7854 test -d /opt/include && cf_search="$cf_search /opt/include"
7855 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
7856 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
7857 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
7858 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7861 test "$HOME" != "$prefix" && \
7862 test -d "$HOME" && \
7863 (test $prefix = NONE || test "$HOME" != "$prefix") && {
7864 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
7865 test -d $HOME/include && cf_search="$cf_search $HOME/include"
7866 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
7867 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
7868 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
7869 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7872 test "$includedir" != NONE && \
7873 test "$includedir" != "/usr/include" && \
7874 test -d "$includedir" && {
7875 test -d $includedir && cf_search="$cf_search $includedir"
7876 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
7879 test "$oldincludedir" != NONE && \
7880 test "$oldincludedir" != "/usr/include" && \
7881 test -d "$oldincludedir" && {
7882 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7883 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
7886 cf_search="$cf_search $cf_header_path_list"
7888 test -n "$verbose" && echo search path $cf_search
7889 cf_save2_CPPFLAGS="$CPPFLAGS"
7890 for cf_incdir in $cf_search
7893 if test -n "$cf_incdir" ; then
7894 for cf_add_incdir in $cf_incdir
7896 while test $cf_add_incdir != /usr/include
7898 if test -d $cf_add_incdir
7901 if test -n "$CFLAGS$CPPFLAGS" ; then
7902 # a loop is needed to ensure we can add subdirs of existing dirs
7903 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7904 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7905 cf_have_incdir=yes; break
7910 if test "$cf_have_incdir" = no ; then
7911 if test "$cf_add_incdir" = /usr/local/include ; then
7912 if test "$GCC" = yes
7914 cf_save_CPPFLAGS=$CPPFLAGS
7915 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7916 cat >conftest.$ac_ext <<_ACEOF
7917 #line 7917 "configure"
7918 #include "confdefs.h"
7928 rm -f conftest.$ac_objext
7929 if { (eval echo "$as_me:7929: \"$ac_compile\"") >&5
7930 (eval $ac_compile) 2>&5
7932 echo "$as_me:7932: \$? = $ac_status" >&5
7933 (exit $ac_status); } &&
7934 { ac_try='test -s conftest.$ac_objext'
7935 { (eval echo "$as_me:7935: \"$ac_try\"") >&5
7938 echo "$as_me:7938: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7942 echo "$as_me: failed program was:" >&5
7943 cat conftest.$ac_ext >&5
7946 rm -f conftest.$ac_objext conftest.$ac_ext
7947 CPPFLAGS=$cf_save_CPPFLAGS
7952 if test "$cf_have_incdir" = no ; then
7953 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7955 echo "${as_me:-configure}:7955: testing adding $cf_add_incdir to include-path ..." 1>&5
7957 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7959 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7960 test "$cf_top_incdir" = "$cf_add_incdir" && break
7961 cf_add_incdir="$cf_top_incdir"
7975 cat >conftest.$ac_ext <<_ACEOF
7976 #line 7976 "configure"
7977 #include "confdefs.h"
7979 #include <$cf_header>
7984 #ifdef NCURSES_VERSION
7986 printf("%s\n", NCURSES_VERSION);
7999 rm -f conftest.$ac_objext
8000 if { (eval echo "$as_me:8000: \"$ac_compile\"") >&5
8001 (eval $ac_compile) 2>&5
8003 echo "$as_me:8003: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
8005 { ac_try='test -s conftest.$ac_objext'
8006 { (eval echo "$as_me:8006: \"$ac_try\"") >&5
8009 echo "$as_me:8009: \$? = $ac_status" >&5
8010 (exit $ac_status); }; }; then
8011 cf_cv_ncurses_h2=$cf_header
8014 echo "$as_me: failed program was:" >&5
8015 cat conftest.$ac_ext >&5
8018 rm -f conftest.$ac_objext conftest.$ac_ext
8020 if test "$cf_cv_ncurses_h2" != no ; then
8021 cf_cv_ncurses_h2=$cf_incdir/$cf_header
8022 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
8025 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
8027 CPPFLAGS="$cf_save2_CPPFLAGS"
8028 test "$cf_cv_ncurses_h2" != no && break
8030 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:8030: error: not found" >&5
8031 echo "$as_me: error: not found" >&2;}
8032 { (exit 1); exit 1; }; }
8035 echo "$as_me:8035: result: $cf_cv_ncurses_h2" >&5
8036 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
8038 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
8039 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
8040 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
8041 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
8044 if test -n "$cf_1st_incdir" ; then
8045 for cf_add_incdir in $cf_1st_incdir
8047 while test $cf_add_incdir != /usr/include
8049 if test -d $cf_add_incdir
8052 if test -n "$CFLAGS$CPPFLAGS" ; then
8053 # a loop is needed to ensure we can add subdirs of existing dirs
8054 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8055 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8056 cf_have_incdir=yes; break
8061 if test "$cf_have_incdir" = no ; then
8062 if test "$cf_add_incdir" = /usr/local/include ; then
8063 if test "$GCC" = yes
8065 cf_save_CPPFLAGS=$CPPFLAGS
8066 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8067 cat >conftest.$ac_ext <<_ACEOF
8068 #line 8068 "configure"
8069 #include "confdefs.h"
8079 rm -f conftest.$ac_objext
8080 if { (eval echo "$as_me:8080: \"$ac_compile\"") >&5
8081 (eval $ac_compile) 2>&5
8083 echo "$as_me:8083: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
8085 { ac_try='test -s conftest.$ac_objext'
8086 { (eval echo "$as_me:8086: \"$ac_try\"") >&5
8089 echo "$as_me:8089: \$? = $ac_status" >&5
8090 (exit $ac_status); }; }; then
8093 echo "$as_me: failed program was:" >&5
8094 cat conftest.$ac_ext >&5
8097 rm -f conftest.$ac_objext conftest.$ac_ext
8098 CPPFLAGS=$cf_save_CPPFLAGS
8103 if test "$cf_have_incdir" = no ; then
8104 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8106 echo "${as_me:-configure}:8106: testing adding $cf_add_incdir to include-path ..." 1>&5
8108 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8110 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8111 test "$cf_top_incdir" = "$cf_add_incdir" && break
8112 cf_add_incdir="$cf_top_incdir"
8123 # Set definitions to allow ifdef'ing for ncurses.h
8125 case $cf_cv_ncurses_header in # (vi
8128 cat >>confdefs.h <<\EOF
8129 #define HAVE_NCURSES_H 1
8135 case $cf_cv_ncurses_header in # (vi
8136 ncurses/curses.h|ncurses/ncurses.h)
8138 cat >>confdefs.h <<\EOF
8139 #define HAVE_NCURSES_NCURSES_H 1
8143 ncursesw/curses.h|ncursesw/ncurses.h)
8145 cat >>confdefs.h <<\EOF
8146 #define HAVE_NCURSESW_NCURSES_H 1
8152 echo "$as_me:8152: checking for terminfo header" >&5
8153 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
8154 if test "${cf_cv_term_header+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8158 case ${cf_cv_ncurses_header} in #(vi
8159 */ncurses.h|*/ncursesw.h) #(vi
8160 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8163 cf_term_header=term.h
8167 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
8169 cat >conftest.$ac_ext <<_ACEOF
8170 #line 8170 "configure"
8171 #include "confdefs.h"
8173 #include <${cf_cv_ncurses_header:-curses.h}>
8179 int x = auto_left_margin
8184 rm -f conftest.$ac_objext
8185 if { (eval echo "$as_me:8185: \"$ac_compile\"") >&5
8186 (eval $ac_compile) 2>&5
8188 echo "$as_me:8188: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -s conftest.$ac_objext'
8191 { (eval echo "$as_me:8191: \"$ac_try\"") >&5
8194 echo "$as_me:8194: \$? = $ac_status" >&5
8195 (exit $ac_status); }; }; then
8197 cf_cv_term_header="$cf_test"
8199 echo "$as_me: failed program was:" >&5
8200 cat conftest.$ac_ext >&5
8202 cf_cv_term_header=unknown
8205 rm -f conftest.$ac_objext conftest.$ac_ext
8206 test "$cf_cv_term_header" != unknown && break
8210 echo "$as_me:8210: result: $cf_cv_term_header" >&5
8211 echo "${ECHO_T}$cf_cv_term_header" >&6
8213 # Set definitions to allow ifdef'ing to accommodate subdirectories
8215 case $cf_cv_term_header in # (vi
8218 cat >>confdefs.h <<\EOF
8219 #define HAVE_TERM_H 1
8225 case $cf_cv_term_header in # (vi
8226 ncurses/term.h) #(vi
8228 cat >>confdefs.h <<\EOF
8229 #define HAVE_NCURSES_TERM_H 1
8235 cat >>confdefs.h <<\EOF
8236 #define HAVE_NCURSESW_TERM_H 1
8242 # some applications need this, but should check for NCURSES_VERSION
8244 cat >>confdefs.h <<\EOF
8248 echo "$as_me:8248: checking for ncurses version" >&5
8249 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
8250 if test "${cf_cv_ncurses_version+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 cf_cv_ncurses_version=no
8257 if test "$cross_compiling" = yes; then
8259 # This will not work if the preprocessor splits the line after the
8260 # Autoconf token. The 'unproto' program does that.
8261 cat > conftest.$ac_ext <<EOF
8262 #include <${cf_cv_ncurses_header:-curses.h}>
8264 #ifdef NCURSES_VERSION
8265 Autoconf NCURSES_VERSION
8273 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
8274 { (eval echo "$as_me:8274: \"$cf_try\"") >&5
8277 echo "$as_me:8277: \$? = $ac_status" >&5
8278 (exit $ac_status); }
8279 if test -f conftest.out ; then
8280 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
8281 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
8286 cat >conftest.$ac_ext <<_ACEOF
8287 #line 8287 "configure"
8288 #include "confdefs.h"
8290 #include <${cf_cv_ncurses_header:-curses.h}>
8294 FILE *fp = fopen("$cf_tempfile", "w");
8295 #ifdef NCURSES_VERSION
8296 # ifdef NCURSES_VERSION_PATCH
8297 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
8299 fprintf(fp, "%s\n", NCURSES_VERSION);
8303 fprintf(fp, "old\n");
8308 ${cf_cv_main_return:-return}(0);
8311 rm -f conftest$ac_exeext
8312 if { (eval echo "$as_me:8312: \"$ac_link\"") >&5
8313 (eval $ac_link) 2>&5
8315 echo "$as_me:8315: \$? = $ac_status" >&5
8316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8317 { (eval echo "$as_me:8317: \"$ac_try\"") >&5
8320 echo "$as_me:8320: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8323 cf_cv_ncurses_version=`cat $cf_tempfile`
8325 echo "$as_me: program exited with status $ac_status" >&5
8326 echo "$as_me: failed program was:" >&5
8327 cat conftest.$ac_ext >&5
8329 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8334 echo "$as_me:8334: result: $cf_cv_ncurses_version" >&5
8335 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
8336 test "$cf_cv_ncurses_version" = no ||
8337 cat >>confdefs.h <<\EOF
8341 cf_nculib_root=ncursesw
8342 # This works, except for the special case where we find gpm, but
8343 # ncurses is in a nonstandard location via $LIBS, and we really want
8346 cf_ncurses_SAVE="$LIBS"
8347 echo "$as_me:8347: checking for Gpm_Open in -lgpm" >&5
8348 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
8349 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 ac_check_lib_save_LIBS=$LIBS
8354 cat >conftest.$ac_ext <<_ACEOF
8355 #line 8355 "configure"
8356 #include "confdefs.h"
8358 /* Override any gcc2 internal prototype to avoid an error. */
8362 /* We use char because int might match the return type of a gcc2
8363 builtin and then its argument prototype would still apply. */
8373 rm -f conftest.$ac_objext conftest$ac_exeext
8374 if { (eval echo "$as_me:8374: \"$ac_link\"") >&5
8375 (eval $ac_link) 2>&5
8377 echo "$as_me:8377: \$? = $ac_status" >&5
8378 (exit $ac_status); } &&
8379 { ac_try='test -s conftest$ac_exeext'
8380 { (eval echo "$as_me:8380: \"$ac_try\"") >&5
8383 echo "$as_me:8383: \$? = $ac_status" >&5
8384 (exit $ac_status); }; }; then
8385 ac_cv_lib_gpm_Gpm_Open=yes
8387 echo "$as_me: failed program was:" >&5
8388 cat conftest.$ac_ext >&5
8389 ac_cv_lib_gpm_Gpm_Open=no
8391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8392 LIBS=$ac_check_lib_save_LIBS
8394 echo "$as_me:8394: result: $ac_cv_lib_gpm_Gpm_Open" >&5
8395 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
8396 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
8397 echo "$as_me:8397: checking for initscr in -lgpm" >&5
8398 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
8399 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
8400 echo $ECHO_N "(cached) $ECHO_C" >&6
8402 ac_check_lib_save_LIBS=$LIBS
8404 cat >conftest.$ac_ext <<_ACEOF
8405 #line 8405 "configure"
8406 #include "confdefs.h"
8408 /* Override any gcc2 internal prototype to avoid an error. */
8412 /* We use char because int might match the return type of a gcc2
8413 builtin and then its argument prototype would still apply. */
8423 rm -f conftest.$ac_objext conftest$ac_exeext
8424 if { (eval echo "$as_me:8424: \"$ac_link\"") >&5
8425 (eval $ac_link) 2>&5
8427 echo "$as_me:8427: \$? = $ac_status" >&5
8428 (exit $ac_status); } &&
8429 { ac_try='test -s conftest$ac_exeext'
8430 { (eval echo "$as_me:8430: \"$ac_try\"") >&5
8433 echo "$as_me:8433: \$? = $ac_status" >&5
8434 (exit $ac_status); }; }; then
8435 ac_cv_lib_gpm_initscr=yes
8437 echo "$as_me: failed program was:" >&5
8438 cat conftest.$ac_ext >&5
8439 ac_cv_lib_gpm_initscr=no
8441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8442 LIBS=$ac_check_lib_save_LIBS
8444 echo "$as_me:8444: result: $ac_cv_lib_gpm_initscr" >&5
8445 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
8446 if test $ac_cv_lib_gpm_initscr = yes; then
8447 LIBS="$cf_ncurses_SAVE"
8449 cf_ncurses_LIBS="-lgpm"
8454 case $host_os in #(vi
8456 # This is only necessary if you are linking against an obsolete
8457 # version of ncurses (but it should do no harm, since it's static).
8458 if test "$cf_nculib_root" = ncurses ; then
8459 echo "$as_me:8459: checking for tgoto in -lmytinfo" >&5
8460 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
8461 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 ac_check_lib_save_LIBS=$LIBS
8465 LIBS="-lmytinfo $LIBS"
8466 cat >conftest.$ac_ext <<_ACEOF
8467 #line 8467 "configure"
8468 #include "confdefs.h"
8470 /* Override any gcc2 internal prototype to avoid an error. */
8474 /* We use char because int might match the return type of a gcc2
8475 builtin and then its argument prototype would still apply. */
8485 rm -f conftest.$ac_objext conftest$ac_exeext
8486 if { (eval echo "$as_me:8486: \"$ac_link\"") >&5
8487 (eval $ac_link) 2>&5
8489 echo "$as_me:8489: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try='test -s conftest$ac_exeext'
8492 { (eval echo "$as_me:8492: \"$ac_try\"") >&5
8495 echo "$as_me:8495: \$? = $ac_status" >&5
8496 (exit $ac_status); }; }; then
8497 ac_cv_lib_mytinfo_tgoto=yes
8499 echo "$as_me: failed program was:" >&5
8500 cat conftest.$ac_ext >&5
8501 ac_cv_lib_mytinfo_tgoto=no
8503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8504 LIBS=$ac_check_lib_save_LIBS
8506 echo "$as_me:8506: result: $ac_cv_lib_mytinfo_tgoto" >&5
8507 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
8508 if test $ac_cv_lib_mytinfo_tgoto = yes; then
8509 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
8516 LIBS="$cf_ncurses_LIBS $LIBS"
8518 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
8520 LIBS="-l$cf_nculib_root $LIBS"
8523 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
8525 echo "$as_me:8525: checking for initscr" >&5
8526 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
8527 if test "${ac_cv_func_initscr+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 cat >conftest.$ac_ext <<_ACEOF
8531 #line 8531 "configure"
8532 #include "confdefs.h"
8533 /* System header to define __stub macros and hopefully few prototypes,
8534 which can conflict with char initscr (); below. */
8536 /* Override any gcc2 internal prototype to avoid an error. */
8540 /* We use char because int might match the return type of a gcc2
8541 builtin and then its argument prototype would still apply. */
8548 /* The GNU C library defines this for functions which it implements
8549 to always fail with ENOSYS. Some functions are actually named
8550 something starting with __ and the normal name is an alias. */
8551 #if defined (__stub_initscr) || defined (__stub___initscr)
8554 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8561 rm -f conftest.$ac_objext conftest$ac_exeext
8562 if { (eval echo "$as_me:8562: \"$ac_link\"") >&5
8563 (eval $ac_link) 2>&5
8565 echo "$as_me:8565: \$? = $ac_status" >&5
8566 (exit $ac_status); } &&
8567 { ac_try='test -s conftest$ac_exeext'
8568 { (eval echo "$as_me:8568: \"$ac_try\"") >&5
8571 echo "$as_me:8571: \$? = $ac_status" >&5
8572 (exit $ac_status); }; }; then
8573 ac_cv_func_initscr=yes
8575 echo "$as_me: failed program was:" >&5
8576 cat conftest.$ac_ext >&5
8577 ac_cv_func_initscr=no
8579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8581 echo "$as_me:8581: result: $ac_cv_func_initscr" >&5
8582 echo "${ECHO_T}$ac_cv_func_initscr" >&6
8583 if test $ac_cv_func_initscr = yes; then
8584 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8587 cf_save_LIBS="$LIBS"
8588 echo "$as_me:8588: checking for initscr in -l$cf_nculib_root" >&5
8589 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
8590 LIBS="-l$cf_nculib_root $LIBS"
8591 cat >conftest.$ac_ext <<_ACEOF
8592 #line 8592 "configure"
8593 #include "confdefs.h"
8594 #include <${cf_cv_ncurses_header:-curses.h}>
8603 rm -f conftest.$ac_objext conftest$ac_exeext
8604 if { (eval echo "$as_me:8604: \"$ac_link\"") >&5
8605 (eval $ac_link) 2>&5
8607 echo "$as_me:8607: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -s conftest$ac_exeext'
8610 { (eval echo "$as_me:8610: \"$ac_try\"") >&5
8613 echo "$as_me:8613: \$? = $ac_status" >&5
8614 (exit $ac_status); }; }; then
8615 echo "$as_me:8615: result: yes" >&5
8616 echo "${ECHO_T}yes" >&6
8617 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8620 echo "$as_me: failed program was:" >&5
8621 cat conftest.$ac_ext >&5
8622 echo "$as_me:8622: result: no" >&5
8623 echo "${ECHO_T}no" >&6
8626 cf_library_path_list=""
8627 if test -n "${LDFLAGS}${LIBS}" ; then
8628 for cf_library_path in $LDFLAGS $LIBS
8630 case $cf_library_path in #(vi
8632 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8634 test "$cf_library_path" != "NONE" && \
8635 test -d "$cf_library_path" && \
8637 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8638 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8639 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
8640 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
8641 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
8642 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"
8645 cf_library_path_list="$cf_library_path_list $cf_search"
8653 test "/usr" != "$prefix" && \
8655 (test $prefix = NONE || test "/usr" != "$prefix") && {
8656 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
8657 test -d /usr/lib && cf_search="$cf_search /usr/lib"
8658 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
8659 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
8660 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
8661 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
8664 test "$prefix" != "NONE" && \
8665 test -d "$prefix" && \
8667 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8668 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8669 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
8670 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
8671 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
8672 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
8675 test "/usr/local" != "$prefix" && \
8676 test -d "/usr/local" && \
8677 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8678 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
8679 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
8680 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
8681 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
8682 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
8683 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
8686 test "/opt" != "$prefix" && \
8688 (test $prefix = NONE || test "/opt" != "$prefix") && {
8689 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
8690 test -d /opt/lib && cf_search="$cf_search /opt/lib"
8691 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
8692 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
8693 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
8694 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
8697 test "$HOME" != "$prefix" && \
8698 test -d "$HOME" && \
8699 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8700 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
8701 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
8702 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
8703 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
8704 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
8705 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
8708 cf_search="$cf_library_path_list $cf_search"
8710 for cf_libdir in $cf_search
8712 echo "$as_me:8712: checking for -l$cf_nculib_root in $cf_libdir" >&5
8713 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
8714 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
8715 cat >conftest.$ac_ext <<_ACEOF
8716 #line 8716 "configure"
8717 #include "confdefs.h"
8718 #include <${cf_cv_ncurses_header:-curses.h}>
8727 rm -f conftest.$ac_objext conftest$ac_exeext
8728 if { (eval echo "$as_me:8728: \"$ac_link\"") >&5
8729 (eval $ac_link) 2>&5
8731 echo "$as_me:8731: \$? = $ac_status" >&5
8732 (exit $ac_status); } &&
8733 { ac_try='test -s conftest$ac_exeext'
8734 { (eval echo "$as_me:8734: \"$ac_try\"") >&5
8737 echo "$as_me:8737: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
8739 echo "$as_me:8739: result: yes" >&5
8740 echo "${ECHO_T}yes" >&6
8741 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8744 echo "$as_me: failed program was:" >&5
8745 cat conftest.$ac_ext >&5
8746 echo "$as_me:8746: result: no" >&5
8747 echo "${ECHO_T}no" >&6
8748 LIBS="$cf_save_LIBS"
8750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8758 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
8760 if test $cf_found_library = no ; then
8761 { { echo "$as_me:8761: error: Cannot link $cf_nculib_root library" >&5
8762 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
8763 { (exit 1); exit 1; }; }
8768 if test -n "$cf_ncurses_LIBS" ; then
8769 echo "$as_me:8769: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
8770 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
8771 cf_ncurses_SAVE="$LIBS"
8772 for p in $cf_ncurses_LIBS ; do
8773 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
8774 if test "$q" != "$LIBS" ; then
8778 cat >conftest.$ac_ext <<_ACEOF
8779 #line 8779 "configure"
8780 #include "confdefs.h"
8781 #include <${cf_cv_ncurses_header:-curses.h}>
8785 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
8790 rm -f conftest.$ac_objext conftest$ac_exeext
8791 if { (eval echo "$as_me:8791: \"$ac_link\"") >&5
8792 (eval $ac_link) 2>&5
8794 echo "$as_me:8794: \$? = $ac_status" >&5
8795 (exit $ac_status); } &&
8796 { ac_try='test -s conftest$ac_exeext'
8797 { (eval echo "$as_me:8797: \"$ac_try\"") >&5
8800 echo "$as_me:8800: \$? = $ac_status" >&5
8801 (exit $ac_status); }; }; then
8802 echo "$as_me:8802: result: yes" >&5
8803 echo "${ECHO_T}yes" >&6
8805 echo "$as_me: failed program was:" >&5
8806 cat conftest.$ac_ext >&5
8807 echo "$as_me:8807: result: no" >&5
8808 echo "${ECHO_T}no" >&6
8809 LIBS="$cf_ncurses_SAVE"
8811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8814 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8816 cat >>confdefs.h <<EOF
8817 #define $cf_nculib_ROOT 1
8824 echo "$as_me:8824: checking for X" >&5
8825 echo $ECHO_N "checking for X... $ECHO_C" >&6
8827 # Check whether --with-x or --without-x was given.
8828 if test "${with_x+set}" = set; then
8832 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8833 if test "x$with_x" = xno; then
8834 # The user explicitly disabled X.
8837 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8838 # Both variables are already set.
8841 if test "${ac_cv_have_x+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 # One or both of the vars are not set, and there is no cached value.
8845 ac_x_includes=no ac_x_libraries=no
8847 if mkdir conftest.dir; then
8849 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8850 cat >Imakefile <<'EOF'
8852 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8854 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8855 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8856 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8857 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8858 for ac_extension in a so sl dylib dll; do
8859 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8860 test -f $ac_im_libdir/libX11.$ac_extension; then
8861 ac_im_usrlibdir=$ac_im_libdir; break
8864 # Screen out bogus values from the imake configuration. They are
8865 # bogus both because they are the default anyway, and because
8866 # using them would break gcc on systems where it needs fixed includes.
8867 case $ac_im_incroot in
8869 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8871 case $ac_im_usrlibdir in
8873 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8880 # Standard set of common directories for X headers.
8881 # Check X11 before X11Rn because it is often a symlink to the current release.
8893 /usr/local/X11/include
8894 /usr/local/X11R6/include
8895 /usr/local/X11R5/include
8896 /usr/local/X11R4/include
8898 /usr/local/include/X11
8899 /usr/local/include/X11R6
8900 /usr/local/include/X11R5
8901 /usr/local/include/X11R4
8905 /usr/XFree86/include/X11
8909 /usr/unsupported/include
8911 /usr/local/x11r5/include
8912 /usr/lpp/Xamples/include
8914 /usr/openwin/include
8915 /usr/openwin/share/include'
8917 if test "$ac_x_includes" = no; then
8918 # Guess where to find include files, by looking for Intrinsic.h.
8919 # First, try using that file with no special directory specified.
8920 cat >conftest.$ac_ext <<_ACEOF
8921 #line 8921 "configure"
8922 #include "confdefs.h"
8923 #include <X11/Intrinsic.h>
8925 if { (eval echo "$as_me:8925: \"$ac_cpp conftest.$ac_ext\"") >&5
8926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8928 egrep -v '^ *\+' conftest.er1 >conftest.err
8930 cat conftest.err >&5
8931 echo "$as_me:8931: \$? = $ac_status" >&5
8932 (exit $ac_status); } >/dev/null; then
8933 if test -s conftest.err; then
8934 ac_cpp_err=$ac_c_preproc_warn_flag
8941 if test -z "$ac_cpp_err"; then
8942 # We can compile using X headers with no special include directory.
8945 echo "$as_me: failed program was:" >&5
8946 cat conftest.$ac_ext >&5
8947 for ac_dir in $ac_x_header_dirs; do
8948 if test -r "$ac_dir/X11/Intrinsic.h"; then
8949 ac_x_includes=$ac_dir
8954 rm -f conftest.err conftest.$ac_ext
8955 fi # $ac_x_includes = no
8957 if test "$ac_x_libraries" = no; then
8958 # Check for the libraries.
8959 # See if we find them without any special options.
8960 # Don't add to $LIBS permanently.
8963 cat >conftest.$ac_ext <<_ACEOF
8964 #line 8964 "configure"
8965 #include "confdefs.h"
8966 #include <X11/Intrinsic.h>
8975 rm -f conftest.$ac_objext conftest$ac_exeext
8976 if { (eval echo "$as_me:8976: \"$ac_link\"") >&5
8977 (eval $ac_link) 2>&5
8979 echo "$as_me:8979: \$? = $ac_status" >&5
8980 (exit $ac_status); } &&
8981 { ac_try='test -s conftest$ac_exeext'
8982 { (eval echo "$as_me:8982: \"$ac_try\"") >&5
8985 echo "$as_me:8985: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8988 # We can link X programs with no special library path.
8991 echo "$as_me: failed program was:" >&5
8992 cat conftest.$ac_ext >&5
8994 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8996 # Don't even attempt the hair of trying to link an X program!
8997 for ac_extension in a so sl dylib dll; do
8998 if test -r $ac_dir/libXt.$ac_extension; then
8999 ac_x_libraries=$ac_dir
9005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9006 fi # $ac_x_libraries = no
9008 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9009 # Didn't find X anywhere. Cache the known absence of X.
9010 ac_cv_have_x="have_x=no"
9012 # Record where we found X for the cache.
9013 ac_cv_have_x="have_x=yes \
9014 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9019 eval "$ac_cv_have_x"
9022 if test "$have_x" != yes; then
9023 echo "$as_me:9023: result: $have_x" >&5
9024 echo "${ECHO_T}$have_x" >&6
9027 # If each of the values was on the command line, it overrides each guess.
9028 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9029 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9030 # Update the cache value to reflect the command line values.
9031 ac_cv_have_x="have_x=yes \
9032 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9033 echo "$as_me:9033: result: libraries $x_libraries, headers $x_includes" >&5
9034 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9037 if test "$no_x" = yes; then
9038 # Not all programs may use this symbol, but it does not hurt to define it.
9040 cat >>confdefs.h <<\EOF
9041 #define X_DISPLAY_MISSING 1
9044 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9046 if test -n "$x_includes"; then
9047 X_CFLAGS="$X_CFLAGS -I$x_includes"
9050 # It would also be nice to do this for all -L options, not just this one.
9051 if test -n "$x_libraries"; then
9052 X_LIBS="$X_LIBS -L$x_libraries"
9053 # For Solaris; some versions of Sun CC require a space after -R and
9054 # others require no space. Words are not sufficient . . . .
9055 case `(uname -sr) 2>/dev/null` in
9057 echo "$as_me:9057: checking whether -R must be followed by a space" >&5
9058 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9059 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9060 cat >conftest.$ac_ext <<_ACEOF
9061 #line 9061 "configure"
9062 #include "confdefs.h"
9072 rm -f conftest.$ac_objext conftest$ac_exeext
9073 if { (eval echo "$as_me:9073: \"$ac_link\"") >&5
9074 (eval $ac_link) 2>&5
9076 echo "$as_me:9076: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try='test -s conftest$ac_exeext'
9079 { (eval echo "$as_me:9079: \"$ac_try\"") >&5
9082 echo "$as_me:9082: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9086 echo "$as_me: failed program was:" >&5
9087 cat conftest.$ac_ext >&5
9090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9091 if test $ac_R_nospace = yes; then
9092 echo "$as_me:9092: result: no" >&5
9093 echo "${ECHO_T}no" >&6
9094 X_LIBS="$X_LIBS -R$x_libraries"
9096 LIBS="$ac_xsave_LIBS -R $x_libraries"
9097 cat >conftest.$ac_ext <<_ACEOF
9098 #line 9098 "configure"
9099 #include "confdefs.h"
9109 rm -f conftest.$ac_objext conftest$ac_exeext
9110 if { (eval echo "$as_me:9110: \"$ac_link\"") >&5
9111 (eval $ac_link) 2>&5
9113 echo "$as_me:9113: \$? = $ac_status" >&5
9114 (exit $ac_status); } &&
9115 { ac_try='test -s conftest$ac_exeext'
9116 { (eval echo "$as_me:9116: \"$ac_try\"") >&5
9119 echo "$as_me:9119: \$? = $ac_status" >&5
9120 (exit $ac_status); }; }; then
9123 echo "$as_me: failed program was:" >&5
9124 cat conftest.$ac_ext >&5
9127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9128 if test $ac_R_space = yes; then
9129 echo "$as_me:9129: result: yes" >&5
9130 echo "${ECHO_T}yes" >&6
9131 X_LIBS="$X_LIBS -R $x_libraries"
9133 echo "$as_me:9133: result: neither works" >&5
9134 echo "${ECHO_T}neither works" >&6
9141 # Check for system-dependent libraries X programs must link with.
9142 # Do this before checking for the system-independent R6 libraries
9143 # (-lICE), since we may need -lsocket or whatever for X linking.
9145 if test "$ISC" = yes; then
9146 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9148 # Martyn Johnson says this is needed for Ultrix, if the X
9149 # libraries were built with DECnet support. And Karl Berry says
9150 # the Alpha needs dnet_stub (dnet does not exist).
9151 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9152 cat >conftest.$ac_ext <<_ACEOF
9153 #line 9153 "configure"
9154 #include "confdefs.h"
9156 /* Override any gcc2 internal prototype to avoid an error. */
9160 /* We use char because int might match the return type of a gcc2
9161 builtin and then its argument prototype would still apply. */
9162 char XOpenDisplay ();
9171 rm -f conftest.$ac_objext conftest$ac_exeext
9172 if { (eval echo "$as_me:9172: \"$ac_link\"") >&5
9173 (eval $ac_link) 2>&5
9175 echo "$as_me:9175: \$? = $ac_status" >&5
9176 (exit $ac_status); } &&
9177 { ac_try='test -s conftest$ac_exeext'
9178 { (eval echo "$as_me:9178: \"$ac_try\"") >&5
9181 echo "$as_me:9181: \$? = $ac_status" >&5
9182 (exit $ac_status); }; }; then
9185 echo "$as_me: failed program was:" >&5
9186 cat conftest.$ac_ext >&5
9187 echo "$as_me:9187: checking for dnet_ntoa in -ldnet" >&5
9188 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9189 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 ac_check_lib_save_LIBS=$LIBS
9194 cat >conftest.$ac_ext <<_ACEOF
9195 #line 9195 "configure"
9196 #include "confdefs.h"
9198 /* Override any gcc2 internal prototype to avoid an error. */
9202 /* We use char because int might match the return type of a gcc2
9203 builtin and then its argument prototype would still apply. */
9213 rm -f conftest.$ac_objext conftest$ac_exeext
9214 if { (eval echo "$as_me:9214: \"$ac_link\"") >&5
9215 (eval $ac_link) 2>&5
9217 echo "$as_me:9217: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try='test -s conftest$ac_exeext'
9220 { (eval echo "$as_me:9220: \"$ac_try\"") >&5
9223 echo "$as_me:9223: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 ac_cv_lib_dnet_dnet_ntoa=yes
9227 echo "$as_me: failed program was:" >&5
9228 cat conftest.$ac_ext >&5
9229 ac_cv_lib_dnet_dnet_ntoa=no
9231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9232 LIBS=$ac_check_lib_save_LIBS
9234 echo "$as_me:9234: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9235 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9236 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9237 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9240 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9241 echo "$as_me:9241: checking for dnet_ntoa in -ldnet_stub" >&5
9242 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9243 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9246 ac_check_lib_save_LIBS=$LIBS
9247 LIBS="-ldnet_stub $LIBS"
9248 cat >conftest.$ac_ext <<_ACEOF
9249 #line 9249 "configure"
9250 #include "confdefs.h"
9252 /* Override any gcc2 internal prototype to avoid an error. */
9256 /* We use char because int might match the return type of a gcc2
9257 builtin and then its argument prototype would still apply. */
9267 rm -f conftest.$ac_objext conftest$ac_exeext
9268 if { (eval echo "$as_me:9268: \"$ac_link\"") >&5
9269 (eval $ac_link) 2>&5
9271 echo "$as_me:9271: \$? = $ac_status" >&5
9272 (exit $ac_status); } &&
9273 { ac_try='test -s conftest$ac_exeext'
9274 { (eval echo "$as_me:9274: \"$ac_try\"") >&5
9277 echo "$as_me:9277: \$? = $ac_status" >&5
9278 (exit $ac_status); }; }; then
9279 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9281 echo "$as_me: failed program was:" >&5
9282 cat conftest.$ac_ext >&5
9283 ac_cv_lib_dnet_stub_dnet_ntoa=no
9285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9286 LIBS=$ac_check_lib_save_LIBS
9288 echo "$as_me:9288: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9289 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9290 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9291 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9297 LIBS="$ac_xsave_LIBS"
9299 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9300 # to get the SysV transport functions.
9301 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9303 # The nsl library prevents programs from opening the X display
9304 # on Irix 5.2, according to T.E. Dickey.
9305 # The functions gethostbyname, getservbyname, and inet_addr are
9306 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9307 echo "$as_me:9307: checking for gethostbyname" >&5
9308 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9309 if test "${ac_cv_func_gethostbyname+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9312 cat >conftest.$ac_ext <<_ACEOF
9313 #line 9313 "configure"
9314 #include "confdefs.h"
9315 /* System header to define __stub macros and hopefully few prototypes,
9316 which can conflict with char gethostbyname (); below. */
9318 /* Override any gcc2 internal prototype to avoid an error. */
9322 /* We use char because int might match the return type of a gcc2
9323 builtin and then its argument prototype would still apply. */
9324 char gethostbyname ();
9330 /* The GNU C library defines this for functions which it implements
9331 to always fail with ENOSYS. Some functions are actually named
9332 something starting with __ and the normal name is an alias. */
9333 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9336 f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (eval echo "$as_me:9344: \"$ac_link\"") >&5
9345 (eval $ac_link) 2>&5
9347 echo "$as_me:9347: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -s conftest$ac_exeext'
9350 { (eval echo "$as_me:9350: \"$ac_try\"") >&5
9353 echo "$as_me:9353: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9355 ac_cv_func_gethostbyname=yes
9357 echo "$as_me: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9359 ac_cv_func_gethostbyname=no
9361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9363 echo "$as_me:9363: result: $ac_cv_func_gethostbyname" >&5
9364 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9366 if test $ac_cv_func_gethostbyname = no; then
9367 echo "$as_me:9367: checking for gethostbyname in -lnsl" >&5
9368 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9369 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9372 ac_check_lib_save_LIBS=$LIBS
9374 cat >conftest.$ac_ext <<_ACEOF
9375 #line 9375 "configure"
9376 #include "confdefs.h"
9378 /* Override any gcc2 internal prototype to avoid an error. */
9382 /* We use char because int might match the return type of a gcc2
9383 builtin and then its argument prototype would still apply. */
9384 char gethostbyname ();
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (eval echo "$as_me:9394: \"$ac_link\"") >&5
9395 (eval $ac_link) 2>&5
9397 echo "$as_me:9397: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -s conftest$ac_exeext'
9400 { (eval echo "$as_me:9400: \"$ac_try\"") >&5
9403 echo "$as_me:9403: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 ac_cv_lib_nsl_gethostbyname=yes
9407 echo "$as_me: failed program was:" >&5
9408 cat conftest.$ac_ext >&5
9409 ac_cv_lib_nsl_gethostbyname=no
9411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9412 LIBS=$ac_check_lib_save_LIBS
9414 echo "$as_me:9414: result: $ac_cv_lib_nsl_gethostbyname" >&5
9415 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9416 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9417 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9420 if test $ac_cv_lib_nsl_gethostbyname = no; then
9421 echo "$as_me:9421: checking for gethostbyname in -lbsd" >&5
9422 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9423 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9424 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 ac_check_lib_save_LIBS=$LIBS
9428 cat >conftest.$ac_ext <<_ACEOF
9429 #line 9429 "configure"
9430 #include "confdefs.h"
9432 /* Override any gcc2 internal prototype to avoid an error. */
9436 /* We use char because int might match the return type of a gcc2
9437 builtin and then its argument prototype would still apply. */
9438 char gethostbyname ();
9447 rm -f conftest.$ac_objext conftest$ac_exeext
9448 if { (eval echo "$as_me:9448: \"$ac_link\"") >&5
9449 (eval $ac_link) 2>&5
9451 echo "$as_me:9451: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -s conftest$ac_exeext'
9454 { (eval echo "$as_me:9454: \"$ac_try\"") >&5
9457 echo "$as_me:9457: \$? = $ac_status" >&5
9458 (exit $ac_status); }; }; then
9459 ac_cv_lib_bsd_gethostbyname=yes
9461 echo "$as_me: failed program was:" >&5
9462 cat conftest.$ac_ext >&5
9463 ac_cv_lib_bsd_gethostbyname=no
9465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9466 LIBS=$ac_check_lib_save_LIBS
9468 echo "$as_me:9468: result: $ac_cv_lib_bsd_gethostbyname" >&5
9469 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9470 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9471 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9477 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9478 # socket/setsockopt and other routines are undefined under SCO ODT
9479 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9480 # on later versions), says Simon Leinen: it contains gethostby*
9481 # variants that don't use the nameserver (or something). -lsocket
9482 # must be given before -lnsl if both are needed. We assume that
9483 # if connect needs -lnsl, so does gethostbyname.
9484 echo "$as_me:9484: checking for connect" >&5
9485 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9486 if test "${ac_cv_func_connect+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 cat >conftest.$ac_ext <<_ACEOF
9490 #line 9490 "configure"
9491 #include "confdefs.h"
9492 /* System header to define __stub macros and hopefully few prototypes,
9493 which can conflict with char connect (); below. */
9495 /* Override any gcc2 internal prototype to avoid an error. */
9499 /* We use char because int might match the return type of a gcc2
9500 builtin and then its argument prototype would still apply. */
9507 /* The GNU C library defines this for functions which it implements
9508 to always fail with ENOSYS. Some functions are actually named
9509 something starting with __ and the normal name is an alias. */
9510 #if defined (__stub_connect) || defined (__stub___connect)
9513 f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9520 rm -f conftest.$ac_objext conftest$ac_exeext
9521 if { (eval echo "$as_me:9521: \"$ac_link\"") >&5
9522 (eval $ac_link) 2>&5
9524 echo "$as_me:9524: \$? = $ac_status" >&5
9525 (exit $ac_status); } &&
9526 { ac_try='test -s conftest$ac_exeext'
9527 { (eval echo "$as_me:9527: \"$ac_try\"") >&5
9530 echo "$as_me:9530: \$? = $ac_status" >&5
9531 (exit $ac_status); }; }; then
9532 ac_cv_func_connect=yes
9534 echo "$as_me: failed program was:" >&5
9535 cat conftest.$ac_ext >&5
9536 ac_cv_func_connect=no
9538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9540 echo "$as_me:9540: result: $ac_cv_func_connect" >&5
9541 echo "${ECHO_T}$ac_cv_func_connect" >&6
9543 if test $ac_cv_func_connect = no; then
9544 echo "$as_me:9544: checking for connect in -lsocket" >&5
9545 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9546 if test "${ac_cv_lib_socket_connect+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 ac_check_lib_save_LIBS=$LIBS
9550 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9551 cat >conftest.$ac_ext <<_ACEOF
9552 #line 9552 "configure"
9553 #include "confdefs.h"
9555 /* Override any gcc2 internal prototype to avoid an error. */
9559 /* We use char because int might match the return type of a gcc2
9560 builtin and then its argument prototype would still apply. */
9570 rm -f conftest.$ac_objext conftest$ac_exeext
9571 if { (eval echo "$as_me:9571: \"$ac_link\"") >&5
9572 (eval $ac_link) 2>&5
9574 echo "$as_me:9574: \$? = $ac_status" >&5
9575 (exit $ac_status); } &&
9576 { ac_try='test -s conftest$ac_exeext'
9577 { (eval echo "$as_me:9577: \"$ac_try\"") >&5
9580 echo "$as_me:9580: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 ac_cv_lib_socket_connect=yes
9584 echo "$as_me: failed program was:" >&5
9585 cat conftest.$ac_ext >&5
9586 ac_cv_lib_socket_connect=no
9588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9589 LIBS=$ac_check_lib_save_LIBS
9591 echo "$as_me:9591: result: $ac_cv_lib_socket_connect" >&5
9592 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9593 if test $ac_cv_lib_socket_connect = yes; then
9594 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9599 # Guillermo Gomez says -lposix is necessary on A/UX.
9600 echo "$as_me:9600: checking for remove" >&5
9601 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9602 if test "${ac_cv_func_remove+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 cat >conftest.$ac_ext <<_ACEOF
9606 #line 9606 "configure"
9607 #include "confdefs.h"
9608 /* System header to define __stub macros and hopefully few prototypes,
9609 which can conflict with char remove (); below. */
9611 /* Override any gcc2 internal prototype to avoid an error. */
9615 /* We use char because int might match the return type of a gcc2
9616 builtin and then its argument prototype would still apply. */
9623 /* The GNU C library defines this for functions which it implements
9624 to always fail with ENOSYS. Some functions are actually named
9625 something starting with __ and the normal name is an alias. */
9626 #if defined (__stub_remove) || defined (__stub___remove)
9629 f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9636 rm -f conftest.$ac_objext conftest$ac_exeext
9637 if { (eval echo "$as_me:9637: \"$ac_link\"") >&5
9638 (eval $ac_link) 2>&5
9640 echo "$as_me:9640: \$? = $ac_status" >&5
9641 (exit $ac_status); } &&
9642 { ac_try='test -s conftest$ac_exeext'
9643 { (eval echo "$as_me:9643: \"$ac_try\"") >&5
9646 echo "$as_me:9646: \$? = $ac_status" >&5
9647 (exit $ac_status); }; }; then
9648 ac_cv_func_remove=yes
9650 echo "$as_me: failed program was:" >&5
9651 cat conftest.$ac_ext >&5
9652 ac_cv_func_remove=no
9654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9656 echo "$as_me:9656: result: $ac_cv_func_remove" >&5
9657 echo "${ECHO_T}$ac_cv_func_remove" >&6
9659 if test $ac_cv_func_remove = no; then
9660 echo "$as_me:9660: checking for remove in -lposix" >&5
9661 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9662 if test "${ac_cv_lib_posix_remove+set}" = set; then
9663 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 ac_check_lib_save_LIBS=$LIBS
9666 LIBS="-lposix $LIBS"
9667 cat >conftest.$ac_ext <<_ACEOF
9668 #line 9668 "configure"
9669 #include "confdefs.h"
9671 /* Override any gcc2 internal prototype to avoid an error. */
9675 /* We use char because int might match the return type of a gcc2
9676 builtin and then its argument prototype would still apply. */
9686 rm -f conftest.$ac_objext conftest$ac_exeext
9687 if { (eval echo "$as_me:9687: \"$ac_link\"") >&5
9688 (eval $ac_link) 2>&5
9690 echo "$as_me:9690: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try='test -s conftest$ac_exeext'
9693 { (eval echo "$as_me:9693: \"$ac_try\"") >&5
9696 echo "$as_me:9696: \$? = $ac_status" >&5
9697 (exit $ac_status); }; }; then
9698 ac_cv_lib_posix_remove=yes
9700 echo "$as_me: failed program was:" >&5
9701 cat conftest.$ac_ext >&5
9702 ac_cv_lib_posix_remove=no
9704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9705 LIBS=$ac_check_lib_save_LIBS
9707 echo "$as_me:9707: result: $ac_cv_lib_posix_remove" >&5
9708 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9709 if test $ac_cv_lib_posix_remove = yes; then
9710 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9715 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9716 echo "$as_me:9716: checking for shmat" >&5
9717 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9718 if test "${ac_cv_func_shmat+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 cat >conftest.$ac_ext <<_ACEOF
9722 #line 9722 "configure"
9723 #include "confdefs.h"
9724 /* System header to define __stub macros and hopefully few prototypes,
9725 which can conflict with char shmat (); below. */
9727 /* Override any gcc2 internal prototype to avoid an error. */
9731 /* We use char because int might match the return type of a gcc2
9732 builtin and then its argument prototype would still apply. */
9739 /* The GNU C library defines this for functions which it implements
9740 to always fail with ENOSYS. Some functions are actually named
9741 something starting with __ and the normal name is an alias. */
9742 #if defined (__stub_shmat) || defined (__stub___shmat)
9745 f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (eval echo "$as_me:9753: \"$ac_link\"") >&5
9754 (eval $ac_link) 2>&5
9756 echo "$as_me:9756: \$? = $ac_status" >&5
9757 (exit $ac_status); } &&
9758 { ac_try='test -s conftest$ac_exeext'
9759 { (eval echo "$as_me:9759: \"$ac_try\"") >&5
9762 echo "$as_me:9762: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
9764 ac_cv_func_shmat=yes
9766 echo "$as_me: failed program was:" >&5
9767 cat conftest.$ac_ext >&5
9770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9772 echo "$as_me:9772: result: $ac_cv_func_shmat" >&5
9773 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9775 if test $ac_cv_func_shmat = no; then
9776 echo "$as_me:9776: checking for shmat in -lipc" >&5
9777 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9778 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 ac_check_lib_save_LIBS=$LIBS
9783 cat >conftest.$ac_ext <<_ACEOF
9784 #line 9784 "configure"
9785 #include "confdefs.h"
9787 /* Override any gcc2 internal prototype to avoid an error. */
9791 /* We use char because int might match the return type of a gcc2
9792 builtin and then its argument prototype would still apply. */
9802 rm -f conftest.$ac_objext conftest$ac_exeext
9803 if { (eval echo "$as_me:9803: \"$ac_link\"") >&5
9804 (eval $ac_link) 2>&5
9806 echo "$as_me:9806: \$? = $ac_status" >&5
9807 (exit $ac_status); } &&
9808 { ac_try='test -s conftest$ac_exeext'
9809 { (eval echo "$as_me:9809: \"$ac_try\"") >&5
9812 echo "$as_me:9812: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9814 ac_cv_lib_ipc_shmat=yes
9816 echo "$as_me: failed program was:" >&5
9817 cat conftest.$ac_ext >&5
9818 ac_cv_lib_ipc_shmat=no
9820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9821 LIBS=$ac_check_lib_save_LIBS
9823 echo "$as_me:9823: result: $ac_cv_lib_ipc_shmat" >&5
9824 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9825 if test $ac_cv_lib_ipc_shmat = yes; then
9826 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9832 # Check for libraries that X11R6 Xt/Xaw programs need.
9833 ac_save_LDFLAGS=$LDFLAGS
9834 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9835 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9836 # check for ICE first), but we must link in the order -lSM -lICE or
9837 # we get undefined symbols. So assume we have SM if we have ICE.
9838 # These have to be linked with before -lX11, unlike the other
9839 # libraries we check for below, so use a different variable.
9840 # John Interrante, Karl Berry
9841 echo "$as_me:9841: checking for IceConnectionNumber in -lICE" >&5
9842 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9843 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 ac_check_lib_save_LIBS=$LIBS
9847 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9848 cat >conftest.$ac_ext <<_ACEOF
9849 #line 9849 "configure"
9850 #include "confdefs.h"
9852 /* Override any gcc2 internal prototype to avoid an error. */
9856 /* We use char because int might match the return type of a gcc2
9857 builtin and then its argument prototype would still apply. */
9858 char IceConnectionNumber ();
9862 IceConnectionNumber ();
9867 rm -f conftest.$ac_objext conftest$ac_exeext
9868 if { (eval echo "$as_me:9868: \"$ac_link\"") >&5
9869 (eval $ac_link) 2>&5
9871 echo "$as_me:9871: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
9873 { ac_try='test -s conftest$ac_exeext'
9874 { (eval echo "$as_me:9874: \"$ac_try\"") >&5
9877 echo "$as_me:9877: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 ac_cv_lib_ICE_IceConnectionNumber=yes
9881 echo "$as_me: failed program was:" >&5
9882 cat conftest.$ac_ext >&5
9883 ac_cv_lib_ICE_IceConnectionNumber=no
9885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9886 LIBS=$ac_check_lib_save_LIBS
9888 echo "$as_me:9888: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9889 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9890 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9891 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9894 LDFLAGS=$ac_save_LDFLAGS
9898 cf_x_athena=${cf_x_athena:-Xaw}
9900 echo "$as_me:9900: checking if you want to link with Xaw 3d library" >&5
9901 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
9904 # Check whether --with-Xaw3d or --without-Xaw3d was given.
9905 if test "${with_Xaw3d+set}" = set; then
9906 withval="$with_Xaw3d"
9909 if test "$withval" = yes ; then
9911 echo "$as_me:9911: result: yes" >&5
9912 echo "${ECHO_T}yes" >&6
9914 echo "$as_me:9914: result: no" >&5
9915 echo "${ECHO_T}no" >&6
9918 echo "$as_me:9918: checking if you want to link with neXT Athena library" >&5
9919 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
9922 # Check whether --with-neXtaw or --without-neXtaw was given.
9923 if test "${with_neXtaw+set}" = set; then
9924 withval="$with_neXtaw"
9927 if test "$withval" = yes ; then
9929 echo "$as_me:9929: result: yes" >&5
9930 echo "${ECHO_T}yes" >&6
9932 echo "$as_me:9932: result: no" >&5
9933 echo "${ECHO_T}no" >&6
9936 echo "$as_me:9936: checking if you want to link with Athena-Plus library" >&5
9937 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
9940 # Check whether --with-XawPlus or --without-XawPlus was given.
9941 if test "${with_XawPlus+set}" = set; then
9942 withval="$with_XawPlus"
9945 if test "$withval" = yes ; then
9947 echo "$as_me:9947: result: yes" >&5
9948 echo "${ECHO_T}yes" >&6
9950 echo "$as_me:9950: result: no" >&5
9951 echo "${ECHO_T}no" >&6
9956 if test "$PKG_CONFIG" != none ; then
9958 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
9959 for cf_athena_pkg in \
9962 ${cf_x_athena}-devel \
9964 lib${cf_x_athena}-devel
9967 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
9968 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
9970 echo "${as_me:-configure}:9970: testing found package $cf_athena_pkg ..." 1>&5
9972 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
9973 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
9974 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
9976 echo "${as_me:-configure}:9976: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9978 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
9980 echo "${as_me:-configure}:9980: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
9985 cf_new_extra_cppflags=
9987 for cf_add_cflags in $cf_pkgconfig_incs
9989 case $cf_fix_cppflags in
9991 case $cf_add_cflags in #(vi
9992 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9993 case $cf_add_cflags in
9995 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9997 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9998 && test -z "${cf_tst_cflags}" \
9999 && cf_fix_cppflags=yes
10001 if test $cf_fix_cppflags = yes ; then
10002 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10004 elif test "${cf_tst_cflags}" = "\"'" ; then
10005 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10010 case "$CPPFLAGS" in
10011 *$cf_add_cflags) #(vi
10014 case $cf_add_cflags in #(vi
10016 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10018 CPPFLAGS=`echo "$CPPFLAGS" | \
10019 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10020 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10024 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10029 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10034 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10036 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10038 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10039 && test -z "${cf_tst_cflags}" \
10040 && cf_fix_cppflags=no
10045 if test -n "$cf_new_cflags" ; then
10047 CFLAGS="$CFLAGS $cf_new_cflags"
10050 if test -n "$cf_new_cppflags" ; then
10052 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10055 if test -n "$cf_new_extra_cppflags" ; then
10057 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10060 LIBS="$cf_pkgconfig_libs $LIBS"
10062 cf_x_athena_lib="$cf_pkgconfig_libs"
10064 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10066 cat >>confdefs.h <<EOF
10067 #define $cf_x_athena_LIBS 1
10070 echo "$as_me:10070: checking for usable $cf_x_athena/Xmu package" >&5
10071 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
10072 if test "${cf_cv_xaw_compat+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 cat >conftest.$ac_ext <<_ACEOF
10077 #line 10077 "configure"
10078 #include "confdefs.h"
10080 #include <X11/Xmu/CharSet.h>
10086 int check = XmuCompareISOLatin1("big", "small")
10092 rm -f conftest.$ac_objext conftest$ac_exeext
10093 if { (eval echo "$as_me:10093: \"$ac_link\"") >&5
10094 (eval $ac_link) 2>&5
10096 echo "$as_me:10096: \$? = $ac_status" >&5
10097 (exit $ac_status); } &&
10098 { ac_try='test -s conftest$ac_exeext'
10099 { (eval echo "$as_me:10099: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10102 echo "$as_me:10102: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 cf_cv_xaw_compat=yes
10106 echo "$as_me: failed program was:" >&5
10107 cat conftest.$ac_ext >&5
10108 cf_cv_xaw_compat=no
10110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10112 echo "$as_me:10112: result: $cf_cv_xaw_compat" >&5
10113 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
10115 if test "$cf_cv_xaw_compat" = no
10117 # workaround for broken ".pc" files...
10118 case "$cf_x_athena_lib" in #(vi
10122 test -n "$verbose" && echo " work around broken package" 1>&6
10124 echo "${as_me:-configure}:10124: testing work around broken package ..." 1>&5
10126 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
10127 test -n "$verbose" && echo " found package xmu" 1>&6
10129 echo "${as_me:-configure}:10129: testing found package xmu ..." 1>&5
10131 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
10132 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
10133 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
10135 echo "${as_me:-configure}:10135: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10137 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
10139 echo "${as_me:-configure}:10139: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
10144 cf_new_extra_cppflags=
10146 for cf_add_cflags in $cf_pkgconfig_incs
10148 case $cf_fix_cppflags in
10150 case $cf_add_cflags in #(vi
10151 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10152 case $cf_add_cflags in
10154 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10156 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10157 && test -z "${cf_tst_cflags}" \
10158 && cf_fix_cppflags=yes
10160 if test $cf_fix_cppflags = yes ; then
10161 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10163 elif test "${cf_tst_cflags}" = "\"'" ; then
10164 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10169 case "$CPPFLAGS" in
10170 *$cf_add_cflags) #(vi
10173 case $cf_add_cflags in #(vi
10175 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10177 CPPFLAGS=`echo "$CPPFLAGS" | \
10178 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10179 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10183 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10188 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10193 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10195 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10197 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10198 && test -z "${cf_tst_cflags}" \
10199 && cf_fix_cppflags=no
10204 if test -n "$cf_new_cflags" ; then
10206 CFLAGS="$CFLAGS $cf_new_cflags"
10209 if test -n "$cf_new_cppflags" ; then
10211 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10214 if test -n "$cf_new_extra_cppflags" ; then
10216 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10219 LIBS="$cf_pkgconfig_libs $LIBS"
10223 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10225 echo "${as_me:-configure}:10225: testing ...before $LIBS ..." 1>&5
10227 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s,-lXt ,-lXt -lXmu ," -e 's/ / /g'`
10228 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10230 echo "${as_me:-configure}:10230: testing ...after $LIBS ..." 1>&5
10246 if test -z "$cf_x_athena_lib" ; then
10248 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
10249 test -n "$verbose" && echo " found package Xext" 1>&6
10251 echo "${as_me:-configure}:10251: testing found package Xext ..." 1>&5
10253 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
10254 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
10255 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
10257 echo "${as_me:-configure}:10257: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10259 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
10261 echo "${as_me:-configure}:10261: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
10266 cf_new_extra_cppflags=
10268 for cf_add_cflags in $cf_pkgconfig_incs
10270 case $cf_fix_cppflags in
10272 case $cf_add_cflags in #(vi
10273 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10274 case $cf_add_cflags in
10276 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10278 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10279 && test -z "${cf_tst_cflags}" \
10280 && cf_fix_cppflags=yes
10282 if test $cf_fix_cppflags = yes ; then
10283 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10285 elif test "${cf_tst_cflags}" = "\"'" ; then
10286 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10291 case "$CPPFLAGS" in
10292 *$cf_add_cflags) #(vi
10295 case $cf_add_cflags in #(vi
10297 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10299 CPPFLAGS=`echo "$CPPFLAGS" | \
10300 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10301 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10305 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10310 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10315 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10317 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10319 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10320 && test -z "${cf_tst_cflags}" \
10321 && cf_fix_cppflags=no
10326 if test -n "$cf_new_cflags" ; then
10328 CFLAGS="$CFLAGS $cf_new_cflags"
10331 if test -n "$cf_new_cppflags" ; then
10333 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10336 if test -n "$cf_new_extra_cppflags" ; then
10338 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10341 LIBS="$cf_pkgconfig_libs $LIBS"
10345 echo "$as_me:10345: checking for XextCreateExtension in -lXext" >&5
10346 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
10347 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 ac_check_lib_save_LIBS=$LIBS
10351 LIBS="-lXext $LIBS"
10352 cat >conftest.$ac_ext <<_ACEOF
10353 #line 10353 "configure"
10354 #include "confdefs.h"
10356 /* Override any gcc2 internal prototype to avoid an error. */
10360 /* We use char because int might match the return type of a gcc2
10361 builtin and then its argument prototype would still apply. */
10362 char XextCreateExtension ();
10366 XextCreateExtension ();
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (eval echo "$as_me:10372: \"$ac_link\"") >&5
10373 (eval $ac_link) 2>&5
10375 echo "$as_me:10375: \$? = $ac_status" >&5
10376 (exit $ac_status); } &&
10377 { ac_try='test -s conftest$ac_exeext'
10378 { (eval echo "$as_me:10378: \"$ac_try\"") >&5
10379 (eval $ac_try) 2>&5
10381 echo "$as_me:10381: \$? = $ac_status" >&5
10382 (exit $ac_status); }; }; then
10383 ac_cv_lib_Xext_XextCreateExtension=yes
10385 echo "$as_me: failed program was:" >&5
10386 cat conftest.$ac_ext >&5
10387 ac_cv_lib_Xext_XextCreateExtension=no
10389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10390 LIBS=$ac_check_lib_save_LIBS
10392 echo "$as_me:10392: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
10393 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
10394 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
10395 LIBS="-lXext $LIBS"
10402 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
10403 test -n "$verbose" && echo " found package xt" 1>&6
10405 echo "${as_me:-configure}:10405: testing found package xt ..." 1>&5
10407 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
10408 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
10409 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
10411 echo "${as_me:-configure}:10411: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10413 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
10415 echo "${as_me:-configure}:10415: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
10420 cf_new_extra_cppflags=
10422 for cf_add_cflags in $cf_pkgconfig_incs
10424 case $cf_fix_cppflags in
10426 case $cf_add_cflags in #(vi
10427 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10428 case $cf_add_cflags in
10430 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10432 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10433 && test -z "${cf_tst_cflags}" \
10434 && cf_fix_cppflags=yes
10436 if test $cf_fix_cppflags = yes ; then
10437 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10439 elif test "${cf_tst_cflags}" = "\"'" ; then
10440 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10445 case "$CPPFLAGS" in
10446 *$cf_add_cflags) #(vi
10449 case $cf_add_cflags in #(vi
10451 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10453 CPPFLAGS=`echo "$CPPFLAGS" | \
10454 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10455 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10459 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10464 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10469 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10471 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10473 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10474 && test -z "${cf_tst_cflags}" \
10475 && cf_fix_cppflags=no
10480 if test -n "$cf_new_cflags" ; then
10482 CFLAGS="$CFLAGS $cf_new_cflags"
10485 if test -n "$cf_new_cppflags" ; then
10487 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10490 if test -n "$cf_new_extra_cppflags" ; then
10492 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10495 LIBS="$cf_pkgconfig_libs $LIBS"
10497 case "x$LIBS" in #(vi
10501 # we have an "xt" package, but it may omit Xt's dependency on X11
10502 echo "$as_me:10502: checking for usable X dependency" >&5
10503 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
10504 if test "${cf_cv_xt_x11_compat+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 cat >conftest.$ac_ext <<_ACEOF
10509 #line 10509 "configure"
10510 #include "confdefs.h"
10512 #include <X11/Xlib.h>
10518 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
10519 int rc2 = XClearWindow((Display*) 0, (Window) 0);
10520 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
10521 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (eval echo "$as_me:10528: \"$ac_link\"") >&5
10529 (eval $ac_link) 2>&5
10531 echo "$as_me:10531: \$? = $ac_status" >&5
10532 (exit $ac_status); } &&
10533 { ac_try='test -s conftest$ac_exeext'
10534 { (eval echo "$as_me:10534: \"$ac_try\"") >&5
10535 (eval $ac_try) 2>&5
10537 echo "$as_me:10537: \$? = $ac_status" >&5
10538 (exit $ac_status); }; }; then
10539 cf_cv_xt_x11_compat=yes
10541 echo "$as_me: failed program was:" >&5
10542 cat conftest.$ac_ext >&5
10543 cf_cv_xt_x11_compat=no
10545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10547 echo "$as_me:10547: result: $cf_cv_xt_x11_compat" >&5
10548 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
10549 if test "$cf_cv_xt_x11_compat" = no
10551 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
10553 echo "${as_me:-configure}:10553: testing work around broken X11 dependency ..." 1>&5
10555 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
10557 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
10558 test -n "$verbose" && echo " found package x11" 1>&6
10560 echo "${as_me:-configure}:10560: testing found package x11 ..." 1>&5
10562 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
10563 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
10564 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
10566 echo "${as_me:-configure}:10566: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10568 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
10570 echo "${as_me:-configure}:10570: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
10575 cf_new_extra_cppflags=
10577 for cf_add_cflags in $cf_pkgconfig_incs
10579 case $cf_fix_cppflags in
10581 case $cf_add_cflags in #(vi
10582 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10583 case $cf_add_cflags in
10585 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10587 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10588 && test -z "${cf_tst_cflags}" \
10589 && cf_fix_cppflags=yes
10591 if test $cf_fix_cppflags = yes ; then
10592 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10594 elif test "${cf_tst_cflags}" = "\"'" ; then
10595 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10600 case "$CPPFLAGS" in
10601 *$cf_add_cflags) #(vi
10604 case $cf_add_cflags in #(vi
10606 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10608 CPPFLAGS=`echo "$CPPFLAGS" | \
10609 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10610 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10614 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10619 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10624 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10626 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10628 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10629 && test -z "${cf_tst_cflags}" \
10630 && cf_fix_cppflags=no
10635 if test -n "$cf_new_cflags" ; then
10637 CFLAGS="$CFLAGS $cf_new_cflags"
10640 if test -n "$cf_new_cppflags" ; then
10642 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10645 if test -n "$cf_new_extra_cppflags" ; then
10647 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10650 LIBS="$cf_pkgconfig_libs $LIBS"
10654 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10656 echo "${as_me:-configure}:10656: testing ...before $LIBS ..." 1>&5
10658 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s,-lXt ,-lXt -lX11 ," -e 's/ / /g'`
10659 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10661 echo "${as_me:-configure}:10661: testing ...after $LIBS ..." 1>&5
10669 echo "$as_me:10669: checking for usable X Toolkit package" >&5
10670 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
10671 if test "${cf_cv_xt_ice_compat+set}" = set; then
10672 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 cat >conftest.$ac_ext <<_ACEOF
10676 #line 10676 "configure"
10677 #include "confdefs.h"
10679 #include <X11/Shell.h>
10684 int num = IceConnectionNumber(0)
10690 rm -f conftest.$ac_objext conftest$ac_exeext
10691 if { (eval echo "$as_me:10691: \"$ac_link\"") >&5
10692 (eval $ac_link) 2>&5
10694 echo "$as_me:10694: \$? = $ac_status" >&5
10695 (exit $ac_status); } &&
10696 { ac_try='test -s conftest$ac_exeext'
10697 { (eval echo "$as_me:10697: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10700 echo "$as_me:10700: \$? = $ac_status" >&5
10701 (exit $ac_status); }; }; then
10702 cf_cv_xt_ice_compat=yes
10704 echo "$as_me: failed program was:" >&5
10705 cat conftest.$ac_ext >&5
10706 cf_cv_xt_ice_compat=no
10708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10710 echo "$as_me:10710: result: $cf_cv_xt_ice_compat" >&5
10711 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
10713 if test "$cf_cv_xt_ice_compat" = no
10715 # workaround for broken ".pc" files used for X Toolkit.
10716 case "x$X_PRE_LIBS" in #(vi
10718 case "x$LIBS" in #(vi
10722 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
10724 echo "${as_me:-configure}:10724: testing work around broken ICE dependency ..." 1>&5
10726 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
10727 test -n "$verbose" && echo " found package ice" 1>&6
10729 echo "${as_me:-configure}:10729: testing found package ice ..." 1>&5
10731 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
10732 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
10733 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
10735 echo "${as_me:-configure}:10735: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10737 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
10739 echo "${as_me:-configure}:10739: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
10744 cf_new_extra_cppflags=
10746 for cf_add_cflags in $cf_pkgconfig_incs
10748 case $cf_fix_cppflags in
10750 case $cf_add_cflags in #(vi
10751 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10752 case $cf_add_cflags in
10754 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10756 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10757 && test -z "${cf_tst_cflags}" \
10758 && cf_fix_cppflags=yes
10760 if test $cf_fix_cppflags = yes ; then
10761 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10763 elif test "${cf_tst_cflags}" = "\"'" ; then
10764 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10769 case "$CPPFLAGS" in
10770 *$cf_add_cflags) #(vi
10773 case $cf_add_cflags in #(vi
10775 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10777 CPPFLAGS=`echo "$CPPFLAGS" | \
10778 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10779 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10783 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10788 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10793 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10795 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10797 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10798 && test -z "${cf_tst_cflags}" \
10799 && cf_fix_cppflags=no
10804 if test -n "$cf_new_cflags" ; then
10806 CFLAGS="$CFLAGS $cf_new_cflags"
10809 if test -n "$cf_new_cppflags" ; then
10811 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10814 if test -n "$cf_new_extra_cppflags" ; then
10816 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10819 LIBS="$cf_pkgconfig_libs $LIBS"
10821 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
10822 test -n "$verbose" && echo " found package sm" 1>&6
10824 echo "${as_me:-configure}:10824: testing found package sm ..." 1>&5
10826 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
10827 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
10828 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
10830 echo "${as_me:-configure}:10830: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10832 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
10834 echo "${as_me:-configure}:10834: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
10839 cf_new_extra_cppflags=
10841 for cf_add_cflags in $cf_pkgconfig_incs
10843 case $cf_fix_cppflags in
10845 case $cf_add_cflags in #(vi
10846 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10847 case $cf_add_cflags in
10849 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10851 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10852 && test -z "${cf_tst_cflags}" \
10853 && cf_fix_cppflags=yes
10855 if test $cf_fix_cppflags = yes ; then
10856 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10858 elif test "${cf_tst_cflags}" = "\"'" ; then
10859 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10864 case "$CPPFLAGS" in
10865 *$cf_add_cflags) #(vi
10868 case $cf_add_cflags in #(vi
10870 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10872 CPPFLAGS=`echo "$CPPFLAGS" | \
10873 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10874 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10878 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10883 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10888 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10890 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10892 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10893 && test -z "${cf_tst_cflags}" \
10894 && cf_fix_cppflags=no
10899 if test -n "$cf_new_cflags" ; then
10901 CFLAGS="$CFLAGS $cf_new_cflags"
10904 if test -n "$cf_new_cppflags" ; then
10906 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10909 if test -n "$cf_new_extra_cppflags" ; then
10911 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10914 LIBS="$cf_pkgconfig_libs $LIBS"
10922 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10924 echo "${as_me:-configure}:10924: testing ...before $LIBS ..." 1>&5
10926 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s,-lXt ,-lXt $X_PRE_LIBS ," -e 's/ / /g'`
10927 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10929 echo "${as_me:-configure}:10929: testing ...after $LIBS ..." 1>&5
10943 LDFLAGS="$X_LIBS $LDFLAGS"
10945 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
10947 echo "${as_me:-configure}:10947: testing checking additions to CFLAGS ..." 1>&5
10949 cf_check_cflags="$CFLAGS"
10950 cf_check_cppflags="$CPPFLAGS"
10955 cf_new_extra_cppflags=
10957 for cf_add_cflags in $X_CFLAGS
10959 case $cf_fix_cppflags in
10961 case $cf_add_cflags in #(vi
10962 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10963 case $cf_add_cflags in
10965 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10967 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10968 && test -z "${cf_tst_cflags}" \
10969 && cf_fix_cppflags=yes
10971 if test $cf_fix_cppflags = yes ; then
10972 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10974 elif test "${cf_tst_cflags}" = "\"'" ; then
10975 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10980 case "$CPPFLAGS" in
10981 *$cf_add_cflags) #(vi
10984 case $cf_add_cflags in #(vi
10986 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10988 CPPFLAGS=`echo "$CPPFLAGS" | \
10989 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10990 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10994 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10999 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11004 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11006 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11008 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11009 && test -z "${cf_tst_cflags}" \
11010 && cf_fix_cppflags=no
11015 if test -n "$cf_new_cflags" ; then
11016 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11018 echo "${as_me:-configure}:11018: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11020 CFLAGS="$CFLAGS $cf_new_cflags"
11023 if test -n "$cf_new_cppflags" ; then
11024 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11026 echo "${as_me:-configure}:11026: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11028 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11031 if test -n "$cf_new_extra_cppflags" ; then
11032 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11034 echo "${as_me:-configure}:11034: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11036 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11039 if test "$cf_check_cflags" != "$CFLAGS" ; then
11040 cat >conftest.$ac_ext <<_ACEOF
11041 #line 11041 "configure"
11042 #include "confdefs.h"
11047 printf("Hello world");
11052 rm -f conftest.$ac_objext conftest$ac_exeext
11053 if { (eval echo "$as_me:11053: \"$ac_link\"") >&5
11054 (eval $ac_link) 2>&5
11056 echo "$as_me:11056: \$? = $ac_status" >&5
11057 (exit $ac_status); } &&
11058 { ac_try='test -s conftest$ac_exeext'
11059 { (eval echo "$as_me:11059: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11062 echo "$as_me:11062: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
11066 echo "$as_me: failed program was:" >&5
11067 cat conftest.$ac_ext >&5
11068 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
11070 echo "${as_me:-configure}:11070: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
11072 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
11073 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
11075 echo "${as_me:-configure}:11075: testing but keeping change to \$CPPFLAGS ..." 1>&5
11078 CFLAGS="$cf_check_flags"
11080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11083 echo "$as_me:11083: checking for XOpenDisplay" >&5
11084 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
11085 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 cat >conftest.$ac_ext <<_ACEOF
11089 #line 11089 "configure"
11090 #include "confdefs.h"
11091 /* System header to define __stub macros and hopefully few prototypes,
11092 which can conflict with char XOpenDisplay (); below. */
11093 #include <assert.h>
11094 /* Override any gcc2 internal prototype to avoid an error. */
11098 /* We use char because int might match the return type of a gcc2
11099 builtin and then its argument prototype would still apply. */
11100 char XOpenDisplay ();
11106 /* The GNU C library defines this for functions which it implements
11107 to always fail with ENOSYS. Some functions are actually named
11108 something starting with __ and the normal name is an alias. */
11109 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
11112 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (eval echo "$as_me:11120: \"$ac_link\"") >&5
11121 (eval $ac_link) 2>&5
11123 echo "$as_me:11123: \$? = $ac_status" >&5
11124 (exit $ac_status); } &&
11125 { ac_try='test -s conftest$ac_exeext'
11126 { (eval echo "$as_me:11126: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11129 echo "$as_me:11129: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 ac_cv_func_XOpenDisplay=yes
11133 echo "$as_me: failed program was:" >&5
11134 cat conftest.$ac_ext >&5
11135 ac_cv_func_XOpenDisplay=no
11137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11139 echo "$as_me:11139: result: $ac_cv_func_XOpenDisplay" >&5
11140 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
11141 if test $ac_cv_func_XOpenDisplay = yes; then
11145 echo "$as_me:11145: checking for XOpenDisplay in -lX11" >&5
11146 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
11147 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
11148 echo $ECHO_N "(cached) $ECHO_C" >&6
11150 ac_check_lib_save_LIBS=$LIBS
11151 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
11152 cat >conftest.$ac_ext <<_ACEOF
11153 #line 11153 "configure"
11154 #include "confdefs.h"
11156 /* Override any gcc2 internal prototype to avoid an error. */
11160 /* We use char because int might match the return type of a gcc2
11161 builtin and then its argument prototype would still apply. */
11162 char XOpenDisplay ();
11171 rm -f conftest.$ac_objext conftest$ac_exeext
11172 if { (eval echo "$as_me:11172: \"$ac_link\"") >&5
11173 (eval $ac_link) 2>&5
11175 echo "$as_me:11175: \$? = $ac_status" >&5
11176 (exit $ac_status); } &&
11177 { ac_try='test -s conftest$ac_exeext'
11178 { (eval echo "$as_me:11178: \"$ac_try\"") >&5
11179 (eval $ac_try) 2>&5
11181 echo "$as_me:11181: \$? = $ac_status" >&5
11182 (exit $ac_status); }; }; then
11183 ac_cv_lib_X11_XOpenDisplay=yes
11185 echo "$as_me: failed program was:" >&5
11186 cat conftest.$ac_ext >&5
11187 ac_cv_lib_X11_XOpenDisplay=no
11189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11190 LIBS=$ac_check_lib_save_LIBS
11192 echo "$as_me:11192: result: $ac_cv_lib_X11_XOpenDisplay" >&5
11193 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
11194 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
11200 echo "$as_me:11200: checking for XtAppInitialize" >&5
11201 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
11202 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11205 cat >conftest.$ac_ext <<_ACEOF
11206 #line 11206 "configure"
11207 #include "confdefs.h"
11208 /* System header to define __stub macros and hopefully few prototypes,
11209 which can conflict with char XtAppInitialize (); below. */
11210 #include <assert.h>
11211 /* Override any gcc2 internal prototype to avoid an error. */
11215 /* We use char because int might match the return type of a gcc2
11216 builtin and then its argument prototype would still apply. */
11217 char XtAppInitialize ();
11223 /* The GNU C library defines this for functions which it implements
11224 to always fail with ENOSYS. Some functions are actually named
11225 something starting with __ and the normal name is an alias. */
11226 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
11229 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
11236 rm -f conftest.$ac_objext conftest$ac_exeext
11237 if { (eval echo "$as_me:11237: \"$ac_link\"") >&5
11238 (eval $ac_link) 2>&5
11240 echo "$as_me:11240: \$? = $ac_status" >&5
11241 (exit $ac_status); } &&
11242 { ac_try='test -s conftest$ac_exeext'
11243 { (eval echo "$as_me:11243: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11246 echo "$as_me:11246: \$? = $ac_status" >&5
11247 (exit $ac_status); }; }; then
11248 ac_cv_func_XtAppInitialize=yes
11250 echo "$as_me: failed program was:" >&5
11251 cat conftest.$ac_ext >&5
11252 ac_cv_func_XtAppInitialize=no
11254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11256 echo "$as_me:11256: result: $ac_cv_func_XtAppInitialize" >&5
11257 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
11258 if test $ac_cv_func_XtAppInitialize = yes; then
11262 echo "$as_me:11262: checking for XtAppInitialize in -lXt" >&5
11263 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
11264 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 ac_check_lib_save_LIBS=$LIBS
11268 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
11269 cat >conftest.$ac_ext <<_ACEOF
11270 #line 11270 "configure"
11271 #include "confdefs.h"
11273 /* Override any gcc2 internal prototype to avoid an error. */
11277 /* We use char because int might match the return type of a gcc2
11278 builtin and then its argument prototype would still apply. */
11279 char XtAppInitialize ();
11283 XtAppInitialize ();
11288 rm -f conftest.$ac_objext conftest$ac_exeext
11289 if { (eval echo "$as_me:11289: \"$ac_link\"") >&5
11290 (eval $ac_link) 2>&5
11292 echo "$as_me:11292: \$? = $ac_status" >&5
11293 (exit $ac_status); } &&
11294 { ac_try='test -s conftest$ac_exeext'
11295 { (eval echo "$as_me:11295: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11298 echo "$as_me:11298: \$? = $ac_status" >&5
11299 (exit $ac_status); }; }; then
11300 ac_cv_lib_Xt_XtAppInitialize=yes
11302 echo "$as_me: failed program was:" >&5
11303 cat conftest.$ac_ext >&5
11304 ac_cv_lib_Xt_XtAppInitialize=no
11306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11307 LIBS=$ac_check_lib_save_LIBS
11309 echo "$as_me:11309: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
11310 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
11311 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
11313 cat >>confdefs.h <<\EOF
11314 #define HAVE_LIBXT 1
11318 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
11325 if test $cf_have_X_LIBS = no ; then
11326 { echo "$as_me:11326: WARNING: Unable to successfully link X Toolkit library (-lXt) with
11327 test program. You will have to check and add the proper libraries by hand
11329 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
11330 test program. You will have to check and add the proper libraries by hand
11331 to makefile." >&2;}
11334 cf_x_athena_root=$cf_x_athena
11337 for cf_path in default \
11338 /usr/contrib/X11R6 \
11339 /usr/contrib/X11R5 \
11343 if test -z "$cf_x_athena_inc" ; then
11344 cf_save="$CPPFLAGS"
11345 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
11346 if test $cf_path != default ; then
11347 CPPFLAGS="$cf_save -I$cf_path/include"
11348 echo "$as_me:11348: checking for $cf_test in $cf_path" >&5
11349 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
11351 echo "$as_me:11351: checking for $cf_test" >&5
11352 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
11354 cat >conftest.$ac_ext <<_ACEOF
11355 #line 11355 "configure"
11356 #include "confdefs.h"
11358 #include <X11/Intrinsic.h>
11359 #include <$cf_test>
11368 rm -f conftest.$ac_objext
11369 if { (eval echo "$as_me:11369: \"$ac_compile\"") >&5
11370 (eval $ac_compile) 2>&5
11372 echo "$as_me:11372: \$? = $ac_status" >&5
11373 (exit $ac_status); } &&
11374 { ac_try='test -s conftest.$ac_objext'
11375 { (eval echo "$as_me:11375: \"$ac_try\"") >&5
11376 (eval $ac_try) 2>&5
11378 echo "$as_me:11378: \$? = $ac_status" >&5
11379 (exit $ac_status); }; }; then
11382 echo "$as_me: failed program was:" >&5
11383 cat conftest.$ac_ext >&5
11386 rm -f conftest.$ac_objext conftest.$ac_ext
11387 echo "$as_me:11387: result: $cf_result" >&5
11388 echo "${ECHO_T}$cf_result" >&6
11389 if test "$cf_result" = yes ; then
11390 cf_x_athena_inc=$cf_path
11393 CPPFLAGS="$cf_save"
11398 if test -z "$cf_x_athena_inc" ; then
11399 { echo "$as_me:11399: WARNING: Unable to successfully find Athena header files with test program" >&5
11400 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
11401 elif test "$cf_x_athena_inc" != default ; then
11402 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
11405 cf_x_athena_root=$cf_x_athena
11408 for cf_path in default \
11409 /usr/contrib/X11R6 \
11410 /usr/contrib/X11R5 \
11415 ${cf_x_athena_root} \
11416 ${cf_x_athena_root}7 \
11417 ${cf_x_athena_root}6
11420 "-l$cf_lib -lXmu" \
11421 "-l$cf_lib -lXpm -lXmu" \
11422 "-l${cf_lib}_s -lXmu_s"
11424 if test -z "$cf_x_athena_lib" ; then
11426 cf_test=XawSimpleMenuAddGlobalActions
11427 if test $cf_path != default ; then
11428 LIBS="-L$cf_path/lib $cf_libs $LIBS"
11429 echo "$as_me:11429: checking for $cf_libs in $cf_path" >&5
11430 echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6
11432 LIBS="$cf_libs $LIBS"
11433 echo "$as_me:11433: checking for $cf_test in $cf_libs" >&5
11434 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
11436 cat >conftest.$ac_ext <<_ACEOF
11437 #line 11437 "configure"
11438 #include "confdefs.h"
11440 #include <X11/Intrinsic.h>
11441 #include <X11/$cf_x_athena_root/SimpleMenu.h>
11447 $cf_test((XtAppContext) 0)
11452 rm -f conftest.$ac_objext conftest$ac_exeext
11453 if { (eval echo "$as_me:11453: \"$ac_link\"") >&5
11454 (eval $ac_link) 2>&5
11456 echo "$as_me:11456: \$? = $ac_status" >&5
11457 (exit $ac_status); } &&
11458 { ac_try='test -s conftest$ac_exeext'
11459 { (eval echo "$as_me:11459: \"$ac_try\"") >&5
11460 (eval $ac_try) 2>&5
11462 echo "$as_me:11462: \$? = $ac_status" >&5
11463 (exit $ac_status); }; }; then
11466 echo "$as_me: failed program was:" >&5
11467 cat conftest.$ac_ext >&5
11470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11471 echo "$as_me:11471: result: $cf_result" >&5
11472 echo "${ECHO_T}$cf_result" >&6
11473 if test "$cf_result" = yes ; then
11474 cf_x_athena_lib="$cf_libs"
11480 test -n "$cf_x_athena_lib" && break
11484 if test -z "$cf_x_athena_lib" ; then
11485 { { echo "$as_me:11485: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
11486 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
11487 { (exit 1); exit 1; }; }
11490 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11492 cat >>confdefs.h <<EOF
11493 #define $cf_x_athena_LIBS 1
11498 if test -n "$ac_tool_prefix"; then
11499 for ac_prog in xcurses-config
11501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11503 echo "$as_me:11503: checking for $ac_word" >&5
11504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11505 if test "${ac_cv_prog_XCURSES_CONFIG+set}" = set; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 if test -n "$XCURSES_CONFIG"; then
11509 ac_cv_prog_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test.
11511 ac_save_IFS=$IFS; IFS=$ac_path_separator
11513 for ac_dir in $ac_dummy; do
11515 test -z "$ac_dir" && ac_dir=.
11516 $as_executable_p "$ac_dir/$ac_word" || continue
11517 ac_cv_prog_XCURSES_CONFIG="$ac_tool_prefix$ac_prog"
11518 echo "$as_me:11518: found $ac_dir/$ac_word" >&5
11524 XCURSES_CONFIG=$ac_cv_prog_XCURSES_CONFIG
11525 if test -n "$XCURSES_CONFIG"; then
11526 echo "$as_me:11526: result: $XCURSES_CONFIG" >&5
11527 echo "${ECHO_T}$XCURSES_CONFIG" >&6
11529 echo "$as_me:11529: result: no" >&5
11530 echo "${ECHO_T}no" >&6
11533 test -n "$XCURSES_CONFIG" && break
11536 if test -z "$XCURSES_CONFIG"; then
11537 ac_ct_XCURSES_CONFIG=$XCURSES_CONFIG
11538 for ac_prog in xcurses-config
11540 # Extract the first word of "$ac_prog", so it can be a program name with args.
11541 set dummy $ac_prog; ac_word=$2
11542 echo "$as_me:11542: checking for $ac_word" >&5
11543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11544 if test "${ac_cv_prog_ac_ct_XCURSES_CONFIG+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 if test -n "$ac_ct_XCURSES_CONFIG"; then
11548 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_ct_XCURSES_CONFIG" # Let the user override the test.
11550 ac_save_IFS=$IFS; IFS=$ac_path_separator
11552 for ac_dir in $ac_dummy; do
11554 test -z "$ac_dir" && ac_dir=.
11555 $as_executable_p "$ac_dir/$ac_word" || continue
11556 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_prog"
11557 echo "$as_me:11557: found $ac_dir/$ac_word" >&5
11563 ac_ct_XCURSES_CONFIG=$ac_cv_prog_ac_ct_XCURSES_CONFIG
11564 if test -n "$ac_ct_XCURSES_CONFIG"; then
11565 echo "$as_me:11565: result: $ac_ct_XCURSES_CONFIG" >&5
11566 echo "${ECHO_T}$ac_ct_XCURSES_CONFIG" >&6
11568 echo "$as_me:11568: result: no" >&5
11569 echo "${ECHO_T}no" >&6
11572 test -n "$ac_ct_XCURSES_CONFIG" && break
11574 test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG="none"
11576 XCURSES_CONFIG=$ac_ct_XCURSES_CONFIG
11579 if test "$XCURSES_CONFIG" != none ; then
11581 CPPFLAGS="$CPPFLAGS `$XCURSES_CONFIG --cflags`"
11582 LIBS="`$XCURSES_CONFIG --libs` $LIBS"
11584 cf_cv_lib_XCurses=yes
11588 LDFLAGS="$LDFLAGS $X_LIBS"
11590 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
11592 echo "${as_me:-configure}:11592: testing checking additions to CFLAGS ..." 1>&5
11594 cf_check_cflags="$CFLAGS"
11595 cf_check_cppflags="$CPPFLAGS"
11600 cf_new_extra_cppflags=
11602 for cf_add_cflags in $X_CFLAGS
11604 case $cf_fix_cppflags in
11606 case $cf_add_cflags in #(vi
11607 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11608 case $cf_add_cflags in
11610 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11612 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11613 && test -z "${cf_tst_cflags}" \
11614 && cf_fix_cppflags=yes
11616 if test $cf_fix_cppflags = yes ; then
11617 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11619 elif test "${cf_tst_cflags}" = "\"'" ; then
11620 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11625 case "$CPPFLAGS" in
11626 *$cf_add_cflags) #(vi
11629 case $cf_add_cflags in #(vi
11631 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11633 CPPFLAGS=`echo "$CPPFLAGS" | \
11634 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11635 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11639 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11644 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11649 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11651 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11653 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11654 && test -z "${cf_tst_cflags}" \
11655 && cf_fix_cppflags=no
11660 if test -n "$cf_new_cflags" ; then
11661 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11663 echo "${as_me:-configure}:11663: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11665 CFLAGS="$CFLAGS $cf_new_cflags"
11668 if test -n "$cf_new_cppflags" ; then
11669 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11671 echo "${as_me:-configure}:11671: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11673 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11676 if test -n "$cf_new_extra_cppflags" ; then
11677 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11679 echo "${as_me:-configure}:11679: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11681 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11684 if test "$cf_check_cflags" != "$CFLAGS" ; then
11685 cat >conftest.$ac_ext <<_ACEOF
11686 #line 11686 "configure"
11687 #include "confdefs.h"
11692 printf("Hello world");
11697 rm -f conftest.$ac_objext conftest$ac_exeext
11698 if { (eval echo "$as_me:11698: \"$ac_link\"") >&5
11699 (eval $ac_link) 2>&5
11701 echo "$as_me:11701: \$? = $ac_status" >&5
11702 (exit $ac_status); } &&
11703 { ac_try='test -s conftest$ac_exeext'
11704 { (eval echo "$as_me:11704: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11707 echo "$as_me:11707: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11711 echo "$as_me: failed program was:" >&5
11712 cat conftest.$ac_ext >&5
11713 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
11715 echo "${as_me:-configure}:11715: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
11717 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
11718 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
11720 echo "${as_me:-configure}:11720: testing but keeping change to \$CPPFLAGS ..." 1>&5
11723 CFLAGS="$cf_check_flags"
11725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11728 echo "$as_me:11728: checking for XOpenDisplay in -lX11" >&5
11729 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
11730 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 ac_check_lib_save_LIBS=$LIBS
11734 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
11735 cat >conftest.$ac_ext <<_ACEOF
11736 #line 11736 "configure"
11737 #include "confdefs.h"
11739 /* Override any gcc2 internal prototype to avoid an error. */
11743 /* We use char because int might match the return type of a gcc2
11744 builtin and then its argument prototype would still apply. */
11745 char XOpenDisplay ();
11754 rm -f conftest.$ac_objext conftest$ac_exeext
11755 if { (eval echo "$as_me:11755: \"$ac_link\"") >&5
11756 (eval $ac_link) 2>&5
11758 echo "$as_me:11758: \$? = $ac_status" >&5
11759 (exit $ac_status); } &&
11760 { ac_try='test -s conftest$ac_exeext'
11761 { (eval echo "$as_me:11761: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11764 echo "$as_me:11764: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 ac_cv_lib_X11_XOpenDisplay=yes
11768 echo "$as_me: failed program was:" >&5
11769 cat conftest.$ac_ext >&5
11770 ac_cv_lib_X11_XOpenDisplay=no
11772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11773 LIBS=$ac_check_lib_save_LIBS
11775 echo "$as_me:11775: result: $ac_cv_lib_X11_XOpenDisplay" >&5
11776 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
11777 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
11781 echo "$as_me:11781: checking for XCurses library" >&5
11782 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
11783 if test "${cf_cv_lib_XCurses+set}" = set; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11787 LIBS="-lXCurses $LIBS"
11788 cat >conftest.$ac_ext <<_ACEOF
11789 #line 11789 "configure"
11790 #include "confdefs.h"
11792 #include <xcurses.h>
11793 char *XCursesProgramName = "test";
11803 rm -f conftest.$ac_objext conftest$ac_exeext
11804 if { (eval echo "$as_me:11804: \"$ac_link\"") >&5
11805 (eval $ac_link) 2>&5
11807 echo "$as_me:11807: \$? = $ac_status" >&5
11808 (exit $ac_status); } &&
11809 { ac_try='test -s conftest$ac_exeext'
11810 { (eval echo "$as_me:11810: \"$ac_try\"") >&5
11811 (eval $ac_try) 2>&5
11813 echo "$as_me:11813: \$? = $ac_status" >&5
11814 (exit $ac_status); }; }; then
11815 cf_cv_lib_XCurses=yes
11817 echo "$as_me: failed program was:" >&5
11818 cat conftest.$ac_ext >&5
11819 cf_cv_lib_XCurses=no
11821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11824 echo "$as_me:11824: result: $cf_cv_lib_XCurses" >&5
11825 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
11829 if test $cf_cv_lib_XCurses = yes ; then
11831 cat >>confdefs.h <<\EOF
11835 cat >>confdefs.h <<\EOF
11839 echo "$as_me:11839: checking for xcurses.h" >&5
11840 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
11841 if test "${ac_cv_header_xcurses_h+set}" = set; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11844 cat >conftest.$ac_ext <<_ACEOF
11845 #line 11845 "configure"
11846 #include "confdefs.h"
11847 #include <xcurses.h>
11849 if { (eval echo "$as_me:11849: \"$ac_cpp conftest.$ac_ext\"") >&5
11850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11852 egrep -v '^ *\+' conftest.er1 >conftest.err
11854 cat conftest.err >&5
11855 echo "$as_me:11855: \$? = $ac_status" >&5
11856 (exit $ac_status); } >/dev/null; then
11857 if test -s conftest.err; then
11858 ac_cpp_err=$ac_c_preproc_warn_flag
11865 if test -z "$ac_cpp_err"; then
11866 ac_cv_header_xcurses_h=yes
11868 echo "$as_me: failed program was:" >&5
11869 cat conftest.$ac_ext >&5
11870 ac_cv_header_xcurses_h=no
11872 rm -f conftest.err conftest.$ac_ext
11874 echo "$as_me:11874: result: $ac_cv_header_xcurses_h" >&5
11875 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
11876 if test $ac_cv_header_xcurses_h = yes; then
11878 cat >>confdefs.h <<\EOF
11879 #define HAVE_XCURSES 1
11885 { { echo "$as_me:11885: error: Cannot link with XCurses" >&5
11886 echo "$as_me: error: Cannot link with XCurses" >&2;}
11887 { (exit 1); exit 1; }; }
11893 case $cf_cv_screen in
11896 echo "$as_me:11896: checking for NetBSD form.h" >&5
11897 echo $ECHO_N "checking for NetBSD form.h... $ECHO_C" >&6
11898 if test "${cf_cv_netbsd_form_h+set}" = set; then
11899 echo $ECHO_N "(cached) $ECHO_C" >&6
11902 cat >conftest.$ac_ext <<_ACEOF
11903 #line 11903 "configure"
11904 #include "confdefs.h"
11906 #include <${cf_cv_ncurses_header:-curses.h}>
11914 int y = current_field(form)->cursor_ypos;
11915 int x = current_field(form)->cursor_xpos;
11921 rm -f conftest.$ac_objext
11922 if { (eval echo "$as_me:11922: \"$ac_compile\"") >&5
11923 (eval $ac_compile) 2>&5
11925 echo "$as_me:11925: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -s conftest.$ac_objext'
11928 { (eval echo "$as_me:11928: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11931 echo "$as_me:11931: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 cf_cv_netbsd_form_h=yes
11936 echo "$as_me: failed program was:" >&5
11937 cat conftest.$ac_ext >&5
11938 cf_cv_netbsd_form_h=no
11940 rm -f conftest.$ac_objext conftest.$ac_ext
11943 echo "$as_me:11943: result: $cf_cv_netbsd_form_h" >&5
11944 echo "${ECHO_T}$cf_cv_netbsd_form_h" >&6
11946 test "$cf_cv_netbsd_form_h" = yes &&
11947 cat >>confdefs.h <<\EOF
11948 #define HAVE_NETBSD_FORM_H 1
11951 echo "$as_me:11951: checking for NetBSD menu.h" >&5
11952 echo $ECHO_N "checking for NetBSD menu.h... $ECHO_C" >&6
11953 if test "${cf_cv_netbsd_menu_h+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 cat >conftest.$ac_ext <<_ACEOF
11958 #line 11958 "configure"
11959 #include "confdefs.h"
11961 #include <${cf_cv_ncurses_header:-curses.h}>
11969 int y = menu->max_item_width;
11975 rm -f conftest.$ac_objext
11976 if { (eval echo "$as_me:11976: \"$ac_compile\"") >&5
11977 (eval $ac_compile) 2>&5
11979 echo "$as_me:11979: \$? = $ac_status" >&5
11980 (exit $ac_status); } &&
11981 { ac_try='test -s conftest.$ac_objext'
11982 { (eval echo "$as_me:11982: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11985 echo "$as_me:11985: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 cf_cv_netbsd_menu_h=yes
11990 echo "$as_me: failed program was:" >&5
11991 cat conftest.$ac_ext >&5
11992 cf_cv_netbsd_menu_h=no
11994 rm -f conftest.$ac_objext conftest.$ac_ext
11997 echo "$as_me:11997: result: $cf_cv_netbsd_menu_h" >&5
11998 echo "${ECHO_T}$cf_cv_netbsd_menu_h" >&6
12000 test "$cf_cv_netbsd_menu_h" = yes &&
12001 cat >>confdefs.h <<\EOF
12002 #define HAVE_NETBSD_MENU_H 1
12011 case $cf_cv_screen in #(vi
12015 # look for curses-related libraries
12017 as_ac_Lib=`echo "ac_cv_lib_panel$cf_cv_libtype''_new_panel" | $as_tr_sh`
12018 echo "$as_me:12018: checking for new_panel in -lpanel$cf_cv_libtype" >&5
12019 echo $ECHO_N "checking for new_panel in -lpanel$cf_cv_libtype... $ECHO_C" >&6
12020 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 ac_check_lib_save_LIBS=$LIBS
12024 LIBS="-lpanel$cf_cv_libtype $LIBS"
12025 cat >conftest.$ac_ext <<_ACEOF
12026 #line 12026 "configure"
12027 #include "confdefs.h"
12029 /* Override any gcc2 internal prototype to avoid an error. */
12033 /* We use char because int might match the return type of a gcc2
12034 builtin and then its argument prototype would still apply. */
12044 rm -f conftest.$ac_objext conftest$ac_exeext
12045 if { (eval echo "$as_me:12045: \"$ac_link\"") >&5
12046 (eval $ac_link) 2>&5
12048 echo "$as_me:12048: \$? = $ac_status" >&5
12049 (exit $ac_status); } &&
12050 { ac_try='test -s conftest$ac_exeext'
12051 { (eval echo "$as_me:12051: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12054 echo "$as_me:12054: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 eval "$as_ac_Lib=yes"
12058 echo "$as_me: failed program was:" >&5
12059 cat conftest.$ac_ext >&5
12060 eval "$as_ac_Lib=no"
12062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12063 LIBS=$ac_check_lib_save_LIBS
12065 echo "$as_me:12065: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12066 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12067 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12068 cat >>confdefs.h <<EOF
12069 #define `echo "HAVE_LIBpanel$cf_cv_libtype" | $as_tr_cpp` 1
12072 LIBS="-lpanel$cf_cv_libtype $LIBS"
12076 as_ac_Lib=`echo "ac_cv_lib_menu$cf_cv_libtype''_menu_driver" | $as_tr_sh`
12077 echo "$as_me:12077: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
12078 echo $ECHO_N "checking for menu_driver in -lmenu$cf_cv_libtype... $ECHO_C" >&6
12079 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 ac_check_lib_save_LIBS=$LIBS
12083 LIBS="-lmenu$cf_cv_libtype $LIBS"
12084 cat >conftest.$ac_ext <<_ACEOF
12085 #line 12085 "configure"
12086 #include "confdefs.h"
12088 /* Override any gcc2 internal prototype to avoid an error. */
12092 /* We use char because int might match the return type of a gcc2
12093 builtin and then its argument prototype would still apply. */
12094 char menu_driver ();
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (eval echo "$as_me:12104: \"$ac_link\"") >&5
12105 (eval $ac_link) 2>&5
12107 echo "$as_me:12107: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -s conftest$ac_exeext'
12110 { (eval echo "$as_me:12110: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12113 echo "$as_me:12113: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12115 eval "$as_ac_Lib=yes"
12117 echo "$as_me: failed program was:" >&5
12118 cat conftest.$ac_ext >&5
12119 eval "$as_ac_Lib=no"
12121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12122 LIBS=$ac_check_lib_save_LIBS
12124 echo "$as_me:12124: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12125 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12126 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12127 cat >>confdefs.h <<EOF
12128 #define `echo "HAVE_LIBmenu$cf_cv_libtype" | $as_tr_cpp` 1
12131 LIBS="-lmenu$cf_cv_libtype $LIBS"
12135 as_ac_Lib=`echo "ac_cv_lib_form$cf_cv_libtype''_form_driver" | $as_tr_sh`
12136 echo "$as_me:12136: checking for form_driver in -lform$cf_cv_libtype" >&5
12137 echo $ECHO_N "checking for form_driver in -lform$cf_cv_libtype... $ECHO_C" >&6
12138 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12141 ac_check_lib_save_LIBS=$LIBS
12142 LIBS="-lform$cf_cv_libtype $LIBS"
12143 cat >conftest.$ac_ext <<_ACEOF
12144 #line 12144 "configure"
12145 #include "confdefs.h"
12147 /* Override any gcc2 internal prototype to avoid an error. */
12151 /* We use char because int might match the return type of a gcc2
12152 builtin and then its argument prototype would still apply. */
12153 char form_driver ();
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (eval echo "$as_me:12163: \"$ac_link\"") >&5
12164 (eval $ac_link) 2>&5
12166 echo "$as_me:12166: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -s conftest$ac_exeext'
12169 { (eval echo "$as_me:12169: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12172 echo "$as_me:12172: \$? = $ac_status" >&5
12173 (exit $ac_status); }; }; then
12174 eval "$as_ac_Lib=yes"
12176 echo "$as_me: failed program was:" >&5
12177 cat conftest.$ac_ext >&5
12178 eval "$as_ac_Lib=no"
12180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12181 LIBS=$ac_check_lib_save_LIBS
12183 echo "$as_me:12183: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12184 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12185 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12186 cat >>confdefs.h <<EOF
12187 #define `echo "HAVE_LIBform$cf_cv_libtype" | $as_tr_cpp` 1
12190 LIBS="-lform$cf_cv_libtype $LIBS"
12194 # look for curses-related headers
12205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12206 echo "$as_me:12206: checking for $ac_header" >&5
12207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 cat >conftest.$ac_ext <<_ACEOF
12212 #line 12212 "configure"
12213 #include "confdefs.h"
12214 #include <$ac_header>
12216 if { (eval echo "$as_me:12216: \"$ac_cpp conftest.$ac_ext\"") >&5
12217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12219 egrep -v '^ *\+' conftest.er1 >conftest.err
12221 cat conftest.err >&5
12222 echo "$as_me:12222: \$? = $ac_status" >&5
12223 (exit $ac_status); } >/dev/null; then
12224 if test -s conftest.err; then
12225 ac_cpp_err=$ac_c_preproc_warn_flag
12232 if test -z "$ac_cpp_err"; then
12233 eval "$as_ac_Header=yes"
12235 echo "$as_me: failed program was:" >&5
12236 cat conftest.$ac_ext >&5
12237 eval "$as_ac_Header=no"
12239 rm -f conftest.err conftest.$ac_ext
12241 echo "$as_me:12241: result: `eval echo '${'$as_ac_Header'}'`" >&5
12242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12244 cat >>confdefs.h <<EOF
12245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12254 echo "$as_me:12254: checking return type of signal handlers" >&5
12255 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12256 if test "${ac_cv_type_signal+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 cat >conftest.$ac_ext <<_ACEOF
12260 #line 12260 "configure"
12261 #include "confdefs.h"
12262 #include <sys/types.h>
12263 #include <signal.h>
12268 extern "C" void (*signal (int, void (*)(int)))(int);
12270 void (*signal ()) ();
12281 rm -f conftest.$ac_objext
12282 if { (eval echo "$as_me:12282: \"$ac_compile\"") >&5
12283 (eval $ac_compile) 2>&5
12285 echo "$as_me:12285: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
12287 { ac_try='test -s conftest.$ac_objext'
12288 { (eval echo "$as_me:12288: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12291 echo "$as_me:12291: \$? = $ac_status" >&5
12292 (exit $ac_status); }; }; then
12293 ac_cv_type_signal=void
12295 echo "$as_me: failed program was:" >&5
12296 cat conftest.$ac_ext >&5
12297 ac_cv_type_signal=int
12299 rm -f conftest.$ac_objext conftest.$ac_ext
12301 echo "$as_me:12301: result: $ac_cv_type_signal" >&5
12302 echo "${ECHO_T}$ac_cv_type_signal" >&6
12304 cat >>confdefs.h <<EOF
12305 #define RETSIGTYPE $ac_cv_type_signal
12308 echo "$as_me:12308: checking for ANSI C header files" >&5
12309 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12310 if test "${ac_cv_header_stdc+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 cat >conftest.$ac_ext <<_ACEOF
12314 #line 12314 "configure"
12315 #include "confdefs.h"
12316 #include <stdlib.h>
12317 #include <stdarg.h>
12318 #include <string.h>
12322 if { (eval echo "$as_me:12322: \"$ac_cpp conftest.$ac_ext\"") >&5
12323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12325 egrep -v '^ *\+' conftest.er1 >conftest.err
12327 cat conftest.err >&5
12328 echo "$as_me:12328: \$? = $ac_status" >&5
12329 (exit $ac_status); } >/dev/null; then
12330 if test -s conftest.err; then
12331 ac_cpp_err=$ac_c_preproc_warn_flag
12338 if test -z "$ac_cpp_err"; then
12339 ac_cv_header_stdc=yes
12341 echo "$as_me: failed program was:" >&5
12342 cat conftest.$ac_ext >&5
12343 ac_cv_header_stdc=no
12345 rm -f conftest.err conftest.$ac_ext
12347 if test $ac_cv_header_stdc = yes; then
12348 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12349 cat >conftest.$ac_ext <<_ACEOF
12350 #line 12350 "configure"
12351 #include "confdefs.h"
12352 #include <string.h>
12355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12356 egrep "memchr" >/dev/null 2>&1; then
12359 ac_cv_header_stdc=no
12365 if test $ac_cv_header_stdc = yes; then
12366 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12367 cat >conftest.$ac_ext <<_ACEOF
12368 #line 12368 "configure"
12369 #include "confdefs.h"
12370 #include <stdlib.h>
12373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12374 egrep "free" >/dev/null 2>&1; then
12377 ac_cv_header_stdc=no
12383 if test $ac_cv_header_stdc = yes; then
12384 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12385 if test "$cross_compiling" = yes; then
12388 cat >conftest.$ac_ext <<_ACEOF
12389 #line 12389 "configure"
12390 #include "confdefs.h"
12392 #if ((' ' & 0x0FF) == 0x020)
12393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12396 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12397 || ('j' <= (c) && (c) <= 'r') \
12398 || ('s' <= (c) && (c) <= 'z'))
12399 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12402 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12407 for (i = 0; i < 256; i++)
12408 if (XOR (islower (i), ISLOWER (i))
12409 || toupper (i) != TOUPPER (i))
12410 $ac_main_return(2);
12411 $ac_main_return (0);
12414 rm -f conftest$ac_exeext
12415 if { (eval echo "$as_me:12415: \"$ac_link\"") >&5
12416 (eval $ac_link) 2>&5
12418 echo "$as_me:12418: \$? = $ac_status" >&5
12419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12420 { (eval echo "$as_me:12420: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12423 echo "$as_me:12423: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12427 echo "$as_me: program exited with status $ac_status" >&5
12428 echo "$as_me: failed program was:" >&5
12429 cat conftest.$ac_ext >&5
12430 ac_cv_header_stdc=no
12432 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12436 echo "$as_me:12436: result: $ac_cv_header_stdc" >&5
12437 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12438 if test $ac_cv_header_stdc = yes; then
12440 cat >>confdefs.h <<\EOF
12441 #define STDC_HEADERS 1
12446 echo "$as_me:12446: checking whether time.h and sys/time.h may both be included" >&5
12447 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12448 if test "${ac_cv_header_time+set}" = set; then
12449 echo $ECHO_N "(cached) $ECHO_C" >&6
12451 cat >conftest.$ac_ext <<_ACEOF
12452 #line 12452 "configure"
12453 #include "confdefs.h"
12454 #include <sys/types.h>
12455 #include <sys/time.h>
12461 if ((struct tm *) 0)
12467 rm -f conftest.$ac_objext
12468 if { (eval echo "$as_me:12468: \"$ac_compile\"") >&5
12469 (eval $ac_compile) 2>&5
12471 echo "$as_me:12471: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
12473 { ac_try='test -s conftest.$ac_objext'
12474 { (eval echo "$as_me:12474: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12477 echo "$as_me:12477: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479 ac_cv_header_time=yes
12481 echo "$as_me: failed program was:" >&5
12482 cat conftest.$ac_ext >&5
12483 ac_cv_header_time=no
12485 rm -f conftest.$ac_objext conftest.$ac_ext
12487 echo "$as_me:12487: result: $ac_cv_header_time" >&5
12488 echo "${ECHO_T}$ac_cv_header_time" >&6
12489 if test $ac_cv_header_time = yes; then
12491 cat >>confdefs.h <<\EOF
12492 #define TIME_WITH_SYS_TIME 1
12509 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12510 echo "$as_me:12510: checking for $ac_header" >&5
12511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12515 cat >conftest.$ac_ext <<_ACEOF
12516 #line 12516 "configure"
12517 #include "confdefs.h"
12518 #include <$ac_header>
12520 if { (eval echo "$as_me:12520: \"$ac_cpp conftest.$ac_ext\"") >&5
12521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12523 egrep -v '^ *\+' conftest.er1 >conftest.err
12525 cat conftest.err >&5
12526 echo "$as_me:12526: \$? = $ac_status" >&5
12527 (exit $ac_status); } >/dev/null; then
12528 if test -s conftest.err; then
12529 ac_cpp_err=$ac_c_preproc_warn_flag
12536 if test -z "$ac_cpp_err"; then
12537 eval "$as_ac_Header=yes"
12539 echo "$as_me: failed program was:" >&5
12540 cat conftest.$ac_ext >&5
12541 eval "$as_ac_Header=no"
12543 rm -f conftest.err conftest.$ac_ext
12545 echo "$as_me:12545: result: `eval echo '${'$as_ac_Header'}'`" >&5
12546 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12548 cat >>confdefs.h <<EOF
12549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12555 for ac_header in unistd.h getopt.h
12557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12558 echo "$as_me:12558: checking for $ac_header" >&5
12559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12560 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12563 cat >conftest.$ac_ext <<_ACEOF
12564 #line 12564 "configure"
12565 #include "confdefs.h"
12566 #include <$ac_header>
12568 if { (eval echo "$as_me:12568: \"$ac_cpp conftest.$ac_ext\"") >&5
12569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12571 egrep -v '^ *\+' conftest.er1 >conftest.err
12573 cat conftest.err >&5
12574 echo "$as_me:12574: \$? = $ac_status" >&5
12575 (exit $ac_status); } >/dev/null; then
12576 if test -s conftest.err; then
12577 ac_cpp_err=$ac_c_preproc_warn_flag
12584 if test -z "$ac_cpp_err"; then
12585 eval "$as_ac_Header=yes"
12587 echo "$as_me: failed program was:" >&5
12588 cat conftest.$ac_ext >&5
12589 eval "$as_ac_Header=no"
12591 rm -f conftest.err conftest.$ac_ext
12593 echo "$as_me:12593: result: `eval echo '${'$as_ac_Header'}'`" >&5
12594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12596 cat >>confdefs.h <<EOF
12597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12603 echo "$as_me:12603: checking for header declaring getopt variables" >&5
12604 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
12605 if test "${cf_cv_getopt_header+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 cf_cv_getopt_header=none
12610 for cf_header in stdio.h stdlib.h unistd.h getopt.h
12612 cat >conftest.$ac_ext <<_ACEOF
12613 #line 12613 "configure"
12614 #include "confdefs.h"
12616 #include <$cf_header>
12620 int x = optind; char *y = optarg
12625 rm -f conftest.$ac_objext
12626 if { (eval echo "$as_me:12626: \"$ac_compile\"") >&5
12627 (eval $ac_compile) 2>&5
12629 echo "$as_me:12629: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
12631 { ac_try='test -s conftest.$ac_objext'
12632 { (eval echo "$as_me:12632: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12635 echo "$as_me:12635: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 cf_cv_getopt_header=$cf_header
12640 echo "$as_me: failed program was:" >&5
12641 cat conftest.$ac_ext >&5
12643 rm -f conftest.$ac_objext conftest.$ac_ext
12647 echo "$as_me:12647: result: $cf_cv_getopt_header" >&5
12648 echo "${ECHO_T}$cf_cv_getopt_header" >&6
12649 if test $cf_cv_getopt_header != none ; then
12651 cat >>confdefs.h <<\EOF
12652 #define HAVE_GETOPT_HEADER 1
12662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12663 echo "$as_me:12663: checking for $ac_func" >&5
12664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12665 if eval "test \"\${$as_ac_var+set}\" = set"; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 cat >conftest.$ac_ext <<_ACEOF
12669 #line 12669 "configure"
12670 #include "confdefs.h"
12671 /* System header to define __stub macros and hopefully few prototypes,
12672 which can conflict with char $ac_func (); below. */
12673 #include <assert.h>
12674 /* Override any gcc2 internal prototype to avoid an error. */
12678 /* We use char because int might match the return type of a gcc2
12679 builtin and then its argument prototype would still apply. */
12686 /* The GNU C library defines this for functions which it implements
12687 to always fail with ENOSYS. Some functions are actually named
12688 something starting with __ and the normal name is an alias. */
12689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12692 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12699 rm -f conftest.$ac_objext conftest$ac_exeext
12700 if { (eval echo "$as_me:12700: \"$ac_link\"") >&5
12701 (eval $ac_link) 2>&5
12703 echo "$as_me:12703: \$? = $ac_status" >&5
12704 (exit $ac_status); } &&
12705 { ac_try='test -s conftest$ac_exeext'
12706 { (eval echo "$as_me:12706: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12709 echo "$as_me:12709: \$? = $ac_status" >&5
12710 (exit $ac_status); }; }; then
12711 eval "$as_ac_var=yes"
12713 echo "$as_me: failed program was:" >&5
12714 cat conftest.$ac_ext >&5
12715 eval "$as_ac_var=no"
12717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12719 echo "$as_me:12719: result: `eval echo '${'$as_ac_var'}'`" >&5
12720 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12721 if test `eval echo '${'$as_ac_var'}'` = yes; then
12722 cat >>confdefs.h <<EOF
12723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12729 if test "$cf_enable_widec" = yes; then
12742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12743 echo "$as_me:12743: checking for $ac_func" >&5
12744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12745 if eval "test \"\${$as_ac_var+set}\" = set"; then
12746 echo $ECHO_N "(cached) $ECHO_C" >&6
12748 cat >conftest.$ac_ext <<_ACEOF
12749 #line 12749 "configure"
12750 #include "confdefs.h"
12751 /* System header to define __stub macros and hopefully few prototypes,
12752 which can conflict with char $ac_func (); below. */
12753 #include <assert.h>
12754 /* Override any gcc2 internal prototype to avoid an error. */
12758 /* We use char because int might match the return type of a gcc2
12759 builtin and then its argument prototype would still apply. */
12766 /* The GNU C library defines this for functions which it implements
12767 to always fail with ENOSYS. Some functions are actually named
12768 something starting with __ and the normal name is an alias. */
12769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12772 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12779 rm -f conftest.$ac_objext conftest$ac_exeext
12780 if { (eval echo "$as_me:12780: \"$ac_link\"") >&5
12781 (eval $ac_link) 2>&5
12783 echo "$as_me:12783: \$? = $ac_status" >&5
12784 (exit $ac_status); } &&
12785 { ac_try='test -s conftest$ac_exeext'
12786 { (eval echo "$as_me:12786: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12789 echo "$as_me:12789: \$? = $ac_status" >&5
12790 (exit $ac_status); }; }; then
12791 eval "$as_ac_var=yes"
12793 echo "$as_me: failed program was:" >&5
12794 cat conftest.$ac_ext >&5
12795 eval "$as_ac_var=no"
12797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12799 echo "$as_me:12799: result: `eval echo '${'$as_ac_var'}'`" >&5
12800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12801 if test `eval echo '${'$as_ac_var'}'` = yes; then
12802 cat >>confdefs.h <<EOF
12803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12811 echo "$as_me:12811: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
12812 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
12813 if test "${cf_cv_need_xopen_extension+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12817 cat >conftest.$ac_ext <<_ACEOF
12818 #line 12818 "configure"
12819 #include "confdefs.h"
12821 #include <stdlib.h>
12822 #include <${cf_cv_ncurses_header:-curses.h}>
12827 #if defined(NCURSES_VERSION_PATCH)
12828 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
12832 long x = winnstr(stdscr, "", 0);
12834 getbegyx(stdscr, y1, x1)
12839 rm -f conftest.$ac_objext conftest$ac_exeext
12840 if { (eval echo "$as_me:12840: \"$ac_link\"") >&5
12841 (eval $ac_link) 2>&5
12843 echo "$as_me:12843: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -s conftest$ac_exeext'
12846 { (eval echo "$as_me:12846: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12849 echo "$as_me:12849: \$? = $ac_status" >&5
12850 (exit $ac_status); }; }; then
12851 cf_cv_need_xopen_extension=no
12853 echo "$as_me: failed program was:" >&5
12854 cat conftest.$ac_ext >&5
12855 cat >conftest.$ac_ext <<_ACEOF
12856 #line 12856 "configure"
12857 #include "confdefs.h"
12859 #define _XOPEN_SOURCE_EXTENDED
12860 #include <stdlib.h>
12861 #include <${cf_cv_ncurses_header:-curses.h}>
12866 #ifdef NCURSES_VERSION
12868 int check2 = curs_set((int)sizeof(check));
12870 long x = winnstr(stdscr, "", 0);
12872 getbegyx(stdscr, y1, x1)
12877 rm -f conftest.$ac_objext conftest$ac_exeext
12878 if { (eval echo "$as_me:12878: \"$ac_link\"") >&5
12879 (eval $ac_link) 2>&5
12881 echo "$as_me:12881: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -s conftest$ac_exeext'
12884 { (eval echo "$as_me:12884: \"$ac_try\"") >&5
12885 (eval $ac_try) 2>&5
12887 echo "$as_me:12887: \$? = $ac_status" >&5
12888 (exit $ac_status); }; }; then
12889 cf_cv_need_xopen_extension=yes
12891 echo "$as_me: failed program was:" >&5
12892 cat conftest.$ac_ext >&5
12893 cf_cv_need_xopen_extension=unknown
12895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12899 echo "$as_me:12899: result: $cf_cv_need_xopen_extension" >&5
12900 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
12901 test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12903 echo "$as_me:12903: checking for term.h" >&5
12904 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
12905 if test "${cf_cv_term_header+set}" = set; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12909 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
12910 # for <term.h> if we do not find the variant.
12912 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
12914 case ${cf_cv_ncurses_header:-curses.h} in #(vi
12916 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
12917 cf_header_list="$cf_header_item $cf_header_list"
12921 for cf_header in $cf_header_list
12923 cat >conftest.$ac_ext <<_ACEOF
12924 #line 12924 "configure"
12925 #include "confdefs.h"
12927 #include <${cf_cv_ncurses_header:-curses.h}>
12928 #include <${cf_header}>
12937 rm -f conftest.$ac_objext
12938 if { (eval echo "$as_me:12938: \"$ac_compile\"") >&5
12939 (eval $ac_compile) 2>&5
12941 echo "$as_me:12941: \$? = $ac_status" >&5
12942 (exit $ac_status); } &&
12943 { ac_try='test -s conftest.$ac_objext'
12944 { (eval echo "$as_me:12944: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12947 echo "$as_me:12947: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12949 cf_cv_term_header=$cf_header
12952 echo "$as_me: failed program was:" >&5
12953 cat conftest.$ac_ext >&5
12954 cf_cv_term_header=no
12956 rm -f conftest.$ac_objext conftest.$ac_ext
12959 case $cf_cv_term_header in #(vi
12961 # If curses is ncurses, some packagers still mess it up by trying to make
12962 # us use GNU termcap. This handles the most common case.
12963 for cf_header in ncurses/term.h ncursesw/term.h
12965 cat >conftest.$ac_ext <<_ACEOF
12966 #line 12966 "configure"
12967 #include "confdefs.h"
12969 #include <${cf_cv_ncurses_header:-curses.h}>
12970 #ifdef NCURSES_VERSION
12971 #include <${cf_header}>
12983 rm -f conftest.$ac_objext
12984 if { (eval echo "$as_me:12984: \"$ac_compile\"") >&5
12985 (eval $ac_compile) 2>&5
12987 echo "$as_me:12987: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
12989 { ac_try='test -s conftest.$ac_objext'
12990 { (eval echo "$as_me:12990: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12993 echo "$as_me:12993: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
12995 cf_cv_term_header=$cf_header
12998 echo "$as_me: failed program was:" >&5
12999 cat conftest.$ac_ext >&5
13000 cf_cv_term_header=no
13002 rm -f conftest.$ac_objext conftest.$ac_ext
13008 echo "$as_me:13008: result: $cf_cv_term_header" >&5
13009 echo "${ECHO_T}$cf_cv_term_header" >&6
13011 case $cf_cv_term_header in #(vi
13014 cat >>confdefs.h <<\EOF
13015 #define HAVE_TERM_H 1
13019 ncurses/term.h) #(vi
13021 cat >>confdefs.h <<\EOF
13022 #define HAVE_NCURSES_TERM_H 1
13028 cat >>confdefs.h <<\EOF
13029 #define HAVE_NCURSESW_TERM_H 1
13035 echo "$as_me:13035: checking for unctrl.h" >&5
13036 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
13037 if test "${cf_cv_unctrl_header+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13041 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
13042 # for <unctrl.h> if we do not find the variant.
13044 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
13046 case ${cf_cv_ncurses_header:-curses.h} in #(vi
13048 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
13049 cf_header_list="$cf_header_item $cf_header_list"
13053 for cf_header in $cf_header_list
13055 cat >conftest.$ac_ext <<_ACEOF
13056 #line 13056 "configure"
13057 #include "confdefs.h"
13059 #include <${cf_cv_ncurses_header:-curses.h}>
13060 #include <${cf_header}>
13069 rm -f conftest.$ac_objext
13070 if { (eval echo "$as_me:13070: \"$ac_compile\"") >&5
13071 (eval $ac_compile) 2>&5
13073 echo "$as_me:13073: \$? = $ac_status" >&5
13074 (exit $ac_status); } &&
13075 { ac_try='test -s conftest.$ac_objext'
13076 { (eval echo "$as_me:13076: \"$ac_try\"") >&5
13077 (eval $ac_try) 2>&5
13079 echo "$as_me:13079: \$? = $ac_status" >&5
13080 (exit $ac_status); }; }; then
13081 cf_cv_unctrl_header=$cf_header
13084 echo "$as_me: failed program was:" >&5
13085 cat conftest.$ac_ext >&5
13086 cf_cv_unctrl_header=no
13088 rm -f conftest.$ac_objext conftest.$ac_ext
13091 case $cf_cv_unctrl_header in #(vi
13093 { echo "$as_me:13093: WARNING: unctrl.h header not found" >&5
13094 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
13099 echo "$as_me:13099: result: $cf_cv_unctrl_header" >&5
13100 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
13102 case $cf_cv_unctrl_header in #(vi
13105 cat >>confdefs.h <<\EOF
13106 #define HAVE_UNCTRL_H 1
13110 ncurses/unctrl.h) #(vi
13112 cat >>confdefs.h <<\EOF
13113 #define HAVE_NCURSES_UNCTRL_H 1
13119 cat >>confdefs.h <<\EOF
13120 #define HAVE_NCURSESW_UNCTRL_H 1
13127 assume_default_colors \
13153 use_default_colors \
13165 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13167 echo "$as_me:13167: checking for ${cf_func}" >&5
13168 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
13170 echo "${as_me:-configure}:13170: testing ${cf_func} ..." 1>&5
13172 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13176 eval cf_result='$ac_cv_func_'$cf_func
13177 if test ".$cf_result" != ".no"; then
13178 cat >conftest.$ac_ext <<_ACEOF
13179 #line 13179 "configure"
13180 #include "confdefs.h"
13182 #ifdef HAVE_XCURSES
13183 #include <xcurses.h>
13184 char * XCursesProgramName = "test";
13186 #include <${cf_cv_ncurses_header:-curses.h}>
13187 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
13188 #include <ncursesw/term.h>
13189 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
13190 #include <ncurses/term.h>
13191 #elif defined(HAVE_TERM_H)
13201 long foo = (long)(&${cf_func});
13202 if (foo + 1234 > 5678)
13203 ${cf_cv_main_return:-return}(foo);
13210 rm -f conftest.$ac_objext conftest$ac_exeext
13211 if { (eval echo "$as_me:13211: \"$ac_link\"") >&5
13212 (eval $ac_link) 2>&5
13214 echo "$as_me:13214: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try='test -s conftest$ac_exeext'
13217 { (eval echo "$as_me:13217: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13220 echo "$as_me:13220: \$? = $ac_status" >&5
13221 (exit $ac_status); }; }; then
13224 echo "$as_me: failed program was:" >&5
13225 cat conftest.$ac_ext >&5
13228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13230 eval 'cf_cv_func_'$cf_func'=$cf_result'
13234 # use the computed/retrieved cache-value:
13235 eval 'cf_result=$cf_cv_func_'$cf_func
13236 echo "$as_me:13236: result: $cf_result" >&5
13237 echo "${ECHO_T}$cf_result" >&6
13238 if test $cf_result != no; then
13239 cat >>confdefs.h <<EOF
13240 #define HAVE_${cf_tr_func} 1
13246 for cf_func in tputs
13249 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13251 echo "$as_me:13251: checking for ${cf_func}" >&5
13252 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
13254 echo "${as_me:-configure}:13254: testing ${cf_func} ..." 1>&5
13256 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
13257 echo $ECHO_N "(cached) $ECHO_C" >&6
13260 eval cf_result='$ac_cv_func_'$cf_func
13261 if test ".$cf_result" != ".no"; then
13262 cat >conftest.$ac_ext <<_ACEOF
13263 #line 13263 "configure"
13264 #include "confdefs.h"
13266 #ifdef HAVE_XCURSES
13267 #include <xcurses.h>
13268 char * XCursesProgramName = "test";
13270 #include <${cf_cv_ncurses_header:-curses.h}>
13271 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
13272 #include <ncursesw/term.h>
13273 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
13274 #include <ncurses/term.h>
13275 #elif defined(HAVE_TERM_H)
13285 long foo = (long)(&${cf_func});
13286 if (foo + 1234 > 5678)
13287 ${cf_cv_main_return:-return}(foo);
13294 rm -f conftest.$ac_objext conftest$ac_exeext
13295 if { (eval echo "$as_me:13295: \"$ac_link\"") >&5
13296 (eval $ac_link) 2>&5
13298 echo "$as_me:13298: \$? = $ac_status" >&5
13299 (exit $ac_status); } &&
13300 { ac_try='test -s conftest$ac_exeext'
13301 { (eval echo "$as_me:13301: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13304 echo "$as_me:13304: \$? = $ac_status" >&5
13305 (exit $ac_status); }; }; then
13308 echo "$as_me: failed program was:" >&5
13309 cat conftest.$ac_ext >&5
13312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13314 eval 'cf_cv_func_'$cf_func'=$cf_result'
13318 # use the computed/retrieved cache-value:
13319 eval 'cf_result=$cf_cv_func_'$cf_func
13320 echo "$as_me:13320: result: $cf_result" >&5
13321 echo "${ECHO_T}$cf_result" >&6
13322 if test $cf_result != no; then
13323 cat >>confdefs.h <<EOF
13324 #define HAVE_${cf_tr_func} 1
13330 if test x$cf_cv_func_tputs = xyes
13333 for cf_arg in int char
13335 for cf_ret in int void
13337 if test $cf_ret = void
13339 cf_return="/* nothing */"
13341 cf_return="return value"
13343 cat >conftest.$ac_ext <<_ACEOF
13344 #line 13344 "configure"
13345 #include "confdefs.h"
13347 #include <${cf_cv_ncurses_header:-curses.h}>
13348 #include <$cf_cv_term_header>
13350 static $cf_ret outc($cf_arg value) { $cf_return; }
13356 tputs("hello", 0, outc);
13357 ${cf_cv_main_return:-return}(0);
13363 rm -f conftest.$ac_objext
13364 if { (eval echo "$as_me:13364: \"$ac_compile\"") >&5
13365 (eval $ac_compile) 2>&5
13367 echo "$as_me:13367: \$? = $ac_status" >&5
13368 (exit $ac_status); } &&
13369 { ac_try='test -s conftest.$ac_objext'
13370 { (eval echo "$as_me:13370: \"$ac_try\"") >&5
13371 (eval $ac_try) 2>&5
13373 echo "$as_me:13373: \$? = $ac_status" >&5
13374 (exit $ac_status); }; }; then
13376 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
13378 echo "${as_me:-configure}:13378: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
13380 cat >>confdefs.h <<EOF
13381 #define TPUTS_ARG $cf_arg
13382 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
13383 #define TPUTS_RETURN(value) $cf_return
13389 echo "$as_me: failed program was:" >&5
13390 cat conftest.$ac_ext >&5
13392 rm -f conftest.$ac_objext conftest.$ac_ext
13394 test $cf_done = yes && break
13398 echo "$as_me:13398: checking for ncurses extended functions" >&5
13399 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
13400 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 cat >conftest.$ac_ext <<_ACEOF
13405 #line 13405 "configure"
13406 #include "confdefs.h"
13408 #include <${cf_cv_ncurses_header:-curses.h}>
13413 int x = NCURSES_EXT_FUNCS
13419 rm -f conftest.$ac_objext
13420 if { (eval echo "$as_me:13420: \"$ac_compile\"") >&5
13421 (eval $ac_compile) 2>&5
13423 echo "$as_me:13423: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
13425 { ac_try='test -s conftest.$ac_objext'
13426 { (eval echo "$as_me:13426: \"$ac_try\"") >&5
13427 (eval $ac_try) 2>&5
13429 echo "$as_me:13429: \$? = $ac_status" >&5
13430 (exit $ac_status); }; }; then
13431 cf_cv_ncurses_ext_funcs=defined
13433 echo "$as_me: failed program was:" >&5
13434 cat conftest.$ac_ext >&5
13436 cat >conftest.$ac_ext <<_ACEOF
13437 #line 13437 "configure"
13438 #include "confdefs.h"
13440 #include <${cf_cv_ncurses_header:-curses.h}>
13445 (void) assume_default_colors (0, 0);
13446 (void) curses_version ();
13447 (void) define_key (0, 0);
13448 (void) is_term_resized (0, 0);
13449 (void) key_defined (0);
13450 (void) keybound (0, 0);
13451 (void) keyok (0, 0);
13452 (void) resize_term (0, 0);
13453 (void) resizeterm (0, 0);
13454 (void) use_default_colors ();
13455 (void) use_extended_names (0);
13456 (void) wresize (0, 0, 0);
13461 rm -f conftest.$ac_objext conftest$ac_exeext
13462 if { (eval echo "$as_me:13462: \"$ac_link\"") >&5
13463 (eval $ac_link) 2>&5
13465 echo "$as_me:13465: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
13467 { ac_try='test -s conftest$ac_exeext'
13468 { (eval echo "$as_me:13468: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13471 echo "$as_me:13471: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 cf_cv_ncurses_ext_funcs=yes
13475 echo "$as_me: failed program was:" >&5
13476 cat conftest.$ac_ext >&5
13477 cf_cv_ncurses_ext_funcs=no
13479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13482 rm -f conftest.$ac_objext conftest.$ac_ext
13485 echo "$as_me:13485: result: $cf_cv_ncurses_ext_funcs" >&5
13486 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
13487 test "$cf_cv_ncurses_ext_funcs" = yes &&
13488 cat >>confdefs.h <<\EOF
13489 #define NCURSES_EXT_FUNCS 1
13492 if test "$cf_enable_widec" = yes
13494 # workaround for systems with ncurses before 20111029, due to change of
13495 # feature test macro from _XPG5 to _XOPEN_SOURCE
13496 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
13499 echo "$as_me:13499: checking if _XPG5 should be defined to enable wide-characters" >&5
13500 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
13502 cat >conftest.$ac_ext <<_ACEOF
13503 #line 13503 "configure"
13504 #include "confdefs.h"
13506 #include <${cf_cv_ncurses_header:-curses.h}>
13515 rm -f conftest.$ac_objext
13516 if { (eval echo "$as_me:13516: \"$ac_compile\"") >&5
13517 (eval $ac_compile) 2>&5
13519 echo "$as_me:13519: \$? = $ac_status" >&5
13520 (exit $ac_status); } &&
13521 { ac_try='test -s conftest.$ac_objext'
13522 { (eval echo "$as_me:13522: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13525 echo "$as_me:13525: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13529 echo "$as_me: failed program was:" >&5
13530 cat conftest.$ac_ext >&5
13531 cf_save_cppflags="$CPPFLAGS"
13532 CPPFLAGS="$CPPFLAGS -D_XPG5"
13533 cat >conftest.$ac_ext <<_ACEOF
13534 #line 13534 "configure"
13535 #include "confdefs.h"
13537 #include <${cf_cv_ncurses_header:-curses.h}>
13546 rm -f conftest.$ac_objext
13547 if { (eval echo "$as_me:13547: \"$ac_compile\"") >&5
13548 (eval $ac_compile) 2>&5
13550 echo "$as_me:13550: \$? = $ac_status" >&5
13551 (exit $ac_status); } &&
13552 { ac_try='test -s conftest.$ac_objext'
13553 { (eval echo "$as_me:13553: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13556 echo "$as_me:13556: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }; then
13560 echo "$as_me: failed program was:" >&5
13561 cat conftest.$ac_ext >&5
13563 rm -f conftest.$ac_objext conftest.$ac_ext
13564 CPPFLAGS="$cf_save_cppflags"
13566 rm -f conftest.$ac_objext conftest.$ac_ext
13567 echo "$as_me:13567: result: $cf_define_xpg5" >&5
13568 echo "${ECHO_T}$cf_define_xpg5" >&6
13570 if test "$cf_define_xpg5" = yes
13572 CPPFLAGS="$CPPFLAGS -D_XPG5"
13576 echo "$as_me:13576: checking for wide-character functions" >&5
13577 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
13578 if test "${cf_cv_widechar_funcs+set}" = set; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 cat >conftest.$ac_ext <<_ACEOF
13583 #line 13583 "configure"
13584 #include "confdefs.h"
13586 #include <${cf_cv_ncurses_header:-curses.h}>
13591 static wchar_t src_wchar[2];
13592 static cchar_t dst_cchar;
13593 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
13599 rm -f conftest.$ac_objext conftest$ac_exeext
13600 if { (eval echo "$as_me:13600: \"$ac_link\"") >&5
13601 (eval $ac_link) 2>&5
13603 echo "$as_me:13603: \$? = $ac_status" >&5
13604 (exit $ac_status); } &&
13605 { ac_try='test -s conftest$ac_exeext'
13606 { (eval echo "$as_me:13606: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13609 echo "$as_me:13609: \$? = $ac_status" >&5
13610 (exit $ac_status); }; }; then
13611 cf_cv_widechar_funcs=yes
13613 echo "$as_me: failed program was:" >&5
13614 cat conftest.$ac_ext >&5
13615 cf_cv_widechar_funcs=no
13617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13620 echo "$as_me:13620: result: $cf_cv_widechar_funcs" >&5
13621 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
13622 if test "$cf_cv_widechar_funcs" != no ; then
13624 cat >>confdefs.h <<\EOF
13625 #define USE_WIDEC_SUPPORT 1
13629 cat >>confdefs.h <<\EOF
13630 #define USE_WIDEC_SUPPORT 0
13635 cat >>confdefs.h <<\EOF
13636 #define USE_WIDEC_SUPPORT 0
13641 echo "$as_me:13641: checking if sys/time.h works with sys/select.h" >&5
13642 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
13643 if test "${cf_cv_sys_time_select+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13647 cat >conftest.$ac_ext <<_ACEOF
13648 #line 13648 "configure"
13649 #include "confdefs.h"
13651 #include <sys/types.h>
13652 #ifdef HAVE_SYS_TIME_H
13653 #include <sys/time.h>
13655 #ifdef HAVE_SYS_SELECT_H
13656 #include <sys/select.h>
13667 rm -f conftest.$ac_objext
13668 if { (eval echo "$as_me:13668: \"$ac_compile\"") >&5
13669 (eval $ac_compile) 2>&5
13671 echo "$as_me:13671: \$? = $ac_status" >&5
13672 (exit $ac_status); } &&
13673 { ac_try='test -s conftest.$ac_objext'
13674 { (eval echo "$as_me:13674: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13677 echo "$as_me:13677: \$? = $ac_status" >&5
13678 (exit $ac_status); }; }; then
13679 cf_cv_sys_time_select=yes
13681 echo "$as_me: failed program was:" >&5
13682 cat conftest.$ac_ext >&5
13683 cf_cv_sys_time_select=no
13685 rm -f conftest.$ac_objext conftest.$ac_ext
13689 echo "$as_me:13689: result: $cf_cv_sys_time_select" >&5
13690 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
13691 test "$cf_cv_sys_time_select" = yes &&
13692 cat >>confdefs.h <<\EOF
13693 #define HAVE_SYS_TIME_SELECT 1
13696 echo "$as_me:13696: checking for function curses_version" >&5
13697 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
13698 if test "${cf_cv_func_curses_version+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 if test "$cross_compiling" = yes; then
13703 cf_cv_func_curses_version=unknown
13705 cat >conftest.$ac_ext <<_ACEOF
13706 #line 13706 "configure"
13707 #include "confdefs.h"
13709 #include <${cf_cv_ncurses_header:-curses.h}>
13713 sprintf(temp, "%s\n", curses_version());
13714 ${cf_cv_main_return:-return}(0);
13718 rm -f conftest$ac_exeext
13719 if { (eval echo "$as_me:13719: \"$ac_link\"") >&5
13720 (eval $ac_link) 2>&5
13722 echo "$as_me:13722: \$? = $ac_status" >&5
13723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13724 { (eval echo "$as_me:13724: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13727 echo "$as_me:13727: \$? = $ac_status" >&5
13728 (exit $ac_status); }; }; then
13729 cf_cv_func_curses_version=yes
13732 echo "$as_me: program exited with status $ac_status" >&5
13733 echo "$as_me: failed program was:" >&5
13734 cat conftest.$ac_ext >&5
13735 cf_cv_func_curses_version=no
13738 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13742 echo "$as_me:13742: result: $cf_cv_func_curses_version" >&5
13743 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
13744 test "$cf_cv_func_curses_version" = yes &&
13745 cat >>confdefs.h <<\EOF
13746 #define HAVE_CURSES_VERSION 1
13749 echo "$as_me:13749: checking for alternate character set array" >&5
13750 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
13751 if test "${cf_cv_curses_acs_map+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 cf_cv_curses_acs_map=unknown
13756 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
13758 cat >conftest.$ac_ext <<_ACEOF
13759 #line 13759 "configure"
13760 #include "confdefs.h"
13762 #include <${cf_cv_ncurses_header:-curses.h}>
13768 $name['k'] = ACS_PLUS
13774 rm -f conftest.$ac_objext conftest$ac_exeext
13775 if { (eval echo "$as_me:13775: \"$ac_link\"") >&5
13776 (eval $ac_link) 2>&5
13778 echo "$as_me:13778: \$? = $ac_status" >&5
13779 (exit $ac_status); } &&
13780 { ac_try='test -s conftest$ac_exeext'
13781 { (eval echo "$as_me:13781: \"$ac_try\"") >&5
13782 (eval $ac_try) 2>&5
13784 echo "$as_me:13784: \$? = $ac_status" >&5
13785 (exit $ac_status); }; }; then
13786 cf_cv_curses_acs_map=$name; break
13788 echo "$as_me: failed program was:" >&5
13789 cat conftest.$ac_ext >&5
13791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13795 echo "$as_me:13795: result: $cf_cv_curses_acs_map" >&5
13796 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
13798 test "$cf_cv_curses_acs_map" != unknown &&
13799 cat >>confdefs.h <<EOF
13800 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
13803 if test "$cf_enable_widec" = yes; then
13805 echo "$as_me:13805: checking for wide alternate character set array" >&5
13806 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
13807 if test "${cf_cv_curses_wacs_map+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 cf_cv_curses_wacs_map=unknown
13812 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
13814 cat >conftest.$ac_ext <<_ACEOF
13815 #line 13815 "configure"
13816 #include "confdefs.h"
13818 #ifndef _XOPEN_SOURCE_EXTENDED
13819 #define _XOPEN_SOURCE_EXTENDED
13821 #include <${cf_cv_ncurses_header:-curses.h}>
13825 void *foo = &($name['k'])
13830 rm -f conftest.$ac_objext conftest$ac_exeext
13831 if { (eval echo "$as_me:13831: \"$ac_link\"") >&5
13832 (eval $ac_link) 2>&5
13834 echo "$as_me:13834: \$? = $ac_status" >&5
13835 (exit $ac_status); } &&
13836 { ac_try='test -s conftest$ac_exeext'
13837 { (eval echo "$as_me:13837: \"$ac_try\"") >&5
13838 (eval $ac_try) 2>&5
13840 echo "$as_me:13840: \$? = $ac_status" >&5
13841 (exit $ac_status); }; }; then
13842 cf_cv_curses_wacs_map=$name
13845 echo "$as_me: failed program was:" >&5
13846 cat conftest.$ac_ext >&5
13848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13851 echo "$as_me:13851: result: $cf_cv_curses_wacs_map" >&5
13852 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
13854 test "$cf_cv_curses_wacs_map" != unknown &&
13855 cat >>confdefs.h <<EOF
13856 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
13859 echo "$as_me:13859: checking for wide alternate character constants" >&5
13860 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
13861 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 cf_cv_curses_wacs_symbols=no
13866 if test "$cf_cv_curses_wacs_map" != unknown
13868 cat >conftest.$ac_ext <<_ACEOF
13869 #line 13869 "configure"
13870 #include "confdefs.h"
13872 #ifndef _XOPEN_SOURCE_EXTENDED
13873 #define _XOPEN_SOURCE_EXTENDED
13875 #include <${cf_cv_ncurses_header:-curses.h}>
13879 cchar_t *foo = WACS_PLUS;
13880 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
13885 rm -f conftest.$ac_objext conftest$ac_exeext
13886 if { (eval echo "$as_me:13886: \"$ac_link\"") >&5
13887 (eval $ac_link) 2>&5
13889 echo "$as_me:13889: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -s conftest$ac_exeext'
13892 { (eval echo "$as_me:13892: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13895 echo "$as_me:13895: \$? = $ac_status" >&5
13896 (exit $ac_status); }; }; then
13897 cf_cv_curses_wacs_symbols=yes
13899 echo "$as_me: failed program was:" >&5
13900 cat conftest.$ac_ext >&5
13902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13904 cat >conftest.$ac_ext <<_ACEOF
13905 #line 13905 "configure"
13906 #include "confdefs.h"
13908 #ifndef _XOPEN_SOURCE_EXTENDED
13909 #define _XOPEN_SOURCE_EXTENDED
13911 #include <${cf_cv_ncurses_header:-curses.h}>
13915 cchar_t *foo = WACS_PLUS
13920 rm -f conftest.$ac_objext conftest$ac_exeext
13921 if { (eval echo "$as_me:13921: \"$ac_link\"") >&5
13922 (eval $ac_link) 2>&5
13924 echo "$as_me:13924: \$? = $ac_status" >&5
13925 (exit $ac_status); } &&
13926 { ac_try='test -s conftest$ac_exeext'
13927 { (eval echo "$as_me:13927: \"$ac_try\"") >&5
13928 (eval $ac_try) 2>&5
13930 echo "$as_me:13930: \$? = $ac_status" >&5
13931 (exit $ac_status); }; }; then
13932 cf_cv_curses_wacs_symbols=yes
13934 echo "$as_me: failed program was:" >&5
13935 cat conftest.$ac_ext >&5
13937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13941 echo "$as_me:13941: result: $cf_cv_curses_wacs_symbols" >&5
13942 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
13944 test "$cf_cv_curses_wacs_symbols" != no &&
13945 cat >>confdefs.h <<\EOF
13946 #define CURSES_WACS_SYMBOLS 1
13951 echo "$as_me:13951: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
13952 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
13953 cat >conftest.$ac_ext <<_ACEOF
13954 #line 13954 "configure"
13955 #include "confdefs.h"
13957 #ifndef _XOPEN_SOURCE_EXTENDED
13958 #define _XOPEN_SOURCE_EXTENDED
13960 #include <${cf_cv_ncurses_header:-curses.h}>
13971 rm -f conftest.$ac_objext
13972 if { (eval echo "$as_me:13972: \"$ac_compile\"") >&5
13973 (eval $ac_compile) 2>&5
13975 echo "$as_me:13975: \$? = $ac_status" >&5
13976 (exit $ac_status); } &&
13977 { ac_try='test -s conftest.$ac_objext'
13978 { (eval echo "$as_me:13978: \"$ac_try\"") >&5
13979 (eval $ac_try) 2>&5
13981 echo "$as_me:13981: \$? = $ac_status" >&5
13982 (exit $ac_status); }; }; then
13985 echo "$as_me: failed program was:" >&5
13986 cat conftest.$ac_ext >&5
13989 rm -f conftest.$ac_objext conftest.$ac_ext
13990 echo "$as_me:13990: result: $cf_result" >&5
13991 echo "${ECHO_T}$cf_result" >&6
13992 if test $cf_result = yes ; then
13994 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13996 cat >>confdefs.h <<EOF
13997 #define $cf_result 1
14002 cat >>confdefs.h <<EOF
14003 #define attr_t long
14008 if test "$cf_enable_widec" = yes; then
14010 # This is needed on Tru64 5.0 to declare mbstate_t
14011 echo "$as_me:14011: checking if we must include wchar.h to declare mbstate_t" >&5
14012 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
14013 if test "${cf_cv_mbstate_t+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 cat >conftest.$ac_ext <<_ACEOF
14018 #line 14018 "configure"
14019 #include "confdefs.h"
14021 #include <stdlib.h>
14022 #include <stdarg.h>
14024 #ifdef HAVE_LIBUTF8_H
14025 #include <libutf8.h>
14035 rm -f conftest.$ac_objext
14036 if { (eval echo "$as_me:14036: \"$ac_compile\"") >&5
14037 (eval $ac_compile) 2>&5
14039 echo "$as_me:14039: \$? = $ac_status" >&5
14040 (exit $ac_status); } &&
14041 { ac_try='test -s conftest.$ac_objext'
14042 { (eval echo "$as_me:14042: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14045 echo "$as_me:14045: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
14049 echo "$as_me: failed program was:" >&5
14050 cat conftest.$ac_ext >&5
14051 cat >conftest.$ac_ext <<_ACEOF
14052 #line 14052 "configure"
14053 #include "confdefs.h"
14055 #include <stdlib.h>
14056 #include <stdarg.h>
14059 #ifdef HAVE_LIBUTF8_H
14060 #include <libutf8.h>
14070 rm -f conftest.$ac_objext
14071 if { (eval echo "$as_me:14071: \"$ac_compile\"") >&5
14072 (eval $ac_compile) 2>&5
14074 echo "$as_me:14074: \$? = $ac_status" >&5
14075 (exit $ac_status); } &&
14076 { ac_try='test -s conftest.$ac_objext'
14077 { (eval echo "$as_me:14077: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14080 echo "$as_me:14080: \$? = $ac_status" >&5
14081 (exit $ac_status); }; }; then
14082 cf_cv_mbstate_t=yes
14084 echo "$as_me: failed program was:" >&5
14085 cat conftest.$ac_ext >&5
14086 cf_cv_mbstate_t=unknown
14088 rm -f conftest.$ac_objext conftest.$ac_ext
14090 rm -f conftest.$ac_objext conftest.$ac_ext
14092 echo "$as_me:14092: result: $cf_cv_mbstate_t" >&5
14093 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
14095 if test "$cf_cv_mbstate_t" = yes ; then
14097 cat >>confdefs.h <<\EOF
14098 #define NEED_WCHAR_H 1
14104 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
14105 if test "$cf_cv_mbstate_t" = unknown ; then
14106 NCURSES_MBSTATE_T=1
14109 # if we find mbstate_t in either place, use substitution to provide a fallback.
14110 if test "$cf_cv_mbstate_t" != unknown ; then
14111 NCURSES_OK_MBSTATE_T=1
14114 # This is needed on Tru64 5.0 to declare wchar_t
14115 echo "$as_me:14115: checking if we must include wchar.h to declare wchar_t" >&5
14116 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
14117 if test "${cf_cv_wchar_t+set}" = set; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14121 cat >conftest.$ac_ext <<_ACEOF
14122 #line 14122 "configure"
14123 #include "confdefs.h"
14125 #include <stdlib.h>
14126 #include <stdarg.h>
14128 #ifdef HAVE_LIBUTF8_H
14129 #include <libutf8.h>
14139 rm -f conftest.$ac_objext
14140 if { (eval echo "$as_me:14140: \"$ac_compile\"") >&5
14141 (eval $ac_compile) 2>&5
14143 echo "$as_me:14143: \$? = $ac_status" >&5
14144 (exit $ac_status); } &&
14145 { ac_try='test -s conftest.$ac_objext'
14146 { (eval echo "$as_me:14146: \"$ac_try\"") >&5
14147 (eval $ac_try) 2>&5
14149 echo "$as_me:14149: \$? = $ac_status" >&5
14150 (exit $ac_status); }; }; then
14153 echo "$as_me: failed program was:" >&5
14154 cat conftest.$ac_ext >&5
14155 cat >conftest.$ac_ext <<_ACEOF
14156 #line 14156 "configure"
14157 #include "confdefs.h"
14159 #include <stdlib.h>
14160 #include <stdarg.h>
14163 #ifdef HAVE_LIBUTF8_H
14164 #include <libutf8.h>
14174 rm -f conftest.$ac_objext
14175 if { (eval echo "$as_me:14175: \"$ac_compile\"") >&5
14176 (eval $ac_compile) 2>&5
14178 echo "$as_me:14178: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
14180 { ac_try='test -s conftest.$ac_objext'
14181 { (eval echo "$as_me:14181: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14184 echo "$as_me:14184: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }; then
14188 echo "$as_me: failed program was:" >&5
14189 cat conftest.$ac_ext >&5
14190 cf_cv_wchar_t=unknown
14192 rm -f conftest.$ac_objext conftest.$ac_ext
14194 rm -f conftest.$ac_objext conftest.$ac_ext
14196 echo "$as_me:14196: result: $cf_cv_wchar_t" >&5
14197 echo "${ECHO_T}$cf_cv_wchar_t" >&6
14199 if test "$cf_cv_wchar_t" = yes ; then
14201 cat >>confdefs.h <<\EOF
14202 #define NEED_WCHAR_H 1
14208 # if we do not find wchar_t in either place, use substitution to provide a fallback.
14209 if test "$cf_cv_wchar_t" = unknown ; then
14213 # if we find wchar_t in either place, use substitution to provide a fallback.
14214 if test "$cf_cv_wchar_t" != unknown ; then
14215 NCURSES_OK_WCHAR_T=1
14218 # This is needed on Tru64 5.0 to declare wint_t
14219 echo "$as_me:14219: checking if we must include wchar.h to declare wint_t" >&5
14220 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
14221 if test "${cf_cv_wint_t+set}" = set; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 cat >conftest.$ac_ext <<_ACEOF
14226 #line 14226 "configure"
14227 #include "confdefs.h"
14229 #include <stdlib.h>
14230 #include <stdarg.h>
14232 #ifdef HAVE_LIBUTF8_H
14233 #include <libutf8.h>
14243 rm -f conftest.$ac_objext
14244 if { (eval echo "$as_me:14244: \"$ac_compile\"") >&5
14245 (eval $ac_compile) 2>&5
14247 echo "$as_me:14247: \$? = $ac_status" >&5
14248 (exit $ac_status); } &&
14249 { ac_try='test -s conftest.$ac_objext'
14250 { (eval echo "$as_me:14250: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:14253: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14257 echo "$as_me: failed program was:" >&5
14258 cat conftest.$ac_ext >&5
14259 cat >conftest.$ac_ext <<_ACEOF
14260 #line 14260 "configure"
14261 #include "confdefs.h"
14263 #include <stdlib.h>
14264 #include <stdarg.h>
14267 #ifdef HAVE_LIBUTF8_H
14268 #include <libutf8.h>
14278 rm -f conftest.$ac_objext
14279 if { (eval echo "$as_me:14279: \"$ac_compile\"") >&5
14280 (eval $ac_compile) 2>&5
14282 echo "$as_me:14282: \$? = $ac_status" >&5
14283 (exit $ac_status); } &&
14284 { ac_try='test -s conftest.$ac_objext'
14285 { (eval echo "$as_me:14285: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14288 echo "$as_me:14288: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
14292 echo "$as_me: failed program was:" >&5
14293 cat conftest.$ac_ext >&5
14294 cf_cv_wint_t=unknown
14296 rm -f conftest.$ac_objext conftest.$ac_ext
14298 rm -f conftest.$ac_objext conftest.$ac_ext
14300 echo "$as_me:14300: result: $cf_cv_wint_t" >&5
14301 echo "${ECHO_T}$cf_cv_wint_t" >&6
14303 if test "$cf_cv_wint_t" = yes ; then
14305 cat >>confdefs.h <<\EOF
14306 #define NEED_WCHAR_H 1
14312 # if we do not find wint_t in either place, use substitution to provide a fallback.
14313 if test "$cf_cv_wint_t" = unknown ; then
14317 # if we find wint_t in either place, use substitution to provide a fallback.
14318 if test "$cf_cv_wint_t" != unknown ; then
14319 NCURSES_OK_WINT_T=1
14322 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
14324 echo "$as_me:14324: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
14325 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14326 cat >conftest.$ac_ext <<_ACEOF
14327 #line 14327 "configure"
14328 #include "confdefs.h"
14330 #ifndef _XOPEN_SOURCE_EXTENDED
14331 #define _XOPEN_SOURCE_EXTENDED
14333 #include <${cf_cv_ncurses_header:-curses.h}>
14344 rm -f conftest.$ac_objext
14345 if { (eval echo "$as_me:14345: \"$ac_compile\"") >&5
14346 (eval $ac_compile) 2>&5
14348 echo "$as_me:14348: \$? = $ac_status" >&5
14349 (exit $ac_status); } &&
14350 { ac_try='test -s conftest.$ac_objext'
14351 { (eval echo "$as_me:14351: \"$ac_try\"") >&5
14352 (eval $ac_try) 2>&5
14354 echo "$as_me:14354: \$? = $ac_status" >&5
14355 (exit $ac_status); }; }; then
14358 echo "$as_me: failed program was:" >&5
14359 cat conftest.$ac_ext >&5
14362 rm -f conftest.$ac_objext conftest.$ac_ext
14363 echo "$as_me:14363: result: $cf_result" >&5
14364 echo "${ECHO_T}$cf_result" >&6
14365 if test $cf_result = yes ; then
14367 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14369 cat >>confdefs.h <<EOF
14370 #define $cf_result 1
14375 cat >>confdefs.h <<EOF
14376 #define mbstate_t long
14383 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
14385 echo "$as_me:14385: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
14386 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14387 cat >conftest.$ac_ext <<_ACEOF
14388 #line 14388 "configure"
14389 #include "confdefs.h"
14391 #ifndef _XOPEN_SOURCE_EXTENDED
14392 #define _XOPEN_SOURCE_EXTENDED
14394 #include <${cf_cv_ncurses_header:-curses.h}>
14405 rm -f conftest.$ac_objext
14406 if { (eval echo "$as_me:14406: \"$ac_compile\"") >&5
14407 (eval $ac_compile) 2>&5
14409 echo "$as_me:14409: \$? = $ac_status" >&5
14410 (exit $ac_status); } &&
14411 { ac_try='test -s conftest.$ac_objext'
14412 { (eval echo "$as_me:14412: \"$ac_try\"") >&5
14413 (eval $ac_try) 2>&5
14415 echo "$as_me:14415: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14419 echo "$as_me: failed program was:" >&5
14420 cat conftest.$ac_ext >&5
14423 rm -f conftest.$ac_objext conftest.$ac_ext
14424 echo "$as_me:14424: result: $cf_result" >&5
14425 echo "${ECHO_T}$cf_result" >&6
14426 if test $cf_result = yes ; then
14428 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14430 cat >>confdefs.h <<EOF
14431 #define $cf_result 1
14436 cat >>confdefs.h <<EOF
14437 #define wchar_t long
14444 if test "$NCURSES_OK_WINT_T" = 0 ; then
14446 echo "$as_me:14446: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
14447 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14448 cat >conftest.$ac_ext <<_ACEOF
14449 #line 14449 "configure"
14450 #include "confdefs.h"
14452 #ifndef _XOPEN_SOURCE_EXTENDED
14453 #define _XOPEN_SOURCE_EXTENDED
14455 #include <${cf_cv_ncurses_header:-curses.h}>
14466 rm -f conftest.$ac_objext
14467 if { (eval echo "$as_me:14467: \"$ac_compile\"") >&5
14468 (eval $ac_compile) 2>&5
14470 echo "$as_me:14470: \$? = $ac_status" >&5
14471 (exit $ac_status); } &&
14472 { ac_try='test -s conftest.$ac_objext'
14473 { (eval echo "$as_me:14473: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14476 echo "$as_me:14476: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
14480 echo "$as_me: failed program was:" >&5
14481 cat conftest.$ac_ext >&5
14484 rm -f conftest.$ac_objext conftest.$ac_ext
14485 echo "$as_me:14485: result: $cf_result" >&5
14486 echo "${ECHO_T}$cf_result" >&6
14487 if test $cf_result = yes ; then
14489 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14491 cat >>confdefs.h <<EOF
14492 #define $cf_result 1
14497 cat >>confdefs.h <<EOF
14498 #define wint_t long
14506 echo "$as_me:14506: checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
14507 echo $ECHO_N "checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14509 cat >conftest.$ac_ext <<_ACEOF
14510 #line 14510 "configure"
14511 #include "confdefs.h"
14513 #ifdef HAVE_XCURSES
14514 #include <xcurses.h>
14515 char * XCursesProgramName = "test";
14517 #include <${cf_cv_ncurses_header:-curses.h}>
14518 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14519 #include <ncursesw/term.h>
14520 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14521 #include <ncurses/term.h>
14522 #elif defined(HAVE_TERM_H)
14531 void *foo = &(boolnames)
14537 rm -f conftest.$ac_objext
14538 if { (eval echo "$as_me:14538: \"$ac_compile\"") >&5
14539 (eval $ac_compile) 2>&5
14541 echo "$as_me:14541: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
14543 { ac_try='test -s conftest.$ac_objext'
14544 { (eval echo "$as_me:14544: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14547 echo "$as_me:14547: \$? = $ac_status" >&5
14548 (exit $ac_status); }; }; then
14551 echo "$as_me: failed program was:" >&5
14552 cat conftest.$ac_ext >&5
14555 rm -f conftest.$ac_objext conftest.$ac_ext
14556 echo "$as_me:14556: result: $cf_result" >&5
14557 echo "${ECHO_T}$cf_result" >&6
14559 if test $cf_result = yes ; then
14561 cf_result=`echo "have_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14563 cat >>confdefs.h <<EOF
14564 #define $cf_result 1
14568 echo "$as_me:14568: checking for data boolnames in library" >&5
14569 echo $ECHO_N "checking for data boolnames in library... $ECHO_C" >&6
14570 # BSD linkers insist on making weak linkage, but resolve at runtime.
14571 if test "$cross_compiling" = yes; then
14574 cat >conftest.$ac_ext <<_ACEOF
14575 #line 14575 "configure"
14576 #include "confdefs.h"
14578 #ifdef HAVE_XCURSES
14579 #include <xcurses.h>
14580 char * XCursesProgramName = "test";
14582 #include <${cf_cv_ncurses_header:-curses.h}>
14583 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14584 #include <ncursesw/term.h>
14585 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14586 #include <ncurses/term.h>
14587 #elif defined(HAVE_TERM_H)
14592 extern char boolnames;
14598 void *foo = &(boolnames);
14599 ${cf_cv_main_return:-return}(foo == 0);
14606 rm -f conftest.$ac_objext conftest$ac_exeext
14607 if { (eval echo "$as_me:14607: \"$ac_link\"") >&5
14608 (eval $ac_link) 2>&5
14610 echo "$as_me:14610: \$? = $ac_status" >&5
14611 (exit $ac_status); } &&
14612 { ac_try='test -s conftest$ac_exeext'
14613 { (eval echo "$as_me:14613: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14616 echo "$as_me:14616: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14620 echo "$as_me: failed program was:" >&5
14621 cat conftest.$ac_ext >&5
14624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14627 cat >conftest.$ac_ext <<_ACEOF
14628 #line 14628 "configure"
14629 #include "confdefs.h"
14631 #ifdef HAVE_XCURSES
14632 #include <xcurses.h>
14633 char * XCursesProgramName = "test";
14635 #include <${cf_cv_ncurses_header:-curses.h}>
14636 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14637 #include <ncursesw/term.h>
14638 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14639 #include <ncurses/term.h>
14640 #elif defined(HAVE_TERM_H)
14645 extern char boolnames;
14648 void *foo = &(boolnames);
14649 ${cf_cv_main_return:-return}(foo == 0);
14652 rm -f conftest$ac_exeext
14653 if { (eval echo "$as_me:14653: \"$ac_link\"") >&5
14654 (eval $ac_link) 2>&5
14656 echo "$as_me:14656: \$? = $ac_status" >&5
14657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14658 { (eval echo "$as_me:14658: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14661 echo "$as_me:14661: \$? = $ac_status" >&5
14662 (exit $ac_status); }; }; then
14665 echo "$as_me: program exited with status $ac_status" >&5
14666 echo "$as_me: failed program was:" >&5
14667 cat conftest.$ac_ext >&5
14670 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14672 echo "$as_me:14672: result: $cf_result" >&5
14673 echo "${ECHO_T}$cf_result" >&6
14674 if test $cf_result = yes ; then
14676 cf_result=`echo "decl_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14678 cat >>confdefs.h <<EOF
14679 #define $cf_result 1
14685 echo "$as_me:14685: checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
14686 echo $ECHO_N "checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14688 cat >conftest.$ac_ext <<_ACEOF
14689 #line 14689 "configure"
14690 #include "confdefs.h"
14692 #ifdef HAVE_XCURSES
14693 #include <xcurses.h>
14694 char * XCursesProgramName = "test";
14696 #include <${cf_cv_ncurses_header:-curses.h}>
14697 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14698 #include <ncursesw/term.h>
14699 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14700 #include <ncurses/term.h>
14701 #elif defined(HAVE_TERM_H)
14710 void *foo = &(boolfnames)
14716 rm -f conftest.$ac_objext
14717 if { (eval echo "$as_me:14717: \"$ac_compile\"") >&5
14718 (eval $ac_compile) 2>&5
14720 echo "$as_me:14720: \$? = $ac_status" >&5
14721 (exit $ac_status); } &&
14722 { ac_try='test -s conftest.$ac_objext'
14723 { (eval echo "$as_me:14723: \"$ac_try\"") >&5
14724 (eval $ac_try) 2>&5
14726 echo "$as_me:14726: \$? = $ac_status" >&5
14727 (exit $ac_status); }; }; then
14730 echo "$as_me: failed program was:" >&5
14731 cat conftest.$ac_ext >&5
14734 rm -f conftest.$ac_objext conftest.$ac_ext
14735 echo "$as_me:14735: result: $cf_result" >&5
14736 echo "${ECHO_T}$cf_result" >&6
14738 if test $cf_result = yes ; then
14740 cf_result=`echo "have_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14742 cat >>confdefs.h <<EOF
14743 #define $cf_result 1
14747 echo "$as_me:14747: checking for data boolfnames in library" >&5
14748 echo $ECHO_N "checking for data boolfnames in library... $ECHO_C" >&6
14749 # BSD linkers insist on making weak linkage, but resolve at runtime.
14750 if test "$cross_compiling" = yes; then
14753 cat >conftest.$ac_ext <<_ACEOF
14754 #line 14754 "configure"
14755 #include "confdefs.h"
14757 #ifdef HAVE_XCURSES
14758 #include <xcurses.h>
14759 char * XCursesProgramName = "test";
14761 #include <${cf_cv_ncurses_header:-curses.h}>
14762 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14763 #include <ncursesw/term.h>
14764 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14765 #include <ncurses/term.h>
14766 #elif defined(HAVE_TERM_H)
14771 extern char boolfnames;
14777 void *foo = &(boolfnames);
14778 ${cf_cv_main_return:-return}(foo == 0);
14785 rm -f conftest.$ac_objext conftest$ac_exeext
14786 if { (eval echo "$as_me:14786: \"$ac_link\"") >&5
14787 (eval $ac_link) 2>&5
14789 echo "$as_me:14789: \$? = $ac_status" >&5
14790 (exit $ac_status); } &&
14791 { ac_try='test -s conftest$ac_exeext'
14792 { (eval echo "$as_me:14792: \"$ac_try\"") >&5
14793 (eval $ac_try) 2>&5
14795 echo "$as_me:14795: \$? = $ac_status" >&5
14796 (exit $ac_status); }; }; then
14799 echo "$as_me: failed program was:" >&5
14800 cat conftest.$ac_ext >&5
14803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14806 cat >conftest.$ac_ext <<_ACEOF
14807 #line 14807 "configure"
14808 #include "confdefs.h"
14810 #ifdef HAVE_XCURSES
14811 #include <xcurses.h>
14812 char * XCursesProgramName = "test";
14814 #include <${cf_cv_ncurses_header:-curses.h}>
14815 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14816 #include <ncursesw/term.h>
14817 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14818 #include <ncurses/term.h>
14819 #elif defined(HAVE_TERM_H)
14824 extern char boolfnames;
14827 void *foo = &(boolfnames);
14828 ${cf_cv_main_return:-return}(foo == 0);
14831 rm -f conftest$ac_exeext
14832 if { (eval echo "$as_me:14832: \"$ac_link\"") >&5
14833 (eval $ac_link) 2>&5
14835 echo "$as_me:14835: \$? = $ac_status" >&5
14836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14837 { (eval echo "$as_me:14837: \"$ac_try\"") >&5
14838 (eval $ac_try) 2>&5
14840 echo "$as_me:14840: \$? = $ac_status" >&5
14841 (exit $ac_status); }; }; then
14844 echo "$as_me: program exited with status $ac_status" >&5
14845 echo "$as_me: failed program was:" >&5
14846 cat conftest.$ac_ext >&5
14849 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14851 echo "$as_me:14851: result: $cf_result" >&5
14852 echo "${ECHO_T}$cf_result" >&6
14853 if test $cf_result = yes ; then
14855 cf_result=`echo "decl_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14857 cat >>confdefs.h <<EOF
14858 #define $cf_result 1
14864 if ( test "$GCC" = yes || test "$GXX" = yes )
14866 echo "$as_me:14866: checking if you want to turn on gcc warnings" >&5
14867 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
14869 # Check whether --enable-warnings or --disable-warnings was given.
14870 if test "${enable_warnings+set}" = set; then
14871 enableval="$enable_warnings"
14872 test "$enableval" != yes && enableval=no
14873 if test "$enableval" != "no" ; then
14883 echo "$as_me:14883: result: $with_warnings" >&5
14884 echo "${ECHO_T}$with_warnings" >&6
14885 if test "$with_warnings" = "yes"
14888 if test "$GCC" = yes
14890 cat > conftest.i <<EOF
14892 #define GCC_PRINTF 0
14895 #define GCC_SCANF 0
14897 #ifndef GCC_NORETURN
14898 #define GCC_NORETURN /* nothing */
14901 #define GCC_UNUSED /* nothing */
14904 if test "$GCC" = yes
14906 { echo "$as_me:14906: checking for $CC __attribute__ directives..." >&5
14907 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
14908 cat > conftest.$ac_ext <<EOF
14909 #line 14909 "${as_me:-configure}"
14910 #include "confdefs.h"
14911 #include "conftest.h"
14912 #include "conftest.i"
14914 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
14916 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
14919 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
14921 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
14923 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
14924 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
14925 extern void foo(void) GCC_NORETURN;
14926 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
14928 cf_printf_attribute=no
14929 cf_scanf_attribute=no
14930 for cf_attribute in scanf printf unused noreturn
14933 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14935 cf_directive="__attribute__(($cf_attribute))"
14936 echo "checking for $CC $cf_directive" 1>&5
14938 case $cf_attribute in #(vi
14940 cf_printf_attribute=yes
14941 cat >conftest.h <<EOF
14942 #define GCC_$cf_ATTRIBUTE 1
14946 cf_scanf_attribute=yes
14947 cat >conftest.h <<EOF
14948 #define GCC_$cf_ATTRIBUTE 1
14952 cat >conftest.h <<EOF
14953 #define GCC_$cf_ATTRIBUTE $cf_directive
14958 if { (eval echo "$as_me:14958: \"$ac_compile\"") >&5
14959 (eval $ac_compile) 2>&5
14961 echo "$as_me:14961: \$? = $ac_status" >&5
14962 (exit $ac_status); }; then
14963 test -n "$verbose" && echo "$as_me:14963: result: ... $cf_attribute" >&5
14964 echo "${ECHO_T}... $cf_attribute" >&6
14965 cat conftest.h >>confdefs.h
14966 case $cf_attribute in #(vi
14969 cat >>confdefs.h <<EOF
14970 #define GCC_NORETURN $cf_directive
14975 cf_value='/* nothing */'
14976 if test "$cf_printf_attribute" != no ; then
14977 cf_value='__attribute__((format(printf,fmt,var)))'
14979 cat >>confdefs.h <<\EOF
14980 #define GCC_PRINTF 1
14985 cat >>confdefs.h <<EOF
14986 #define GCC_PRINTFLIKE(fmt,var) $cf_value
14991 cf_value='/* nothing */'
14992 if test "$cf_scanf_attribute" != no ; then
14993 cf_value='__attribute__((format(scanf,fmt,var)))'
14995 cat >>confdefs.h <<\EOF
14996 #define GCC_SCANF 1
15001 cat >>confdefs.h <<EOF
15002 #define GCC_SCANFLIKE(fmt,var) $cf_value
15008 cat >>confdefs.h <<EOF
15009 #define GCC_UNUSED $cf_directive
15017 fgrep define conftest.i >>confdefs.h
15024 if test "$GCC" = yes ; then
15027 echo "$as_me:15027: checking if this is really Intel C compiler" >&5
15028 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
15029 cf_save_CFLAGS="$CFLAGS"
15030 CFLAGS="$CFLAGS -no-gcc"
15031 cat >conftest.$ac_ext <<_ACEOF
15032 #line 15032 "configure"
15033 #include "confdefs.h"
15039 #ifdef __INTEL_COMPILER
15048 rm -f conftest.$ac_objext
15049 if { (eval echo "$as_me:15049: \"$ac_compile\"") >&5
15050 (eval $ac_compile) 2>&5
15052 echo "$as_me:15052: \$? = $ac_status" >&5
15053 (exit $ac_status); } &&
15054 { ac_try='test -s conftest.$ac_objext'
15055 { (eval echo "$as_me:15055: \"$ac_try\"") >&5
15056 (eval $ac_try) 2>&5
15058 echo "$as_me:15058: \$? = $ac_status" >&5
15059 (exit $ac_status); }; }; then
15061 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
15064 echo "$as_me: failed program was:" >&5
15065 cat conftest.$ac_ext >&5
15067 rm -f conftest.$ac_objext conftest.$ac_ext
15068 CFLAGS="$cf_save_CFLAGS"
15069 echo "$as_me:15069: result: $INTEL_COMPILER" >&5
15070 echo "${ECHO_T}$INTEL_COMPILER" >&6
15077 if test "$GCC" = yes ; then
15078 echo "$as_me:15078: checking if this is really Clang C compiler" >&5
15079 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
15080 cf_save_CFLAGS="$CFLAGS"
15081 CFLAGS="$CFLAGS -Qunused-arguments"
15082 cat >conftest.$ac_ext <<_ACEOF
15083 #line 15083 "configure"
15084 #include "confdefs.h"
15099 rm -f conftest.$ac_objext
15100 if { (eval echo "$as_me:15100: \"$ac_compile\"") >&5
15101 (eval $ac_compile) 2>&5
15103 echo "$as_me:15103: \$? = $ac_status" >&5
15104 (exit $ac_status); } &&
15105 { ac_try='test -s conftest.$ac_objext'
15106 { (eval echo "$as_me:15106: \"$ac_try\"") >&5
15107 (eval $ac_try) 2>&5
15109 echo "$as_me:15109: \$? = $ac_status" >&5
15110 (exit $ac_status); }; }; then
15112 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
15115 echo "$as_me: failed program was:" >&5
15116 cat conftest.$ac_ext >&5
15118 rm -f conftest.$ac_objext conftest.$ac_ext
15119 CFLAGS="$cf_save_CFLAGS"
15120 echo "$as_me:15120: result: $CLANG_COMPILER" >&5
15121 echo "${ECHO_T}$CLANG_COMPILER" >&6
15124 cat > conftest.$ac_ext <<EOF
15125 #line 15125 "${as_me:-configure}"
15126 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
15129 if test "$INTEL_COMPILER" = yes
15131 # The "-wdXXX" options suppress warnings:
15132 # remark #1419: external declaration in primary source file
15133 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
15134 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
15135 # remark #193: zero used for undefined preprocessing identifier
15136 # remark #593: variable "curs_sb_left_arrow" was set but never used
15137 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
15138 # remark #869: parameter "tw" was never referenced
15139 # remark #981: operands are evaluated in unspecified order
15140 # warning #279: controlling expression is constant
15142 { echo "$as_me:15142: checking for $CC warning options..." >&5
15143 echo "$as_me: checking for $CC warning options..." >&6;}
15144 cf_save_CFLAGS="$CFLAGS"
15145 EXTRA_CFLAGS="-Wall"
15157 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
15158 if { (eval echo "$as_me:15158: \"$ac_compile\"") >&5
15159 (eval $ac_compile) 2>&5
15161 echo "$as_me:15161: \$? = $ac_status" >&5
15162 (exit $ac_status); }; then
15163 test -n "$verbose" && echo "$as_me:15163: result: ... -$cf_opt" >&5
15164 echo "${ECHO_T}... -$cf_opt" >&6
15165 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
15168 CFLAGS="$cf_save_CFLAGS"
15170 elif test "$GCC" = yes
15172 { echo "$as_me:15172: checking for $CC warning options..." >&5
15173 echo "$as_me: checking for $CC warning options..." >&6;}
15174 cf_save_CFLAGS="$CFLAGS"
15177 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
15178 for cf_opt in W Wall \
15179 Wbad-function-cast \
15183 Wmissing-declarations \
15184 Wmissing-prototypes \
15188 Wstrict-prototypes \
15189 Wundef $cf_warn_CONST
15191 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
15192 if { (eval echo "$as_me:15192: \"$ac_compile\"") >&5
15193 (eval $ac_compile) 2>&5
15195 echo "$as_me:15195: \$? = $ac_status" >&5
15196 (exit $ac_status); }; then
15197 test -n "$verbose" && echo "$as_me:15197: result: ... -$cf_opt" >&5
15198 echo "${ECHO_T}... -$cf_opt" >&6
15199 case $cf_opt in #(vi
15201 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
15204 case $GCC_VERSION in
15206 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
15208 echo "${as_me:-configure}:15208: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
15213 Wpointer-arith) #(vi
15214 case $GCC_VERSION in
15216 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
15218 echo "${as_me:-configure}:15218: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
15224 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
15227 CFLAGS="$cf_save_CFLAGS"
15234 echo "$as_me:15234: checking if you want to use dmalloc for testing" >&5
15235 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
15237 # Check whether --with-dmalloc or --without-dmalloc was given.
15238 if test "${with_dmalloc+set}" = set; then
15239 withval="$with_dmalloc"
15241 cat >>confdefs.h <<EOF
15242 #define USE_DMALLOC 1
15245 : ${with_cflags:=-g}
15246 : ${with_no_leaks:=yes}
15251 echo "$as_me:15251: result: ${with_dmalloc:-no}" >&5
15252 echo "${ECHO_T}${with_dmalloc:-no}" >&6
15254 case .$with_cflags in #(vi
15256 case .$CFLAGS in #(vi
15264 cf_new_extra_cppflags=
15266 for cf_add_cflags in -g
15268 case $cf_fix_cppflags in
15270 case $cf_add_cflags in #(vi
15271 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
15272 case $cf_add_cflags in
15274 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15276 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15277 && test -z "${cf_tst_cflags}" \
15278 && cf_fix_cppflags=yes
15280 if test $cf_fix_cppflags = yes ; then
15281 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15283 elif test "${cf_tst_cflags}" = "\"'" ; then
15284 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15289 case "$CPPFLAGS" in
15290 *$cf_add_cflags) #(vi
15293 case $cf_add_cflags in #(vi
15295 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15297 CPPFLAGS=`echo "$CPPFLAGS" | \
15298 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15299 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15303 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15308 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15313 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15315 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15317 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15318 && test -z "${cf_tst_cflags}" \
15319 && cf_fix_cppflags=no
15324 if test -n "$cf_new_cflags" ; then
15326 CFLAGS="$CFLAGS $cf_new_cflags"
15329 if test -n "$cf_new_cppflags" ; then
15331 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15334 if test -n "$cf_new_extra_cppflags" ; then
15336 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15344 if test "$with_dmalloc" = yes ; then
15345 echo "$as_me:15345: checking for dmalloc.h" >&5
15346 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
15347 if test "${ac_cv_header_dmalloc_h+set}" = set; then
15348 echo $ECHO_N "(cached) $ECHO_C" >&6
15350 cat >conftest.$ac_ext <<_ACEOF
15351 #line 15351 "configure"
15352 #include "confdefs.h"
15353 #include <dmalloc.h>
15355 if { (eval echo "$as_me:15355: \"$ac_cpp conftest.$ac_ext\"") >&5
15356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15358 egrep -v '^ *\+' conftest.er1 >conftest.err
15360 cat conftest.err >&5
15361 echo "$as_me:15361: \$? = $ac_status" >&5
15362 (exit $ac_status); } >/dev/null; then
15363 if test -s conftest.err; then
15364 ac_cpp_err=$ac_c_preproc_warn_flag
15371 if test -z "$ac_cpp_err"; then
15372 ac_cv_header_dmalloc_h=yes
15374 echo "$as_me: failed program was:" >&5
15375 cat conftest.$ac_ext >&5
15376 ac_cv_header_dmalloc_h=no
15378 rm -f conftest.err conftest.$ac_ext
15380 echo "$as_me:15380: result: $ac_cv_header_dmalloc_h" >&5
15381 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
15382 if test $ac_cv_header_dmalloc_h = yes; then
15384 echo "$as_me:15384: checking for dmalloc_debug in -ldmalloc" >&5
15385 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
15386 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 ac_check_lib_save_LIBS=$LIBS
15390 LIBS="-ldmalloc $LIBS"
15391 cat >conftest.$ac_ext <<_ACEOF
15392 #line 15392 "configure"
15393 #include "confdefs.h"
15395 /* Override any gcc2 internal prototype to avoid an error. */
15399 /* We use char because int might match the return type of a gcc2
15400 builtin and then its argument prototype would still apply. */
15401 char dmalloc_debug ();
15410 rm -f conftest.$ac_objext conftest$ac_exeext
15411 if { (eval echo "$as_me:15411: \"$ac_link\"") >&5
15412 (eval $ac_link) 2>&5
15414 echo "$as_me:15414: \$? = $ac_status" >&5
15415 (exit $ac_status); } &&
15416 { ac_try='test -s conftest$ac_exeext'
15417 { (eval echo "$as_me:15417: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15420 echo "$as_me:15420: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
15422 ac_cv_lib_dmalloc_dmalloc_debug=yes
15424 echo "$as_me: failed program was:" >&5
15425 cat conftest.$ac_ext >&5
15426 ac_cv_lib_dmalloc_dmalloc_debug=no
15428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15429 LIBS=$ac_check_lib_save_LIBS
15431 echo "$as_me:15431: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
15432 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
15433 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
15434 cat >>confdefs.h <<EOF
15435 #define HAVE_LIBDMALLOC 1
15438 LIBS="-ldmalloc $LIBS"
15446 echo "$as_me:15446: checking if you want to use dbmalloc for testing" >&5
15447 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
15449 # Check whether --with-dbmalloc or --without-dbmalloc was given.
15450 if test "${with_dbmalloc+set}" = set; then
15451 withval="$with_dbmalloc"
15453 cat >>confdefs.h <<EOF
15454 #define USE_DBMALLOC 1
15457 : ${with_cflags:=-g}
15458 : ${with_no_leaks:=yes}
15463 echo "$as_me:15463: result: ${with_dbmalloc:-no}" >&5
15464 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
15466 case .$with_cflags in #(vi
15468 case .$CFLAGS in #(vi
15476 cf_new_extra_cppflags=
15478 for cf_add_cflags in -g
15480 case $cf_fix_cppflags in
15482 case $cf_add_cflags in #(vi
15483 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
15484 case $cf_add_cflags in
15486 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15488 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15489 && test -z "${cf_tst_cflags}" \
15490 && cf_fix_cppflags=yes
15492 if test $cf_fix_cppflags = yes ; then
15493 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15495 elif test "${cf_tst_cflags}" = "\"'" ; then
15496 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15501 case "$CPPFLAGS" in
15502 *$cf_add_cflags) #(vi
15505 case $cf_add_cflags in #(vi
15507 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15509 CPPFLAGS=`echo "$CPPFLAGS" | \
15510 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15511 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15515 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15520 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15525 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15527 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15529 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15530 && test -z "${cf_tst_cflags}" \
15531 && cf_fix_cppflags=no
15536 if test -n "$cf_new_cflags" ; then
15538 CFLAGS="$CFLAGS $cf_new_cflags"
15541 if test -n "$cf_new_cppflags" ; then
15543 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15546 if test -n "$cf_new_extra_cppflags" ; then
15548 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15556 if test "$with_dbmalloc" = yes ; then
15557 echo "$as_me:15557: checking for dbmalloc.h" >&5
15558 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
15559 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
15560 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 cat >conftest.$ac_ext <<_ACEOF
15563 #line 15563 "configure"
15564 #include "confdefs.h"
15565 #include <dbmalloc.h>
15567 if { (eval echo "$as_me:15567: \"$ac_cpp conftest.$ac_ext\"") >&5
15568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15570 egrep -v '^ *\+' conftest.er1 >conftest.err
15572 cat conftest.err >&5
15573 echo "$as_me:15573: \$? = $ac_status" >&5
15574 (exit $ac_status); } >/dev/null; then
15575 if test -s conftest.err; then
15576 ac_cpp_err=$ac_c_preproc_warn_flag
15583 if test -z "$ac_cpp_err"; then
15584 ac_cv_header_dbmalloc_h=yes
15586 echo "$as_me: failed program was:" >&5
15587 cat conftest.$ac_ext >&5
15588 ac_cv_header_dbmalloc_h=no
15590 rm -f conftest.err conftest.$ac_ext
15592 echo "$as_me:15592: result: $ac_cv_header_dbmalloc_h" >&5
15593 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
15594 if test $ac_cv_header_dbmalloc_h = yes; then
15596 echo "$as_me:15596: checking for debug_malloc in -ldbmalloc" >&5
15597 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
15598 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15601 ac_check_lib_save_LIBS=$LIBS
15602 LIBS="-ldbmalloc $LIBS"
15603 cat >conftest.$ac_ext <<_ACEOF
15604 #line 15604 "configure"
15605 #include "confdefs.h"
15607 /* Override any gcc2 internal prototype to avoid an error. */
15611 /* We use char because int might match the return type of a gcc2
15612 builtin and then its argument prototype would still apply. */
15613 char debug_malloc ();
15622 rm -f conftest.$ac_objext conftest$ac_exeext
15623 if { (eval echo "$as_me:15623: \"$ac_link\"") >&5
15624 (eval $ac_link) 2>&5
15626 echo "$as_me:15626: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
15628 { ac_try='test -s conftest$ac_exeext'
15629 { (eval echo "$as_me:15629: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15632 echo "$as_me:15632: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 ac_cv_lib_dbmalloc_debug_malloc=yes
15636 echo "$as_me: failed program was:" >&5
15637 cat conftest.$ac_ext >&5
15638 ac_cv_lib_dbmalloc_debug_malloc=no
15640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15641 LIBS=$ac_check_lib_save_LIBS
15643 echo "$as_me:15643: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
15644 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
15645 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
15646 cat >>confdefs.h <<EOF
15647 #define HAVE_LIBDBMALLOC 1
15650 LIBS="-ldbmalloc $LIBS"
15658 echo "$as_me:15658: checking if you want to use valgrind for testing" >&5
15659 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
15661 # Check whether --with-valgrind or --without-valgrind was given.
15662 if test "${with_valgrind+set}" = set; then
15663 withval="$with_valgrind"
15665 cat >>confdefs.h <<EOF
15666 #define USE_VALGRIND 1
15669 : ${with_cflags:=-g}
15670 : ${with_no_leaks:=yes}
15675 echo "$as_me:15675: result: ${with_valgrind:-no}" >&5
15676 echo "${ECHO_T}${with_valgrind:-no}" >&6
15678 case .$with_cflags in #(vi
15680 case .$CFLAGS in #(vi
15688 cf_new_extra_cppflags=
15690 for cf_add_cflags in -g
15692 case $cf_fix_cppflags in
15694 case $cf_add_cflags in #(vi
15695 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
15696 case $cf_add_cflags in
15698 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15700 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15701 && test -z "${cf_tst_cflags}" \
15702 && cf_fix_cppflags=yes
15704 if test $cf_fix_cppflags = yes ; then
15705 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15707 elif test "${cf_tst_cflags}" = "\"'" ; then
15708 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15713 case "$CPPFLAGS" in
15714 *$cf_add_cflags) #(vi
15717 case $cf_add_cflags in #(vi
15719 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15721 CPPFLAGS=`echo "$CPPFLAGS" | \
15722 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15723 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15727 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15732 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15737 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15739 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15741 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15742 && test -z "${cf_tst_cflags}" \
15743 && cf_fix_cppflags=no
15748 if test -n "$cf_new_cflags" ; then
15750 CFLAGS="$CFLAGS $cf_new_cflags"
15753 if test -n "$cf_new_cppflags" ; then
15755 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15758 if test -n "$cf_new_extra_cppflags" ; then
15760 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15768 echo "$as_me:15768: checking if you want to perform memory-leak testing" >&5
15769 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
15771 # Check whether --enable-leaks or --disable-leaks was given.
15772 if test "${enable_leaks+set}" = set; then
15773 enableval="$enable_leaks"
15774 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
15776 : ${with_no_leaks:=no}
15778 echo "$as_me:15778: result: $with_no_leaks" >&5
15779 echo "${ECHO_T}$with_no_leaks" >&6
15781 if test "$with_no_leaks" = yes ; then
15783 cat >>confdefs.h <<\EOF
15787 cat >>confdefs.h <<\EOF
15788 #define YY_NO_LEAKS 1
15794 echo "$as_me:15794: checking for an rpath option" >&5
15795 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
15796 case $cf_cv_system_name in #(vi
15798 if test "$GCC" = yes; then
15799 LD_RPATH_OPT="-Wl,-rpath,"
15801 LD_RPATH_OPT="-rpath "
15804 linux*|gnu*|k*bsd*-gnu) #(vi
15805 LD_RPATH_OPT="-Wl,-rpath,"
15807 openbsd[2-9].*|mirbsd*) #(vi
15808 LD_RPATH_OPT="-Wl,-rpath,"
15810 dragonfly*|freebsd*) #(vi
15811 LD_RPATH_OPT="-rpath "
15814 LD_RPATH_OPT="-Wl,-rpath,"
15817 LD_RPATH_OPT="-rpath "
15825 echo "$as_me:15825: result: $LD_RPATH_OPT" >&5
15826 echo "${ECHO_T}$LD_RPATH_OPT" >&6
15828 case "x$LD_RPATH_OPT" in #(vi
15830 echo "$as_me:15830: checking if we need a space after rpath option" >&5
15831 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
15832 cf_save_LIBS="$LIBS"
15833 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
15834 cat >conftest.$ac_ext <<_ACEOF
15835 #line 15835 "configure"
15836 #include "confdefs.h"
15846 rm -f conftest.$ac_objext conftest$ac_exeext
15847 if { (eval echo "$as_me:15847: \"$ac_link\"") >&5
15848 (eval $ac_link) 2>&5
15850 echo "$as_me:15850: \$? = $ac_status" >&5
15851 (exit $ac_status); } &&
15852 { ac_try='test -s conftest$ac_exeext'
15853 { (eval echo "$as_me:15853: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15856 echo "$as_me:15856: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15860 echo "$as_me: failed program was:" >&5
15861 cat conftest.$ac_ext >&5
15864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15865 LIBS="$cf_save_LIBS"
15866 echo "$as_me:15866: result: $cf_rpath_space" >&5
15867 echo "${ECHO_T}$cf_rpath_space" >&6
15868 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
15872 echo "$as_me:15872: checking if rpath-hack should be disabled" >&5
15873 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
15875 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
15876 if test "${enable_rpath_hack+set}" = set; then
15877 enableval="$enable_rpath_hack"
15878 test "$enableval" != no && enableval=yes
15879 if test "$enableval" != "yes" ; then
15880 cf_disable_rpath_hack=yes
15882 cf_disable_rpath_hack=no
15886 cf_disable_rpath_hack=no
15889 echo "$as_me:15889: result: $cf_disable_rpath_hack" >&5
15890 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
15891 if test "$cf_disable_rpath_hack" = no ; then
15893 echo "$as_me:15893: checking for updated LDFLAGS" >&5
15894 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
15895 if test -n "$LD_RPATH_OPT" ; then
15896 echo "$as_me:15896: result: maybe" >&5
15897 echo "${ECHO_T}maybe" >&6
15901 # Extract the first word of "$ac_prog", so it can be a program name with args.
15902 set dummy $ac_prog; ac_word=$2
15903 echo "$as_me:15903: checking for $ac_word" >&5
15904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15905 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
15906 echo $ECHO_N "(cached) $ECHO_C" >&6
15908 if test -n "$cf_ldd_prog"; then
15909 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
15911 ac_save_IFS=$IFS; IFS=$ac_path_separator
15913 for ac_dir in $ac_dummy; do
15915 test -z "$ac_dir" && ac_dir=.
15916 $as_executable_p "$ac_dir/$ac_word" || continue
15917 ac_cv_prog_cf_ldd_prog="$ac_prog"
15918 echo "$as_me:15918: found $ac_dir/$ac_word" >&5
15924 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
15925 if test -n "$cf_ldd_prog"; then
15926 echo "$as_me:15926: result: $cf_ldd_prog" >&5
15927 echo "${ECHO_T}$cf_ldd_prog" >&6
15929 echo "$as_me:15929: result: no" >&5
15930 echo "${ECHO_T}no" >&6
15933 test -n "$cf_ldd_prog" && break
15935 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
15937 cf_rpath_list="/usr/lib /lib"
15938 if test "$cf_ldd_prog" != no
15942 cat >conftest.$ac_ext <<_ACEOF
15943 #line 15943 "configure"
15944 #include "confdefs.h"
15954 rm -f conftest.$ac_objext conftest$ac_exeext
15955 if { (eval echo "$as_me:15955: \"$ac_link\"") >&5
15956 (eval $ac_link) 2>&5
15958 echo "$as_me:15958: \$? = $ac_status" >&5
15959 (exit $ac_status); } &&
15960 { ac_try='test -s conftest$ac_exeext'
15961 { (eval echo "$as_me:15961: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15964 echo "$as_me:15964: \$? = $ac_status" >&5
15965 (exit $ac_status); }; }; then
15966 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort -u`
15967 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort -u`
15969 echo "$as_me: failed program was:" >&5
15970 cat conftest.$ac_ext >&5
15972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15974 # If we passed the link-test, but get a "not found" on a given library,
15975 # this could be due to inept reconfiguration of gcc to make it only
15976 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
15977 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
15978 # /usr/local libraries.
15979 if test -n "$cf_rpath_oops"
15981 for cf_rpath_src in $cf_rpath_oops
15983 for cf_rpath_dir in \
15988 if test -f $cf_rpath_dir/lib/$cf_rpath_src
15990 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
15992 echo "${as_me:-configure}:15992: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
15994 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
16002 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
16004 echo "${as_me:-configure}:16004: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
16006 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
16008 echo "${as_me:-configure}:16008: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
16011 for cf_rpath_src in $LDFLAGS
16013 case $cf_rpath_src in #(vi
16016 # check if this refers to a directory which we will ignore
16018 if test -n "$cf_rpath_list"
16020 for cf_rpath_item in $cf_rpath_list
16022 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
16030 if test "$cf_rpath_skip" = no
16032 # transform the option
16033 if test "$LD_RPATH_OPT" = "-R " ; then
16034 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
16036 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
16039 # if we have not already added this, add it now
16040 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
16041 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
16043 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
16045 echo "${as_me:-configure}:16045: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
16047 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
16052 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
16054 LDFLAGS=$cf_rpath_dst
16056 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
16058 echo "${as_me:-configure}:16058: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
16060 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
16062 echo "${as_me:-configure}:16062: testing ...checking LIBS $LIBS ..." 1>&5
16065 for cf_rpath_src in $LIBS
16067 case $cf_rpath_src in #(vi
16070 # check if this refers to a directory which we will ignore
16072 if test -n "$cf_rpath_list"
16074 for cf_rpath_item in $cf_rpath_list
16076 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
16084 if test "$cf_rpath_skip" = no
16086 # transform the option
16087 if test "$LD_RPATH_OPT" = "-R " ; then
16088 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
16090 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
16093 # if we have not already added this, add it now
16094 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
16095 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
16097 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
16099 echo "${as_me:-configure}:16099: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
16101 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
16106 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
16110 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
16112 echo "${as_me:-configure}:16112: testing ...checked LIBS $LIBS ..." 1>&5
16114 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
16116 echo "${as_me:-configure}:16116: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
16125 ac_config_files="$ac_config_files Makefile"
16126 ac_config_commands="$ac_config_commands default"
16127 cat >confcache <<\_ACEOF
16128 # This file is a shell script that caches the results of configure
16129 # tests run on this system so they can be shared between configure
16130 # scripts and configure runs, see configure's option --config-cache.
16131 # It is not useful on other systems. If it contains results you don't
16132 # want to keep, you may remove or edit it.
16134 # config.status only pays attention to the cache file if you give it
16135 # the --recheck option to rerun configure.
16137 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16138 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16139 # following values.
16143 # The following way of writing the cache mishandles newlines in values,
16144 # but we know of no workaround that is simple, portable, and efficient.
16145 # So, don't put newlines in cache variables' values.
16146 # Ultrix sh set writes to stderr and can't be redirected directly,
16147 # and sets the high bit in the cache file unless we assign to the vars.
16150 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16152 # `set' does not quote correctly, so add quotes (double-quote
16153 # substitution turns \\\\ into \\, and sed turns \\ into \).
16156 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16159 # `set' quotes correctly as required by POSIX, so do not add quotes.
16161 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16168 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16170 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16172 if cmp -s $cache_file confcache; then :; else
16173 if test -w $cache_file; then
16174 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16175 cat confcache >$cache_file
16177 echo "not updating unwritable cache $cache_file"
16182 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16183 # Let make expand exec_prefix.
16184 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16186 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16187 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16188 # trailing colons and then remove the whole line if VPATH becomes empty
16189 # (actually we leave an empty line to preserve line numbers).
16190 if test "x$srcdir" = x.; then
16191 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16192 s/:*\$(srcdir):*/:/;
16193 s/:*\${srcdir}:*/:/;
16195 s/^\([^=]*=[ ]*\):*/\1/;
16201 DEFS=-DHAVE_CONFIG_H
16203 : ${CONFIG_STATUS=./config.status}
16204 ac_clean_files_save=$ac_clean_files
16205 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16206 { echo "$as_me:16206: creating $CONFIG_STATUS" >&5
16207 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16208 cat >$CONFIG_STATUS <<_ACEOF
16210 # Generated automatically by configure.
16211 # Run this file to recreate the current configuration.
16212 # Compiler output produced by configure, useful for debugging
16213 # configure, is in config.log if it exists.
16216 SHELL=\${CONFIG_SHELL-$SHELL}
16217 ac_cs_invocation="\$0 \$@"
16221 cat >>$CONFIG_STATUS <<\_ACEOF
16222 # Be Bourne compatible
16223 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16226 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16230 # Name of the executable.
16231 as_me=`echo "$0" |sed 's,.*[\\/],,'`
16233 if expr a : '\(a\)' >/dev/null 2>&1; then
16239 rm -f conf$$ conf$$.exe conf$$.file
16241 if ln -s conf$$.file conf$$ 2>/dev/null; then
16242 # We could just check for DJGPP; but this test a) works b) is more generic
16243 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16244 if test -f conf$$.exe; then
16245 # Don't use ln at all; we don't have any links
16250 elif ln conf$$.file conf$$ 2>/dev/null; then
16255 rm -f conf$$ conf$$.exe conf$$.file
16257 as_executable_p="test -f"
16259 # Support unset when possible.
16260 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16267 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
16268 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
16269 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
16270 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
16271 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
16272 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
16273 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
16274 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
16277 # We need space, tab and new line, in precisely that order.
16283 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
16289 # Files that config.status was made for.
16290 if test -n "$ac_config_files"; then
16291 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16294 if test -n "$ac_config_headers"; then
16295 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16298 if test -n "$ac_config_links"; then
16299 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16302 if test -n "$ac_config_commands"; then
16303 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16306 cat >>$CONFIG_STATUS <<\EOF
16309 \`$as_me' instantiates files from templates according to the
16310 current configuration.
16312 Usage: $0 [OPTIONS] [FILE]...
16314 -h, --help print this help, then exit
16315 -V, --version print version number, then exit
16316 -d, --debug don't remove temporary files
16317 --recheck update $as_me by reconfiguring in the same conditions
16318 --file=FILE[:TEMPLATE]
16319 instantiate the configuration file FILE
16320 --header=FILE[:TEMPLATE]
16321 instantiate the configuration header FILE
16323 Configuration files:
16326 Configuration headers:
16329 Configuration commands:
16332 Report bugs to <dickey@invisible-island.net>."
16335 cat >>$CONFIG_STATUS <<EOF
16338 configured by $0, generated by GNU Autoconf 2.52.20121002,
16339 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16341 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16342 Free Software Foundation, Inc.
16343 This config.status script is free software; the Free Software Foundation
16344 gives unlimited permission to copy, distribute and modify it."
16349 cat >>$CONFIG_STATUS <<\EOF
16350 # If no file are specified by the user, then we need to provide default
16351 # value. By we need to know if files were specified by the user.
16357 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16358 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16360 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16364 *) # This is not an option, so the user has probably given explicit
16366 ac_need_defaults=false;;
16370 # Handling of the options.
16372 cat >>$CONFIG_STATUS <<EOF
16373 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16374 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16375 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16377 cat >>$CONFIG_STATUS <<\EOF
16378 --version | --vers* | -V )
16379 echo "$ac_cs_version"; exit 0 ;;
16381 # Conflict between --help and --header
16382 { { echo "$as_me:16382: error: ambiguous option: $1
16383 Try \`$0 --help' for more information." >&5
16384 echo "$as_me: error: ambiguous option: $1
16385 Try \`$0 --help' for more information." >&2;}
16386 { (exit 1); exit 1; }; };;
16387 --help | --hel | -h )
16388 echo "$ac_cs_usage"; exit 0 ;;
16389 --debug | --d* | -d )
16391 --file | --fil | --fi | --f )
16393 CONFIG_FILES="$CONFIG_FILES $1"
16394 ac_need_defaults=false;;
16395 --header | --heade | --head | --hea )
16397 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16398 ac_need_defaults=false;;
16400 # This is an error.
16401 -*) { { echo "$as_me:16401: error: unrecognized option: $1
16402 Try \`$0 --help' for more information." >&5
16403 echo "$as_me: error: unrecognized option: $1
16404 Try \`$0 --help' for more information." >&2;}
16405 { (exit 1); exit 1; }; } ;;
16407 *) ac_config_targets="$ac_config_targets $1" ;;
16416 ## ----------------------- ##
16417 ## Running config.status. ##
16418 ## ----------------------- ##
16420 This file was extended by $as_me 2.52.20121002, executed with
16421 CONFIG_FILES = $CONFIG_FILES
16422 CONFIG_HEADERS = $CONFIG_HEADERS
16423 CONFIG_LINKS = $CONFIG_LINKS
16424 CONFIG_COMMANDS = $CONFIG_COMMANDS
16425 > $ac_cs_invocation
16426 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16431 cat >>$CONFIG_STATUS <<EOF
16433 # INIT-COMMANDS section.
16443 cat >>$CONFIG_STATUS <<\EOF
16444 for ac_config_target in $ac_config_targets
16446 case "$ac_config_target" in
16447 # Handling of arguments.
16448 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16449 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16450 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
16451 *) { { echo "$as_me:16451: error: invalid argument: $ac_config_target" >&5
16452 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16453 { (exit 1); exit 1; }; };;
16457 # If the user did not use the arguments to specify the items to instantiate,
16458 # then the envvar interface is used. Set only those that are not.
16459 # We use the long form for the default assignment because of an extremely
16460 # bizarre bug on SunOS 4.1.3.
16461 if $ac_need_defaults; then
16462 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16463 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16464 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16467 # Create a temporary directory, and hook for its removal unless debugging.
16470 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16471 trap '{ (exit 1); exit 1; }' 1 2 13 15
16474 # Create a (secure) tmp directory for tmp files.
16477 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16478 test -n "$tmp" && test -d "$tmp"
16481 tmp=$TMPDIR/cs$$-$RANDOM
16482 (umask 077 && mkdir $tmp)
16485 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16486 { (exit 1); exit 1; }
16491 cat >>$CONFIG_STATUS <<EOF
16494 # CONFIG_FILES section.
16497 # No need to generate the scripts if there are no CONFIG_FILES.
16498 # This happens for instance when ./config.status config.h
16499 if test -n "\$CONFIG_FILES"; then
16500 # Protect against being on the right side of a sed subst in config.status.
16501 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16502 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16503 s,@SHELL@,$SHELL,;t t
16504 s,@exec_prefix@,$exec_prefix,;t t
16505 s,@prefix@,$prefix,;t t
16506 s,@program_transform_name@,$program_transform_name,;t t
16507 s,@bindir@,$bindir,;t t
16508 s,@sbindir@,$sbindir,;t t
16509 s,@libexecdir@,$libexecdir,;t t
16510 s,@datarootdir@,$datarootdir,;t t
16511 s,@datadir@,$datadir,;t t
16512 s,@sysconfdir@,$sysconfdir,;t t
16513 s,@sharedstatedir@,$sharedstatedir,;t t
16514 s,@localstatedir@,$localstatedir,;t t
16515 s,@libdir@,$libdir,;t t
16516 s,@includedir@,$includedir,;t t
16517 s,@oldincludedir@,$oldincludedir,;t t
16518 s,@infodir@,$infodir,;t t
16519 s,@mandir@,$mandir,;t t
16520 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16521 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16522 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16523 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16524 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16525 s,@build_alias@,$build_alias,;t t
16526 s,@host_alias@,$host_alias,;t t
16527 s,@target_alias@,$target_alias,;t t
16528 s,@ECHO_C@,$ECHO_C,;t t
16529 s,@ECHO_N@,$ECHO_N,;t t
16530 s,@ECHO_T@,$ECHO_T,;t t
16531 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16532 s,@DEFS@,$DEFS,;t t
16533 s,@LIBS@,$LIBS,;t t
16534 s,@build@,$build,;t t
16535 s,@build_cpu@,$build_cpu,;t t
16536 s,@build_vendor@,$build_vendor,;t t
16537 s,@build_os@,$build_os,;t t
16538 s,@host@,$host,;t t
16539 s,@host_cpu@,$host_cpu,;t t
16540 s,@host_vendor@,$host_vendor,;t t
16541 s,@host_os@,$host_os,;t t
16542 s,@SET_MAKE@,$SET_MAKE,;t t
16544 s,@CFLAGS@,$CFLAGS,;t t
16545 s,@LDFLAGS@,$LDFLAGS,;t t
16546 s,@CPPFLAGS@,$CPPFLAGS,;t t
16547 s,@ac_ct_CC@,$ac_ct_CC,;t t
16548 s,@EXEEXT@,$EXEEXT,;t t
16549 s,@OBJEXT@,$OBJEXT,;t t
16550 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
16553 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16554 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16555 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16556 s,@LINT@,$LINT,;t t
16557 s,@LINT_OPTS@,$LINT_OPTS,;t t
16558 s,@CTAGS@,$CTAGS,;t t
16559 s,@ETAGS@,$ETAGS,;t t
16560 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
16561 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
16562 s,@MATH_LIB@,$MATH_LIB,;t t
16563 s,@top_builddir@,$top_builddir,;t t
16564 s,@CC_G_OPT@,$CC_G_OPT,;t t
16565 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
16566 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
16567 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
16568 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
16570 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
16571 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
16572 s,@LD_MODEL@,$LD_MODEL,;t t
16573 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
16574 s,@LIBTOOL@,$LIBTOOL,;t t
16575 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
16576 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
16577 s,@LIB_LINK@,$LIB_LINK,;t t
16578 s,@LINK_TESTS@,$LINK_TESTS,;t t
16579 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
16580 s,@PTHREAD@,$PTHREAD,;t t
16581 s,@TEST_ARGS@,$TEST_ARGS,;t t
16582 s,@TEST_DEPS@,$TEST_DEPS,;t t
16583 s,@TEST_LIBS@,$TEST_LIBS,;t t
16584 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
16585 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
16586 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
16587 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
16588 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16589 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
16590 s,@ECHO_LT@,$ECHO_LT,;t t
16591 s,@ECHO_LD@,$ECHO_LD,;t t
16592 s,@RULE_CC@,$RULE_CC,;t t
16593 s,@SHOW_CC@,$SHOW_CC,;t t
16594 s,@ECHO_CC@,$ECHO_CC,;t t
16595 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
16596 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
16597 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
16598 s,@X_CFLAGS@,$X_CFLAGS,;t t
16599 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16600 s,@X_LIBS@,$X_LIBS,;t t
16601 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16602 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
16603 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
16604 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
16605 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
16606 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
16611 cat >>$CONFIG_STATUS <<\EOF
16612 # Split the substitutions into bite-sized pieces for seds with
16613 # small command number limits, like on Digital OSF/1 and HP-UX.
16614 ac_max_sed_lines=48
16615 ac_sed_frag=1 # Number of current file.
16616 ac_beg=1 # First line for current file.
16617 ac_end=$ac_max_sed_lines # Line after last line for current file.
16620 while $ac_more_lines; do
16621 if test $ac_beg -gt 1; then
16622 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16624 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16626 if test ! -s $tmp/subs.frag; then
16627 ac_more_lines=false
16629 # The purpose of the label and of the branching condition is to
16630 # speed up the sed processing (if there are no `@' at all, there
16631 # is no need to browse any of the substitutions).
16632 # These are the two extra sed commands mentioned above.
16634 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16635 if test -z "$ac_sed_cmds"; then
16636 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16638 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16640 ac_sed_frag=`expr $ac_sed_frag + 1`
16642 ac_end=`expr $ac_end + $ac_max_sed_lines`
16645 if test -z "$ac_sed_cmds"; then
16648 fi # test -n "$CONFIG_FILES"
16651 cat >>$CONFIG_STATUS <<\EOF
16652 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16653 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16655 - | *:- | *:-:* ) # input from stdin
16657 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16658 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16659 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16660 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16661 * ) ac_file_in=$ac_file.in ;;
16664 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16665 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16666 X"$ac_file" : 'X\(//\)[^/]' \| \
16667 X"$ac_file" : 'X\(//\)$' \| \
16668 X"$ac_file" : 'X\(/\)' \| \
16669 . : '\(.\)' 2>/dev/null ||
16671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16673 /^X\(\/\/\)$/{ s//\1/; q; }
16674 /^X\(\/\).*/{ s//\1/; q; }
16676 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16677 { case "$ac_dir" in
16678 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16682 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16683 case $as_mkdir_dir in
16684 # Skip DOS drivespec
16685 ?:) as_incr_dir=$as_mkdir_dir ;;
16687 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16688 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
16693 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
16694 # A "../" for each directory in $ac_dir_suffix.
16695 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
16697 ac_dir_suffix= ac_dots=
16702 if test -z "$ac_dots"; then
16705 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
16707 [\\/]* | ?:[\\/]* )
16708 ac_srcdir=$srcdir$ac_dir_suffix;
16709 ac_top_srcdir=$srcdir ;;
16710 *) # Relative path.
16711 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
16712 ac_top_srcdir=$ac_dots$srcdir ;;
16716 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16717 *) ac_INSTALL=$ac_dots$INSTALL ;;
16720 if test x"$ac_file" != x-; then
16721 { echo "$as_me:16721: creating $ac_file" >&5
16722 echo "$as_me: creating $ac_file" >&6;}
16725 # Let's still pretend it is `configure' which instantiates (i.e., don't
16726 # use $as_me), people would be surprised to read:
16727 # /* config.h. Generated automatically by config.status. */
16728 configure_input="Generated automatically from `echo $ac_file_in |
16729 sed 's,.*/,,'` by configure."
16731 # First look for the input files in the build tree, otherwise in the
16733 ac_file_inputs=`IFS=:
16734 for f in $ac_file_in; do
16736 -) echo $tmp/stdin ;;
16738 # Absolute (can't be DOS-style, as IFS=:)
16739 test -f "$f" || { { echo "$as_me:16739: error: cannot find input file: $f" >&5
16740 echo "$as_me: error: cannot find input file: $f" >&2;}
16741 { (exit 1); exit 1; }; }
16744 if test -f "$f"; then
16747 elif test -f "$srcdir/$f"; then
16752 { { echo "$as_me:16752: error: cannot find input file: $f" >&5
16753 echo "$as_me: error: cannot find input file: $f" >&2;}
16754 { (exit 1); exit 1; }; }
16757 done` || { (exit 1); exit 1; }
16759 cat >>$CONFIG_STATUS <<\EOF
16760 ac_warn_datarootdir=no
16761 if test x"$ac_file" != x-; then
16762 for ac_item in $ac_file_inputs
16764 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
16765 if test -n "$ac_seen"; then
16766 ac_used=`grep '@datarootdir@' $ac_item`
16767 if test -z "$ac_used"; then
16768 { echo "$as_me:16768: WARNING: datarootdir was used implicitly but not set:
16770 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
16772 ac_warn_datarootdir=yes
16775 ac_seen=`grep '${datarootdir}' $ac_item`
16776 if test -n "$ac_seen"; then
16777 { echo "$as_me:16777: WARNING: datarootdir was used explicitly but not set:
16779 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
16781 ac_warn_datarootdir=yes
16786 if test "x$ac_warn_datarootdir" = xyes; then
16787 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
16791 cat >>$CONFIG_STATUS <<EOF
16795 cat >>$CONFIG_STATUS <<\EOF
16797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16798 s,@configure_input@,$configure_input,;t t
16799 s,@srcdir@,$ac_srcdir,;t t
16800 s,@top_srcdir@,$ac_top_srcdir,;t t
16801 s,@INSTALL@,$ac_INSTALL,;t t
16802 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16804 if test x"$ac_file" != x-; then
16805 cp $tmp/out $ac_file
16807 for ac_name in prefix exec_prefix datarootdir
16809 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
16810 if test -n "$ac_seen"; then
16811 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
16812 if test -z "$ac_init"; then
16813 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
16814 { echo "$as_me:16814: WARNING: Variable $ac_name is used but was not set:
16816 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
16821 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
16822 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
16823 if test -s $tmp/out; then
16824 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
16825 { echo "$as_me:16825: WARNING: Some variables may not be substituted:
16827 echo "$as_me: WARNING: Some variables may not be substituted:
16837 cat >>$CONFIG_STATUS <<\EOF
16840 # CONFIG_HEADER section.
16843 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16844 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16846 # ac_d sets the value in "#define NAME VALUE" lines.
16847 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16848 ac_dB='[ ].*$,\1#\2'
16851 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16852 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16853 ac_iB='\([ ]\),\1#\2define\3'
16856 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16857 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16858 ac_uB='$,\1#\2define\3'
16862 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16863 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16865 - | *:- | *:-:* ) # input from stdin
16867 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16868 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16869 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16870 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16871 * ) ac_file_in=$ac_file.in ;;
16874 test x"$ac_file" != x- && { echo "$as_me:16874: creating $ac_file" >&5
16875 echo "$as_me: creating $ac_file" >&6;}
16877 # First look for the input files in the build tree, otherwise in the
16879 ac_file_inputs=`IFS=:
16880 for f in $ac_file_in; do
16882 -) echo $tmp/stdin ;;
16884 # Absolute (can't be DOS-style, as IFS=:)
16885 test -f "$f" || { { echo "$as_me:16885: error: cannot find input file: $f" >&5
16886 echo "$as_me: error: cannot find input file: $f" >&2;}
16887 { (exit 1); exit 1; }; }
16890 if test -f "$f"; then
16893 elif test -f "$srcdir/$f"; then
16898 { { echo "$as_me:16898: error: cannot find input file: $f" >&5
16899 echo "$as_me: error: cannot find input file: $f" >&2;}
16900 { (exit 1); exit 1; }; }
16903 done` || { (exit 1); exit 1; }
16904 # Remove the trailing spaces.
16905 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16909 # Transform confdefs.h into a list of #define's. We won't use it as a sed
16910 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
16911 # be either 'cat' or 'sort'.
16912 cat confdefs.h | uniq >conftest.vals
16914 # Break up conftest.vals because some shells have a limit on
16915 # the size of here documents, and old seds have small limits too.
16917 rm -f conftest.tail
16918 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
16919 while grep . conftest.vals >/dev/null
16921 # Write chunks of a limited-size here document to conftest.frag.
16922 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
16923 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
16924 echo 'CEOF' >> $CONFIG_STATUS
16925 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16926 rm -f conftest.vals
16927 mv conftest.tail conftest.vals
16929 rm -f conftest.vals
16931 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
16933 echo ' cat >> conftest.edit <<CEOF
16934 /@DEFS@/r conftest.frag
16937 sed -f conftest.edit $tmp/in > $tmp/out
16939 mv $tmp/out $tmp/in
16940 rm -f conftest.edit conftest.frag
16941 ' >> $CONFIG_STATUS
16943 cat >>$CONFIG_STATUS <<\EOF
16944 # Let's still pretend it is `configure' which instantiates (i.e., don't
16945 # use $as_me), people would be surprised to read:
16946 # /* config.h. Generated automatically by config.status. */
16947 if test x"$ac_file" = x-; then
16948 echo "/* Generated automatically by configure. */" >$tmp/config.h
16950 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
16952 cat $tmp/in >>$tmp/config.h
16954 if test x"$ac_file" != x-; then
16955 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16956 { echo "$as_me:16956: $ac_file is unchanged" >&5
16957 echo "$as_me: $ac_file is unchanged" >&6;}
16959 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16960 X"$ac_file" : 'X\(//\)[^/]' \| \
16961 X"$ac_file" : 'X\(//\)$' \| \
16962 X"$ac_file" : 'X\(/\)' \| \
16963 . : '\(.\)' 2>/dev/null ||
16965 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16966 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16967 /^X\(\/\/\)$/{ s//\1/; q; }
16968 /^X\(\/\).*/{ s//\1/; q; }
16970 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16971 { case "$ac_dir" in
16972 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16976 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16977 case $as_mkdir_dir in
16978 # Skip DOS drivespec
16979 ?:) as_incr_dir=$as_mkdir_dir ;;
16981 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16982 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
16989 mv $tmp/config.h $ac_file
16993 rm -f $tmp/config.h
16997 cat >>$CONFIG_STATUS <<\EOF
16999 # CONFIG_COMMANDS section.
17001 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17002 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17003 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17010 if test ! -d $srcdir/$cf_dir; then
17012 elif test -f $srcdir/$cf_dir/programs; then
17013 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
17017 cat >>Makefile <<TEST_EOF
17019 # These rules are generated so we do not rely on suffix rules, which do not
17020 # work consistently for different make-programs (the '\$(MODEL)/' confuses
17021 # some, and the '\$x' confuses others).
17024 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
17027 cat >>Makefile <<TEST_EOF
17029 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
17030 \$(srcdir)/test.priv.h \\
17033 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) \$(srcdir)/$N.c
17037 if test -f ../config.guess && test -f ../config.sub
17039 cat >>Makefile <<TEST_EOF
17041 # if we used CF_INHERIT for getting these files, we can remove them
17043 rm -f config.guess config.sub
17051 cat >>$CONFIG_STATUS <<\EOF
17053 { (exit 0); exit 0; }
17055 chmod +x $CONFIG_STATUS
17056 ac_clean_files=$ac_clean_files_save
17058 # configure is writing to config.log, and then calls config.status.
17059 # config.status does its own redirection, appending to config.log.
17060 # Unfortunately, on DOS this fails, as config.log is still kept open
17061 # by configure, so config.status won't be able to write to it; its
17062 # output is simply discarded. So we exec the FD to /dev/null,
17063 # effectively closing config.log, so it can be properly (re)opened and
17064 # appended to by config.status. When coming back to configure, we
17065 # need to make the FD available again.
17066 if test "$no_create" != yes; then
17069 $SHELL $CONFIG_STATUS || ac_cs_success=false
17071 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17072 # would make configure fail if this is the last instruction.
17073 $ac_cs_success || { (exit 1); exit 1; }