2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20170501.
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 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
651 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
654 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
655 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
657 --enable-string-hacks work around bogus compiler/loader warnings
659 --with-pkg-config{=path} enable/disable use of pkg-config
660 --disable-echo do not display "compiling" commands
661 Curses Version-dependent Options:
662 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
663 --disable-widec disable checks for wide-character functions
664 --with-curses-dir=DIR directory in which (n)curses is installed
665 --with-screen=XXX use specified curses-libraries
666 --with-ncursesw use wide ncurses-libraries
667 --with-ncurses use ncurses-libraries
668 --with-pdcurses compile/link with pdcurses X11 library
669 --with-curses-colr compile/link with HPUX 10.x color-curses
670 --with-curses-5lib compile/link with SunOS 5lib curses
671 --with-Xaw3d link with Xaw 3d library
672 --with-Xaw3dxft link with Xaw 3d xft library
673 --with-neXtaw link with neXT Athena library
674 --with-XawPlus link with Athena-Plus library
675 --with-x use the X Window System
676 Testing/development Options:
677 --enable-warnings test: turn on gcc compiler warnings
678 --with-dmalloc test: use Gray Watson's dmalloc library
679 --with-dbmalloc test: use Conor Cahill's dbmalloc library
680 --with-valgrind test: use valgrind
681 --disable-leaks test: free permanent memory, analyze leaks
682 --disable-rpath-hack don't add rpath options for additional libraries
684 Some influential environment variables:
685 CC C compiler command
686 CFLAGS C compiler flags
687 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
688 nonstandard directory <lib dir>
689 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
690 headers in a nonstandard directory <include dir>
693 Use these variables to override the choices made by `configure' or to help
694 it to find libraries and programs with nonstandard names/locations.
699 if test "$ac_init_help" = "recursive"; then
700 # If there are subdirs, report their specific --help.
702 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
704 # A "../" for each directory in /$ac_subdir.
705 ac_dots=`echo $ac_subdir |
706 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
709 .) # No --srcdir option. We are building in place.
710 ac_sub_srcdir=$srcdir ;;
711 [\\/]* | ?:[\\/]* ) # Absolute path.
712 ac_sub_srcdir=$srcdir/$ac_subdir ;;
714 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
717 # Check for guested configure; otherwise get Cygnus style configure.
718 if test -f $ac_sub_srcdir/configure.gnu; then
720 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
721 elif test -f $ac_sub_srcdir/configure; then
723 $SHELL $ac_sub_srcdir/configure --help=recursive
724 elif test -f $ac_sub_srcdir/configure.ac ||
725 test -f $ac_sub_srcdir/configure.in; then
729 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
735 test -n "$ac_init_help" && exit 0
736 if $ac_init_version; then
739 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
740 Free Software Foundation, Inc.
741 This configure script is free software; the Free Software Foundation
742 gives unlimited permission to copy, distribute and modify it.
748 This file contains any messages produced by compilers while
749 running configure, to aid debugging if configure makes a mistake.
751 It was created by $as_me, which was
752 generated by GNU Autoconf 2.52.20170501. Invocation command line was
763 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
764 uname -m = `(uname -m) 2>/dev/null || echo unknown`
765 uname -r = `(uname -r) 2>/dev/null || echo unknown`
766 uname -s = `(uname -s) 2>/dev/null || echo unknown`
767 uname -v = `(uname -v) 2>/dev/null || echo unknown`
769 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
770 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
772 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
773 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
774 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
775 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
776 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
777 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
778 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
792 # Keep a trace of the command line.
793 # Strip out --no-create and --no-recursion so they do not pile up.
794 # Also quote any args containing shell meta-characters.
800 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
801 | --no-cr | --no-c) ;;
802 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
803 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
804 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
805 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
806 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
808 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
811 # Get rid of the leading space.
814 # When interrupted or exit'd, cleanup temporary files, and complete
815 # config.log. We remove comments because anyway the quotes in there
816 # would cause problems or look ugly.
818 # Save into config.log some information that might help in debugging.
820 echo "## ----------------- ##" >&5
821 echo "## Cache variables. ##" >&5
822 echo "## ----------------- ##" >&5
824 # The following way of writing the cache mishandles newlines in values,
827 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
830 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
835 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
839 sed "/^$/d" confdefs.h >conftest.log
840 if test -s conftest.log; then
842 echo "## ------------ ##" >&5
843 echo "## confdefs.h. ##" >&5
844 echo "## ------------ ##" >&5
849 test "$ac_signal" != 0 &&
850 echo "$as_me: caught signal $ac_signal" >&5
851 echo "$as_me: exit $exit_status" >&5
852 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
855 for ac_signal in 1 2 13 15; do
856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
860 # confdefs.h avoids OS command line length limits that DEFS can exceed.
861 rm -rf conftest* confdefs.h
862 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
865 # Let the site file select an alternate cache file if it wants to.
866 # Prefer explicitly selected file to automatically selected ones.
867 if test -z "$CONFIG_SITE"; then
868 if test "x$prefix" != xNONE; then
869 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
871 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
874 for ac_site_file in $CONFIG_SITE; do
875 if test -r "$ac_site_file"; then
876 { echo "$as_me:876: loading site script $ac_site_file" >&5
877 echo "$as_me: loading site script $ac_site_file" >&6;}
878 cat "$ac_site_file" >&5
883 if test -r "$cache_file"; then
884 # Some versions of bash will fail to source /dev/null (special
885 # files actually), so we avoid doing that.
886 if test -f "$cache_file"; then
887 { echo "$as_me:887: loading cache $cache_file" >&5
888 echo "$as_me: loading cache $cache_file" >&6;}
890 [\\/]* | ?:[\\/]* ) . $cache_file;;
895 { echo "$as_me:895: creating cache $cache_file" >&5
896 echo "$as_me: creating cache $cache_file" >&6;}
900 # Check that the precious variables saved in the cache have kept the same
902 ac_cache_corrupted=false
903 for ac_var in `(set) 2>&1 |
904 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
905 eval ac_old_set=\$ac_cv_env_${ac_var}_set
906 eval ac_new_set=\$ac_env_${ac_var}_set
907 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
908 eval ac_new_val="\$ac_env_${ac_var}_value"
909 case $ac_old_set,$ac_new_set in
911 { echo "$as_me:911: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
912 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
913 ac_cache_corrupted=: ;;
915 { echo "$as_me:915: error: \`$ac_var' was not set in the previous run" >&5
916 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
917 ac_cache_corrupted=: ;;
920 if test "x$ac_old_val" != "x$ac_new_val"; then
921 { echo "$as_me:921: error: \`$ac_var' has changed since the previous run:" >&5
922 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
923 { echo "$as_me:923: former value: $ac_old_val" >&5
924 echo "$as_me: former value: $ac_old_val" >&2;}
925 { echo "$as_me:925: current value: $ac_new_val" >&5
926 echo "$as_me: current value: $ac_new_val" >&2;}
930 # Pass precious variables to config.status. It doesn't matter if
931 # we pass some twice (in addition to the command line arguments).
932 if test "$ac_new_set" = set; then
934 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
935 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
936 ac_configure_args="$ac_configure_args '$ac_arg'"
938 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
943 if $ac_cache_corrupted; then
944 { echo "$as_me:944: error: changes in the environment can compromise the build" >&5
945 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
946 { { echo "$as_me:946: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
947 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
948 { (exit 1); exit 1; }; }
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
956 ac_main_return=return
958 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
959 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
961 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
962 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
964 echo "#! $SHELL" >conftest.sh
965 echo "exit 0" >>conftest.sh
967 if { (echo "$as_me:967: PATH=\".;.\"; conftest.sh") >&5
968 (PATH=".;."; conftest.sh) 2>&5
970 echo "$as_me:970: \$? = $ac_status" >&5
971 (exit $ac_status); }; then
972 ac_path_separator=';'
976 PATH_SEPARATOR="$ac_path_separator"
979 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
981 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
983 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
986 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
987 if test -f $ac_dir/install-sh; then
989 ac_install_sh="$ac_aux_dir/install-sh -c"
991 elif test -f $ac_dir/install.sh; then
993 ac_install_sh="$ac_aux_dir/install.sh -c"
995 elif test -f $ac_dir/shtool; then
997 ac_install_sh="$ac_aux_dir/shtool install -c"
1001 if test -z "$ac_aux_dir"; then
1002 { { echo "$as_me:1002: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1003 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1004 { (exit 1); exit 1; }; }
1006 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1007 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1008 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1010 # Make sure we can run config.sub.
1011 $ac_config_sub sun4 >/dev/null 2>&1 ||
1012 { { echo "$as_me:1012: error: cannot run $ac_config_sub" >&5
1013 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1014 { (exit 1); exit 1; }; }
1016 echo "$as_me:1016: checking build system type" >&5
1017 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1018 if test "${ac_cv_build+set}" = set; then
1019 echo $ECHO_N "(cached) $ECHO_C" >&6
1021 ac_cv_build_alias=$build_alias
1022 test -z "$ac_cv_build_alias" &&
1023 ac_cv_build_alias=`$ac_config_guess`
1024 test -z "$ac_cv_build_alias" &&
1025 { { echo "$as_me:1025: error: cannot guess build type; you must specify one" >&5
1026 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1027 { (exit 1); exit 1; }; }
1028 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1029 { { echo "$as_me:1029: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1030 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1031 { (exit 1); exit 1; }; }
1034 echo "$as_me:1034: result: $ac_cv_build" >&5
1035 echo "${ECHO_T}$ac_cv_build" >&6
1037 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1038 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1039 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1041 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1042 echo "$as_me:1042: checking host system type" >&5
1043 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1044 if test "${ac_cv_host+set}" = set; then
1045 echo $ECHO_N "(cached) $ECHO_C" >&6
1047 ac_cv_host_alias=$host_alias
1048 test -z "$ac_cv_host_alias" &&
1049 ac_cv_host_alias=$ac_cv_build_alias
1050 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1051 { { echo "$as_me:1051: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1052 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1053 { (exit 1); exit 1; }; }
1056 echo "$as_me:1056: result: $ac_cv_host" >&5
1057 echo "${ECHO_T}$ac_cv_host" >&6
1059 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1060 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1061 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1063 system_name="$host_os"
1065 system_name="`(uname -s -r) 2>/dev/null`"
1066 if test -z "$system_name" ; then
1067 system_name="`(hostname) 2>/dev/null`"
1070 test -n "$system_name" &&
1071 cat >>confdefs.h <<EOF
1072 #define SYSTEM_NAME "$system_name"
1075 if test "${cf_cv_system_name+set}" = set; then
1076 echo $ECHO_N "(cached) $ECHO_C" >&6
1078 cf_cv_system_name="$system_name"
1081 test -z "$system_name" && system_name="$cf_cv_system_name"
1082 test -n "$cf_cv_system_name" && echo "$as_me:1082: result: Configuring for $cf_cv_system_name" >&5
1083 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1085 if test ".$system_name" != ".$cf_cv_system_name" ; then
1086 echo "$as_me:1086: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1087 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1088 { { echo "$as_me:1088: error: \"Please remove config.cache and try again.\"" >&5
1089 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1090 { (exit 1); exit 1; }; }
1093 test "$program_prefix" != NONE &&
1094 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1095 # Use a double $ so make ignores it.
1096 test "$program_suffix" != NONE &&
1097 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1098 # Double any \ or $. echo might interpret backslashes.
1099 # By default was `s,x,x', remove it if useless.
1100 cat <<\_ACEOF >conftest.sed
1101 s/[\\$]/&&/g;s/;s,x,x,$//
1103 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1106 echo "$as_me:1106: checking whether ${MAKE-make} sets \${MAKE}" >&5
1107 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1108 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1109 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1110 echo $ECHO_N "(cached) $ECHO_C" >&6
1112 cat >conftest.make <<\EOF
1114 @echo 'ac_maketemp="${MAKE}"'
1116 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1117 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1118 if test -n "$ac_maketemp"; then
1119 eval ac_cv_prog_make_${ac_make}_set=yes
1121 eval ac_cv_prog_make_${ac_make}_set=no
1125 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1126 echo "$as_me:1126: result: yes" >&5
1127 echo "${ECHO_T}yes" >&6
1130 echo "$as_me:1130: result: no" >&5
1131 echo "${ECHO_T}no" >&6
1132 SET_MAKE="MAKE=${MAKE-make}"
1136 ac_cpp='$CPP $CPPFLAGS'
1137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1140 ac_main_return=return
1141 if test -n "$ac_tool_prefix"; then
1142 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1143 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1144 echo "$as_me:1144: checking for $ac_word" >&5
1145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1146 if test "${ac_cv_prog_CC+set}" = set; then
1147 echo $ECHO_N "(cached) $ECHO_C" >&6
1149 if test -n "$CC"; then
1150 ac_cv_prog_CC="$CC" # Let the user override the test.
1152 ac_save_IFS=$IFS; IFS=$ac_path_separator
1154 for ac_dir in $ac_dummy; do
1156 test -z "$ac_dir" && ac_dir=.
1157 $as_executable_p "$ac_dir/$ac_word" || continue
1158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1159 echo "$as_me:1159: found $ac_dir/$ac_word" >&5
1166 if test -n "$CC"; then
1167 echo "$as_me:1167: result: $CC" >&5
1168 echo "${ECHO_T}$CC" >&6
1170 echo "$as_me:1170: result: no" >&5
1171 echo "${ECHO_T}no" >&6
1175 if test -z "$ac_cv_prog_CC"; then
1177 # Extract the first word of "gcc", so it can be a program name with args.
1178 set dummy gcc; ac_word=$2
1179 echo "$as_me:1179: checking for $ac_word" >&5
1180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1182 echo $ECHO_N "(cached) $ECHO_C" >&6
1184 if test -n "$ac_ct_CC"; then
1185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1187 ac_save_IFS=$IFS; IFS=$ac_path_separator
1189 for ac_dir in $ac_dummy; do
1191 test -z "$ac_dir" && ac_dir=.
1192 $as_executable_p "$ac_dir/$ac_word" || continue
1193 ac_cv_prog_ac_ct_CC="gcc"
1194 echo "$as_me:1194: found $ac_dir/$ac_word" >&5
1200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1201 if test -n "$ac_ct_CC"; then
1202 echo "$as_me:1202: result: $ac_ct_CC" >&5
1203 echo "${ECHO_T}$ac_ct_CC" >&6
1205 echo "$as_me:1205: result: no" >&5
1206 echo "${ECHO_T}no" >&6
1214 if test -z "$CC"; then
1215 if test -n "$ac_tool_prefix"; then
1216 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1217 set dummy ${ac_tool_prefix}cc; ac_word=$2
1218 echo "$as_me:1218: checking for $ac_word" >&5
1219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1220 if test "${ac_cv_prog_CC+set}" = set; then
1221 echo $ECHO_N "(cached) $ECHO_C" >&6
1223 if test -n "$CC"; then
1224 ac_cv_prog_CC="$CC" # Let the user override the test.
1226 ac_save_IFS=$IFS; IFS=$ac_path_separator
1228 for ac_dir in $ac_dummy; do
1230 test -z "$ac_dir" && ac_dir=.
1231 $as_executable_p "$ac_dir/$ac_word" || continue
1232 ac_cv_prog_CC="${ac_tool_prefix}cc"
1233 echo "$as_me:1233: found $ac_dir/$ac_word" >&5
1240 if test -n "$CC"; then
1241 echo "$as_me:1241: result: $CC" >&5
1242 echo "${ECHO_T}$CC" >&6
1244 echo "$as_me:1244: result: no" >&5
1245 echo "${ECHO_T}no" >&6
1249 if test -z "$ac_cv_prog_CC"; then
1251 # Extract the first word of "cc", so it can be a program name with args.
1252 set dummy cc; ac_word=$2
1253 echo "$as_me:1253: checking for $ac_word" >&5
1254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1256 echo $ECHO_N "(cached) $ECHO_C" >&6
1258 if test -n "$ac_ct_CC"; then
1259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1261 ac_save_IFS=$IFS; IFS=$ac_path_separator
1263 for ac_dir in $ac_dummy; do
1265 test -z "$ac_dir" && ac_dir=.
1266 $as_executable_p "$ac_dir/$ac_word" || continue
1267 ac_cv_prog_ac_ct_CC="cc"
1268 echo "$as_me:1268: found $ac_dir/$ac_word" >&5
1274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1275 if test -n "$ac_ct_CC"; then
1276 echo "$as_me:1276: result: $ac_ct_CC" >&5
1277 echo "${ECHO_T}$ac_ct_CC" >&6
1279 echo "$as_me:1279: result: no" >&5
1280 echo "${ECHO_T}no" >&6
1289 if test -z "$CC"; then
1290 # Extract the first word of "cc", so it can be a program name with args.
1291 set dummy cc; ac_word=$2
1292 echo "$as_me:1292: checking for $ac_word" >&5
1293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1294 if test "${ac_cv_prog_CC+set}" = set; then
1295 echo $ECHO_N "(cached) $ECHO_C" >&6
1297 if test -n "$CC"; then
1298 ac_cv_prog_CC="$CC" # Let the user override the test.
1301 ac_save_IFS=$IFS; IFS=$ac_path_separator
1303 for ac_dir in $ac_dummy; do
1305 test -z "$ac_dir" && ac_dir=.
1306 $as_executable_p "$ac_dir/$ac_word" || continue
1307 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1308 ac_prog_rejected=yes
1312 echo "$as_me:1312: found $ac_dir/$ac_word" >&5
1316 if test $ac_prog_rejected = yes; then
1317 # We found a bogon in the path, so make sure we never use it.
1318 set dummy $ac_cv_prog_CC
1320 if test $# != 0; then
1321 # We chose a different compiler from the bogus one.
1322 # However, it has the same basename, so the bogon will be chosen
1323 # first if we set CC to just the basename; use the full file name.
1325 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1333 if test -n "$CC"; then
1334 echo "$as_me:1334: result: $CC" >&5
1335 echo "${ECHO_T}$CC" >&6
1337 echo "$as_me:1337: result: no" >&5
1338 echo "${ECHO_T}no" >&6
1342 if test -z "$CC"; then
1343 if test -n "$ac_tool_prefix"; then
1346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1348 echo "$as_me:1348: checking for $ac_word" >&5
1349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1350 if test "${ac_cv_prog_CC+set}" = set; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 if test -n "$CC"; then
1354 ac_cv_prog_CC="$CC" # Let the user override the test.
1356 ac_save_IFS=$IFS; IFS=$ac_path_separator
1358 for ac_dir in $ac_dummy; do
1360 test -z "$ac_dir" && ac_dir=.
1361 $as_executable_p "$ac_dir/$ac_word" || continue
1362 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1363 echo "$as_me:1363: found $ac_dir/$ac_word" >&5
1370 if test -n "$CC"; then
1371 echo "$as_me:1371: result: $CC" >&5
1372 echo "${ECHO_T}$CC" >&6
1374 echo "$as_me:1374: result: no" >&5
1375 echo "${ECHO_T}no" >&6
1378 test -n "$CC" && break
1381 if test -z "$CC"; then
1385 # Extract the first word of "$ac_prog", so it can be a program name with args.
1386 set dummy $ac_prog; ac_word=$2
1387 echo "$as_me:1387: checking for $ac_word" >&5
1388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1390 echo $ECHO_N "(cached) $ECHO_C" >&6
1392 if test -n "$ac_ct_CC"; then
1393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1395 ac_save_IFS=$IFS; IFS=$ac_path_separator
1397 for ac_dir in $ac_dummy; do
1399 test -z "$ac_dir" && ac_dir=.
1400 $as_executable_p "$ac_dir/$ac_word" || continue
1401 ac_cv_prog_ac_ct_CC="$ac_prog"
1402 echo "$as_me:1402: found $ac_dir/$ac_word" >&5
1408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1409 if test -n "$ac_ct_CC"; then
1410 echo "$as_me:1410: result: $ac_ct_CC" >&5
1411 echo "${ECHO_T}$ac_ct_CC" >&6
1413 echo "$as_me:1413: result: no" >&5
1414 echo "${ECHO_T}no" >&6
1417 test -n "$ac_ct_CC" && break
1425 test -z "$CC" && { { echo "$as_me:1425: error: no acceptable cc found in \$PATH" >&5
1426 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1427 { (exit 1); exit 1; }; }
1429 # Provide some information about the compiler.
1430 echo "$as_me:1430:" \
1431 "checking for C compiler version" >&5
1432 ac_compiler=`set X $ac_compile; echo $2`
1433 { (eval echo "$as_me:1433: \"$ac_compiler --version </dev/null >&5\"") >&5
1434 (eval $ac_compiler --version </dev/null >&5) 2>&5
1436 echo "$as_me:1436: \$? = $ac_status" >&5
1437 (exit $ac_status); }
1438 { (eval echo "$as_me:1438: \"$ac_compiler -v </dev/null >&5\"") >&5
1439 (eval $ac_compiler -v </dev/null >&5) 2>&5
1441 echo "$as_me:1441: \$? = $ac_status" >&5
1442 (exit $ac_status); }
1443 { (eval echo "$as_me:1443: \"$ac_compiler -V </dev/null >&5\"") >&5
1444 (eval $ac_compiler -V </dev/null >&5) 2>&5
1446 echo "$as_me:1446: \$? = $ac_status" >&5
1447 (exit $ac_status); }
1449 cat >conftest.$ac_ext <<_ACEOF
1450 #line 1450 "configure"
1451 #include "confdefs.h"
1461 ac_clean_files_save=$ac_clean_files
1462 ac_clean_files="$ac_clean_files a.out a.exe"
1463 # Try to create an executable without -o first, disregard a.out.
1464 # It will help us diagnose broken compilers, and finding out an intuition
1466 echo "$as_me:1466: checking for C compiler default output" >&5
1467 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1468 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1469 if { (eval echo "$as_me:1469: \"$ac_link_default\"") >&5
1470 (eval $ac_link_default) 2>&5
1472 echo "$as_me:1472: \$? = $ac_status" >&5
1473 (exit $ac_status); }; then
1474 # Find the output, starting from the most likely. This scheme is
1475 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1477 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1478 ls a.out conftest 2>/dev/null;
1479 ls a.* conftest.* 2>/dev/null`; do
1481 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1482 a.out ) # We found the default executable, but exeext='' is most
1485 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1486 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1493 echo "$as_me: failed program was:" >&5
1494 cat conftest.$ac_ext >&5
1495 { { echo "$as_me:1495: error: C compiler cannot create executables" >&5
1496 echo "$as_me: error: C compiler cannot create executables" >&2;}
1497 { (exit 77); exit 77; }; }
1500 ac_exeext=$ac_cv_exeext
1501 echo "$as_me:1501: result: $ac_file" >&5
1502 echo "${ECHO_T}$ac_file" >&6
1504 # Check the compiler produces executables we can run. If not, either
1505 # the compiler is broken, or we cross compile.
1506 echo "$as_me:1506: checking whether the C compiler works" >&5
1507 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1508 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1509 # If not cross compiling, check that we can run a simple program.
1510 if test "$cross_compiling" != yes; then
1511 if { ac_try='./$ac_file'
1512 { (eval echo "$as_me:1512: \"$ac_try\"") >&5
1515 echo "$as_me:1515: \$? = $ac_status" >&5
1516 (exit $ac_status); }; }; then
1519 if test "$cross_compiling" = maybe; then
1522 { { echo "$as_me:1522: error: cannot run C compiled programs.
1523 If you meant to cross compile, use \`--host'." >&5
1524 echo "$as_me: error: cannot run C compiled programs.
1525 If you meant to cross compile, use \`--host'." >&2;}
1526 { (exit 1); exit 1; }; }
1530 echo "$as_me:1530: result: yes" >&5
1531 echo "${ECHO_T}yes" >&6
1533 rm -f a.out a.exe conftest$ac_cv_exeext
1534 ac_clean_files=$ac_clean_files_save
1535 # Check the compiler produces executables we can run. If not, either
1536 # the compiler is broken, or we cross compile.
1537 echo "$as_me:1537: checking whether we are cross compiling" >&5
1538 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1539 echo "$as_me:1539: result: $cross_compiling" >&5
1540 echo "${ECHO_T}$cross_compiling" >&6
1542 echo "$as_me:1542: checking for executable suffix" >&5
1543 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1544 if { (eval echo "$as_me:1544: \"$ac_link\"") >&5
1545 (eval $ac_link) 2>&5
1547 echo "$as_me:1547: \$? = $ac_status" >&5
1548 (exit $ac_status); }; then
1549 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1550 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1551 # work properly (i.e., refer to `conftest.exe'), while it won't with
1553 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1555 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1556 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1563 { { echo "$as_me:1563: error: cannot compute EXEEXT: cannot compile and link" >&5
1564 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1565 { (exit 1); exit 1; }; }
1568 rm -f conftest$ac_cv_exeext
1569 echo "$as_me:1569: result: $ac_cv_exeext" >&5
1570 echo "${ECHO_T}$ac_cv_exeext" >&6
1572 rm -f conftest.$ac_ext
1573 EXEEXT=$ac_cv_exeext
1575 echo "$as_me:1575: checking for object suffix" >&5
1576 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1577 if test "${ac_cv_objext+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 cat >conftest.$ac_ext <<_ACEOF
1581 #line 1581 "configure"
1582 #include "confdefs.h"
1592 rm -f conftest.o conftest.obj
1593 if { (eval echo "$as_me:1593: \"$ac_compile\"") >&5
1594 (eval $ac_compile) 2>&5
1596 echo "$as_me:1596: \$? = $ac_status" >&5
1597 (exit $ac_status); }; then
1598 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1600 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1606 echo "$as_me: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1608 { { echo "$as_me:1608: error: cannot compute OBJEXT: cannot compile" >&5
1609 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1610 { (exit 1); exit 1; }; }
1613 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1615 echo "$as_me:1615: result: $ac_cv_objext" >&5
1616 echo "${ECHO_T}$ac_cv_objext" >&6
1617 OBJEXT=$ac_cv_objext
1619 echo "$as_me:1619: checking whether we are using the GNU C compiler" >&5
1620 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1621 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 cat >conftest.$ac_ext <<_ACEOF
1625 #line 1625 "configure"
1626 #include "confdefs.h"
1639 rm -f conftest.$ac_objext
1640 if { (eval echo "$as_me:1640: \"$ac_compile\"") >&5
1641 (eval $ac_compile) 2>&5
1643 echo "$as_me:1643: \$? = $ac_status" >&5
1644 (exit $ac_status); } &&
1645 { ac_try='test -s conftest.$ac_objext'
1646 { (eval echo "$as_me:1646: \"$ac_try\"") >&5
1649 echo "$as_me:1649: \$? = $ac_status" >&5
1650 (exit $ac_status); }; }; then
1653 echo "$as_me: failed program was:" >&5
1654 cat conftest.$ac_ext >&5
1657 rm -f conftest.$ac_objext conftest.$ac_ext
1658 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1661 echo "$as_me:1661: result: $ac_cv_c_compiler_gnu" >&5
1662 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1663 GCC=`test $ac_compiler_gnu = yes && echo yes`
1664 ac_test_CFLAGS=${CFLAGS+set}
1665 ac_save_CFLAGS=$CFLAGS
1667 echo "$as_me:1667: checking whether $CC accepts -g" >&5
1668 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1669 if test "${ac_cv_prog_cc_g+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 cat >conftest.$ac_ext <<_ACEOF
1673 #line 1673 "configure"
1674 #include "confdefs.h"
1684 rm -f conftest.$ac_objext
1685 if { (eval echo "$as_me:1685: \"$ac_compile\"") >&5
1686 (eval $ac_compile) 2>&5
1688 echo "$as_me:1688: \$? = $ac_status" >&5
1689 (exit $ac_status); } &&
1690 { ac_try='test -s conftest.$ac_objext'
1691 { (eval echo "$as_me:1691: \"$ac_try\"") >&5
1694 echo "$as_me:1694: \$? = $ac_status" >&5
1695 (exit $ac_status); }; }; then
1698 echo "$as_me: failed program was:" >&5
1699 cat conftest.$ac_ext >&5
1702 rm -f conftest.$ac_objext conftest.$ac_ext
1704 echo "$as_me:1704: result: $ac_cv_prog_cc_g" >&5
1705 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1706 if test "$ac_test_CFLAGS" = set; then
1707 CFLAGS=$ac_save_CFLAGS
1708 elif test $ac_cv_prog_cc_g = yes; then
1709 if test "$GCC" = yes; then
1715 if test "$GCC" = yes; then
1721 # Some people use a C++ compiler to compile C. Since we use `exit',
1722 # in C++ we need to declare it. In case someone uses the same compiler
1723 # for both compiling C and C++ we need to have the C++ compiler decide
1724 # the declaration of exit, since it's the most demanding environment.
1725 cat >conftest.$ac_ext <<_ACEOF
1730 rm -f conftest.$ac_objext
1731 if { (eval echo "$as_me:1731: \"$ac_compile\"") >&5
1732 (eval $ac_compile) 2>&5
1734 echo "$as_me:1734: \$? = $ac_status" >&5
1735 (exit $ac_status); } &&
1736 { ac_try='test -s conftest.$ac_objext'
1737 { (eval echo "$as_me:1737: \"$ac_try\"") >&5
1740 echo "$as_me:1740: \$? = $ac_status" >&5
1741 (exit $ac_status); }; }; then
1742 for ac_declaration in \
1744 '#include <stdlib.h>' \
1745 'extern "C" void std::exit (int) throw (); using std::exit;' \
1746 'extern "C" void std::exit (int); using std::exit;' \
1747 'extern "C" void exit (int) throw ();' \
1748 'extern "C" void exit (int);' \
1751 cat >conftest.$ac_ext <<_ACEOF
1752 #line 1752 "configure"
1753 #include "confdefs.h"
1764 rm -f conftest.$ac_objext
1765 if { (eval echo "$as_me:1765: \"$ac_compile\"") >&5
1766 (eval $ac_compile) 2>&5
1768 echo "$as_me:1768: \$? = $ac_status" >&5
1769 (exit $ac_status); } &&
1770 { ac_try='test -s conftest.$ac_objext'
1771 { (eval echo "$as_me:1771: \"$ac_try\"") >&5
1774 echo "$as_me:1774: \$? = $ac_status" >&5
1775 (exit $ac_status); }; }; then
1778 echo "$as_me: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1782 rm -f conftest.$ac_objext conftest.$ac_ext
1783 cat >conftest.$ac_ext <<_ACEOF
1784 #line 1784 "configure"
1785 #include "confdefs.h"
1795 rm -f conftest.$ac_objext
1796 if { (eval echo "$as_me:1796: \"$ac_compile\"") >&5
1797 (eval $ac_compile) 2>&5
1799 echo "$as_me:1799: \$? = $ac_status" >&5
1800 (exit $ac_status); } &&
1801 { ac_try='test -s conftest.$ac_objext'
1802 { (eval echo "$as_me:1802: \"$ac_try\"") >&5
1805 echo "$as_me:1805: \$? = $ac_status" >&5
1806 (exit $ac_status); }; }; then
1809 echo "$as_me: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1812 rm -f conftest.$ac_objext conftest.$ac_ext
1815 if test -n "$ac_declaration"; then
1816 echo '#ifdef __cplusplus' >>confdefs.h
1817 echo $ac_declaration >>confdefs.h
1818 echo '#endif' >>confdefs.h
1822 echo "$as_me: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1825 rm -f conftest.$ac_objext conftest.$ac_ext
1827 ac_cpp='$CPP $CPPFLAGS'
1828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1831 ac_main_return=return
1834 if test "$GCC" = yes ; then
1835 echo "$as_me:1835: checking version of $CC" >&5
1836 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1837 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1838 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1839 echo "$as_me:1839: result: $GCC_VERSION" >&5
1840 echo "${ECHO_T}$GCC_VERSION" >&6
1843 echo "$as_me:1843: checking for $CC option to accept ANSI C" >&5
1844 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1845 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 ac_cv_prog_cc_stdc=no
1850 cat >conftest.$ac_ext <<_ACEOF
1851 #line 1851 "configure"
1852 #include "confdefs.h"
1855 #include <sys/types.h>
1856 #include <sys/stat.h>
1857 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1858 struct buf { int x; };
1859 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1860 static char *e (p, i)
1866 static char *f (char * (*g) (char **, int), char **p, ...)
1871 s = g (p, va_arg (v,int));
1875 int test (int i, double x);
1876 struct s1 {int (*f) (int a);};
1877 struct s2 {int (*f) (double a);};
1878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1884 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1889 # Don't try gcc -ansi; that turns off useful extensions and
1890 # breaks some systems' header files.
1891 # AIX -qlanglvl=ansi
1892 # Ultrix and OSF/1 -std1
1893 # HP-UX 10.20 and later -Ae
1894 # HP-UX older versions -Aa -D_HPUX_SOURCE
1895 # SVR4 -Xc -D__EXTENSIONS__
1896 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1898 CC="$ac_save_CC $ac_arg"
1899 rm -f conftest.$ac_objext
1900 if { (eval echo "$as_me:1900: \"$ac_compile\"") >&5
1901 (eval $ac_compile) 2>&5
1903 echo "$as_me:1903: \$? = $ac_status" >&5
1904 (exit $ac_status); } &&
1905 { ac_try='test -s conftest.$ac_objext'
1906 { (eval echo "$as_me:1906: \"$ac_try\"") >&5
1909 echo "$as_me:1909: \$? = $ac_status" >&5
1910 (exit $ac_status); }; }; then
1911 ac_cv_prog_cc_stdc=$ac_arg
1914 echo "$as_me: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1917 rm -f conftest.$ac_objext
1919 rm -f conftest.$ac_ext conftest.$ac_objext
1924 case "x$ac_cv_prog_cc_stdc" in
1926 echo "$as_me:1926: result: none needed" >&5
1927 echo "${ECHO_T}none needed" >&6 ;;
1929 echo "$as_me:1929: result: $ac_cv_prog_cc_stdc" >&5
1930 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1931 CC="$CC $ac_cv_prog_cc_stdc" ;;
1934 # This should have been defined by AC_PROG_CC
1937 echo "$as_me:1937: checking \$CC variable" >&5
1938 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1941 echo "$as_me:1941: result: broken" >&5
1942 echo "${ECHO_T}broken" >&6
1943 { echo "$as_me:1943: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1944 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1946 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
1947 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
1949 for cf_arg in $cf_flags
1957 cf_new_extra_cppflags=
1959 for cf_add_cflags in $cf_arg
1961 case $cf_fix_cppflags in
1963 case $cf_add_cflags in
1964 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1965 case $cf_add_cflags in
1967 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1969 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1970 && test -z "${cf_tst_cflags}" \
1971 && cf_fix_cppflags=yes
1973 if test $cf_fix_cppflags = yes ; then
1975 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1976 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1979 elif test "${cf_tst_cflags}" = "\"'" ; then
1981 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1982 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1992 case $cf_add_cflags in
1994 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1996 CPPFLAGS=`echo "$CPPFLAGS" | \
1997 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1998 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2003 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2004 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2011 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2012 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2019 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2020 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2022 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2024 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2025 && test -z "${cf_tst_cflags}" \
2026 && cf_fix_cppflags=no
2031 if test -n "$cf_new_cflags" ; then
2033 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2034 CFLAGS="${CFLAGS}$cf_new_cflags"
2038 if test -n "$cf_new_cppflags" ; then
2040 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2041 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2045 if test -n "$cf_new_extra_cppflags" ; then
2047 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2048 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2058 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2060 echo "${as_me:-configure}:2060: testing resulting CC: '$CC' ..." 1>&5
2062 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2064 echo "${as_me:-configure}:2064: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2066 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2068 echo "${as_me:-configure}:2068: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2072 echo "$as_me:2072: result: ok" >&5
2073 echo "${ECHO_T}ok" >&6
2078 ac_cpp='$CPP $CPPFLAGS'
2079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082 ac_main_return=return
2083 echo "$as_me:2083: checking how to run the C preprocessor" >&5
2084 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2085 # On Suns, sometimes $CPP names a directory.
2086 if test -n "$CPP" && test -d "$CPP"; then
2089 if test -z "$CPP"; then
2090 if test "${ac_cv_prog_CPP+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 # Double quotes because CPP needs to be expanded
2094 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2097 for ac_c_preproc_warn_flag in '' yes
2099 # Use a header file that comes with gcc, so configuring glibc
2100 # with a fresh cross-compiler works.
2101 # On the NeXT, cc -E runs the code through the compiler's parser,
2102 # not just through cpp. "Syntax error" is here to catch this case.
2103 cat >conftest.$ac_ext <<_ACEOF
2104 #line 2104 "configure"
2105 #include "confdefs.h"
2109 if { (eval echo "$as_me:2109: \"$ac_cpp conftest.$ac_ext\"") >&5
2110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2112 egrep -v '^ *\+' conftest.er1 >conftest.err
2114 cat conftest.err >&5
2115 echo "$as_me:2115: \$? = $ac_status" >&5
2116 (exit $ac_status); } >/dev/null; then
2117 if test -s conftest.err; then
2118 ac_cpp_err=$ac_c_preproc_warn_flag
2125 if test -z "$ac_cpp_err"; then
2128 echo "$as_me: failed program was:" >&5
2129 cat conftest.$ac_ext >&5
2130 # Broken: fails on valid input.
2133 rm -f conftest.err conftest.$ac_ext
2135 # OK, works on sane cases. Now check whether non-existent headers
2136 # can be detected and how.
2137 cat >conftest.$ac_ext <<_ACEOF
2138 #line 2138 "configure"
2139 #include "confdefs.h"
2140 #include <ac_nonexistent.h>
2142 if { (eval echo "$as_me:2142: \"$ac_cpp conftest.$ac_ext\"") >&5
2143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2145 egrep -v '^ *\+' conftest.er1 >conftest.err
2147 cat conftest.err >&5
2148 echo "$as_me:2148: \$? = $ac_status" >&5
2149 (exit $ac_status); } >/dev/null; then
2150 if test -s conftest.err; then
2151 ac_cpp_err=$ac_c_preproc_warn_flag
2158 if test -z "$ac_cpp_err"; then
2159 # Broken: success on invalid input.
2162 echo "$as_me: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2164 # Passes both tests.
2168 rm -f conftest.err conftest.$ac_ext
2171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2172 rm -f conftest.err conftest.$ac_ext
2173 if $ac_preproc_ok; then
2185 echo "$as_me:2185: result: $CPP" >&5
2186 echo "${ECHO_T}$CPP" >&6
2188 for ac_c_preproc_warn_flag in '' yes
2190 # Use a header file that comes with gcc, so configuring glibc
2191 # with a fresh cross-compiler works.
2192 # On the NeXT, cc -E runs the code through the compiler's parser,
2193 # not just through cpp. "Syntax error" is here to catch this case.
2194 cat >conftest.$ac_ext <<_ACEOF
2195 #line 2195 "configure"
2196 #include "confdefs.h"
2200 if { (eval echo "$as_me:2200: \"$ac_cpp conftest.$ac_ext\"") >&5
2201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2203 egrep -v '^ *\+' conftest.er1 >conftest.err
2205 cat conftest.err >&5
2206 echo "$as_me:2206: \$? = $ac_status" >&5
2207 (exit $ac_status); } >/dev/null; then
2208 if test -s conftest.err; then
2209 ac_cpp_err=$ac_c_preproc_warn_flag
2216 if test -z "$ac_cpp_err"; then
2219 echo "$as_me: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2221 # Broken: fails on valid input.
2224 rm -f conftest.err conftest.$ac_ext
2226 # OK, works on sane cases. Now check whether non-existent headers
2227 # can be detected and how.
2228 cat >conftest.$ac_ext <<_ACEOF
2229 #line 2229 "configure"
2230 #include "confdefs.h"
2231 #include <ac_nonexistent.h>
2233 if { (eval echo "$as_me:2233: \"$ac_cpp conftest.$ac_ext\"") >&5
2234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2236 egrep -v '^ *\+' conftest.er1 >conftest.err
2238 cat conftest.err >&5
2239 echo "$as_me:2239: \$? = $ac_status" >&5
2240 (exit $ac_status); } >/dev/null; then
2241 if test -s conftest.err; then
2242 ac_cpp_err=$ac_c_preproc_warn_flag
2249 if test -z "$ac_cpp_err"; then
2250 # Broken: success on invalid input.
2253 echo "$as_me: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2255 # Passes both tests.
2259 rm -f conftest.err conftest.$ac_ext
2262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2263 rm -f conftest.err conftest.$ac_ext
2264 if $ac_preproc_ok; then
2267 { { echo "$as_me:2267: error: C preprocessor \"$CPP\" fails sanity check" >&5
2268 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2269 { (exit 1); exit 1; }; }
2273 ac_cpp='$CPP $CPPFLAGS'
2274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2277 ac_main_return=return
2279 for ac_prog in mawk gawk nawk awk
2281 # Extract the first word of "$ac_prog", so it can be a program name with args.
2282 set dummy $ac_prog; ac_word=$2
2283 echo "$as_me:2283: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2285 if test "${ac_cv_prog_AWK+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 if test -n "$AWK"; then
2289 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2291 ac_save_IFS=$IFS; IFS=$ac_path_separator
2293 for ac_dir in $ac_dummy; do
2295 test -z "$ac_dir" && ac_dir=.
2296 $as_executable_p "$ac_dir/$ac_word" || continue
2297 ac_cv_prog_AWK="$ac_prog"
2298 echo "$as_me:2298: found $ac_dir/$ac_word" >&5
2305 if test -n "$AWK"; then
2306 echo "$as_me:2306: result: $AWK" >&5
2307 echo "${ECHO_T}$AWK" >&6
2309 echo "$as_me:2309: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2313 test -n "$AWK" && break
2316 # Find a good install program. We prefer a C program (faster),
2317 # so one script is as good as another. But avoid the broken or
2318 # incompatible versions:
2319 # SysV /etc/install, /usr/sbin/install
2320 # SunOS /usr/etc/install
2321 # IRIX /sbin/install
2323 # AmigaOS /C/install, which installs bootblocks on floppy discs
2324 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2325 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2326 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2327 # ./install, which can be erroneously created by make from ./install.sh.
2328 echo "$as_me:2328: checking for a BSD compatible install" >&5
2329 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2330 if test -z "$INSTALL"; then
2331 if test "${ac_cv_path_install+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 ac_save_IFS=$IFS; IFS=$ac_path_separator
2335 for ac_dir in $PATH; do
2337 # Account for people who put trailing slashes in PATH elements.
2339 / | ./ | .// | /cC/* \
2340 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2343 # OSF1 and SCO ODT 3.0 have their own names for install.
2344 # Don't use installbsd from OSF since it installs stuff as root
2346 for ac_prog in ginstall scoinst install; do
2347 if $as_executable_p "$ac_dir/$ac_prog"; then
2348 if test $ac_prog = install &&
2349 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2350 # AIX install. It has an incompatible calling convention.
2352 elif test $ac_prog = install &&
2353 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2354 # program-specific install script used by HP pwplus--don't use.
2357 ac_cv_path_install="$ac_dir/$ac_prog -c"
2367 if test "${ac_cv_path_install+set}" = set; then
2368 INSTALL=$ac_cv_path_install
2370 # As a last resort, use the slow shell script. We don't cache a
2371 # path for INSTALL within a source directory, because that will
2372 # break other packages using the cache if that directory is
2373 # removed, or if the path is relative.
2374 INSTALL=$ac_install_sh
2377 echo "$as_me:2377: result: $INSTALL" >&5
2378 echo "${ECHO_T}$INSTALL" >&6
2380 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2381 # It thinks the first close brace ends the variable substitution.
2382 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2384 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2386 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2392 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2393 test -z "$cf_dir" && cf_dir=.
2394 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2398 for ac_prog in lint cppcheck splint
2400 # Extract the first word of "$ac_prog", so it can be a program name with args.
2401 set dummy $ac_prog; ac_word=$2
2402 echo "$as_me:2402: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_LINT+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$LINT"; then
2408 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2410 ac_save_IFS=$IFS; IFS=$ac_path_separator
2412 for ac_dir in $ac_dummy; do
2414 test -z "$ac_dir" && ac_dir=.
2415 $as_executable_p "$ac_dir/$ac_word" || continue
2416 ac_cv_prog_LINT="$ac_prog"
2417 echo "$as_me:2417: found $ac_dir/$ac_word" >&5
2423 LINT=$ac_cv_prog_LINT
2424 if test -n "$LINT"; then
2425 echo "$as_me:2425: result: $LINT" >&5
2426 echo "${ECHO_T}$LINT" >&6
2428 echo "$as_me:2428: result: no" >&5
2429 echo "${ECHO_T}no" >&6
2432 test -n "$LINT" && break
2435 echo "$as_me:2435: checking if filesystem supports mixed-case filenames" >&5
2436 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2437 if test "${cf_cv_mixedcase+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 if test "$cross_compiling" = yes ; then
2442 case $target_alias in
2443 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2451 rm -f conftest CONFTEST
2453 if test -f CONFTEST ; then
2458 rm -f conftest CONFTEST
2462 echo "$as_me:2462: result: $cf_cv_mixedcase" >&5
2463 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2464 test "$cf_cv_mixedcase" = yes &&
2465 cat >>confdefs.h <<\EOF
2466 #define MIXEDCASE_FILENAMES 1
2469 for ac_prog in exctags ctags
2471 # Extract the first word of "$ac_prog", so it can be a program name with args.
2472 set dummy $ac_prog; ac_word=$2
2473 echo "$as_me:2473: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2475 if test "${ac_cv_prog_CTAGS+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 if test -n "$CTAGS"; then
2479 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2481 ac_save_IFS=$IFS; IFS=$ac_path_separator
2483 for ac_dir in $ac_dummy; do
2485 test -z "$ac_dir" && ac_dir=.
2486 $as_executable_p "$ac_dir/$ac_word" || continue
2487 ac_cv_prog_CTAGS="$ac_prog"
2488 echo "$as_me:2488: found $ac_dir/$ac_word" >&5
2494 CTAGS=$ac_cv_prog_CTAGS
2495 if test -n "$CTAGS"; then
2496 echo "$as_me:2496: result: $CTAGS" >&5
2497 echo "${ECHO_T}$CTAGS" >&6
2499 echo "$as_me:2499: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2503 test -n "$CTAGS" && break
2506 for ac_prog in exetags etags
2508 # Extract the first word of "$ac_prog", so it can be a program name with args.
2509 set dummy $ac_prog; ac_word=$2
2510 echo "$as_me:2510: checking for $ac_word" >&5
2511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2512 if test "${ac_cv_prog_ETAGS+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2515 if test -n "$ETAGS"; then
2516 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2518 ac_save_IFS=$IFS; IFS=$ac_path_separator
2520 for ac_dir in $ac_dummy; do
2522 test -z "$ac_dir" && ac_dir=.
2523 $as_executable_p "$ac_dir/$ac_word" || continue
2524 ac_cv_prog_ETAGS="$ac_prog"
2525 echo "$as_me:2525: found $ac_dir/$ac_word" >&5
2531 ETAGS=$ac_cv_prog_ETAGS
2532 if test -n "$ETAGS"; then
2533 echo "$as_me:2533: result: $ETAGS" >&5
2534 echo "${ECHO_T}$ETAGS" >&6
2536 echo "$as_me:2536: result: no" >&5
2537 echo "${ECHO_T}no" >&6
2540 test -n "$ETAGS" && break
2543 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2544 set dummy ${CTAGS:-ctags}; ac_word=$2
2545 echo "$as_me:2545: checking for $ac_word" >&5
2546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2547 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 if test -n "$MAKE_LOWER_TAGS"; then
2551 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2553 ac_save_IFS=$IFS; IFS=$ac_path_separator
2555 for ac_dir in $ac_dummy; do
2557 test -z "$ac_dir" && ac_dir=.
2558 $as_executable_p "$ac_dir/$ac_word" || continue
2559 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2560 echo "$as_me:2560: found $ac_dir/$ac_word" >&5
2564 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2567 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2568 if test -n "$MAKE_LOWER_TAGS"; then
2569 echo "$as_me:2569: result: $MAKE_LOWER_TAGS" >&5
2570 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2572 echo "$as_me:2572: result: no" >&5
2573 echo "${ECHO_T}no" >&6
2576 if test "$cf_cv_mixedcase" = yes ; then
2577 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2578 set dummy ${ETAGS:-etags}; ac_word=$2
2579 echo "$as_me:2579: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2581 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 if test -n "$MAKE_UPPER_TAGS"; then
2585 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2587 ac_save_IFS=$IFS; IFS=$ac_path_separator
2589 for ac_dir in $ac_dummy; do
2591 test -z "$ac_dir" && ac_dir=.
2592 $as_executable_p "$ac_dir/$ac_word" || continue
2593 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2594 echo "$as_me:2594: found $ac_dir/$ac_word" >&5
2598 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2601 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2602 if test -n "$MAKE_UPPER_TAGS"; then
2603 echo "$as_me:2603: result: $MAKE_UPPER_TAGS" >&5
2604 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2606 echo "$as_me:2606: result: no" >&5
2607 echo "${ECHO_T}no" >&6
2614 if test "$MAKE_UPPER_TAGS" = yes ; then
2620 if test "$MAKE_LOWER_TAGS" = yes ; then
2626 echo "$as_me:2626: checking if -lm needed for math functions" >&5
2627 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2628 if test "${cf_cv_need_libm+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 cat >conftest.$ac_ext <<_ACEOF
2633 #line 2633 "configure"
2634 #include "confdefs.h"
2643 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2648 rm -f conftest.$ac_objext conftest$ac_exeext
2649 if { (eval echo "$as_me:2649: \"$ac_link\"") >&5
2650 (eval $ac_link) 2>&5
2652 echo "$as_me:2652: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
2654 { ac_try='test -s conftest$ac_exeext'
2655 { (eval echo "$as_me:2655: \"$ac_try\"") >&5
2658 echo "$as_me:2658: \$? = $ac_status" >&5
2659 (exit $ac_status); }; }; then
2662 echo "$as_me: failed program was:" >&5
2663 cat conftest.$ac_ext >&5
2666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2668 echo "$as_me:2668: result: $cf_cv_need_libm" >&5
2669 echo "${ECHO_T}$cf_cv_need_libm" >&6
2670 if test "$cf_cv_need_libm" = yes
2678 CC_SHARED_OPTS=unknown
2679 CPPFLAGS="$CPPFLAGS"
2681 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2682 DFT_UPR_MODEL="NORMAL"
2695 PACKAGE="ncurses-examples"
2701 TINFO_LIBS='$(LIBS_CURSES)'
2702 cf_cv_abi_version=""
2703 cf_cv_rel_version=""
2709 if test "$GCC" = yes
2711 cat > conftest.i <<EOF
2713 #define GCC_PRINTF 0
2718 #ifndef GCC_NORETURN
2719 #define GCC_NORETURN /* nothing */
2722 #define GCC_UNUSED /* nothing */
2725 if test "$GCC" = yes
2727 { echo "$as_me:2727: checking for $CC __attribute__ directives..." >&5
2728 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2729 cat > conftest.$ac_ext <<EOF
2730 #line 2730 "${as_me:-configure}"
2731 #include "confdefs.h"
2732 #include "conftest.h"
2733 #include "conftest.i"
2735 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2737 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2740 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2742 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2744 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2745 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2746 extern void foo(void) GCC_NORETURN;
2747 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2749 cf_printf_attribute=no
2750 cf_scanf_attribute=no
2751 for cf_attribute in scanf printf unused noreturn
2754 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2756 cf_directive="__attribute__(($cf_attribute))"
2757 echo "checking for $CC $cf_directive" 1>&5
2759 case $cf_attribute in
2761 cf_printf_attribute=yes
2762 cat >conftest.h <<EOF
2763 #define GCC_$cf_ATTRIBUTE 1
2767 cf_scanf_attribute=yes
2768 cat >conftest.h <<EOF
2769 #define GCC_$cf_ATTRIBUTE 1
2773 cat >conftest.h <<EOF
2774 #define GCC_$cf_ATTRIBUTE $cf_directive
2779 if { (eval echo "$as_me:2779: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>&5
2782 echo "$as_me:2782: \$? = $ac_status" >&5
2783 (exit $ac_status); }; then
2784 test -n "$verbose" && echo "$as_me:2784: result: ... $cf_attribute" >&5
2785 echo "${ECHO_T}... $cf_attribute" >&6
2786 cat conftest.h >>confdefs.h
2787 case $cf_attribute in
2790 cat >>confdefs.h <<EOF
2791 #define GCC_NORETURN $cf_directive
2796 cf_value='/* nothing */'
2797 if test "$cf_printf_attribute" != no ; then
2798 cf_value='__attribute__((format(printf,fmt,var)))'
2800 cat >>confdefs.h <<\EOF
2801 #define GCC_PRINTF 1
2806 cat >>confdefs.h <<EOF
2807 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2812 cf_value='/* nothing */'
2813 if test "$cf_scanf_attribute" != no ; then
2814 cf_value='__attribute__((format(scanf,fmt,var)))'
2816 cat >>confdefs.h <<\EOF
2822 cat >>confdefs.h <<EOF
2823 #define GCC_SCANFLIKE(fmt,var) $cf_value
2829 cat >>confdefs.h <<EOF
2830 #define GCC_UNUSED $cf_directive
2838 fgrep define conftest.i >>confdefs.h
2843 echo "$as_me:2843: checking if you want to work around bogus compiler/loader warnings" >&5
2844 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
2846 # Check whether --enable-string-hacks or --disable-string-hacks was given.
2847 if test "${enable_string_hacks+set}" = set; then
2848 enableval="$enable_string_hacks"
2849 with_string_hacks=$enableval
2851 with_string_hacks=no
2853 echo "$as_me:2853: result: $with_string_hacks" >&5
2854 echo "${ECHO_T}$with_string_hacks" >&6
2856 if test "x$with_string_hacks" = "xyes"; then
2858 cat >>confdefs.h <<\EOF
2859 #define USE_STRING_HACKS 1
2862 { echo "$as_me:2862: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
2863 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
2864 echo "$as_me:2864: checking for strlcat" >&5
2865 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
2866 if test "${ac_cv_func_strlcat+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 cat >conftest.$ac_ext <<_ACEOF
2870 #line 2870 "configure"
2871 #include "confdefs.h"
2872 /* System header to define __stub macros and hopefully few prototypes,
2873 which can conflict with char strlcat (); below. */
2875 /* Override any gcc2 internal prototype to avoid an error. */
2879 /* We use char because int might match the return type of a gcc2
2880 builtin and then its argument prototype would still apply. */
2887 /* The GNU C library defines this for functions which it implements
2888 to always fail with ENOSYS. Some functions are actually named
2889 something starting with __ and the normal name is an alias. */
2890 #if defined (__stub_strlcat) || defined (__stub___strlcat)
2893 f = strlcat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
2900 rm -f conftest.$ac_objext conftest$ac_exeext
2901 if { (eval echo "$as_me:2901: \"$ac_link\"") >&5
2902 (eval $ac_link) 2>&5
2904 echo "$as_me:2904: \$? = $ac_status" >&5
2905 (exit $ac_status); } &&
2906 { ac_try='test -s conftest$ac_exeext'
2907 { (eval echo "$as_me:2907: \"$ac_try\"") >&5
2910 echo "$as_me:2910: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 ac_cv_func_strlcat=yes
2914 echo "$as_me: failed program was:" >&5
2915 cat conftest.$ac_ext >&5
2916 ac_cv_func_strlcat=no
2918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2920 echo "$as_me:2920: result: $ac_cv_func_strlcat" >&5
2921 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
2922 if test $ac_cv_func_strlcat = yes; then
2924 cat >>confdefs.h <<\EOF
2925 #define HAVE_STRLCAT 1
2930 echo "$as_me:2930: checking for strlcat in -lbsd" >&5
2931 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
2932 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 ac_check_lib_save_LIBS=$LIBS
2937 cat >conftest.$ac_ext <<_ACEOF
2938 #line 2938 "configure"
2939 #include "confdefs.h"
2941 /* Override any gcc2 internal prototype to avoid an error. */
2945 /* We use char because int might match the return type of a gcc2
2946 builtin and then its argument prototype would still apply. */
2956 rm -f conftest.$ac_objext conftest$ac_exeext
2957 if { (eval echo "$as_me:2957: \"$ac_link\"") >&5
2958 (eval $ac_link) 2>&5
2960 echo "$as_me:2960: \$? = $ac_status" >&5
2961 (exit $ac_status); } &&
2962 { ac_try='test -s conftest$ac_exeext'
2963 { (eval echo "$as_me:2963: \"$ac_try\"") >&5
2966 echo "$as_me:2966: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2968 ac_cv_lib_bsd_strlcat=yes
2970 echo "$as_me: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2972 ac_cv_lib_bsd_strlcat=no
2974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2975 LIBS=$ac_check_lib_save_LIBS
2977 echo "$as_me:2977: result: $ac_cv_lib_bsd_strlcat" >&5
2978 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
2979 if test $ac_cv_lib_bsd_strlcat = yes; then
2982 # Filter out duplicates - this happens with badly-designed ".pc" files...
2983 for cf_add_1lib in $LIBS
2985 for cf_add_2lib in $cf_add_libs
2987 if test "x$cf_add_1lib" = "x$cf_add_2lib"
2993 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
2997 for ac_header in bsd/string.h
2999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3000 echo "$as_me:3000: checking for $ac_header" >&5
3001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 cat >conftest.$ac_ext <<_ACEOF
3006 #line 3006 "configure"
3007 #include "confdefs.h"
3008 #include <$ac_header>
3010 if { (eval echo "$as_me:3010: \"$ac_cpp conftest.$ac_ext\"") >&5
3011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3013 egrep -v '^ *\+' conftest.er1 >conftest.err
3015 cat conftest.err >&5
3016 echo "$as_me:3016: \$? = $ac_status" >&5
3017 (exit $ac_status); } >/dev/null; then
3018 if test -s conftest.err; then
3019 ac_cpp_err=$ac_c_preproc_warn_flag
3026 if test -z "$ac_cpp_err"; then
3027 eval "$as_ac_Header=yes"
3029 echo "$as_me: failed program was:" >&5
3030 cat conftest.$ac_ext >&5
3031 eval "$as_ac_Header=no"
3033 rm -f conftest.err conftest.$ac_ext
3035 echo "$as_me:3035: result: `eval echo '${'$as_ac_Header'}'`" >&5
3036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3038 cat >>confdefs.h <<EOF
3039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3045 cat >>confdefs.h <<\EOF
3046 #define HAVE_STRLCAT 1
3053 for ac_func in strlcpy snprintf
3055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3056 echo "$as_me:3056: checking for $ac_func" >&5
3057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3058 if eval "test \"\${$as_ac_var+set}\" = set"; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 cat >conftest.$ac_ext <<_ACEOF
3062 #line 3062 "configure"
3063 #include "confdefs.h"
3064 /* System header to define __stub macros and hopefully few prototypes,
3065 which can conflict with char $ac_func (); below. */
3067 /* Override any gcc2 internal prototype to avoid an error. */
3071 /* We use char because int might match the return type of a gcc2
3072 builtin and then its argument prototype would still apply. */
3079 /* The GNU C library defines this for functions which it implements
3080 to always fail with ENOSYS. Some functions are actually named
3081 something starting with __ and the normal name is an alias. */
3082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3085 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3092 rm -f conftest.$ac_objext conftest$ac_exeext
3093 if { (eval echo "$as_me:3093: \"$ac_link\"") >&5
3094 (eval $ac_link) 2>&5
3096 echo "$as_me:3096: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -s conftest$ac_exeext'
3099 { (eval echo "$as_me:3099: \"$ac_try\"") >&5
3102 echo "$as_me:3102: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 eval "$as_ac_var=yes"
3106 echo "$as_me: failed program was:" >&5
3107 cat conftest.$ac_ext >&5
3108 eval "$as_ac_var=no"
3110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3112 echo "$as_me:3112: result: `eval echo '${'$as_ac_var'}'`" >&5
3113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3114 if test `eval echo '${'$as_ac_var'}'` = yes; then
3115 cat >>confdefs.h <<EOF
3116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3125 cf_POSIX_C_SOURCE=199506L
3130 cf_xopen_source="-D_ALL_SOURCE"
3136 cf_xopen_source="-D_APPLE_C_SOURCE"
3139 cf_xopen_source="-D_DARWIN_C_SOURCE"
3142 (freebsd*|dragonfly*)
3143 # 5.x headers associate
3144 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3145 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3146 cf_POSIX_C_SOURCE=200112L
3148 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3151 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3154 cf_xopen_source="-D_HPUX_SOURCE"
3157 cf_xopen_source="-D_SGI_SOURCE"
3160 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3162 echo "$as_me:3162: checking if we must define _GNU_SOURCE" >&5
3163 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3164 if test "${cf_cv_gnu_source+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 cat >conftest.$ac_ext <<_ACEOF
3169 #line 3169 "configure"
3170 #include "confdefs.h"
3171 #include <sys/types.h>
3176 #ifndef _XOPEN_SOURCE
3183 rm -f conftest.$ac_objext
3184 if { (eval echo "$as_me:3184: \"$ac_compile\"") >&5
3185 (eval $ac_compile) 2>&5
3187 echo "$as_me:3187: \$? = $ac_status" >&5
3188 (exit $ac_status); } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (eval echo "$as_me:3190: \"$ac_try\"") >&5
3193 echo "$as_me:3193: \$? = $ac_status" >&5
3194 (exit $ac_status); }; }; then
3197 echo "$as_me: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3200 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3201 cat >conftest.$ac_ext <<_ACEOF
3202 #line 3202 "configure"
3203 #include "confdefs.h"
3204 #include <sys/types.h>
3209 #ifdef _XOPEN_SOURCE
3216 rm -f conftest.$ac_objext
3217 if { (eval echo "$as_me:3217: \"$ac_compile\"") >&5
3218 (eval $ac_compile) 2>&5
3220 echo "$as_me:3220: \$? = $ac_status" >&5
3221 (exit $ac_status); } &&
3222 { ac_try='test -s conftest.$ac_objext'
3223 { (eval echo "$as_me:3223: \"$ac_try\"") >&5
3226 echo "$as_me:3226: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
3230 echo "$as_me: failed program was:" >&5
3231 cat conftest.$ac_ext >&5
3232 cf_cv_gnu_source=yes
3234 rm -f conftest.$ac_objext conftest.$ac_ext
3238 rm -f conftest.$ac_objext conftest.$ac_ext
3241 echo "$as_me:3241: result: $cf_cv_gnu_source" >&5
3242 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3244 if test "$cf_cv_gnu_source" = yes
3246 echo "$as_me:3246: checking if we should also define _DEFAULT_SOURCE" >&5
3247 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
3248 if test "${cf_cv_default_source+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3253 cat >conftest.$ac_ext <<_ACEOF
3254 #line 3254 "configure"
3255 #include "confdefs.h"
3256 #include <sys/types.h>
3261 #ifdef _DEFAULT_SOURCE
3268 rm -f conftest.$ac_objext
3269 if { (eval echo "$as_me:3269: \"$ac_compile\"") >&5
3270 (eval $ac_compile) 2>&5
3272 echo "$as_me:3272: \$? = $ac_status" >&5
3273 (exit $ac_status); } &&
3274 { ac_try='test -s conftest.$ac_objext'
3275 { (eval echo "$as_me:3275: \"$ac_try\"") >&5
3278 echo "$as_me:3278: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3280 cf_cv_default_source=no
3282 echo "$as_me: failed program was:" >&5
3283 cat conftest.$ac_ext >&5
3284 cf_cv_default_source=yes
3286 rm -f conftest.$ac_objext conftest.$ac_ext
3289 echo "$as_me:3289: result: $cf_cv_default_source" >&5
3290 echo "${ECHO_T}$cf_cv_default_source" >&6
3291 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
3296 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
3299 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3302 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3304 cf_save_CFLAGS="$CFLAGS"
3305 cf_save_CPPFLAGS="$CPPFLAGS"
3307 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3308 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3309 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3311 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3312 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3313 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3315 echo "$as_me:3315: checking if we should define _POSIX_C_SOURCE" >&5
3316 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3317 if test "${cf_cv_posix_c_source+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 echo "${as_me:-configure}:3321: testing if the symbol is already defined go no further ..." 1>&5
3323 cat >conftest.$ac_ext <<_ACEOF
3324 #line 3324 "configure"
3325 #include "confdefs.h"
3326 #include <sys/types.h>
3331 #ifndef _POSIX_C_SOURCE
3338 rm -f conftest.$ac_objext
3339 if { (eval echo "$as_me:3339: \"$ac_compile\"") >&5
3340 (eval $ac_compile) 2>&5
3342 echo "$as_me:3342: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
3344 { ac_try='test -s conftest.$ac_objext'
3345 { (eval echo "$as_me:3345: \"$ac_try\"") >&5
3348 echo "$as_me:3348: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 cf_cv_posix_c_source=no
3352 echo "$as_me: failed program was:" >&5
3353 cat conftest.$ac_ext >&5
3354 cf_want_posix_source=no
3355 case .$cf_POSIX_C_SOURCE in
3357 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3360 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3361 cf_want_posix_source=yes
3364 cf_want_posix_source=yes
3367 if test "$cf_want_posix_source" = yes ; then
3368 cat >conftest.$ac_ext <<_ACEOF
3369 #line 3369 "configure"
3370 #include "confdefs.h"
3371 #include <sys/types.h>
3376 #ifdef _POSIX_SOURCE
3383 rm -f conftest.$ac_objext
3384 if { (eval echo "$as_me:3384: \"$ac_compile\"") >&5
3385 (eval $ac_compile) 2>&5
3387 echo "$as_me:3387: \$? = $ac_status" >&5
3388 (exit $ac_status); } &&
3389 { ac_try='test -s conftest.$ac_objext'
3390 { (eval echo "$as_me:3390: \"$ac_try\"") >&5
3393 echo "$as_me:3393: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
3397 echo "$as_me: failed program was:" >&5
3398 cat conftest.$ac_ext >&5
3399 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3401 rm -f conftest.$ac_objext conftest.$ac_ext
3404 echo "${as_me:-configure}:3404: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3406 CFLAGS="$cf_trim_CFLAGS"
3407 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3409 echo "${as_me:-configure}:3409: testing if the second compile does not leave our definition intact error ..." 1>&5
3411 cat >conftest.$ac_ext <<_ACEOF
3412 #line 3412 "configure"
3413 #include "confdefs.h"
3414 #include <sys/types.h>
3419 #ifndef _POSIX_C_SOURCE
3426 rm -f conftest.$ac_objext
3427 if { (eval echo "$as_me:3427: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>&5
3430 echo "$as_me:3430: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 { ac_try='test -s conftest.$ac_objext'
3433 { (eval echo "$as_me:3433: \"$ac_try\"") >&5
3436 echo "$as_me:3436: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3440 echo "$as_me: failed program was:" >&5
3441 cat conftest.$ac_ext >&5
3442 cf_cv_posix_c_source=no
3444 rm -f conftest.$ac_objext conftest.$ac_ext
3445 CFLAGS="$cf_save_CFLAGS"
3446 CPPFLAGS="$cf_save_CPPFLAGS"
3449 rm -f conftest.$ac_objext conftest.$ac_ext
3452 echo "$as_me:3452: result: $cf_cv_posix_c_source" >&5
3453 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3455 if test "$cf_cv_posix_c_source" != no ; then
3456 CFLAGS="$cf_trim_CFLAGS"
3457 CPPFLAGS="$cf_trim_CPPFLAGS"
3462 cf_new_extra_cppflags=
3464 for cf_add_cflags in $cf_cv_posix_c_source
3466 case $cf_fix_cppflags in
3468 case $cf_add_cflags in
3469 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3470 case $cf_add_cflags in
3472 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3474 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3475 && test -z "${cf_tst_cflags}" \
3476 && cf_fix_cppflags=yes
3478 if test $cf_fix_cppflags = yes ; then
3480 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3481 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3484 elif test "${cf_tst_cflags}" = "\"'" ; then
3486 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3487 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3497 case $cf_add_cflags in
3499 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3501 CPPFLAGS=`echo "$CPPFLAGS" | \
3502 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3503 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3508 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3509 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3516 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3517 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3524 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3525 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3527 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3529 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3530 && test -z "${cf_tst_cflags}" \
3531 && cf_fix_cppflags=no
3536 if test -n "$cf_new_cflags" ; then
3538 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3539 CFLAGS="${CFLAGS}$cf_new_cflags"
3543 if test -n "$cf_new_cppflags" ; then
3545 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3546 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3550 if test -n "$cf_new_extra_cppflags" ; then
3552 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3553 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3561 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3564 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3565 cf_xopen_source="-D_BSD_SOURCE"
3569 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3572 cf_xopen_source="-D_OSF_SOURCE"
3575 cf_xopen_source="-D_QNX_SOURCE"
3578 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3581 cf_xopen_source="-D__EXTENSIONS__"
3582 cf_cv_xopen_source=broken
3584 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3590 echo "$as_me:3590: checking if we should define _XOPEN_SOURCE" >&5
3591 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3592 if test "${cf_cv_xopen_source+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 cat >conftest.$ac_ext <<_ACEOF
3597 #line 3597 "configure"
3598 #include "confdefs.h"
3602 #include <sys/types.h>
3608 #ifndef _XOPEN_SOURCE
3615 rm -f conftest.$ac_objext
3616 if { (eval echo "$as_me:3616: \"$ac_compile\"") >&5
3617 (eval $ac_compile) 2>&5
3619 echo "$as_me:3619: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -s conftest.$ac_objext'
3622 { (eval echo "$as_me:3622: \"$ac_try\"") >&5
3625 echo "$as_me:3625: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 cf_cv_xopen_source=no
3629 echo "$as_me: failed program was:" >&5
3630 cat conftest.$ac_ext >&5
3632 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3633 cat >conftest.$ac_ext <<_ACEOF
3634 #line 3634 "configure"
3635 #include "confdefs.h"
3639 #include <sys/types.h>
3645 #ifdef _XOPEN_SOURCE
3652 rm -f conftest.$ac_objext
3653 if { (eval echo "$as_me:3653: \"$ac_compile\"") >&5
3654 (eval $ac_compile) 2>&5
3656 echo "$as_me:3656: \$? = $ac_status" >&5
3657 (exit $ac_status); } &&
3658 { ac_try='test -s conftest.$ac_objext'
3659 { (eval echo "$as_me:3659: \"$ac_try\"") >&5
3662 echo "$as_me:3662: \$? = $ac_status" >&5
3663 (exit $ac_status); }; }; then
3664 cf_cv_xopen_source=no
3666 echo "$as_me: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3668 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3670 rm -f conftest.$ac_objext conftest.$ac_ext
3674 rm -f conftest.$ac_objext conftest.$ac_ext
3677 echo "$as_me:3677: result: $cf_cv_xopen_source" >&5
3678 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3680 if test "$cf_cv_xopen_source" != no ; then
3682 CFLAGS=`echo "$CFLAGS" | \
3683 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3684 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3686 CPPFLAGS=`echo "$CPPFLAGS" | \
3687 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3688 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3690 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3695 cf_new_extra_cppflags=
3697 for cf_add_cflags in $cf_temp_xopen_source
3699 case $cf_fix_cppflags in
3701 case $cf_add_cflags in
3702 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3703 case $cf_add_cflags in
3705 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3707 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3708 && test -z "${cf_tst_cflags}" \
3709 && cf_fix_cppflags=yes
3711 if test $cf_fix_cppflags = yes ; then
3713 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3714 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3717 elif test "${cf_tst_cflags}" = "\"'" ; then
3719 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3720 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3730 case $cf_add_cflags in
3732 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3734 CPPFLAGS=`echo "$CPPFLAGS" | \
3735 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3736 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3741 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3742 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3749 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3750 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3757 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3758 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3760 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3762 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3763 && test -z "${cf_tst_cflags}" \
3764 && cf_fix_cppflags=no
3769 if test -n "$cf_new_cflags" ; then
3771 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3772 CFLAGS="${CFLAGS}$cf_new_cflags"
3776 if test -n "$cf_new_cppflags" ; then
3778 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3779 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3783 if test -n "$cf_new_extra_cppflags" ; then
3785 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3786 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3792 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3794 cf_save_CFLAGS="$CFLAGS"
3795 cf_save_CPPFLAGS="$CPPFLAGS"
3797 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3798 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3799 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3801 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3802 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3803 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3805 echo "$as_me:3805: checking if we should define _POSIX_C_SOURCE" >&5
3806 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3807 if test "${cf_cv_posix_c_source+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 echo "${as_me:-configure}:3811: testing if the symbol is already defined go no further ..." 1>&5
3813 cat >conftest.$ac_ext <<_ACEOF
3814 #line 3814 "configure"
3815 #include "confdefs.h"
3816 #include <sys/types.h>
3821 #ifndef _POSIX_C_SOURCE
3828 rm -f conftest.$ac_objext
3829 if { (eval echo "$as_me:3829: \"$ac_compile\"") >&5
3830 (eval $ac_compile) 2>&5
3832 echo "$as_me:3832: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
3834 { ac_try='test -s conftest.$ac_objext'
3835 { (eval echo "$as_me:3835: \"$ac_try\"") >&5
3838 echo "$as_me:3838: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3840 cf_cv_posix_c_source=no
3842 echo "$as_me: failed program was:" >&5
3843 cat conftest.$ac_ext >&5
3844 cf_want_posix_source=no
3845 case .$cf_POSIX_C_SOURCE in
3847 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3850 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3851 cf_want_posix_source=yes
3854 cf_want_posix_source=yes
3857 if test "$cf_want_posix_source" = yes ; then
3858 cat >conftest.$ac_ext <<_ACEOF
3859 #line 3859 "configure"
3860 #include "confdefs.h"
3861 #include <sys/types.h>
3866 #ifdef _POSIX_SOURCE
3873 rm -f conftest.$ac_objext
3874 if { (eval echo "$as_me:3874: \"$ac_compile\"") >&5
3875 (eval $ac_compile) 2>&5
3877 echo "$as_me:3877: \$? = $ac_status" >&5
3878 (exit $ac_status); } &&
3879 { ac_try='test -s conftest.$ac_objext'
3880 { (eval echo "$as_me:3880: \"$ac_try\"") >&5
3883 echo "$as_me:3883: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3887 echo "$as_me: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3889 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3891 rm -f conftest.$ac_objext conftest.$ac_ext
3894 echo "${as_me:-configure}:3894: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3896 CFLAGS="$cf_trim_CFLAGS"
3897 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3899 echo "${as_me:-configure}:3899: testing if the second compile does not leave our definition intact error ..." 1>&5
3901 cat >conftest.$ac_ext <<_ACEOF
3902 #line 3902 "configure"
3903 #include "confdefs.h"
3904 #include <sys/types.h>
3909 #ifndef _POSIX_C_SOURCE
3916 rm -f conftest.$ac_objext
3917 if { (eval echo "$as_me:3917: \"$ac_compile\"") >&5
3918 (eval $ac_compile) 2>&5
3920 echo "$as_me:3920: \$? = $ac_status" >&5
3921 (exit $ac_status); } &&
3922 { ac_try='test -s conftest.$ac_objext'
3923 { (eval echo "$as_me:3923: \"$ac_try\"") >&5
3926 echo "$as_me:3926: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
3930 echo "$as_me: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3932 cf_cv_posix_c_source=no
3934 rm -f conftest.$ac_objext conftest.$ac_ext
3935 CFLAGS="$cf_save_CFLAGS"
3936 CPPFLAGS="$cf_save_CPPFLAGS"
3939 rm -f conftest.$ac_objext conftest.$ac_ext
3942 echo "$as_me:3942: result: $cf_cv_posix_c_source" >&5
3943 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3945 if test "$cf_cv_posix_c_source" != no ; then
3946 CFLAGS="$cf_trim_CFLAGS"
3947 CPPFLAGS="$cf_trim_CPPFLAGS"
3952 cf_new_extra_cppflags=
3954 for cf_add_cflags in $cf_cv_posix_c_source
3956 case $cf_fix_cppflags in
3958 case $cf_add_cflags in
3959 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3960 case $cf_add_cflags in
3962 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3964 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3965 && test -z "${cf_tst_cflags}" \
3966 && cf_fix_cppflags=yes
3968 if test $cf_fix_cppflags = yes ; then
3970 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3971 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3974 elif test "${cf_tst_cflags}" = "\"'" ; then
3976 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3977 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3987 case $cf_add_cflags in
3989 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3991 CPPFLAGS=`echo "$CPPFLAGS" | \
3992 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3993 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3998 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3999 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4006 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4007 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4014 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4015 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4017 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4019 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4020 && test -z "${cf_tst_cflags}" \
4021 && cf_fix_cppflags=no
4026 if test -n "$cf_new_cflags" ; then
4028 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4029 CFLAGS="${CFLAGS}$cf_new_cflags"
4033 if test -n "$cf_new_cppflags" ; then
4035 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4036 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4040 if test -n "$cf_new_extra_cppflags" ; then
4042 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4043 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4052 if test -n "$cf_xopen_source" ; then
4057 cf_new_extra_cppflags=
4059 for cf_add_cflags in $cf_xopen_source
4061 case $cf_fix_cppflags in
4063 case $cf_add_cflags in
4064 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4065 case $cf_add_cflags in
4067 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4069 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4070 && test -z "${cf_tst_cflags}" \
4071 && cf_fix_cppflags=yes
4073 if test $cf_fix_cppflags = yes ; then
4075 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4076 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4079 elif test "${cf_tst_cflags}" = "\"'" ; then
4081 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4082 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4092 case $cf_add_cflags in
4094 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4096 CPPFLAGS=`echo "$CPPFLAGS" | \
4097 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4098 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4103 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4104 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4111 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4112 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4119 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4120 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4122 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4124 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4125 && test -z "${cf_tst_cflags}" \
4126 && cf_fix_cppflags=no
4131 if test -n "$cf_new_cflags" ; then
4132 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
4134 echo "${as_me:-configure}:4134: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
4136 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4137 CFLAGS="${CFLAGS}$cf_new_cflags"
4141 if test -n "$cf_new_cppflags" ; then
4142 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
4144 echo "${as_me:-configure}:4144: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
4146 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4147 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4151 if test -n "$cf_new_extra_cppflags" ; then
4152 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
4154 echo "${as_me:-configure}:4154: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
4156 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4157 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4163 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4164 echo "$as_me:4164: checking if _XOPEN_SOURCE really is set" >&5
4165 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4166 cat >conftest.$ac_ext <<_ACEOF
4167 #line 4167 "configure"
4168 #include "confdefs.h"
4174 #ifndef _XOPEN_SOURCE
4181 rm -f conftest.$ac_objext
4182 if { (eval echo "$as_me:4182: \"$ac_compile\"") >&5
4183 (eval $ac_compile) 2>&5
4185 echo "$as_me:4185: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -s conftest.$ac_objext'
4188 { (eval echo "$as_me:4188: \"$ac_try\"") >&5
4191 echo "$as_me:4191: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 cf_XOPEN_SOURCE_set=yes
4195 echo "$as_me: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4197 cf_XOPEN_SOURCE_set=no
4199 rm -f conftest.$ac_objext conftest.$ac_ext
4200 echo "$as_me:4200: result: $cf_XOPEN_SOURCE_set" >&5
4201 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
4202 if test $cf_XOPEN_SOURCE_set = yes
4204 cat >conftest.$ac_ext <<_ACEOF
4205 #line 4205 "configure"
4206 #include "confdefs.h"
4212 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:4220: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>&5
4223 echo "$as_me:4223: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -s conftest.$ac_objext'
4226 { (eval echo "$as_me:4226: \"$ac_try\"") >&5
4229 echo "$as_me:4229: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 cf_XOPEN_SOURCE_set_ok=yes
4233 echo "$as_me: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4235 cf_XOPEN_SOURCE_set_ok=no
4237 rm -f conftest.$ac_objext conftest.$ac_ext
4238 if test $cf_XOPEN_SOURCE_set_ok = no
4240 { echo "$as_me:4240: WARNING: _XOPEN_SOURCE is lower than requested" >&5
4241 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
4245 echo "$as_me:4245: checking if we should define _XOPEN_SOURCE" >&5
4246 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4247 if test "${cf_cv_xopen_source+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 cat >conftest.$ac_ext <<_ACEOF
4252 #line 4252 "configure"
4253 #include "confdefs.h"
4257 #include <sys/types.h>
4263 #ifndef _XOPEN_SOURCE
4270 rm -f conftest.$ac_objext
4271 if { (eval echo "$as_me:4271: \"$ac_compile\"") >&5
4272 (eval $ac_compile) 2>&5
4274 echo "$as_me:4274: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try='test -s conftest.$ac_objext'
4277 { (eval echo "$as_me:4277: \"$ac_try\"") >&5
4280 echo "$as_me:4280: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4282 cf_cv_xopen_source=no
4284 echo "$as_me: failed program was:" >&5
4285 cat conftest.$ac_ext >&5
4287 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4288 cat >conftest.$ac_ext <<_ACEOF
4289 #line 4289 "configure"
4290 #include "confdefs.h"
4294 #include <sys/types.h>
4300 #ifdef _XOPEN_SOURCE
4307 rm -f conftest.$ac_objext
4308 if { (eval echo "$as_me:4308: \"$ac_compile\"") >&5
4309 (eval $ac_compile) 2>&5
4311 echo "$as_me:4311: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try='test -s conftest.$ac_objext'
4314 { (eval echo "$as_me:4314: \"$ac_try\"") >&5
4317 echo "$as_me:4317: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 cf_cv_xopen_source=no
4321 echo "$as_me: failed program was:" >&5
4322 cat conftest.$ac_ext >&5
4323 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4325 rm -f conftest.$ac_objext conftest.$ac_ext
4329 rm -f conftest.$ac_objext conftest.$ac_ext
4332 echo "$as_me:4332: result: $cf_cv_xopen_source" >&5
4333 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4335 if test "$cf_cv_xopen_source" != no ; then
4337 CFLAGS=`echo "$CFLAGS" | \
4338 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4339 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4341 CPPFLAGS=`echo "$CPPFLAGS" | \
4342 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4343 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4345 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4350 cf_new_extra_cppflags=
4352 for cf_add_cflags in $cf_temp_xopen_source
4354 case $cf_fix_cppflags in
4356 case $cf_add_cflags in
4357 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4358 case $cf_add_cflags in
4360 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4362 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4363 && test -z "${cf_tst_cflags}" \
4364 && cf_fix_cppflags=yes
4366 if test $cf_fix_cppflags = yes ; then
4368 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4369 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4372 elif test "${cf_tst_cflags}" = "\"'" ; then
4374 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4375 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4385 case $cf_add_cflags in
4387 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4389 CPPFLAGS=`echo "$CPPFLAGS" | \
4390 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4391 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4396 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4397 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4404 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4405 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4412 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4413 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4415 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4417 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4418 && test -z "${cf_tst_cflags}" \
4419 && cf_fix_cppflags=no
4424 if test -n "$cf_new_cflags" ; then
4426 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4427 CFLAGS="${CFLAGS}$cf_new_cflags"
4431 if test -n "$cf_new_cppflags" ; then
4433 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4434 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4438 if test -n "$cf_new_extra_cppflags" ; then
4440 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4441 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4450 echo "$as_me:4450: checking for signal global datatype" >&5
4451 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
4452 if test "${cf_cv_sig_atomic_t+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 "volatile sig_atomic_t" \
4461 cat >conftest.$ac_ext <<_ACEOF
4462 #line 4462 "configure"
4463 #include "confdefs.h"
4465 #include <sys/types.h>
4471 static void handler(int sig)
4478 signal(SIGINT, handler);
4484 rm -f conftest.$ac_objext
4485 if { (eval echo "$as_me:4485: \"$ac_compile\"") >&5
4486 (eval $ac_compile) 2>&5
4488 echo "$as_me:4488: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try='test -s conftest.$ac_objext'
4491 { (eval echo "$as_me:4491: \"$ac_try\"") >&5
4494 echo "$as_me:4494: \$? = $ac_status" >&5
4495 (exit $ac_status); }; }; then
4496 cf_cv_sig_atomic_t=$cf_type
4498 echo "$as_me: failed program was:" >&5
4499 cat conftest.$ac_ext >&5
4500 cf_cv_sig_atomic_t=no
4502 rm -f conftest.$ac_objext conftest.$ac_ext
4503 test "$cf_cv_sig_atomic_t" != no && break
4508 echo "$as_me:4508: result: $cf_cv_sig_atomic_t" >&5
4509 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4510 test "$cf_cv_sig_atomic_t" != no &&
4511 cat >>confdefs.h <<EOF
4512 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4515 # Work around breakage on OS X
4517 echo "$as_me:4517: checking if SIGWINCH is defined" >&5
4518 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
4519 if test "${cf_cv_define_sigwinch+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 cat >conftest.$ac_ext <<_ACEOF
4524 #line 4524 "configure"
4525 #include "confdefs.h"
4527 #include <sys/types.h>
4528 #include <sys/signal.h>
4538 rm -f conftest.$ac_objext
4539 if { (eval echo "$as_me:4539: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>&5
4542 echo "$as_me:4542: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:4545: \"$ac_try\"") >&5
4548 echo "$as_me:4548: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 cf_cv_define_sigwinch=yes
4552 echo "$as_me: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4554 cat >conftest.$ac_ext <<_ACEOF
4555 #line 4555 "configure"
4556 #include "confdefs.h"
4558 #undef _XOPEN_SOURCE
4559 #undef _POSIX_SOURCE
4560 #undef _POSIX_C_SOURCE
4561 #include <sys/types.h>
4562 #include <sys/signal.h>
4572 rm -f conftest.$ac_objext
4573 if { (eval echo "$as_me:4573: \"$ac_compile\"") >&5
4574 (eval $ac_compile) 2>&5
4576 echo "$as_me:4576: \$? = $ac_status" >&5
4577 (exit $ac_status); } &&
4578 { ac_try='test -s conftest.$ac_objext'
4579 { (eval echo "$as_me:4579: \"$ac_try\"") >&5
4582 echo "$as_me:4582: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 cf_cv_define_sigwinch=maybe
4586 echo "$as_me: failed program was:" >&5
4587 cat conftest.$ac_ext >&5
4588 cf_cv_define_sigwinch=no
4590 rm -f conftest.$ac_objext conftest.$ac_ext
4593 rm -f conftest.$ac_objext conftest.$ac_ext
4596 echo "$as_me:4596: result: $cf_cv_define_sigwinch" >&5
4597 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
4599 if test "$cf_cv_define_sigwinch" = maybe ; then
4600 echo "$as_me:4600: checking for actual SIGWINCH definition" >&5
4601 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
4602 if test "${cf_cv_fixup_sigwinch+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 cf_cv_fixup_sigwinch=unknown
4608 while test $cf_sigwinch != 1
4610 cat >conftest.$ac_ext <<_ACEOF
4611 #line 4611 "configure"
4612 #include "confdefs.h"
4614 #undef _XOPEN_SOURCE
4615 #undef _POSIX_SOURCE
4616 #undef _POSIX_C_SOURCE
4617 #include <sys/types.h>
4618 #include <sys/signal.h>
4624 #if SIGWINCH != $cf_sigwinch
4632 rm -f conftest.$ac_objext
4633 if { (eval echo "$as_me:4633: \"$ac_compile\"") >&5
4634 (eval $ac_compile) 2>&5
4636 echo "$as_me:4636: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try='test -s conftest.$ac_objext'
4639 { (eval echo "$as_me:4639: \"$ac_try\"") >&5
4642 echo "$as_me:4642: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 cf_cv_fixup_sigwinch=$cf_sigwinch
4647 echo "$as_me: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4650 rm -f conftest.$ac_objext conftest.$ac_ext
4652 cf_sigwinch=`expr $cf_sigwinch - 1`
4656 echo "$as_me:4656: result: $cf_cv_fixup_sigwinch" >&5
4657 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
4659 if test "$cf_cv_fixup_sigwinch" != unknown ; then
4660 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
4664 # Checks for CODESET support.
4666 echo "$as_me:4666: checking for nl_langinfo and CODESET" >&5
4667 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
4668 if test "${am_cv_langinfo_codeset+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 cat >conftest.$ac_ext <<_ACEOF
4672 #line 4672 "configure"
4673 #include "confdefs.h"
4674 #include <langinfo.h>
4678 char* cs = nl_langinfo(CODESET);
4683 rm -f conftest.$ac_objext conftest$ac_exeext
4684 if { (eval echo "$as_me:4684: \"$ac_link\"") >&5
4685 (eval $ac_link) 2>&5
4687 echo "$as_me:4687: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -s conftest$ac_exeext'
4690 { (eval echo "$as_me:4690: \"$ac_try\"") >&5
4693 echo "$as_me:4693: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4695 am_cv_langinfo_codeset=yes
4697 echo "$as_me: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4699 am_cv_langinfo_codeset=no
4701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4704 echo "$as_me:4704: result: $am_cv_langinfo_codeset" >&5
4705 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
4706 if test $am_cv_langinfo_codeset = yes; then
4708 cat >>confdefs.h <<\EOF
4709 #define HAVE_LANGINFO_CODESET 1
4714 echo "$as_me:4714: checking if you want to use pkg-config" >&5
4715 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4717 # Check whether --with-pkg-config or --without-pkg-config was given.
4718 if test "${with_pkg_config+set}" = set; then
4719 withval="$with_pkg_config"
4720 cf_pkg_config=$withval
4724 echo "$as_me:4724: result: $cf_pkg_config" >&5
4725 echo "${ECHO_T}$cf_pkg_config" >&6
4727 case $cf_pkg_config in
4733 if test -n "$ac_tool_prefix"; then
4734 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4736 echo "$as_me:4736: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4746 ac_save_IFS=$IFS; IFS=$ac_path_separator
4748 for ac_dir in $ac_dummy; do
4750 test -z "$ac_dir" && ac_dir=.
4751 if $as_executable_p "$ac_dir/$ac_word"; then
4752 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4753 echo "$as_me:4753: found $ac_dir/$ac_word" >&5
4761 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4763 if test -n "$PKG_CONFIG"; then
4764 echo "$as_me:4764: result: $PKG_CONFIG" >&5
4765 echo "${ECHO_T}$PKG_CONFIG" >&6
4767 echo "$as_me:4767: result: no" >&5
4768 echo "${ECHO_T}no" >&6
4772 if test -z "$ac_cv_path_PKG_CONFIG"; then
4773 ac_pt_PKG_CONFIG=$PKG_CONFIG
4774 # Extract the first word of "pkg-config", so it can be a program name with args.
4775 set dummy pkg-config; ac_word=$2
4776 echo "$as_me:4776: checking for $ac_word" >&5
4777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4778 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 case $ac_pt_PKG_CONFIG in
4783 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4786 ac_save_IFS=$IFS; IFS=$ac_path_separator
4788 for ac_dir in $ac_dummy; do
4790 test -z "$ac_dir" && ac_dir=.
4791 if $as_executable_p "$ac_dir/$ac_word"; then
4792 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4793 echo "$as_me:4793: found $ac_dir/$ac_word" >&5
4798 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4802 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4804 if test -n "$ac_pt_PKG_CONFIG"; then
4805 echo "$as_me:4805: result: $ac_pt_PKG_CONFIG" >&5
4806 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4808 echo "$as_me:4808: result: no" >&5
4809 echo "${ECHO_T}no" >&6
4812 PKG_CONFIG=$ac_pt_PKG_CONFIG
4814 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4823 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4824 if test "$PKG_CONFIG" != none ; then
4826 if test "x$prefix" != xNONE; then
4827 cf_path_syntax="$prefix"
4829 cf_path_syntax="$ac_default_prefix"
4832 case ".$PKG_CONFIG" in
4837 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4839 (.\${*prefix}*|.\${*dir}*)
4840 eval PKG_CONFIG="$PKG_CONFIG"
4841 case ".$PKG_CONFIG" in
4843 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4848 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4851 { { echo "$as_me:4851: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4852 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4853 { (exit 1); exit 1; }; }
4857 elif test "x$cf_pkg_config" != xno ; then
4858 { echo "$as_me:4858: WARNING: pkg-config is not installed" >&5
4859 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4862 echo "$as_me:4862: checking if you want to see long compiling messages" >&5
4863 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4865 # Check whether --enable-echo or --disable-echo was given.
4866 if test "${enable_echo+set}" = set; then
4867 enableval="$enable_echo"
4868 test "$enableval" != no && enableval=yes
4869 if test "$enableval" != "yes" ; then
4872 ECHO_LD='@echo linking $@;'
4873 RULE_CC='@echo compiling $<'
4874 SHOW_CC='@echo compiling $@'
4896 echo "$as_me:4896: result: $enableval" >&5
4897 echo "${ECHO_T}$enableval" >&6
4899 echo "$as_me:4899: checking for ncurses wrap-prefix" >&5
4900 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
4902 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
4903 if test "${with_ncurses_wrap_prefix+set}" = set; then
4904 withval="$with_ncurses_wrap_prefix"
4905 NCURSES_WRAP_PREFIX=$withval
4907 NCURSES_WRAP_PREFIX=_nc_
4909 echo "$as_me:4909: result: $NCURSES_WRAP_PREFIX" >&5
4910 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
4912 echo "$as_me:4912: checking if you want to check for wide-character functions" >&5
4913 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
4915 # Check whether --enable-widec or --disable-widec was given.
4916 if test "${enable_widec+set}" = set; then
4917 enableval="$enable_widec"
4918 test "$enableval" != no && enableval=yes
4919 if test "$enableval" != "yes" ; then
4929 echo "$as_me:4929: result: $cf_enable_widec" >&5
4930 echo "${ECHO_T}$cf_enable_widec" >&6
4932 echo "$as_me:4932: checking for specific curses-directory" >&5
4933 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4935 # Check whether --with-curses-dir or --without-curses-dir was given.
4936 if test "${with_curses_dir+set}" = set; then
4937 withval="$with_curses_dir"
4938 cf_cv_curses_dir=$withval
4942 echo "$as_me:4942: result: $cf_cv_curses_dir" >&5
4943 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4945 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4948 if test "x$prefix" != xNONE; then
4949 cf_path_syntax="$prefix"
4951 cf_path_syntax="$ac_default_prefix"
4959 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4961 (.\${*prefix}*|.\${*dir}*)
4962 eval withval="$withval"
4965 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4970 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4973 { { echo "$as_me:4973: error: expected a pathname, not \"$withval\"" >&5
4974 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4975 { (exit 1); exit 1; }; }
4979 if test -d "$cf_cv_curses_dir"
4982 if test -n "$cf_cv_curses_dir/include" ; then
4983 for cf_add_incdir in $cf_cv_curses_dir/include
4985 while test $cf_add_incdir != /usr/include
4987 if test -d $cf_add_incdir
4990 if test -n "$CFLAGS$CPPFLAGS" ; then
4991 # a loop is needed to ensure we can add subdirs of existing dirs
4992 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4993 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4994 cf_have_incdir=yes; break
4999 if test "$cf_have_incdir" = no ; then
5000 if test "$cf_add_incdir" = /usr/local/include ; then
5001 if test "$GCC" = yes
5003 cf_save_CPPFLAGS=$CPPFLAGS
5004 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5005 cat >conftest.$ac_ext <<_ACEOF
5006 #line 5006 "configure"
5007 #include "confdefs.h"
5017 rm -f conftest.$ac_objext
5018 if { (eval echo "$as_me:5018: \"$ac_compile\"") >&5
5019 (eval $ac_compile) 2>&5
5021 echo "$as_me:5021: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
5023 { ac_try='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:5024: \"$ac_try\"") >&5
5027 echo "$as_me:5027: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5031 echo "$as_me: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5035 rm -f conftest.$ac_objext conftest.$ac_ext
5036 CPPFLAGS=$cf_save_CPPFLAGS
5041 if test "$cf_have_incdir" = no ; then
5042 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5044 echo "${as_me:-configure}:5044: testing adding $cf_add_incdir to include-path ..." 1>&5
5046 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5048 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5049 test "$cf_top_incdir" = "$cf_add_incdir" && break
5050 cf_add_incdir="$cf_top_incdir"
5061 if test -n "$cf_cv_curses_dir/lib" ; then
5062 for cf_add_libdir in $cf_cv_curses_dir/lib
5064 if test $cf_add_libdir = /usr/lib ; then
5066 elif test -d $cf_add_libdir
5069 if test -n "$LDFLAGS$LIBS" ; then
5070 # a loop is needed to ensure we can add subdirs of existing dirs
5071 for cf_test_libdir in $LDFLAGS $LIBS ; do
5072 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5073 cf_have_libdir=yes; break
5077 if test "$cf_have_libdir" = no ; then
5078 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5080 echo "${as_me:-configure}:5080: testing adding $cf_add_libdir to library-path ..." 1>&5
5082 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5093 echo "$as_me:5093: checking for specified curses library type" >&5
5094 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
5096 # Check whether --with-screen or --without-screen was given.
5097 if test "${with_screen+set}" = set; then
5098 withval="$with_screen"
5099 cf_cv_screen=$withval
5102 # Check whether --with-ncursesw or --without-ncursesw was given.
5103 if test "${with_ncursesw+set}" = set; then
5104 withval="$with_ncursesw"
5105 cf_cv_screen=ncursesw
5108 # Check whether --with-ncurses or --without-ncurses was given.
5109 if test "${with_ncurses+set}" = set; then
5110 withval="$with_ncurses"
5111 cf_cv_screen=ncurses
5114 # Check whether --with-pdcurses or --without-pdcurses was given.
5115 if test "${with_pdcurses+set}" = set; then
5116 withval="$with_pdcurses"
5117 cf_cv_screen=pdcurses
5120 # Check whether --with-curses-colr or --without-curses-colr was given.
5121 if test "${with_curses_colr+set}" = set; then
5122 withval="$with_curses_colr"
5123 cf_cv_screen=curses_colr
5126 # Check whether --with-curses-5lib or --without-curses-5lib was given.
5127 if test "${with_curses_5lib+set}" = set; then
5128 withval="$with_curses_5lib"
5129 cf_cv_screen=curses_5lib
5137 echo "$as_me:5137: result: $cf_cv_screen" >&5
5138 echo "${ECHO_T}$cf_cv_screen" >&6
5140 case $cf_cv_screen in
5143 echo "$as_me:5143: checking for extra include directories" >&5
5144 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
5145 if test "${cf_cv_curses_incdir+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 cf_cv_curses_incdir=no
5152 if test "x$cf_cv_screen" = "xcurses_colr"
5154 test -d /usr/include/curses_colr && \
5155 cf_cv_curses_incdir="-I/usr/include/curses_colr"
5159 if test "x$cf_cv_screen" = "xcurses_5lib"
5161 test -d /usr/5lib && \
5162 test -d /usr/5include && \
5163 cf_cv_curses_incdir="-I/usr/5include"
5169 echo "$as_me:5169: result: $cf_cv_curses_incdir" >&5
5170 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
5171 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
5173 echo "$as_me:5173: checking if we have identified curses headers" >&5
5174 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
5175 if test "${cf_cv_ncurses_header+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 cf_cv_ncurses_header=none
5182 curses.h ncurses/ncurses.h ncurses/curses.h
5184 cat >conftest.$ac_ext <<_ACEOF
5185 #line 5185 "configure"
5186 #include "confdefs.h"
5187 #include <${cf_header}>
5191 initscr(); tgoto("?", 0,0)
5196 rm -f conftest.$ac_objext
5197 if { (eval echo "$as_me:5197: \"$ac_compile\"") >&5
5198 (eval $ac_compile) 2>&5
5200 echo "$as_me:5200: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -s conftest.$ac_objext'
5203 { (eval echo "$as_me:5203: \"$ac_try\"") >&5
5206 echo "$as_me:5206: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 cf_cv_ncurses_header=$cf_header; break
5210 echo "$as_me: failed program was:" >&5
5211 cat conftest.$ac_ext >&5
5213 rm -f conftest.$ac_objext conftest.$ac_ext
5217 echo "$as_me:5217: result: $cf_cv_ncurses_header" >&5
5218 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
5220 if test "$cf_cv_ncurses_header" = none ; then
5221 { { echo "$as_me:5221: error: No curses header-files found" >&5
5222 echo "$as_me: error: No curses header-files found" >&2;}
5223 { (exit 1); exit 1; }; }
5226 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
5228 for ac_header in $cf_cv_ncurses_header
5230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5231 echo "$as_me:5231: checking for $ac_header" >&5
5232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 cat >conftest.$ac_ext <<_ACEOF
5237 #line 5237 "configure"
5238 #include "confdefs.h"
5239 #include <$ac_header>
5241 if { (eval echo "$as_me:5241: \"$ac_cpp conftest.$ac_ext\"") >&5
5242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5244 egrep -v '^ *\+' conftest.er1 >conftest.err
5246 cat conftest.err >&5
5247 echo "$as_me:5247: \$? = $ac_status" >&5
5248 (exit $ac_status); } >/dev/null; then
5249 if test -s conftest.err; then
5250 ac_cpp_err=$ac_c_preproc_warn_flag
5257 if test -z "$ac_cpp_err"; then
5258 eval "$as_ac_Header=yes"
5260 echo "$as_me: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5262 eval "$as_ac_Header=no"
5264 rm -f conftest.err conftest.$ac_ext
5266 echo "$as_me:5266: result: `eval echo '${'$as_ac_Header'}'`" >&5
5267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5269 cat >>confdefs.h <<EOF
5270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5276 echo "$as_me:5276: checking for terminfo header" >&5
5277 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
5278 if test "${cf_cv_term_header+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 case ${cf_cv_ncurses_header} in
5283 (*/ncurses.h|*/ncursesw.h)
5284 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
5287 cf_term_header=term.h
5291 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
5293 cat >conftest.$ac_ext <<_ACEOF
5294 #line 5294 "configure"
5295 #include "confdefs.h"
5297 #include <${cf_cv_ncurses_header:-curses.h}>
5303 int x = auto_left_margin
5308 rm -f conftest.$ac_objext
5309 if { (eval echo "$as_me:5309: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>&5
5312 echo "$as_me:5312: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:5315: \"$ac_try\"") >&5
5318 echo "$as_me:5318: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5321 cf_cv_term_header="$cf_test"
5323 echo "$as_me: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5326 cf_cv_term_header=unknown
5329 rm -f conftest.$ac_objext conftest.$ac_ext
5330 test "$cf_cv_term_header" != unknown && break
5334 echo "$as_me:5334: result: $cf_cv_term_header" >&5
5335 echo "${ECHO_T}$cf_cv_term_header" >&6
5337 # Set definitions to allow ifdef'ing to accommodate subdirectories
5339 case $cf_cv_term_header in
5342 cat >>confdefs.h <<\EOF
5343 #define HAVE_TERM_H 1
5349 case $cf_cv_term_header in
5352 cat >>confdefs.h <<\EOF
5353 #define HAVE_NCURSES_TERM_H 1
5359 cat >>confdefs.h <<\EOF
5360 #define HAVE_NCURSESW_TERM_H 1
5366 echo "$as_me:5366: checking for ncurses version" >&5
5367 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
5368 if test "${cf_cv_ncurses_version+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 cf_cv_ncurses_version=no
5375 if test "$cross_compiling" = yes; then
5377 # This will not work if the preprocessor splits the line after the
5378 # Autoconf token. The 'unproto' program does that.
5379 cat > conftest.$ac_ext <<EOF
5380 #include <${cf_cv_ncurses_header:-curses.h}>
5382 #ifdef NCURSES_VERSION
5383 Autoconf NCURSES_VERSION
5391 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
5392 { (eval echo "$as_me:5392: \"$cf_try\"") >&5
5395 echo "$as_me:5395: \$? = $ac_status" >&5
5396 (exit $ac_status); }
5397 if test -f conftest.out ; then
5398 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
5399 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
5404 cat >conftest.$ac_ext <<_ACEOF
5405 #line 5405 "configure"
5406 #include "confdefs.h"
5408 #include <${cf_cv_ncurses_header:-curses.h}>
5412 FILE *fp = fopen("$cf_tempfile", "w");
5413 #ifdef NCURSES_VERSION
5414 # ifdef NCURSES_VERSION_PATCH
5415 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
5417 fprintf(fp, "%s\n", NCURSES_VERSION);
5421 fprintf(fp, "old\n");
5426 ${cf_cv_main_return:-return}(0);
5429 rm -f conftest$ac_exeext
5430 if { (eval echo "$as_me:5430: \"$ac_link\"") >&5
5431 (eval $ac_link) 2>&5
5433 echo "$as_me:5433: \$? = $ac_status" >&5
5434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5435 { (eval echo "$as_me:5435: \"$ac_try\"") >&5
5438 echo "$as_me:5438: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5441 cf_cv_ncurses_version=`cat $cf_tempfile`
5443 echo "$as_me: program exited with status $ac_status" >&5
5444 echo "$as_me: failed program was:" >&5
5445 cat conftest.$ac_ext >&5
5447 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5452 echo "$as_me:5452: result: $cf_cv_ncurses_version" >&5
5453 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
5454 test "$cf_cv_ncurses_version" = no ||
5455 cat >>confdefs.h <<\EOF
5459 echo "$as_me:5459: checking if we have identified curses libraries" >&5
5460 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
5461 cat >conftest.$ac_ext <<_ACEOF
5462 #line 5462 "configure"
5463 #include "confdefs.h"
5464 #include <${cf_cv_ncurses_header:-curses.h}>
5468 initscr(); tgoto("?", 0,0)
5473 rm -f conftest.$ac_objext conftest$ac_exeext
5474 if { (eval echo "$as_me:5474: \"$ac_link\"") >&5
5475 (eval $ac_link) 2>&5
5477 echo "$as_me:5477: \$? = $ac_status" >&5
5478 (exit $ac_status); } &&
5479 { ac_try='test -s conftest$ac_exeext'
5480 { (eval echo "$as_me:5480: \"$ac_try\"") >&5
5483 echo "$as_me:5483: \$? = $ac_status" >&5
5484 (exit $ac_status); }; }; then
5487 echo "$as_me: failed program was:" >&5
5488 cat conftest.$ac_ext >&5
5491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5492 echo "$as_me:5492: result: $cf_result" >&5
5493 echo "${ECHO_T}$cf_result" >&6
5495 if test "$cf_result" = no ; then
5498 echo "$as_me:5498: checking for tgoto in -lmytinfo" >&5
5499 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5500 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 ac_check_lib_save_LIBS=$LIBS
5504 LIBS="-lmytinfo $LIBS"
5505 cat >conftest.$ac_ext <<_ACEOF
5506 #line 5506 "configure"
5507 #include "confdefs.h"
5509 /* Override any gcc2 internal prototype to avoid an error. */
5513 /* We use char because int might match the return type of a gcc2
5514 builtin and then its argument prototype would still apply. */
5524 rm -f conftest.$ac_objext conftest$ac_exeext
5525 if { (eval echo "$as_me:5525: \"$ac_link\"") >&5
5526 (eval $ac_link) 2>&5
5528 echo "$as_me:5528: \$? = $ac_status" >&5
5529 (exit $ac_status); } &&
5530 { ac_try='test -s conftest$ac_exeext'
5531 { (eval echo "$as_me:5531: \"$ac_try\"") >&5
5534 echo "$as_me:5534: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5536 ac_cv_lib_mytinfo_tgoto=yes
5538 echo "$as_me: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5540 ac_cv_lib_mytinfo_tgoto=no
5542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5543 LIBS=$ac_check_lib_save_LIBS
5545 echo "$as_me:5545: result: $ac_cv_lib_mytinfo_tgoto" >&5
5546 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5547 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5549 cf_add_libs="-lmytinfo"
5550 # Filter out duplicates - this happens with badly-designed ".pc" files...
5551 for cf_add_1lib in $LIBS
5553 for cf_add_2lib in $cf_add_libs
5555 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5561 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5569 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
5570 # next (1998), and xcurses "newer" (2000). There is no header file for
5571 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
5572 # term.h) for cur_colr
5573 if test "x$cf_cv_screen" = "xcurses_colr"
5575 echo "$as_me:5575: checking for initscr in -lcur_colr" >&5
5576 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5577 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 ac_check_lib_save_LIBS=$LIBS
5581 LIBS="-lcur_colr $LIBS"
5582 cat >conftest.$ac_ext <<_ACEOF
5583 #line 5583 "configure"
5584 #include "confdefs.h"
5586 /* Override any gcc2 internal prototype to avoid an error. */
5590 /* We use char because int might match the return type of a gcc2
5591 builtin and then its argument prototype would still apply. */
5601 rm -f conftest.$ac_objext conftest$ac_exeext
5602 if { (eval echo "$as_me:5602: \"$ac_link\"") >&5
5603 (eval $ac_link) 2>&5
5605 echo "$as_me:5605: \$? = $ac_status" >&5
5606 (exit $ac_status); } &&
5607 { ac_try='test -s conftest$ac_exeext'
5608 { (eval echo "$as_me:5608: \"$ac_try\"") >&5
5611 echo "$as_me:5611: \$? = $ac_status" >&5
5612 (exit $ac_status); }; }; then
5613 ac_cv_lib_cur_colr_initscr=yes
5615 echo "$as_me: failed program was:" >&5
5616 cat conftest.$ac_ext >&5
5617 ac_cv_lib_cur_colr_initscr=no
5619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5620 LIBS=$ac_check_lib_save_LIBS
5622 echo "$as_me:5622: result: $ac_cv_lib_cur_colr_initscr" >&5
5623 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5624 if test $ac_cv_lib_cur_colr_initscr = yes; then
5626 cf_add_libs="-lcur_colr"
5627 # Filter out duplicates - this happens with badly-designed ".pc" files...
5628 for cf_add_1lib in $LIBS
5630 for cf_add_2lib in $cf_add_libs
5632 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5638 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5642 ac_cv_func_initscr=yes
5646 echo "$as_me:5646: checking for initscr in -lHcurses" >&5
5647 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5648 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 ac_check_lib_save_LIBS=$LIBS
5652 LIBS="-lHcurses $LIBS"
5653 cat >conftest.$ac_ext <<_ACEOF
5654 #line 5654 "configure"
5655 #include "confdefs.h"
5657 /* Override any gcc2 internal prototype to avoid an error. */
5661 /* We use char because int might match the return type of a gcc2
5662 builtin and then its argument prototype would still apply. */
5672 rm -f conftest.$ac_objext conftest$ac_exeext
5673 if { (eval echo "$as_me:5673: \"$ac_link\"") >&5
5674 (eval $ac_link) 2>&5
5676 echo "$as_me:5676: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -s conftest$ac_exeext'
5679 { (eval echo "$as_me:5679: \"$ac_try\"") >&5
5682 echo "$as_me:5682: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_cv_lib_Hcurses_initscr=yes
5686 echo "$as_me: failed program was:" >&5
5687 cat conftest.$ac_ext >&5
5688 ac_cv_lib_Hcurses_initscr=no
5690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5691 LIBS=$ac_check_lib_save_LIBS
5693 echo "$as_me:5693: result: $ac_cv_lib_Hcurses_initscr" >&5
5694 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5695 if test $ac_cv_lib_Hcurses_initscr = yes; then
5697 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5699 cf_add_libs="-lHcurses"
5700 # Filter out duplicates - this happens with badly-designed ".pc" files...
5701 for cf_add_1lib in $LIBS
5703 for cf_add_2lib in $cf_add_libs
5705 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5711 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5715 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
5716 ac_cv_func_initscr=yes
5725 case `arch 2>/dev/null` in
5730 if test -n "/lib64" ; then
5731 for cf_add_libdir in /lib64
5733 if test $cf_add_libdir = /usr/lib ; then
5735 elif test -d $cf_add_libdir
5738 if test -n "$LDFLAGS$LIBS" ; then
5739 # a loop is needed to ensure we can add subdirs of existing dirs
5740 for cf_test_libdir in $LDFLAGS $LIBS ; do
5741 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5742 cf_have_libdir=yes; break
5746 if test "$cf_have_libdir" = no ; then
5747 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5749 echo "${as_me:-configure}:5749: testing adding $cf_add_libdir to library-path ..." 1>&5
5751 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5759 if test -n "/lib" ; then
5760 for cf_add_libdir in /lib
5762 if test $cf_add_libdir = /usr/lib ; then
5764 elif test -d $cf_add_libdir
5767 if test -n "$LDFLAGS$LIBS" ; then
5768 # a loop is needed to ensure we can add subdirs of existing dirs
5769 for cf_test_libdir in $LDFLAGS $LIBS ; do
5770 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5771 cf_have_libdir=yes; break
5775 if test "$cf_have_libdir" = no ; then
5776 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5778 echo "${as_me:-configure}:5778: testing adding $cf_add_libdir to library-path ..." 1>&5
5780 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5790 if test -n "/lib" ; then
5791 for cf_add_libdir in /lib
5793 if test $cf_add_libdir = /usr/lib ; then
5795 elif test -d $cf_add_libdir
5798 if test -n "$LDFLAGS$LIBS" ; then
5799 # a loop is needed to ensure we can add subdirs of existing dirs
5800 for cf_test_libdir in $LDFLAGS $LIBS ; do
5801 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5802 cf_have_libdir=yes; break
5806 if test "$cf_have_libdir" = no ; then
5807 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5809 echo "${as_me:-configure}:5809: testing adding $cf_add_libdir to library-path ..." 1>&5
5811 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5821 if test "x$cf_cv_screen" = "xcurses_5lib"
5823 if test -d /usr/5lib ; then
5825 if test -n "/usr/5lib" ; then
5826 for cf_add_libdir in /usr/5lib
5828 if test $cf_add_libdir = /usr/lib ; then
5830 elif test -d $cf_add_libdir
5833 if test -n "$LDFLAGS$LIBS" ; then
5834 # a loop is needed to ensure we can add subdirs of existing dirs
5835 for cf_test_libdir in $LDFLAGS $LIBS ; do
5836 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5837 cf_have_libdir=yes; break
5841 if test "$cf_have_libdir" = no ; then
5842 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5844 echo "${as_me:-configure}:5844: testing adding $cf_add_libdir to library-path ..." 1>&5
5846 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5852 cf_add_libs="-lcurses -ltermcap"
5853 # Filter out duplicates - this happens with badly-designed ".pc" files...
5854 for cf_add_1lib in $LIBS
5856 for cf_add_2lib in $cf_add_libs
5858 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5864 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5870 ac_cv_func_initscr=yes
5874 if test ".$ac_cv_func_initscr" != .yes ; then
5875 cf_save_LIBS="$LIBS"
5877 if test ".${cf_cv_ncurses_version:-no}" != .no
5879 cf_check_list="ncurses curses cursesX"
5881 cf_check_list="cursesX curses ncurses"
5884 # Check for library containing tgoto. Do this before curses library
5885 # because it may be needed to link the test-case for initscr.
5886 if test "x$cf_term_lib" = x
5888 echo "$as_me:5888: checking for tgoto" >&5
5889 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5890 if test "${ac_cv_func_tgoto+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 cat >conftest.$ac_ext <<_ACEOF
5894 #line 5894 "configure"
5895 #include "confdefs.h"
5896 /* System header to define __stub macros and hopefully few prototypes,
5897 which can conflict with char tgoto (); below. */
5899 /* Override any gcc2 internal prototype to avoid an error. */
5903 /* We use char because int might match the return type of a gcc2
5904 builtin and then its argument prototype would still apply. */
5911 /* The GNU C library defines this for functions which it implements
5912 to always fail with ENOSYS. Some functions are actually named
5913 something starting with __ and the normal name is an alias. */
5914 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5917 f = tgoto; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5924 rm -f conftest.$ac_objext conftest$ac_exeext
5925 if { (eval echo "$as_me:5925: \"$ac_link\"") >&5
5926 (eval $ac_link) 2>&5
5928 echo "$as_me:5928: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -s conftest$ac_exeext'
5931 { (eval echo "$as_me:5931: \"$ac_try\"") >&5
5934 echo "$as_me:5934: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5936 ac_cv_func_tgoto=yes
5938 echo "$as_me: failed program was:" >&5
5939 cat conftest.$ac_ext >&5
5942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5944 echo "$as_me:5944: result: $ac_cv_func_tgoto" >&5
5945 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5946 if test $ac_cv_func_tgoto = yes; then
5947 cf_term_lib=predefined
5950 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
5952 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5953 echo "$as_me:5953: checking for tgoto in -l$cf_term_lib" >&5
5954 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5955 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 ac_check_lib_save_LIBS=$LIBS
5959 LIBS="-l$cf_term_lib $LIBS"
5960 cat >conftest.$ac_ext <<_ACEOF
5961 #line 5961 "configure"
5962 #include "confdefs.h"
5964 /* Override any gcc2 internal prototype to avoid an error. */
5968 /* We use char because int might match the return type of a gcc2
5969 builtin and then its argument prototype would still apply. */
5979 rm -f conftest.$ac_objext conftest$ac_exeext
5980 if { (eval echo "$as_me:5980: \"$ac_link\"") >&5
5981 (eval $ac_link) 2>&5
5983 echo "$as_me:5983: \$? = $ac_status" >&5
5984 (exit $ac_status); } &&
5985 { ac_try='test -s conftest$ac_exeext'
5986 { (eval echo "$as_me:5986: \"$ac_try\"") >&5
5989 echo "$as_me:5989: \$? = $ac_status" >&5
5990 (exit $ac_status); }; }; then
5991 eval "$as_ac_Lib=yes"
5993 echo "$as_me: failed program was:" >&5
5994 cat conftest.$ac_ext >&5
5995 eval "$as_ac_Lib=no"
5997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5998 LIBS=$ac_check_lib_save_LIBS
6000 echo "$as_me:6000: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6001 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6002 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6012 # Check for library containing initscr
6013 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
6014 if test "x$cf_curs_lib" = x
6016 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
6018 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
6019 echo "$as_me:6019: checking for initscr in -l$cf_curs_lib" >&5
6020 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
6021 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 ac_check_lib_save_LIBS=$LIBS
6025 LIBS="-l$cf_curs_lib $LIBS"
6026 cat >conftest.$ac_ext <<_ACEOF
6027 #line 6027 "configure"
6028 #include "confdefs.h"
6030 /* Override any gcc2 internal prototype to avoid an error. */
6034 /* We use char because int might match the return type of a gcc2
6035 builtin and then its argument prototype would still apply. */
6045 rm -f conftest.$ac_objext conftest$ac_exeext
6046 if { (eval echo "$as_me:6046: \"$ac_link\"") >&5
6047 (eval $ac_link) 2>&5
6049 echo "$as_me:6049: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
6051 { ac_try='test -s conftest$ac_exeext'
6052 { (eval echo "$as_me:6052: \"$ac_try\"") >&5
6055 echo "$as_me:6055: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 eval "$as_ac_Lib=yes"
6059 echo "$as_me: failed program was:" >&5
6060 cat conftest.$ac_ext >&5
6061 eval "$as_ac_Lib=no"
6063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6064 LIBS=$ac_check_lib_save_LIBS
6066 echo "$as_me:6066: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6067 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6068 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6074 test $cf_curs_lib = unknown && { { echo "$as_me:6074: error: no curses library found" >&5
6075 echo "$as_me: error: no curses library found" >&2;}
6076 { (exit 1); exit 1; }; }
6078 LIBS="-l$cf_curs_lib $cf_save_LIBS"
6079 if test "$cf_term_lib" = unknown ; then
6080 echo "$as_me:6080: checking if we can link with $cf_curs_lib library" >&5
6081 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
6082 cat >conftest.$ac_ext <<_ACEOF
6083 #line 6083 "configure"
6084 #include "confdefs.h"
6085 #include <${cf_cv_ncurses_header:-curses.h}>
6094 rm -f conftest.$ac_objext conftest$ac_exeext
6095 if { (eval echo "$as_me:6095: \"$ac_link\"") >&5
6096 (eval $ac_link) 2>&5
6098 echo "$as_me:6098: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -s conftest$ac_exeext'
6101 { (eval echo "$as_me:6101: \"$ac_try\"") >&5
6104 echo "$as_me:6104: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
6108 echo "$as_me: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6113 echo "$as_me:6113: result: $cf_result" >&5
6114 echo "${ECHO_T}$cf_result" >&6
6115 test $cf_result = no && { { echo "$as_me:6115: error: Cannot link curses library" >&5
6116 echo "$as_me: error: Cannot link curses library" >&2;}
6117 { (exit 1); exit 1; }; }
6118 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
6120 elif test "$cf_term_lib" != predefined ; then
6121 echo "$as_me:6121: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
6122 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
6123 cat >conftest.$ac_ext <<_ACEOF
6124 #line 6124 "configure"
6125 #include "confdefs.h"
6126 #include <${cf_cv_ncurses_header:-curses.h}>
6130 initscr(); tgoto((char *)0, 0, 0);
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (eval echo "$as_me:6136: \"$ac_link\"") >&5
6137 (eval $ac_link) 2>&5
6139 echo "$as_me:6139: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -s conftest$ac_exeext'
6142 { (eval echo "$as_me:6142: \"$ac_try\"") >&5
6145 echo "$as_me:6145: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6149 echo "$as_me: failed program was:" >&5
6150 cat conftest.$ac_ext >&5
6152 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
6153 cat >conftest.$ac_ext <<_ACEOF
6154 #line 6154 "configure"
6155 #include "confdefs.h"
6156 #include <${cf_cv_ncurses_header:-curses.h}>
6165 rm -f conftest.$ac_objext conftest$ac_exeext
6166 if { (eval echo "$as_me:6166: \"$ac_link\"") >&5
6167 (eval $ac_link) 2>&5
6169 echo "$as_me:6169: \$? = $ac_status" >&5
6170 (exit $ac_status); } &&
6171 { ac_try='test -s conftest$ac_exeext'
6172 { (eval echo "$as_me:6172: \"$ac_try\"") >&5
6175 echo "$as_me:6175: \$? = $ac_status" >&5
6176 (exit $ac_status); }; }; then
6179 echo "$as_me: failed program was:" >&5
6180 cat conftest.$ac_ext >&5
6183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6187 echo "$as_me:6187: result: $cf_result" >&5
6188 echo "${ECHO_T}$cf_result" >&6
6196 echo "$as_me:6196: checking for multibyte character support" >&5
6197 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
6198 if test "${cf_cv_utf8_lib+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 cf_save_LIBS="$LIBS"
6203 cat >conftest.$ac_ext <<_ACEOF
6204 #line 6204 "configure"
6205 #include "confdefs.h"
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (eval echo "$as_me:6217: \"$ac_link\"") >&5
6218 (eval $ac_link) 2>&5
6220 echo "$as_me:6220: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -s conftest$ac_exeext'
6223 { (eval echo "$as_me:6223: \"$ac_try\"") >&5
6226 echo "$as_me:6226: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6230 echo "$as_me: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6233 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
6234 # will be set on completion of the AC_TRY_LINK below.
6235 cf_cv_header_path_utf8=
6236 cf_cv_library_path_utf8=
6238 echo "${as_me:-configure}:6238: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
6240 cf_save_LIBS="$LIBS"
6242 cat >conftest.$ac_ext <<_ACEOF
6243 #line 6243 "configure"
6244 #include "confdefs.h"
6246 #include <libutf8.h>
6255 rm -f conftest.$ac_objext conftest$ac_exeext
6256 if { (eval echo "$as_me:6256: \"$ac_link\"") >&5
6257 (eval $ac_link) 2>&5
6259 echo "$as_me:6259: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -s conftest$ac_exeext'
6262 { (eval echo "$as_me:6262: \"$ac_try\"") >&5
6265 echo "$as_me:6265: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6268 cf_cv_find_linkage_utf8=yes
6269 cf_cv_header_path_utf8=/usr/include
6270 cf_cv_library_path_utf8=/usr/lib
6273 echo "$as_me: failed program was:" >&5
6274 cat conftest.$ac_ext >&5
6276 LIBS="-lutf8 $cf_save_LIBS"
6278 cat >conftest.$ac_ext <<_ACEOF
6279 #line 6279 "configure"
6280 #include "confdefs.h"
6282 #include <libutf8.h>
6291 rm -f conftest.$ac_objext conftest$ac_exeext
6292 if { (eval echo "$as_me:6292: \"$ac_link\"") >&5
6293 (eval $ac_link) 2>&5
6295 echo "$as_me:6295: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try='test -s conftest$ac_exeext'
6298 { (eval echo "$as_me:6298: \"$ac_try\"") >&5
6301 echo "$as_me:6301: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6304 cf_cv_find_linkage_utf8=yes
6305 cf_cv_header_path_utf8=/usr/include
6306 cf_cv_library_path_utf8=/usr/lib
6307 cf_cv_library_file_utf8="-lutf8"
6310 echo "$as_me: failed program was:" >&5
6311 cat conftest.$ac_ext >&5
6313 cf_cv_find_linkage_utf8=no
6314 LIBS="$cf_save_LIBS"
6316 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
6318 echo "${as_me:-configure}:6318: testing find linkage for utf8 library ..." 1>&5
6320 echo "${as_me:-configure}:6320: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
6322 cf_save_CPPFLAGS="$CPPFLAGS"
6323 cf_test_CPPFLAGS="$CPPFLAGS"
6327 # collect the current set of include-directories from compiler flags
6328 cf_header_path_list=""
6329 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6330 for cf_header_path in $CPPFLAGS $CFLAGS
6332 case $cf_header_path in
6334 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6336 test "x$cf_header_path" != "xNONE" && \
6337 test -d "$cf_header_path" && \
6339 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6340 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6341 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
6342 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
6343 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
6344 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
6347 cf_header_path_list="$cf_header_path_list $cf_search"
6353 # add the variations for the package we are looking for
6357 test "x$prefix" != "xNONE" && \
6358 test -d "$prefix" && \
6360 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6361 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6362 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
6363 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
6364 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
6365 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
6368 for cf_subdir_prefix in \
6377 test "x$cf_subdir_prefix" != "x$prefix" && \
6378 test -d "$cf_subdir_prefix" && \
6379 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
6380 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
6381 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
6382 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
6383 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
6384 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
6385 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
6390 test "$includedir" != NONE && \
6391 test "$includedir" != "/usr/include" && \
6392 test -d "$includedir" && {
6393 test -d $includedir && cf_search="$cf_search $includedir"
6394 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
6397 test "$oldincludedir" != NONE && \
6398 test "$oldincludedir" != "/usr/include" && \
6399 test -d "$oldincludedir" && {
6400 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6401 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
6404 cf_search="$cf_search $cf_header_path_list"
6406 for cf_cv_header_path_utf8 in $cf_search
6408 if test -d $cf_cv_header_path_utf8 ; then
6409 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
6411 echo "${as_me:-configure}:6411: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
6413 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
6414 cat >conftest.$ac_ext <<_ACEOF
6415 #line 6415 "configure"
6416 #include "confdefs.h"
6418 #include <libutf8.h>
6427 rm -f conftest.$ac_objext
6428 if { (eval echo "$as_me:6428: \"$ac_compile\"") >&5
6429 (eval $ac_compile) 2>&5
6431 echo "$as_me:6431: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:6434: \"$ac_try\"") >&5
6437 echo "$as_me:6437: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6440 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
6442 echo "${as_me:-configure}:6442: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
6444 cf_cv_find_linkage_utf8=maybe
6445 cf_test_CPPFLAGS="$CPPFLAGS"
6448 echo "$as_me: failed program was:" >&5
6449 cat conftest.$ac_ext >&5
6451 CPPFLAGS="$cf_save_CPPFLAGS"
6454 rm -f conftest.$ac_objext conftest.$ac_ext
6458 if test "$cf_cv_find_linkage_utf8" = maybe ; then
6460 echo "${as_me:-configure}:6460: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
6462 cf_save_LIBS="$LIBS"
6463 cf_save_LDFLAGS="$LDFLAGS"
6465 if test "$cf_cv_find_linkage_utf8" != yes ; then
6468 cf_library_path_list=""
6469 if test -n "${LDFLAGS}${LIBS}" ; then
6470 for cf_library_path in $LDFLAGS $LIBS
6472 case $cf_library_path in
6474 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
6476 test "x$cf_library_path" != "xNONE" && \
6477 test -d "$cf_library_path" && \
6479 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
6480 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
6481 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
6482 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
6483 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
6484 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
6487 cf_library_path_list="$cf_library_path_list $cf_search"
6495 test "x$prefix" != "xNONE" && \
6496 test -d "$prefix" && \
6498 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
6499 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
6500 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
6501 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
6502 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
6503 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
6506 for cf_subdir_prefix in \
6515 test "x$cf_subdir_prefix" != "x$prefix" && \
6516 test -d "$cf_subdir_prefix" && \
6517 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
6518 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
6519 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
6520 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
6521 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
6522 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
6523 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
6528 cf_search="$cf_library_path_list $cf_search"
6530 for cf_cv_library_path_utf8 in $cf_search
6532 if test -d $cf_cv_library_path_utf8 ; then
6533 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
6535 echo "${as_me:-configure}:6535: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
6537 CPPFLAGS="$cf_test_CPPFLAGS"
6538 LIBS="-lutf8 $cf_save_LIBS"
6539 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
6540 cat >conftest.$ac_ext <<_ACEOF
6541 #line 6541 "configure"
6542 #include "confdefs.h"
6544 #include <libutf8.h>
6553 rm -f conftest.$ac_objext conftest$ac_exeext
6554 if { (eval echo "$as_me:6554: \"$ac_link\"") >&5
6555 (eval $ac_link) 2>&5
6557 echo "$as_me:6557: \$? = $ac_status" >&5
6558 (exit $ac_status); } &&
6559 { ac_try='test -s conftest$ac_exeext'
6560 { (eval echo "$as_me:6560: \"$ac_try\"") >&5
6563 echo "$as_me:6563: \$? = $ac_status" >&5
6564 (exit $ac_status); }; }; then
6566 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
6568 echo "${as_me:-configure}:6568: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
6570 cf_cv_find_linkage_utf8=yes
6571 cf_cv_library_file_utf8="-lutf8"
6574 echo "$as_me: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6577 CPPFLAGS="$cf_save_CPPFLAGS"
6578 LIBS="$cf_save_LIBS"
6579 LDFLAGS="$cf_save_LDFLAGS"
6582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6585 CPPFLAGS="$cf_save_CPPFLAGS"
6586 LDFLAGS="$cf_save_LDFLAGS"
6590 cf_cv_find_linkage_utf8=no
6594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6599 LIBS="$cf_save_LIBS"
6601 if test "$cf_cv_find_linkage_utf8" = yes ; then
6602 cf_cv_utf8_lib=add-on
6608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6610 echo "$as_me:6610: result: $cf_cv_utf8_lib" >&5
6611 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
6613 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
6615 if test "$cf_cv_utf8_lib" = "add-on" ; then
6617 cat >>confdefs.h <<\EOF
6618 #define HAVE_LIBUTF8_H 1
6621 if test -n "$cf_cv_header_path_utf8" ; then
6622 for cf_add_incdir in $cf_cv_header_path_utf8
6624 while test $cf_add_incdir != /usr/include
6626 if test -d $cf_add_incdir
6629 if test -n "$CFLAGS$CPPFLAGS" ; then
6630 # a loop is needed to ensure we can add subdirs of existing dirs
6631 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6632 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6633 cf_have_incdir=yes; break
6638 if test "$cf_have_incdir" = no ; then
6639 if test "$cf_add_incdir" = /usr/local/include ; then
6640 if test "$GCC" = yes
6642 cf_save_CPPFLAGS=$CPPFLAGS
6643 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6644 cat >conftest.$ac_ext <<_ACEOF
6645 #line 6645 "configure"
6646 #include "confdefs.h"
6656 rm -f conftest.$ac_objext
6657 if { (eval echo "$as_me:6657: \"$ac_compile\"") >&5
6658 (eval $ac_compile) 2>&5
6660 echo "$as_me:6660: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try='test -s conftest.$ac_objext'
6663 { (eval echo "$as_me:6663: \"$ac_try\"") >&5
6666 echo "$as_me:6666: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6670 echo "$as_me: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6674 rm -f conftest.$ac_objext conftest.$ac_ext
6675 CPPFLAGS=$cf_save_CPPFLAGS
6680 if test "$cf_have_incdir" = no ; then
6681 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6683 echo "${as_me:-configure}:6683: testing adding $cf_add_incdir to include-path ..." 1>&5
6685 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6687 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6688 test "$cf_top_incdir" = "$cf_add_incdir" && break
6689 cf_add_incdir="$cf_top_incdir"
6700 if test -n "$cf_cv_library_path_utf8" ; then
6701 for cf_add_libdir in $cf_cv_library_path_utf8
6703 if test $cf_add_libdir = /usr/lib ; then
6705 elif test -d $cf_add_libdir
6708 if test -n "$LDFLAGS$LIBS" ; then
6709 # a loop is needed to ensure we can add subdirs of existing dirs
6710 for cf_test_libdir in $LDFLAGS $LIBS ; do
6711 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6712 cf_have_libdir=yes; break
6716 if test "$cf_have_libdir" = no ; then
6717 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6719 echo "${as_me:-configure}:6719: testing adding $cf_add_libdir to library-path ..." 1>&5
6721 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6727 cf_add_libs="$cf_cv_library_file_utf8"
6728 # Filter out duplicates - this happens with badly-designed ".pc" files...
6729 for cf_add_1lib in $LIBS
6731 for cf_add_2lib in $cf_add_libs
6733 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6739 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6745 cf_ncuconfig_root=$cf_cv_screen
6746 cf_have_ncuconfig=no
6748 if test "x${PKG_CONFIG:=none}" != xnone; then
6749 echo "$as_me:6749: checking pkg-config for $cf_ncuconfig_root" >&5
6750 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
6751 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
6752 echo "$as_me:6752: result: yes" >&5
6753 echo "${ECHO_T}yes" >&6
6755 echo "$as_me:6755: checking if the $cf_ncuconfig_root package files work" >&5
6756 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
6757 cf_have_ncuconfig=unknown
6759 cf_save_CPPFLAGS="$CPPFLAGS"
6760 cf_save_LIBS="$LIBS"
6762 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
6764 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
6765 # Filter out duplicates - this happens with badly-designed ".pc" files...
6766 for cf_add_1lib in $LIBS
6768 for cf_add_2lib in $cf_add_libs
6770 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6776 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6780 cat >conftest.$ac_ext <<_ACEOF
6781 #line 6781 "configure"
6782 #include "confdefs.h"
6783 #include <${cf_cv_ncurses_header:-curses.h}>
6787 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
6792 rm -f conftest.$ac_objext conftest$ac_exeext
6793 if { (eval echo "$as_me:6793: \"$ac_link\"") >&5
6794 (eval $ac_link) 2>&5
6796 echo "$as_me:6796: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try='test -s conftest$ac_exeext'
6799 { (eval echo "$as_me:6799: \"$ac_try\"") >&5
6802 echo "$as_me:6802: \$? = $ac_status" >&5
6803 (exit $ac_status); }; }; then
6804 if test "$cross_compiling" = yes; then
6805 cf_have_ncuconfig=maybe
6807 cat >conftest.$ac_ext <<_ACEOF
6808 #line 6808 "configure"
6809 #include "confdefs.h"
6810 #include <${cf_cv_ncurses_header:-curses.h}>
6812 { char *xx = curses_version(); return (xx == 0); }
6814 rm -f conftest$ac_exeext
6815 if { (eval echo "$as_me:6815: \"$ac_link\"") >&5
6816 (eval $ac_link) 2>&5
6818 echo "$as_me:6818: \$? = $ac_status" >&5
6819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6820 { (eval echo "$as_me:6820: \"$ac_try\"") >&5
6823 echo "$as_me:6823: \$? = $ac_status" >&5
6824 (exit $ac_status); }; }; then
6825 cf_have_ncuconfig=yes
6827 echo "$as_me: program exited with status $ac_status" >&5
6828 echo "$as_me: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6830 cf_have_ncuconfig=no
6832 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6835 echo "$as_me: failed program was:" >&5
6836 cat conftest.$ac_ext >&5
6837 cf_have_ncuconfig=no
6839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6840 echo "$as_me:6840: result: $cf_have_ncuconfig" >&5
6841 echo "${ECHO_T}$cf_have_ncuconfig" >&6
6842 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
6843 if test "$cf_have_ncuconfig" != "yes"
6845 CPPFLAGS="$cf_save_CPPFLAGS"
6846 LIBS="$cf_save_LIBS"
6847 NCURSES_CONFIG_PKG=none
6850 cat >>confdefs.h <<\EOF
6854 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
6857 echo "$as_me:6857: checking for terminfo header" >&5
6858 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6859 if test "${cf_cv_term_header+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 case ${cf_cv_ncurses_header} in
6864 (*/ncurses.h|*/ncursesw.h)
6865 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6868 cf_term_header=term.h
6872 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6874 cat >conftest.$ac_ext <<_ACEOF
6875 #line 6875 "configure"
6876 #include "confdefs.h"
6878 #include <${cf_cv_ncurses_header:-curses.h}>
6884 int x = auto_left_margin
6889 rm -f conftest.$ac_objext
6890 if { (eval echo "$as_me:6890: \"$ac_compile\"") >&5
6891 (eval $ac_compile) 2>&5
6893 echo "$as_me:6893: \$? = $ac_status" >&5
6894 (exit $ac_status); } &&
6895 { ac_try='test -s conftest.$ac_objext'
6896 { (eval echo "$as_me:6896: \"$ac_try\"") >&5
6899 echo "$as_me:6899: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6902 cf_cv_term_header="$cf_test"
6904 echo "$as_me: failed program was:" >&5
6905 cat conftest.$ac_ext >&5
6907 cf_cv_term_header=unknown
6910 rm -f conftest.$ac_objext conftest.$ac_ext
6911 test "$cf_cv_term_header" != unknown && break
6915 echo "$as_me:6915: result: $cf_cv_term_header" >&5
6916 echo "${ECHO_T}$cf_cv_term_header" >&6
6918 # Set definitions to allow ifdef'ing to accommodate subdirectories
6920 case $cf_cv_term_header in
6923 cat >>confdefs.h <<\EOF
6924 #define HAVE_TERM_H 1
6930 case $cf_cv_term_header in
6933 cat >>confdefs.h <<\EOF
6934 #define HAVE_NCURSES_TERM_H 1
6940 cat >>confdefs.h <<\EOF
6941 #define HAVE_NCURSESW_TERM_H 1
6948 echo "$as_me:6948: result: no" >&5
6949 echo "${ECHO_T}no" >&6
6950 NCURSES_CONFIG_PKG=none
6953 NCURSES_CONFIG_PKG=none
6956 if test "x$cf_have_ncuconfig" = "xno"; then
6957 echo "Looking for ${cf_ncuconfig_root}-config"
6959 if test -n "$ac_tool_prefix"; then
6960 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6964 echo "$as_me:6964: checking for $ac_word" >&5
6965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6966 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 if test -n "$NCURSES_CONFIG"; then
6970 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
6972 ac_save_IFS=$IFS; IFS=$ac_path_separator
6974 for ac_dir in $ac_dummy; do
6976 test -z "$ac_dir" && ac_dir=.
6977 $as_executable_p "$ac_dir/$ac_word" || continue
6978 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
6979 echo "$as_me:6979: found $ac_dir/$ac_word" >&5
6985 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
6986 if test -n "$NCURSES_CONFIG"; then
6987 echo "$as_me:6987: result: $NCURSES_CONFIG" >&5
6988 echo "${ECHO_T}$NCURSES_CONFIG" >&6
6990 echo "$as_me:6990: result: no" >&5
6991 echo "${ECHO_T}no" >&6
6994 test -n "$NCURSES_CONFIG" && break
6997 if test -z "$NCURSES_CONFIG"; then
6998 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
6999 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
7001 # Extract the first word of "$ac_prog", so it can be a program name with args.
7002 set dummy $ac_prog; ac_word=$2
7003 echo "$as_me:7003: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7005 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 if test -n "$ac_ct_NCURSES_CONFIG"; then
7009 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
7011 ac_save_IFS=$IFS; IFS=$ac_path_separator
7013 for ac_dir in $ac_dummy; do
7015 test -z "$ac_dir" && ac_dir=.
7016 $as_executable_p "$ac_dir/$ac_word" || continue
7017 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
7018 echo "$as_me:7018: found $ac_dir/$ac_word" >&5
7024 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
7025 if test -n "$ac_ct_NCURSES_CONFIG"; then
7026 echo "$as_me:7026: result: $ac_ct_NCURSES_CONFIG" >&5
7027 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
7029 echo "$as_me:7029: result: no" >&5
7030 echo "${ECHO_T}no" >&6
7033 test -n "$ac_ct_NCURSES_CONFIG" && break
7035 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
7037 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
7040 if test "$NCURSES_CONFIG" != none ; then
7042 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
7044 cf_add_libs="`$NCURSES_CONFIG --libs`"
7045 # Filter out duplicates - this happens with badly-designed ".pc" files...
7046 for cf_add_1lib in $LIBS
7048 for cf_add_2lib in $cf_add_libs
7050 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7056 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7060 # even with config script, some packages use no-override for curses.h
7062 echo "$as_me:7062: checking if we have identified curses headers" >&5
7063 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
7064 if test "${cf_cv_ncurses_header+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 cf_cv_ncurses_header=none
7070 ncurses.h $cf_cv_screen/ncurses.h \
7071 curses.h $cf_cv_screen/curses.h
7073 cat >conftest.$ac_ext <<_ACEOF
7074 #line 7074 "configure"
7075 #include "confdefs.h"
7076 #include <${cf_header}>
7080 initscr(); tgoto("?", 0,0)
7085 rm -f conftest.$ac_objext
7086 if { (eval echo "$as_me:7086: \"$ac_compile\"") >&5
7087 (eval $ac_compile) 2>&5
7089 echo "$as_me:7089: \$? = $ac_status" >&5
7090 (exit $ac_status); } &&
7091 { ac_try='test -s conftest.$ac_objext'
7092 { (eval echo "$as_me:7092: \"$ac_try\"") >&5
7095 echo "$as_me:7095: \$? = $ac_status" >&5
7096 (exit $ac_status); }; }; then
7097 cf_cv_ncurses_header=$cf_header; break
7099 echo "$as_me: failed program was:" >&5
7100 cat conftest.$ac_ext >&5
7102 rm -f conftest.$ac_objext conftest.$ac_ext
7106 echo "$as_me:7106: result: $cf_cv_ncurses_header" >&5
7107 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
7109 if test "$cf_cv_ncurses_header" = none ; then
7110 { { echo "$as_me:7110: error: No curses header-files found" >&5
7111 echo "$as_me: error: No curses header-files found" >&2;}
7112 { (exit 1); exit 1; }; }
7115 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
7117 for ac_header in $cf_cv_ncurses_header
7119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7120 echo "$as_me:7120: checking for $ac_header" >&5
7121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 cat >conftest.$ac_ext <<_ACEOF
7126 #line 7126 "configure"
7127 #include "confdefs.h"
7128 #include <$ac_header>
7130 if { (eval echo "$as_me:7130: \"$ac_cpp conftest.$ac_ext\"") >&5
7131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7133 egrep -v '^ *\+' conftest.er1 >conftest.err
7135 cat conftest.err >&5
7136 echo "$as_me:7136: \$? = $ac_status" >&5
7137 (exit $ac_status); } >/dev/null; then
7138 if test -s conftest.err; then
7139 ac_cpp_err=$ac_c_preproc_warn_flag
7146 if test -z "$ac_cpp_err"; then
7147 eval "$as_ac_Header=yes"
7149 echo "$as_me: failed program was:" >&5
7150 cat conftest.$ac_ext >&5
7151 eval "$as_ac_Header=no"
7153 rm -f conftest.err conftest.$ac_ext
7155 echo "$as_me:7155: result: `eval echo '${'$as_ac_Header'}'`" >&5
7156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7158 cat >>confdefs.h <<EOF
7159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7165 cat >>confdefs.h <<\EOF
7169 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7171 cat >>confdefs.h <<EOF
7172 #define $cf_nculib_ROOT 1
7175 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
7179 cf_ncuhdr_root=$cf_cv_screen
7181 test -n "$cf_cv_curses_dir" && \
7182 test "$cf_cv_curses_dir" != "no" && { \
7184 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
7185 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
7187 while test $cf_add_incdir != /usr/include
7189 if test -d $cf_add_incdir
7192 if test -n "$CFLAGS$CPPFLAGS" ; then
7193 # a loop is needed to ensure we can add subdirs of existing dirs
7194 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7195 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7196 cf_have_incdir=yes; break
7201 if test "$cf_have_incdir" = no ; then
7202 if test "$cf_add_incdir" = /usr/local/include ; then
7203 if test "$GCC" = yes
7205 cf_save_CPPFLAGS=$CPPFLAGS
7206 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7207 cat >conftest.$ac_ext <<_ACEOF
7208 #line 7208 "configure"
7209 #include "confdefs.h"
7219 rm -f conftest.$ac_objext
7220 if { (eval echo "$as_me:7220: \"$ac_compile\"") >&5
7221 (eval $ac_compile) 2>&5
7223 echo "$as_me:7223: \$? = $ac_status" >&5
7224 (exit $ac_status); } &&
7225 { ac_try='test -s conftest.$ac_objext'
7226 { (eval echo "$as_me:7226: \"$ac_try\"") >&5
7229 echo "$as_me:7229: \$? = $ac_status" >&5
7230 (exit $ac_status); }; }; then
7233 echo "$as_me: failed program was:" >&5
7234 cat conftest.$ac_ext >&5
7237 rm -f conftest.$ac_objext conftest.$ac_ext
7238 CPPFLAGS=$cf_save_CPPFLAGS
7243 if test "$cf_have_incdir" = no ; then
7244 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7246 echo "${as_me:-configure}:7246: testing adding $cf_add_incdir to include-path ..." 1>&5
7248 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7250 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7251 test "$cf_top_incdir" = "$cf_add_incdir" && break
7252 cf_add_incdir="$cf_top_incdir"
7265 echo "$as_me:7265: checking for $cf_ncuhdr_root header in include-path" >&5
7266 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
7267 if test "${cf_cv_ncurses_h+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
7272 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
7273 for cf_header in $cf_header_list
7276 cat >conftest.$ac_ext <<_ACEOF
7277 #line 7277 "configure"
7278 #include "confdefs.h"
7280 #include <$cf_header>
7285 #ifdef NCURSES_VERSION
7287 printf("%s\n", NCURSES_VERSION);
7300 rm -f conftest.$ac_objext
7301 if { (eval echo "$as_me:7301: \"$ac_compile\"") >&5
7302 (eval $ac_compile) 2>&5
7304 echo "$as_me:7304: \$? = $ac_status" >&5
7305 (exit $ac_status); } &&
7306 { ac_try='test -s conftest.$ac_objext'
7307 { (eval echo "$as_me:7307: \"$ac_try\"") >&5
7310 echo "$as_me:7310: \$? = $ac_status" >&5
7311 (exit $ac_status); }; }; then
7312 cf_cv_ncurses_h=$cf_header
7315 echo "$as_me: failed program was:" >&5
7316 cat conftest.$ac_ext >&5
7319 rm -f conftest.$ac_objext conftest.$ac_ext
7321 test "$cf_cv_ncurses_h" != no && break
7325 echo "$as_me:7325: result: $cf_cv_ncurses_h" >&5
7326 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
7328 if test "$cf_cv_ncurses_h" != no ; then
7329 cf_cv_ncurses_header=$cf_cv_ncurses_h
7332 echo "$as_me:7332: checking for $cf_ncuhdr_root include-path" >&5
7333 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
7334 if test "${cf_cv_ncurses_h2+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 test -n "$verbose" && echo
7342 # collect the current set of include-directories from compiler flags
7343 cf_header_path_list=""
7344 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7345 for cf_header_path in $CPPFLAGS $CFLAGS
7347 case $cf_header_path in
7349 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7351 test "x$cf_header_path" != "xNONE" && \
7352 test -d "$cf_header_path" && \
7354 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7355 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7356 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
7357 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
7358 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
7359 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"
7362 cf_header_path_list="$cf_header_path_list $cf_search"
7368 # add the variations for the package we are looking for
7372 test "x$prefix" != "xNONE" && \
7373 test -d "$prefix" && \
7375 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7376 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7377 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
7378 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
7379 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
7380 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7383 for cf_subdir_prefix in \
7392 test "x$cf_subdir_prefix" != "x$prefix" && \
7393 test -d "$cf_subdir_prefix" && \
7394 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
7395 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
7396 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
7397 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
7398 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
7399 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
7400 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7405 test "$includedir" != NONE && \
7406 test "$includedir" != "/usr/include" && \
7407 test -d "$includedir" && {
7408 test -d $includedir && cf_search="$cf_search $includedir"
7409 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
7412 test "$oldincludedir" != NONE && \
7413 test "$oldincludedir" != "/usr/include" && \
7414 test -d "$oldincludedir" && {
7415 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7416 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
7419 cf_search="$cf_search $cf_header_path_list"
7421 test -n "$verbose" && echo search path $cf_search
7422 cf_save2_CPPFLAGS="$CPPFLAGS"
7423 for cf_incdir in $cf_search
7426 if test -n "$cf_incdir" ; then
7427 for cf_add_incdir in $cf_incdir
7429 while test $cf_add_incdir != /usr/include
7431 if test -d $cf_add_incdir
7434 if test -n "$CFLAGS$CPPFLAGS" ; then
7435 # a loop is needed to ensure we can add subdirs of existing dirs
7436 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7437 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7438 cf_have_incdir=yes; break
7443 if test "$cf_have_incdir" = no ; then
7444 if test "$cf_add_incdir" = /usr/local/include ; then
7445 if test "$GCC" = yes
7447 cf_save_CPPFLAGS=$CPPFLAGS
7448 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7449 cat >conftest.$ac_ext <<_ACEOF
7450 #line 7450 "configure"
7451 #include "confdefs.h"
7461 rm -f conftest.$ac_objext
7462 if { (eval echo "$as_me:7462: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>&5
7465 echo "$as_me:7465: \$? = $ac_status" >&5
7466 (exit $ac_status); } &&
7467 { ac_try='test -s conftest.$ac_objext'
7468 { (eval echo "$as_me:7468: \"$ac_try\"") >&5
7471 echo "$as_me:7471: \$? = $ac_status" >&5
7472 (exit $ac_status); }; }; then
7475 echo "$as_me: failed program was:" >&5
7476 cat conftest.$ac_ext >&5
7479 rm -f conftest.$ac_objext conftest.$ac_ext
7480 CPPFLAGS=$cf_save_CPPFLAGS
7485 if test "$cf_have_incdir" = no ; then
7486 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7488 echo "${as_me:-configure}:7488: testing adding $cf_add_incdir to include-path ..." 1>&5
7490 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7492 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7493 test "$cf_top_incdir" = "$cf_add_incdir" && break
7494 cf_add_incdir="$cf_top_incdir"
7510 cat >conftest.$ac_ext <<_ACEOF
7511 #line 7511 "configure"
7512 #include "confdefs.h"
7514 #include <$cf_header>
7519 #ifdef NCURSES_VERSION
7521 printf("%s\n", NCURSES_VERSION);
7534 rm -f conftest.$ac_objext
7535 if { (eval echo "$as_me:7535: \"$ac_compile\"") >&5
7536 (eval $ac_compile) 2>&5
7538 echo "$as_me:7538: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try='test -s conftest.$ac_objext'
7541 { (eval echo "$as_me:7541: \"$ac_try\"") >&5
7544 echo "$as_me:7544: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 cf_cv_ncurses_h2=$cf_header
7549 echo "$as_me: failed program was:" >&5
7550 cat conftest.$ac_ext >&5
7553 rm -f conftest.$ac_objext conftest.$ac_ext
7555 if test "$cf_cv_ncurses_h2" != no ; then
7556 cf_cv_ncurses_h2=$cf_incdir/$cf_header
7557 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
7560 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
7562 CPPFLAGS="$cf_save2_CPPFLAGS"
7563 test "$cf_cv_ncurses_h2" != no && break
7565 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:7565: error: not found" >&5
7566 echo "$as_me: error: not found" >&2;}
7567 { (exit 1); exit 1; }; }
7570 echo "$as_me:7570: result: $cf_cv_ncurses_h2" >&5
7571 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
7573 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
7574 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
7575 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
7576 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
7579 if test -n "$cf_1st_incdir" ; then
7580 for cf_add_incdir in $cf_1st_incdir
7582 while test $cf_add_incdir != /usr/include
7584 if test -d $cf_add_incdir
7587 if test -n "$CFLAGS$CPPFLAGS" ; then
7588 # a loop is needed to ensure we can add subdirs of existing dirs
7589 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7590 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7591 cf_have_incdir=yes; break
7596 if test "$cf_have_incdir" = no ; then
7597 if test "$cf_add_incdir" = /usr/local/include ; then
7598 if test "$GCC" = yes
7600 cf_save_CPPFLAGS=$CPPFLAGS
7601 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7602 cat >conftest.$ac_ext <<_ACEOF
7603 #line 7603 "configure"
7604 #include "confdefs.h"
7614 rm -f conftest.$ac_objext
7615 if { (eval echo "$as_me:7615: \"$ac_compile\"") >&5
7616 (eval $ac_compile) 2>&5
7618 echo "$as_me:7618: \$? = $ac_status" >&5
7619 (exit $ac_status); } &&
7620 { ac_try='test -s conftest.$ac_objext'
7621 { (eval echo "$as_me:7621: \"$ac_try\"") >&5
7624 echo "$as_me:7624: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7628 echo "$as_me: failed program was:" >&5
7629 cat conftest.$ac_ext >&5
7632 rm -f conftest.$ac_objext conftest.$ac_ext
7633 CPPFLAGS=$cf_save_CPPFLAGS
7638 if test "$cf_have_incdir" = no ; then
7639 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7641 echo "${as_me:-configure}:7641: testing adding $cf_add_incdir to include-path ..." 1>&5
7643 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7645 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7646 test "$cf_top_incdir" = "$cf_add_incdir" && break
7647 cf_add_incdir="$cf_top_incdir"
7660 # Set definitions to allow ifdef'ing for ncurses.h
7662 case $cf_cv_ncurses_header in
7665 cat >>confdefs.h <<\EOF
7666 #define HAVE_NCURSES_H 1
7672 case $cf_cv_ncurses_header in
7673 (ncurses/curses.h|ncurses/ncurses.h)
7675 cat >>confdefs.h <<\EOF
7676 #define HAVE_NCURSES_NCURSES_H 1
7680 (ncursesw/curses.h|ncursesw/ncurses.h)
7682 cat >>confdefs.h <<\EOF
7683 #define HAVE_NCURSESW_NCURSES_H 1
7689 echo "$as_me:7689: checking for terminfo header" >&5
7690 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
7691 if test "${cf_cv_term_header+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 case ${cf_cv_ncurses_header} in
7696 (*/ncurses.h|*/ncursesw.h)
7697 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
7700 cf_term_header=term.h
7704 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
7706 cat >conftest.$ac_ext <<_ACEOF
7707 #line 7707 "configure"
7708 #include "confdefs.h"
7710 #include <${cf_cv_ncurses_header:-curses.h}>
7716 int x = auto_left_margin
7721 rm -f conftest.$ac_objext
7722 if { (eval echo "$as_me:7722: \"$ac_compile\"") >&5
7723 (eval $ac_compile) 2>&5
7725 echo "$as_me:7725: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try='test -s conftest.$ac_objext'
7728 { (eval echo "$as_me:7728: \"$ac_try\"") >&5
7731 echo "$as_me:7731: \$? = $ac_status" >&5
7732 (exit $ac_status); }; }; then
7734 cf_cv_term_header="$cf_test"
7736 echo "$as_me: failed program was:" >&5
7737 cat conftest.$ac_ext >&5
7739 cf_cv_term_header=unknown
7742 rm -f conftest.$ac_objext conftest.$ac_ext
7743 test "$cf_cv_term_header" != unknown && break
7747 echo "$as_me:7747: result: $cf_cv_term_header" >&5
7748 echo "${ECHO_T}$cf_cv_term_header" >&6
7750 # Set definitions to allow ifdef'ing to accommodate subdirectories
7752 case $cf_cv_term_header in
7755 cat >>confdefs.h <<\EOF
7756 #define HAVE_TERM_H 1
7762 case $cf_cv_term_header in
7765 cat >>confdefs.h <<\EOF
7766 #define HAVE_NCURSES_TERM_H 1
7772 cat >>confdefs.h <<\EOF
7773 #define HAVE_NCURSESW_TERM_H 1
7779 # some applications need this, but should check for NCURSES_VERSION
7781 cat >>confdefs.h <<\EOF
7785 echo "$as_me:7785: checking for ncurses version" >&5
7786 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
7787 if test "${cf_cv_ncurses_version+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 cf_cv_ncurses_version=no
7794 if test "$cross_compiling" = yes; then
7796 # This will not work if the preprocessor splits the line after the
7797 # Autoconf token. The 'unproto' program does that.
7798 cat > conftest.$ac_ext <<EOF
7799 #include <${cf_cv_ncurses_header:-curses.h}>
7801 #ifdef NCURSES_VERSION
7802 Autoconf NCURSES_VERSION
7810 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
7811 { (eval echo "$as_me:7811: \"$cf_try\"") >&5
7814 echo "$as_me:7814: \$? = $ac_status" >&5
7815 (exit $ac_status); }
7816 if test -f conftest.out ; then
7817 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
7818 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
7823 cat >conftest.$ac_ext <<_ACEOF
7824 #line 7824 "configure"
7825 #include "confdefs.h"
7827 #include <${cf_cv_ncurses_header:-curses.h}>
7831 FILE *fp = fopen("$cf_tempfile", "w");
7832 #ifdef NCURSES_VERSION
7833 # ifdef NCURSES_VERSION_PATCH
7834 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
7836 fprintf(fp, "%s\n", NCURSES_VERSION);
7840 fprintf(fp, "old\n");
7845 ${cf_cv_main_return:-return}(0);
7848 rm -f conftest$ac_exeext
7849 if { (eval echo "$as_me:7849: \"$ac_link\"") >&5
7850 (eval $ac_link) 2>&5
7852 echo "$as_me:7852: \$? = $ac_status" >&5
7853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7854 { (eval echo "$as_me:7854: \"$ac_try\"") >&5
7857 echo "$as_me:7857: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7860 cf_cv_ncurses_version=`cat $cf_tempfile`
7862 echo "$as_me: program exited with status $ac_status" >&5
7863 echo "$as_me: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7866 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7871 echo "$as_me:7871: result: $cf_cv_ncurses_version" >&5
7872 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
7873 test "$cf_cv_ncurses_version" = no ||
7874 cat >>confdefs.h <<\EOF
7878 cf_nculib_root=$cf_cv_screen
7879 # This works, except for the special case where we find gpm, but
7880 # ncurses is in a nonstandard location via $LIBS, and we really want
7883 cf_ncurses_SAVE="$LIBS"
7884 echo "$as_me:7884: checking for Gpm_Open in -lgpm" >&5
7885 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7886 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 ac_check_lib_save_LIBS=$LIBS
7891 cat >conftest.$ac_ext <<_ACEOF
7892 #line 7892 "configure"
7893 #include "confdefs.h"
7895 /* Override any gcc2 internal prototype to avoid an error. */
7899 /* We use char because int might match the return type of a gcc2
7900 builtin and then its argument prototype would still apply. */
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (eval echo "$as_me:7911: \"$ac_link\"") >&5
7912 (eval $ac_link) 2>&5
7914 echo "$as_me:7914: \$? = $ac_status" >&5
7915 (exit $ac_status); } &&
7916 { ac_try='test -s conftest$ac_exeext'
7917 { (eval echo "$as_me:7917: \"$ac_try\"") >&5
7920 echo "$as_me:7920: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7922 ac_cv_lib_gpm_Gpm_Open=yes
7924 echo "$as_me: failed program was:" >&5
7925 cat conftest.$ac_ext >&5
7926 ac_cv_lib_gpm_Gpm_Open=no
7928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7929 LIBS=$ac_check_lib_save_LIBS
7931 echo "$as_me:7931: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7932 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7933 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
7934 echo "$as_me:7934: checking for initscr in -lgpm" >&5
7935 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
7936 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 ac_check_lib_save_LIBS=$LIBS
7941 cat >conftest.$ac_ext <<_ACEOF
7942 #line 7942 "configure"
7943 #include "confdefs.h"
7945 /* Override any gcc2 internal prototype to avoid an error. */
7949 /* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (eval echo "$as_me:7961: \"$ac_link\"") >&5
7962 (eval $ac_link) 2>&5
7964 echo "$as_me:7964: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try='test -s conftest$ac_exeext'
7967 { (eval echo "$as_me:7967: \"$ac_try\"") >&5
7970 echo "$as_me:7970: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7972 ac_cv_lib_gpm_initscr=yes
7974 echo "$as_me: failed program was:" >&5
7975 cat conftest.$ac_ext >&5
7976 ac_cv_lib_gpm_initscr=no
7978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7979 LIBS=$ac_check_lib_save_LIBS
7981 echo "$as_me:7981: result: $ac_cv_lib_gpm_initscr" >&5
7982 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
7983 if test $ac_cv_lib_gpm_initscr = yes; then
7984 LIBS="$cf_ncurses_SAVE"
7986 cf_ncurses_LIBS="-lgpm"
7993 # This is only necessary if you are linking against an obsolete
7994 # version of ncurses (but it should do no harm, since it's static).
7995 if test "$cf_nculib_root" = ncurses ; then
7996 echo "$as_me:7996: checking for tgoto in -lmytinfo" >&5
7997 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7998 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 ac_check_lib_save_LIBS=$LIBS
8002 LIBS="-lmytinfo $LIBS"
8003 cat >conftest.$ac_ext <<_ACEOF
8004 #line 8004 "configure"
8005 #include "confdefs.h"
8007 /* Override any gcc2 internal prototype to avoid an error. */
8011 /* We use char because int might match the return type of a gcc2
8012 builtin and then its argument prototype would still apply. */
8022 rm -f conftest.$ac_objext conftest$ac_exeext
8023 if { (eval echo "$as_me:8023: \"$ac_link\"") >&5
8024 (eval $ac_link) 2>&5
8026 echo "$as_me:8026: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try='test -s conftest$ac_exeext'
8029 { (eval echo "$as_me:8029: \"$ac_try\"") >&5
8032 echo "$as_me:8032: \$? = $ac_status" >&5
8033 (exit $ac_status); }; }; then
8034 ac_cv_lib_mytinfo_tgoto=yes
8036 echo "$as_me: failed program was:" >&5
8037 cat conftest.$ac_ext >&5
8038 ac_cv_lib_mytinfo_tgoto=no
8040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8041 LIBS=$ac_check_lib_save_LIBS
8043 echo "$as_me:8043: result: $ac_cv_lib_mytinfo_tgoto" >&5
8044 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
8045 if test $ac_cv_lib_mytinfo_tgoto = yes; then
8046 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
8053 cf_add_libs="$cf_ncurses_LIBS"
8054 # Filter out duplicates - this happens with badly-designed ".pc" files...
8055 for cf_add_1lib in $LIBS
8057 for cf_add_2lib in $cf_add_libs
8059 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8065 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8069 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
8072 cf_add_libs="-l$cf_nculib_root"
8073 # Filter out duplicates - this happens with badly-designed ".pc" files...
8074 for cf_add_1lib in $LIBS
8076 for cf_add_2lib in $cf_add_libs
8078 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8084 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8090 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
8092 echo "$as_me:8092: checking for initscr" >&5
8093 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
8094 if test "${ac_cv_func_initscr+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 cat >conftest.$ac_ext <<_ACEOF
8098 #line 8098 "configure"
8099 #include "confdefs.h"
8100 /* System header to define __stub macros and hopefully few prototypes,
8101 which can conflict with char initscr (); below. */
8103 /* Override any gcc2 internal prototype to avoid an error. */
8107 /* We use char because int might match the return type of a gcc2
8108 builtin and then its argument prototype would still apply. */
8115 /* The GNU C library defines this for functions which it implements
8116 to always fail with ENOSYS. Some functions are actually named
8117 something starting with __ and the normal name is an alias. */
8118 #if defined (__stub_initscr) || defined (__stub___initscr)
8121 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (eval echo "$as_me:8129: \"$ac_link\"") >&5
8130 (eval $ac_link) 2>&5
8132 echo "$as_me:8132: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
8134 { ac_try='test -s conftest$ac_exeext'
8135 { (eval echo "$as_me:8135: \"$ac_try\"") >&5
8138 echo "$as_me:8138: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 ac_cv_func_initscr=yes
8142 echo "$as_me: failed program was:" >&5
8143 cat conftest.$ac_ext >&5
8144 ac_cv_func_initscr=no
8146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8148 echo "$as_me:8148: result: $ac_cv_func_initscr" >&5
8149 echo "${ECHO_T}$ac_cv_func_initscr" >&6
8150 if test $ac_cv_func_initscr = yes; then
8151 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8154 cf_save_LIBS="$LIBS"
8155 echo "$as_me:8155: checking for initscr in -l$cf_nculib_root" >&5
8156 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
8157 LIBS="-l$cf_nculib_root $LIBS"
8158 cat >conftest.$ac_ext <<_ACEOF
8159 #line 8159 "configure"
8160 #include "confdefs.h"
8161 #include <${cf_cv_ncurses_header:-curses.h}>
8170 rm -f conftest.$ac_objext conftest$ac_exeext
8171 if { (eval echo "$as_me:8171: \"$ac_link\"") >&5
8172 (eval $ac_link) 2>&5
8174 echo "$as_me:8174: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try='test -s conftest$ac_exeext'
8177 { (eval echo "$as_me:8177: \"$ac_try\"") >&5
8180 echo "$as_me:8180: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 echo "$as_me:8182: result: yes" >&5
8183 echo "${ECHO_T}yes" >&6
8184 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8187 echo "$as_me: failed program was:" >&5
8188 cat conftest.$ac_ext >&5
8189 echo "$as_me:8189: result: no" >&5
8190 echo "${ECHO_T}no" >&6
8193 cf_library_path_list=""
8194 if test -n "${LDFLAGS}${LIBS}" ; then
8195 for cf_library_path in $LDFLAGS $LIBS
8197 case $cf_library_path in
8199 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8201 test "x$cf_library_path" != "xNONE" && \
8202 test -d "$cf_library_path" && \
8204 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8205 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8206 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
8207 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
8208 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
8209 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"
8212 cf_library_path_list="$cf_library_path_list $cf_search"
8220 test "x$prefix" != "xNONE" && \
8221 test -d "$prefix" && \
8223 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8224 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8225 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
8226 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
8227 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
8228 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
8231 for cf_subdir_prefix in \
8240 test "x$cf_subdir_prefix" != "x$prefix" && \
8241 test -d "$cf_subdir_prefix" && \
8242 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
8243 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
8244 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
8245 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
8246 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
8247 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
8248 test -d $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root"
8253 cf_search="$cf_library_path_list $cf_search"
8255 for cf_libdir in $cf_search
8257 echo "$as_me:8257: checking for -l$cf_nculib_root in $cf_libdir" >&5
8258 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
8259 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
8260 cat >conftest.$ac_ext <<_ACEOF
8261 #line 8261 "configure"
8262 #include "confdefs.h"
8263 #include <${cf_cv_ncurses_header:-curses.h}>
8272 rm -f conftest.$ac_objext conftest$ac_exeext
8273 if { (eval echo "$as_me:8273: \"$ac_link\"") >&5
8274 (eval $ac_link) 2>&5
8276 echo "$as_me:8276: \$? = $ac_status" >&5
8277 (exit $ac_status); } &&
8278 { ac_try='test -s conftest$ac_exeext'
8279 { (eval echo "$as_me:8279: \"$ac_try\"") >&5
8282 echo "$as_me:8282: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8284 echo "$as_me:8284: result: yes" >&5
8285 echo "${ECHO_T}yes" >&6
8286 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8289 echo "$as_me: failed program was:" >&5
8290 cat conftest.$ac_ext >&5
8291 echo "$as_me:8291: result: no" >&5
8292 echo "${ECHO_T}no" >&6
8293 LIBS="$cf_save_LIBS"
8295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8303 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
8305 if test $cf_found_library = no ; then
8306 { { echo "$as_me:8306: error: Cannot link $cf_nculib_root library" >&5
8307 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
8308 { (exit 1); exit 1; }; }
8313 if test -n "$cf_ncurses_LIBS" ; then
8314 echo "$as_me:8314: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
8315 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
8316 cf_ncurses_SAVE="$LIBS"
8317 for p in $cf_ncurses_LIBS ; do
8318 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
8319 if test "$q" != "$LIBS" ; then
8323 cat >conftest.$ac_ext <<_ACEOF
8324 #line 8324 "configure"
8325 #include "confdefs.h"
8326 #include <${cf_cv_ncurses_header:-curses.h}>
8330 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
8335 rm -f conftest.$ac_objext conftest$ac_exeext
8336 if { (eval echo "$as_me:8336: \"$ac_link\"") >&5
8337 (eval $ac_link) 2>&5
8339 echo "$as_me:8339: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -s conftest$ac_exeext'
8342 { (eval echo "$as_me:8342: \"$ac_try\"") >&5
8345 echo "$as_me:8345: \$? = $ac_status" >&5
8346 (exit $ac_status); }; }; then
8347 echo "$as_me:8347: result: yes" >&5
8348 echo "${ECHO_T}yes" >&6
8350 echo "$as_me: failed program was:" >&5
8351 cat conftest.$ac_ext >&5
8352 echo "$as_me:8352: result: no" >&5
8353 echo "${ECHO_T}no" >&6
8354 LIBS="$cf_ncurses_SAVE"
8356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8359 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8361 cat >>confdefs.h <<EOF
8362 #define $cf_nculib_ROOT 1
8373 cf_ncuconfig_root=$cf_cv_screen
8374 cf_have_ncuconfig=no
8376 if test "x${PKG_CONFIG:=none}" != xnone; then
8377 echo "$as_me:8377: checking pkg-config for $cf_ncuconfig_root" >&5
8378 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
8379 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
8380 echo "$as_me:8380: result: yes" >&5
8381 echo "${ECHO_T}yes" >&6
8383 echo "$as_me:8383: checking if the $cf_ncuconfig_root package files work" >&5
8384 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
8385 cf_have_ncuconfig=unknown
8387 cf_save_CPPFLAGS="$CPPFLAGS"
8388 cf_save_LIBS="$LIBS"
8390 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
8392 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
8393 # Filter out duplicates - this happens with badly-designed ".pc" files...
8394 for cf_add_1lib in $LIBS
8396 for cf_add_2lib in $cf_add_libs
8398 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8404 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8408 cat >conftest.$ac_ext <<_ACEOF
8409 #line 8409 "configure"
8410 #include "confdefs.h"
8411 #include <${cf_cv_ncurses_header:-curses.h}>
8415 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
8420 rm -f conftest.$ac_objext conftest$ac_exeext
8421 if { (eval echo "$as_me:8421: \"$ac_link\"") >&5
8422 (eval $ac_link) 2>&5
8424 echo "$as_me:8424: \$? = $ac_status" >&5
8425 (exit $ac_status); } &&
8426 { ac_try='test -s conftest$ac_exeext'
8427 { (eval echo "$as_me:8427: \"$ac_try\"") >&5
8430 echo "$as_me:8430: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 if test "$cross_compiling" = yes; then
8433 cf_have_ncuconfig=maybe
8435 cat >conftest.$ac_ext <<_ACEOF
8436 #line 8436 "configure"
8437 #include "confdefs.h"
8438 #include <${cf_cv_ncurses_header:-curses.h}>
8440 { char *xx = curses_version(); return (xx == 0); }
8442 rm -f conftest$ac_exeext
8443 if { (eval echo "$as_me:8443: \"$ac_link\"") >&5
8444 (eval $ac_link) 2>&5
8446 echo "$as_me:8446: \$? = $ac_status" >&5
8447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8448 { (eval echo "$as_me:8448: \"$ac_try\"") >&5
8451 echo "$as_me:8451: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 cf_have_ncuconfig=yes
8455 echo "$as_me: program exited with status $ac_status" >&5
8456 echo "$as_me: failed program was:" >&5
8457 cat conftest.$ac_ext >&5
8458 cf_have_ncuconfig=no
8460 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8463 echo "$as_me: failed program was:" >&5
8464 cat conftest.$ac_ext >&5
8465 cf_have_ncuconfig=no
8467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8468 echo "$as_me:8468: result: $cf_have_ncuconfig" >&5
8469 echo "${ECHO_T}$cf_have_ncuconfig" >&6
8470 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
8471 if test "$cf_have_ncuconfig" != "yes"
8473 CPPFLAGS="$cf_save_CPPFLAGS"
8474 LIBS="$cf_save_LIBS"
8475 NCURSES_CONFIG_PKG=none
8478 cat >>confdefs.h <<\EOF
8482 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
8485 echo "$as_me:8485: checking for terminfo header" >&5
8486 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
8487 if test "${cf_cv_term_header+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 case ${cf_cv_ncurses_header} in
8492 (*/ncurses.h|*/ncursesw.h)
8493 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8496 cf_term_header=term.h
8500 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
8502 cat >conftest.$ac_ext <<_ACEOF
8503 #line 8503 "configure"
8504 #include "confdefs.h"
8506 #include <${cf_cv_ncurses_header:-curses.h}>
8512 int x = auto_left_margin
8517 rm -f conftest.$ac_objext
8518 if { (eval echo "$as_me:8518: \"$ac_compile\"") >&5
8519 (eval $ac_compile) 2>&5
8521 echo "$as_me:8521: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -s conftest.$ac_objext'
8524 { (eval echo "$as_me:8524: \"$ac_try\"") >&5
8527 echo "$as_me:8527: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8530 cf_cv_term_header="$cf_test"
8532 echo "$as_me: failed program was:" >&5
8533 cat conftest.$ac_ext >&5
8535 cf_cv_term_header=unknown
8538 rm -f conftest.$ac_objext conftest.$ac_ext
8539 test "$cf_cv_term_header" != unknown && break
8543 echo "$as_me:8543: result: $cf_cv_term_header" >&5
8544 echo "${ECHO_T}$cf_cv_term_header" >&6
8546 # Set definitions to allow ifdef'ing to accommodate subdirectories
8548 case $cf_cv_term_header in
8551 cat >>confdefs.h <<\EOF
8552 #define HAVE_TERM_H 1
8558 case $cf_cv_term_header in
8561 cat >>confdefs.h <<\EOF
8562 #define HAVE_NCURSES_TERM_H 1
8568 cat >>confdefs.h <<\EOF
8569 #define HAVE_NCURSESW_TERM_H 1
8576 echo "$as_me:8576: result: no" >&5
8577 echo "${ECHO_T}no" >&6
8578 NCURSES_CONFIG_PKG=none
8581 NCURSES_CONFIG_PKG=none
8584 if test "x$cf_have_ncuconfig" = "xno"; then
8585 echo "Looking for ${cf_ncuconfig_root}-config"
8587 if test -n "$ac_tool_prefix"; then
8588 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8592 echo "$as_me:8592: checking for $ac_word" >&5
8593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8594 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 if test -n "$NCURSES_CONFIG"; then
8598 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
8600 ac_save_IFS=$IFS; IFS=$ac_path_separator
8602 for ac_dir in $ac_dummy; do
8604 test -z "$ac_dir" && ac_dir=.
8605 $as_executable_p "$ac_dir/$ac_word" || continue
8606 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
8607 echo "$as_me:8607: found $ac_dir/$ac_word" >&5
8613 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
8614 if test -n "$NCURSES_CONFIG"; then
8615 echo "$as_me:8615: result: $NCURSES_CONFIG" >&5
8616 echo "${ECHO_T}$NCURSES_CONFIG" >&6
8618 echo "$as_me:8618: result: no" >&5
8619 echo "${ECHO_T}no" >&6
8622 test -n "$NCURSES_CONFIG" && break
8625 if test -z "$NCURSES_CONFIG"; then
8626 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
8627 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8629 # Extract the first word of "$ac_prog", so it can be a program name with args.
8630 set dummy $ac_prog; ac_word=$2
8631 echo "$as_me:8631: checking for $ac_word" >&5
8632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8633 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 if test -n "$ac_ct_NCURSES_CONFIG"; then
8637 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
8639 ac_save_IFS=$IFS; IFS=$ac_path_separator
8641 for ac_dir in $ac_dummy; do
8643 test -z "$ac_dir" && ac_dir=.
8644 $as_executable_p "$ac_dir/$ac_word" || continue
8645 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
8646 echo "$as_me:8646: found $ac_dir/$ac_word" >&5
8652 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
8653 if test -n "$ac_ct_NCURSES_CONFIG"; then
8654 echo "$as_me:8654: result: $ac_ct_NCURSES_CONFIG" >&5
8655 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
8657 echo "$as_me:8657: result: no" >&5
8658 echo "${ECHO_T}no" >&6
8661 test -n "$ac_ct_NCURSES_CONFIG" && break
8663 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
8665 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
8668 if test "$NCURSES_CONFIG" != none ; then
8670 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
8672 cf_add_libs="`$NCURSES_CONFIG --libs`"
8673 # Filter out duplicates - this happens with badly-designed ".pc" files...
8674 for cf_add_1lib in $LIBS
8676 for cf_add_2lib in $cf_add_libs
8678 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8684 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8688 # even with config script, some packages use no-override for curses.h
8690 echo "$as_me:8690: checking if we have identified curses headers" >&5
8691 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
8692 if test "${cf_cv_ncurses_header+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 cf_cv_ncurses_header=none
8698 ncurses.h $cf_cv_screen/ncurses.h \
8699 curses.h $cf_cv_screen/curses.h
8701 cat >conftest.$ac_ext <<_ACEOF
8702 #line 8702 "configure"
8703 #include "confdefs.h"
8704 #include <${cf_header}>
8708 initscr(); tgoto("?", 0,0)
8713 rm -f conftest.$ac_objext
8714 if { (eval echo "$as_me:8714: \"$ac_compile\"") >&5
8715 (eval $ac_compile) 2>&5
8717 echo "$as_me:8717: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -s conftest.$ac_objext'
8720 { (eval echo "$as_me:8720: \"$ac_try\"") >&5
8723 echo "$as_me:8723: \$? = $ac_status" >&5
8724 (exit $ac_status); }; }; then
8725 cf_cv_ncurses_header=$cf_header; break
8727 echo "$as_me: failed program was:" >&5
8728 cat conftest.$ac_ext >&5
8730 rm -f conftest.$ac_objext conftest.$ac_ext
8734 echo "$as_me:8734: result: $cf_cv_ncurses_header" >&5
8735 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
8737 if test "$cf_cv_ncurses_header" = none ; then
8738 { { echo "$as_me:8738: error: No curses header-files found" >&5
8739 echo "$as_me: error: No curses header-files found" >&2;}
8740 { (exit 1); exit 1; }; }
8743 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
8745 for ac_header in $cf_cv_ncurses_header
8747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8748 echo "$as_me:8748: checking for $ac_header" >&5
8749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 cat >conftest.$ac_ext <<_ACEOF
8754 #line 8754 "configure"
8755 #include "confdefs.h"
8756 #include <$ac_header>
8758 if { (eval echo "$as_me:8758: \"$ac_cpp conftest.$ac_ext\"") >&5
8759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8761 egrep -v '^ *\+' conftest.er1 >conftest.err
8763 cat conftest.err >&5
8764 echo "$as_me:8764: \$? = $ac_status" >&5
8765 (exit $ac_status); } >/dev/null; then
8766 if test -s conftest.err; then
8767 ac_cpp_err=$ac_c_preproc_warn_flag
8774 if test -z "$ac_cpp_err"; then
8775 eval "$as_ac_Header=yes"
8777 echo "$as_me: failed program was:" >&5
8778 cat conftest.$ac_ext >&5
8779 eval "$as_ac_Header=no"
8781 rm -f conftest.err conftest.$ac_ext
8783 echo "$as_me:8783: result: `eval echo '${'$as_ac_Header'}'`" >&5
8784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8786 cat >>confdefs.h <<EOF
8787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8793 cat >>confdefs.h <<\EOF
8797 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8799 cat >>confdefs.h <<EOF
8800 #define $cf_nculib_ROOT 1
8803 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
8807 cf_ncuhdr_root=$cf_cv_screen
8809 test -n "$cf_cv_curses_dir" && \
8810 test "$cf_cv_curses_dir" != "no" && { \
8812 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
8813 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
8815 while test $cf_add_incdir != /usr/include
8817 if test -d $cf_add_incdir
8820 if test -n "$CFLAGS$CPPFLAGS" ; then
8821 # a loop is needed to ensure we can add subdirs of existing dirs
8822 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8823 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8824 cf_have_incdir=yes; break
8829 if test "$cf_have_incdir" = no ; then
8830 if test "$cf_add_incdir" = /usr/local/include ; then
8831 if test "$GCC" = yes
8833 cf_save_CPPFLAGS=$CPPFLAGS
8834 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8835 cat >conftest.$ac_ext <<_ACEOF
8836 #line 8836 "configure"
8837 #include "confdefs.h"
8847 rm -f conftest.$ac_objext
8848 if { (eval echo "$as_me:8848: \"$ac_compile\"") >&5
8849 (eval $ac_compile) 2>&5
8851 echo "$as_me:8851: \$? = $ac_status" >&5
8852 (exit $ac_status); } &&
8853 { ac_try='test -s conftest.$ac_objext'
8854 { (eval echo "$as_me:8854: \"$ac_try\"") >&5
8857 echo "$as_me:8857: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8861 echo "$as_me: failed program was:" >&5
8862 cat conftest.$ac_ext >&5
8865 rm -f conftest.$ac_objext conftest.$ac_ext
8866 CPPFLAGS=$cf_save_CPPFLAGS
8871 if test "$cf_have_incdir" = no ; then
8872 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8874 echo "${as_me:-configure}:8874: testing adding $cf_add_incdir to include-path ..." 1>&5
8876 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8878 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8879 test "$cf_top_incdir" = "$cf_add_incdir" && break
8880 cf_add_incdir="$cf_top_incdir"
8893 echo "$as_me:8893: checking for $cf_ncuhdr_root header in include-path" >&5
8894 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
8895 if test "${cf_cv_ncurses_h+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
8900 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
8901 for cf_header in $cf_header_list
8904 cat >conftest.$ac_ext <<_ACEOF
8905 #line 8905 "configure"
8906 #include "confdefs.h"
8908 #include <$cf_header>
8913 #ifdef NCURSES_VERSION
8915 printf("%s\n", NCURSES_VERSION);
8928 rm -f conftest.$ac_objext
8929 if { (eval echo "$as_me:8929: \"$ac_compile\"") >&5
8930 (eval $ac_compile) 2>&5
8932 echo "$as_me:8932: \$? = $ac_status" >&5
8933 (exit $ac_status); } &&
8934 { ac_try='test -s conftest.$ac_objext'
8935 { (eval echo "$as_me:8935: \"$ac_try\"") >&5
8938 echo "$as_me:8938: \$? = $ac_status" >&5
8939 (exit $ac_status); }; }; then
8940 cf_cv_ncurses_h=$cf_header
8943 echo "$as_me: failed program was:" >&5
8944 cat conftest.$ac_ext >&5
8947 rm -f conftest.$ac_objext conftest.$ac_ext
8949 test "$cf_cv_ncurses_h" != no && break
8953 echo "$as_me:8953: result: $cf_cv_ncurses_h" >&5
8954 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
8956 if test "$cf_cv_ncurses_h" != no ; then
8957 cf_cv_ncurses_header=$cf_cv_ncurses_h
8960 echo "$as_me:8960: checking for $cf_ncuhdr_root include-path" >&5
8961 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
8962 if test "${cf_cv_ncurses_h2+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 test -n "$verbose" && echo
8970 # collect the current set of include-directories from compiler flags
8971 cf_header_path_list=""
8972 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8973 for cf_header_path in $CPPFLAGS $CFLAGS
8975 case $cf_header_path in
8977 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8979 test "x$cf_header_path" != "xNONE" && \
8980 test -d "$cf_header_path" && \
8982 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8983 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8984 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
8985 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
8986 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
8987 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"
8990 cf_header_path_list="$cf_header_path_list $cf_search"
8996 # add the variations for the package we are looking for
9000 test "x$prefix" != "xNONE" && \
9001 test -d "$prefix" && \
9003 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
9004 test -d $prefix/include && cf_search="$cf_search $prefix/include"
9005 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
9006 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
9007 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
9008 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
9011 for cf_subdir_prefix in \
9020 test "x$cf_subdir_prefix" != "x$prefix" && \
9021 test -d "$cf_subdir_prefix" && \
9022 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9023 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
9024 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
9025 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
9026 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
9027 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
9028 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
9033 test "$includedir" != NONE && \
9034 test "$includedir" != "/usr/include" && \
9035 test -d "$includedir" && {
9036 test -d $includedir && cf_search="$cf_search $includedir"
9037 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
9040 test "$oldincludedir" != NONE && \
9041 test "$oldincludedir" != "/usr/include" && \
9042 test -d "$oldincludedir" && {
9043 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
9044 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
9047 cf_search="$cf_search $cf_header_path_list"
9049 test -n "$verbose" && echo search path $cf_search
9050 cf_save2_CPPFLAGS="$CPPFLAGS"
9051 for cf_incdir in $cf_search
9054 if test -n "$cf_incdir" ; then
9055 for cf_add_incdir in $cf_incdir
9057 while test $cf_add_incdir != /usr/include
9059 if test -d $cf_add_incdir
9062 if test -n "$CFLAGS$CPPFLAGS" ; then
9063 # a loop is needed to ensure we can add subdirs of existing dirs
9064 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9065 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9066 cf_have_incdir=yes; break
9071 if test "$cf_have_incdir" = no ; then
9072 if test "$cf_add_incdir" = /usr/local/include ; then
9073 if test "$GCC" = yes
9075 cf_save_CPPFLAGS=$CPPFLAGS
9076 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9077 cat >conftest.$ac_ext <<_ACEOF
9078 #line 9078 "configure"
9079 #include "confdefs.h"
9089 rm -f conftest.$ac_objext
9090 if { (eval echo "$as_me:9090: \"$ac_compile\"") >&5
9091 (eval $ac_compile) 2>&5
9093 echo "$as_me:9093: \$? = $ac_status" >&5
9094 (exit $ac_status); } &&
9095 { ac_try='test -s conftest.$ac_objext'
9096 { (eval echo "$as_me:9096: \"$ac_try\"") >&5
9099 echo "$as_me:9099: \$? = $ac_status" >&5
9100 (exit $ac_status); }; }; then
9103 echo "$as_me: failed program was:" >&5
9104 cat conftest.$ac_ext >&5
9107 rm -f conftest.$ac_objext conftest.$ac_ext
9108 CPPFLAGS=$cf_save_CPPFLAGS
9113 if test "$cf_have_incdir" = no ; then
9114 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9116 echo "${as_me:-configure}:9116: testing adding $cf_add_incdir to include-path ..." 1>&5
9118 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9120 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9121 test "$cf_top_incdir" = "$cf_add_incdir" && break
9122 cf_add_incdir="$cf_top_incdir"
9138 cat >conftest.$ac_ext <<_ACEOF
9139 #line 9139 "configure"
9140 #include "confdefs.h"
9142 #include <$cf_header>
9147 #ifdef NCURSES_VERSION
9149 printf("%s\n", NCURSES_VERSION);
9162 rm -f conftest.$ac_objext
9163 if { (eval echo "$as_me:9163: \"$ac_compile\"") >&5
9164 (eval $ac_compile) 2>&5
9166 echo "$as_me:9166: \$? = $ac_status" >&5
9167 (exit $ac_status); } &&
9168 { ac_try='test -s conftest.$ac_objext'
9169 { (eval echo "$as_me:9169: \"$ac_try\"") >&5
9172 echo "$as_me:9172: \$? = $ac_status" >&5
9173 (exit $ac_status); }; }; then
9174 cf_cv_ncurses_h2=$cf_header
9177 echo "$as_me: failed program was:" >&5
9178 cat conftest.$ac_ext >&5
9181 rm -f conftest.$ac_objext conftest.$ac_ext
9183 if test "$cf_cv_ncurses_h2" != no ; then
9184 cf_cv_ncurses_h2=$cf_incdir/$cf_header
9185 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
9188 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
9190 CPPFLAGS="$cf_save2_CPPFLAGS"
9191 test "$cf_cv_ncurses_h2" != no && break
9193 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:9193: error: not found" >&5
9194 echo "$as_me: error: not found" >&2;}
9195 { (exit 1); exit 1; }; }
9198 echo "$as_me:9198: result: $cf_cv_ncurses_h2" >&5
9199 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
9201 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
9202 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
9203 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
9204 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
9207 if test -n "$cf_1st_incdir" ; then
9208 for cf_add_incdir in $cf_1st_incdir
9210 while test $cf_add_incdir != /usr/include
9212 if test -d $cf_add_incdir
9215 if test -n "$CFLAGS$CPPFLAGS" ; then
9216 # a loop is needed to ensure we can add subdirs of existing dirs
9217 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9218 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9219 cf_have_incdir=yes; break
9224 if test "$cf_have_incdir" = no ; then
9225 if test "$cf_add_incdir" = /usr/local/include ; then
9226 if test "$GCC" = yes
9228 cf_save_CPPFLAGS=$CPPFLAGS
9229 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9230 cat >conftest.$ac_ext <<_ACEOF
9231 #line 9231 "configure"
9232 #include "confdefs.h"
9242 rm -f conftest.$ac_objext
9243 if { (eval echo "$as_me:9243: \"$ac_compile\"") >&5
9244 (eval $ac_compile) 2>&5
9246 echo "$as_me:9246: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -s conftest.$ac_objext'
9249 { (eval echo "$as_me:9249: \"$ac_try\"") >&5
9252 echo "$as_me:9252: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9256 echo "$as_me: failed program was:" >&5
9257 cat conftest.$ac_ext >&5
9260 rm -f conftest.$ac_objext conftest.$ac_ext
9261 CPPFLAGS=$cf_save_CPPFLAGS
9266 if test "$cf_have_incdir" = no ; then
9267 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9269 echo "${as_me:-configure}:9269: testing adding $cf_add_incdir to include-path ..." 1>&5
9271 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9273 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9274 test "$cf_top_incdir" = "$cf_add_incdir" && break
9275 cf_add_incdir="$cf_top_incdir"
9288 # Set definitions to allow ifdef'ing for ncurses.h
9290 case $cf_cv_ncurses_header in
9293 cat >>confdefs.h <<\EOF
9294 #define HAVE_NCURSES_H 1
9300 case $cf_cv_ncurses_header in
9301 (ncurses/curses.h|ncurses/ncurses.h)
9303 cat >>confdefs.h <<\EOF
9304 #define HAVE_NCURSES_NCURSES_H 1
9308 (ncursesw/curses.h|ncursesw/ncurses.h)
9310 cat >>confdefs.h <<\EOF
9311 #define HAVE_NCURSESW_NCURSES_H 1
9317 echo "$as_me:9317: checking for terminfo header" >&5
9318 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
9319 if test "${cf_cv_term_header+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 case ${cf_cv_ncurses_header} in
9324 (*/ncurses.h|*/ncursesw.h)
9325 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
9328 cf_term_header=term.h
9332 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
9334 cat >conftest.$ac_ext <<_ACEOF
9335 #line 9335 "configure"
9336 #include "confdefs.h"
9338 #include <${cf_cv_ncurses_header:-curses.h}>
9344 int x = auto_left_margin
9349 rm -f conftest.$ac_objext
9350 if { (eval echo "$as_me:9350: \"$ac_compile\"") >&5
9351 (eval $ac_compile) 2>&5
9353 echo "$as_me:9353: \$? = $ac_status" >&5
9354 (exit $ac_status); } &&
9355 { ac_try='test -s conftest.$ac_objext'
9356 { (eval echo "$as_me:9356: \"$ac_try\"") >&5
9359 echo "$as_me:9359: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9362 cf_cv_term_header="$cf_test"
9364 echo "$as_me: failed program was:" >&5
9365 cat conftest.$ac_ext >&5
9367 cf_cv_term_header=unknown
9370 rm -f conftest.$ac_objext conftest.$ac_ext
9371 test "$cf_cv_term_header" != unknown && break
9375 echo "$as_me:9375: result: $cf_cv_term_header" >&5
9376 echo "${ECHO_T}$cf_cv_term_header" >&6
9378 # Set definitions to allow ifdef'ing to accommodate subdirectories
9380 case $cf_cv_term_header in
9383 cat >>confdefs.h <<\EOF
9384 #define HAVE_TERM_H 1
9390 case $cf_cv_term_header in
9393 cat >>confdefs.h <<\EOF
9394 #define HAVE_NCURSES_TERM_H 1
9400 cat >>confdefs.h <<\EOF
9401 #define HAVE_NCURSESW_TERM_H 1
9407 # some applications need this, but should check for NCURSES_VERSION
9409 cat >>confdefs.h <<\EOF
9413 echo "$as_me:9413: checking for ncurses version" >&5
9414 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
9415 if test "${cf_cv_ncurses_version+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 cf_cv_ncurses_version=no
9422 if test "$cross_compiling" = yes; then
9424 # This will not work if the preprocessor splits the line after the
9425 # Autoconf token. The 'unproto' program does that.
9426 cat > conftest.$ac_ext <<EOF
9427 #include <${cf_cv_ncurses_header:-curses.h}>
9429 #ifdef NCURSES_VERSION
9430 Autoconf NCURSES_VERSION
9438 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
9439 { (eval echo "$as_me:9439: \"$cf_try\"") >&5
9442 echo "$as_me:9442: \$? = $ac_status" >&5
9443 (exit $ac_status); }
9444 if test -f conftest.out ; then
9445 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
9446 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
9451 cat >conftest.$ac_ext <<_ACEOF
9452 #line 9452 "configure"
9453 #include "confdefs.h"
9455 #include <${cf_cv_ncurses_header:-curses.h}>
9459 FILE *fp = fopen("$cf_tempfile", "w");
9460 #ifdef NCURSES_VERSION
9461 # ifdef NCURSES_VERSION_PATCH
9462 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
9464 fprintf(fp, "%s\n", NCURSES_VERSION);
9468 fprintf(fp, "old\n");
9473 ${cf_cv_main_return:-return}(0);
9476 rm -f conftest$ac_exeext
9477 if { (eval echo "$as_me:9477: \"$ac_link\"") >&5
9478 (eval $ac_link) 2>&5
9480 echo "$as_me:9480: \$? = $ac_status" >&5
9481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9482 { (eval echo "$as_me:9482: \"$ac_try\"") >&5
9485 echo "$as_me:9485: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9488 cf_cv_ncurses_version=`cat $cf_tempfile`
9490 echo "$as_me: program exited with status $ac_status" >&5
9491 echo "$as_me: failed program was:" >&5
9492 cat conftest.$ac_ext >&5
9494 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9499 echo "$as_me:9499: result: $cf_cv_ncurses_version" >&5
9500 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
9501 test "$cf_cv_ncurses_version" = no ||
9502 cat >>confdefs.h <<\EOF
9506 cf_nculib_root=$cf_cv_screen
9507 # This works, except for the special case where we find gpm, but
9508 # ncurses is in a nonstandard location via $LIBS, and we really want
9511 cf_ncurses_SAVE="$LIBS"
9512 echo "$as_me:9512: checking for Gpm_Open in -lgpm" >&5
9513 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
9514 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 ac_check_lib_save_LIBS=$LIBS
9519 cat >conftest.$ac_ext <<_ACEOF
9520 #line 9520 "configure"
9521 #include "confdefs.h"
9523 /* Override any gcc2 internal prototype to avoid an error. */
9527 /* We use char because int might match the return type of a gcc2
9528 builtin and then its argument prototype would still apply. */
9538 rm -f conftest.$ac_objext conftest$ac_exeext
9539 if { (eval echo "$as_me:9539: \"$ac_link\"") >&5
9540 (eval $ac_link) 2>&5
9542 echo "$as_me:9542: \$? = $ac_status" >&5
9543 (exit $ac_status); } &&
9544 { ac_try='test -s conftest$ac_exeext'
9545 { (eval echo "$as_me:9545: \"$ac_try\"") >&5
9548 echo "$as_me:9548: \$? = $ac_status" >&5
9549 (exit $ac_status); }; }; then
9550 ac_cv_lib_gpm_Gpm_Open=yes
9552 echo "$as_me: failed program was:" >&5
9553 cat conftest.$ac_ext >&5
9554 ac_cv_lib_gpm_Gpm_Open=no
9556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9557 LIBS=$ac_check_lib_save_LIBS
9559 echo "$as_me:9559: result: $ac_cv_lib_gpm_Gpm_Open" >&5
9560 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
9561 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
9562 echo "$as_me:9562: checking for initscr in -lgpm" >&5
9563 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
9564 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 ac_check_lib_save_LIBS=$LIBS
9569 cat >conftest.$ac_ext <<_ACEOF
9570 #line 9570 "configure"
9571 #include "confdefs.h"
9573 /* Override any gcc2 internal prototype to avoid an error. */
9577 /* We use char because int might match the return type of a gcc2
9578 builtin and then its argument prototype would still apply. */
9588 rm -f conftest.$ac_objext conftest$ac_exeext
9589 if { (eval echo "$as_me:9589: \"$ac_link\"") >&5
9590 (eval $ac_link) 2>&5
9592 echo "$as_me:9592: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
9594 { ac_try='test -s conftest$ac_exeext'
9595 { (eval echo "$as_me:9595: \"$ac_try\"") >&5
9598 echo "$as_me:9598: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_cv_lib_gpm_initscr=yes
9602 echo "$as_me: failed program was:" >&5
9603 cat conftest.$ac_ext >&5
9604 ac_cv_lib_gpm_initscr=no
9606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9607 LIBS=$ac_check_lib_save_LIBS
9609 echo "$as_me:9609: result: $ac_cv_lib_gpm_initscr" >&5
9610 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
9611 if test $ac_cv_lib_gpm_initscr = yes; then
9612 LIBS="$cf_ncurses_SAVE"
9614 cf_ncurses_LIBS="-lgpm"
9621 # This is only necessary if you are linking against an obsolete
9622 # version of ncurses (but it should do no harm, since it's static).
9623 if test "$cf_nculib_root" = ncurses ; then
9624 echo "$as_me:9624: checking for tgoto in -lmytinfo" >&5
9625 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
9626 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 ac_check_lib_save_LIBS=$LIBS
9630 LIBS="-lmytinfo $LIBS"
9631 cat >conftest.$ac_ext <<_ACEOF
9632 #line 9632 "configure"
9633 #include "confdefs.h"
9635 /* Override any gcc2 internal prototype to avoid an error. */
9639 /* We use char because int might match the return type of a gcc2
9640 builtin and then its argument prototype would still apply. */
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (eval echo "$as_me:9651: \"$ac_link\"") >&5
9652 (eval $ac_link) 2>&5
9654 echo "$as_me:9654: \$? = $ac_status" >&5
9655 (exit $ac_status); } &&
9656 { ac_try='test -s conftest$ac_exeext'
9657 { (eval echo "$as_me:9657: \"$ac_try\"") >&5
9660 echo "$as_me:9660: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 ac_cv_lib_mytinfo_tgoto=yes
9664 echo "$as_me: failed program was:" >&5
9665 cat conftest.$ac_ext >&5
9666 ac_cv_lib_mytinfo_tgoto=no
9668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9669 LIBS=$ac_check_lib_save_LIBS
9671 echo "$as_me:9671: result: $ac_cv_lib_mytinfo_tgoto" >&5
9672 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
9673 if test $ac_cv_lib_mytinfo_tgoto = yes; then
9674 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
9681 cf_add_libs="$cf_ncurses_LIBS"
9682 # Filter out duplicates - this happens with badly-designed ".pc" files...
9683 for cf_add_1lib in $LIBS
9685 for cf_add_2lib in $cf_add_libs
9687 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9693 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9697 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
9700 cf_add_libs="-l$cf_nculib_root"
9701 # Filter out duplicates - this happens with badly-designed ".pc" files...
9702 for cf_add_1lib in $LIBS
9704 for cf_add_2lib in $cf_add_libs
9706 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9712 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9718 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
9720 echo "$as_me:9720: checking for initscr" >&5
9721 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
9722 if test "${ac_cv_func_initscr+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 cat >conftest.$ac_ext <<_ACEOF
9726 #line 9726 "configure"
9727 #include "confdefs.h"
9728 /* System header to define __stub macros and hopefully few prototypes,
9729 which can conflict with char initscr (); below. */
9731 /* Override any gcc2 internal prototype to avoid an error. */
9735 /* We use char because int might match the return type of a gcc2
9736 builtin and then its argument prototype would still apply. */
9743 /* The GNU C library defines this for functions which it implements
9744 to always fail with ENOSYS. Some functions are actually named
9745 something starting with __ and the normal name is an alias. */
9746 #if defined (__stub_initscr) || defined (__stub___initscr)
9749 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (eval echo "$as_me:9757: \"$ac_link\"") >&5
9758 (eval $ac_link) 2>&5
9760 echo "$as_me:9760: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try='test -s conftest$ac_exeext'
9763 { (eval echo "$as_me:9763: \"$ac_try\"") >&5
9766 echo "$as_me:9766: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 ac_cv_func_initscr=yes
9770 echo "$as_me: failed program was:" >&5
9771 cat conftest.$ac_ext >&5
9772 ac_cv_func_initscr=no
9774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9776 echo "$as_me:9776: result: $ac_cv_func_initscr" >&5
9777 echo "${ECHO_T}$ac_cv_func_initscr" >&6
9778 if test $ac_cv_func_initscr = yes; then
9779 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9782 cf_save_LIBS="$LIBS"
9783 echo "$as_me:9783: checking for initscr in -l$cf_nculib_root" >&5
9784 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
9785 LIBS="-l$cf_nculib_root $LIBS"
9786 cat >conftest.$ac_ext <<_ACEOF
9787 #line 9787 "configure"
9788 #include "confdefs.h"
9789 #include <${cf_cv_ncurses_header:-curses.h}>
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (eval echo "$as_me:9799: \"$ac_link\"") >&5
9800 (eval $ac_link) 2>&5
9802 echo "$as_me:9802: \$? = $ac_status" >&5
9803 (exit $ac_status); } &&
9804 { ac_try='test -s conftest$ac_exeext'
9805 { (eval echo "$as_me:9805: \"$ac_try\"") >&5
9808 echo "$as_me:9808: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 echo "$as_me:9810: result: yes" >&5
9811 echo "${ECHO_T}yes" >&6
9812 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9815 echo "$as_me: failed program was:" >&5
9816 cat conftest.$ac_ext >&5
9817 echo "$as_me:9817: result: no" >&5
9818 echo "${ECHO_T}no" >&6
9821 cf_library_path_list=""
9822 if test -n "${LDFLAGS}${LIBS}" ; then
9823 for cf_library_path in $LDFLAGS $LIBS
9825 case $cf_library_path in
9827 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9829 test "x$cf_library_path" != "xNONE" && \
9830 test -d "$cf_library_path" && \
9832 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9833 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9834 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
9835 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
9836 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
9837 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"
9840 cf_library_path_list="$cf_library_path_list $cf_search"
9848 test "x$prefix" != "xNONE" && \
9849 test -d "$prefix" && \
9851 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9852 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9853 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
9854 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
9855 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
9856 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
9859 for cf_subdir_prefix in \
9868 test "x$cf_subdir_prefix" != "x$prefix" && \
9869 test -d "$cf_subdir_prefix" && \
9870 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9871 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
9872 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
9873 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
9874 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
9875 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
9876 test -d $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root"
9881 cf_search="$cf_library_path_list $cf_search"
9883 for cf_libdir in $cf_search
9885 echo "$as_me:9885: checking for -l$cf_nculib_root in $cf_libdir" >&5
9886 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
9887 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
9888 cat >conftest.$ac_ext <<_ACEOF
9889 #line 9889 "configure"
9890 #include "confdefs.h"
9891 #include <${cf_cv_ncurses_header:-curses.h}>
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (eval echo "$as_me:9901: \"$ac_link\"") >&5
9902 (eval $ac_link) 2>&5
9904 echo "$as_me:9904: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:9907: \"$ac_try\"") >&5
9910 echo "$as_me:9910: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 echo "$as_me:9912: result: yes" >&5
9913 echo "${ECHO_T}yes" >&6
9914 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9917 echo "$as_me: failed program was:" >&5
9918 cat conftest.$ac_ext >&5
9919 echo "$as_me:9919: result: no" >&5
9920 echo "${ECHO_T}no" >&6
9921 LIBS="$cf_save_LIBS"
9923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9931 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
9933 if test $cf_found_library = no ; then
9934 { { echo "$as_me:9934: error: Cannot link $cf_nculib_root library" >&5
9935 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
9936 { (exit 1); exit 1; }; }
9941 if test -n "$cf_ncurses_LIBS" ; then
9942 echo "$as_me:9942: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
9943 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
9944 cf_ncurses_SAVE="$LIBS"
9945 for p in $cf_ncurses_LIBS ; do
9946 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
9947 if test "$q" != "$LIBS" ; then
9951 cat >conftest.$ac_ext <<_ACEOF
9952 #line 9952 "configure"
9953 #include "confdefs.h"
9954 #include <${cf_cv_ncurses_header:-curses.h}>
9958 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (eval echo "$as_me:9964: \"$ac_link\"") >&5
9965 (eval $ac_link) 2>&5
9967 echo "$as_me:9967: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
9969 { ac_try='test -s conftest$ac_exeext'
9970 { (eval echo "$as_me:9970: \"$ac_try\"") >&5
9973 echo "$as_me:9973: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
9975 echo "$as_me:9975: result: yes" >&5
9976 echo "${ECHO_T}yes" >&6
9978 echo "$as_me: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9980 echo "$as_me:9980: result: no" >&5
9981 echo "${ECHO_T}no" >&6
9982 LIBS="$cf_ncurses_SAVE"
9984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9987 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9989 cat >>confdefs.h <<EOF
9990 #define $cf_nculib_ROOT 1
10000 echo "$as_me:10000: checking for X" >&5
10001 echo $ECHO_N "checking for X... $ECHO_C" >&6
10003 # Check whether --with-x or --without-x was given.
10004 if test "${with_x+set}" = set; then
10008 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10009 if test "x$with_x" = xno; then
10010 # The user explicitly disabled X.
10013 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10014 # Both variables are already set.
10017 if test "${ac_cv_have_x+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 # One or both of the vars are not set, and there is no cached value.
10021 ac_x_includes=no ac_x_libraries=no
10022 rm -fr conftest.dir
10023 if mkdir conftest.dir; then
10025 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10026 cat >Imakefile <<'EOF'
10028 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10030 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10031 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10032 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10033 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10034 for ac_extension in a so sl dylib dll; do
10035 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
10036 test -f $ac_im_libdir/libX11.$ac_extension; then
10037 ac_im_usrlibdir=$ac_im_libdir; break
10040 # Screen out bogus values from the imake configuration. They are
10041 # bogus both because they are the default anyway, and because
10042 # using them would break gcc on systems where it needs fixed includes.
10043 case $ac_im_incroot in
10045 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10047 case $ac_im_usrlibdir in
10048 /usr/lib | /lib) ;;
10049 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10053 rm -fr conftest.dir
10056 # Standard set of common directories for X headers.
10057 # Check X11 before X11Rn because it is often a symlink to the current release.
10069 /usr/local/X11/include
10070 /usr/local/X11R6/include
10071 /usr/local/X11R5/include
10072 /usr/local/X11R4/include
10074 /usr/local/include/X11
10075 /usr/local/include/X11R6
10076 /usr/local/include/X11R5
10077 /usr/local/include/X11R4
10081 /usr/XFree86/include/X11
10085 /usr/unsupported/include
10086 /usr/athena/include
10087 /usr/local/x11r5/include
10088 /usr/lpp/Xamples/include
10090 /usr/openwin/include
10091 /usr/openwin/share/include'
10093 if test "$ac_x_includes" = no; then
10094 # Guess where to find include files, by looking for Intrinsic.h.
10095 # First, try using that file with no special directory specified.
10096 cat >conftest.$ac_ext <<_ACEOF
10097 #line 10097 "configure"
10098 #include "confdefs.h"
10099 #include <X11/Intrinsic.h>
10101 if { (eval echo "$as_me:10101: \"$ac_cpp conftest.$ac_ext\"") >&5
10102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10104 egrep -v '^ *\+' conftest.er1 >conftest.err
10106 cat conftest.err >&5
10107 echo "$as_me:10107: \$? = $ac_status" >&5
10108 (exit $ac_status); } >/dev/null; then
10109 if test -s conftest.err; then
10110 ac_cpp_err=$ac_c_preproc_warn_flag
10117 if test -z "$ac_cpp_err"; then
10118 # We can compile using X headers with no special include directory.
10121 echo "$as_me: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10123 for ac_dir in $ac_x_header_dirs; do
10124 if test -r "$ac_dir/X11/Intrinsic.h"; then
10125 ac_x_includes=$ac_dir
10130 rm -f conftest.err conftest.$ac_ext
10131 fi # $ac_x_includes = no
10133 if test "$ac_x_libraries" = no; then
10134 # Check for the libraries.
10135 # See if we find them without any special options.
10136 # Don't add to $LIBS permanently.
10139 cat >conftest.$ac_ext <<_ACEOF
10140 #line 10140 "configure"
10141 #include "confdefs.h"
10142 #include <X11/Intrinsic.h>
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (eval echo "$as_me:10152: \"$ac_link\"") >&5
10153 (eval $ac_link) 2>&5
10155 echo "$as_me:10155: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -s conftest$ac_exeext'
10158 { (eval echo "$as_me:10158: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10161 echo "$as_me:10161: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10164 # We can link X programs with no special library path.
10167 echo "$as_me: failed program was:" >&5
10168 cat conftest.$ac_ext >&5
10170 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10172 # Don't even attempt the hair of trying to link an X program!
10173 for ac_extension in a so sl dylib dll; do
10174 if test -r $ac_dir/libXt.$ac_extension; then
10175 ac_x_libraries=$ac_dir
10181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10182 fi # $ac_x_libraries = no
10184 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
10185 # Didn't find X anywhere. Cache the known absence of X.
10186 ac_cv_have_x="have_x=no"
10188 # Record where we found X for the cache.
10189 ac_cv_have_x="have_x=yes \
10190 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10195 eval "$ac_cv_have_x"
10198 if test "$have_x" != yes; then
10199 echo "$as_me:10199: result: $have_x" >&5
10200 echo "${ECHO_T}$have_x" >&6
10203 # If each of the values was on the command line, it overrides each guess.
10204 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10205 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10206 # Update the cache value to reflect the command line values.
10207 ac_cv_have_x="have_x=yes \
10208 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10209 echo "$as_me:10209: result: libraries $x_libraries, headers $x_includes" >&5
10210 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
10213 if test "$no_x" = yes; then
10214 # Not all programs may use this symbol, but it does not hurt to define it.
10216 cat >>confdefs.h <<\EOF
10217 #define X_DISPLAY_MISSING 1
10220 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10222 if test -n "$x_includes"; then
10223 X_CFLAGS="$X_CFLAGS -I$x_includes"
10226 # It would also be nice to do this for all -L options, not just this one.
10227 if test -n "$x_libraries"; then
10228 X_LIBS="$X_LIBS -L$x_libraries"
10229 # For Solaris; some versions of Sun CC require a space after -R and
10230 # others require no space. Words are not sufficient . . . .
10231 case `(uname -sr) 2>/dev/null` in
10233 echo "$as_me:10233: checking whether -R must be followed by a space" >&5
10234 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
10235 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
10236 cat >conftest.$ac_ext <<_ACEOF
10237 #line 10237 "configure"
10238 #include "confdefs.h"
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (eval echo "$as_me:10249: \"$ac_link\"") >&5
10250 (eval $ac_link) 2>&5
10252 echo "$as_me:10252: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try='test -s conftest$ac_exeext'
10255 { (eval echo "$as_me:10255: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10258 echo "$as_me:10258: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10262 echo "$as_me: failed program was:" >&5
10263 cat conftest.$ac_ext >&5
10266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10267 if test $ac_R_nospace = yes; then
10268 echo "$as_me:10268: result: no" >&5
10269 echo "${ECHO_T}no" >&6
10270 X_LIBS="$X_LIBS -R$x_libraries"
10272 LIBS="$ac_xsave_LIBS -R $x_libraries"
10273 cat >conftest.$ac_ext <<_ACEOF
10274 #line 10274 "configure"
10275 #include "confdefs.h"
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (eval echo "$as_me:10286: \"$ac_link\"") >&5
10287 (eval $ac_link) 2>&5
10289 echo "$as_me:10289: \$? = $ac_status" >&5
10290 (exit $ac_status); } &&
10291 { ac_try='test -s conftest$ac_exeext'
10292 { (eval echo "$as_me:10292: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:10295: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10299 echo "$as_me: failed program was:" >&5
10300 cat conftest.$ac_ext >&5
10303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10304 if test $ac_R_space = yes; then
10305 echo "$as_me:10305: result: yes" >&5
10306 echo "${ECHO_T}yes" >&6
10307 X_LIBS="$X_LIBS -R $x_libraries"
10309 echo "$as_me:10309: result: neither works" >&5
10310 echo "${ECHO_T}neither works" >&6
10313 LIBS=$ac_xsave_LIBS
10317 # Check for system-dependent libraries X programs must link with.
10318 # Do this before checking for the system-independent R6 libraries
10319 # (-lICE), since we may need -lsocket or whatever for X linking.
10321 if test "$ISC" = yes; then
10322 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10324 # Martyn Johnson says this is needed for Ultrix, if the X
10325 # libraries were built with DECnet support. And Karl Berry says
10326 # the Alpha needs dnet_stub (dnet does not exist).
10327 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10328 cat >conftest.$ac_ext <<_ACEOF
10329 #line 10329 "configure"
10330 #include "confdefs.h"
10332 /* Override any gcc2 internal prototype to avoid an error. */
10336 /* We use char because int might match the return type of a gcc2
10337 builtin and then its argument prototype would still apply. */
10338 char XOpenDisplay ();
10347 rm -f conftest.$ac_objext conftest$ac_exeext
10348 if { (eval echo "$as_me:10348: \"$ac_link\"") >&5
10349 (eval $ac_link) 2>&5
10351 echo "$as_me:10351: \$? = $ac_status" >&5
10352 (exit $ac_status); } &&
10353 { ac_try='test -s conftest$ac_exeext'
10354 { (eval echo "$as_me:10354: \"$ac_try\"") >&5
10355 (eval $ac_try) 2>&5
10357 echo "$as_me:10357: \$? = $ac_status" >&5
10358 (exit $ac_status); }; }; then
10361 echo "$as_me: failed program was:" >&5
10362 cat conftest.$ac_ext >&5
10363 echo "$as_me:10363: checking for dnet_ntoa in -ldnet" >&5
10364 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
10365 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 ac_check_lib_save_LIBS=$LIBS
10369 LIBS="-ldnet $LIBS"
10370 cat >conftest.$ac_ext <<_ACEOF
10371 #line 10371 "configure"
10372 #include "confdefs.h"
10374 /* Override any gcc2 internal prototype to avoid an error. */
10378 /* We use char because int might match the return type of a gcc2
10379 builtin and then its argument prototype would still apply. */
10389 rm -f conftest.$ac_objext conftest$ac_exeext
10390 if { (eval echo "$as_me:10390: \"$ac_link\"") >&5
10391 (eval $ac_link) 2>&5
10393 echo "$as_me:10393: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try='test -s conftest$ac_exeext'
10396 { (eval echo "$as_me:10396: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10399 echo "$as_me:10399: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
10401 ac_cv_lib_dnet_dnet_ntoa=yes
10403 echo "$as_me: failed program was:" >&5
10404 cat conftest.$ac_ext >&5
10405 ac_cv_lib_dnet_dnet_ntoa=no
10407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10408 LIBS=$ac_check_lib_save_LIBS
10410 echo "$as_me:10410: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10411 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10412 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10413 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10416 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10417 echo "$as_me:10417: checking for dnet_ntoa in -ldnet_stub" >&5
10418 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10419 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 ac_check_lib_save_LIBS=$LIBS
10423 LIBS="-ldnet_stub $LIBS"
10424 cat >conftest.$ac_ext <<_ACEOF
10425 #line 10425 "configure"
10426 #include "confdefs.h"
10428 /* Override any gcc2 internal prototype to avoid an error. */
10432 /* We use char because int might match the return type of a gcc2
10433 builtin and then its argument prototype would still apply. */
10443 rm -f conftest.$ac_objext conftest$ac_exeext
10444 if { (eval echo "$as_me:10444: \"$ac_link\"") >&5
10445 (eval $ac_link) 2>&5
10447 echo "$as_me:10447: \$? = $ac_status" >&5
10448 (exit $ac_status); } &&
10449 { ac_try='test -s conftest$ac_exeext'
10450 { (eval echo "$as_me:10450: \"$ac_try\"") >&5
10451 (eval $ac_try) 2>&5
10453 echo "$as_me:10453: \$? = $ac_status" >&5
10454 (exit $ac_status); }; }; then
10455 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10457 echo "$as_me: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10459 ac_cv_lib_dnet_stub_dnet_ntoa=no
10461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10462 LIBS=$ac_check_lib_save_LIBS
10464 echo "$as_me:10464: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10465 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10466 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10467 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10473 LIBS="$ac_xsave_LIBS"
10475 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10476 # to get the SysV transport functions.
10477 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10479 # The nsl library prevents programs from opening the X display
10480 # on Irix 5.2, according to T.E. Dickey.
10481 # The functions gethostbyname, getservbyname, and inet_addr are
10482 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10483 echo "$as_me:10483: checking for gethostbyname" >&5
10484 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10485 if test "${ac_cv_func_gethostbyname+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 cat >conftest.$ac_ext <<_ACEOF
10489 #line 10489 "configure"
10490 #include "confdefs.h"
10491 /* System header to define __stub macros and hopefully few prototypes,
10492 which can conflict with char gethostbyname (); below. */
10493 #include <assert.h>
10494 /* Override any gcc2 internal prototype to avoid an error. */
10498 /* We use char because int might match the return type of a gcc2
10499 builtin and then its argument prototype would still apply. */
10500 char gethostbyname ();
10506 /* The GNU C library defines this for functions which it implements
10507 to always fail with ENOSYS. Some functions are actually named
10508 something starting with __ and the normal name is an alias. */
10509 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10512 f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (eval echo "$as_me:10520: \"$ac_link\"") >&5
10521 (eval $ac_link) 2>&5
10523 echo "$as_me:10523: \$? = $ac_status" >&5
10524 (exit $ac_status); } &&
10525 { ac_try='test -s conftest$ac_exeext'
10526 { (eval echo "$as_me:10526: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10529 echo "$as_me:10529: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10531 ac_cv_func_gethostbyname=yes
10533 echo "$as_me: failed program was:" >&5
10534 cat conftest.$ac_ext >&5
10535 ac_cv_func_gethostbyname=no
10537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10539 echo "$as_me:10539: result: $ac_cv_func_gethostbyname" >&5
10540 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10542 if test $ac_cv_func_gethostbyname = no; then
10543 echo "$as_me:10543: checking for gethostbyname in -lnsl" >&5
10544 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10545 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 ac_check_lib_save_LIBS=$LIBS
10550 cat >conftest.$ac_ext <<_ACEOF
10551 #line 10551 "configure"
10552 #include "confdefs.h"
10554 /* Override any gcc2 internal prototype to avoid an error. */
10558 /* We use char because int might match the return type of a gcc2
10559 builtin and then its argument prototype would still apply. */
10560 char gethostbyname ();
10569 rm -f conftest.$ac_objext conftest$ac_exeext
10570 if { (eval echo "$as_me:10570: \"$ac_link\"") >&5
10571 (eval $ac_link) 2>&5
10573 echo "$as_me:10573: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -s conftest$ac_exeext'
10576 { (eval echo "$as_me:10576: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:10579: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10581 ac_cv_lib_nsl_gethostbyname=yes
10583 echo "$as_me: failed program was:" >&5
10584 cat conftest.$ac_ext >&5
10585 ac_cv_lib_nsl_gethostbyname=no
10587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10588 LIBS=$ac_check_lib_save_LIBS
10590 echo "$as_me:10590: result: $ac_cv_lib_nsl_gethostbyname" >&5
10591 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10592 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10593 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10596 if test $ac_cv_lib_nsl_gethostbyname = no; then
10597 echo "$as_me:10597: checking for gethostbyname in -lbsd" >&5
10598 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10599 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10602 ac_check_lib_save_LIBS=$LIBS
10604 cat >conftest.$ac_ext <<_ACEOF
10605 #line 10605 "configure"
10606 #include "confdefs.h"
10608 /* Override any gcc2 internal prototype to avoid an error. */
10612 /* We use char because int might match the return type of a gcc2
10613 builtin and then its argument prototype would still apply. */
10614 char gethostbyname ();
10623 rm -f conftest.$ac_objext conftest$ac_exeext
10624 if { (eval echo "$as_me:10624: \"$ac_link\"") >&5
10625 (eval $ac_link) 2>&5
10627 echo "$as_me:10627: \$? = $ac_status" >&5
10628 (exit $ac_status); } &&
10629 { ac_try='test -s conftest$ac_exeext'
10630 { (eval echo "$as_me:10630: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10633 echo "$as_me:10633: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ac_cv_lib_bsd_gethostbyname=yes
10637 echo "$as_me: failed program was:" >&5
10638 cat conftest.$ac_ext >&5
10639 ac_cv_lib_bsd_gethostbyname=no
10641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10642 LIBS=$ac_check_lib_save_LIBS
10644 echo "$as_me:10644: result: $ac_cv_lib_bsd_gethostbyname" >&5
10645 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10646 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10647 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10653 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10654 # socket/setsockopt and other routines are undefined under SCO ODT
10655 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10656 # on later versions), says Simon Leinen: it contains gethostby*
10657 # variants that don't use the nameserver (or something). -lsocket
10658 # must be given before -lnsl if both are needed. We assume that
10659 # if connect needs -lnsl, so does gethostbyname.
10660 echo "$as_me:10660: checking for connect" >&5
10661 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10662 if test "${ac_cv_func_connect+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10665 cat >conftest.$ac_ext <<_ACEOF
10666 #line 10666 "configure"
10667 #include "confdefs.h"
10668 /* System header to define __stub macros and hopefully few prototypes,
10669 which can conflict with char connect (); below. */
10670 #include <assert.h>
10671 /* Override any gcc2 internal prototype to avoid an error. */
10675 /* We use char because int might match the return type of a gcc2
10676 builtin and then its argument prototype would still apply. */
10683 /* The GNU C library defines this for functions which it implements
10684 to always fail with ENOSYS. Some functions are actually named
10685 something starting with __ and the normal name is an alias. */
10686 #if defined (__stub_connect) || defined (__stub___connect)
10689 f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10696 rm -f conftest.$ac_objext conftest$ac_exeext
10697 if { (eval echo "$as_me:10697: \"$ac_link\"") >&5
10698 (eval $ac_link) 2>&5
10700 echo "$as_me:10700: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -s conftest$ac_exeext'
10703 { (eval echo "$as_me:10703: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10706 echo "$as_me:10706: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 ac_cv_func_connect=yes
10710 echo "$as_me: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10712 ac_cv_func_connect=no
10714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10716 echo "$as_me:10716: result: $ac_cv_func_connect" >&5
10717 echo "${ECHO_T}$ac_cv_func_connect" >&6
10719 if test $ac_cv_func_connect = no; then
10720 echo "$as_me:10720: checking for connect in -lsocket" >&5
10721 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10722 if test "${ac_cv_lib_socket_connect+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 ac_check_lib_save_LIBS=$LIBS
10726 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10727 cat >conftest.$ac_ext <<_ACEOF
10728 #line 10728 "configure"
10729 #include "confdefs.h"
10731 /* Override any gcc2 internal prototype to avoid an error. */
10735 /* We use char because int might match the return type of a gcc2
10736 builtin and then its argument prototype would still apply. */
10746 rm -f conftest.$ac_objext conftest$ac_exeext
10747 if { (eval echo "$as_me:10747: \"$ac_link\"") >&5
10748 (eval $ac_link) 2>&5
10750 echo "$as_me:10750: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try='test -s conftest$ac_exeext'
10753 { (eval echo "$as_me:10753: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10756 echo "$as_me:10756: \$? = $ac_status" >&5
10757 (exit $ac_status); }; }; then
10758 ac_cv_lib_socket_connect=yes
10760 echo "$as_me: failed program was:" >&5
10761 cat conftest.$ac_ext >&5
10762 ac_cv_lib_socket_connect=no
10764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10765 LIBS=$ac_check_lib_save_LIBS
10767 echo "$as_me:10767: result: $ac_cv_lib_socket_connect" >&5
10768 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10769 if test $ac_cv_lib_socket_connect = yes; then
10770 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10775 # Guillermo Gomez says -lposix is necessary on A/UX.
10776 echo "$as_me:10776: checking for remove" >&5
10777 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10778 if test "${ac_cv_func_remove+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 cat >conftest.$ac_ext <<_ACEOF
10782 #line 10782 "configure"
10783 #include "confdefs.h"
10784 /* System header to define __stub macros and hopefully few prototypes,
10785 which can conflict with char remove (); below. */
10786 #include <assert.h>
10787 /* Override any gcc2 internal prototype to avoid an error. */
10791 /* We use char because int might match the return type of a gcc2
10792 builtin and then its argument prototype would still apply. */
10799 /* The GNU C library defines this for functions which it implements
10800 to always fail with ENOSYS. Some functions are actually named
10801 something starting with __ and the normal name is an alias. */
10802 #if defined (__stub_remove) || defined (__stub___remove)
10805 f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10812 rm -f conftest.$ac_objext conftest$ac_exeext
10813 if { (eval echo "$as_me:10813: \"$ac_link\"") >&5
10814 (eval $ac_link) 2>&5
10816 echo "$as_me:10816: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try='test -s conftest$ac_exeext'
10819 { (eval echo "$as_me:10819: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10822 echo "$as_me:10822: \$? = $ac_status" >&5
10823 (exit $ac_status); }; }; then
10824 ac_cv_func_remove=yes
10826 echo "$as_me: failed program was:" >&5
10827 cat conftest.$ac_ext >&5
10828 ac_cv_func_remove=no
10830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10832 echo "$as_me:10832: result: $ac_cv_func_remove" >&5
10833 echo "${ECHO_T}$ac_cv_func_remove" >&6
10835 if test $ac_cv_func_remove = no; then
10836 echo "$as_me:10836: checking for remove in -lposix" >&5
10837 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10838 if test "${ac_cv_lib_posix_remove+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 ac_check_lib_save_LIBS=$LIBS
10842 LIBS="-lposix $LIBS"
10843 cat >conftest.$ac_ext <<_ACEOF
10844 #line 10844 "configure"
10845 #include "confdefs.h"
10847 /* Override any gcc2 internal prototype to avoid an error. */
10851 /* We use char because int might match the return type of a gcc2
10852 builtin and then its argument prototype would still apply. */
10862 rm -f conftest.$ac_objext conftest$ac_exeext
10863 if { (eval echo "$as_me:10863: \"$ac_link\"") >&5
10864 (eval $ac_link) 2>&5
10866 echo "$as_me:10866: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -s conftest$ac_exeext'
10869 { (eval echo "$as_me:10869: \"$ac_try\"") >&5
10870 (eval $ac_try) 2>&5
10872 echo "$as_me:10872: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
10874 ac_cv_lib_posix_remove=yes
10876 echo "$as_me: failed program was:" >&5
10877 cat conftest.$ac_ext >&5
10878 ac_cv_lib_posix_remove=no
10880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
10883 echo "$as_me:10883: result: $ac_cv_lib_posix_remove" >&5
10884 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10885 if test $ac_cv_lib_posix_remove = yes; then
10886 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10891 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10892 echo "$as_me:10892: checking for shmat" >&5
10893 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10894 if test "${ac_cv_func_shmat+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 cat >conftest.$ac_ext <<_ACEOF
10898 #line 10898 "configure"
10899 #include "confdefs.h"
10900 /* System header to define __stub macros and hopefully few prototypes,
10901 which can conflict with char shmat (); below. */
10902 #include <assert.h>
10903 /* Override any gcc2 internal prototype to avoid an error. */
10907 /* We use char because int might match the return type of a gcc2
10908 builtin and then its argument prototype would still apply. */
10915 /* The GNU C library defines this for functions which it implements
10916 to always fail with ENOSYS. Some functions are actually named
10917 something starting with __ and the normal name is an alias. */
10918 #if defined (__stub_shmat) || defined (__stub___shmat)
10921 f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10928 rm -f conftest.$ac_objext conftest$ac_exeext
10929 if { (eval echo "$as_me:10929: \"$ac_link\"") >&5
10930 (eval $ac_link) 2>&5
10932 echo "$as_me:10932: \$? = $ac_status" >&5
10933 (exit $ac_status); } &&
10934 { ac_try='test -s conftest$ac_exeext'
10935 { (eval echo "$as_me:10935: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10938 echo "$as_me:10938: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 ac_cv_func_shmat=yes
10942 echo "$as_me: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10944 ac_cv_func_shmat=no
10946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10948 echo "$as_me:10948: result: $ac_cv_func_shmat" >&5
10949 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10951 if test $ac_cv_func_shmat = no; then
10952 echo "$as_me:10952: checking for shmat in -lipc" >&5
10953 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10954 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10955 echo $ECHO_N "(cached) $ECHO_C" >&6
10957 ac_check_lib_save_LIBS=$LIBS
10959 cat >conftest.$ac_ext <<_ACEOF
10960 #line 10960 "configure"
10961 #include "confdefs.h"
10963 /* Override any gcc2 internal prototype to avoid an error. */
10967 /* We use char because int might match the return type of a gcc2
10968 builtin and then its argument prototype would still apply. */
10978 rm -f conftest.$ac_objext conftest$ac_exeext
10979 if { (eval echo "$as_me:10979: \"$ac_link\"") >&5
10980 (eval $ac_link) 2>&5
10982 echo "$as_me:10982: \$? = $ac_status" >&5
10983 (exit $ac_status); } &&
10984 { ac_try='test -s conftest$ac_exeext'
10985 { (eval echo "$as_me:10985: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10988 echo "$as_me:10988: \$? = $ac_status" >&5
10989 (exit $ac_status); }; }; then
10990 ac_cv_lib_ipc_shmat=yes
10992 echo "$as_me: failed program was:" >&5
10993 cat conftest.$ac_ext >&5
10994 ac_cv_lib_ipc_shmat=no
10996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10997 LIBS=$ac_check_lib_save_LIBS
10999 echo "$as_me:10999: result: $ac_cv_lib_ipc_shmat" >&5
11000 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
11001 if test $ac_cv_lib_ipc_shmat = yes; then
11002 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11008 # Check for libraries that X11R6 Xt/Xaw programs need.
11009 ac_save_LDFLAGS=$LDFLAGS
11010 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11011 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11012 # check for ICE first), but we must link in the order -lSM -lICE or
11013 # we get undefined symbols. So assume we have SM if we have ICE.
11014 # These have to be linked with before -lX11, unlike the other
11015 # libraries we check for below, so use a different variable.
11016 # John Interrante, Karl Berry
11017 echo "$as_me:11017: checking for IceConnectionNumber in -lICE" >&5
11018 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
11019 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 ac_check_lib_save_LIBS=$LIBS
11023 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11024 cat >conftest.$ac_ext <<_ACEOF
11025 #line 11025 "configure"
11026 #include "confdefs.h"
11028 /* Override any gcc2 internal prototype to avoid an error. */
11032 /* We use char because int might match the return type of a gcc2
11033 builtin and then its argument prototype would still apply. */
11034 char IceConnectionNumber ();
11038 IceConnectionNumber ();
11043 rm -f conftest.$ac_objext conftest$ac_exeext
11044 if { (eval echo "$as_me:11044: \"$ac_link\"") >&5
11045 (eval $ac_link) 2>&5
11047 echo "$as_me:11047: \$? = $ac_status" >&5
11048 (exit $ac_status); } &&
11049 { ac_try='test -s conftest$ac_exeext'
11050 { (eval echo "$as_me:11050: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11053 echo "$as_me:11053: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 ac_cv_lib_ICE_IceConnectionNumber=yes
11057 echo "$as_me: failed program was:" >&5
11058 cat conftest.$ac_ext >&5
11059 ac_cv_lib_ICE_IceConnectionNumber=no
11061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11062 LIBS=$ac_check_lib_save_LIBS
11064 echo "$as_me:11064: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
11065 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
11066 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
11067 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11070 LDFLAGS=$ac_save_LDFLAGS
11074 cf_x_athena=${cf_x_athena:-Xaw}
11076 echo "$as_me:11076: checking if you want to link with Xaw 3d library" >&5
11077 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
11080 # Check whether --with-Xaw3d or --without-Xaw3d was given.
11081 if test "${with_Xaw3d+set}" = set; then
11082 withval="$with_Xaw3d"
11085 if test "$withval" = yes ; then
11087 echo "$as_me:11087: result: yes" >&5
11088 echo "${ECHO_T}yes" >&6
11090 echo "$as_me:11090: result: no" >&5
11091 echo "${ECHO_T}no" >&6
11094 echo "$as_me:11094: checking if you want to link with Xaw 3d xft library" >&5
11095 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
11098 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
11099 if test "${with_Xaw3dxft+set}" = set; then
11100 withval="$with_Xaw3dxft"
11103 if test "$withval" = yes ; then
11104 cf_x_athena=Xaw3dxft
11105 echo "$as_me:11105: result: yes" >&5
11106 echo "${ECHO_T}yes" >&6
11108 echo "$as_me:11108: result: no" >&5
11109 echo "${ECHO_T}no" >&6
11112 echo "$as_me:11112: checking if you want to link with neXT Athena library" >&5
11113 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
11116 # Check whether --with-neXtaw or --without-neXtaw was given.
11117 if test "${with_neXtaw+set}" = set; then
11118 withval="$with_neXtaw"
11121 if test "$withval" = yes ; then
11123 echo "$as_me:11123: result: yes" >&5
11124 echo "${ECHO_T}yes" >&6
11126 echo "$as_me:11126: result: no" >&5
11127 echo "${ECHO_T}no" >&6
11130 echo "$as_me:11130: checking if you want to link with Athena-Plus library" >&5
11131 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
11134 # Check whether --with-XawPlus or --without-XawPlus was given.
11135 if test "${with_XawPlus+set}" = set; then
11136 withval="$with_XawPlus"
11139 if test "$withval" = yes ; then
11140 cf_x_athena=XawPlus
11141 echo "$as_me:11141: result: yes" >&5
11142 echo "${ECHO_T}yes" >&6
11144 echo "$as_me:11144: result: no" >&5
11145 echo "${ECHO_T}no" >&6
11150 if test "$PKG_CONFIG" != none ; then
11152 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
11153 for cf_athena_pkg in \
11156 ${cf_x_athena}-devel \
11157 lib${cf_x_athena} \
11158 lib${cf_x_athena}-devel
11161 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
11162 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
11164 echo "${as_me:-configure}:11164: testing found package $cf_athena_pkg ..." 1>&5
11166 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
11167 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
11168 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
11170 echo "${as_me:-configure}:11170: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11172 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
11174 echo "${as_me:-configure}:11174: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
11179 cf_new_extra_cppflags=
11181 for cf_add_cflags in $cf_pkgconfig_incs
11183 case $cf_fix_cppflags in
11185 case $cf_add_cflags in
11186 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11187 case $cf_add_cflags in
11189 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11191 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11192 && test -z "${cf_tst_cflags}" \
11193 && cf_fix_cppflags=yes
11195 if test $cf_fix_cppflags = yes ; then
11197 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11198 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11201 elif test "${cf_tst_cflags}" = "\"'" ; then
11203 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11204 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11210 case "$CPPFLAGS" in
11214 case $cf_add_cflags in
11216 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11218 CPPFLAGS=`echo "$CPPFLAGS" | \
11219 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11220 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11225 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11226 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11233 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11234 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11241 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11242 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11244 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11246 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11247 && test -z "${cf_tst_cflags}" \
11248 && cf_fix_cppflags=no
11253 if test -n "$cf_new_cflags" ; then
11255 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11256 CFLAGS="${CFLAGS}$cf_new_cflags"
11260 if test -n "$cf_new_cppflags" ; then
11262 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11263 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11267 if test -n "$cf_new_extra_cppflags" ; then
11269 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11270 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11274 cf_add_libs="$cf_pkgconfig_libs"
11275 # Filter out duplicates - this happens with badly-designed ".pc" files...
11276 for cf_add_1lib in $LIBS
11278 for cf_add_2lib in $cf_add_libs
11280 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11286 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11288 LIBS="$cf_add_libs"
11290 cf_x_athena_lib="$cf_pkgconfig_libs"
11292 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11294 cat >>confdefs.h <<EOF
11295 #define $cf_x_athena_LIBS 1
11298 for cf_trim_lib in Xmu Xt X11
11301 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
11302 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
11303 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
11305 echo "${as_me:-configure}:11305: testing ..trimmed $LIBS ..." 1>&5
11311 echo "$as_me:11311: checking for usable $cf_x_athena/Xmu package" >&5
11312 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
11313 if test "${cf_cv_xaw_compat+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 cat >conftest.$ac_ext <<_ACEOF
11318 #line 11318 "configure"
11319 #include "confdefs.h"
11321 #include <X11/Xmu/CharSet.h>
11327 int check = XmuCompareISOLatin1("big", "small")
11333 rm -f conftest.$ac_objext conftest$ac_exeext
11334 if { (eval echo "$as_me:11334: \"$ac_link\"") >&5
11335 (eval $ac_link) 2>&5
11337 echo "$as_me:11337: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -s conftest$ac_exeext'
11340 { (eval echo "$as_me:11340: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11343 echo "$as_me:11343: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 cf_cv_xaw_compat=yes
11347 echo "$as_me: failed program was:" >&5
11348 cat conftest.$ac_ext >&5
11349 cf_cv_xaw_compat=no
11351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11353 echo "$as_me:11353: result: $cf_cv_xaw_compat" >&5
11354 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
11356 if test "$cf_cv_xaw_compat" = no
11358 # workaround for broken ".pc" files...
11359 case "$cf_x_athena_lib" in
11363 test -n "$verbose" && echo " work around broken package" 1>&6
11365 echo "${as_me:-configure}:11365: testing work around broken package ..." 1>&5
11367 cf_save_xmu="$LIBS"
11368 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
11370 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
11371 test -n "$verbose" && echo " found package xmu" 1>&6
11373 echo "${as_me:-configure}:11373: testing found package xmu ..." 1>&5
11375 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
11376 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
11377 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
11379 echo "${as_me:-configure}:11379: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11381 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
11383 echo "${as_me:-configure}:11383: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
11388 cf_new_extra_cppflags=
11390 for cf_add_cflags in $cf_pkgconfig_incs
11392 case $cf_fix_cppflags in
11394 case $cf_add_cflags in
11395 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11396 case $cf_add_cflags in
11398 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11400 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11401 && test -z "${cf_tst_cflags}" \
11402 && cf_fix_cppflags=yes
11404 if test $cf_fix_cppflags = yes ; then
11406 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11407 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11410 elif test "${cf_tst_cflags}" = "\"'" ; then
11412 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11413 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11419 case "$CPPFLAGS" in
11423 case $cf_add_cflags in
11425 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11427 CPPFLAGS=`echo "$CPPFLAGS" | \
11428 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11429 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11434 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11435 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11442 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11443 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11450 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11451 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11453 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11455 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11456 && test -z "${cf_tst_cflags}" \
11457 && cf_fix_cppflags=no
11462 if test -n "$cf_new_cflags" ; then
11464 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11465 CFLAGS="${CFLAGS}$cf_new_cflags"
11469 if test -n "$cf_new_cppflags" ; then
11471 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11472 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11476 if test -n "$cf_new_extra_cppflags" ; then
11478 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11479 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11483 cf_add_libs="$cf_pkgconfig_libs"
11484 # Filter out duplicates - this happens with badly-designed ".pc" files...
11485 for cf_add_1lib in $LIBS
11487 for cf_add_2lib in $cf_add_libs
11489 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11495 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11497 LIBS="$cf_add_libs"
11499 LIBS="$cf_save_xmu"
11501 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11503 echo "${as_me:-configure}:11503: testing ...before $LIBS ..." 1>&5
11505 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
11506 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11508 echo "${as_me:-configure}:11508: testing ...after $LIBS ..." 1>&5
11514 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11516 echo "${as_me:-configure}:11516: testing ...before $LIBS ..." 1>&5
11518 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
11519 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11521 echo "${as_me:-configure}:11521: testing ...after $LIBS ..." 1>&5
11525 for cf_trim_lib in Xmu Xt X11
11528 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
11529 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
11530 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
11532 echo "${as_me:-configure}:11532: testing ..trimmed $LIBS ..." 1>&5
11552 if test -z "$cf_x_athena_lib" ; then
11554 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
11555 test -n "$verbose" && echo " found package Xext" 1>&6
11557 echo "${as_me:-configure}:11557: testing found package Xext ..." 1>&5
11559 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
11560 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
11561 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
11563 echo "${as_me:-configure}:11563: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11565 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
11567 echo "${as_me:-configure}:11567: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
11572 cf_new_extra_cppflags=
11574 for cf_add_cflags in $cf_pkgconfig_incs
11576 case $cf_fix_cppflags in
11578 case $cf_add_cflags in
11579 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11580 case $cf_add_cflags in
11582 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11584 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11585 && test -z "${cf_tst_cflags}" \
11586 && cf_fix_cppflags=yes
11588 if test $cf_fix_cppflags = yes ; then
11590 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11591 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11594 elif test "${cf_tst_cflags}" = "\"'" ; then
11596 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11597 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11603 case "$CPPFLAGS" in
11607 case $cf_add_cflags in
11609 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11611 CPPFLAGS=`echo "$CPPFLAGS" | \
11612 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11613 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11618 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11619 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11626 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11627 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11634 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11635 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11637 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11639 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11640 && test -z "${cf_tst_cflags}" \
11641 && cf_fix_cppflags=no
11646 if test -n "$cf_new_cflags" ; then
11648 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11649 CFLAGS="${CFLAGS}$cf_new_cflags"
11653 if test -n "$cf_new_cppflags" ; then
11655 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11656 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11660 if test -n "$cf_new_extra_cppflags" ; then
11662 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11663 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11667 cf_add_libs="$cf_pkgconfig_libs"
11668 # Filter out duplicates - this happens with badly-designed ".pc" files...
11669 for cf_add_1lib in $LIBS
11671 for cf_add_2lib in $cf_add_libs
11673 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11679 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11681 LIBS="$cf_add_libs"
11688 echo "$as_me:11688: checking for XextCreateExtension in -lXext" >&5
11689 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
11690 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 ac_check_lib_save_LIBS=$LIBS
11694 LIBS="-lXext $LIBS"
11695 cat >conftest.$ac_ext <<_ACEOF
11696 #line 11696 "configure"
11697 #include "confdefs.h"
11699 /* Override any gcc2 internal prototype to avoid an error. */
11703 /* We use char because int might match the return type of a gcc2
11704 builtin and then its argument prototype would still apply. */
11705 char XextCreateExtension ();
11709 XextCreateExtension ();
11714 rm -f conftest.$ac_objext conftest$ac_exeext
11715 if { (eval echo "$as_me:11715: \"$ac_link\"") >&5
11716 (eval $ac_link) 2>&5
11718 echo "$as_me:11718: \$? = $ac_status" >&5
11719 (exit $ac_status); } &&
11720 { ac_try='test -s conftest$ac_exeext'
11721 { (eval echo "$as_me:11721: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11724 echo "$as_me:11724: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 ac_cv_lib_Xext_XextCreateExtension=yes
11728 echo "$as_me: failed program was:" >&5
11729 cat conftest.$ac_ext >&5
11730 ac_cv_lib_Xext_XextCreateExtension=no
11732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11733 LIBS=$ac_check_lib_save_LIBS
11735 echo "$as_me:11735: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
11736 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
11737 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
11739 cf_add_libs="-lXext"
11740 # Filter out duplicates - this happens with badly-designed ".pc" files...
11741 for cf_add_1lib in $LIBS
11743 for cf_add_2lib in $cf_add_libs
11745 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11751 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11753 LIBS="$cf_add_libs"
11759 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new), and (and
11760 # in some cases has installed dummy files in the former, other cases replaced
11761 # it with a link to the new location). This complicates the configure script.
11762 # Check for that pitfall, and recover using pkg-config
11764 # If none of these are set, the configuration is almost certainly broken.
11765 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
11768 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
11769 test -n "$verbose" && echo " found package x11" 1>&6
11771 echo "${as_me:-configure}:11771: testing found package x11 ..." 1>&5
11773 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
11774 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
11775 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
11777 echo "${as_me:-configure}:11777: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11779 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
11781 echo "${as_me:-configure}:11781: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
11786 cf_new_extra_cppflags=
11788 for cf_add_cflags in $cf_pkgconfig_incs
11790 case $cf_fix_cppflags in
11792 case $cf_add_cflags in
11793 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11794 case $cf_add_cflags in
11796 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11798 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11799 && test -z "${cf_tst_cflags}" \
11800 && cf_fix_cppflags=yes
11802 if test $cf_fix_cppflags = yes ; then
11804 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11805 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11808 elif test "${cf_tst_cflags}" = "\"'" ; then
11810 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11811 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11817 case "$CPPFLAGS" in
11821 case $cf_add_cflags in
11823 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11825 CPPFLAGS=`echo "$CPPFLAGS" | \
11826 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11827 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11832 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11833 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11840 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11841 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11848 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11849 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11851 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11853 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11854 && test -z "${cf_tst_cflags}" \
11855 && cf_fix_cppflags=no
11860 if test -n "$cf_new_cflags" ; then
11862 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11863 CFLAGS="${CFLAGS}$cf_new_cflags"
11867 if test -n "$cf_new_cppflags" ; then
11869 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11870 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11874 if test -n "$cf_new_extra_cppflags" ; then
11876 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11877 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11881 cf_add_libs="$cf_pkgconfig_libs"
11882 # Filter out duplicates - this happens with badly-designed ".pc" files...
11883 for cf_add_1lib in $LIBS
11885 for cf_add_2lib in $cf_add_libs
11887 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11893 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11895 LIBS="$cf_add_libs"
11901 { echo "$as_me:11901: WARNING: unable to find X11 library" >&5
11902 echo "$as_me: WARNING: unable to find X11 library" >&2;}
11905 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
11906 test -n "$verbose" && echo " found package ice" 1>&6
11908 echo "${as_me:-configure}:11908: testing found package ice ..." 1>&5
11910 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
11911 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
11912 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
11914 echo "${as_me:-configure}:11914: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11916 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
11918 echo "${as_me:-configure}:11918: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
11923 cf_new_extra_cppflags=
11925 for cf_add_cflags in $cf_pkgconfig_incs
11927 case $cf_fix_cppflags in
11929 case $cf_add_cflags in
11930 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11931 case $cf_add_cflags in
11933 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11935 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11936 && test -z "${cf_tst_cflags}" \
11937 && cf_fix_cppflags=yes
11939 if test $cf_fix_cppflags = yes ; then
11941 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11942 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11945 elif test "${cf_tst_cflags}" = "\"'" ; then
11947 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11948 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11954 case "$CPPFLAGS" in
11958 case $cf_add_cflags in
11960 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11962 CPPFLAGS=`echo "$CPPFLAGS" | \
11963 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11964 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11969 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11970 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11977 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11978 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11985 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11986 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11988 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11990 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11991 && test -z "${cf_tst_cflags}" \
11992 && cf_fix_cppflags=no
11997 if test -n "$cf_new_cflags" ; then
11999 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12000 CFLAGS="${CFLAGS}$cf_new_cflags"
12004 if test -n "$cf_new_cppflags" ; then
12006 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12007 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12011 if test -n "$cf_new_extra_cppflags" ; then
12013 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12014 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12018 cf_add_libs="$cf_pkgconfig_libs"
12019 # Filter out duplicates - this happens with badly-designed ".pc" files...
12020 for cf_add_1lib in $LIBS
12022 for cf_add_2lib in $cf_add_libs
12024 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12030 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12032 LIBS="$cf_add_libs"
12038 { echo "$as_me:12038: WARNING: unable to find ICE library" >&5
12039 echo "$as_me: WARNING: unable to find ICE library" >&2;}
12042 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
12043 test -n "$verbose" && echo " found package sm" 1>&6
12045 echo "${as_me:-configure}:12045: testing found package sm ..." 1>&5
12047 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
12048 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
12049 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
12051 echo "${as_me:-configure}:12051: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12053 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
12055 echo "${as_me:-configure}:12055: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
12060 cf_new_extra_cppflags=
12062 for cf_add_cflags in $cf_pkgconfig_incs
12064 case $cf_fix_cppflags in
12066 case $cf_add_cflags in
12067 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12068 case $cf_add_cflags in
12070 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12072 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12073 && test -z "${cf_tst_cflags}" \
12074 && cf_fix_cppflags=yes
12076 if test $cf_fix_cppflags = yes ; then
12078 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12079 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12082 elif test "${cf_tst_cflags}" = "\"'" ; then
12084 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12085 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12091 case "$CPPFLAGS" in
12095 case $cf_add_cflags in
12097 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12099 CPPFLAGS=`echo "$CPPFLAGS" | \
12100 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12101 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12106 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12107 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12114 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12115 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12122 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12123 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12125 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12127 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12128 && test -z "${cf_tst_cflags}" \
12129 && cf_fix_cppflags=no
12134 if test -n "$cf_new_cflags" ; then
12136 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12137 CFLAGS="${CFLAGS}$cf_new_cflags"
12141 if test -n "$cf_new_cppflags" ; then
12143 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12144 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12148 if test -n "$cf_new_extra_cppflags" ; then
12150 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12151 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12155 cf_add_libs="$cf_pkgconfig_libs"
12156 # Filter out duplicates - this happens with badly-designed ".pc" files...
12157 for cf_add_1lib in $LIBS
12159 for cf_add_2lib in $cf_add_libs
12161 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12167 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12169 LIBS="$cf_add_libs"
12175 { echo "$as_me:12175: WARNING: unable to find SM library" >&5
12176 echo "$as_me: WARNING: unable to find SM library" >&2;}
12179 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
12180 test -n "$verbose" && echo " found package xt" 1>&6
12182 echo "${as_me:-configure}:12182: testing found package xt ..." 1>&5
12184 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
12185 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
12186 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
12188 echo "${as_me:-configure}:12188: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12190 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
12192 echo "${as_me:-configure}:12192: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
12197 cf_new_extra_cppflags=
12199 for cf_add_cflags in $cf_pkgconfig_incs
12201 case $cf_fix_cppflags in
12203 case $cf_add_cflags in
12204 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12205 case $cf_add_cflags in
12207 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12210 && test -z "${cf_tst_cflags}" \
12211 && cf_fix_cppflags=yes
12213 if test $cf_fix_cppflags = yes ; then
12215 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12216 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12219 elif test "${cf_tst_cflags}" = "\"'" ; then
12221 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12222 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12228 case "$CPPFLAGS" in
12232 case $cf_add_cflags in
12234 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12236 CPPFLAGS=`echo "$CPPFLAGS" | \
12237 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12238 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12243 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12244 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12251 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12252 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12259 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12260 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12262 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12264 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12265 && test -z "${cf_tst_cflags}" \
12266 && cf_fix_cppflags=no
12271 if test -n "$cf_new_cflags" ; then
12273 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12274 CFLAGS="${CFLAGS}$cf_new_cflags"
12278 if test -n "$cf_new_cppflags" ; then
12280 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12281 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12285 if test -n "$cf_new_extra_cppflags" ; then
12287 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12288 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12292 cf_add_libs="$cf_pkgconfig_libs"
12293 # Filter out duplicates - this happens with badly-designed ".pc" files...
12294 for cf_add_1lib in $LIBS
12296 for cf_add_2lib in $cf_add_libs
12298 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12304 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12306 LIBS="$cf_add_libs"
12312 { echo "$as_me:12312: WARNING: unable to find Xt library" >&5
12313 echo "$as_me: WARNING: unable to find Xt library" >&2;}
12320 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
12321 test -n "$verbose" && echo " found package xt" 1>&6
12323 echo "${as_me:-configure}:12323: testing found package xt ..." 1>&5
12325 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
12326 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
12327 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
12329 echo "${as_me:-configure}:12329: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12331 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
12333 echo "${as_me:-configure}:12333: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
12338 cf_new_extra_cppflags=
12340 for cf_add_cflags in $cf_pkgconfig_incs
12342 case $cf_fix_cppflags in
12344 case $cf_add_cflags in
12345 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12346 case $cf_add_cflags in
12348 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12350 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12351 && test -z "${cf_tst_cflags}" \
12352 && cf_fix_cppflags=yes
12354 if test $cf_fix_cppflags = yes ; then
12356 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12357 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12360 elif test "${cf_tst_cflags}" = "\"'" ; then
12362 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12363 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12369 case "$CPPFLAGS" in
12373 case $cf_add_cflags in
12375 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12377 CPPFLAGS=`echo "$CPPFLAGS" | \
12378 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12379 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12384 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12385 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12392 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12393 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12400 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12401 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12403 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12405 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12406 && test -z "${cf_tst_cflags}" \
12407 && cf_fix_cppflags=no
12412 if test -n "$cf_new_cflags" ; then
12414 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12415 CFLAGS="${CFLAGS}$cf_new_cflags"
12419 if test -n "$cf_new_cppflags" ; then
12421 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12422 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12426 if test -n "$cf_new_extra_cppflags" ; then
12428 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12429 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12433 cf_add_libs="$cf_pkgconfig_libs"
12434 # Filter out duplicates - this happens with badly-designed ".pc" files...
12435 for cf_add_1lib in $LIBS
12437 for cf_add_2lib in $cf_add_libs
12439 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12445 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12447 LIBS="$cf_add_libs"
12453 # we have an "xt" package, but it may omit Xt's dependency on X11
12454 echo "$as_me:12454: checking for usable X dependency" >&5
12455 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
12456 if test "${cf_cv_xt_x11_compat+set}" = set; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 cat >conftest.$ac_ext <<_ACEOF
12461 #line 12461 "configure"
12462 #include "confdefs.h"
12464 #include <X11/Xlib.h>
12470 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
12471 int rc2 = XClearWindow((Display*) 0, (Window) 0);
12472 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
12473 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
12479 rm -f conftest.$ac_objext conftest$ac_exeext
12480 if { (eval echo "$as_me:12480: \"$ac_link\"") >&5
12481 (eval $ac_link) 2>&5
12483 echo "$as_me:12483: \$? = $ac_status" >&5
12484 (exit $ac_status); } &&
12485 { ac_try='test -s conftest$ac_exeext'
12486 { (eval echo "$as_me:12486: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12489 echo "$as_me:12489: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12491 cf_cv_xt_x11_compat=yes
12493 echo "$as_me: failed program was:" >&5
12494 cat conftest.$ac_ext >&5
12495 cf_cv_xt_x11_compat=no
12497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12499 echo "$as_me:12499: result: $cf_cv_xt_x11_compat" >&5
12500 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
12501 if test "$cf_cv_xt_x11_compat" = no
12503 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
12505 echo "${as_me:-configure}:12505: testing work around broken X11 dependency ..." 1>&5
12507 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
12509 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
12510 test -n "$verbose" && echo " found package x11" 1>&6
12512 echo "${as_me:-configure}:12512: testing found package x11 ..." 1>&5
12514 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
12515 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
12516 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
12518 echo "${as_me:-configure}:12518: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12520 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
12522 echo "${as_me:-configure}:12522: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
12527 cf_new_extra_cppflags=
12529 for cf_add_cflags in $cf_pkgconfig_incs
12531 case $cf_fix_cppflags in
12533 case $cf_add_cflags in
12534 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12535 case $cf_add_cflags in
12537 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12539 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12540 && test -z "${cf_tst_cflags}" \
12541 && cf_fix_cppflags=yes
12543 if test $cf_fix_cppflags = yes ; then
12545 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12546 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12549 elif test "${cf_tst_cflags}" = "\"'" ; then
12551 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12552 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12558 case "$CPPFLAGS" in
12562 case $cf_add_cflags in
12564 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12566 CPPFLAGS=`echo "$CPPFLAGS" | \
12567 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12568 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12573 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12574 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12581 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12582 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12589 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12590 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12592 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12594 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12595 && test -z "${cf_tst_cflags}" \
12596 && cf_fix_cppflags=no
12601 if test -n "$cf_new_cflags" ; then
12603 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12604 CFLAGS="${CFLAGS}$cf_new_cflags"
12608 if test -n "$cf_new_cppflags" ; then
12610 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12611 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12615 if test -n "$cf_new_extra_cppflags" ; then
12617 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12618 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12622 cf_add_libs="$cf_pkgconfig_libs"
12623 # Filter out duplicates - this happens with badly-designed ".pc" files...
12624 for cf_add_1lib in $LIBS
12626 for cf_add_2lib in $cf_add_libs
12628 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12634 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12636 LIBS="$cf_add_libs"
12643 test -n "$verbose" && echo " ...before $LIBS" 1>&6
12645 echo "${as_me:-configure}:12645: testing ...before $LIBS ..." 1>&5
12647 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
12648 test -n "$verbose" && echo " ...after $LIBS" 1>&6
12650 echo "${as_me:-configure}:12650: testing ...after $LIBS ..." 1>&5
12658 echo "$as_me:12658: checking for usable X Toolkit package" >&5
12659 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
12660 if test "${cf_cv_xt_ice_compat+set}" = set; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12664 cat >conftest.$ac_ext <<_ACEOF
12665 #line 12665 "configure"
12666 #include "confdefs.h"
12668 #include <X11/Shell.h>
12673 int num = IceConnectionNumber(0)
12679 rm -f conftest.$ac_objext conftest$ac_exeext
12680 if { (eval echo "$as_me:12680: \"$ac_link\"") >&5
12681 (eval $ac_link) 2>&5
12683 echo "$as_me:12683: \$? = $ac_status" >&5
12684 (exit $ac_status); } &&
12685 { ac_try='test -s conftest$ac_exeext'
12686 { (eval echo "$as_me:12686: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12689 echo "$as_me:12689: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 cf_cv_xt_ice_compat=yes
12693 echo "$as_me: failed program was:" >&5
12694 cat conftest.$ac_ext >&5
12695 cf_cv_xt_ice_compat=no
12697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12699 echo "$as_me:12699: result: $cf_cv_xt_ice_compat" >&5
12700 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
12702 if test "$cf_cv_xt_ice_compat" = no
12704 # workaround for broken ".pc" files used for X Toolkit.
12705 case "x$X_PRE_LIBS" in
12711 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
12713 echo "${as_me:-configure}:12713: testing work around broken ICE dependency ..." 1>&5
12715 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
12716 test -n "$verbose" && echo " found package ice" 1>&6
12718 echo "${as_me:-configure}:12718: testing found package ice ..." 1>&5
12720 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
12721 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
12722 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
12724 echo "${as_me:-configure}:12724: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12726 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
12728 echo "${as_me:-configure}:12728: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
12733 cf_new_extra_cppflags=
12735 for cf_add_cflags in $cf_pkgconfig_incs
12737 case $cf_fix_cppflags in
12739 case $cf_add_cflags in
12740 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12741 case $cf_add_cflags in
12743 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12745 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12746 && test -z "${cf_tst_cflags}" \
12747 && cf_fix_cppflags=yes
12749 if test $cf_fix_cppflags = yes ; then
12751 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12752 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12755 elif test "${cf_tst_cflags}" = "\"'" ; then
12757 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12758 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12764 case "$CPPFLAGS" in
12768 case $cf_add_cflags in
12770 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12772 CPPFLAGS=`echo "$CPPFLAGS" | \
12773 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12774 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12779 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12780 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12787 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12788 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12795 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12796 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12798 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12800 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12801 && test -z "${cf_tst_cflags}" \
12802 && cf_fix_cppflags=no
12807 if test -n "$cf_new_cflags" ; then
12809 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12810 CFLAGS="${CFLAGS}$cf_new_cflags"
12814 if test -n "$cf_new_cppflags" ; then
12816 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12817 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12821 if test -n "$cf_new_extra_cppflags" ; then
12823 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12824 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12828 cf_add_libs="$cf_pkgconfig_libs"
12829 # Filter out duplicates - this happens with badly-designed ".pc" files...
12830 for cf_add_1lib in $LIBS
12832 for cf_add_2lib in $cf_add_libs
12834 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12840 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12842 LIBS="$cf_add_libs"
12844 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
12845 test -n "$verbose" && echo " found package sm" 1>&6
12847 echo "${as_me:-configure}:12847: testing found package sm ..." 1>&5
12849 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
12850 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
12851 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
12853 echo "${as_me:-configure}:12853: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12855 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
12857 echo "${as_me:-configure}:12857: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
12862 cf_new_extra_cppflags=
12864 for cf_add_cflags in $cf_pkgconfig_incs
12866 case $cf_fix_cppflags in
12868 case $cf_add_cflags in
12869 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12870 case $cf_add_cflags in
12872 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12874 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12875 && test -z "${cf_tst_cflags}" \
12876 && cf_fix_cppflags=yes
12878 if test $cf_fix_cppflags = yes ; then
12880 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12881 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12884 elif test "${cf_tst_cflags}" = "\"'" ; then
12886 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12887 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12893 case "$CPPFLAGS" in
12897 case $cf_add_cflags in
12899 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12901 CPPFLAGS=`echo "$CPPFLAGS" | \
12902 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12903 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12908 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12909 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12916 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12917 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12924 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12925 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12927 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12929 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12930 && test -z "${cf_tst_cflags}" \
12931 && cf_fix_cppflags=no
12936 if test -n "$cf_new_cflags" ; then
12938 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12939 CFLAGS="${CFLAGS}$cf_new_cflags"
12943 if test -n "$cf_new_cppflags" ; then
12945 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12946 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12950 if test -n "$cf_new_extra_cppflags" ; then
12952 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12953 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12957 cf_add_libs="$cf_pkgconfig_libs"
12958 # Filter out duplicates - this happens with badly-designed ".pc" files...
12959 for cf_add_1lib in $LIBS
12961 for cf_add_2lib in $cf_add_libs
12963 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12969 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12971 LIBS="$cf_add_libs"
12984 test -n "$verbose" && echo " ...before $LIBS" 1>&6
12986 echo "${as_me:-configure}:12986: testing ...before $LIBS ..." 1>&5
12988 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
12989 test -n "$verbose" && echo " ...after $LIBS" 1>&6
12991 echo "${as_me:-configure}:12991: testing ...after $LIBS ..." 1>&5
13007 LDFLAGS="$X_LIBS $LDFLAGS"
13009 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
13011 echo "${as_me:-configure}:13011: testing checking additions to CFLAGS ..." 1>&5
13013 cf_check_cflags="$CFLAGS"
13014 cf_check_cppflags="$CPPFLAGS"
13019 cf_new_extra_cppflags=
13021 for cf_add_cflags in $X_CFLAGS
13023 case $cf_fix_cppflags in
13025 case $cf_add_cflags in
13026 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13027 case $cf_add_cflags in
13029 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13031 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13032 && test -z "${cf_tst_cflags}" \
13033 && cf_fix_cppflags=yes
13035 if test $cf_fix_cppflags = yes ; then
13037 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13038 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13041 elif test "${cf_tst_cflags}" = "\"'" ; then
13043 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13044 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13050 case "$CPPFLAGS" in
13054 case $cf_add_cflags in
13056 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13058 CPPFLAGS=`echo "$CPPFLAGS" | \
13059 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13060 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13065 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13066 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13073 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13074 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13081 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13082 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13084 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13086 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13087 && test -z "${cf_tst_cflags}" \
13088 && cf_fix_cppflags=no
13093 if test -n "$cf_new_cflags" ; then
13094 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
13096 echo "${as_me:-configure}:13096: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
13098 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13099 CFLAGS="${CFLAGS}$cf_new_cflags"
13103 if test -n "$cf_new_cppflags" ; then
13104 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
13106 echo "${as_me:-configure}:13106: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
13108 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13109 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13113 if test -n "$cf_new_extra_cppflags" ; then
13114 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
13116 echo "${as_me:-configure}:13116: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
13118 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13119 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13123 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
13124 cat >conftest.$ac_ext <<_ACEOF
13125 #line 13125 "configure"
13126 #include "confdefs.h"
13131 printf("Hello world");
13136 rm -f conftest.$ac_objext conftest$ac_exeext
13137 if { (eval echo "$as_me:13137: \"$ac_link\"") >&5
13138 (eval $ac_link) 2>&5
13140 echo "$as_me:13140: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -s conftest$ac_exeext'
13143 { (eval echo "$as_me:13143: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13146 echo "$as_me:13146: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13150 echo "$as_me: failed program was:" >&5
13151 cat conftest.$ac_ext >&5
13152 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
13154 echo "${as_me:-configure}:13154: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
13156 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
13157 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
13159 echo "${as_me:-configure}:13159: testing but keeping change to \$CPPFLAGS ..." 1>&5
13162 CFLAGS="$cf_check_flags"
13164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13167 echo "$as_me:13167: checking for XOpenDisplay" >&5
13168 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
13169 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 cat >conftest.$ac_ext <<_ACEOF
13173 #line 13173 "configure"
13174 #include "confdefs.h"
13175 /* System header to define __stub macros and hopefully few prototypes,
13176 which can conflict with char XOpenDisplay (); below. */
13177 #include <assert.h>
13178 /* Override any gcc2 internal prototype to avoid an error. */
13182 /* We use char because int might match the return type of a gcc2
13183 builtin and then its argument prototype would still apply. */
13184 char XOpenDisplay ();
13190 /* The GNU C library defines this for functions which it implements
13191 to always fail with ENOSYS. Some functions are actually named
13192 something starting with __ and the normal name is an alias. */
13193 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
13196 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13203 rm -f conftest.$ac_objext conftest$ac_exeext
13204 if { (eval echo "$as_me:13204: \"$ac_link\"") >&5
13205 (eval $ac_link) 2>&5
13207 echo "$as_me:13207: \$? = $ac_status" >&5
13208 (exit $ac_status); } &&
13209 { ac_try='test -s conftest$ac_exeext'
13210 { (eval echo "$as_me:13210: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13213 echo "$as_me:13213: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
13215 ac_cv_func_XOpenDisplay=yes
13217 echo "$as_me: failed program was:" >&5
13218 cat conftest.$ac_ext >&5
13219 ac_cv_func_XOpenDisplay=no
13221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13223 echo "$as_me:13223: result: $ac_cv_func_XOpenDisplay" >&5
13224 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
13225 if test $ac_cv_func_XOpenDisplay = yes; then
13229 echo "$as_me:13229: checking for XOpenDisplay in -lX11" >&5
13230 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
13231 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 ac_check_lib_save_LIBS=$LIBS
13235 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
13236 cat >conftest.$ac_ext <<_ACEOF
13237 #line 13237 "configure"
13238 #include "confdefs.h"
13240 /* Override any gcc2 internal prototype to avoid an error. */
13244 /* We use char because int might match the return type of a gcc2
13245 builtin and then its argument prototype would still apply. */
13246 char XOpenDisplay ();
13255 rm -f conftest.$ac_objext conftest$ac_exeext
13256 if { (eval echo "$as_me:13256: \"$ac_link\"") >&5
13257 (eval $ac_link) 2>&5
13259 echo "$as_me:13259: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -s conftest$ac_exeext'
13262 { (eval echo "$as_me:13262: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13265 echo "$as_me:13265: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_cv_lib_X11_XOpenDisplay=yes
13269 echo "$as_me: failed program was:" >&5
13270 cat conftest.$ac_ext >&5
13271 ac_cv_lib_X11_XOpenDisplay=no
13273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13274 LIBS=$ac_check_lib_save_LIBS
13276 echo "$as_me:13276: result: $ac_cv_lib_X11_XOpenDisplay" >&5
13277 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
13278 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
13280 cf_add_libs="-lX11"
13281 # Filter out duplicates - this happens with badly-designed ".pc" files...
13282 for cf_add_1lib in $LIBS
13284 for cf_add_2lib in $cf_add_libs
13286 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13292 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13294 LIBS="$cf_add_libs"
13300 echo "$as_me:13300: checking for XtAppInitialize" >&5
13301 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
13302 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 cat >conftest.$ac_ext <<_ACEOF
13306 #line 13306 "configure"
13307 #include "confdefs.h"
13308 /* System header to define __stub macros and hopefully few prototypes,
13309 which can conflict with char XtAppInitialize (); below. */
13310 #include <assert.h>
13311 /* Override any gcc2 internal prototype to avoid an error. */
13315 /* We use char because int might match the return type of a gcc2
13316 builtin and then its argument prototype would still apply. */
13317 char XtAppInitialize ();
13323 /* The GNU C library defines this for functions which it implements
13324 to always fail with ENOSYS. Some functions are actually named
13325 something starting with __ and the normal name is an alias. */
13326 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
13329 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13336 rm -f conftest.$ac_objext conftest$ac_exeext
13337 if { (eval echo "$as_me:13337: \"$ac_link\"") >&5
13338 (eval $ac_link) 2>&5
13340 echo "$as_me:13340: \$? = $ac_status" >&5
13341 (exit $ac_status); } &&
13342 { ac_try='test -s conftest$ac_exeext'
13343 { (eval echo "$as_me:13343: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13346 echo "$as_me:13346: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 ac_cv_func_XtAppInitialize=yes
13350 echo "$as_me: failed program was:" >&5
13351 cat conftest.$ac_ext >&5
13352 ac_cv_func_XtAppInitialize=no
13354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13356 echo "$as_me:13356: result: $ac_cv_func_XtAppInitialize" >&5
13357 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
13358 if test $ac_cv_func_XtAppInitialize = yes; then
13362 echo "$as_me:13362: checking for XtAppInitialize in -lXt" >&5
13363 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
13364 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 ac_check_lib_save_LIBS=$LIBS
13368 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
13369 cat >conftest.$ac_ext <<_ACEOF
13370 #line 13370 "configure"
13371 #include "confdefs.h"
13373 /* Override any gcc2 internal prototype to avoid an error. */
13377 /* We use char because int might match the return type of a gcc2
13378 builtin and then its argument prototype would still apply. */
13379 char XtAppInitialize ();
13383 XtAppInitialize ();
13388 rm -f conftest.$ac_objext conftest$ac_exeext
13389 if { (eval echo "$as_me:13389: \"$ac_link\"") >&5
13390 (eval $ac_link) 2>&5
13392 echo "$as_me:13392: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -s conftest$ac_exeext'
13395 { (eval echo "$as_me:13395: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13398 echo "$as_me:13398: \$? = $ac_status" >&5
13399 (exit $ac_status); }; }; then
13400 ac_cv_lib_Xt_XtAppInitialize=yes
13402 echo "$as_me: failed program was:" >&5
13403 cat conftest.$ac_ext >&5
13404 ac_cv_lib_Xt_XtAppInitialize=no
13406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13407 LIBS=$ac_check_lib_save_LIBS
13409 echo "$as_me:13409: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
13410 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
13411 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
13413 cat >>confdefs.h <<\EOF
13414 #define HAVE_LIBXT 1
13418 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
13425 if test $cf_have_X_LIBS = no ; then
13426 { echo "$as_me:13426: WARNING: Unable to successfully link X Toolkit library (-lXt) with
13427 test program. You will have to check and add the proper libraries by hand
13429 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
13430 test program. You will have to check and add the proper libraries by hand
13431 to makefile." >&2;}
13434 cf_x_athena_root=$cf_x_athena
13437 for cf_path in default \
13438 /usr/contrib/X11R6 \
13439 /usr/contrib/X11R5 \
13443 if test -z "$cf_x_athena_inc" ; then
13444 cf_save="$CPPFLAGS"
13445 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
13446 if test $cf_path != default ; then
13447 CPPFLAGS="$cf_save -I$cf_path/include"
13448 echo "$as_me:13448: checking for $cf_test in $cf_path" >&5
13449 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
13451 echo "$as_me:13451: checking for $cf_test" >&5
13452 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
13454 cat >conftest.$ac_ext <<_ACEOF
13455 #line 13455 "configure"
13456 #include "confdefs.h"
13458 #include <X11/Intrinsic.h>
13459 #include <$cf_test>
13468 rm -f conftest.$ac_objext
13469 if { (eval echo "$as_me:13469: \"$ac_compile\"") >&5
13470 (eval $ac_compile) 2>&5
13472 echo "$as_me:13472: \$? = $ac_status" >&5
13473 (exit $ac_status); } &&
13474 { ac_try='test -s conftest.$ac_objext'
13475 { (eval echo "$as_me:13475: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13478 echo "$as_me:13478: \$? = $ac_status" >&5
13479 (exit $ac_status); }; }; then
13482 echo "$as_me: failed program was:" >&5
13483 cat conftest.$ac_ext >&5
13486 rm -f conftest.$ac_objext conftest.$ac_ext
13487 echo "$as_me:13487: result: $cf_result" >&5
13488 echo "${ECHO_T}$cf_result" >&6
13489 if test "$cf_result" = yes ; then
13490 cf_x_athena_inc=$cf_path
13493 CPPFLAGS="$cf_save"
13498 if test -z "$cf_x_athena_inc" ; then
13499 { echo "$as_me:13499: WARNING: Unable to successfully find Athena header files with test program" >&5
13500 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
13501 elif test "$cf_x_athena_inc" != default ; then
13502 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
13505 cf_x_athena_root=$cf_x_athena
13508 for cf_path in default \
13509 /usr/contrib/X11R6 \
13510 /usr/contrib/X11R5 \
13515 ${cf_x_athena_root} \
13516 ${cf_x_athena_root}7 \
13517 ${cf_x_athena_root}6
13520 "-l$cf_lib -lXmu" \
13521 "-l$cf_lib -lXpm -lXmu" \
13522 "-l${cf_lib}_s -lXmu_s"
13524 if test -z "$cf_x_athena_lib" ; then
13526 cf_test=XawSimpleMenuAddGlobalActions
13527 if test $cf_path != default ; then
13529 cf_add_libs="-L$cf_path/lib $cf_libs"
13530 # Filter out duplicates - this happens with badly-designed ".pc" files...
13531 for cf_add_1lib in $LIBS
13533 for cf_add_2lib in $cf_add_libs
13535 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13541 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13543 LIBS="$cf_add_libs"
13545 echo "$as_me:13545: checking for $cf_libs in $cf_path" >&5
13546 echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6
13549 cf_add_libs="$cf_libs"
13550 # Filter out duplicates - this happens with badly-designed ".pc" files...
13551 for cf_add_1lib in $LIBS
13553 for cf_add_2lib in $cf_add_libs
13555 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13561 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13563 LIBS="$cf_add_libs"
13565 echo "$as_me:13565: checking for $cf_test in $cf_libs" >&5
13566 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
13568 cat >conftest.$ac_ext <<_ACEOF
13569 #line 13569 "configure"
13570 #include "confdefs.h"
13572 #include <X11/Intrinsic.h>
13573 #include <X11/$cf_x_athena_root/SimpleMenu.h>
13579 $cf_test((XtAppContext) 0)
13584 rm -f conftest.$ac_objext conftest$ac_exeext
13585 if { (eval echo "$as_me:13585: \"$ac_link\"") >&5
13586 (eval $ac_link) 2>&5
13588 echo "$as_me:13588: \$? = $ac_status" >&5
13589 (exit $ac_status); } &&
13590 { ac_try='test -s conftest$ac_exeext'
13591 { (eval echo "$as_me:13591: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13594 echo "$as_me:13594: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
13598 echo "$as_me: failed program was:" >&5
13599 cat conftest.$ac_ext >&5
13602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13603 echo "$as_me:13603: result: $cf_result" >&5
13604 echo "${ECHO_T}$cf_result" >&6
13605 if test "$cf_result" = yes ; then
13606 cf_x_athena_lib="$cf_libs"
13612 test -n "$cf_x_athena_lib" && break
13616 if test -z "$cf_x_athena_lib" ; then
13617 { { echo "$as_me:13617: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
13618 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
13619 { (exit 1); exit 1; }; }
13622 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13624 cat >>confdefs.h <<EOF
13625 #define $cf_x_athena_LIBS 1
13630 if test -n "$ac_tool_prefix"; then
13631 for ac_prog in xcurses-config
13633 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13634 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13635 echo "$as_me:13635: checking for $ac_word" >&5
13636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13637 if test "${ac_cv_prog_XCURSES_CONFIG+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 if test -n "$XCURSES_CONFIG"; then
13641 ac_cv_prog_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test.
13643 ac_save_IFS=$IFS; IFS=$ac_path_separator
13645 for ac_dir in $ac_dummy; do
13647 test -z "$ac_dir" && ac_dir=.
13648 $as_executable_p "$ac_dir/$ac_word" || continue
13649 ac_cv_prog_XCURSES_CONFIG="$ac_tool_prefix$ac_prog"
13650 echo "$as_me:13650: found $ac_dir/$ac_word" >&5
13656 XCURSES_CONFIG=$ac_cv_prog_XCURSES_CONFIG
13657 if test -n "$XCURSES_CONFIG"; then
13658 echo "$as_me:13658: result: $XCURSES_CONFIG" >&5
13659 echo "${ECHO_T}$XCURSES_CONFIG" >&6
13661 echo "$as_me:13661: result: no" >&5
13662 echo "${ECHO_T}no" >&6
13665 test -n "$XCURSES_CONFIG" && break
13668 if test -z "$XCURSES_CONFIG"; then
13669 ac_ct_XCURSES_CONFIG=$XCURSES_CONFIG
13670 for ac_prog in xcurses-config
13672 # Extract the first word of "$ac_prog", so it can be a program name with args.
13673 set dummy $ac_prog; ac_word=$2
13674 echo "$as_me:13674: checking for $ac_word" >&5
13675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13676 if test "${ac_cv_prog_ac_ct_XCURSES_CONFIG+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 if test -n "$ac_ct_XCURSES_CONFIG"; then
13680 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_ct_XCURSES_CONFIG" # Let the user override the test.
13682 ac_save_IFS=$IFS; IFS=$ac_path_separator
13684 for ac_dir in $ac_dummy; do
13686 test -z "$ac_dir" && ac_dir=.
13687 $as_executable_p "$ac_dir/$ac_word" || continue
13688 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_prog"
13689 echo "$as_me:13689: found $ac_dir/$ac_word" >&5
13695 ac_ct_XCURSES_CONFIG=$ac_cv_prog_ac_ct_XCURSES_CONFIG
13696 if test -n "$ac_ct_XCURSES_CONFIG"; then
13697 echo "$as_me:13697: result: $ac_ct_XCURSES_CONFIG" >&5
13698 echo "${ECHO_T}$ac_ct_XCURSES_CONFIG" >&6
13700 echo "$as_me:13700: result: no" >&5
13701 echo "${ECHO_T}no" >&6
13704 test -n "$ac_ct_XCURSES_CONFIG" && break
13706 test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG="none"
13708 XCURSES_CONFIG=$ac_ct_XCURSES_CONFIG
13711 if test "$XCURSES_CONFIG" != none ; then
13713 CPPFLAGS="$CPPFLAGS `$XCURSES_CONFIG --cflags`"
13715 cf_add_libs="`$XCURSES_CONFIG --libs`"
13716 # Filter out duplicates - this happens with badly-designed ".pc" files...
13717 for cf_add_1lib in $LIBS
13719 for cf_add_2lib in $cf_add_libs
13721 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13727 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13729 LIBS="$cf_add_libs"
13731 cf_cv_lib_XCurses=yes
13735 LDFLAGS="$LDFLAGS $X_LIBS"
13737 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
13739 echo "${as_me:-configure}:13739: testing checking additions to CFLAGS ..." 1>&5
13741 cf_check_cflags="$CFLAGS"
13742 cf_check_cppflags="$CPPFLAGS"
13747 cf_new_extra_cppflags=
13749 for cf_add_cflags in $X_CFLAGS
13751 case $cf_fix_cppflags in
13753 case $cf_add_cflags in
13754 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13755 case $cf_add_cflags in
13757 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13759 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13760 && test -z "${cf_tst_cflags}" \
13761 && cf_fix_cppflags=yes
13763 if test $cf_fix_cppflags = yes ; then
13765 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13766 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13769 elif test "${cf_tst_cflags}" = "\"'" ; then
13771 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13772 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13778 case "$CPPFLAGS" in
13782 case $cf_add_cflags in
13784 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13786 CPPFLAGS=`echo "$CPPFLAGS" | \
13787 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13788 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13793 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13794 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13801 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13802 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13809 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13810 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13812 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13814 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13815 && test -z "${cf_tst_cflags}" \
13816 && cf_fix_cppflags=no
13821 if test -n "$cf_new_cflags" ; then
13822 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
13824 echo "${as_me:-configure}:13824: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
13826 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13827 CFLAGS="${CFLAGS}$cf_new_cflags"
13831 if test -n "$cf_new_cppflags" ; then
13832 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
13834 echo "${as_me:-configure}:13834: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
13836 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13837 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13841 if test -n "$cf_new_extra_cppflags" ; then
13842 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
13844 echo "${as_me:-configure}:13844: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
13846 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13847 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13851 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
13852 cat >conftest.$ac_ext <<_ACEOF
13853 #line 13853 "configure"
13854 #include "confdefs.h"
13859 printf("Hello world");
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (eval echo "$as_me:13865: \"$ac_link\"") >&5
13866 (eval $ac_link) 2>&5
13868 echo "$as_me:13868: \$? = $ac_status" >&5
13869 (exit $ac_status); } &&
13870 { ac_try='test -s conftest$ac_exeext'
13871 { (eval echo "$as_me:13871: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13874 echo "$as_me:13874: \$? = $ac_status" >&5
13875 (exit $ac_status); }; }; then
13878 echo "$as_me: failed program was:" >&5
13879 cat conftest.$ac_ext >&5
13880 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
13882 echo "${as_me:-configure}:13882: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
13884 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
13885 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
13887 echo "${as_me:-configure}:13887: testing but keeping change to \$CPPFLAGS ..." 1>&5
13890 CFLAGS="$cf_check_flags"
13892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13895 echo "$as_me:13895: checking for XOpenDisplay in -lX11" >&5
13896 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
13897 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 ac_check_lib_save_LIBS=$LIBS
13901 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
13902 cat >conftest.$ac_ext <<_ACEOF
13903 #line 13903 "configure"
13904 #include "confdefs.h"
13906 /* Override any gcc2 internal prototype to avoid an error. */
13910 /* We use char because int might match the return type of a gcc2
13911 builtin and then its argument prototype would still apply. */
13912 char XOpenDisplay ();
13921 rm -f conftest.$ac_objext conftest$ac_exeext
13922 if { (eval echo "$as_me:13922: \"$ac_link\"") >&5
13923 (eval $ac_link) 2>&5
13925 echo "$as_me:13925: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
13927 { ac_try='test -s conftest$ac_exeext'
13928 { (eval echo "$as_me:13928: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13931 echo "$as_me:13931: \$? = $ac_status" >&5
13932 (exit $ac_status); }; }; then
13933 ac_cv_lib_X11_XOpenDisplay=yes
13935 echo "$as_me: failed program was:" >&5
13936 cat conftest.$ac_ext >&5
13937 ac_cv_lib_X11_XOpenDisplay=no
13939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13940 LIBS=$ac_check_lib_save_LIBS
13942 echo "$as_me:13942: result: $ac_cv_lib_X11_XOpenDisplay" >&5
13943 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
13944 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
13946 cf_add_libs="-lX11"
13947 # Filter out duplicates - this happens with badly-designed ".pc" files...
13948 for cf_add_1lib in $LIBS
13950 for cf_add_2lib in $cf_add_libs
13952 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13958 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13960 LIBS="$cf_add_libs"
13964 echo "$as_me:13964: checking for XCurses library" >&5
13965 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
13966 if test "${cf_cv_lib_XCurses+set}" = set; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13970 cf_add_libs="-lXCurses"
13971 # Filter out duplicates - this happens with badly-designed ".pc" files...
13972 for cf_add_1lib in $LIBS
13974 for cf_add_2lib in $cf_add_libs
13976 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13982 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13984 LIBS="$cf_add_libs"
13986 cat >conftest.$ac_ext <<_ACEOF
13987 #line 13987 "configure"
13988 #include "confdefs.h"
13990 #include <xcurses.h>
13991 char *XCursesProgramName = "test";
14001 rm -f conftest.$ac_objext conftest$ac_exeext
14002 if { (eval echo "$as_me:14002: \"$ac_link\"") >&5
14003 (eval $ac_link) 2>&5
14005 echo "$as_me:14005: \$? = $ac_status" >&5
14006 (exit $ac_status); } &&
14007 { ac_try='test -s conftest$ac_exeext'
14008 { (eval echo "$as_me:14008: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14011 echo "$as_me:14011: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 cf_cv_lib_XCurses=yes
14015 echo "$as_me: failed program was:" >&5
14016 cat conftest.$ac_ext >&5
14017 cf_cv_lib_XCurses=no
14019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14022 echo "$as_me:14022: result: $cf_cv_lib_XCurses" >&5
14023 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
14027 if test $cf_cv_lib_XCurses = yes ; then
14029 cat >>confdefs.h <<\EOF
14033 cat >>confdefs.h <<\EOF
14037 echo "$as_me:14037: checking for xcurses.h" >&5
14038 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
14039 if test "${ac_cv_header_xcurses_h+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 cat >conftest.$ac_ext <<_ACEOF
14043 #line 14043 "configure"
14044 #include "confdefs.h"
14045 #include <xcurses.h>
14047 if { (eval echo "$as_me:14047: \"$ac_cpp conftest.$ac_ext\"") >&5
14048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14050 egrep -v '^ *\+' conftest.er1 >conftest.err
14052 cat conftest.err >&5
14053 echo "$as_me:14053: \$? = $ac_status" >&5
14054 (exit $ac_status); } >/dev/null; then
14055 if test -s conftest.err; then
14056 ac_cpp_err=$ac_c_preproc_warn_flag
14063 if test -z "$ac_cpp_err"; then
14064 ac_cv_header_xcurses_h=yes
14066 echo "$as_me: failed program was:" >&5
14067 cat conftest.$ac_ext >&5
14068 ac_cv_header_xcurses_h=no
14070 rm -f conftest.err conftest.$ac_ext
14072 echo "$as_me:14072: result: $ac_cv_header_xcurses_h" >&5
14073 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
14074 if test $ac_cv_header_xcurses_h = yes; then
14076 cat >>confdefs.h <<\EOF
14077 #define HAVE_XCURSES 1
14083 { { echo "$as_me:14083: error: Cannot link with XCurses" >&5
14084 echo "$as_me: error: Cannot link with XCurses" >&2;}
14085 { (exit 1); exit 1; }; }
14090 { { echo "$as_me:14090: error: unexpected screen-value: $cf_cv_screen" >&5
14091 echo "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;}
14092 { (exit 1); exit 1; }; }
14096 : ${cf_nculib_root:=$cf_cv_screen}
14097 as_ac_Lib=`echo "ac_cv_lib_$cf_nculib_root''__nc_init_pthreads" | $as_tr_sh`
14098 echo "$as_me:14098: checking for _nc_init_pthreads in -l$cf_nculib_root" >&5
14099 echo $ECHO_N "checking for _nc_init_pthreads in -l$cf_nculib_root... $ECHO_C" >&6
14100 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 ac_check_lib_save_LIBS=$LIBS
14104 LIBS="-l$cf_nculib_root $LIBS"
14105 cat >conftest.$ac_ext <<_ACEOF
14106 #line 14106 "configure"
14107 #include "confdefs.h"
14109 /* Override any gcc2 internal prototype to avoid an error. */
14113 /* We use char because int might match the return type of a gcc2
14114 builtin and then its argument prototype would still apply. */
14115 char _nc_init_pthreads ();
14119 _nc_init_pthreads ();
14124 rm -f conftest.$ac_objext conftest$ac_exeext
14125 if { (eval echo "$as_me:14125: \"$ac_link\"") >&5
14126 (eval $ac_link) 2>&5
14128 echo "$as_me:14128: \$? = $ac_status" >&5
14129 (exit $ac_status); } &&
14130 { ac_try='test -s conftest$ac_exeext'
14131 { (eval echo "$as_me:14131: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14134 echo "$as_me:14134: \$? = $ac_status" >&5
14135 (exit $ac_status); }; }; then
14136 eval "$as_ac_Lib=yes"
14138 echo "$as_me: failed program was:" >&5
14139 cat conftest.$ac_ext >&5
14140 eval "$as_ac_Lib=no"
14142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14143 LIBS=$ac_check_lib_save_LIBS
14145 echo "$as_me:14145: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14146 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14147 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14148 cf_cv_ncurses_pthreads=yes
14150 cf_cv_ncurses_pthreads=no
14153 if test "$cf_cv_ncurses_pthreads" = yes
14156 cf_add_libs="-lpthread"
14157 # Filter out duplicates - this happens with badly-designed ".pc" files...
14158 for cf_add_1lib in $LIBS
14160 for cf_add_2lib in $cf_add_libs
14162 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14168 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14170 LIBS="$cf_add_libs"
14174 case $cf_cv_screen in
14176 cf_cv_libtype=`echo "$cf_cv_screen" | sed -e 's/^ncurses//'`
14180 echo "$as_me:14180: checking for NetBSD form.h" >&5
14181 echo $ECHO_N "checking for NetBSD form.h... $ECHO_C" >&6
14182 if test "${cf_cv_netbsd_form_h+set}" = set; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 cat >conftest.$ac_ext <<_ACEOF
14187 #line 14187 "configure"
14188 #include "confdefs.h"
14190 #include <${cf_cv_ncurses_header:-curses.h}>
14198 int y = current_field(form)->cursor_ypos;
14199 int x = current_field(form)->cursor_xpos;
14205 rm -f conftest.$ac_objext
14206 if { (eval echo "$as_me:14206: \"$ac_compile\"") >&5
14207 (eval $ac_compile) 2>&5
14209 echo "$as_me:14209: \$? = $ac_status" >&5
14210 (exit $ac_status); } &&
14211 { ac_try='test -s conftest.$ac_objext'
14212 { (eval echo "$as_me:14212: \"$ac_try\"") >&5
14213 (eval $ac_try) 2>&5
14215 echo "$as_me:14215: \$? = $ac_status" >&5
14216 (exit $ac_status); }; }; then
14217 cf_cv_netbsd_form_h=yes
14220 echo "$as_me: failed program was:" >&5
14221 cat conftest.$ac_ext >&5
14222 cf_cv_netbsd_form_h=no
14224 rm -f conftest.$ac_objext conftest.$ac_ext
14227 echo "$as_me:14227: result: $cf_cv_netbsd_form_h" >&5
14228 echo "${ECHO_T}$cf_cv_netbsd_form_h" >&6
14230 test "$cf_cv_netbsd_form_h" = yes &&
14231 cat >>confdefs.h <<\EOF
14232 #define HAVE_NETBSD_FORM_H 1
14235 echo "$as_me:14235: checking for NetBSD menu.h" >&5
14236 echo $ECHO_N "checking for NetBSD menu.h... $ECHO_C" >&6
14237 if test "${cf_cv_netbsd_menu_h+set}" = set; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14241 cat >conftest.$ac_ext <<_ACEOF
14242 #line 14242 "configure"
14243 #include "confdefs.h"
14245 #include <${cf_cv_ncurses_header:-curses.h}>
14253 int y = menu->max_item_width;
14259 rm -f conftest.$ac_objext
14260 if { (eval echo "$as_me:14260: \"$ac_compile\"") >&5
14261 (eval $ac_compile) 2>&5
14263 echo "$as_me:14263: \$? = $ac_status" >&5
14264 (exit $ac_status); } &&
14265 { ac_try='test -s conftest.$ac_objext'
14266 { (eval echo "$as_me:14266: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14269 echo "$as_me:14269: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 cf_cv_netbsd_menu_h=yes
14274 echo "$as_me: failed program was:" >&5
14275 cat conftest.$ac_ext >&5
14276 cf_cv_netbsd_menu_h=no
14278 rm -f conftest.$ac_objext conftest.$ac_ext
14281 echo "$as_me:14281: result: $cf_cv_netbsd_menu_h" >&5
14282 echo "${ECHO_T}$cf_cv_netbsd_menu_h" >&6
14284 test "$cf_cv_netbsd_menu_h" = yes &&
14285 cat >>confdefs.h <<\EOF
14286 #define HAVE_NETBSD_MENU_H 1
14292 case $cf_cv_screen in
14296 # look for curses-related libraries
14298 as_ac_Lib=`echo "ac_cv_lib_panel$cf_cv_libtype''_new_panel" | $as_tr_sh`
14299 echo "$as_me:14299: checking for new_panel in -lpanel$cf_cv_libtype" >&5
14300 echo $ECHO_N "checking for new_panel in -lpanel$cf_cv_libtype... $ECHO_C" >&6
14301 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14304 ac_check_lib_save_LIBS=$LIBS
14305 LIBS="-lpanel$cf_cv_libtype $LIBS"
14306 cat >conftest.$ac_ext <<_ACEOF
14307 #line 14307 "configure"
14308 #include "confdefs.h"
14310 /* Override any gcc2 internal prototype to avoid an error. */
14314 /* We use char because int might match the return type of a gcc2
14315 builtin and then its argument prototype would still apply. */
14325 rm -f conftest.$ac_objext conftest$ac_exeext
14326 if { (eval echo "$as_me:14326: \"$ac_link\"") >&5
14327 (eval $ac_link) 2>&5
14329 echo "$as_me:14329: \$? = $ac_status" >&5
14330 (exit $ac_status); } &&
14331 { ac_try='test -s conftest$ac_exeext'
14332 { (eval echo "$as_me:14332: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14335 echo "$as_me:14335: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14337 eval "$as_ac_Lib=yes"
14339 echo "$as_me: failed program was:" >&5
14340 cat conftest.$ac_ext >&5
14341 eval "$as_ac_Lib=no"
14343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14344 LIBS=$ac_check_lib_save_LIBS
14346 echo "$as_me:14346: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14347 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14348 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14350 cf_upper=`echo "have_libpanel" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14352 cf_add_libs="-lpanel$cf_cv_libtype"
14353 # Filter out duplicates - this happens with badly-designed ".pc" files...
14354 for cf_add_1lib in $LIBS
14356 for cf_add_2lib in $cf_add_libs
14358 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14364 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14366 LIBS="$cf_add_libs"
14368 cat >>confdefs.h <<EOF
14369 #define $cf_upper 1
14374 as_ac_Lib=`echo "ac_cv_lib_menu$cf_cv_libtype''_menu_driver" | $as_tr_sh`
14375 echo "$as_me:14375: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
14376 echo $ECHO_N "checking for menu_driver in -lmenu$cf_cv_libtype... $ECHO_C" >&6
14377 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 ac_check_lib_save_LIBS=$LIBS
14381 LIBS="-lmenu$cf_cv_libtype $LIBS"
14382 cat >conftest.$ac_ext <<_ACEOF
14383 #line 14383 "configure"
14384 #include "confdefs.h"
14386 /* Override any gcc2 internal prototype to avoid an error. */
14390 /* We use char because int might match the return type of a gcc2
14391 builtin and then its argument prototype would still apply. */
14392 char menu_driver ();
14401 rm -f conftest.$ac_objext conftest$ac_exeext
14402 if { (eval echo "$as_me:14402: \"$ac_link\"") >&5
14403 (eval $ac_link) 2>&5
14405 echo "$as_me:14405: \$? = $ac_status" >&5
14406 (exit $ac_status); } &&
14407 { ac_try='test -s conftest$ac_exeext'
14408 { (eval echo "$as_me:14408: \"$ac_try\"") >&5
14409 (eval $ac_try) 2>&5
14411 echo "$as_me:14411: \$? = $ac_status" >&5
14412 (exit $ac_status); }; }; then
14413 eval "$as_ac_Lib=yes"
14415 echo "$as_me: failed program was:" >&5
14416 cat conftest.$ac_ext >&5
14417 eval "$as_ac_Lib=no"
14419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14420 LIBS=$ac_check_lib_save_LIBS
14422 echo "$as_me:14422: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14423 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14424 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14426 cf_upper=`echo "have_libmenu" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14428 cf_add_libs="-lmenu$cf_cv_libtype"
14429 # Filter out duplicates - this happens with badly-designed ".pc" files...
14430 for cf_add_1lib in $LIBS
14432 for cf_add_2lib in $cf_add_libs
14434 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14440 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14442 LIBS="$cf_add_libs"
14444 cat >>confdefs.h <<EOF
14445 #define $cf_upper 1
14450 as_ac_Lib=`echo "ac_cv_lib_form$cf_cv_libtype''_form_driver" | $as_tr_sh`
14451 echo "$as_me:14451: checking for form_driver in -lform$cf_cv_libtype" >&5
14452 echo $ECHO_N "checking for form_driver in -lform$cf_cv_libtype... $ECHO_C" >&6
14453 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14454 echo $ECHO_N "(cached) $ECHO_C" >&6
14456 ac_check_lib_save_LIBS=$LIBS
14457 LIBS="-lform$cf_cv_libtype $LIBS"
14458 cat >conftest.$ac_ext <<_ACEOF
14459 #line 14459 "configure"
14460 #include "confdefs.h"
14462 /* Override any gcc2 internal prototype to avoid an error. */
14466 /* We use char because int might match the return type of a gcc2
14467 builtin and then its argument prototype would still apply. */
14468 char form_driver ();
14477 rm -f conftest.$ac_objext conftest$ac_exeext
14478 if { (eval echo "$as_me:14478: \"$ac_link\"") >&5
14479 (eval $ac_link) 2>&5
14481 echo "$as_me:14481: \$? = $ac_status" >&5
14482 (exit $ac_status); } &&
14483 { ac_try='test -s conftest$ac_exeext'
14484 { (eval echo "$as_me:14484: \"$ac_try\"") >&5
14485 (eval $ac_try) 2>&5
14487 echo "$as_me:14487: \$? = $ac_status" >&5
14488 (exit $ac_status); }; }; then
14489 eval "$as_ac_Lib=yes"
14491 echo "$as_me: failed program was:" >&5
14492 cat conftest.$ac_ext >&5
14493 eval "$as_ac_Lib=no"
14495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14496 LIBS=$ac_check_lib_save_LIBS
14498 echo "$as_me:14498: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14499 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14500 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14502 cf_upper=`echo "have_libform" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14504 cf_add_libs="-lform$cf_cv_libtype"
14505 # Filter out duplicates - this happens with badly-designed ".pc" files...
14506 for cf_add_1lib in $LIBS
14508 for cf_add_2lib in $cf_add_libs
14510 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14516 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14518 LIBS="$cf_add_libs"
14520 cat >>confdefs.h <<EOF
14521 #define $cf_upper 1
14526 # look for curses-related headers
14537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14538 echo "$as_me:14538: checking for $ac_header" >&5
14539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14543 cat >conftest.$ac_ext <<_ACEOF
14544 #line 14544 "configure"
14545 #include "confdefs.h"
14546 #include <$ac_header>
14548 if { (eval echo "$as_me:14548: \"$ac_cpp conftest.$ac_ext\"") >&5
14549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14551 egrep -v '^ *\+' conftest.er1 >conftest.err
14553 cat conftest.err >&5
14554 echo "$as_me:14554: \$? = $ac_status" >&5
14555 (exit $ac_status); } >/dev/null; then
14556 if test -s conftest.err; then
14557 ac_cpp_err=$ac_c_preproc_warn_flag
14564 if test -z "$ac_cpp_err"; then
14565 eval "$as_ac_Header=yes"
14567 echo "$as_me: failed program was:" >&5
14568 cat conftest.$ac_ext >&5
14569 eval "$as_ac_Header=no"
14571 rm -f conftest.err conftest.$ac_ext
14573 echo "$as_me:14573: result: `eval echo '${'$as_ac_Header'}'`" >&5
14574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14576 cat >>confdefs.h <<EOF
14577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14586 echo "$as_me:14586: checking for ANSI C header files" >&5
14587 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14588 if test "${ac_cv_header_stdc+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14591 cat >conftest.$ac_ext <<_ACEOF
14592 #line 14592 "configure"
14593 #include "confdefs.h"
14594 #include <stdlib.h>
14595 #include <stdarg.h>
14596 #include <string.h>
14600 if { (eval echo "$as_me:14600: \"$ac_cpp conftest.$ac_ext\"") >&5
14601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14603 egrep -v '^ *\+' conftest.er1 >conftest.err
14605 cat conftest.err >&5
14606 echo "$as_me:14606: \$? = $ac_status" >&5
14607 (exit $ac_status); } >/dev/null; then
14608 if test -s conftest.err; then
14609 ac_cpp_err=$ac_c_preproc_warn_flag
14616 if test -z "$ac_cpp_err"; then
14617 ac_cv_header_stdc=yes
14619 echo "$as_me: failed program was:" >&5
14620 cat conftest.$ac_ext >&5
14621 ac_cv_header_stdc=no
14623 rm -f conftest.err conftest.$ac_ext
14625 if test $ac_cv_header_stdc = yes; then
14626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14627 cat >conftest.$ac_ext <<_ACEOF
14628 #line 14628 "configure"
14629 #include "confdefs.h"
14630 #include <string.h>
14633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14634 egrep "memchr" >/dev/null 2>&1; then
14637 ac_cv_header_stdc=no
14643 if test $ac_cv_header_stdc = yes; then
14644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14645 cat >conftest.$ac_ext <<_ACEOF
14646 #line 14646 "configure"
14647 #include "confdefs.h"
14648 #include <stdlib.h>
14651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14652 egrep "free" >/dev/null 2>&1; then
14655 ac_cv_header_stdc=no
14661 if test $ac_cv_header_stdc = yes; then
14662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14663 if test "$cross_compiling" = yes; then
14666 cat >conftest.$ac_ext <<_ACEOF
14667 #line 14667 "configure"
14668 #include "confdefs.h"
14670 #if ((' ' & 0x0FF) == 0x020)
14671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14674 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14675 || ('j' <= (c) && (c) <= 'r') \
14676 || ('s' <= (c) && (c) <= 'z'))
14677 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14680 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14685 for (i = 0; i < 256; i++)
14686 if (XOR (islower (i), ISLOWER (i))
14687 || toupper (i) != TOUPPER (i))
14688 $ac_main_return(2);
14689 $ac_main_return (0);
14692 rm -f conftest$ac_exeext
14693 if { (eval echo "$as_me:14693: \"$ac_link\"") >&5
14694 (eval $ac_link) 2>&5
14696 echo "$as_me:14696: \$? = $ac_status" >&5
14697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14698 { (eval echo "$as_me:14698: \"$ac_try\"") >&5
14699 (eval $ac_try) 2>&5
14701 echo "$as_me:14701: \$? = $ac_status" >&5
14702 (exit $ac_status); }; }; then
14705 echo "$as_me: program exited with status $ac_status" >&5
14706 echo "$as_me: failed program was:" >&5
14707 cat conftest.$ac_ext >&5
14708 ac_cv_header_stdc=no
14710 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14714 echo "$as_me:14714: result: $ac_cv_header_stdc" >&5
14715 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14716 if test $ac_cv_header_stdc = yes; then
14718 cat >>confdefs.h <<\EOF
14719 #define STDC_HEADERS 1
14724 echo "$as_me:14724: checking whether time.h and sys/time.h may both be included" >&5
14725 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14726 if test "${ac_cv_header_time+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 cat >conftest.$ac_ext <<_ACEOF
14730 #line 14730 "configure"
14731 #include "confdefs.h"
14732 #include <sys/types.h>
14733 #include <sys/time.h>
14739 if ((struct tm *) 0)
14745 rm -f conftest.$ac_objext
14746 if { (eval echo "$as_me:14746: \"$ac_compile\"") >&5
14747 (eval $ac_compile) 2>&5
14749 echo "$as_me:14749: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -s conftest.$ac_objext'
14752 { (eval echo "$as_me:14752: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14755 echo "$as_me:14755: \$? = $ac_status" >&5
14756 (exit $ac_status); }; }; then
14757 ac_cv_header_time=yes
14759 echo "$as_me: failed program was:" >&5
14760 cat conftest.$ac_ext >&5
14761 ac_cv_header_time=no
14763 rm -f conftest.$ac_objext conftest.$ac_ext
14765 echo "$as_me:14765: result: $ac_cv_header_time" >&5
14766 echo "${ECHO_T}$ac_cv_header_time" >&6
14767 if test $ac_cv_header_time = yes; then
14769 cat >>confdefs.h <<\EOF
14770 #define TIME_WITH_SYS_TIME 1
14787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14788 echo "$as_me:14788: checking for $ac_header" >&5
14789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 cat >conftest.$ac_ext <<_ACEOF
14794 #line 14794 "configure"
14795 #include "confdefs.h"
14796 #include <$ac_header>
14798 if { (eval echo "$as_me:14798: \"$ac_cpp conftest.$ac_ext\"") >&5
14799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14801 egrep -v '^ *\+' conftest.er1 >conftest.err
14803 cat conftest.err >&5
14804 echo "$as_me:14804: \$? = $ac_status" >&5
14805 (exit $ac_status); } >/dev/null; then
14806 if test -s conftest.err; then
14807 ac_cpp_err=$ac_c_preproc_warn_flag
14814 if test -z "$ac_cpp_err"; then
14815 eval "$as_ac_Header=yes"
14817 echo "$as_me: failed program was:" >&5
14818 cat conftest.$ac_ext >&5
14819 eval "$as_ac_Header=no"
14821 rm -f conftest.err conftest.$ac_ext
14823 echo "$as_me:14823: result: `eval echo '${'$as_ac_Header'}'`" >&5
14824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14826 cat >>confdefs.h <<EOF
14827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14833 for ac_header in unistd.h getopt.h
14835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14836 echo "$as_me:14836: checking for $ac_header" >&5
14837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14839 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 cat >conftest.$ac_ext <<_ACEOF
14842 #line 14842 "configure"
14843 #include "confdefs.h"
14844 #include <$ac_header>
14846 if { (eval echo "$as_me:14846: \"$ac_cpp conftest.$ac_ext\"") >&5
14847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14849 egrep -v '^ *\+' conftest.er1 >conftest.err
14851 cat conftest.err >&5
14852 echo "$as_me:14852: \$? = $ac_status" >&5
14853 (exit $ac_status); } >/dev/null; then
14854 if test -s conftest.err; then
14855 ac_cpp_err=$ac_c_preproc_warn_flag
14862 if test -z "$ac_cpp_err"; then
14863 eval "$as_ac_Header=yes"
14865 echo "$as_me: failed program was:" >&5
14866 cat conftest.$ac_ext >&5
14867 eval "$as_ac_Header=no"
14869 rm -f conftest.err conftest.$ac_ext
14871 echo "$as_me:14871: result: `eval echo '${'$as_ac_Header'}'`" >&5
14872 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14874 cat >>confdefs.h <<EOF
14875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14881 echo "$as_me:14881: checking for header declaring getopt variables" >&5
14882 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
14883 if test "${cf_cv_getopt_header+set}" = set; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 cf_cv_getopt_header=none
14888 for cf_header in stdio.h stdlib.h unistd.h getopt.h
14890 cat >conftest.$ac_ext <<_ACEOF
14891 #line 14891 "configure"
14892 #include "confdefs.h"
14894 #include <$cf_header>
14898 int x = optind; char *y = optarg
14903 rm -f conftest.$ac_objext
14904 if { (eval echo "$as_me:14904: \"$ac_compile\"") >&5
14905 (eval $ac_compile) 2>&5
14907 echo "$as_me:14907: \$? = $ac_status" >&5
14908 (exit $ac_status); } &&
14909 { ac_try='test -s conftest.$ac_objext'
14910 { (eval echo "$as_me:14910: \"$ac_try\"") >&5
14911 (eval $ac_try) 2>&5
14913 echo "$as_me:14913: \$? = $ac_status" >&5
14914 (exit $ac_status); }; }; then
14915 cf_cv_getopt_header=$cf_header
14918 echo "$as_me: failed program was:" >&5
14919 cat conftest.$ac_ext >&5
14921 rm -f conftest.$ac_objext conftest.$ac_ext
14925 echo "$as_me:14925: result: $cf_cv_getopt_header" >&5
14926 echo "${ECHO_T}$cf_cv_getopt_header" >&6
14927 if test $cf_cv_getopt_header != none ; then
14929 cat >>confdefs.h <<\EOF
14930 #define HAVE_GETOPT_HEADER 1
14934 if test $cf_cv_getopt_header = getopt.h ; then
14936 cat >>confdefs.h <<\EOF
14937 #define NEED_GETOPT_H 1
14949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14950 echo "$as_me:14950: checking for $ac_func" >&5
14951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14952 if eval "test \"\${$as_ac_var+set}\" = set"; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14955 cat >conftest.$ac_ext <<_ACEOF
14956 #line 14956 "configure"
14957 #include "confdefs.h"
14958 /* System header to define __stub macros and hopefully few prototypes,
14959 which can conflict with char $ac_func (); below. */
14960 #include <assert.h>
14961 /* Override any gcc2 internal prototype to avoid an error. */
14965 /* We use char because int might match the return type of a gcc2
14966 builtin and then its argument prototype would still apply. */
14973 /* The GNU C library defines this for functions which it implements
14974 to always fail with ENOSYS. Some functions are actually named
14975 something starting with __ and the normal name is an alias. */
14976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14979 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14986 rm -f conftest.$ac_objext conftest$ac_exeext
14987 if { (eval echo "$as_me:14987: \"$ac_link\"") >&5
14988 (eval $ac_link) 2>&5
14990 echo "$as_me:14990: \$? = $ac_status" >&5
14991 (exit $ac_status); } &&
14992 { ac_try='test -s conftest$ac_exeext'
14993 { (eval echo "$as_me:14993: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14996 echo "$as_me:14996: \$? = $ac_status" >&5
14997 (exit $ac_status); }; }; then
14998 eval "$as_ac_var=yes"
15000 echo "$as_me: failed program was:" >&5
15001 cat conftest.$ac_ext >&5
15002 eval "$as_ac_var=no"
15004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15006 echo "$as_me:15006: result: `eval echo '${'$as_ac_var'}'`" >&5
15007 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15008 if test `eval echo '${'$as_ac_var'}'` = yes; then
15009 cat >>confdefs.h <<EOF
15010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15016 if test "x$ac_cv_func_getopt" = xno; then
15017 { { echo "$as_me:15017: error: getopt is required for building programs" >&5
15018 echo "$as_me: error: getopt is required for building programs" >&2;}
15019 { (exit 1); exit 1; }; }
15022 if test "$cf_enable_widec" = yes; then
15035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15036 echo "$as_me:15036: checking for $ac_func" >&5
15037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15038 if eval "test \"\${$as_ac_var+set}\" = set"; then
15039 echo $ECHO_N "(cached) $ECHO_C" >&6
15041 cat >conftest.$ac_ext <<_ACEOF
15042 #line 15042 "configure"
15043 #include "confdefs.h"
15044 /* System header to define __stub macros and hopefully few prototypes,
15045 which can conflict with char $ac_func (); below. */
15046 #include <assert.h>
15047 /* Override any gcc2 internal prototype to avoid an error. */
15051 /* We use char because int might match the return type of a gcc2
15052 builtin and then its argument prototype would still apply. */
15059 /* The GNU C library defines this for functions which it implements
15060 to always fail with ENOSYS. Some functions are actually named
15061 something starting with __ and the normal name is an alias. */
15062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15065 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15072 rm -f conftest.$ac_objext conftest$ac_exeext
15073 if { (eval echo "$as_me:15073: \"$ac_link\"") >&5
15074 (eval $ac_link) 2>&5
15076 echo "$as_me:15076: \$? = $ac_status" >&5
15077 (exit $ac_status); } &&
15078 { ac_try='test -s conftest$ac_exeext'
15079 { (eval echo "$as_me:15079: \"$ac_try\"") >&5
15080 (eval $ac_try) 2>&5
15082 echo "$as_me:15082: \$? = $ac_status" >&5
15083 (exit $ac_status); }; }; then
15084 eval "$as_ac_var=yes"
15086 echo "$as_me: failed program was:" >&5
15087 cat conftest.$ac_ext >&5
15088 eval "$as_ac_var=no"
15090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15092 echo "$as_me:15092: result: `eval echo '${'$as_ac_var'}'`" >&5
15093 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15094 if test `eval echo '${'$as_ac_var'}'` = yes; then
15095 cat >>confdefs.h <<EOF
15096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15104 echo "$as_me:15104: checking definition to turn on extended curses functions" >&5
15105 echo $ECHO_N "checking definition to turn on extended curses functions... $ECHO_C" >&6
15106 if test "${cf_cv_need_xopen_extension+set}" = set; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 cf_cv_need_xopen_extension=unknown
15111 cat >conftest.$ac_ext <<_ACEOF
15112 #line 15112 "configure"
15113 #include "confdefs.h"
15115 #include <stdlib.h>
15116 #include <${cf_cv_ncurses_header:-curses.h}>
15121 #if defined(NCURSES_VERSION_PATCH)
15122 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
15126 #ifdef NCURSES_VERSION
15128 int check2 = curs_set((int)sizeof(check));
15130 long x = winnstr(stdscr, "", 0);
15132 getbegyx(stdscr, y1, x1)
15137 rm -f conftest.$ac_objext conftest$ac_exeext
15138 if { (eval echo "$as_me:15138: \"$ac_link\"") >&5
15139 (eval $ac_link) 2>&5
15141 echo "$as_me:15141: \$? = $ac_status" >&5
15142 (exit $ac_status); } &&
15143 { ac_try='test -s conftest$ac_exeext'
15144 { (eval echo "$as_me:15144: \"$ac_try\"") >&5
15145 (eval $ac_try) 2>&5
15147 echo "$as_me:15147: \$? = $ac_status" >&5
15148 (exit $ac_status); }; }; then
15149 cf_cv_need_xopen_extension=none
15151 echo "$as_me: failed program was:" >&5
15152 cat conftest.$ac_ext >&5
15154 for cf_try_xopen_extension in _XOPEN_SOURCE_EXTENDED NCURSES_WIDECHAR
15156 cat >conftest.$ac_ext <<_ACEOF
15157 #line 15157 "configure"
15158 #include "confdefs.h"
15160 #define $cf_try_xopen_extension 1
15161 #include <stdlib.h>
15162 #include <${cf_cv_ncurses_header:-curses.h}>
15167 #ifdef NCURSES_VERSION
15169 int check2 = curs_set((int)sizeof(check));
15171 long x = winnstr(stdscr, "", 0);
15173 getbegyx(stdscr, y1, x1)
15178 rm -f conftest.$ac_objext conftest$ac_exeext
15179 if { (eval echo "$as_me:15179: \"$ac_link\"") >&5
15180 (eval $ac_link) 2>&5
15182 echo "$as_me:15182: \$? = $ac_status" >&5
15183 (exit $ac_status); } &&
15184 { ac_try='test -s conftest$ac_exeext'
15185 { (eval echo "$as_me:15185: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15188 echo "$as_me:15188: \$? = $ac_status" >&5
15189 (exit $ac_status); }; }; then
15190 cf_cv_need_xopen_extension=$cf_try_xopen_extension; break
15192 echo "$as_me: failed program was:" >&5
15193 cat conftest.$ac_ext >&5
15195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15202 echo "$as_me:15202: result: $cf_cv_need_xopen_extension" >&5
15203 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
15205 case $cf_cv_need_xopen_extension in
15207 CPPFLAGS="$CPPFLAGS -D$cf_cv_need_xopen_extension"
15211 echo "$as_me:15211: checking for term.h" >&5
15212 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
15213 if test "${cf_cv_term_header+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15217 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
15218 # for <term.h> if we do not find the variant.
15220 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
15222 case ${cf_cv_ncurses_header:-curses.h} in
15224 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
15225 cf_header_list="$cf_header_item $cf_header_list"
15229 for cf_header in $cf_header_list
15231 cat >conftest.$ac_ext <<_ACEOF
15232 #line 15232 "configure"
15233 #include "confdefs.h"
15235 #include <${cf_cv_ncurses_header:-curses.h}>
15236 #include <${cf_header}>
15245 rm -f conftest.$ac_objext
15246 if { (eval echo "$as_me:15246: \"$ac_compile\"") >&5
15247 (eval $ac_compile) 2>&5
15249 echo "$as_me:15249: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
15251 { ac_try='test -s conftest.$ac_objext'
15252 { (eval echo "$as_me:15252: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15255 echo "$as_me:15255: \$? = $ac_status" >&5
15256 (exit $ac_status); }; }; then
15257 cf_cv_term_header=$cf_header
15260 echo "$as_me: failed program was:" >&5
15261 cat conftest.$ac_ext >&5
15262 cf_cv_term_header=no
15264 rm -f conftest.$ac_objext conftest.$ac_ext
15267 case $cf_cv_term_header in
15269 # If curses is ncurses, some packagers still mess it up by trying to make
15270 # us use GNU termcap. This handles the most common case.
15271 for cf_header in ncurses/term.h ncursesw/term.h
15273 cat >conftest.$ac_ext <<_ACEOF
15274 #line 15274 "configure"
15275 #include "confdefs.h"
15277 #include <${cf_cv_ncurses_header:-curses.h}>
15278 #ifdef NCURSES_VERSION
15279 #include <${cf_header}>
15291 rm -f conftest.$ac_objext
15292 if { (eval echo "$as_me:15292: \"$ac_compile\"") >&5
15293 (eval $ac_compile) 2>&5
15295 echo "$as_me:15295: \$? = $ac_status" >&5
15296 (exit $ac_status); } &&
15297 { ac_try='test -s conftest.$ac_objext'
15298 { (eval echo "$as_me:15298: \"$ac_try\"") >&5
15299 (eval $ac_try) 2>&5
15301 echo "$as_me:15301: \$? = $ac_status" >&5
15302 (exit $ac_status); }; }; then
15303 cf_cv_term_header=$cf_header
15306 echo "$as_me: failed program was:" >&5
15307 cat conftest.$ac_ext >&5
15308 cf_cv_term_header=no
15310 rm -f conftest.$ac_objext conftest.$ac_ext
15316 echo "$as_me:15316: result: $cf_cv_term_header" >&5
15317 echo "${ECHO_T}$cf_cv_term_header" >&6
15319 case $cf_cv_term_header in
15322 cat >>confdefs.h <<\EOF
15323 #define HAVE_TERM_H 1
15329 cat >>confdefs.h <<\EOF
15330 #define HAVE_NCURSES_TERM_H 1
15336 cat >>confdefs.h <<\EOF
15337 #define HAVE_NCURSESW_TERM_H 1
15343 echo "$as_me:15343: checking for unctrl.h" >&5
15344 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
15345 if test "${cf_cv_unctrl_header+set}" = set; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15349 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
15350 # for <unctrl.h> if we do not find the variant.
15352 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
15354 case ${cf_cv_ncurses_header:-curses.h} in
15356 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
15357 cf_header_list="$cf_header_item $cf_header_list"
15361 for cf_header in $cf_header_list
15363 cat >conftest.$ac_ext <<_ACEOF
15364 #line 15364 "configure"
15365 #include "confdefs.h"
15367 #include <${cf_cv_ncurses_header:-curses.h}>
15368 #include <${cf_header}>
15377 rm -f conftest.$ac_objext
15378 if { (eval echo "$as_me:15378: \"$ac_compile\"") >&5
15379 (eval $ac_compile) 2>&5
15381 echo "$as_me:15381: \$? = $ac_status" >&5
15382 (exit $ac_status); } &&
15383 { ac_try='test -s conftest.$ac_objext'
15384 { (eval echo "$as_me:15384: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15387 echo "$as_me:15387: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 cf_cv_unctrl_header=$cf_header
15392 echo "$as_me: failed program was:" >&5
15393 cat conftest.$ac_ext >&5
15394 cf_cv_unctrl_header=no
15396 rm -f conftest.$ac_objext conftest.$ac_ext
15400 echo "$as_me:15400: result: $cf_cv_unctrl_header" >&5
15401 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
15403 case $cf_cv_unctrl_header in
15405 { echo "$as_me:15405: WARNING: unctrl.h header not found" >&5
15406 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
15410 case $cf_cv_unctrl_header in
15413 cat >>confdefs.h <<\EOF
15414 #define HAVE_UNCTRL_H 1
15420 cat >>confdefs.h <<\EOF
15421 #define HAVE_NCURSES_UNCTRL_H 1
15425 (ncursesw/unctrl.h)
15427 cat >>confdefs.h <<\EOF
15428 #define HAVE_NCURSESW_UNCTRL_H 1
15436 assume_default_colors \
15446 init_extended_color \
15465 use_default_colors \
15467 use_extended_names \
15482 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15484 echo "$as_me:15484: checking for ${cf_func}" >&5
15485 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
15487 echo "${as_me:-configure}:15487: testing ${cf_func} ..." 1>&5
15489 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15493 eval cf_result='$ac_cv_func_'$cf_func
15494 if test ".$cf_result" != ".no"; then
15495 cat >conftest.$ac_ext <<_ACEOF
15496 #line 15496 "configure"
15497 #include "confdefs.h"
15499 #ifdef HAVE_XCURSES
15500 #include <xcurses.h>
15501 char * XCursesProgramName = "test";
15503 #include <${cf_cv_ncurses_header:-curses.h}>
15504 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15505 #include <ncursesw/term.h>
15506 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15507 #include <ncurses/term.h>
15508 #elif defined(HAVE_TERM_H)
15518 long foo = (long)(&${cf_func});
15519 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
15520 if (foo + 1234 > 5678)
15521 ${cf_cv_main_return:-return}(foo);
15528 rm -f conftest.$ac_objext conftest$ac_exeext
15529 if { (eval echo "$as_me:15529: \"$ac_link\"") >&5
15530 (eval $ac_link) 2>&5
15532 echo "$as_me:15532: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try='test -s conftest$ac_exeext'
15535 { (eval echo "$as_me:15535: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15538 echo "$as_me:15538: \$? = $ac_status" >&5
15539 (exit $ac_status); }; }; then
15542 echo "$as_me: failed program was:" >&5
15543 cat conftest.$ac_ext >&5
15546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15548 eval 'cf_cv_func_'$cf_func'=$cf_result'
15552 # use the computed/retrieved cache-value:
15553 eval 'cf_result=$cf_cv_func_'$cf_func
15554 echo "$as_me:15554: result: $cf_result" >&5
15555 echo "${ECHO_T}$cf_result" >&6
15556 if test $cf_result != no; then
15557 cat >>confdefs.h <<EOF
15558 #define HAVE_${cf_tr_func} 1
15564 for cf_func in tputs
15567 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15569 echo "$as_me:15569: checking for ${cf_func}" >&5
15570 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
15572 echo "${as_me:-configure}:15572: testing ${cf_func} ..." 1>&5
15574 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
15575 echo $ECHO_N "(cached) $ECHO_C" >&6
15578 eval cf_result='$ac_cv_func_'$cf_func
15579 if test ".$cf_result" != ".no"; then
15580 cat >conftest.$ac_ext <<_ACEOF
15581 #line 15581 "configure"
15582 #include "confdefs.h"
15584 #ifdef HAVE_XCURSES
15585 #include <xcurses.h>
15586 char * XCursesProgramName = "test";
15588 #include <${cf_cv_ncurses_header:-curses.h}>
15589 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15590 #include <ncursesw/term.h>
15591 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15592 #include <ncurses/term.h>
15593 #elif defined(HAVE_TERM_H)
15603 long foo = (long)(&${cf_func});
15604 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
15605 if (foo + 1234 > 5678)
15606 ${cf_cv_main_return:-return}(foo);
15613 rm -f conftest.$ac_objext conftest$ac_exeext
15614 if { (eval echo "$as_me:15614: \"$ac_link\"") >&5
15615 (eval $ac_link) 2>&5
15617 echo "$as_me:15617: \$? = $ac_status" >&5
15618 (exit $ac_status); } &&
15619 { ac_try='test -s conftest$ac_exeext'
15620 { (eval echo "$as_me:15620: \"$ac_try\"") >&5
15621 (eval $ac_try) 2>&5
15623 echo "$as_me:15623: \$? = $ac_status" >&5
15624 (exit $ac_status); }; }; then
15627 echo "$as_me: failed program was:" >&5
15628 cat conftest.$ac_ext >&5
15631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15633 eval 'cf_cv_func_'$cf_func'=$cf_result'
15637 # use the computed/retrieved cache-value:
15638 eval 'cf_result=$cf_cv_func_'$cf_func
15639 echo "$as_me:15639: result: $cf_result" >&5
15640 echo "${ECHO_T}$cf_result" >&6
15641 if test $cf_result != no; then
15642 cat >>confdefs.h <<EOF
15643 #define HAVE_${cf_tr_func} 1
15649 if test x$cf_cv_func_tputs = xyes
15652 for cf_arg in int char
15654 for cf_ret in int void
15656 if test $cf_ret = void
15658 cf_return="/* nothing */"
15660 cf_return="return value"
15662 cat >conftest.$ac_ext <<_ACEOF
15663 #line 15663 "configure"
15664 #include "confdefs.h"
15666 #include <${cf_cv_ncurses_header:-curses.h}>
15667 #include <$cf_cv_term_header>
15669 static $cf_ret outc($cf_arg value) { $cf_return; }
15675 tputs("hello", 0, outc);
15676 ${cf_cv_main_return:-return}(0);
15682 rm -f conftest.$ac_objext
15683 if { (eval echo "$as_me:15683: \"$ac_compile\"") >&5
15684 (eval $ac_compile) 2>&5
15686 echo "$as_me:15686: \$? = $ac_status" >&5
15687 (exit $ac_status); } &&
15688 { ac_try='test -s conftest.$ac_objext'
15689 { (eval echo "$as_me:15689: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15692 echo "$as_me:15692: \$? = $ac_status" >&5
15693 (exit $ac_status); }; }; then
15695 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
15697 echo "${as_me:-configure}:15697: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
15699 cat >>confdefs.h <<EOF
15700 #define TPUTS_ARG $cf_arg
15701 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
15702 #define TPUTS_RETURN(value) $cf_return
15708 echo "$as_me: failed program was:" >&5
15709 cat conftest.$ac_ext >&5
15711 rm -f conftest.$ac_objext conftest.$ac_ext
15713 test $cf_done = yes && break
15717 echo "$as_me:15717: checking for ncurses extended functions" >&5
15718 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
15719 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
15720 echo $ECHO_N "(cached) $ECHO_C" >&6
15723 cat >conftest.$ac_ext <<_ACEOF
15724 #line 15724 "configure"
15725 #include "confdefs.h"
15727 #include <${cf_cv_ncurses_header:-curses.h}>
15732 int x = NCURSES_EXT_FUNCS
15738 rm -f conftest.$ac_objext
15739 if { (eval echo "$as_me:15739: \"$ac_compile\"") >&5
15740 (eval $ac_compile) 2>&5
15742 echo "$as_me:15742: \$? = $ac_status" >&5
15743 (exit $ac_status); } &&
15744 { ac_try='test -s conftest.$ac_objext'
15745 { (eval echo "$as_me:15745: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15748 echo "$as_me:15748: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15750 cf_cv_ncurses_ext_funcs=defined
15752 echo "$as_me: failed program was:" >&5
15753 cat conftest.$ac_ext >&5
15755 cat >conftest.$ac_ext <<_ACEOF
15756 #line 15756 "configure"
15757 #include "confdefs.h"
15759 #include <${cf_cv_ncurses_header:-curses.h}>
15764 (void) assume_default_colors (0, 0);
15765 (void) curses_version ();
15766 (void) define_key (0, 0);
15767 (void) is_term_resized (0, 0);
15768 (void) key_defined (0);
15769 (void) keybound (0, 0);
15770 (void) keyok (0, 0);
15771 (void) resize_term (0, 0);
15772 (void) resizeterm (0, 0);
15773 (void) use_default_colors ();
15774 (void) use_extended_names (0);
15775 (void) wresize (0, 0, 0);
15780 rm -f conftest.$ac_objext conftest$ac_exeext
15781 if { (eval echo "$as_me:15781: \"$ac_link\"") >&5
15782 (eval $ac_link) 2>&5
15784 echo "$as_me:15784: \$? = $ac_status" >&5
15785 (exit $ac_status); } &&
15786 { ac_try='test -s conftest$ac_exeext'
15787 { (eval echo "$as_me:15787: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15790 echo "$as_me:15790: \$? = $ac_status" >&5
15791 (exit $ac_status); }; }; then
15792 cf_cv_ncurses_ext_funcs=yes
15794 echo "$as_me: failed program was:" >&5
15795 cat conftest.$ac_ext >&5
15796 cf_cv_ncurses_ext_funcs=no
15798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15801 rm -f conftest.$ac_objext conftest.$ac_ext
15804 echo "$as_me:15804: result: $cf_cv_ncurses_ext_funcs" >&5
15805 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
15806 test "$cf_cv_ncurses_ext_funcs" = yes &&
15807 cat >>confdefs.h <<\EOF
15808 #define NCURSES_EXT_FUNCS 1
15811 if test "$cf_enable_widec" = yes
15813 # workaround for systems with ncurses before 20111029, due to change of
15814 # feature test macro from _XPG5 to _XOPEN_SOURCE
15815 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
15818 echo "$as_me:15818: checking if _XPG5 should be defined to enable wide-characters" >&5
15819 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
15821 cat >conftest.$ac_ext <<_ACEOF
15822 #line 15822 "configure"
15823 #include "confdefs.h"
15825 #include <${cf_cv_ncurses_header:-curses.h}>
15834 rm -f conftest.$ac_objext
15835 if { (eval echo "$as_me:15835: \"$ac_compile\"") >&5
15836 (eval $ac_compile) 2>&5
15838 echo "$as_me:15838: \$? = $ac_status" >&5
15839 (exit $ac_status); } &&
15840 { ac_try='test -s conftest.$ac_objext'
15841 { (eval echo "$as_me:15841: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15844 echo "$as_me:15844: \$? = $ac_status" >&5
15845 (exit $ac_status); }; }; then
15848 echo "$as_me: failed program was:" >&5
15849 cat conftest.$ac_ext >&5
15850 cf_save_cppflags="$CPPFLAGS"
15851 CPPFLAGS="$CPPFLAGS -D_XPG5"
15852 cat >conftest.$ac_ext <<_ACEOF
15853 #line 15853 "configure"
15854 #include "confdefs.h"
15856 #include <${cf_cv_ncurses_header:-curses.h}>
15865 rm -f conftest.$ac_objext
15866 if { (eval echo "$as_me:15866: \"$ac_compile\"") >&5
15867 (eval $ac_compile) 2>&5
15869 echo "$as_me:15869: \$? = $ac_status" >&5
15870 (exit $ac_status); } &&
15871 { ac_try='test -s conftest.$ac_objext'
15872 { (eval echo "$as_me:15872: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15875 echo "$as_me:15875: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15879 echo "$as_me: failed program was:" >&5
15880 cat conftest.$ac_ext >&5
15882 rm -f conftest.$ac_objext conftest.$ac_ext
15883 CPPFLAGS="$cf_save_cppflags"
15885 rm -f conftest.$ac_objext conftest.$ac_ext
15886 echo "$as_me:15886: result: $cf_define_xpg5" >&5
15887 echo "${ECHO_T}$cf_define_xpg5" >&6
15889 if test "$cf_define_xpg5" = yes
15891 CPPFLAGS="$CPPFLAGS -D_XPG5"
15895 echo "$as_me:15895: checking for wide-character functions" >&5
15896 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
15897 if test "${cf_cv_widechar_funcs+set}" = set; then
15898 echo $ECHO_N "(cached) $ECHO_C" >&6
15901 cat >conftest.$ac_ext <<_ACEOF
15902 #line 15902 "configure"
15903 #include "confdefs.h"
15905 #include <${cf_cv_ncurses_header:-curses.h}>
15910 static wchar_t src_wchar[2];
15911 static cchar_t dst_cchar;
15912 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
15918 rm -f conftest.$ac_objext conftest$ac_exeext
15919 if { (eval echo "$as_me:15919: \"$ac_link\"") >&5
15920 (eval $ac_link) 2>&5
15922 echo "$as_me:15922: \$? = $ac_status" >&5
15923 (exit $ac_status); } &&
15924 { ac_try='test -s conftest$ac_exeext'
15925 { (eval echo "$as_me:15925: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15928 echo "$as_me:15928: \$? = $ac_status" >&5
15929 (exit $ac_status); }; }; then
15930 cf_cv_widechar_funcs=yes
15932 echo "$as_me: failed program was:" >&5
15933 cat conftest.$ac_ext >&5
15934 cf_cv_widechar_funcs=no
15936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15939 echo "$as_me:15939: result: $cf_cv_widechar_funcs" >&5
15940 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
15941 if test "$cf_cv_widechar_funcs" != no ; then
15943 cat >>confdefs.h <<\EOF
15944 #define USE_WIDEC_SUPPORT 1
15948 cat >>confdefs.h <<\EOF
15949 #define USE_WIDEC_SUPPORT 0
15954 cat >>confdefs.h <<\EOF
15955 #define USE_WIDEC_SUPPORT 0
15960 echo "$as_me:15960: checking if $cf_cv_screen library uses pthreads" >&5
15961 echo $ECHO_N "checking if $cf_cv_screen library uses pthreads... $ECHO_C" >&6
15962 if test "${cf_cv_use_pthreads+set}" = set; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15966 cat >conftest.$ac_ext <<_ACEOF
15967 #line 15967 "configure"
15968 #include "confdefs.h"
15970 #include <${cf_cv_ncurses_header:-curses.h}>
15971 extern void _nc_init_pthreads(void);
15978 _nc_init_pthreads();
15984 rm -f conftest.$ac_objext conftest$ac_exeext
15985 if { (eval echo "$as_me:15985: \"$ac_link\"") >&5
15986 (eval $ac_link) 2>&5
15988 echo "$as_me:15988: \$? = $ac_status" >&5
15989 (exit $ac_status); } &&
15990 { ac_try='test -s conftest$ac_exeext'
15991 { (eval echo "$as_me:15991: \"$ac_try\"") >&5
15992 (eval $ac_try) 2>&5
15994 echo "$as_me:15994: \$? = $ac_status" >&5
15995 (exit $ac_status); }; }; then
15996 cf_cv_use_pthreads=yes
15998 echo "$as_me: failed program was:" >&5
15999 cat conftest.$ac_ext >&5
16000 cf_cv_use_pthreads=no
16002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16005 echo "$as_me:16005: result: $cf_cv_use_pthreads" >&5
16006 echo "${ECHO_T}$cf_cv_use_pthreads" >&6
16007 test $cf_cv_use_pthreads = yes && cat >>confdefs.h <<\EOF
16008 #define USE_PTHREADS 1
16011 echo "$as_me:16011: checking if sys/time.h works with sys/select.h" >&5
16012 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
16013 if test "${cf_cv_sys_time_select+set}" = set; then
16014 echo $ECHO_N "(cached) $ECHO_C" >&6
16017 cat >conftest.$ac_ext <<_ACEOF
16018 #line 16018 "configure"
16019 #include "confdefs.h"
16021 #include <sys/types.h>
16022 #ifdef HAVE_SYS_TIME_H
16023 #include <sys/time.h>
16025 #ifdef HAVE_SYS_SELECT_H
16026 #include <sys/select.h>
16037 rm -f conftest.$ac_objext
16038 if { (eval echo "$as_me:16038: \"$ac_compile\"") >&5
16039 (eval $ac_compile) 2>&5
16041 echo "$as_me:16041: \$? = $ac_status" >&5
16042 (exit $ac_status); } &&
16043 { ac_try='test -s conftest.$ac_objext'
16044 { (eval echo "$as_me:16044: \"$ac_try\"") >&5
16045 (eval $ac_try) 2>&5
16047 echo "$as_me:16047: \$? = $ac_status" >&5
16048 (exit $ac_status); }; }; then
16049 cf_cv_sys_time_select=yes
16051 echo "$as_me: failed program was:" >&5
16052 cat conftest.$ac_ext >&5
16053 cf_cv_sys_time_select=no
16055 rm -f conftest.$ac_objext conftest.$ac_ext
16059 echo "$as_me:16059: result: $cf_cv_sys_time_select" >&5
16060 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
16061 test "$cf_cv_sys_time_select" = yes &&
16062 cat >>confdefs.h <<\EOF
16063 #define HAVE_SYS_TIME_SELECT 1
16066 # special check for test/ditto.c
16068 echo "$as_me:16068: checking for openpty in -lutil" >&5
16069 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
16070 if test "${ac_cv_lib_util_openpty+set}" = set; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 ac_check_lib_save_LIBS=$LIBS
16074 LIBS="-lutil $LIBS"
16075 cat >conftest.$ac_ext <<_ACEOF
16076 #line 16076 "configure"
16077 #include "confdefs.h"
16079 /* Override any gcc2 internal prototype to avoid an error. */
16083 /* We use char because int might match the return type of a gcc2
16084 builtin and then its argument prototype would still apply. */
16094 rm -f conftest.$ac_objext conftest$ac_exeext
16095 if { (eval echo "$as_me:16095: \"$ac_link\"") >&5
16096 (eval $ac_link) 2>&5
16098 echo "$as_me:16098: \$? = $ac_status" >&5
16099 (exit $ac_status); } &&
16100 { ac_try='test -s conftest$ac_exeext'
16101 { (eval echo "$as_me:16101: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16104 echo "$as_me:16104: \$? = $ac_status" >&5
16105 (exit $ac_status); }; }; then
16106 ac_cv_lib_util_openpty=yes
16108 echo "$as_me: failed program was:" >&5
16109 cat conftest.$ac_ext >&5
16110 ac_cv_lib_util_openpty=no
16112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16113 LIBS=$ac_check_lib_save_LIBS
16115 echo "$as_me:16115: result: $ac_cv_lib_util_openpty" >&5
16116 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
16117 if test $ac_cv_lib_util_openpty = yes; then
16123 echo "$as_me:16123: checking for openpty header" >&5
16124 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
16125 if test "${cf_cv_func_openpty+set}" = set; then
16126 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 cf_save_LIBS="$LIBS"
16130 test $cf_cv_lib_util = yes && {
16131 cf_add_libs="-lutil"
16132 # Filter out duplicates - this happens with badly-designed ".pc" files...
16133 for cf_add_1lib in $LIBS
16135 for cf_add_2lib in $cf_add_libs
16137 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16143 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16145 LIBS="$cf_add_libs"
16147 for cf_header in pty.h libutil.h util.h
16149 cat >conftest.$ac_ext <<_ACEOF
16150 #line 16150 "configure"
16151 #include "confdefs.h"
16153 #include <$cf_header>
16159 int x = openpty((int *)0, (int *)0, (char *)0,
16160 (struct termios *)0, (struct winsize *)0);
16166 rm -f conftest.$ac_objext conftest$ac_exeext
16167 if { (eval echo "$as_me:16167: \"$ac_link\"") >&5
16168 (eval $ac_link) 2>&5
16170 echo "$as_me:16170: \$? = $ac_status" >&5
16171 (exit $ac_status); } &&
16172 { ac_try='test -s conftest$ac_exeext'
16173 { (eval echo "$as_me:16173: \"$ac_try\"") >&5
16174 (eval $ac_try) 2>&5
16176 echo "$as_me:16176: \$? = $ac_status" >&5
16177 (exit $ac_status); }; }; then
16179 cf_cv_func_openpty=$cf_header
16183 echo "$as_me: failed program was:" >&5
16184 cat conftest.$ac_ext >&5
16186 cf_cv_func_openpty=no
16189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16191 LIBS="$cf_save_LIBS"
16194 echo "$as_me:16194: result: $cf_cv_func_openpty" >&5
16195 echo "${ECHO_T}$cf_cv_func_openpty" >&6
16197 if test "$cf_cv_func_openpty" != no ; then
16199 cat >>confdefs.h <<EOF
16200 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
16203 cat >>confdefs.h <<\EOF
16204 #define USE_XTERM_PTY 1
16207 if test "x$cf_cv_lib_util" = xyes ; then
16209 cf_add_libs="-lutil"
16210 # Filter out duplicates - this happens with badly-designed ".pc" files...
16211 for cf_add_1lib in $TEST_LIBS
16213 for cf_add_2lib in $cf_add_libs
16215 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16221 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16223 TEST_LIBS="$cf_add_libs"
16228 echo "$as_me:16228: checking for function curses_version" >&5
16229 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
16230 if test "${cf_cv_func_curses_version+set}" = set; then
16231 echo $ECHO_N "(cached) $ECHO_C" >&6
16234 if test "$cross_compiling" = yes; then
16235 cf_cv_func_curses_version=unknown
16237 cat >conftest.$ac_ext <<_ACEOF
16238 #line 16238 "configure"
16239 #include "confdefs.h"
16241 #include <${cf_cv_ncurses_header:-curses.h}>
16245 sprintf(temp, "%s\n", curses_version());
16246 ${cf_cv_main_return:-return}(0);
16250 rm -f conftest$ac_exeext
16251 if { (eval echo "$as_me:16251: \"$ac_link\"") >&5
16252 (eval $ac_link) 2>&5
16254 echo "$as_me:16254: \$? = $ac_status" >&5
16255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16256 { (eval echo "$as_me:16256: \"$ac_try\"") >&5
16257 (eval $ac_try) 2>&5
16259 echo "$as_me:16259: \$? = $ac_status" >&5
16260 (exit $ac_status); }; }; then
16261 cf_cv_func_curses_version=yes
16264 echo "$as_me: program exited with status $ac_status" >&5
16265 echo "$as_me: failed program was:" >&5
16266 cat conftest.$ac_ext >&5
16267 cf_cv_func_curses_version=no
16270 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16274 echo "$as_me:16274: result: $cf_cv_func_curses_version" >&5
16275 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
16276 test "$cf_cv_func_curses_version" = yes &&
16277 cat >>confdefs.h <<\EOF
16278 #define HAVE_CURSES_VERSION 1
16281 echo "$as_me:16281: checking for alternate character set array" >&5
16282 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
16283 if test "${cf_cv_curses_acs_map+set}" = set; then
16284 echo $ECHO_N "(cached) $ECHO_C" >&6
16287 cf_cv_curses_acs_map=unknown
16288 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
16290 cat >conftest.$ac_ext <<_ACEOF
16291 #line 16291 "configure"
16292 #include "confdefs.h"
16294 #include <${cf_cv_ncurses_header:-curses.h}>
16300 $name['k'] = ACS_PLUS
16306 rm -f conftest.$ac_objext conftest$ac_exeext
16307 if { (eval echo "$as_me:16307: \"$ac_link\"") >&5
16308 (eval $ac_link) 2>&5
16310 echo "$as_me:16310: \$? = $ac_status" >&5
16311 (exit $ac_status); } &&
16312 { ac_try='test -s conftest$ac_exeext'
16313 { (eval echo "$as_me:16313: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16316 echo "$as_me:16316: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then
16318 cf_cv_curses_acs_map=$name; break
16320 echo "$as_me: failed program was:" >&5
16321 cat conftest.$ac_ext >&5
16323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16327 echo "$as_me:16327: result: $cf_cv_curses_acs_map" >&5
16328 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
16330 test "$cf_cv_curses_acs_map" != unknown &&
16331 cat >>confdefs.h <<EOF
16332 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
16335 if test "$cf_enable_widec" = yes; then
16337 echo "$as_me:16337: checking for wide alternate character set array" >&5
16338 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
16339 if test "${cf_cv_curses_wacs_map+set}" = set; then
16340 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 cf_cv_curses_wacs_map=unknown
16344 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
16346 cat >conftest.$ac_ext <<_ACEOF
16347 #line 16347 "configure"
16348 #include "confdefs.h"
16350 #ifndef _XOPEN_SOURCE_EXTENDED
16351 #define _XOPEN_SOURCE_EXTENDED
16353 #include <${cf_cv_ncurses_header:-curses.h}>
16357 void *foo = &($name['k'])
16362 rm -f conftest.$ac_objext conftest$ac_exeext
16363 if { (eval echo "$as_me:16363: \"$ac_link\"") >&5
16364 (eval $ac_link) 2>&5
16366 echo "$as_me:16366: \$? = $ac_status" >&5
16367 (exit $ac_status); } &&
16368 { ac_try='test -s conftest$ac_exeext'
16369 { (eval echo "$as_me:16369: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16372 echo "$as_me:16372: \$? = $ac_status" >&5
16373 (exit $ac_status); }; }; then
16374 cf_cv_curses_wacs_map=$name
16377 echo "$as_me: failed program was:" >&5
16378 cat conftest.$ac_ext >&5
16380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16383 echo "$as_me:16383: result: $cf_cv_curses_wacs_map" >&5
16384 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
16386 test "$cf_cv_curses_wacs_map" != unknown &&
16387 cat >>confdefs.h <<EOF
16388 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
16391 echo "$as_me:16391: checking for wide alternate character constants" >&5
16392 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
16393 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
16394 echo $ECHO_N "(cached) $ECHO_C" >&6
16397 cf_cv_curses_wacs_symbols=no
16398 if test "$cf_cv_curses_wacs_map" != unknown
16400 cat >conftest.$ac_ext <<_ACEOF
16401 #line 16401 "configure"
16402 #include "confdefs.h"
16404 #ifndef _XOPEN_SOURCE_EXTENDED
16405 #define _XOPEN_SOURCE_EXTENDED
16407 #include <${cf_cv_ncurses_header:-curses.h}>
16411 cchar_t *foo = WACS_PLUS;
16412 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
16417 rm -f conftest.$ac_objext conftest$ac_exeext
16418 if { (eval echo "$as_me:16418: \"$ac_link\"") >&5
16419 (eval $ac_link) 2>&5
16421 echo "$as_me:16421: \$? = $ac_status" >&5
16422 (exit $ac_status); } &&
16423 { ac_try='test -s conftest$ac_exeext'
16424 { (eval echo "$as_me:16424: \"$ac_try\"") >&5
16425 (eval $ac_try) 2>&5
16427 echo "$as_me:16427: \$? = $ac_status" >&5
16428 (exit $ac_status); }; }; then
16429 cf_cv_curses_wacs_symbols=yes
16431 echo "$as_me: failed program was:" >&5
16432 cat conftest.$ac_ext >&5
16434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16436 cat >conftest.$ac_ext <<_ACEOF
16437 #line 16437 "configure"
16438 #include "confdefs.h"
16440 #ifndef _XOPEN_SOURCE_EXTENDED
16441 #define _XOPEN_SOURCE_EXTENDED
16443 #include <${cf_cv_ncurses_header:-curses.h}>
16447 cchar_t *foo = WACS_PLUS
16452 rm -f conftest.$ac_objext conftest$ac_exeext
16453 if { (eval echo "$as_me:16453: \"$ac_link\"") >&5
16454 (eval $ac_link) 2>&5
16456 echo "$as_me:16456: \$? = $ac_status" >&5
16457 (exit $ac_status); } &&
16458 { ac_try='test -s conftest$ac_exeext'
16459 { (eval echo "$as_me:16459: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16462 echo "$as_me:16462: \$? = $ac_status" >&5
16463 (exit $ac_status); }; }; then
16464 cf_cv_curses_wacs_symbols=yes
16466 echo "$as_me: failed program was:" >&5
16467 cat conftest.$ac_ext >&5
16469 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16473 echo "$as_me:16473: result: $cf_cv_curses_wacs_symbols" >&5
16474 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
16476 test "$cf_cv_curses_wacs_symbols" != no &&
16477 cat >>confdefs.h <<\EOF
16478 #define CURSES_WACS_SYMBOLS 1
16483 echo "$as_me:16483: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16484 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16485 cat >conftest.$ac_ext <<_ACEOF
16486 #line 16486 "configure"
16487 #include "confdefs.h"
16489 #ifndef _XOPEN_SOURCE_EXTENDED
16490 #define _XOPEN_SOURCE_EXTENDED
16492 #include <${cf_cv_ncurses_header:-curses.h}>
16503 rm -f conftest.$ac_objext
16504 if { (eval echo "$as_me:16504: \"$ac_compile\"") >&5
16505 (eval $ac_compile) 2>&5
16507 echo "$as_me:16507: \$? = $ac_status" >&5
16508 (exit $ac_status); } &&
16509 { ac_try='test -s conftest.$ac_objext'
16510 { (eval echo "$as_me:16510: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16513 echo "$as_me:16513: \$? = $ac_status" >&5
16514 (exit $ac_status); }; }; then
16517 echo "$as_me: failed program was:" >&5
16518 cat conftest.$ac_ext >&5
16521 rm -f conftest.$ac_objext conftest.$ac_ext
16522 echo "$as_me:16522: result: $cf_result" >&5
16523 echo "${ECHO_T}$cf_result" >&6
16524 if test $cf_result = yes ; then
16526 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16528 cat >>confdefs.h <<EOF
16529 #define $cf_result 1
16534 cat >>confdefs.h <<EOF
16535 #define attr_t long
16540 if test "$cf_enable_widec" = yes; then
16542 # This is needed on Tru64 5.0 to declare mbstate_t
16543 echo "$as_me:16543: checking if we must include wchar.h to declare mbstate_t" >&5
16544 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
16545 if test "${cf_cv_mbstate_t+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16549 cat >conftest.$ac_ext <<_ACEOF
16550 #line 16550 "configure"
16551 #include "confdefs.h"
16553 #include <stdlib.h>
16554 #include <stdarg.h>
16556 #ifdef HAVE_LIBUTF8_H
16557 #include <libutf8.h>
16567 rm -f conftest.$ac_objext
16568 if { (eval echo "$as_me:16568: \"$ac_compile\"") >&5
16569 (eval $ac_compile) 2>&5
16571 echo "$as_me:16571: \$? = $ac_status" >&5
16572 (exit $ac_status); } &&
16573 { ac_try='test -s conftest.$ac_objext'
16574 { (eval echo "$as_me:16574: \"$ac_try\"") >&5
16575 (eval $ac_try) 2>&5
16577 echo "$as_me:16577: \$? = $ac_status" >&5
16578 (exit $ac_status); }; }; then
16581 echo "$as_me: failed program was:" >&5
16582 cat conftest.$ac_ext >&5
16583 cat >conftest.$ac_ext <<_ACEOF
16584 #line 16584 "configure"
16585 #include "confdefs.h"
16587 #include <stdlib.h>
16588 #include <stdarg.h>
16591 #ifdef HAVE_LIBUTF8_H
16592 #include <libutf8.h>
16602 rm -f conftest.$ac_objext
16603 if { (eval echo "$as_me:16603: \"$ac_compile\"") >&5
16604 (eval $ac_compile) 2>&5
16606 echo "$as_me:16606: \$? = $ac_status" >&5
16607 (exit $ac_status); } &&
16608 { ac_try='test -s conftest.$ac_objext'
16609 { (eval echo "$as_me:16609: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16612 echo "$as_me:16612: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 cf_cv_mbstate_t=yes
16616 echo "$as_me: failed program was:" >&5
16617 cat conftest.$ac_ext >&5
16618 cf_cv_mbstate_t=unknown
16620 rm -f conftest.$ac_objext conftest.$ac_ext
16622 rm -f conftest.$ac_objext conftest.$ac_ext
16624 echo "$as_me:16624: result: $cf_cv_mbstate_t" >&5
16625 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
16627 if test "$cf_cv_mbstate_t" = yes ; then
16629 cat >>confdefs.h <<\EOF
16630 #define NEED_WCHAR_H 1
16636 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
16637 if test "$cf_cv_mbstate_t" = unknown ; then
16638 NCURSES_MBSTATE_T=1
16641 # if we find mbstate_t in either place, use substitution to provide a fallback.
16642 if test "$cf_cv_mbstate_t" != unknown ; then
16643 NCURSES_OK_MBSTATE_T=1
16646 # This is needed on Tru64 5.0 to declare wchar_t
16647 echo "$as_me:16647: checking if we must include wchar.h to declare wchar_t" >&5
16648 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
16649 if test "${cf_cv_wchar_t+set}" = set; then
16650 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 cat >conftest.$ac_ext <<_ACEOF
16654 #line 16654 "configure"
16655 #include "confdefs.h"
16657 #include <stdlib.h>
16658 #include <stdarg.h>
16660 #ifdef HAVE_LIBUTF8_H
16661 #include <libutf8.h>
16671 rm -f conftest.$ac_objext
16672 if { (eval echo "$as_me:16672: \"$ac_compile\"") >&5
16673 (eval $ac_compile) 2>&5
16675 echo "$as_me:16675: \$? = $ac_status" >&5
16676 (exit $ac_status); } &&
16677 { ac_try='test -s conftest.$ac_objext'
16678 { (eval echo "$as_me:16678: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16681 echo "$as_me:16681: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16685 echo "$as_me: failed program was:" >&5
16686 cat conftest.$ac_ext >&5
16687 cat >conftest.$ac_ext <<_ACEOF
16688 #line 16688 "configure"
16689 #include "confdefs.h"
16691 #include <stdlib.h>
16692 #include <stdarg.h>
16695 #ifdef HAVE_LIBUTF8_H
16696 #include <libutf8.h>
16706 rm -f conftest.$ac_objext
16707 if { (eval echo "$as_me:16707: \"$ac_compile\"") >&5
16708 (eval $ac_compile) 2>&5
16710 echo "$as_me:16710: \$? = $ac_status" >&5
16711 (exit $ac_status); } &&
16712 { ac_try='test -s conftest.$ac_objext'
16713 { (eval echo "$as_me:16713: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16716 echo "$as_me:16716: \$? = $ac_status" >&5
16717 (exit $ac_status); }; }; then
16720 echo "$as_me: failed program was:" >&5
16721 cat conftest.$ac_ext >&5
16722 cf_cv_wchar_t=unknown
16724 rm -f conftest.$ac_objext conftest.$ac_ext
16726 rm -f conftest.$ac_objext conftest.$ac_ext
16728 echo "$as_me:16728: result: $cf_cv_wchar_t" >&5
16729 echo "${ECHO_T}$cf_cv_wchar_t" >&6
16731 if test "$cf_cv_wchar_t" = yes ; then
16733 cat >>confdefs.h <<\EOF
16734 #define NEED_WCHAR_H 1
16740 # if we do not find wchar_t in either place, use substitution to provide a fallback.
16741 if test "$cf_cv_wchar_t" = unknown ; then
16745 # if we find wchar_t in either place, use substitution to provide a fallback.
16746 if test "$cf_cv_wchar_t" != unknown ; then
16747 NCURSES_OK_WCHAR_T=1
16750 # This is needed on Tru64 5.0 to declare wint_t
16751 echo "$as_me:16751: checking if we must include wchar.h to declare wint_t" >&5
16752 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
16753 if test "${cf_cv_wint_t+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16757 cat >conftest.$ac_ext <<_ACEOF
16758 #line 16758 "configure"
16759 #include "confdefs.h"
16761 #include <stdlib.h>
16762 #include <stdarg.h>
16764 #ifdef HAVE_LIBUTF8_H
16765 #include <libutf8.h>
16775 rm -f conftest.$ac_objext
16776 if { (eval echo "$as_me:16776: \"$ac_compile\"") >&5
16777 (eval $ac_compile) 2>&5
16779 echo "$as_me:16779: \$? = $ac_status" >&5
16780 (exit $ac_status); } &&
16781 { ac_try='test -s conftest.$ac_objext'
16782 { (eval echo "$as_me:16782: \"$ac_try\"") >&5
16783 (eval $ac_try) 2>&5
16785 echo "$as_me:16785: \$? = $ac_status" >&5
16786 (exit $ac_status); }; }; then
16789 echo "$as_me: failed program was:" >&5
16790 cat conftest.$ac_ext >&5
16791 cat >conftest.$ac_ext <<_ACEOF
16792 #line 16792 "configure"
16793 #include "confdefs.h"
16795 #include <stdlib.h>
16796 #include <stdarg.h>
16799 #ifdef HAVE_LIBUTF8_H
16800 #include <libutf8.h>
16810 rm -f conftest.$ac_objext
16811 if { (eval echo "$as_me:16811: \"$ac_compile\"") >&5
16812 (eval $ac_compile) 2>&5
16814 echo "$as_me:16814: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try='test -s conftest.$ac_objext'
16817 { (eval echo "$as_me:16817: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16820 echo "$as_me:16820: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16824 echo "$as_me: failed program was:" >&5
16825 cat conftest.$ac_ext >&5
16826 cf_cv_wint_t=unknown
16828 rm -f conftest.$ac_objext conftest.$ac_ext
16830 rm -f conftest.$ac_objext conftest.$ac_ext
16832 echo "$as_me:16832: result: $cf_cv_wint_t" >&5
16833 echo "${ECHO_T}$cf_cv_wint_t" >&6
16835 if test "$cf_cv_wint_t" = yes ; then
16837 cat >>confdefs.h <<\EOF
16838 #define NEED_WCHAR_H 1
16844 # if we do not find wint_t in either place, use substitution to provide a fallback.
16845 if test "$cf_cv_wint_t" = unknown ; then
16849 # if we find wint_t in either place, use substitution to provide a fallback.
16850 if test "$cf_cv_wint_t" != unknown ; then
16851 NCURSES_OK_WINT_T=1
16854 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
16856 echo "$as_me:16856: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16857 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16858 cat >conftest.$ac_ext <<_ACEOF
16859 #line 16859 "configure"
16860 #include "confdefs.h"
16862 #ifndef _XOPEN_SOURCE_EXTENDED
16863 #define _XOPEN_SOURCE_EXTENDED
16865 #include <${cf_cv_ncurses_header:-curses.h}>
16876 rm -f conftest.$ac_objext
16877 if { (eval echo "$as_me:16877: \"$ac_compile\"") >&5
16878 (eval $ac_compile) 2>&5
16880 echo "$as_me:16880: \$? = $ac_status" >&5
16881 (exit $ac_status); } &&
16882 { ac_try='test -s conftest.$ac_objext'
16883 { (eval echo "$as_me:16883: \"$ac_try\"") >&5
16884 (eval $ac_try) 2>&5
16886 echo "$as_me:16886: \$? = $ac_status" >&5
16887 (exit $ac_status); }; }; then
16890 echo "$as_me: failed program was:" >&5
16891 cat conftest.$ac_ext >&5
16894 rm -f conftest.$ac_objext conftest.$ac_ext
16895 echo "$as_me:16895: result: $cf_result" >&5
16896 echo "${ECHO_T}$cf_result" >&6
16897 if test $cf_result = yes ; then
16899 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16901 cat >>confdefs.h <<EOF
16902 #define $cf_result 1
16907 cat >>confdefs.h <<EOF
16908 #define mbstate_t long
16915 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
16917 echo "$as_me:16917: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16918 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16919 cat >conftest.$ac_ext <<_ACEOF
16920 #line 16920 "configure"
16921 #include "confdefs.h"
16923 #ifndef _XOPEN_SOURCE_EXTENDED
16924 #define _XOPEN_SOURCE_EXTENDED
16926 #include <${cf_cv_ncurses_header:-curses.h}>
16937 rm -f conftest.$ac_objext
16938 if { (eval echo "$as_me:16938: \"$ac_compile\"") >&5
16939 (eval $ac_compile) 2>&5
16941 echo "$as_me:16941: \$? = $ac_status" >&5
16942 (exit $ac_status); } &&
16943 { ac_try='test -s conftest.$ac_objext'
16944 { (eval echo "$as_me:16944: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16947 echo "$as_me:16947: \$? = $ac_status" >&5
16948 (exit $ac_status); }; }; then
16951 echo "$as_me: failed program was:" >&5
16952 cat conftest.$ac_ext >&5
16955 rm -f conftest.$ac_objext conftest.$ac_ext
16956 echo "$as_me:16956: result: $cf_result" >&5
16957 echo "${ECHO_T}$cf_result" >&6
16958 if test $cf_result = yes ; then
16960 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16962 cat >>confdefs.h <<EOF
16963 #define $cf_result 1
16968 cat >>confdefs.h <<EOF
16969 #define wchar_t long
16976 if test "$NCURSES_OK_WINT_T" = 0 ; then
16978 echo "$as_me:16978: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16979 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16980 cat >conftest.$ac_ext <<_ACEOF
16981 #line 16981 "configure"
16982 #include "confdefs.h"
16984 #ifndef _XOPEN_SOURCE_EXTENDED
16985 #define _XOPEN_SOURCE_EXTENDED
16987 #include <${cf_cv_ncurses_header:-curses.h}>
16998 rm -f conftest.$ac_objext
16999 if { (eval echo "$as_me:16999: \"$ac_compile\"") >&5
17000 (eval $ac_compile) 2>&5
17002 echo "$as_me:17002: \$? = $ac_status" >&5
17003 (exit $ac_status); } &&
17004 { ac_try='test -s conftest.$ac_objext'
17005 { (eval echo "$as_me:17005: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17008 echo "$as_me:17008: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17012 echo "$as_me: failed program was:" >&5
17013 cat conftest.$ac_ext >&5
17016 rm -f conftest.$ac_objext conftest.$ac_ext
17017 echo "$as_me:17017: result: $cf_result" >&5
17018 echo "${ECHO_T}$cf_result" >&6
17019 if test $cf_result = yes ; then
17021 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17023 cat >>confdefs.h <<EOF
17024 #define $cf_result 1
17029 cat >>confdefs.h <<EOF
17030 #define wint_t long
17038 for cf_data in ospeed
17040 echo "$as_me:17040: checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
17041 echo $ECHO_N "checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
17043 cat >conftest.$ac_ext <<_ACEOF
17044 #line 17044 "configure"
17045 #include "confdefs.h"
17047 #ifdef HAVE_XCURSES
17048 #include <xcurses.h>
17049 char * XCursesProgramName = "test";
17051 #include <${cf_cv_ncurses_header:-curses.h}>
17052 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17053 #include <ncursesw/term.h>
17054 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17055 #include <ncurses/term.h>
17056 #elif defined(HAVE_TERM_H)
17065 void *foo = &($cf_data)
17071 rm -f conftest.$ac_objext
17072 if { (eval echo "$as_me:17072: \"$ac_compile\"") >&5
17073 (eval $ac_compile) 2>&5
17075 echo "$as_me:17075: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
17077 { ac_try='test -s conftest.$ac_objext'
17078 { (eval echo "$as_me:17078: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17081 echo "$as_me:17081: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
17086 echo "$as_me: failed program was:" >&5
17087 cat conftest.$ac_ext >&5
17090 rm -f conftest.$ac_objext conftest.$ac_ext
17091 echo "$as_me:17091: result: $cf_result" >&5
17092 echo "${ECHO_T}$cf_result" >&6
17094 if test $cf_result = yes ; then
17096 cf_result=`echo "have_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17098 cat >>confdefs.h <<EOF
17099 #define $cf_result 1
17103 echo "$as_me:17103: checking for data $cf_data in library" >&5
17104 echo $ECHO_N "checking for data $cf_data in library... $ECHO_C" >&6
17105 # BSD linkers insist on making weak linkage, but resolve at runtime.
17106 if test "$cross_compiling" = yes; then
17109 cat >conftest.$ac_ext <<_ACEOF
17110 #line 17110 "configure"
17111 #include "confdefs.h"
17113 #ifdef HAVE_XCURSES
17114 #include <xcurses.h>
17115 char * XCursesProgramName = "test";
17117 #include <${cf_cv_ncurses_header:-curses.h}>
17118 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17119 #include <ncursesw/term.h>
17120 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17121 #include <ncurses/term.h>
17122 #elif defined(HAVE_TERM_H)
17127 extern char $cf_data;
17133 void *foo = &($cf_data);
17134 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17135 ${cf_cv_main_return:-return}(foo == 0);
17142 rm -f conftest.$ac_objext conftest$ac_exeext
17143 if { (eval echo "$as_me:17143: \"$ac_link\"") >&5
17144 (eval $ac_link) 2>&5
17146 echo "$as_me:17146: \$? = $ac_status" >&5
17147 (exit $ac_status); } &&
17148 { ac_try='test -s conftest$ac_exeext'
17149 { (eval echo "$as_me:17149: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17152 echo "$as_me:17152: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
17156 echo "$as_me: failed program was:" >&5
17157 cat conftest.$ac_ext >&5
17160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17163 cat >conftest.$ac_ext <<_ACEOF
17164 #line 17164 "configure"
17165 #include "confdefs.h"
17167 #ifdef HAVE_XCURSES
17168 #include <xcurses.h>
17169 char * XCursesProgramName = "test";
17171 #include <${cf_cv_ncurses_header:-curses.h}>
17172 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17173 #include <ncursesw/term.h>
17174 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17175 #include <ncurses/term.h>
17176 #elif defined(HAVE_TERM_H)
17181 extern char $cf_data;
17184 void *foo = &($cf_data);
17185 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17186 ${cf_cv_main_return:-return}(foo == 0);
17189 rm -f conftest$ac_exeext
17190 if { (eval echo "$as_me:17190: \"$ac_link\"") >&5
17191 (eval $ac_link) 2>&5
17193 echo "$as_me:17193: \$? = $ac_status" >&5
17194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17195 { (eval echo "$as_me:17195: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17198 echo "$as_me:17198: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17203 echo "$as_me: program exited with status $ac_status" >&5
17204 echo "$as_me: failed program was:" >&5
17205 cat conftest.$ac_ext >&5
17208 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17210 echo "$as_me:17210: result: $cf_result" >&5
17211 echo "${ECHO_T}$cf_result" >&6
17212 if test $cf_result = yes ; then
17214 cf_result=`echo "decl_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17216 cat >>confdefs.h <<EOF
17217 #define $cf_result 1
17220 # do not exit loop here, since we prefer system's declarations
17225 for cf_data in boolnames
17227 echo "$as_me:17227: checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
17228 echo $ECHO_N "checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
17230 cat >conftest.$ac_ext <<_ACEOF
17231 #line 17231 "configure"
17232 #include "confdefs.h"
17234 #ifdef HAVE_XCURSES
17235 #include <xcurses.h>
17236 char * XCursesProgramName = "test";
17238 #include <${cf_cv_ncurses_header:-curses.h}>
17239 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17240 #include <ncursesw/term.h>
17241 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17242 #include <ncurses/term.h>
17243 #elif defined(HAVE_TERM_H)
17252 void *foo = &($cf_data)
17258 rm -f conftest.$ac_objext
17259 if { (eval echo "$as_me:17259: \"$ac_compile\"") >&5
17260 (eval $ac_compile) 2>&5
17262 echo "$as_me:17262: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
17264 { ac_try='test -s conftest.$ac_objext'
17265 { (eval echo "$as_me:17265: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17268 echo "$as_me:17268: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17273 echo "$as_me: failed program was:" >&5
17274 cat conftest.$ac_ext >&5
17277 rm -f conftest.$ac_objext conftest.$ac_ext
17278 echo "$as_me:17278: result: $cf_result" >&5
17279 echo "${ECHO_T}$cf_result" >&6
17281 if test $cf_result = yes ; then
17283 cf_result=`echo "have_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17285 cat >>confdefs.h <<EOF
17286 #define $cf_result 1
17290 echo "$as_me:17290: checking for data $cf_data in library" >&5
17291 echo $ECHO_N "checking for data $cf_data in library... $ECHO_C" >&6
17292 # BSD linkers insist on making weak linkage, but resolve at runtime.
17293 if test "$cross_compiling" = yes; then
17296 cat >conftest.$ac_ext <<_ACEOF
17297 #line 17297 "configure"
17298 #include "confdefs.h"
17300 #ifdef HAVE_XCURSES
17301 #include <xcurses.h>
17302 char * XCursesProgramName = "test";
17304 #include <${cf_cv_ncurses_header:-curses.h}>
17305 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17306 #include <ncursesw/term.h>
17307 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17308 #include <ncurses/term.h>
17309 #elif defined(HAVE_TERM_H)
17314 extern char $cf_data;
17320 void *foo = &($cf_data);
17321 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17322 ${cf_cv_main_return:-return}(foo == 0);
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (eval echo "$as_me:17330: \"$ac_link\"") >&5
17331 (eval $ac_link) 2>&5
17333 echo "$as_me:17333: \$? = $ac_status" >&5
17334 (exit $ac_status); } &&
17335 { ac_try='test -s conftest$ac_exeext'
17336 { (eval echo "$as_me:17336: \"$ac_try\"") >&5
17337 (eval $ac_try) 2>&5
17339 echo "$as_me:17339: \$? = $ac_status" >&5
17340 (exit $ac_status); }; }; then
17343 echo "$as_me: failed program was:" >&5
17344 cat conftest.$ac_ext >&5
17347 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17350 cat >conftest.$ac_ext <<_ACEOF
17351 #line 17351 "configure"
17352 #include "confdefs.h"
17354 #ifdef HAVE_XCURSES
17355 #include <xcurses.h>
17356 char * XCursesProgramName = "test";
17358 #include <${cf_cv_ncurses_header:-curses.h}>
17359 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17360 #include <ncursesw/term.h>
17361 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17362 #include <ncurses/term.h>
17363 #elif defined(HAVE_TERM_H)
17368 extern char $cf_data;
17371 void *foo = &($cf_data);
17372 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17373 ${cf_cv_main_return:-return}(foo == 0);
17376 rm -f conftest$ac_exeext
17377 if { (eval echo "$as_me:17377: \"$ac_link\"") >&5
17378 (eval $ac_link) 2>&5
17380 echo "$as_me:17380: \$? = $ac_status" >&5
17381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17382 { (eval echo "$as_me:17382: \"$ac_try\"") >&5
17383 (eval $ac_try) 2>&5
17385 echo "$as_me:17385: \$? = $ac_status" >&5
17386 (exit $ac_status); }; }; then
17390 echo "$as_me: program exited with status $ac_status" >&5
17391 echo "$as_me: failed program was:" >&5
17392 cat conftest.$ac_ext >&5
17395 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17397 echo "$as_me:17397: result: $cf_result" >&5
17398 echo "${ECHO_T}$cf_result" >&6
17399 if test $cf_result = yes ; then
17401 cf_result=`echo "decl_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17403 cat >>confdefs.h <<EOF
17404 #define $cf_result 1
17407 # do not exit loop here, since we prefer system's declarations
17412 for cf_data in boolfnames
17414 echo "$as_me:17414: checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
17415 echo $ECHO_N "checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
17417 cat >conftest.$ac_ext <<_ACEOF
17418 #line 17418 "configure"
17419 #include "confdefs.h"
17421 #ifdef HAVE_XCURSES
17422 #include <xcurses.h>
17423 char * XCursesProgramName = "test";
17425 #include <${cf_cv_ncurses_header:-curses.h}>
17426 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17427 #include <ncursesw/term.h>
17428 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17429 #include <ncurses/term.h>
17430 #elif defined(HAVE_TERM_H)
17439 void *foo = &($cf_data)
17445 rm -f conftest.$ac_objext
17446 if { (eval echo "$as_me:17446: \"$ac_compile\"") >&5
17447 (eval $ac_compile) 2>&5
17449 echo "$as_me:17449: \$? = $ac_status" >&5
17450 (exit $ac_status); } &&
17451 { ac_try='test -s conftest.$ac_objext'
17452 { (eval echo "$as_me:17452: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17455 echo "$as_me:17455: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17460 echo "$as_me: failed program was:" >&5
17461 cat conftest.$ac_ext >&5
17464 rm -f conftest.$ac_objext conftest.$ac_ext
17465 echo "$as_me:17465: result: $cf_result" >&5
17466 echo "${ECHO_T}$cf_result" >&6
17468 if test $cf_result = yes ; then
17470 cf_result=`echo "have_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17472 cat >>confdefs.h <<EOF
17473 #define $cf_result 1
17477 echo "$as_me:17477: checking for data $cf_data in library" >&5
17478 echo $ECHO_N "checking for data $cf_data in library... $ECHO_C" >&6
17479 # BSD linkers insist on making weak linkage, but resolve at runtime.
17480 if test "$cross_compiling" = yes; then
17483 cat >conftest.$ac_ext <<_ACEOF
17484 #line 17484 "configure"
17485 #include "confdefs.h"
17487 #ifdef HAVE_XCURSES
17488 #include <xcurses.h>
17489 char * XCursesProgramName = "test";
17491 #include <${cf_cv_ncurses_header:-curses.h}>
17492 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17493 #include <ncursesw/term.h>
17494 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17495 #include <ncurses/term.h>
17496 #elif defined(HAVE_TERM_H)
17501 extern char $cf_data;
17507 void *foo = &($cf_data);
17508 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17509 ${cf_cv_main_return:-return}(foo == 0);
17516 rm -f conftest.$ac_objext conftest$ac_exeext
17517 if { (eval echo "$as_me:17517: \"$ac_link\"") >&5
17518 (eval $ac_link) 2>&5
17520 echo "$as_me:17520: \$? = $ac_status" >&5
17521 (exit $ac_status); } &&
17522 { ac_try='test -s conftest$ac_exeext'
17523 { (eval echo "$as_me:17523: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17526 echo "$as_me:17526: \$? = $ac_status" >&5
17527 (exit $ac_status); }; }; then
17530 echo "$as_me: failed program was:" >&5
17531 cat conftest.$ac_ext >&5
17534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17537 cat >conftest.$ac_ext <<_ACEOF
17538 #line 17538 "configure"
17539 #include "confdefs.h"
17541 #ifdef HAVE_XCURSES
17542 #include <xcurses.h>
17543 char * XCursesProgramName = "test";
17545 #include <${cf_cv_ncurses_header:-curses.h}>
17546 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17547 #include <ncursesw/term.h>
17548 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17549 #include <ncurses/term.h>
17550 #elif defined(HAVE_TERM_H)
17555 extern char $cf_data;
17558 void *foo = &($cf_data);
17559 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17560 ${cf_cv_main_return:-return}(foo == 0);
17563 rm -f conftest$ac_exeext
17564 if { (eval echo "$as_me:17564: \"$ac_link\"") >&5
17565 (eval $ac_link) 2>&5
17567 echo "$as_me:17567: \$? = $ac_status" >&5
17568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17569 { (eval echo "$as_me:17569: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17572 echo "$as_me:17572: \$? = $ac_status" >&5
17573 (exit $ac_status); }; }; then
17577 echo "$as_me: program exited with status $ac_status" >&5
17578 echo "$as_me: failed program was:" >&5
17579 cat conftest.$ac_ext >&5
17582 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17584 echo "$as_me:17584: result: $cf_result" >&5
17585 echo "${ECHO_T}$cf_result" >&6
17586 if test $cf_result = yes ; then
17588 cf_result=`echo "decl_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17590 cat >>confdefs.h <<EOF
17591 #define $cf_result 1
17594 # do not exit loop here, since we prefer system's declarations
17599 for cf_data in ttytype
17601 echo "$as_me:17601: checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
17602 echo $ECHO_N "checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
17604 cat >conftest.$ac_ext <<_ACEOF
17605 #line 17605 "configure"
17606 #include "confdefs.h"
17608 #ifdef HAVE_XCURSES
17609 #include <xcurses.h>
17610 char * XCursesProgramName = "test";
17612 #include <${cf_cv_ncurses_header:-curses.h}>
17613 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17614 #include <ncursesw/term.h>
17615 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17616 #include <ncurses/term.h>
17617 #elif defined(HAVE_TERM_H)
17626 void *foo = &($cf_data)
17632 rm -f conftest.$ac_objext
17633 if { (eval echo "$as_me:17633: \"$ac_compile\"") >&5
17634 (eval $ac_compile) 2>&5
17636 echo "$as_me:17636: \$? = $ac_status" >&5
17637 (exit $ac_status); } &&
17638 { ac_try='test -s conftest.$ac_objext'
17639 { (eval echo "$as_me:17639: \"$ac_try\"") >&5
17640 (eval $ac_try) 2>&5
17642 echo "$as_me:17642: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17647 echo "$as_me: failed program was:" >&5
17648 cat conftest.$ac_ext >&5
17651 rm -f conftest.$ac_objext conftest.$ac_ext
17652 echo "$as_me:17652: result: $cf_result" >&5
17653 echo "${ECHO_T}$cf_result" >&6
17655 if test $cf_result = yes ; then
17657 cf_result=`echo "have_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17659 cat >>confdefs.h <<EOF
17660 #define $cf_result 1
17664 echo "$as_me:17664: checking for data $cf_data in library" >&5
17665 echo $ECHO_N "checking for data $cf_data in library... $ECHO_C" >&6
17666 # BSD linkers insist on making weak linkage, but resolve at runtime.
17667 if test "$cross_compiling" = yes; then
17670 cat >conftest.$ac_ext <<_ACEOF
17671 #line 17671 "configure"
17672 #include "confdefs.h"
17674 #ifdef HAVE_XCURSES
17675 #include <xcurses.h>
17676 char * XCursesProgramName = "test";
17678 #include <${cf_cv_ncurses_header:-curses.h}>
17679 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17680 #include <ncursesw/term.h>
17681 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17682 #include <ncurses/term.h>
17683 #elif defined(HAVE_TERM_H)
17688 extern char $cf_data;
17694 void *foo = &($cf_data);
17695 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17696 ${cf_cv_main_return:-return}(foo == 0);
17703 rm -f conftest.$ac_objext conftest$ac_exeext
17704 if { (eval echo "$as_me:17704: \"$ac_link\"") >&5
17705 (eval $ac_link) 2>&5
17707 echo "$as_me:17707: \$? = $ac_status" >&5
17708 (exit $ac_status); } &&
17709 { ac_try='test -s conftest$ac_exeext'
17710 { (eval echo "$as_me:17710: \"$ac_try\"") >&5
17711 (eval $ac_try) 2>&5
17713 echo "$as_me:17713: \$? = $ac_status" >&5
17714 (exit $ac_status); }; }; then
17717 echo "$as_me: failed program was:" >&5
17718 cat conftest.$ac_ext >&5
17721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17724 cat >conftest.$ac_ext <<_ACEOF
17725 #line 17725 "configure"
17726 #include "confdefs.h"
17728 #ifdef HAVE_XCURSES
17729 #include <xcurses.h>
17730 char * XCursesProgramName = "test";
17732 #include <${cf_cv_ncurses_header:-curses.h}>
17733 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17734 #include <ncursesw/term.h>
17735 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17736 #include <ncurses/term.h>
17737 #elif defined(HAVE_TERM_H)
17742 extern char $cf_data;
17745 void *foo = &($cf_data);
17746 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17747 ${cf_cv_main_return:-return}(foo == 0);
17750 rm -f conftest$ac_exeext
17751 if { (eval echo "$as_me:17751: \"$ac_link\"") >&5
17752 (eval $ac_link) 2>&5
17754 echo "$as_me:17754: \$? = $ac_status" >&5
17755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17756 { (eval echo "$as_me:17756: \"$ac_try\"") >&5
17757 (eval $ac_try) 2>&5
17759 echo "$as_me:17759: \$? = $ac_status" >&5
17760 (exit $ac_status); }; }; then
17764 echo "$as_me: program exited with status $ac_status" >&5
17765 echo "$as_me: failed program was:" >&5
17766 cat conftest.$ac_ext >&5
17769 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17771 echo "$as_me:17771: result: $cf_result" >&5
17772 echo "${ECHO_T}$cf_result" >&6
17773 if test $cf_result = yes ; then
17775 cf_result=`echo "decl_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17777 cat >>confdefs.h <<EOF
17778 #define $cf_result 1
17781 # do not exit loop here, since we prefer system's declarations
17786 if ( test "$GCC" = yes || test "$GXX" = yes )
17788 echo "$as_me:17788: checking if you want to turn on gcc warnings" >&5
17789 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
17791 # Check whether --enable-warnings or --disable-warnings was given.
17792 if test "${enable_warnings+set}" = set; then
17793 enableval="$enable_warnings"
17794 test "$enableval" != yes && enableval=no
17795 if test "$enableval" != "no" ; then
17805 echo "$as_me:17805: result: $with_warnings" >&5
17806 echo "${ECHO_T}$with_warnings" >&6
17807 if test "$with_warnings" = "yes"
17810 if test "$GCC" = yes
17812 cat > conftest.i <<EOF
17814 #define GCC_PRINTF 0
17817 #define GCC_SCANF 0
17819 #ifndef GCC_NORETURN
17820 #define GCC_NORETURN /* nothing */
17823 #define GCC_UNUSED /* nothing */
17826 if test "$GCC" = yes
17828 { echo "$as_me:17828: checking for $CC __attribute__ directives..." >&5
17829 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17830 cat > conftest.$ac_ext <<EOF
17831 #line 17831 "${as_me:-configure}"
17832 #include "confdefs.h"
17833 #include "conftest.h"
17834 #include "conftest.i"
17836 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17838 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17841 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17843 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17845 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17846 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
17847 extern void foo(void) GCC_NORETURN;
17848 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
17850 cf_printf_attribute=no
17851 cf_scanf_attribute=no
17852 for cf_attribute in scanf printf unused noreturn
17855 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17857 cf_directive="__attribute__(($cf_attribute))"
17858 echo "checking for $CC $cf_directive" 1>&5
17860 case $cf_attribute in
17862 cf_printf_attribute=yes
17863 cat >conftest.h <<EOF
17864 #define GCC_$cf_ATTRIBUTE 1
17868 cf_scanf_attribute=yes
17869 cat >conftest.h <<EOF
17870 #define GCC_$cf_ATTRIBUTE 1
17874 cat >conftest.h <<EOF
17875 #define GCC_$cf_ATTRIBUTE $cf_directive
17880 if { (eval echo "$as_me:17880: \"$ac_compile\"") >&5
17881 (eval $ac_compile) 2>&5
17883 echo "$as_me:17883: \$? = $ac_status" >&5
17884 (exit $ac_status); }; then
17885 test -n "$verbose" && echo "$as_me:17885: result: ... $cf_attribute" >&5
17886 echo "${ECHO_T}... $cf_attribute" >&6
17887 cat conftest.h >>confdefs.h
17888 case $cf_attribute in
17891 cat >>confdefs.h <<EOF
17892 #define GCC_NORETURN $cf_directive
17897 cf_value='/* nothing */'
17898 if test "$cf_printf_attribute" != no ; then
17899 cf_value='__attribute__((format(printf,fmt,var)))'
17901 cat >>confdefs.h <<\EOF
17902 #define GCC_PRINTF 1
17907 cat >>confdefs.h <<EOF
17908 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17913 cf_value='/* nothing */'
17914 if test "$cf_scanf_attribute" != no ; then
17915 cf_value='__attribute__((format(scanf,fmt,var)))'
17917 cat >>confdefs.h <<\EOF
17918 #define GCC_SCANF 1
17923 cat >>confdefs.h <<EOF
17924 #define GCC_SCANFLIKE(fmt,var) $cf_value
17930 cat >>confdefs.h <<EOF
17931 #define GCC_UNUSED $cf_directive
17939 fgrep define conftest.i >>confdefs.h
17946 if test "$GCC" = yes ; then
17949 echo "$as_me:17949: checking if this is really Intel C compiler" >&5
17950 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
17951 cf_save_CFLAGS="$CFLAGS"
17952 CFLAGS="$CFLAGS -no-gcc"
17953 cat >conftest.$ac_ext <<_ACEOF
17954 #line 17954 "configure"
17955 #include "confdefs.h"
17961 #ifdef __INTEL_COMPILER
17970 rm -f conftest.$ac_objext
17971 if { (eval echo "$as_me:17971: \"$ac_compile\"") >&5
17972 (eval $ac_compile) 2>&5
17974 echo "$as_me:17974: \$? = $ac_status" >&5
17975 (exit $ac_status); } &&
17976 { ac_try='test -s conftest.$ac_objext'
17977 { (eval echo "$as_me:17977: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17980 echo "$as_me:17980: \$? = $ac_status" >&5
17981 (exit $ac_status); }; }; then
17983 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
17986 echo "$as_me: failed program was:" >&5
17987 cat conftest.$ac_ext >&5
17989 rm -f conftest.$ac_objext conftest.$ac_ext
17990 CFLAGS="$cf_save_CFLAGS"
17991 echo "$as_me:17991: result: $INTEL_COMPILER" >&5
17992 echo "${ECHO_T}$INTEL_COMPILER" >&6
17999 if test "$GCC" = yes ; then
18000 echo "$as_me:18000: checking if this is really Clang C compiler" >&5
18001 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
18002 cf_save_CFLAGS="$CFLAGS"
18003 CFLAGS="$CFLAGS -Qunused-arguments"
18004 cat >conftest.$ac_ext <<_ACEOF
18005 #line 18005 "configure"
18006 #include "confdefs.h"
18021 rm -f conftest.$ac_objext
18022 if { (eval echo "$as_me:18022: \"$ac_compile\"") >&5
18023 (eval $ac_compile) 2>&5
18025 echo "$as_me:18025: \$? = $ac_status" >&5
18026 (exit $ac_status); } &&
18027 { ac_try='test -s conftest.$ac_objext'
18028 { (eval echo "$as_me:18028: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18031 echo "$as_me:18031: \$? = $ac_status" >&5
18032 (exit $ac_status); }; }; then
18034 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
18037 echo "$as_me: failed program was:" >&5
18038 cat conftest.$ac_ext >&5
18040 rm -f conftest.$ac_objext conftest.$ac_ext
18041 CFLAGS="$cf_save_CFLAGS"
18042 echo "$as_me:18042: result: $CLANG_COMPILER" >&5
18043 echo "${ECHO_T}$CLANG_COMPILER" >&6
18046 cat > conftest.$ac_ext <<EOF
18047 #line 18047 "${as_me:-configure}"
18048 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
18051 if test "$INTEL_COMPILER" = yes
18053 # The "-wdXXX" options suppress warnings:
18054 # remark #1419: external declaration in primary source file
18055 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
18056 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
18057 # remark #193: zero used for undefined preprocessing identifier
18058 # remark #593: variable "curs_sb_left_arrow" was set but never used
18059 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
18060 # remark #869: parameter "tw" was never referenced
18061 # remark #981: operands are evaluated in unspecified order
18062 # warning #279: controlling expression is constant
18064 { echo "$as_me:18064: checking for $CC warning options..." >&5
18065 echo "$as_me: checking for $CC warning options..." >&6;}
18066 cf_save_CFLAGS="$CFLAGS"
18067 EXTRA_CFLAGS="-Wall"
18079 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
18080 if { (eval echo "$as_me:18080: \"$ac_compile\"") >&5
18081 (eval $ac_compile) 2>&5
18083 echo "$as_me:18083: \$? = $ac_status" >&5
18084 (exit $ac_status); }; then
18085 test -n "$verbose" && echo "$as_me:18085: result: ... -$cf_opt" >&5
18086 echo "${ECHO_T}... -$cf_opt" >&6
18087 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
18090 CFLAGS="$cf_save_CFLAGS"
18092 elif test "$GCC" = yes
18094 { echo "$as_me:18094: checking for $CC warning options..." >&5
18095 echo "$as_me: checking for $CC warning options..." >&6;}
18096 cf_save_CFLAGS="$CFLAGS"
18099 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
18100 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
18101 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
18102 for cf_opt in W Wall \
18103 Wbad-function-cast \
18106 Wdeclaration-after-statement \
18109 Wmissing-declarations \
18110 Wmissing-prototypes \
18114 Wstrict-prototypes \
18115 Wundef $cf_gcc_warnings $cf_warn_CONST
18117 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
18118 if { (eval echo "$as_me:18118: \"$ac_compile\"") >&5
18119 (eval $ac_compile) 2>&5
18121 echo "$as_me:18121: \$? = $ac_status" >&5
18122 (exit $ac_status); }; then
18123 test -n "$verbose" && echo "$as_me:18123: result: ... -$cf_opt" >&5
18124 echo "${ECHO_T}... -$cf_opt" >&6
18127 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
18130 case $GCC_VERSION in
18132 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
18134 echo "${as_me:-configure}:18134: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
18140 case $GCC_VERSION in
18142 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
18144 echo "${as_me:-configure}:18144: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
18150 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
18153 CFLAGS="$cf_save_CFLAGS"
18160 echo "$as_me:18160: checking if you want to use dmalloc for testing" >&5
18161 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
18163 # Check whether --with-dmalloc or --without-dmalloc was given.
18164 if test "${with_dmalloc+set}" = set; then
18165 withval="$with_dmalloc"
18167 cat >>confdefs.h <<EOF
18168 #define USE_DMALLOC 1
18171 : ${with_cflags:=-g}
18172 : ${with_no_leaks:=yes}
18177 echo "$as_me:18177: result: ${with_dmalloc:-no}" >&5
18178 echo "${ECHO_T}${with_dmalloc:-no}" >&6
18180 case .$with_cflags in
18190 cf_new_extra_cppflags=
18192 for cf_add_cflags in -g
18194 case $cf_fix_cppflags in
18196 case $cf_add_cflags in
18197 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18198 case $cf_add_cflags in
18200 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18202 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18203 && test -z "${cf_tst_cflags}" \
18204 && cf_fix_cppflags=yes
18206 if test $cf_fix_cppflags = yes ; then
18208 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18209 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18212 elif test "${cf_tst_cflags}" = "\"'" ; then
18214 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18215 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18221 case "$CPPFLAGS" in
18225 case $cf_add_cflags in
18227 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18229 CPPFLAGS=`echo "$CPPFLAGS" | \
18230 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18231 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18236 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18237 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18244 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18245 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18252 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18253 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18255 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18257 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18258 && test -z "${cf_tst_cflags}" \
18259 && cf_fix_cppflags=no
18264 if test -n "$cf_new_cflags" ; then
18266 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18267 CFLAGS="${CFLAGS}$cf_new_cflags"
18271 if test -n "$cf_new_cppflags" ; then
18273 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18274 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18278 if test -n "$cf_new_extra_cppflags" ; then
18280 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18281 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18290 if test "$with_dmalloc" = yes ; then
18291 echo "$as_me:18291: checking for dmalloc.h" >&5
18292 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
18293 if test "${ac_cv_header_dmalloc_h+set}" = set; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18296 cat >conftest.$ac_ext <<_ACEOF
18297 #line 18297 "configure"
18298 #include "confdefs.h"
18299 #include <dmalloc.h>
18301 if { (eval echo "$as_me:18301: \"$ac_cpp conftest.$ac_ext\"") >&5
18302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18304 egrep -v '^ *\+' conftest.er1 >conftest.err
18306 cat conftest.err >&5
18307 echo "$as_me:18307: \$? = $ac_status" >&5
18308 (exit $ac_status); } >/dev/null; then
18309 if test -s conftest.err; then
18310 ac_cpp_err=$ac_c_preproc_warn_flag
18317 if test -z "$ac_cpp_err"; then
18318 ac_cv_header_dmalloc_h=yes
18320 echo "$as_me: failed program was:" >&5
18321 cat conftest.$ac_ext >&5
18322 ac_cv_header_dmalloc_h=no
18324 rm -f conftest.err conftest.$ac_ext
18326 echo "$as_me:18326: result: $ac_cv_header_dmalloc_h" >&5
18327 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
18328 if test $ac_cv_header_dmalloc_h = yes; then
18330 echo "$as_me:18330: checking for dmalloc_debug in -ldmalloc" >&5
18331 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
18332 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
18333 echo $ECHO_N "(cached) $ECHO_C" >&6
18335 ac_check_lib_save_LIBS=$LIBS
18336 LIBS="-ldmalloc $LIBS"
18337 cat >conftest.$ac_ext <<_ACEOF
18338 #line 18338 "configure"
18339 #include "confdefs.h"
18341 /* Override any gcc2 internal prototype to avoid an error. */
18345 /* We use char because int might match the return type of a gcc2
18346 builtin and then its argument prototype would still apply. */
18347 char dmalloc_debug ();
18356 rm -f conftest.$ac_objext conftest$ac_exeext
18357 if { (eval echo "$as_me:18357: \"$ac_link\"") >&5
18358 (eval $ac_link) 2>&5
18360 echo "$as_me:18360: \$? = $ac_status" >&5
18361 (exit $ac_status); } &&
18362 { ac_try='test -s conftest$ac_exeext'
18363 { (eval echo "$as_me:18363: \"$ac_try\"") >&5
18364 (eval $ac_try) 2>&5
18366 echo "$as_me:18366: \$? = $ac_status" >&5
18367 (exit $ac_status); }; }; then
18368 ac_cv_lib_dmalloc_dmalloc_debug=yes
18370 echo "$as_me: failed program was:" >&5
18371 cat conftest.$ac_ext >&5
18372 ac_cv_lib_dmalloc_dmalloc_debug=no
18374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18375 LIBS=$ac_check_lib_save_LIBS
18377 echo "$as_me:18377: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
18378 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
18379 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
18380 cat >>confdefs.h <<EOF
18381 #define HAVE_LIBDMALLOC 1
18384 LIBS="-ldmalloc $LIBS"
18392 echo "$as_me:18392: checking if you want to use dbmalloc for testing" >&5
18393 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
18395 # Check whether --with-dbmalloc or --without-dbmalloc was given.
18396 if test "${with_dbmalloc+set}" = set; then
18397 withval="$with_dbmalloc"
18399 cat >>confdefs.h <<EOF
18400 #define USE_DBMALLOC 1
18403 : ${with_cflags:=-g}
18404 : ${with_no_leaks:=yes}
18409 echo "$as_me:18409: result: ${with_dbmalloc:-no}" >&5
18410 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
18412 case .$with_cflags in
18422 cf_new_extra_cppflags=
18424 for cf_add_cflags in -g
18426 case $cf_fix_cppflags in
18428 case $cf_add_cflags in
18429 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18430 case $cf_add_cflags in
18432 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18434 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18435 && test -z "${cf_tst_cflags}" \
18436 && cf_fix_cppflags=yes
18438 if test $cf_fix_cppflags = yes ; then
18440 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18441 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18444 elif test "${cf_tst_cflags}" = "\"'" ; then
18446 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18447 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18453 case "$CPPFLAGS" in
18457 case $cf_add_cflags in
18459 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18461 CPPFLAGS=`echo "$CPPFLAGS" | \
18462 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18463 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18468 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18469 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18476 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18477 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18484 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18485 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18487 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18489 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18490 && test -z "${cf_tst_cflags}" \
18491 && cf_fix_cppflags=no
18496 if test -n "$cf_new_cflags" ; then
18498 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18499 CFLAGS="${CFLAGS}$cf_new_cflags"
18503 if test -n "$cf_new_cppflags" ; then
18505 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18506 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18510 if test -n "$cf_new_extra_cppflags" ; then
18512 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18513 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18522 if test "$with_dbmalloc" = yes ; then
18523 echo "$as_me:18523: checking for dbmalloc.h" >&5
18524 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
18525 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
18526 echo $ECHO_N "(cached) $ECHO_C" >&6
18528 cat >conftest.$ac_ext <<_ACEOF
18529 #line 18529 "configure"
18530 #include "confdefs.h"
18531 #include <dbmalloc.h>
18533 if { (eval echo "$as_me:18533: \"$ac_cpp conftest.$ac_ext\"") >&5
18534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18536 egrep -v '^ *\+' conftest.er1 >conftest.err
18538 cat conftest.err >&5
18539 echo "$as_me:18539: \$? = $ac_status" >&5
18540 (exit $ac_status); } >/dev/null; then
18541 if test -s conftest.err; then
18542 ac_cpp_err=$ac_c_preproc_warn_flag
18549 if test -z "$ac_cpp_err"; then
18550 ac_cv_header_dbmalloc_h=yes
18552 echo "$as_me: failed program was:" >&5
18553 cat conftest.$ac_ext >&5
18554 ac_cv_header_dbmalloc_h=no
18556 rm -f conftest.err conftest.$ac_ext
18558 echo "$as_me:18558: result: $ac_cv_header_dbmalloc_h" >&5
18559 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
18560 if test $ac_cv_header_dbmalloc_h = yes; then
18562 echo "$as_me:18562: checking for debug_malloc in -ldbmalloc" >&5
18563 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
18564 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
18567 ac_check_lib_save_LIBS=$LIBS
18568 LIBS="-ldbmalloc $LIBS"
18569 cat >conftest.$ac_ext <<_ACEOF
18570 #line 18570 "configure"
18571 #include "confdefs.h"
18573 /* Override any gcc2 internal prototype to avoid an error. */
18577 /* We use char because int might match the return type of a gcc2
18578 builtin and then its argument prototype would still apply. */
18579 char debug_malloc ();
18588 rm -f conftest.$ac_objext conftest$ac_exeext
18589 if { (eval echo "$as_me:18589: \"$ac_link\"") >&5
18590 (eval $ac_link) 2>&5
18592 echo "$as_me:18592: \$? = $ac_status" >&5
18593 (exit $ac_status); } &&
18594 { ac_try='test -s conftest$ac_exeext'
18595 { (eval echo "$as_me:18595: \"$ac_try\"") >&5
18596 (eval $ac_try) 2>&5
18598 echo "$as_me:18598: \$? = $ac_status" >&5
18599 (exit $ac_status); }; }; then
18600 ac_cv_lib_dbmalloc_debug_malloc=yes
18602 echo "$as_me: failed program was:" >&5
18603 cat conftest.$ac_ext >&5
18604 ac_cv_lib_dbmalloc_debug_malloc=no
18606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18607 LIBS=$ac_check_lib_save_LIBS
18609 echo "$as_me:18609: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
18610 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
18611 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
18612 cat >>confdefs.h <<EOF
18613 #define HAVE_LIBDBMALLOC 1
18616 LIBS="-ldbmalloc $LIBS"
18624 echo "$as_me:18624: checking if you want to use valgrind for testing" >&5
18625 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
18627 # Check whether --with-valgrind or --without-valgrind was given.
18628 if test "${with_valgrind+set}" = set; then
18629 withval="$with_valgrind"
18631 cat >>confdefs.h <<EOF
18632 #define USE_VALGRIND 1
18635 : ${with_cflags:=-g}
18636 : ${with_no_leaks:=yes}
18641 echo "$as_me:18641: result: ${with_valgrind:-no}" >&5
18642 echo "${ECHO_T}${with_valgrind:-no}" >&6
18644 case .$with_cflags in
18654 cf_new_extra_cppflags=
18656 for cf_add_cflags in -g
18658 case $cf_fix_cppflags in
18660 case $cf_add_cflags in
18661 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18662 case $cf_add_cflags in
18664 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18666 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18667 && test -z "${cf_tst_cflags}" \
18668 && cf_fix_cppflags=yes
18670 if test $cf_fix_cppflags = yes ; then
18672 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18673 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18676 elif test "${cf_tst_cflags}" = "\"'" ; then
18678 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18679 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18685 case "$CPPFLAGS" in
18689 case $cf_add_cflags in
18691 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18693 CPPFLAGS=`echo "$CPPFLAGS" | \
18694 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18695 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18700 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18701 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18708 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18709 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18716 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18717 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18719 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18721 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18722 && test -z "${cf_tst_cflags}" \
18723 && cf_fix_cppflags=no
18728 if test -n "$cf_new_cflags" ; then
18730 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18731 CFLAGS="${CFLAGS}$cf_new_cflags"
18735 if test -n "$cf_new_cppflags" ; then
18737 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18738 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18742 if test -n "$cf_new_extra_cppflags" ; then
18744 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18745 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18754 echo "$as_me:18754: checking if you want to perform memory-leak testing" >&5
18755 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18757 # Check whether --enable-leaks or --disable-leaks was given.
18758 if test "${enable_leaks+set}" = set; then
18759 enableval="$enable_leaks"
18760 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18762 : ${with_no_leaks:=no}
18764 echo "$as_me:18764: result: $with_no_leaks" >&5
18765 echo "${ECHO_T}$with_no_leaks" >&6
18767 if test "$with_no_leaks" = yes ; then
18769 cat >>confdefs.h <<\EOF
18773 cat >>confdefs.h <<\EOF
18774 #define YY_NO_LEAKS 1
18780 echo "$as_me:18780: checking for an rpath option" >&5
18781 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
18782 case $cf_cv_system_name in
18784 if test "$GCC" = yes; then
18785 LD_RPATH_OPT="-Wl,-rpath,"
18787 LD_RPATH_OPT="-rpath "
18790 (linux*|gnu*|k*bsd*-gnu|freebsd*)
18791 LD_RPATH_OPT="-Wl,-rpath,"
18793 (openbsd[2-9].*|mirbsd*)
18794 LD_RPATH_OPT="-Wl,-rpath,"
18797 LD_RPATH_OPT="-rpath "
18800 LD_RPATH_OPT="-Wl,-rpath,"
18803 LD_RPATH_OPT="-rpath "
18811 echo "$as_me:18811: result: $LD_RPATH_OPT" >&5
18812 echo "${ECHO_T}$LD_RPATH_OPT" >&6
18814 case "x$LD_RPATH_OPT" in
18816 echo "$as_me:18816: checking if we need a space after rpath option" >&5
18817 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
18818 cf_save_LIBS="$LIBS"
18820 cf_add_libs="${LD_RPATH_OPT}$libdir"
18821 # Filter out duplicates - this happens with badly-designed ".pc" files...
18822 for cf_add_1lib in $LIBS
18824 for cf_add_2lib in $cf_add_libs
18826 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18832 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18834 LIBS="$cf_add_libs"
18836 cat >conftest.$ac_ext <<_ACEOF
18837 #line 18837 "configure"
18838 #include "confdefs.h"
18848 rm -f conftest.$ac_objext conftest$ac_exeext
18849 if { (eval echo "$as_me:18849: \"$ac_link\"") >&5
18850 (eval $ac_link) 2>&5
18852 echo "$as_me:18852: \$? = $ac_status" >&5
18853 (exit $ac_status); } &&
18854 { ac_try='test -s conftest$ac_exeext'
18855 { (eval echo "$as_me:18855: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18858 echo "$as_me:18858: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18862 echo "$as_me: failed program was:" >&5
18863 cat conftest.$ac_ext >&5
18866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18867 LIBS="$cf_save_LIBS"
18868 echo "$as_me:18868: result: $cf_rpath_space" >&5
18869 echo "${ECHO_T}$cf_rpath_space" >&6
18870 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
18874 echo "$as_me:18874: checking if rpath-hack should be disabled" >&5
18875 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
18877 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
18878 if test "${enable_rpath_hack+set}" = set; then
18879 enableval="$enable_rpath_hack"
18880 test "$enableval" != no && enableval=yes
18881 if test "$enableval" != "yes" ; then
18882 cf_disable_rpath_hack=yes
18884 cf_disable_rpath_hack=no
18888 cf_disable_rpath_hack=no
18891 echo "$as_me:18891: result: $cf_disable_rpath_hack" >&5
18892 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
18893 if test "$cf_disable_rpath_hack" = no ; then
18895 echo "$as_me:18895: checking for updated LDFLAGS" >&5
18896 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
18897 if test -n "$LD_RPATH_OPT" ; then
18898 echo "$as_me:18898: result: maybe" >&5
18899 echo "${ECHO_T}maybe" >&6
18903 # Extract the first word of "$ac_prog", so it can be a program name with args.
18904 set dummy $ac_prog; ac_word=$2
18905 echo "$as_me:18905: checking for $ac_word" >&5
18906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18907 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
18908 echo $ECHO_N "(cached) $ECHO_C" >&6
18910 if test -n "$cf_ldd_prog"; then
18911 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
18913 ac_save_IFS=$IFS; IFS=$ac_path_separator
18915 for ac_dir in $ac_dummy; do
18917 test -z "$ac_dir" && ac_dir=.
18918 $as_executable_p "$ac_dir/$ac_word" || continue
18919 ac_cv_prog_cf_ldd_prog="$ac_prog"
18920 echo "$as_me:18920: found $ac_dir/$ac_word" >&5
18926 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
18927 if test -n "$cf_ldd_prog"; then
18928 echo "$as_me:18928: result: $cf_ldd_prog" >&5
18929 echo "${ECHO_T}$cf_ldd_prog" >&6
18931 echo "$as_me:18931: result: no" >&5
18932 echo "${ECHO_T}no" >&6
18935 test -n "$cf_ldd_prog" && break
18937 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
18939 cf_rpath_list="/usr/lib /lib"
18940 if test "$cf_ldd_prog" != no
18944 cat >conftest.$ac_ext <<_ACEOF
18945 #line 18945 "configure"
18946 #include "confdefs.h"
18956 rm -f conftest.$ac_objext conftest$ac_exeext
18957 if { (eval echo "$as_me:18957: \"$ac_link\"") >&5
18958 (eval $ac_link) 2>&5
18960 echo "$as_me:18960: \$? = $ac_status" >&5
18961 (exit $ac_status); } &&
18962 { ac_try='test -s conftest$ac_exeext'
18963 { (eval echo "$as_me:18963: \"$ac_try\"") >&5
18964 (eval $ac_try) 2>&5
18966 echo "$as_me:18966: \$? = $ac_status" >&5
18967 (exit $ac_status); }; }; then
18968 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
18969 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
18971 echo "$as_me: failed program was:" >&5
18972 cat conftest.$ac_ext >&5
18974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18976 # If we passed the link-test, but get a "not found" on a given library,
18977 # this could be due to inept reconfiguration of gcc to make it only
18978 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
18979 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
18980 # /usr/local libraries.
18981 if test -n "$cf_rpath_oops"
18983 for cf_rpath_src in $cf_rpath_oops
18985 for cf_rpath_dir in \
18990 if test -f $cf_rpath_dir/lib/$cf_rpath_src
18992 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
18994 echo "${as_me:-configure}:18994: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
18996 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
19004 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
19006 echo "${as_me:-configure}:19006: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
19008 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
19010 echo "${as_me:-configure}:19010: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
19013 for cf_rpath_src in $LDFLAGS
19015 case $cf_rpath_src in
19018 # check if this refers to a directory which we will ignore
19020 if test -n "$cf_rpath_list"
19022 for cf_rpath_item in $cf_rpath_list
19024 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
19032 if test "$cf_rpath_skip" = no
19034 # transform the option
19035 if test "$LD_RPATH_OPT" = "-R " ; then
19036 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
19038 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
19041 # if we have not already added this, add it now
19042 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
19043 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
19045 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
19047 echo "${as_me:-configure}:19047: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
19049 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
19054 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
19056 LDFLAGS=$cf_rpath_dst
19058 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
19060 echo "${as_me:-configure}:19060: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
19062 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
19064 echo "${as_me:-configure}:19064: testing ...checking LIBS $LIBS ..." 1>&5
19067 for cf_rpath_src in $LIBS
19069 case $cf_rpath_src in
19072 # check if this refers to a directory which we will ignore
19074 if test -n "$cf_rpath_list"
19076 for cf_rpath_item in $cf_rpath_list
19078 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
19086 if test "$cf_rpath_skip" = no
19088 # transform the option
19089 if test "$LD_RPATH_OPT" = "-R " ; then
19090 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
19092 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
19095 # if we have not already added this, add it now
19096 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
19097 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
19099 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
19101 echo "${as_me:-configure}:19101: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
19103 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
19108 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
19112 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
19114 echo "${as_me:-configure}:19114: testing ...checked LIBS $LIBS ..." 1>&5
19116 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
19118 echo "${as_me:-configure}:19118: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
19121 echo "$as_me:19121: result: no" >&5
19122 echo "${ECHO_T}no" >&6
19130 ac_config_files="$ac_config_files Makefile"
19131 ac_config_commands="$ac_config_commands default"
19132 cat >confcache <<\_ACEOF
19133 # This file is a shell script that caches the results of configure
19134 # tests run on this system so they can be shared between configure
19135 # scripts and configure runs, see configure's option --config-cache.
19136 # It is not useful on other systems. If it contains results you don't
19137 # want to keep, you may remove or edit it.
19139 # config.status only pays attention to the cache file if you give it
19140 # the --recheck option to rerun configure.
19142 # `ac_cv_env_foo' variables (set or unset) will be overriden when
19143 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19144 # following values.
19148 # The following way of writing the cache mishandles newlines in values,
19149 # but we know of no workaround that is simple, portable, and efficient.
19150 # So, don't put newlines in cache variables' values.
19151 # Ultrix sh set writes to stderr and can't be redirected directly,
19152 # and sets the high bit in the cache file unless we assign to the vars.
19155 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19157 # `set' does not quote correctly, so add quotes (double-quote
19158 # substitution turns \\\\ into \\, and sed turns \\ into \).
19161 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19164 # `set' quotes correctly as required by POSIX, so do not add quotes.
19166 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19173 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19175 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19177 if cmp -s $cache_file confcache; then :; else
19178 if test -w $cache_file; then
19179 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19180 cat confcache >$cache_file
19182 echo "not updating unwritable cache $cache_file"
19187 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19188 # Let make expand exec_prefix.
19189 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19191 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19192 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19193 # trailing colons and then remove the whole line if VPATH becomes empty
19194 # (actually we leave an empty line to preserve line numbers).
19195 if test "x$srcdir" = x.; then
19196 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19197 s/:*\$(srcdir):*/:/;
19198 s/:*\${srcdir}:*/:/;
19200 s/^\([^=]*=[ ]*\):*/\1/;
19206 DEFS=-DHAVE_CONFIG_H
19208 : ${CONFIG_STATUS=./config.status}
19209 ac_clean_files_save=$ac_clean_files
19210 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19211 { echo "$as_me:19211: creating $CONFIG_STATUS" >&5
19212 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19213 cat >$CONFIG_STATUS <<_ACEOF
19215 # Generated automatically by configure.
19216 # Run this file to recreate the current configuration.
19217 # Compiler output produced by configure, useful for debugging
19218 # configure, is in config.log if it exists.
19221 SHELL=\${CONFIG_SHELL-$SHELL}
19222 ac_cs_invocation="\$0 \$@"
19226 cat >>$CONFIG_STATUS <<\_ACEOF
19227 # Be Bourne compatible
19228 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19231 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19235 # Name of the executable.
19236 as_me=`echo "$0" |sed 's,.*[\\/],,'`
19238 if expr a : '\(a\)' >/dev/null 2>&1; then
19244 rm -f conf$$ conf$$.exe conf$$.file
19246 if ln -s conf$$.file conf$$ 2>/dev/null; then
19247 # We could just check for DJGPP; but this test a) works b) is more generic
19248 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19249 if test -f conf$$.exe; then
19250 # Don't use ln at all; we don't have any links
19255 elif ln conf$$.file conf$$ 2>/dev/null; then
19260 rm -f conf$$ conf$$.exe conf$$.file
19262 as_executable_p="test -f"
19264 # Support unset when possible.
19265 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19272 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
19273 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
19274 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
19275 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
19276 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
19277 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
19278 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
19279 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
19282 # We need space, tab and new line, in precisely that order.
19288 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
19294 # Files that config.status was made for.
19295 if test -n "$ac_config_files"; then
19296 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19299 if test -n "$ac_config_headers"; then
19300 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19303 if test -n "$ac_config_links"; then
19304 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19307 if test -n "$ac_config_commands"; then
19308 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19311 cat >>$CONFIG_STATUS <<\EOF
19314 \`$as_me' instantiates files from templates according to the
19315 current configuration.
19317 Usage: $0 [OPTIONS] [FILE]...
19319 -h, --help print this help, then exit
19320 -V, --version print version number, then exit
19321 -d, --debug don't remove temporary files
19322 --recheck update $as_me by reconfiguring in the same conditions
19323 --file=FILE[:TEMPLATE]
19324 instantiate the configuration file FILE
19325 --header=FILE[:TEMPLATE]
19326 instantiate the configuration header FILE
19328 Configuration files:
19331 Configuration headers:
19334 Configuration commands:
19337 Report bugs to <dickey@invisible-island.net>."
19340 cat >>$CONFIG_STATUS <<EOF
19343 configured by $0, generated by GNU Autoconf 2.52.20170501,
19344 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19346 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19347 Free Software Foundation, Inc.
19348 This config.status script is free software; the Free Software Foundation
19349 gives unlimited permission to copy, distribute and modify it."
19354 cat >>$CONFIG_STATUS <<\EOF
19355 # If no file are specified by the user, then we need to provide default
19356 # value. By we need to know if files were specified by the user.
19362 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19363 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19365 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19369 *) # This is not an option, so the user has probably given explicit
19371 ac_need_defaults=false;;
19375 # Handling of the options.
19377 cat >>$CONFIG_STATUS <<EOF
19378 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19379 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19380 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19382 cat >>$CONFIG_STATUS <<\EOF
19383 --version | --vers* | -V )
19384 echo "$ac_cs_version"; exit 0 ;;
19386 # Conflict between --help and --header
19387 { { echo "$as_me:19387: error: ambiguous option: $1
19388 Try \`$0 --help' for more information." >&5
19389 echo "$as_me: error: ambiguous option: $1
19390 Try \`$0 --help' for more information." >&2;}
19391 { (exit 1); exit 1; }; };;
19392 --help | --hel | -h )
19393 echo "$ac_cs_usage"; exit 0 ;;
19394 --debug | --d* | -d )
19396 --file | --fil | --fi | --f )
19398 CONFIG_FILES="$CONFIG_FILES $1"
19399 ac_need_defaults=false;;
19400 --header | --heade | --head | --hea )
19402 CONFIG_HEADERS="$CONFIG_HEADERS $1"
19403 ac_need_defaults=false;;
19405 # This is an error.
19406 -*) { { echo "$as_me:19406: error: unrecognized option: $1
19407 Try \`$0 --help' for more information." >&5
19408 echo "$as_me: error: unrecognized option: $1
19409 Try \`$0 --help' for more information." >&2;}
19410 { (exit 1); exit 1; }; } ;;
19412 *) ac_config_targets="$ac_config_targets $1" ;;
19421 ## ----------------------- ##
19422 ## Running config.status. ##
19423 ## ----------------------- ##
19425 This file was extended by $as_me 2.52.20170501, executed with
19426 CONFIG_FILES = $CONFIG_FILES
19427 CONFIG_HEADERS = $CONFIG_HEADERS
19428 CONFIG_LINKS = $CONFIG_LINKS
19429 CONFIG_COMMANDS = $CONFIG_COMMANDS
19430 > $ac_cs_invocation
19431 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19436 cat >>$CONFIG_STATUS <<EOF
19438 # INIT-COMMANDS section.
19448 cat >>$CONFIG_STATUS <<\EOF
19449 for ac_config_target in $ac_config_targets
19451 case "$ac_config_target" in
19452 # Handling of arguments.
19453 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19454 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19455 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
19456 *) { { echo "$as_me:19456: error: invalid argument: $ac_config_target" >&5
19457 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19458 { (exit 1); exit 1; }; };;
19462 # If the user did not use the arguments to specify the items to instantiate,
19463 # then the envvar interface is used. Set only those that are not.
19464 # We use the long form for the default assignment because of an extremely
19465 # bizarre bug on SunOS 4.1.3.
19466 if $ac_need_defaults; then
19467 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19468 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19469 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19472 # Create a temporary directory, and hook for its removal unless debugging.
19475 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19476 trap '{ (exit 1); exit 1; }' 1 2 13 15
19479 # Create a (secure) tmp directory for tmp files.
19482 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
19483 test -n "$tmp" && test -d "$tmp"
19486 tmp=$TMPDIR/cs$$-$RANDOM
19487 (umask 077 && mkdir $tmp)
19490 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
19491 { (exit 1); exit 1; }
19496 cat >>$CONFIG_STATUS <<EOF
19499 # CONFIG_FILES section.
19502 # No need to generate the scripts if there are no CONFIG_FILES.
19503 # This happens for instance when ./config.status config.h
19504 if test -n "\$CONFIG_FILES"; then
19505 # Protect against being on the right side of a sed subst in config.status.
19506 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19507 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19508 s,@SHELL@,$SHELL,;t t
19509 s,@exec_prefix@,$exec_prefix,;t t
19510 s,@prefix@,$prefix,;t t
19511 s,@program_transform_name@,$program_transform_name,;t t
19512 s,@bindir@,$bindir,;t t
19513 s,@sbindir@,$sbindir,;t t
19514 s,@libexecdir@,$libexecdir,;t t
19515 s,@datarootdir@,$datarootdir,;t t
19516 s,@datadir@,$datadir,;t t
19517 s,@sysconfdir@,$sysconfdir,;t t
19518 s,@sharedstatedir@,$sharedstatedir,;t t
19519 s,@localstatedir@,$localstatedir,;t t
19520 s,@libdir@,$libdir,;t t
19521 s,@includedir@,$includedir,;t t
19522 s,@oldincludedir@,$oldincludedir,;t t
19523 s,@infodir@,$infodir,;t t
19524 s,@mandir@,$mandir,;t t
19525 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19526 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19527 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19528 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19529 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19530 s,@build_alias@,$build_alias,;t t
19531 s,@host_alias@,$host_alias,;t t
19532 s,@target_alias@,$target_alias,;t t
19533 s,@ECHO_C@,$ECHO_C,;t t
19534 s,@ECHO_N@,$ECHO_N,;t t
19535 s,@ECHO_T@,$ECHO_T,;t t
19536 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19537 s,@DEFS@,$DEFS,;t t
19538 s,@LIBS@,$LIBS,;t t
19539 s,@build@,$build,;t t
19540 s,@build_cpu@,$build_cpu,;t t
19541 s,@build_vendor@,$build_vendor,;t t
19542 s,@build_os@,$build_os,;t t
19543 s,@host@,$host,;t t
19544 s,@host_cpu@,$host_cpu,;t t
19545 s,@host_vendor@,$host_vendor,;t t
19546 s,@host_os@,$host_os,;t t
19547 s,@SET_MAKE@,$SET_MAKE,;t t
19549 s,@CFLAGS@,$CFLAGS,;t t
19550 s,@LDFLAGS@,$LDFLAGS,;t t
19551 s,@CPPFLAGS@,$CPPFLAGS,;t t
19552 s,@ac_ct_CC@,$ac_ct_CC,;t t
19553 s,@EXEEXT@,$EXEEXT,;t t
19554 s,@OBJEXT@,$OBJEXT,;t t
19555 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
19558 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19559 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19560 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19561 s,@LINT@,$LINT,;t t
19562 s,@LINT_OPTS@,$LINT_OPTS,;t t
19563 s,@CTAGS@,$CTAGS,;t t
19564 s,@ETAGS@,$ETAGS,;t t
19565 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
19566 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
19567 s,@MATH_LIB@,$MATH_LIB,;t t
19568 s,@top_builddir@,$top_builddir,;t t
19569 s,@CC_G_OPT@,$CC_G_OPT,;t t
19570 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
19571 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
19572 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
19573 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
19575 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
19576 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
19577 s,@LD_MODEL@,$LD_MODEL,;t t
19578 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
19579 s,@LIBTOOL@,$LIBTOOL,;t t
19580 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
19581 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
19582 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
19583 s,@LIB_LINK@,$LIB_LINK,;t t
19584 s,@LINK_TESTS@,$LINK_TESTS,;t t
19585 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19586 s,@PACKAGE@,$PACKAGE,;t t
19587 s,@PTHREAD@,$PTHREAD,;t t
19588 s,@TEST_ARGS@,$TEST_ARGS,;t t
19589 s,@TEST_DEPS@,$TEST_DEPS,;t t
19590 s,@TEST_LIBS@,$TEST_LIBS,;t t
19591 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
19592 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
19593 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
19594 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
19595 s,@includesubdir@,$includesubdir,;t t
19596 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19597 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
19598 s,@ECHO_LT@,$ECHO_LT,;t t
19599 s,@ECHO_LD@,$ECHO_LD,;t t
19600 s,@RULE_CC@,$RULE_CC,;t t
19601 s,@SHOW_CC@,$SHOW_CC,;t t
19602 s,@ECHO_CC@,$ECHO_CC,;t t
19603 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
19604 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
19605 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
19606 s,@X_CFLAGS@,$X_CFLAGS,;t t
19607 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19608 s,@X_LIBS@,$X_LIBS,;t t
19609 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19610 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
19611 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
19612 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
19613 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
19614 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
19619 cat >>$CONFIG_STATUS <<\EOF
19620 # Split the substitutions into bite-sized pieces for seds with
19621 # small command number limits, like on Digital OSF/1 and HP-UX.
19622 ac_max_sed_lines=48
19623 ac_sed_frag=1 # Number of current file.
19624 ac_beg=1 # First line for current file.
19625 ac_end=$ac_max_sed_lines # Line after last line for current file.
19628 while $ac_more_lines; do
19629 if test $ac_beg -gt 1; then
19630 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19632 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19634 if test ! -s $tmp/subs.frag; then
19635 ac_more_lines=false
19637 # The purpose of the label and of the branching condition is to
19638 # speed up the sed processing (if there are no `@' at all, there
19639 # is no need to browse any of the substitutions).
19640 # These are the two extra sed commands mentioned above.
19642 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19643 # It is possible to make a multiline substitution using escaped newlines.
19644 # Ensure that we do not split the substitution between script fragments.
19646 ac_END=`expr $ac_end + $ac_max_sed_lines`
19647 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
19648 if test -s $tmp/subs.next; then
19649 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
19650 if test ! -s $tmp/subs.edit; then
19651 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
19652 if test ! -s $tmp/subs.edit; then
19653 if test $ac_beg -gt 1; then
19654 ac_end=`expr $ac_end - 1`
19661 if test -z "$ac_sed_cmds"; then
19662 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19664 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19666 ac_sed_frag=`expr $ac_sed_frag + 1`
19668 ac_end=`expr $ac_end + $ac_max_sed_lines`
19671 if test -z "$ac_sed_cmds"; then
19674 fi # test -n "$CONFIG_FILES"
19677 cat >>$CONFIG_STATUS <<\EOF
19678 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19679 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19681 - | *:- | *:-:* ) # input from stdin
19683 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19684 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19685 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19686 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19687 * ) ac_file_in=$ac_file.in ;;
19690 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19691 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19692 X"$ac_file" : 'X\(//\)[^/]' \| \
19693 X"$ac_file" : 'X\(//\)$' \| \
19694 X"$ac_file" : 'X\(/\)' \| \
19695 . : '\(.\)' 2>/dev/null ||
19697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19699 /^X\(\/\/\)$/{ s//\1/; q; }
19700 /^X\(\/\).*/{ s//\1/; q; }
19702 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19703 { case "$ac_dir" in
19704 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19708 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19709 case $as_mkdir_dir in
19710 # Skip DOS drivespec
19711 ?:) as_incr_dir=$as_mkdir_dir ;;
19713 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19714 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19719 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
19720 # A "../" for each directory in $ac_dir_suffix.
19721 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
19723 ac_dir_suffix= ac_dots=
19728 if test -z "$ac_dots"; then
19731 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
19733 [\\/]* | ?:[\\/]* )
19734 ac_srcdir=$srcdir$ac_dir_suffix;
19735 ac_top_srcdir=$srcdir ;;
19736 *) # Relative path.
19737 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
19738 ac_top_srcdir=$ac_dots$srcdir ;;
19742 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19743 *) ac_INSTALL=$ac_dots$INSTALL ;;
19746 if test x"$ac_file" != x-; then
19747 { echo "$as_me:19747: creating $ac_file" >&5
19748 echo "$as_me: creating $ac_file" >&6;}
19751 # Let's still pretend it is `configure' which instantiates (i.e., don't
19752 # use $as_me), people would be surprised to read:
19753 # /* config.h. Generated automatically by config.status. */
19754 configure_input="Generated automatically from `echo $ac_file_in |
19755 sed 's,.*/,,'` by configure."
19757 # First look for the input files in the build tree, otherwise in the
19759 ac_file_inputs=`IFS=:
19760 for f in $ac_file_in; do
19762 -) echo $tmp/stdin ;;
19764 # Absolute (can't be DOS-style, as IFS=:)
19765 test -f "$f" || { { echo "$as_me:19765: error: cannot find input file: $f" >&5
19766 echo "$as_me: error: cannot find input file: $f" >&2;}
19767 { (exit 1); exit 1; }; }
19770 if test -f "$f"; then
19773 elif test -f "$srcdir/$f"; then
19778 { { echo "$as_me:19778: error: cannot find input file: $f" >&5
19779 echo "$as_me: error: cannot find input file: $f" >&2;}
19780 { (exit 1); exit 1; }; }
19783 done` || { (exit 1); exit 1; }
19785 cat >>$CONFIG_STATUS <<\EOF
19786 ac_warn_datarootdir=no
19787 if test x"$ac_file" != x-; then
19788 for ac_item in $ac_file_inputs
19790 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
19791 if test -n "$ac_seen"; then
19792 ac_used=`grep '@datarootdir@' $ac_item`
19793 if test -z "$ac_used"; then
19794 { echo "$as_me:19794: WARNING: datarootdir was used implicitly but not set:
19796 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
19798 ac_warn_datarootdir=yes
19801 ac_seen=`grep '${datarootdir}' $ac_item`
19802 if test -n "$ac_seen"; then
19803 { echo "$as_me:19803: WARNING: datarootdir was used explicitly but not set:
19805 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
19807 ac_warn_datarootdir=yes
19812 if test "x$ac_warn_datarootdir" = xyes; then
19813 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
19817 cat >>$CONFIG_STATUS <<EOF
19821 cat >>$CONFIG_STATUS <<\EOF
19823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19824 s,@configure_input@,$configure_input,;t t
19825 s,@srcdir@,$ac_srcdir,;t t
19826 s,@top_srcdir@,$ac_top_srcdir,;t t
19827 s,@INSTALL@,$ac_INSTALL,;t t
19828 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19830 if test x"$ac_file" != x-; then
19831 cp $tmp/out $ac_file
19833 for ac_name in prefix exec_prefix datarootdir
19835 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
19836 if test -n "$ac_seen"; then
19837 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
19838 if test -z "$ac_init"; then
19839 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
19840 { echo "$as_me:19840: WARNING: Variable $ac_name is used but was not set:
19842 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
19847 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
19848 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
19849 if test -s $tmp/out; then
19850 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
19851 { echo "$as_me:19851: WARNING: Some variables may not be substituted:
19853 echo "$as_me: WARNING: Some variables may not be substituted:
19863 cat >>$CONFIG_STATUS <<\EOF
19866 # CONFIG_HEADER section.
19869 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19870 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19872 # ac_d sets the value in "#define NAME VALUE" lines.
19873 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19874 ac_dB='[ ].*$,\1#\2'
19877 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19878 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19879 ac_iB='\([ ]\),\1#\2define\3'
19882 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19883 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19884 ac_uB='$,\1#\2define\3'
19888 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19889 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19891 - | *:- | *:-:* ) # input from stdin
19893 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19894 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19895 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19896 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19897 * ) ac_file_in=$ac_file.in ;;
19900 test x"$ac_file" != x- && { echo "$as_me:19900: creating $ac_file" >&5
19901 echo "$as_me: creating $ac_file" >&6;}
19903 # First look for the input files in the build tree, otherwise in the
19905 ac_file_inputs=`IFS=:
19906 for f in $ac_file_in; do
19908 -) echo $tmp/stdin ;;
19910 # Absolute (can't be DOS-style, as IFS=:)
19911 test -f "$f" || { { echo "$as_me:19911: error: cannot find input file: $f" >&5
19912 echo "$as_me: error: cannot find input file: $f" >&2;}
19913 { (exit 1); exit 1; }; }
19916 if test -f "$f"; then
19919 elif test -f "$srcdir/$f"; then
19924 { { echo "$as_me:19924: error: cannot find input file: $f" >&5
19925 echo "$as_me: error: cannot find input file: $f" >&2;}
19926 { (exit 1); exit 1; }; }
19929 done` || { (exit 1); exit 1; }
19930 # Remove the trailing spaces.
19931 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19935 # Transform confdefs.h into a list of #define's. We won't use it as a sed
19936 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
19937 # be either 'cat' or 'sort'.
19938 cat confdefs.h | uniq >conftest.vals
19940 # Break up conftest.vals because some shells have a limit on
19941 # the size of here documents, and old seds have small limits too.
19943 rm -f conftest.tail
19944 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
19945 while grep . conftest.vals >/dev/null
19947 # Write chunks of a limited-size here document to conftest.frag.
19948 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
19949 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
19950 echo 'CEOF' >> $CONFIG_STATUS
19951 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19952 rm -f conftest.vals
19953 mv conftest.tail conftest.vals
19955 rm -f conftest.vals
19957 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
19959 echo ' cat >> conftest.edit <<CEOF
19960 /@DEFS@/r conftest.frag
19963 sed -f conftest.edit $tmp/in > $tmp/out
19965 mv $tmp/out $tmp/in
19966 rm -f conftest.edit conftest.frag
19967 ' >> $CONFIG_STATUS
19969 cat >>$CONFIG_STATUS <<\EOF
19970 # Let's still pretend it is `configure' which instantiates (i.e., don't
19971 # use $as_me), people would be surprised to read:
19972 # /* config.h. Generated automatically by config.status. */
19973 if test x"$ac_file" = x-; then
19974 echo "/* Generated automatically by configure. */" >$tmp/config.h
19976 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
19978 cat $tmp/in >>$tmp/config.h
19980 if test x"$ac_file" != x-; then
19981 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19982 { echo "$as_me:19982: $ac_file is unchanged" >&5
19983 echo "$as_me: $ac_file is unchanged" >&6;}
19985 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19986 X"$ac_file" : 'X\(//\)[^/]' \| \
19987 X"$ac_file" : 'X\(//\)$' \| \
19988 X"$ac_file" : 'X\(/\)' \| \
19989 . : '\(.\)' 2>/dev/null ||
19991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19993 /^X\(\/\/\)$/{ s//\1/; q; }
19994 /^X\(\/\).*/{ s//\1/; q; }
19996 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19997 { case "$ac_dir" in
19998 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
20002 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
20003 case $as_mkdir_dir in
20004 # Skip DOS drivespec
20005 ?:) as_incr_dir=$as_mkdir_dir ;;
20007 as_incr_dir=$as_incr_dir/$as_mkdir_dir
20008 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
20015 mv $tmp/config.h $ac_file
20019 rm -f $tmp/config.h
20023 cat >>$CONFIG_STATUS <<\EOF
20025 # CONFIG_COMMANDS section.
20027 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20028 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20029 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20036 if test ! -d $srcdir/$cf_dir; then
20038 elif test -f $srcdir/$cf_dir/programs; then
20039 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
20043 cat >>Makefile <<TEST_EOF
20045 # These rules are generated so we do not rely on suffix rules, which do not
20046 # work consistently for different make-programs (the '\$(MODEL)/' confuses
20047 # some, and the '\$x' confuses others).
20050 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
20053 cat >>Makefile <<TEST_EOF
20055 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
20056 \$(srcdir)/test.priv.h \\
20059 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) \$(srcdir)/$N.c
20063 if test -f ../config.guess && test -f ../config.sub
20065 cat >>Makefile <<TEST_EOF
20067 # if we used CF_INHERIT for getting these files, we can remove them
20069 rm -f config.guess config.sub
20077 cat >>$CONFIG_STATUS <<\EOF
20079 { (exit 0); exit 0; }
20081 chmod +x $CONFIG_STATUS
20082 ac_clean_files=$ac_clean_files_save
20084 # configure is writing to config.log, and then calls config.status.
20085 # config.status does its own redirection, appending to config.log.
20086 # Unfortunately, on DOS this fails, as config.log is still kept open
20087 # by configure, so config.status won't be able to write to it; its
20088 # output is simply discarded. So we exec the FD to /dev/null,
20089 # effectively closing config.log, so it can be properly (re)opened and
20090 # appended to by config.status. When coming back to configure, we
20091 # need to make the FD available again.
20092 if test "$no_create" != yes; then
20095 $SHELL $CONFIG_STATUS || ac_cs_success=false
20097 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20098 # would make configure fail if this is the last instruction.
20099 $ac_cs_success || { (exit 1); exit 1; }