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
14788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14789 echo "$as_me:14789: checking for $ac_header" >&5
14790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 cat >conftest.$ac_ext <<_ACEOF
14795 #line 14795 "configure"
14796 #include "confdefs.h"
14797 #include <$ac_header>
14799 if { (eval echo "$as_me:14799: \"$ac_cpp conftest.$ac_ext\"") >&5
14800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14802 egrep -v '^ *\+' conftest.er1 >conftest.err
14804 cat conftest.err >&5
14805 echo "$as_me:14805: \$? = $ac_status" >&5
14806 (exit $ac_status); } >/dev/null; then
14807 if test -s conftest.err; then
14808 ac_cpp_err=$ac_c_preproc_warn_flag
14815 if test -z "$ac_cpp_err"; then
14816 eval "$as_ac_Header=yes"
14818 echo "$as_me: failed program was:" >&5
14819 cat conftest.$ac_ext >&5
14820 eval "$as_ac_Header=no"
14822 rm -f conftest.err conftest.$ac_ext
14824 echo "$as_me:14824: result: `eval echo '${'$as_ac_Header'}'`" >&5
14825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14827 cat >>confdefs.h <<EOF
14828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14834 for ac_header in unistd.h getopt.h
14836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14837 echo "$as_me:14837: checking for $ac_header" >&5
14838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 cat >conftest.$ac_ext <<_ACEOF
14843 #line 14843 "configure"
14844 #include "confdefs.h"
14845 #include <$ac_header>
14847 if { (eval echo "$as_me:14847: \"$ac_cpp conftest.$ac_ext\"") >&5
14848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14850 egrep -v '^ *\+' conftest.er1 >conftest.err
14852 cat conftest.err >&5
14853 echo "$as_me:14853: \$? = $ac_status" >&5
14854 (exit $ac_status); } >/dev/null; then
14855 if test -s conftest.err; then
14856 ac_cpp_err=$ac_c_preproc_warn_flag
14863 if test -z "$ac_cpp_err"; then
14864 eval "$as_ac_Header=yes"
14866 echo "$as_me: failed program was:" >&5
14867 cat conftest.$ac_ext >&5
14868 eval "$as_ac_Header=no"
14870 rm -f conftest.err conftest.$ac_ext
14872 echo "$as_me:14872: result: `eval echo '${'$as_ac_Header'}'`" >&5
14873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14875 cat >>confdefs.h <<EOF
14876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14882 echo "$as_me:14882: checking for header declaring getopt variables" >&5
14883 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
14884 if test "${cf_cv_getopt_header+set}" = set; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14888 cf_cv_getopt_header=none
14889 for cf_header in stdio.h stdlib.h unistd.h getopt.h
14891 cat >conftest.$ac_ext <<_ACEOF
14892 #line 14892 "configure"
14893 #include "confdefs.h"
14895 #include <$cf_header>
14899 int x = optind; char *y = optarg
14904 rm -f conftest.$ac_objext
14905 if { (eval echo "$as_me:14905: \"$ac_compile\"") >&5
14906 (eval $ac_compile) 2>&5
14908 echo "$as_me:14908: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -s conftest.$ac_objext'
14911 { (eval echo "$as_me:14911: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14914 echo "$as_me:14914: \$? = $ac_status" >&5
14915 (exit $ac_status); }; }; then
14916 cf_cv_getopt_header=$cf_header
14919 echo "$as_me: failed program was:" >&5
14920 cat conftest.$ac_ext >&5
14922 rm -f conftest.$ac_objext conftest.$ac_ext
14926 echo "$as_me:14926: result: $cf_cv_getopt_header" >&5
14927 echo "${ECHO_T}$cf_cv_getopt_header" >&6
14928 if test $cf_cv_getopt_header != none ; then
14930 cat >>confdefs.h <<\EOF
14931 #define HAVE_GETOPT_HEADER 1
14935 if test $cf_cv_getopt_header = getopt.h ; then
14937 cat >>confdefs.h <<\EOF
14938 #define NEED_GETOPT_H 1
14950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14951 echo "$as_me:14951: checking for $ac_func" >&5
14952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14953 if eval "test \"\${$as_ac_var+set}\" = set"; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14956 cat >conftest.$ac_ext <<_ACEOF
14957 #line 14957 "configure"
14958 #include "confdefs.h"
14959 /* System header to define __stub macros and hopefully few prototypes,
14960 which can conflict with char $ac_func (); below. */
14961 #include <assert.h>
14962 /* Override any gcc2 internal prototype to avoid an error. */
14966 /* We use char because int might match the return type of a gcc2
14967 builtin and then its argument prototype would still apply. */
14974 /* The GNU C library defines this for functions which it implements
14975 to always fail with ENOSYS. Some functions are actually named
14976 something starting with __ and the normal name is an alias. */
14977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14980 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14987 rm -f conftest.$ac_objext conftest$ac_exeext
14988 if { (eval echo "$as_me:14988: \"$ac_link\"") >&5
14989 (eval $ac_link) 2>&5
14991 echo "$as_me:14991: \$? = $ac_status" >&5
14992 (exit $ac_status); } &&
14993 { ac_try='test -s conftest$ac_exeext'
14994 { (eval echo "$as_me:14994: \"$ac_try\"") >&5
14995 (eval $ac_try) 2>&5
14997 echo "$as_me:14997: \$? = $ac_status" >&5
14998 (exit $ac_status); }; }; then
14999 eval "$as_ac_var=yes"
15001 echo "$as_me: failed program was:" >&5
15002 cat conftest.$ac_ext >&5
15003 eval "$as_ac_var=no"
15005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15007 echo "$as_me:15007: result: `eval echo '${'$as_ac_var'}'`" >&5
15008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15009 if test `eval echo '${'$as_ac_var'}'` = yes; then
15010 cat >>confdefs.h <<EOF
15011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15017 if test "x$ac_cv_func_getopt" = xno; then
15018 { { echo "$as_me:15018: error: getopt is required for building programs" >&5
15019 echo "$as_me: error: getopt is required for building programs" >&2;}
15020 { (exit 1); exit 1; }; }
15023 if test "$cf_enable_widec" = yes; then
15036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15037 echo "$as_me:15037: checking for $ac_func" >&5
15038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15039 if eval "test \"\${$as_ac_var+set}\" = set"; then
15040 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 cat >conftest.$ac_ext <<_ACEOF
15043 #line 15043 "configure"
15044 #include "confdefs.h"
15045 /* System header to define __stub macros and hopefully few prototypes,
15046 which can conflict with char $ac_func (); below. */
15047 #include <assert.h>
15048 /* Override any gcc2 internal prototype to avoid an error. */
15052 /* We use char because int might match the return type of a gcc2
15053 builtin and then its argument prototype would still apply. */
15060 /* The GNU C library defines this for functions which it implements
15061 to always fail with ENOSYS. Some functions are actually named
15062 something starting with __ and the normal name is an alias. */
15063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15066 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15073 rm -f conftest.$ac_objext conftest$ac_exeext
15074 if { (eval echo "$as_me:15074: \"$ac_link\"") >&5
15075 (eval $ac_link) 2>&5
15077 echo "$as_me:15077: \$? = $ac_status" >&5
15078 (exit $ac_status); } &&
15079 { ac_try='test -s conftest$ac_exeext'
15080 { (eval echo "$as_me:15080: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15083 echo "$as_me:15083: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15085 eval "$as_ac_var=yes"
15087 echo "$as_me: failed program was:" >&5
15088 cat conftest.$ac_ext >&5
15089 eval "$as_ac_var=no"
15091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15093 echo "$as_me:15093: result: `eval echo '${'$as_ac_var'}'`" >&5
15094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15095 if test `eval echo '${'$as_ac_var'}'` = yes; then
15096 cat >>confdefs.h <<EOF
15097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15105 echo "$as_me:15105: checking definition to turn on extended curses functions" >&5
15106 echo $ECHO_N "checking definition to turn on extended curses functions... $ECHO_C" >&6
15107 if test "${cf_cv_need_xopen_extension+set}" = set; then
15108 echo $ECHO_N "(cached) $ECHO_C" >&6
15111 cf_cv_need_xopen_extension=unknown
15112 cat >conftest.$ac_ext <<_ACEOF
15113 #line 15113 "configure"
15114 #include "confdefs.h"
15116 #include <stdlib.h>
15117 #include <${cf_cv_ncurses_header:-curses.h}>
15122 #if defined(NCURSES_VERSION_PATCH)
15123 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
15127 #ifdef NCURSES_VERSION
15129 int check2 = curs_set((int)sizeof(check));
15131 long x = winnstr(stdscr, "", 0);
15133 getbegyx(stdscr, y1, x1)
15138 rm -f conftest.$ac_objext conftest$ac_exeext
15139 if { (eval echo "$as_me:15139: \"$ac_link\"") >&5
15140 (eval $ac_link) 2>&5
15142 echo "$as_me:15142: \$? = $ac_status" >&5
15143 (exit $ac_status); } &&
15144 { ac_try='test -s conftest$ac_exeext'
15145 { (eval echo "$as_me:15145: \"$ac_try\"") >&5
15146 (eval $ac_try) 2>&5
15148 echo "$as_me:15148: \$? = $ac_status" >&5
15149 (exit $ac_status); }; }; then
15150 cf_cv_need_xopen_extension=none
15152 echo "$as_me: failed program was:" >&5
15153 cat conftest.$ac_ext >&5
15155 for cf_try_xopen_extension in _XOPEN_SOURCE_EXTENDED NCURSES_WIDECHAR
15157 cat >conftest.$ac_ext <<_ACEOF
15158 #line 15158 "configure"
15159 #include "confdefs.h"
15161 #define $cf_try_xopen_extension 1
15162 #include <stdlib.h>
15163 #include <${cf_cv_ncurses_header:-curses.h}>
15168 #ifdef NCURSES_VERSION
15170 int check2 = curs_set((int)sizeof(check));
15172 long x = winnstr(stdscr, "", 0);
15174 getbegyx(stdscr, y1, x1)
15179 rm -f conftest.$ac_objext conftest$ac_exeext
15180 if { (eval echo "$as_me:15180: \"$ac_link\"") >&5
15181 (eval $ac_link) 2>&5
15183 echo "$as_me:15183: \$? = $ac_status" >&5
15184 (exit $ac_status); } &&
15185 { ac_try='test -s conftest$ac_exeext'
15186 { (eval echo "$as_me:15186: \"$ac_try\"") >&5
15187 (eval $ac_try) 2>&5
15189 echo "$as_me:15189: \$? = $ac_status" >&5
15190 (exit $ac_status); }; }; then
15191 cf_cv_need_xopen_extension=$cf_try_xopen_extension; break
15193 echo "$as_me: failed program was:" >&5
15194 cat conftest.$ac_ext >&5
15196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15203 echo "$as_me:15203: result: $cf_cv_need_xopen_extension" >&5
15204 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
15206 case $cf_cv_need_xopen_extension in
15208 CPPFLAGS="$CPPFLAGS -D$cf_cv_need_xopen_extension"
15212 echo "$as_me:15212: checking for term.h" >&5
15213 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
15214 if test "${cf_cv_term_header+set}" = set; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
15219 # for <term.h> if we do not find the variant.
15221 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
15223 case ${cf_cv_ncurses_header:-curses.h} in
15225 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
15226 cf_header_list="$cf_header_item $cf_header_list"
15230 for cf_header in $cf_header_list
15232 cat >conftest.$ac_ext <<_ACEOF
15233 #line 15233 "configure"
15234 #include "confdefs.h"
15236 #include <${cf_cv_ncurses_header:-curses.h}>
15237 #include <${cf_header}>
15246 rm -f conftest.$ac_objext
15247 if { (eval echo "$as_me:15247: \"$ac_compile\"") >&5
15248 (eval $ac_compile) 2>&5
15250 echo "$as_me:15250: \$? = $ac_status" >&5
15251 (exit $ac_status); } &&
15252 { ac_try='test -s conftest.$ac_objext'
15253 { (eval echo "$as_me:15253: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15256 echo "$as_me:15256: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 cf_cv_term_header=$cf_header
15261 echo "$as_me: failed program was:" >&5
15262 cat conftest.$ac_ext >&5
15263 cf_cv_term_header=no
15265 rm -f conftest.$ac_objext conftest.$ac_ext
15268 case $cf_cv_term_header in
15270 # If curses is ncurses, some packagers still mess it up by trying to make
15271 # us use GNU termcap. This handles the most common case.
15272 for cf_header in ncurses/term.h ncursesw/term.h
15274 cat >conftest.$ac_ext <<_ACEOF
15275 #line 15275 "configure"
15276 #include "confdefs.h"
15278 #include <${cf_cv_ncurses_header:-curses.h}>
15279 #ifdef NCURSES_VERSION
15280 #include <${cf_header}>
15292 rm -f conftest.$ac_objext
15293 if { (eval echo "$as_me:15293: \"$ac_compile\"") >&5
15294 (eval $ac_compile) 2>&5
15296 echo "$as_me:15296: \$? = $ac_status" >&5
15297 (exit $ac_status); } &&
15298 { ac_try='test -s conftest.$ac_objext'
15299 { (eval echo "$as_me:15299: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15302 echo "$as_me:15302: \$? = $ac_status" >&5
15303 (exit $ac_status); }; }; then
15304 cf_cv_term_header=$cf_header
15307 echo "$as_me: failed program was:" >&5
15308 cat conftest.$ac_ext >&5
15309 cf_cv_term_header=no
15311 rm -f conftest.$ac_objext conftest.$ac_ext
15317 echo "$as_me:15317: result: $cf_cv_term_header" >&5
15318 echo "${ECHO_T}$cf_cv_term_header" >&6
15320 case $cf_cv_term_header in
15323 cat >>confdefs.h <<\EOF
15324 #define HAVE_TERM_H 1
15330 cat >>confdefs.h <<\EOF
15331 #define HAVE_NCURSES_TERM_H 1
15337 cat >>confdefs.h <<\EOF
15338 #define HAVE_NCURSESW_TERM_H 1
15344 echo "$as_me:15344: checking for unctrl.h" >&5
15345 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
15346 if test "${cf_cv_unctrl_header+set}" = set; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15350 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
15351 # for <unctrl.h> if we do not find the variant.
15353 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
15355 case ${cf_cv_ncurses_header:-curses.h} in
15357 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
15358 cf_header_list="$cf_header_item $cf_header_list"
15362 for cf_header in $cf_header_list
15364 cat >conftest.$ac_ext <<_ACEOF
15365 #line 15365 "configure"
15366 #include "confdefs.h"
15368 #include <${cf_cv_ncurses_header:-curses.h}>
15369 #include <${cf_header}>
15378 rm -f conftest.$ac_objext
15379 if { (eval echo "$as_me:15379: \"$ac_compile\"") >&5
15380 (eval $ac_compile) 2>&5
15382 echo "$as_me:15382: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
15384 { ac_try='test -s conftest.$ac_objext'
15385 { (eval echo "$as_me:15385: \"$ac_try\"") >&5
15386 (eval $ac_try) 2>&5
15388 echo "$as_me:15388: \$? = $ac_status" >&5
15389 (exit $ac_status); }; }; then
15390 cf_cv_unctrl_header=$cf_header
15393 echo "$as_me: failed program was:" >&5
15394 cat conftest.$ac_ext >&5
15395 cf_cv_unctrl_header=no
15397 rm -f conftest.$ac_objext conftest.$ac_ext
15401 echo "$as_me:15401: result: $cf_cv_unctrl_header" >&5
15402 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
15404 case $cf_cv_unctrl_header in
15406 { echo "$as_me:15406: WARNING: unctrl.h header not found" >&5
15407 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
15411 case $cf_cv_unctrl_header in
15414 cat >>confdefs.h <<\EOF
15415 #define HAVE_UNCTRL_H 1
15421 cat >>confdefs.h <<\EOF
15422 #define HAVE_NCURSES_UNCTRL_H 1
15426 (ncursesw/unctrl.h)
15428 cat >>confdefs.h <<\EOF
15429 #define HAVE_NCURSESW_UNCTRL_H 1
15437 assume_default_colors \
15447 init_extended_color \
15466 use_default_colors \
15468 use_extended_names \
15483 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15485 echo "$as_me:15485: checking for ${cf_func}" >&5
15486 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
15488 echo "${as_me:-configure}:15488: testing ${cf_func} ..." 1>&5
15490 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15494 eval cf_result='$ac_cv_func_'$cf_func
15495 if test ".$cf_result" != ".no"; then
15496 cat >conftest.$ac_ext <<_ACEOF
15497 #line 15497 "configure"
15498 #include "confdefs.h"
15500 #ifdef HAVE_XCURSES
15501 #include <xcurses.h>
15502 char * XCursesProgramName = "test";
15504 #include <${cf_cv_ncurses_header:-curses.h}>
15505 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15506 #include <ncursesw/term.h>
15507 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15508 #include <ncurses/term.h>
15509 #elif defined(HAVE_TERM_H)
15519 long foo = (long)(&${cf_func});
15520 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
15521 if (foo + 1234 > 5678)
15522 ${cf_cv_main_return:-return}(foo);
15529 rm -f conftest.$ac_objext conftest$ac_exeext
15530 if { (eval echo "$as_me:15530: \"$ac_link\"") >&5
15531 (eval $ac_link) 2>&5
15533 echo "$as_me:15533: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -s conftest$ac_exeext'
15536 { (eval echo "$as_me:15536: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15539 echo "$as_me:15539: \$? = $ac_status" >&5
15540 (exit $ac_status); }; }; then
15543 echo "$as_me: failed program was:" >&5
15544 cat conftest.$ac_ext >&5
15547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15549 eval 'cf_cv_func_'$cf_func'=$cf_result'
15553 # use the computed/retrieved cache-value:
15554 eval 'cf_result=$cf_cv_func_'$cf_func
15555 echo "$as_me:15555: result: $cf_result" >&5
15556 echo "${ECHO_T}$cf_result" >&6
15557 if test $cf_result != no; then
15558 cat >>confdefs.h <<EOF
15559 #define HAVE_${cf_tr_func} 1
15565 for cf_func in tputs
15568 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15570 echo "$as_me:15570: checking for ${cf_func}" >&5
15571 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
15573 echo "${as_me:-configure}:15573: testing ${cf_func} ..." 1>&5
15575 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
15576 echo $ECHO_N "(cached) $ECHO_C" >&6
15579 eval cf_result='$ac_cv_func_'$cf_func
15580 if test ".$cf_result" != ".no"; then
15581 cat >conftest.$ac_ext <<_ACEOF
15582 #line 15582 "configure"
15583 #include "confdefs.h"
15585 #ifdef HAVE_XCURSES
15586 #include <xcurses.h>
15587 char * XCursesProgramName = "test";
15589 #include <${cf_cv_ncurses_header:-curses.h}>
15590 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15591 #include <ncursesw/term.h>
15592 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15593 #include <ncurses/term.h>
15594 #elif defined(HAVE_TERM_H)
15604 long foo = (long)(&${cf_func});
15605 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
15606 if (foo + 1234 > 5678)
15607 ${cf_cv_main_return:-return}(foo);
15614 rm -f conftest.$ac_objext conftest$ac_exeext
15615 if { (eval echo "$as_me:15615: \"$ac_link\"") >&5
15616 (eval $ac_link) 2>&5
15618 echo "$as_me:15618: \$? = $ac_status" >&5
15619 (exit $ac_status); } &&
15620 { ac_try='test -s conftest$ac_exeext'
15621 { (eval echo "$as_me:15621: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15624 echo "$as_me:15624: \$? = $ac_status" >&5
15625 (exit $ac_status); }; }; then
15628 echo "$as_me: failed program was:" >&5
15629 cat conftest.$ac_ext >&5
15632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15634 eval 'cf_cv_func_'$cf_func'=$cf_result'
15638 # use the computed/retrieved cache-value:
15639 eval 'cf_result=$cf_cv_func_'$cf_func
15640 echo "$as_me:15640: result: $cf_result" >&5
15641 echo "${ECHO_T}$cf_result" >&6
15642 if test $cf_result != no; then
15643 cat >>confdefs.h <<EOF
15644 #define HAVE_${cf_tr_func} 1
15650 if test x$cf_cv_func_tputs = xyes
15653 for cf_arg in int char
15655 for cf_ret in int void
15657 if test $cf_ret = void
15659 cf_return="/* nothing */"
15661 cf_return="return value"
15663 cat >conftest.$ac_ext <<_ACEOF
15664 #line 15664 "configure"
15665 #include "confdefs.h"
15667 #include <${cf_cv_ncurses_header:-curses.h}>
15668 #include <$cf_cv_term_header>
15670 static $cf_ret outc($cf_arg value) { $cf_return; }
15676 tputs("hello", 0, outc);
15677 ${cf_cv_main_return:-return}(0);
15683 rm -f conftest.$ac_objext
15684 if { (eval echo "$as_me:15684: \"$ac_compile\"") >&5
15685 (eval $ac_compile) 2>&5
15687 echo "$as_me:15687: \$? = $ac_status" >&5
15688 (exit $ac_status); } &&
15689 { ac_try='test -s conftest.$ac_objext'
15690 { (eval echo "$as_me:15690: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15693 echo "$as_me:15693: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15696 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
15698 echo "${as_me:-configure}:15698: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
15700 cat >>confdefs.h <<EOF
15701 #define TPUTS_ARG $cf_arg
15702 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
15703 #define TPUTS_RETURN(value) $cf_return
15709 echo "$as_me: failed program was:" >&5
15710 cat conftest.$ac_ext >&5
15712 rm -f conftest.$ac_objext conftest.$ac_ext
15714 test $cf_done = yes && break
15718 echo "$as_me:15718: checking for ncurses extended functions" >&5
15719 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
15720 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
15721 echo $ECHO_N "(cached) $ECHO_C" >&6
15724 cat >conftest.$ac_ext <<_ACEOF
15725 #line 15725 "configure"
15726 #include "confdefs.h"
15728 #include <${cf_cv_ncurses_header:-curses.h}>
15733 int x = NCURSES_EXT_FUNCS
15739 rm -f conftest.$ac_objext
15740 if { (eval echo "$as_me:15740: \"$ac_compile\"") >&5
15741 (eval $ac_compile) 2>&5
15743 echo "$as_me:15743: \$? = $ac_status" >&5
15744 (exit $ac_status); } &&
15745 { ac_try='test -s conftest.$ac_objext'
15746 { (eval echo "$as_me:15746: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15749 echo "$as_me:15749: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 cf_cv_ncurses_ext_funcs=defined
15753 echo "$as_me: failed program was:" >&5
15754 cat conftest.$ac_ext >&5
15756 cat >conftest.$ac_ext <<_ACEOF
15757 #line 15757 "configure"
15758 #include "confdefs.h"
15760 #include <${cf_cv_ncurses_header:-curses.h}>
15765 (void) assume_default_colors (0, 0);
15766 (void) curses_version ();
15767 (void) define_key (0, 0);
15768 (void) is_term_resized (0, 0);
15769 (void) key_defined (0);
15770 (void) keybound (0, 0);
15771 (void) keyok (0, 0);
15772 (void) resize_term (0, 0);
15773 (void) resizeterm (0, 0);
15774 (void) use_default_colors ();
15775 (void) use_extended_names (0);
15776 (void) wresize (0, 0, 0);
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (eval echo "$as_me:15782: \"$ac_link\"") >&5
15783 (eval $ac_link) 2>&5
15785 echo "$as_me:15785: \$? = $ac_status" >&5
15786 (exit $ac_status); } &&
15787 { ac_try='test -s conftest$ac_exeext'
15788 { (eval echo "$as_me:15788: \"$ac_try\"") >&5
15789 (eval $ac_try) 2>&5
15791 echo "$as_me:15791: \$? = $ac_status" >&5
15792 (exit $ac_status); }; }; then
15793 cf_cv_ncurses_ext_funcs=yes
15795 echo "$as_me: failed program was:" >&5
15796 cat conftest.$ac_ext >&5
15797 cf_cv_ncurses_ext_funcs=no
15799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15802 rm -f conftest.$ac_objext conftest.$ac_ext
15805 echo "$as_me:15805: result: $cf_cv_ncurses_ext_funcs" >&5
15806 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
15807 test "$cf_cv_ncurses_ext_funcs" = yes &&
15808 cat >>confdefs.h <<\EOF
15809 #define NCURSES_EXT_FUNCS 1
15812 if test "$cf_enable_widec" = yes
15814 # workaround for systems with ncurses before 20111029, due to change of
15815 # feature test macro from _XPG5 to _XOPEN_SOURCE
15816 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
15819 echo "$as_me:15819: checking if _XPG5 should be defined to enable wide-characters" >&5
15820 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
15822 cat >conftest.$ac_ext <<_ACEOF
15823 #line 15823 "configure"
15824 #include "confdefs.h"
15826 #include <${cf_cv_ncurses_header:-curses.h}>
15835 rm -f conftest.$ac_objext
15836 if { (eval echo "$as_me:15836: \"$ac_compile\"") >&5
15837 (eval $ac_compile) 2>&5
15839 echo "$as_me:15839: \$? = $ac_status" >&5
15840 (exit $ac_status); } &&
15841 { ac_try='test -s conftest.$ac_objext'
15842 { (eval echo "$as_me:15842: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15845 echo "$as_me:15845: \$? = $ac_status" >&5
15846 (exit $ac_status); }; }; then
15849 echo "$as_me: failed program was:" >&5
15850 cat conftest.$ac_ext >&5
15851 cf_save_cppflags="$CPPFLAGS"
15852 CPPFLAGS="$CPPFLAGS -D_XPG5"
15853 cat >conftest.$ac_ext <<_ACEOF
15854 #line 15854 "configure"
15855 #include "confdefs.h"
15857 #include <${cf_cv_ncurses_header:-curses.h}>
15866 rm -f conftest.$ac_objext
15867 if { (eval echo "$as_me:15867: \"$ac_compile\"") >&5
15868 (eval $ac_compile) 2>&5
15870 echo "$as_me:15870: \$? = $ac_status" >&5
15871 (exit $ac_status); } &&
15872 { ac_try='test -s conftest.$ac_objext'
15873 { (eval echo "$as_me:15873: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15876 echo "$as_me:15876: \$? = $ac_status" >&5
15877 (exit $ac_status); }; }; then
15880 echo "$as_me: failed program was:" >&5
15881 cat conftest.$ac_ext >&5
15883 rm -f conftest.$ac_objext conftest.$ac_ext
15884 CPPFLAGS="$cf_save_cppflags"
15886 rm -f conftest.$ac_objext conftest.$ac_ext
15887 echo "$as_me:15887: result: $cf_define_xpg5" >&5
15888 echo "${ECHO_T}$cf_define_xpg5" >&6
15890 if test "$cf_define_xpg5" = yes
15892 CPPFLAGS="$CPPFLAGS -D_XPG5"
15896 echo "$as_me:15896: checking for wide-character functions" >&5
15897 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
15898 if test "${cf_cv_widechar_funcs+set}" = set; then
15899 echo $ECHO_N "(cached) $ECHO_C" >&6
15902 cat >conftest.$ac_ext <<_ACEOF
15903 #line 15903 "configure"
15904 #include "confdefs.h"
15906 #include <${cf_cv_ncurses_header:-curses.h}>
15911 static wchar_t src_wchar[2];
15912 static cchar_t dst_cchar;
15913 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
15919 rm -f conftest.$ac_objext conftest$ac_exeext
15920 if { (eval echo "$as_me:15920: \"$ac_link\"") >&5
15921 (eval $ac_link) 2>&5
15923 echo "$as_me:15923: \$? = $ac_status" >&5
15924 (exit $ac_status); } &&
15925 { ac_try='test -s conftest$ac_exeext'
15926 { (eval echo "$as_me:15926: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15929 echo "$as_me:15929: \$? = $ac_status" >&5
15930 (exit $ac_status); }; }; then
15931 cf_cv_widechar_funcs=yes
15933 echo "$as_me: failed program was:" >&5
15934 cat conftest.$ac_ext >&5
15935 cf_cv_widechar_funcs=no
15937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15940 echo "$as_me:15940: result: $cf_cv_widechar_funcs" >&5
15941 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
15942 if test "$cf_cv_widechar_funcs" != no ; then
15944 cat >>confdefs.h <<\EOF
15945 #define USE_WIDEC_SUPPORT 1
15949 cat >>confdefs.h <<\EOF
15950 #define USE_WIDEC_SUPPORT 0
15955 cat >>confdefs.h <<\EOF
15956 #define USE_WIDEC_SUPPORT 0
15961 echo "$as_me:15961: checking if $cf_cv_screen library uses pthreads" >&5
15962 echo $ECHO_N "checking if $cf_cv_screen library uses pthreads... $ECHO_C" >&6
15963 if test "${cf_cv_use_pthreads+set}" = set; then
15964 echo $ECHO_N "(cached) $ECHO_C" >&6
15967 cat >conftest.$ac_ext <<_ACEOF
15968 #line 15968 "configure"
15969 #include "confdefs.h"
15971 #include <${cf_cv_ncurses_header:-curses.h}>
15972 extern void _nc_init_pthreads(void);
15979 _nc_init_pthreads();
15985 rm -f conftest.$ac_objext conftest$ac_exeext
15986 if { (eval echo "$as_me:15986: \"$ac_link\"") >&5
15987 (eval $ac_link) 2>&5
15989 echo "$as_me:15989: \$? = $ac_status" >&5
15990 (exit $ac_status); } &&
15991 { ac_try='test -s conftest$ac_exeext'
15992 { (eval echo "$as_me:15992: \"$ac_try\"") >&5
15993 (eval $ac_try) 2>&5
15995 echo "$as_me:15995: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15997 cf_cv_use_pthreads=yes
15999 echo "$as_me: failed program was:" >&5
16000 cat conftest.$ac_ext >&5
16001 cf_cv_use_pthreads=no
16003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16006 echo "$as_me:16006: result: $cf_cv_use_pthreads" >&5
16007 echo "${ECHO_T}$cf_cv_use_pthreads" >&6
16008 test $cf_cv_use_pthreads = yes && cat >>confdefs.h <<\EOF
16009 #define USE_PTHREADS 1
16012 echo "$as_me:16012: checking if sys/time.h works with sys/select.h" >&5
16013 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
16014 if test "${cf_cv_sys_time_select+set}" = set; then
16015 echo $ECHO_N "(cached) $ECHO_C" >&6
16018 cat >conftest.$ac_ext <<_ACEOF
16019 #line 16019 "configure"
16020 #include "confdefs.h"
16022 #include <sys/types.h>
16023 #ifdef HAVE_SYS_TIME_H
16024 #include <sys/time.h>
16026 #ifdef HAVE_SYS_SELECT_H
16027 #include <sys/select.h>
16038 rm -f conftest.$ac_objext
16039 if { (eval echo "$as_me:16039: \"$ac_compile\"") >&5
16040 (eval $ac_compile) 2>&5
16042 echo "$as_me:16042: \$? = $ac_status" >&5
16043 (exit $ac_status); } &&
16044 { ac_try='test -s conftest.$ac_objext'
16045 { (eval echo "$as_me:16045: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16048 echo "$as_me:16048: \$? = $ac_status" >&5
16049 (exit $ac_status); }; }; then
16050 cf_cv_sys_time_select=yes
16052 echo "$as_me: failed program was:" >&5
16053 cat conftest.$ac_ext >&5
16054 cf_cv_sys_time_select=no
16056 rm -f conftest.$ac_objext conftest.$ac_ext
16060 echo "$as_me:16060: result: $cf_cv_sys_time_select" >&5
16061 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
16062 test "$cf_cv_sys_time_select" = yes &&
16063 cat >>confdefs.h <<\EOF
16064 #define HAVE_SYS_TIME_SELECT 1
16067 # special check for test/ditto.c
16069 echo "$as_me:16069: checking for openpty in -lutil" >&5
16070 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
16071 if test "${ac_cv_lib_util_openpty+set}" = set; then
16072 echo $ECHO_N "(cached) $ECHO_C" >&6
16074 ac_check_lib_save_LIBS=$LIBS
16075 LIBS="-lutil $LIBS"
16076 cat >conftest.$ac_ext <<_ACEOF
16077 #line 16077 "configure"
16078 #include "confdefs.h"
16080 /* Override any gcc2 internal prototype to avoid an error. */
16084 /* We use char because int might match the return type of a gcc2
16085 builtin and then its argument prototype would still apply. */
16095 rm -f conftest.$ac_objext conftest$ac_exeext
16096 if { (eval echo "$as_me:16096: \"$ac_link\"") >&5
16097 (eval $ac_link) 2>&5
16099 echo "$as_me:16099: \$? = $ac_status" >&5
16100 (exit $ac_status); } &&
16101 { ac_try='test -s conftest$ac_exeext'
16102 { (eval echo "$as_me:16102: \"$ac_try\"") >&5
16103 (eval $ac_try) 2>&5
16105 echo "$as_me:16105: \$? = $ac_status" >&5
16106 (exit $ac_status); }; }; then
16107 ac_cv_lib_util_openpty=yes
16109 echo "$as_me: failed program was:" >&5
16110 cat conftest.$ac_ext >&5
16111 ac_cv_lib_util_openpty=no
16113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16114 LIBS=$ac_check_lib_save_LIBS
16116 echo "$as_me:16116: result: $ac_cv_lib_util_openpty" >&5
16117 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
16118 if test $ac_cv_lib_util_openpty = yes; then
16124 echo "$as_me:16124: checking for openpty header" >&5
16125 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
16126 if test "${cf_cv_func_openpty+set}" = set; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16130 cf_save_LIBS="$LIBS"
16131 test $cf_cv_lib_util = yes && {
16132 cf_add_libs="-lutil"
16133 # Filter out duplicates - this happens with badly-designed ".pc" files...
16134 for cf_add_1lib in $LIBS
16136 for cf_add_2lib in $cf_add_libs
16138 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16144 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16146 LIBS="$cf_add_libs"
16148 for cf_header in pty.h libutil.h util.h
16150 cat >conftest.$ac_ext <<_ACEOF
16151 #line 16151 "configure"
16152 #include "confdefs.h"
16154 #include <$cf_header>
16160 int x = openpty((int *)0, (int *)0, (char *)0,
16161 (struct termios *)0, (struct winsize *)0);
16167 rm -f conftest.$ac_objext conftest$ac_exeext
16168 if { (eval echo "$as_me:16168: \"$ac_link\"") >&5
16169 (eval $ac_link) 2>&5
16171 echo "$as_me:16171: \$? = $ac_status" >&5
16172 (exit $ac_status); } &&
16173 { ac_try='test -s conftest$ac_exeext'
16174 { (eval echo "$as_me:16174: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16177 echo "$as_me:16177: \$? = $ac_status" >&5
16178 (exit $ac_status); }; }; then
16180 cf_cv_func_openpty=$cf_header
16184 echo "$as_me: failed program was:" >&5
16185 cat conftest.$ac_ext >&5
16187 cf_cv_func_openpty=no
16190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16192 LIBS="$cf_save_LIBS"
16195 echo "$as_me:16195: result: $cf_cv_func_openpty" >&5
16196 echo "${ECHO_T}$cf_cv_func_openpty" >&6
16198 if test "$cf_cv_func_openpty" != no ; then
16200 cat >>confdefs.h <<EOF
16201 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
16204 cat >>confdefs.h <<\EOF
16205 #define USE_XTERM_PTY 1
16208 if test "x$cf_cv_lib_util" = xyes ; then
16210 cf_add_libs="-lutil"
16211 # Filter out duplicates - this happens with badly-designed ".pc" files...
16212 for cf_add_1lib in $TEST_LIBS
16214 for cf_add_2lib in $cf_add_libs
16216 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16222 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16224 TEST_LIBS="$cf_add_libs"
16229 echo "$as_me:16229: checking for function curses_version" >&5
16230 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
16231 if test "${cf_cv_func_curses_version+set}" = set; then
16232 echo $ECHO_N "(cached) $ECHO_C" >&6
16235 if test "$cross_compiling" = yes; then
16236 cf_cv_func_curses_version=unknown
16238 cat >conftest.$ac_ext <<_ACEOF
16239 #line 16239 "configure"
16240 #include "confdefs.h"
16242 #include <${cf_cv_ncurses_header:-curses.h}>
16246 sprintf(temp, "%s\n", curses_version());
16247 ${cf_cv_main_return:-return}(0);
16251 rm -f conftest$ac_exeext
16252 if { (eval echo "$as_me:16252: \"$ac_link\"") >&5
16253 (eval $ac_link) 2>&5
16255 echo "$as_me:16255: \$? = $ac_status" >&5
16256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16257 { (eval echo "$as_me:16257: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16260 echo "$as_me:16260: \$? = $ac_status" >&5
16261 (exit $ac_status); }; }; then
16262 cf_cv_func_curses_version=yes
16265 echo "$as_me: program exited with status $ac_status" >&5
16266 echo "$as_me: failed program was:" >&5
16267 cat conftest.$ac_ext >&5
16268 cf_cv_func_curses_version=no
16271 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16275 echo "$as_me:16275: result: $cf_cv_func_curses_version" >&5
16276 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
16277 test "$cf_cv_func_curses_version" = yes &&
16278 cat >>confdefs.h <<\EOF
16279 #define HAVE_CURSES_VERSION 1
16282 echo "$as_me:16282: checking for alternate character set array" >&5
16283 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
16284 if test "${cf_cv_curses_acs_map+set}" = set; then
16285 echo $ECHO_N "(cached) $ECHO_C" >&6
16288 cf_cv_curses_acs_map=unknown
16289 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
16291 cat >conftest.$ac_ext <<_ACEOF
16292 #line 16292 "configure"
16293 #include "confdefs.h"
16295 #include <${cf_cv_ncurses_header:-curses.h}>
16301 $name['k'] = ACS_PLUS
16307 rm -f conftest.$ac_objext conftest$ac_exeext
16308 if { (eval echo "$as_me:16308: \"$ac_link\"") >&5
16309 (eval $ac_link) 2>&5
16311 echo "$as_me:16311: \$? = $ac_status" >&5
16312 (exit $ac_status); } &&
16313 { ac_try='test -s conftest$ac_exeext'
16314 { (eval echo "$as_me:16314: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16317 echo "$as_me:16317: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16319 cf_cv_curses_acs_map=$name; break
16321 echo "$as_me: failed program was:" >&5
16322 cat conftest.$ac_ext >&5
16324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16328 echo "$as_me:16328: result: $cf_cv_curses_acs_map" >&5
16329 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
16331 test "$cf_cv_curses_acs_map" != unknown &&
16332 cat >>confdefs.h <<EOF
16333 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
16336 if test "$cf_enable_widec" = yes; then
16338 echo "$as_me:16338: checking for wide alternate character set array" >&5
16339 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
16340 if test "${cf_cv_curses_wacs_map+set}" = set; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16344 cf_cv_curses_wacs_map=unknown
16345 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
16347 cat >conftest.$ac_ext <<_ACEOF
16348 #line 16348 "configure"
16349 #include "confdefs.h"
16351 #ifndef _XOPEN_SOURCE_EXTENDED
16352 #define _XOPEN_SOURCE_EXTENDED
16354 #include <${cf_cv_ncurses_header:-curses.h}>
16358 void *foo = &($name['k'])
16363 rm -f conftest.$ac_objext conftest$ac_exeext
16364 if { (eval echo "$as_me:16364: \"$ac_link\"") >&5
16365 (eval $ac_link) 2>&5
16367 echo "$as_me:16367: \$? = $ac_status" >&5
16368 (exit $ac_status); } &&
16369 { ac_try='test -s conftest$ac_exeext'
16370 { (eval echo "$as_me:16370: \"$ac_try\"") >&5
16371 (eval $ac_try) 2>&5
16373 echo "$as_me:16373: \$? = $ac_status" >&5
16374 (exit $ac_status); }; }; then
16375 cf_cv_curses_wacs_map=$name
16378 echo "$as_me: failed program was:" >&5
16379 cat conftest.$ac_ext >&5
16381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16384 echo "$as_me:16384: result: $cf_cv_curses_wacs_map" >&5
16385 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
16387 test "$cf_cv_curses_wacs_map" != unknown &&
16388 cat >>confdefs.h <<EOF
16389 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
16392 echo "$as_me:16392: checking for wide alternate character constants" >&5
16393 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
16394 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
16395 echo $ECHO_N "(cached) $ECHO_C" >&6
16398 cf_cv_curses_wacs_symbols=no
16399 if test "$cf_cv_curses_wacs_map" != unknown
16401 cat >conftest.$ac_ext <<_ACEOF
16402 #line 16402 "configure"
16403 #include "confdefs.h"
16405 #ifndef _XOPEN_SOURCE_EXTENDED
16406 #define _XOPEN_SOURCE_EXTENDED
16408 #include <${cf_cv_ncurses_header:-curses.h}>
16412 cchar_t *foo = WACS_PLUS;
16413 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
16418 rm -f conftest.$ac_objext conftest$ac_exeext
16419 if { (eval echo "$as_me:16419: \"$ac_link\"") >&5
16420 (eval $ac_link) 2>&5
16422 echo "$as_me:16422: \$? = $ac_status" >&5
16423 (exit $ac_status); } &&
16424 { ac_try='test -s conftest$ac_exeext'
16425 { (eval echo "$as_me:16425: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16428 echo "$as_me:16428: \$? = $ac_status" >&5
16429 (exit $ac_status); }; }; then
16430 cf_cv_curses_wacs_symbols=yes
16432 echo "$as_me: failed program was:" >&5
16433 cat conftest.$ac_ext >&5
16435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16437 cat >conftest.$ac_ext <<_ACEOF
16438 #line 16438 "configure"
16439 #include "confdefs.h"
16441 #ifndef _XOPEN_SOURCE_EXTENDED
16442 #define _XOPEN_SOURCE_EXTENDED
16444 #include <${cf_cv_ncurses_header:-curses.h}>
16448 cchar_t *foo = WACS_PLUS
16453 rm -f conftest.$ac_objext conftest$ac_exeext
16454 if { (eval echo "$as_me:16454: \"$ac_link\"") >&5
16455 (eval $ac_link) 2>&5
16457 echo "$as_me:16457: \$? = $ac_status" >&5
16458 (exit $ac_status); } &&
16459 { ac_try='test -s conftest$ac_exeext'
16460 { (eval echo "$as_me:16460: \"$ac_try\"") >&5
16461 (eval $ac_try) 2>&5
16463 echo "$as_me:16463: \$? = $ac_status" >&5
16464 (exit $ac_status); }; }; then
16465 cf_cv_curses_wacs_symbols=yes
16467 echo "$as_me: failed program was:" >&5
16468 cat conftest.$ac_ext >&5
16470 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16474 echo "$as_me:16474: result: $cf_cv_curses_wacs_symbols" >&5
16475 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
16477 test "$cf_cv_curses_wacs_symbols" != no &&
16478 cat >>confdefs.h <<\EOF
16479 #define CURSES_WACS_SYMBOLS 1
16484 echo "$as_me:16484: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16485 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16486 cat >conftest.$ac_ext <<_ACEOF
16487 #line 16487 "configure"
16488 #include "confdefs.h"
16490 #ifndef _XOPEN_SOURCE_EXTENDED
16491 #define _XOPEN_SOURCE_EXTENDED
16493 #include <${cf_cv_ncurses_header:-curses.h}>
16504 rm -f conftest.$ac_objext
16505 if { (eval echo "$as_me:16505: \"$ac_compile\"") >&5
16506 (eval $ac_compile) 2>&5
16508 echo "$as_me:16508: \$? = $ac_status" >&5
16509 (exit $ac_status); } &&
16510 { ac_try='test -s conftest.$ac_objext'
16511 { (eval echo "$as_me:16511: \"$ac_try\"") >&5
16512 (eval $ac_try) 2>&5
16514 echo "$as_me:16514: \$? = $ac_status" >&5
16515 (exit $ac_status); }; }; then
16518 echo "$as_me: failed program was:" >&5
16519 cat conftest.$ac_ext >&5
16522 rm -f conftest.$ac_objext conftest.$ac_ext
16523 echo "$as_me:16523: result: $cf_result" >&5
16524 echo "${ECHO_T}$cf_result" >&6
16525 if test $cf_result = yes ; then
16527 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16529 cat >>confdefs.h <<EOF
16530 #define $cf_result 1
16535 cat >>confdefs.h <<EOF
16536 #define attr_t long
16541 if test "$cf_enable_widec" = yes; then
16543 # This is needed on Tru64 5.0 to declare mbstate_t
16544 echo "$as_me:16544: checking if we must include wchar.h to declare mbstate_t" >&5
16545 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
16546 if test "${cf_cv_mbstate_t+set}" = set; then
16547 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 cat >conftest.$ac_ext <<_ACEOF
16551 #line 16551 "configure"
16552 #include "confdefs.h"
16554 #include <stdlib.h>
16555 #include <stdarg.h>
16557 #ifdef HAVE_LIBUTF8_H
16558 #include <libutf8.h>
16568 rm -f conftest.$ac_objext
16569 if { (eval echo "$as_me:16569: \"$ac_compile\"") >&5
16570 (eval $ac_compile) 2>&5
16572 echo "$as_me:16572: \$? = $ac_status" >&5
16573 (exit $ac_status); } &&
16574 { ac_try='test -s conftest.$ac_objext'
16575 { (eval echo "$as_me:16575: \"$ac_try\"") >&5
16576 (eval $ac_try) 2>&5
16578 echo "$as_me:16578: \$? = $ac_status" >&5
16579 (exit $ac_status); }; }; then
16582 echo "$as_me: failed program was:" >&5
16583 cat conftest.$ac_ext >&5
16584 cat >conftest.$ac_ext <<_ACEOF
16585 #line 16585 "configure"
16586 #include "confdefs.h"
16588 #include <stdlib.h>
16589 #include <stdarg.h>
16592 #ifdef HAVE_LIBUTF8_H
16593 #include <libutf8.h>
16603 rm -f conftest.$ac_objext
16604 if { (eval echo "$as_me:16604: \"$ac_compile\"") >&5
16605 (eval $ac_compile) 2>&5
16607 echo "$as_me:16607: \$? = $ac_status" >&5
16608 (exit $ac_status); } &&
16609 { ac_try='test -s conftest.$ac_objext'
16610 { (eval echo "$as_me:16610: \"$ac_try\"") >&5
16611 (eval $ac_try) 2>&5
16613 echo "$as_me:16613: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
16615 cf_cv_mbstate_t=yes
16617 echo "$as_me: failed program was:" >&5
16618 cat conftest.$ac_ext >&5
16619 cf_cv_mbstate_t=unknown
16621 rm -f conftest.$ac_objext conftest.$ac_ext
16623 rm -f conftest.$ac_objext conftest.$ac_ext
16625 echo "$as_me:16625: result: $cf_cv_mbstate_t" >&5
16626 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
16628 if test "$cf_cv_mbstate_t" = yes ; then
16630 cat >>confdefs.h <<\EOF
16631 #define NEED_WCHAR_H 1
16637 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
16638 if test "$cf_cv_mbstate_t" = unknown ; then
16639 NCURSES_MBSTATE_T=1
16642 # if we find mbstate_t in either place, use substitution to provide a fallback.
16643 if test "$cf_cv_mbstate_t" != unknown ; then
16644 NCURSES_OK_MBSTATE_T=1
16647 # This is needed on Tru64 5.0 to declare wchar_t
16648 echo "$as_me:16648: checking if we must include wchar.h to declare wchar_t" >&5
16649 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
16650 if test "${cf_cv_wchar_t+set}" = set; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16654 cat >conftest.$ac_ext <<_ACEOF
16655 #line 16655 "configure"
16656 #include "confdefs.h"
16658 #include <stdlib.h>
16659 #include <stdarg.h>
16661 #ifdef HAVE_LIBUTF8_H
16662 #include <libutf8.h>
16672 rm -f conftest.$ac_objext
16673 if { (eval echo "$as_me:16673: \"$ac_compile\"") >&5
16674 (eval $ac_compile) 2>&5
16676 echo "$as_me:16676: \$? = $ac_status" >&5
16677 (exit $ac_status); } &&
16678 { ac_try='test -s conftest.$ac_objext'
16679 { (eval echo "$as_me:16679: \"$ac_try\"") >&5
16680 (eval $ac_try) 2>&5
16682 echo "$as_me:16682: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16686 echo "$as_me: failed program was:" >&5
16687 cat conftest.$ac_ext >&5
16688 cat >conftest.$ac_ext <<_ACEOF
16689 #line 16689 "configure"
16690 #include "confdefs.h"
16692 #include <stdlib.h>
16693 #include <stdarg.h>
16696 #ifdef HAVE_LIBUTF8_H
16697 #include <libutf8.h>
16707 rm -f conftest.$ac_objext
16708 if { (eval echo "$as_me:16708: \"$ac_compile\"") >&5
16709 (eval $ac_compile) 2>&5
16711 echo "$as_me:16711: \$? = $ac_status" >&5
16712 (exit $ac_status); } &&
16713 { ac_try='test -s conftest.$ac_objext'
16714 { (eval echo "$as_me:16714: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16717 echo "$as_me:16717: \$? = $ac_status" >&5
16718 (exit $ac_status); }; }; then
16721 echo "$as_me: failed program was:" >&5
16722 cat conftest.$ac_ext >&5
16723 cf_cv_wchar_t=unknown
16725 rm -f conftest.$ac_objext conftest.$ac_ext
16727 rm -f conftest.$ac_objext conftest.$ac_ext
16729 echo "$as_me:16729: result: $cf_cv_wchar_t" >&5
16730 echo "${ECHO_T}$cf_cv_wchar_t" >&6
16732 if test "$cf_cv_wchar_t" = yes ; then
16734 cat >>confdefs.h <<\EOF
16735 #define NEED_WCHAR_H 1
16741 # if we do not find wchar_t in either place, use substitution to provide a fallback.
16742 if test "$cf_cv_wchar_t" = unknown ; then
16746 # if we find wchar_t in either place, use substitution to provide a fallback.
16747 if test "$cf_cv_wchar_t" != unknown ; then
16748 NCURSES_OK_WCHAR_T=1
16751 # This is needed on Tru64 5.0 to declare wint_t
16752 echo "$as_me:16752: checking if we must include wchar.h to declare wint_t" >&5
16753 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
16754 if test "${cf_cv_wint_t+set}" = set; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16758 cat >conftest.$ac_ext <<_ACEOF
16759 #line 16759 "configure"
16760 #include "confdefs.h"
16762 #include <stdlib.h>
16763 #include <stdarg.h>
16765 #ifdef HAVE_LIBUTF8_H
16766 #include <libutf8.h>
16776 rm -f conftest.$ac_objext
16777 if { (eval echo "$as_me:16777: \"$ac_compile\"") >&5
16778 (eval $ac_compile) 2>&5
16780 echo "$as_me:16780: \$? = $ac_status" >&5
16781 (exit $ac_status); } &&
16782 { ac_try='test -s conftest.$ac_objext'
16783 { (eval echo "$as_me:16783: \"$ac_try\"") >&5
16784 (eval $ac_try) 2>&5
16786 echo "$as_me:16786: \$? = $ac_status" >&5
16787 (exit $ac_status); }; }; then
16790 echo "$as_me: failed program was:" >&5
16791 cat conftest.$ac_ext >&5
16792 cat >conftest.$ac_ext <<_ACEOF
16793 #line 16793 "configure"
16794 #include "confdefs.h"
16796 #include <stdlib.h>
16797 #include <stdarg.h>
16800 #ifdef HAVE_LIBUTF8_H
16801 #include <libutf8.h>
16811 rm -f conftest.$ac_objext
16812 if { (eval echo "$as_me:16812: \"$ac_compile\"") >&5
16813 (eval $ac_compile) 2>&5
16815 echo "$as_me:16815: \$? = $ac_status" >&5
16816 (exit $ac_status); } &&
16817 { ac_try='test -s conftest.$ac_objext'
16818 { (eval echo "$as_me:16818: \"$ac_try\"") >&5
16819 (eval $ac_try) 2>&5
16821 echo "$as_me:16821: \$? = $ac_status" >&5
16822 (exit $ac_status); }; }; then
16825 echo "$as_me: failed program was:" >&5
16826 cat conftest.$ac_ext >&5
16827 cf_cv_wint_t=unknown
16829 rm -f conftest.$ac_objext conftest.$ac_ext
16831 rm -f conftest.$ac_objext conftest.$ac_ext
16833 echo "$as_me:16833: result: $cf_cv_wint_t" >&5
16834 echo "${ECHO_T}$cf_cv_wint_t" >&6
16836 if test "$cf_cv_wint_t" = yes ; then
16838 cat >>confdefs.h <<\EOF
16839 #define NEED_WCHAR_H 1
16845 # if we do not find wint_t in either place, use substitution to provide a fallback.
16846 if test "$cf_cv_wint_t" = unknown ; then
16850 # if we find wint_t in either place, use substitution to provide a fallback.
16851 if test "$cf_cv_wint_t" != unknown ; then
16852 NCURSES_OK_WINT_T=1
16855 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
16857 echo "$as_me:16857: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16858 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16859 cat >conftest.$ac_ext <<_ACEOF
16860 #line 16860 "configure"
16861 #include "confdefs.h"
16863 #ifndef _XOPEN_SOURCE_EXTENDED
16864 #define _XOPEN_SOURCE_EXTENDED
16866 #include <${cf_cv_ncurses_header:-curses.h}>
16877 rm -f conftest.$ac_objext
16878 if { (eval echo "$as_me:16878: \"$ac_compile\"") >&5
16879 (eval $ac_compile) 2>&5
16881 echo "$as_me:16881: \$? = $ac_status" >&5
16882 (exit $ac_status); } &&
16883 { ac_try='test -s conftest.$ac_objext'
16884 { (eval echo "$as_me:16884: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16887 echo "$as_me:16887: \$? = $ac_status" >&5
16888 (exit $ac_status); }; }; then
16891 echo "$as_me: failed program was:" >&5
16892 cat conftest.$ac_ext >&5
16895 rm -f conftest.$ac_objext conftest.$ac_ext
16896 echo "$as_me:16896: result: $cf_result" >&5
16897 echo "${ECHO_T}$cf_result" >&6
16898 if test $cf_result = yes ; then
16900 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16902 cat >>confdefs.h <<EOF
16903 #define $cf_result 1
16908 cat >>confdefs.h <<EOF
16909 #define mbstate_t long
16916 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
16918 echo "$as_me:16918: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16919 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16920 cat >conftest.$ac_ext <<_ACEOF
16921 #line 16921 "configure"
16922 #include "confdefs.h"
16924 #ifndef _XOPEN_SOURCE_EXTENDED
16925 #define _XOPEN_SOURCE_EXTENDED
16927 #include <${cf_cv_ncurses_header:-curses.h}>
16938 rm -f conftest.$ac_objext
16939 if { (eval echo "$as_me:16939: \"$ac_compile\"") >&5
16940 (eval $ac_compile) 2>&5
16942 echo "$as_me:16942: \$? = $ac_status" >&5
16943 (exit $ac_status); } &&
16944 { ac_try='test -s conftest.$ac_objext'
16945 { (eval echo "$as_me:16945: \"$ac_try\"") >&5
16946 (eval $ac_try) 2>&5
16948 echo "$as_me:16948: \$? = $ac_status" >&5
16949 (exit $ac_status); }; }; then
16952 echo "$as_me: failed program was:" >&5
16953 cat conftest.$ac_ext >&5
16956 rm -f conftest.$ac_objext conftest.$ac_ext
16957 echo "$as_me:16957: result: $cf_result" >&5
16958 echo "${ECHO_T}$cf_result" >&6
16959 if test $cf_result = yes ; then
16961 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16963 cat >>confdefs.h <<EOF
16964 #define $cf_result 1
16969 cat >>confdefs.h <<EOF
16970 #define wchar_t long
16977 if test "$NCURSES_OK_WINT_T" = 0 ; then
16979 echo "$as_me:16979: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16980 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16981 cat >conftest.$ac_ext <<_ACEOF
16982 #line 16982 "configure"
16983 #include "confdefs.h"
16985 #ifndef _XOPEN_SOURCE_EXTENDED
16986 #define _XOPEN_SOURCE_EXTENDED
16988 #include <${cf_cv_ncurses_header:-curses.h}>
16999 rm -f conftest.$ac_objext
17000 if { (eval echo "$as_me:17000: \"$ac_compile\"") >&5
17001 (eval $ac_compile) 2>&5
17003 echo "$as_me:17003: \$? = $ac_status" >&5
17004 (exit $ac_status); } &&
17005 { ac_try='test -s conftest.$ac_objext'
17006 { (eval echo "$as_me:17006: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17009 echo "$as_me:17009: \$? = $ac_status" >&5
17010 (exit $ac_status); }; }; then
17013 echo "$as_me: failed program was:" >&5
17014 cat conftest.$ac_ext >&5
17017 rm -f conftest.$ac_objext conftest.$ac_ext
17018 echo "$as_me:17018: result: $cf_result" >&5
17019 echo "${ECHO_T}$cf_result" >&6
17020 if test $cf_result = yes ; then
17022 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17024 cat >>confdefs.h <<EOF
17025 #define $cf_result 1
17030 cat >>confdefs.h <<EOF
17031 #define wint_t long
17039 for cf_data in ospeed
17041 echo "$as_me:17041: checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
17042 echo $ECHO_N "checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
17044 cat >conftest.$ac_ext <<_ACEOF
17045 #line 17045 "configure"
17046 #include "confdefs.h"
17048 #ifdef HAVE_XCURSES
17049 #include <xcurses.h>
17050 char * XCursesProgramName = "test";
17052 #include <${cf_cv_ncurses_header:-curses.h}>
17053 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17054 #include <ncursesw/term.h>
17055 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17056 #include <ncurses/term.h>
17057 #elif defined(HAVE_TERM_H)
17066 void *foo = &($cf_data)
17072 rm -f conftest.$ac_objext
17073 if { (eval echo "$as_me:17073: \"$ac_compile\"") >&5
17074 (eval $ac_compile) 2>&5
17076 echo "$as_me:17076: \$? = $ac_status" >&5
17077 (exit $ac_status); } &&
17078 { ac_try='test -s conftest.$ac_objext'
17079 { (eval echo "$as_me:17079: \"$ac_try\"") >&5
17080 (eval $ac_try) 2>&5
17082 echo "$as_me:17082: \$? = $ac_status" >&5
17083 (exit $ac_status); }; }; then
17087 echo "$as_me: failed program was:" >&5
17088 cat conftest.$ac_ext >&5
17091 rm -f conftest.$ac_objext conftest.$ac_ext
17092 echo "$as_me:17092: result: $cf_result" >&5
17093 echo "${ECHO_T}$cf_result" >&6
17095 if test $cf_result = yes ; then
17097 cf_result=`echo "have_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17099 cat >>confdefs.h <<EOF
17100 #define $cf_result 1
17104 echo "$as_me:17104: checking for data $cf_data in library" >&5
17105 echo $ECHO_N "checking for data $cf_data in library... $ECHO_C" >&6
17106 # BSD linkers insist on making weak linkage, but resolve at runtime.
17107 if test "$cross_compiling" = yes; then
17110 cat >conftest.$ac_ext <<_ACEOF
17111 #line 17111 "configure"
17112 #include "confdefs.h"
17114 #ifdef HAVE_XCURSES
17115 #include <xcurses.h>
17116 char * XCursesProgramName = "test";
17118 #include <${cf_cv_ncurses_header:-curses.h}>
17119 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17120 #include <ncursesw/term.h>
17121 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17122 #include <ncurses/term.h>
17123 #elif defined(HAVE_TERM_H)
17128 extern char $cf_data;
17134 void *foo = &($cf_data);
17135 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17136 ${cf_cv_main_return:-return}(foo == 0);
17143 rm -f conftest.$ac_objext conftest$ac_exeext
17144 if { (eval echo "$as_me:17144: \"$ac_link\"") >&5
17145 (eval $ac_link) 2>&5
17147 echo "$as_me:17147: \$? = $ac_status" >&5
17148 (exit $ac_status); } &&
17149 { ac_try='test -s conftest$ac_exeext'
17150 { (eval echo "$as_me:17150: \"$ac_try\"") >&5
17151 (eval $ac_try) 2>&5
17153 echo "$as_me:17153: \$? = $ac_status" >&5
17154 (exit $ac_status); }; }; then
17157 echo "$as_me: failed program was:" >&5
17158 cat conftest.$ac_ext >&5
17161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17164 cat >conftest.$ac_ext <<_ACEOF
17165 #line 17165 "configure"
17166 #include "confdefs.h"
17168 #ifdef HAVE_XCURSES
17169 #include <xcurses.h>
17170 char * XCursesProgramName = "test";
17172 #include <${cf_cv_ncurses_header:-curses.h}>
17173 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17174 #include <ncursesw/term.h>
17175 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17176 #include <ncurses/term.h>
17177 #elif defined(HAVE_TERM_H)
17182 extern char $cf_data;
17185 void *foo = &($cf_data);
17186 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17187 ${cf_cv_main_return:-return}(foo == 0);
17190 rm -f conftest$ac_exeext
17191 if { (eval echo "$as_me:17191: \"$ac_link\"") >&5
17192 (eval $ac_link) 2>&5
17194 echo "$as_me:17194: \$? = $ac_status" >&5
17195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17196 { (eval echo "$as_me:17196: \"$ac_try\"") >&5
17197 (eval $ac_try) 2>&5
17199 echo "$as_me:17199: \$? = $ac_status" >&5
17200 (exit $ac_status); }; }; then
17204 echo "$as_me: program exited with status $ac_status" >&5
17205 echo "$as_me: failed program was:" >&5
17206 cat conftest.$ac_ext >&5
17209 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17211 echo "$as_me:17211: result: $cf_result" >&5
17212 echo "${ECHO_T}$cf_result" >&6
17213 if test $cf_result = yes ; then
17215 cf_result=`echo "decl_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17217 cat >>confdefs.h <<EOF
17218 #define $cf_result 1
17221 # do not exit loop here, since we prefer system's declarations
17226 for cf_data in boolnames
17228 echo "$as_me:17228: checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
17229 echo $ECHO_N "checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
17231 cat >conftest.$ac_ext <<_ACEOF
17232 #line 17232 "configure"
17233 #include "confdefs.h"
17235 #ifdef HAVE_XCURSES
17236 #include <xcurses.h>
17237 char * XCursesProgramName = "test";
17239 #include <${cf_cv_ncurses_header:-curses.h}>
17240 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17241 #include <ncursesw/term.h>
17242 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17243 #include <ncurses/term.h>
17244 #elif defined(HAVE_TERM_H)
17253 void *foo = &($cf_data)
17259 rm -f conftest.$ac_objext
17260 if { (eval echo "$as_me:17260: \"$ac_compile\"") >&5
17261 (eval $ac_compile) 2>&5
17263 echo "$as_me:17263: \$? = $ac_status" >&5
17264 (exit $ac_status); } &&
17265 { ac_try='test -s conftest.$ac_objext'
17266 { (eval echo "$as_me:17266: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17269 echo "$as_me:17269: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17274 echo "$as_me: failed program was:" >&5
17275 cat conftest.$ac_ext >&5
17278 rm -f conftest.$ac_objext conftest.$ac_ext
17279 echo "$as_me:17279: result: $cf_result" >&5
17280 echo "${ECHO_T}$cf_result" >&6
17282 if test $cf_result = yes ; then
17284 cf_result=`echo "have_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17286 cat >>confdefs.h <<EOF
17287 #define $cf_result 1
17291 echo "$as_me:17291: checking for data $cf_data in library" >&5
17292 echo $ECHO_N "checking for data $cf_data in library... $ECHO_C" >&6
17293 # BSD linkers insist on making weak linkage, but resolve at runtime.
17294 if test "$cross_compiling" = yes; then
17297 cat >conftest.$ac_ext <<_ACEOF
17298 #line 17298 "configure"
17299 #include "confdefs.h"
17301 #ifdef HAVE_XCURSES
17302 #include <xcurses.h>
17303 char * XCursesProgramName = "test";
17305 #include <${cf_cv_ncurses_header:-curses.h}>
17306 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17307 #include <ncursesw/term.h>
17308 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17309 #include <ncurses/term.h>
17310 #elif defined(HAVE_TERM_H)
17315 extern char $cf_data;
17321 void *foo = &($cf_data);
17322 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17323 ${cf_cv_main_return:-return}(foo == 0);
17330 rm -f conftest.$ac_objext conftest$ac_exeext
17331 if { (eval echo "$as_me:17331: \"$ac_link\"") >&5
17332 (eval $ac_link) 2>&5
17334 echo "$as_me:17334: \$? = $ac_status" >&5
17335 (exit $ac_status); } &&
17336 { ac_try='test -s conftest$ac_exeext'
17337 { (eval echo "$as_me:17337: \"$ac_try\"") >&5
17338 (eval $ac_try) 2>&5
17340 echo "$as_me:17340: \$? = $ac_status" >&5
17341 (exit $ac_status); }; }; then
17344 echo "$as_me: failed program was:" >&5
17345 cat conftest.$ac_ext >&5
17348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17351 cat >conftest.$ac_ext <<_ACEOF
17352 #line 17352 "configure"
17353 #include "confdefs.h"
17355 #ifdef HAVE_XCURSES
17356 #include <xcurses.h>
17357 char * XCursesProgramName = "test";
17359 #include <${cf_cv_ncurses_header:-curses.h}>
17360 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17361 #include <ncursesw/term.h>
17362 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17363 #include <ncurses/term.h>
17364 #elif defined(HAVE_TERM_H)
17369 extern char $cf_data;
17372 void *foo = &($cf_data);
17373 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17374 ${cf_cv_main_return:-return}(foo == 0);
17377 rm -f conftest$ac_exeext
17378 if { (eval echo "$as_me:17378: \"$ac_link\"") >&5
17379 (eval $ac_link) 2>&5
17381 echo "$as_me:17381: \$? = $ac_status" >&5
17382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17383 { (eval echo "$as_me:17383: \"$ac_try\"") >&5
17384 (eval $ac_try) 2>&5
17386 echo "$as_me:17386: \$? = $ac_status" >&5
17387 (exit $ac_status); }; }; then
17391 echo "$as_me: program exited with status $ac_status" >&5
17392 echo "$as_me: failed program was:" >&5
17393 cat conftest.$ac_ext >&5
17396 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17398 echo "$as_me:17398: result: $cf_result" >&5
17399 echo "${ECHO_T}$cf_result" >&6
17400 if test $cf_result = yes ; then
17402 cf_result=`echo "decl_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17404 cat >>confdefs.h <<EOF
17405 #define $cf_result 1
17408 # do not exit loop here, since we prefer system's declarations
17413 for cf_data in boolfnames
17415 echo "$as_me:17415: checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
17416 echo $ECHO_N "checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
17418 cat >conftest.$ac_ext <<_ACEOF
17419 #line 17419 "configure"
17420 #include "confdefs.h"
17422 #ifdef HAVE_XCURSES
17423 #include <xcurses.h>
17424 char * XCursesProgramName = "test";
17426 #include <${cf_cv_ncurses_header:-curses.h}>
17427 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17428 #include <ncursesw/term.h>
17429 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17430 #include <ncurses/term.h>
17431 #elif defined(HAVE_TERM_H)
17440 void *foo = &($cf_data)
17446 rm -f conftest.$ac_objext
17447 if { (eval echo "$as_me:17447: \"$ac_compile\"") >&5
17448 (eval $ac_compile) 2>&5
17450 echo "$as_me:17450: \$? = $ac_status" >&5
17451 (exit $ac_status); } &&
17452 { ac_try='test -s conftest.$ac_objext'
17453 { (eval echo "$as_me:17453: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17456 echo "$as_me:17456: \$? = $ac_status" >&5
17457 (exit $ac_status); }; }; then
17461 echo "$as_me: failed program was:" >&5
17462 cat conftest.$ac_ext >&5
17465 rm -f conftest.$ac_objext conftest.$ac_ext
17466 echo "$as_me:17466: result: $cf_result" >&5
17467 echo "${ECHO_T}$cf_result" >&6
17469 if test $cf_result = yes ; then
17471 cf_result=`echo "have_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17473 cat >>confdefs.h <<EOF
17474 #define $cf_result 1
17478 echo "$as_me:17478: checking for data $cf_data in library" >&5
17479 echo $ECHO_N "checking for data $cf_data in library... $ECHO_C" >&6
17480 # BSD linkers insist on making weak linkage, but resolve at runtime.
17481 if test "$cross_compiling" = yes; then
17484 cat >conftest.$ac_ext <<_ACEOF
17485 #line 17485 "configure"
17486 #include "confdefs.h"
17488 #ifdef HAVE_XCURSES
17489 #include <xcurses.h>
17490 char * XCursesProgramName = "test";
17492 #include <${cf_cv_ncurses_header:-curses.h}>
17493 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17494 #include <ncursesw/term.h>
17495 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17496 #include <ncurses/term.h>
17497 #elif defined(HAVE_TERM_H)
17502 extern char $cf_data;
17508 void *foo = &($cf_data);
17509 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17510 ${cf_cv_main_return:-return}(foo == 0);
17517 rm -f conftest.$ac_objext conftest$ac_exeext
17518 if { (eval echo "$as_me:17518: \"$ac_link\"") >&5
17519 (eval $ac_link) 2>&5
17521 echo "$as_me:17521: \$? = $ac_status" >&5
17522 (exit $ac_status); } &&
17523 { ac_try='test -s conftest$ac_exeext'
17524 { (eval echo "$as_me:17524: \"$ac_try\"") >&5
17525 (eval $ac_try) 2>&5
17527 echo "$as_me:17527: \$? = $ac_status" >&5
17528 (exit $ac_status); }; }; then
17531 echo "$as_me: failed program was:" >&5
17532 cat conftest.$ac_ext >&5
17535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17538 cat >conftest.$ac_ext <<_ACEOF
17539 #line 17539 "configure"
17540 #include "confdefs.h"
17542 #ifdef HAVE_XCURSES
17543 #include <xcurses.h>
17544 char * XCursesProgramName = "test";
17546 #include <${cf_cv_ncurses_header:-curses.h}>
17547 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17548 #include <ncursesw/term.h>
17549 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17550 #include <ncurses/term.h>
17551 #elif defined(HAVE_TERM_H)
17556 extern char $cf_data;
17559 void *foo = &($cf_data);
17560 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17561 ${cf_cv_main_return:-return}(foo == 0);
17564 rm -f conftest$ac_exeext
17565 if { (eval echo "$as_me:17565: \"$ac_link\"") >&5
17566 (eval $ac_link) 2>&5
17568 echo "$as_me:17568: \$? = $ac_status" >&5
17569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17570 { (eval echo "$as_me:17570: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17573 echo "$as_me:17573: \$? = $ac_status" >&5
17574 (exit $ac_status); }; }; then
17578 echo "$as_me: program exited with status $ac_status" >&5
17579 echo "$as_me: failed program was:" >&5
17580 cat conftest.$ac_ext >&5
17583 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17585 echo "$as_me:17585: result: $cf_result" >&5
17586 echo "${ECHO_T}$cf_result" >&6
17587 if test $cf_result = yes ; then
17589 cf_result=`echo "decl_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17591 cat >>confdefs.h <<EOF
17592 #define $cf_result 1
17595 # do not exit loop here, since we prefer system's declarations
17600 for cf_data in ttytype
17602 echo "$as_me:17602: checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
17603 echo $ECHO_N "checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
17605 cat >conftest.$ac_ext <<_ACEOF
17606 #line 17606 "configure"
17607 #include "confdefs.h"
17609 #ifdef HAVE_XCURSES
17610 #include <xcurses.h>
17611 char * XCursesProgramName = "test";
17613 #include <${cf_cv_ncurses_header:-curses.h}>
17614 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17615 #include <ncursesw/term.h>
17616 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17617 #include <ncurses/term.h>
17618 #elif defined(HAVE_TERM_H)
17627 void *foo = &($cf_data)
17633 rm -f conftest.$ac_objext
17634 if { (eval echo "$as_me:17634: \"$ac_compile\"") >&5
17635 (eval $ac_compile) 2>&5
17637 echo "$as_me:17637: \$? = $ac_status" >&5
17638 (exit $ac_status); } &&
17639 { ac_try='test -s conftest.$ac_objext'
17640 { (eval echo "$as_me:17640: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17643 echo "$as_me:17643: \$? = $ac_status" >&5
17644 (exit $ac_status); }; }; then
17648 echo "$as_me: failed program was:" >&5
17649 cat conftest.$ac_ext >&5
17652 rm -f conftest.$ac_objext conftest.$ac_ext
17653 echo "$as_me:17653: result: $cf_result" >&5
17654 echo "${ECHO_T}$cf_result" >&6
17656 if test $cf_result = yes ; then
17658 cf_result=`echo "have_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17660 cat >>confdefs.h <<EOF
17661 #define $cf_result 1
17665 echo "$as_me:17665: checking for data $cf_data in library" >&5
17666 echo $ECHO_N "checking for data $cf_data in library... $ECHO_C" >&6
17667 # BSD linkers insist on making weak linkage, but resolve at runtime.
17668 if test "$cross_compiling" = yes; then
17671 cat >conftest.$ac_ext <<_ACEOF
17672 #line 17672 "configure"
17673 #include "confdefs.h"
17675 #ifdef HAVE_XCURSES
17676 #include <xcurses.h>
17677 char * XCursesProgramName = "test";
17679 #include <${cf_cv_ncurses_header:-curses.h}>
17680 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17681 #include <ncursesw/term.h>
17682 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17683 #include <ncurses/term.h>
17684 #elif defined(HAVE_TERM_H)
17689 extern char $cf_data;
17695 void *foo = &($cf_data);
17696 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17697 ${cf_cv_main_return:-return}(foo == 0);
17704 rm -f conftest.$ac_objext conftest$ac_exeext
17705 if { (eval echo "$as_me:17705: \"$ac_link\"") >&5
17706 (eval $ac_link) 2>&5
17708 echo "$as_me:17708: \$? = $ac_status" >&5
17709 (exit $ac_status); } &&
17710 { ac_try='test -s conftest$ac_exeext'
17711 { (eval echo "$as_me:17711: \"$ac_try\"") >&5
17712 (eval $ac_try) 2>&5
17714 echo "$as_me:17714: \$? = $ac_status" >&5
17715 (exit $ac_status); }; }; then
17718 echo "$as_me: failed program was:" >&5
17719 cat conftest.$ac_ext >&5
17722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17725 cat >conftest.$ac_ext <<_ACEOF
17726 #line 17726 "configure"
17727 #include "confdefs.h"
17729 #ifdef HAVE_XCURSES
17730 #include <xcurses.h>
17731 char * XCursesProgramName = "test";
17733 #include <${cf_cv_ncurses_header:-curses.h}>
17734 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17735 #include <ncursesw/term.h>
17736 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17737 #include <ncurses/term.h>
17738 #elif defined(HAVE_TERM_H)
17743 extern char $cf_data;
17746 void *foo = &($cf_data);
17747 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17748 ${cf_cv_main_return:-return}(foo == 0);
17751 rm -f conftest$ac_exeext
17752 if { (eval echo "$as_me:17752: \"$ac_link\"") >&5
17753 (eval $ac_link) 2>&5
17755 echo "$as_me:17755: \$? = $ac_status" >&5
17756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17757 { (eval echo "$as_me:17757: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17760 echo "$as_me:17760: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17765 echo "$as_me: program exited with status $ac_status" >&5
17766 echo "$as_me: failed program was:" >&5
17767 cat conftest.$ac_ext >&5
17770 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17772 echo "$as_me:17772: result: $cf_result" >&5
17773 echo "${ECHO_T}$cf_result" >&6
17774 if test $cf_result = yes ; then
17776 cf_result=`echo "decl_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17778 cat >>confdefs.h <<EOF
17779 #define $cf_result 1
17782 # do not exit loop here, since we prefer system's declarations
17787 if ( test "$GCC" = yes || test "$GXX" = yes )
17789 echo "$as_me:17789: checking if you want to turn on gcc warnings" >&5
17790 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
17792 # Check whether --enable-warnings or --disable-warnings was given.
17793 if test "${enable_warnings+set}" = set; then
17794 enableval="$enable_warnings"
17795 test "$enableval" != yes && enableval=no
17796 if test "$enableval" != "no" ; then
17806 echo "$as_me:17806: result: $with_warnings" >&5
17807 echo "${ECHO_T}$with_warnings" >&6
17808 if test "$with_warnings" = "yes"
17811 if test "$GCC" = yes
17813 cat > conftest.i <<EOF
17815 #define GCC_PRINTF 0
17818 #define GCC_SCANF 0
17820 #ifndef GCC_NORETURN
17821 #define GCC_NORETURN /* nothing */
17824 #define GCC_UNUSED /* nothing */
17827 if test "$GCC" = yes
17829 { echo "$as_me:17829: checking for $CC __attribute__ directives..." >&5
17830 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17831 cat > conftest.$ac_ext <<EOF
17832 #line 17832 "${as_me:-configure}"
17833 #include "confdefs.h"
17834 #include "conftest.h"
17835 #include "conftest.i"
17837 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17839 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17842 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17844 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17846 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17847 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
17848 extern void foo(void) GCC_NORETURN;
17849 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
17851 cf_printf_attribute=no
17852 cf_scanf_attribute=no
17853 for cf_attribute in scanf printf unused noreturn
17856 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17858 cf_directive="__attribute__(($cf_attribute))"
17859 echo "checking for $CC $cf_directive" 1>&5
17861 case $cf_attribute in
17863 cf_printf_attribute=yes
17864 cat >conftest.h <<EOF
17865 #define GCC_$cf_ATTRIBUTE 1
17869 cf_scanf_attribute=yes
17870 cat >conftest.h <<EOF
17871 #define GCC_$cf_ATTRIBUTE 1
17875 cat >conftest.h <<EOF
17876 #define GCC_$cf_ATTRIBUTE $cf_directive
17881 if { (eval echo "$as_me:17881: \"$ac_compile\"") >&5
17882 (eval $ac_compile) 2>&5
17884 echo "$as_me:17884: \$? = $ac_status" >&5
17885 (exit $ac_status); }; then
17886 test -n "$verbose" && echo "$as_me:17886: result: ... $cf_attribute" >&5
17887 echo "${ECHO_T}... $cf_attribute" >&6
17888 cat conftest.h >>confdefs.h
17889 case $cf_attribute in
17892 cat >>confdefs.h <<EOF
17893 #define GCC_NORETURN $cf_directive
17898 cf_value='/* nothing */'
17899 if test "$cf_printf_attribute" != no ; then
17900 cf_value='__attribute__((format(printf,fmt,var)))'
17902 cat >>confdefs.h <<\EOF
17903 #define GCC_PRINTF 1
17908 cat >>confdefs.h <<EOF
17909 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17914 cf_value='/* nothing */'
17915 if test "$cf_scanf_attribute" != no ; then
17916 cf_value='__attribute__((format(scanf,fmt,var)))'
17918 cat >>confdefs.h <<\EOF
17919 #define GCC_SCANF 1
17924 cat >>confdefs.h <<EOF
17925 #define GCC_SCANFLIKE(fmt,var) $cf_value
17931 cat >>confdefs.h <<EOF
17932 #define GCC_UNUSED $cf_directive
17940 fgrep define conftest.i >>confdefs.h
17947 if test "$GCC" = yes ; then
17950 echo "$as_me:17950: checking if this is really Intel C compiler" >&5
17951 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
17952 cf_save_CFLAGS="$CFLAGS"
17953 CFLAGS="$CFLAGS -no-gcc"
17954 cat >conftest.$ac_ext <<_ACEOF
17955 #line 17955 "configure"
17956 #include "confdefs.h"
17962 #ifdef __INTEL_COMPILER
17971 rm -f conftest.$ac_objext
17972 if { (eval echo "$as_me:17972: \"$ac_compile\"") >&5
17973 (eval $ac_compile) 2>&5
17975 echo "$as_me:17975: \$? = $ac_status" >&5
17976 (exit $ac_status); } &&
17977 { ac_try='test -s conftest.$ac_objext'
17978 { (eval echo "$as_me:17978: \"$ac_try\"") >&5
17979 (eval $ac_try) 2>&5
17981 echo "$as_me:17981: \$? = $ac_status" >&5
17982 (exit $ac_status); }; }; then
17984 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
17987 echo "$as_me: failed program was:" >&5
17988 cat conftest.$ac_ext >&5
17990 rm -f conftest.$ac_objext conftest.$ac_ext
17991 CFLAGS="$cf_save_CFLAGS"
17992 echo "$as_me:17992: result: $INTEL_COMPILER" >&5
17993 echo "${ECHO_T}$INTEL_COMPILER" >&6
18000 if test "$GCC" = yes ; then
18001 echo "$as_me:18001: checking if this is really Clang C compiler" >&5
18002 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
18003 cf_save_CFLAGS="$CFLAGS"
18004 CFLAGS="$CFLAGS -Qunused-arguments"
18005 cat >conftest.$ac_ext <<_ACEOF
18006 #line 18006 "configure"
18007 #include "confdefs.h"
18022 rm -f conftest.$ac_objext
18023 if { (eval echo "$as_me:18023: \"$ac_compile\"") >&5
18024 (eval $ac_compile) 2>&5
18026 echo "$as_me:18026: \$? = $ac_status" >&5
18027 (exit $ac_status); } &&
18028 { ac_try='test -s conftest.$ac_objext'
18029 { (eval echo "$as_me:18029: \"$ac_try\"") >&5
18030 (eval $ac_try) 2>&5
18032 echo "$as_me:18032: \$? = $ac_status" >&5
18033 (exit $ac_status); }; }; then
18035 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
18038 echo "$as_me: failed program was:" >&5
18039 cat conftest.$ac_ext >&5
18041 rm -f conftest.$ac_objext conftest.$ac_ext
18042 CFLAGS="$cf_save_CFLAGS"
18043 echo "$as_me:18043: result: $CLANG_COMPILER" >&5
18044 echo "${ECHO_T}$CLANG_COMPILER" >&6
18047 cat > conftest.$ac_ext <<EOF
18048 #line 18048 "${as_me:-configure}"
18049 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
18052 if test "$INTEL_COMPILER" = yes
18054 # The "-wdXXX" options suppress warnings:
18055 # remark #1419: external declaration in primary source file
18056 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
18057 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
18058 # remark #193: zero used for undefined preprocessing identifier
18059 # remark #593: variable "curs_sb_left_arrow" was set but never used
18060 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
18061 # remark #869: parameter "tw" was never referenced
18062 # remark #981: operands are evaluated in unspecified order
18063 # warning #279: controlling expression is constant
18065 { echo "$as_me:18065: checking for $CC warning options..." >&5
18066 echo "$as_me: checking for $CC warning options..." >&6;}
18067 cf_save_CFLAGS="$CFLAGS"
18068 EXTRA_CFLAGS="-Wall"
18080 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
18081 if { (eval echo "$as_me:18081: \"$ac_compile\"") >&5
18082 (eval $ac_compile) 2>&5
18084 echo "$as_me:18084: \$? = $ac_status" >&5
18085 (exit $ac_status); }; then
18086 test -n "$verbose" && echo "$as_me:18086: result: ... -$cf_opt" >&5
18087 echo "${ECHO_T}... -$cf_opt" >&6
18088 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
18091 CFLAGS="$cf_save_CFLAGS"
18093 elif test "$GCC" = yes
18095 { echo "$as_me:18095: checking for $CC warning options..." >&5
18096 echo "$as_me: checking for $CC warning options..." >&6;}
18097 cf_save_CFLAGS="$CFLAGS"
18100 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
18101 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
18102 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
18103 for cf_opt in W Wall \
18104 Wbad-function-cast \
18107 Wdeclaration-after-statement \
18110 Wmissing-declarations \
18111 Wmissing-prototypes \
18115 Wstrict-prototypes \
18116 Wundef $cf_gcc_warnings $cf_warn_CONST
18118 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
18119 if { (eval echo "$as_me:18119: \"$ac_compile\"") >&5
18120 (eval $ac_compile) 2>&5
18122 echo "$as_me:18122: \$? = $ac_status" >&5
18123 (exit $ac_status); }; then
18124 test -n "$verbose" && echo "$as_me:18124: result: ... -$cf_opt" >&5
18125 echo "${ECHO_T}... -$cf_opt" >&6
18128 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
18131 case $GCC_VERSION in
18133 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
18135 echo "${as_me:-configure}:18135: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
18141 case $GCC_VERSION in
18143 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
18145 echo "${as_me:-configure}:18145: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
18151 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
18154 CFLAGS="$cf_save_CFLAGS"
18161 echo "$as_me:18161: checking if you want to use dmalloc for testing" >&5
18162 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
18164 # Check whether --with-dmalloc or --without-dmalloc was given.
18165 if test "${with_dmalloc+set}" = set; then
18166 withval="$with_dmalloc"
18168 cat >>confdefs.h <<EOF
18169 #define USE_DMALLOC 1
18172 : ${with_cflags:=-g}
18173 : ${with_no_leaks:=yes}
18178 echo "$as_me:18178: result: ${with_dmalloc:-no}" >&5
18179 echo "${ECHO_T}${with_dmalloc:-no}" >&6
18181 case .$with_cflags in
18191 cf_new_extra_cppflags=
18193 for cf_add_cflags in -g
18195 case $cf_fix_cppflags in
18197 case $cf_add_cflags in
18198 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18199 case $cf_add_cflags in
18201 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18203 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18204 && test -z "${cf_tst_cflags}" \
18205 && cf_fix_cppflags=yes
18207 if test $cf_fix_cppflags = yes ; then
18209 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18210 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18213 elif test "${cf_tst_cflags}" = "\"'" ; then
18215 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18216 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18222 case "$CPPFLAGS" in
18226 case $cf_add_cflags in
18228 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18230 CPPFLAGS=`echo "$CPPFLAGS" | \
18231 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18232 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18237 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18238 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18245 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18246 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18253 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18254 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18256 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18258 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18259 && test -z "${cf_tst_cflags}" \
18260 && cf_fix_cppflags=no
18265 if test -n "$cf_new_cflags" ; then
18267 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18268 CFLAGS="${CFLAGS}$cf_new_cflags"
18272 if test -n "$cf_new_cppflags" ; then
18274 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18275 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18279 if test -n "$cf_new_extra_cppflags" ; then
18281 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18282 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18291 if test "$with_dmalloc" = yes ; then
18292 echo "$as_me:18292: checking for dmalloc.h" >&5
18293 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
18294 if test "${ac_cv_header_dmalloc_h+set}" = set; then
18295 echo $ECHO_N "(cached) $ECHO_C" >&6
18297 cat >conftest.$ac_ext <<_ACEOF
18298 #line 18298 "configure"
18299 #include "confdefs.h"
18300 #include <dmalloc.h>
18302 if { (eval echo "$as_me:18302: \"$ac_cpp conftest.$ac_ext\"") >&5
18303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18305 egrep -v '^ *\+' conftest.er1 >conftest.err
18307 cat conftest.err >&5
18308 echo "$as_me:18308: \$? = $ac_status" >&5
18309 (exit $ac_status); } >/dev/null; then
18310 if test -s conftest.err; then
18311 ac_cpp_err=$ac_c_preproc_warn_flag
18318 if test -z "$ac_cpp_err"; then
18319 ac_cv_header_dmalloc_h=yes
18321 echo "$as_me: failed program was:" >&5
18322 cat conftest.$ac_ext >&5
18323 ac_cv_header_dmalloc_h=no
18325 rm -f conftest.err conftest.$ac_ext
18327 echo "$as_me:18327: result: $ac_cv_header_dmalloc_h" >&5
18328 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
18329 if test $ac_cv_header_dmalloc_h = yes; then
18331 echo "$as_me:18331: checking for dmalloc_debug in -ldmalloc" >&5
18332 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
18333 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
18334 echo $ECHO_N "(cached) $ECHO_C" >&6
18336 ac_check_lib_save_LIBS=$LIBS
18337 LIBS="-ldmalloc $LIBS"
18338 cat >conftest.$ac_ext <<_ACEOF
18339 #line 18339 "configure"
18340 #include "confdefs.h"
18342 /* Override any gcc2 internal prototype to avoid an error. */
18346 /* We use char because int might match the return type of a gcc2
18347 builtin and then its argument prototype would still apply. */
18348 char dmalloc_debug ();
18357 rm -f conftest.$ac_objext conftest$ac_exeext
18358 if { (eval echo "$as_me:18358: \"$ac_link\"") >&5
18359 (eval $ac_link) 2>&5
18361 echo "$as_me:18361: \$? = $ac_status" >&5
18362 (exit $ac_status); } &&
18363 { ac_try='test -s conftest$ac_exeext'
18364 { (eval echo "$as_me:18364: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18367 echo "$as_me:18367: \$? = $ac_status" >&5
18368 (exit $ac_status); }; }; then
18369 ac_cv_lib_dmalloc_dmalloc_debug=yes
18371 echo "$as_me: failed program was:" >&5
18372 cat conftest.$ac_ext >&5
18373 ac_cv_lib_dmalloc_dmalloc_debug=no
18375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18376 LIBS=$ac_check_lib_save_LIBS
18378 echo "$as_me:18378: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
18379 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
18380 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
18381 cat >>confdefs.h <<EOF
18382 #define HAVE_LIBDMALLOC 1
18385 LIBS="-ldmalloc $LIBS"
18393 echo "$as_me:18393: checking if you want to use dbmalloc for testing" >&5
18394 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
18396 # Check whether --with-dbmalloc or --without-dbmalloc was given.
18397 if test "${with_dbmalloc+set}" = set; then
18398 withval="$with_dbmalloc"
18400 cat >>confdefs.h <<EOF
18401 #define USE_DBMALLOC 1
18404 : ${with_cflags:=-g}
18405 : ${with_no_leaks:=yes}
18410 echo "$as_me:18410: result: ${with_dbmalloc:-no}" >&5
18411 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
18413 case .$with_cflags in
18423 cf_new_extra_cppflags=
18425 for cf_add_cflags in -g
18427 case $cf_fix_cppflags in
18429 case $cf_add_cflags in
18430 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18431 case $cf_add_cflags in
18433 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18435 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18436 && test -z "${cf_tst_cflags}" \
18437 && cf_fix_cppflags=yes
18439 if test $cf_fix_cppflags = yes ; then
18441 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18442 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18445 elif test "${cf_tst_cflags}" = "\"'" ; then
18447 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18448 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18454 case "$CPPFLAGS" in
18458 case $cf_add_cflags in
18460 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18462 CPPFLAGS=`echo "$CPPFLAGS" | \
18463 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18464 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18469 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18470 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18477 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18478 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18485 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18486 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18488 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18490 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18491 && test -z "${cf_tst_cflags}" \
18492 && cf_fix_cppflags=no
18497 if test -n "$cf_new_cflags" ; then
18499 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18500 CFLAGS="${CFLAGS}$cf_new_cflags"
18504 if test -n "$cf_new_cppflags" ; then
18506 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18507 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18511 if test -n "$cf_new_extra_cppflags" ; then
18513 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18514 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18523 if test "$with_dbmalloc" = yes ; then
18524 echo "$as_me:18524: checking for dbmalloc.h" >&5
18525 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
18526 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18529 cat >conftest.$ac_ext <<_ACEOF
18530 #line 18530 "configure"
18531 #include "confdefs.h"
18532 #include <dbmalloc.h>
18534 if { (eval echo "$as_me:18534: \"$ac_cpp conftest.$ac_ext\"") >&5
18535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18537 egrep -v '^ *\+' conftest.er1 >conftest.err
18539 cat conftest.err >&5
18540 echo "$as_me:18540: \$? = $ac_status" >&5
18541 (exit $ac_status); } >/dev/null; then
18542 if test -s conftest.err; then
18543 ac_cpp_err=$ac_c_preproc_warn_flag
18550 if test -z "$ac_cpp_err"; then
18551 ac_cv_header_dbmalloc_h=yes
18553 echo "$as_me: failed program was:" >&5
18554 cat conftest.$ac_ext >&5
18555 ac_cv_header_dbmalloc_h=no
18557 rm -f conftest.err conftest.$ac_ext
18559 echo "$as_me:18559: result: $ac_cv_header_dbmalloc_h" >&5
18560 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
18561 if test $ac_cv_header_dbmalloc_h = yes; then
18563 echo "$as_me:18563: checking for debug_malloc in -ldbmalloc" >&5
18564 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
18565 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
18566 echo $ECHO_N "(cached) $ECHO_C" >&6
18568 ac_check_lib_save_LIBS=$LIBS
18569 LIBS="-ldbmalloc $LIBS"
18570 cat >conftest.$ac_ext <<_ACEOF
18571 #line 18571 "configure"
18572 #include "confdefs.h"
18574 /* Override any gcc2 internal prototype to avoid an error. */
18578 /* We use char because int might match the return type of a gcc2
18579 builtin and then its argument prototype would still apply. */
18580 char debug_malloc ();
18589 rm -f conftest.$ac_objext conftest$ac_exeext
18590 if { (eval echo "$as_me:18590: \"$ac_link\"") >&5
18591 (eval $ac_link) 2>&5
18593 echo "$as_me:18593: \$? = $ac_status" >&5
18594 (exit $ac_status); } &&
18595 { ac_try='test -s conftest$ac_exeext'
18596 { (eval echo "$as_me:18596: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18599 echo "$as_me:18599: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 ac_cv_lib_dbmalloc_debug_malloc=yes
18603 echo "$as_me: failed program was:" >&5
18604 cat conftest.$ac_ext >&5
18605 ac_cv_lib_dbmalloc_debug_malloc=no
18607 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18608 LIBS=$ac_check_lib_save_LIBS
18610 echo "$as_me:18610: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
18611 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
18612 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
18613 cat >>confdefs.h <<EOF
18614 #define HAVE_LIBDBMALLOC 1
18617 LIBS="-ldbmalloc $LIBS"
18625 echo "$as_me:18625: checking if you want to use valgrind for testing" >&5
18626 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
18628 # Check whether --with-valgrind or --without-valgrind was given.
18629 if test "${with_valgrind+set}" = set; then
18630 withval="$with_valgrind"
18632 cat >>confdefs.h <<EOF
18633 #define USE_VALGRIND 1
18636 : ${with_cflags:=-g}
18637 : ${with_no_leaks:=yes}
18642 echo "$as_me:18642: result: ${with_valgrind:-no}" >&5
18643 echo "${ECHO_T}${with_valgrind:-no}" >&6
18645 case .$with_cflags in
18655 cf_new_extra_cppflags=
18657 for cf_add_cflags in -g
18659 case $cf_fix_cppflags in
18661 case $cf_add_cflags in
18662 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18663 case $cf_add_cflags in
18665 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18667 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18668 && test -z "${cf_tst_cflags}" \
18669 && cf_fix_cppflags=yes
18671 if test $cf_fix_cppflags = yes ; then
18673 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18674 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18677 elif test "${cf_tst_cflags}" = "\"'" ; then
18679 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18680 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18686 case "$CPPFLAGS" in
18690 case $cf_add_cflags in
18692 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18694 CPPFLAGS=`echo "$CPPFLAGS" | \
18695 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18696 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18701 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18702 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18709 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18710 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18717 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18718 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18720 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18722 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18723 && test -z "${cf_tst_cflags}" \
18724 && cf_fix_cppflags=no
18729 if test -n "$cf_new_cflags" ; then
18731 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18732 CFLAGS="${CFLAGS}$cf_new_cflags"
18736 if test -n "$cf_new_cppflags" ; then
18738 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18739 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18743 if test -n "$cf_new_extra_cppflags" ; then
18745 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18746 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18755 echo "$as_me:18755: checking if you want to perform memory-leak testing" >&5
18756 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18758 # Check whether --enable-leaks or --disable-leaks was given.
18759 if test "${enable_leaks+set}" = set; then
18760 enableval="$enable_leaks"
18761 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18763 : ${with_no_leaks:=no}
18765 echo "$as_me:18765: result: $with_no_leaks" >&5
18766 echo "${ECHO_T}$with_no_leaks" >&6
18768 if test "$with_no_leaks" = yes ; then
18770 cat >>confdefs.h <<\EOF
18774 cat >>confdefs.h <<\EOF
18775 #define YY_NO_LEAKS 1
18781 echo "$as_me:18781: checking for an rpath option" >&5
18782 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
18783 case $cf_cv_system_name in
18785 if test "$GCC" = yes; then
18786 LD_RPATH_OPT="-Wl,-rpath,"
18788 LD_RPATH_OPT="-rpath "
18791 (linux*|gnu*|k*bsd*-gnu|freebsd*)
18792 LD_RPATH_OPT="-Wl,-rpath,"
18794 (openbsd[2-9].*|mirbsd*)
18795 LD_RPATH_OPT="-Wl,-rpath,"
18798 LD_RPATH_OPT="-rpath "
18801 LD_RPATH_OPT="-Wl,-rpath,"
18804 LD_RPATH_OPT="-rpath "
18812 echo "$as_me:18812: result: $LD_RPATH_OPT" >&5
18813 echo "${ECHO_T}$LD_RPATH_OPT" >&6
18815 case "x$LD_RPATH_OPT" in
18817 echo "$as_me:18817: checking if we need a space after rpath option" >&5
18818 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
18819 cf_save_LIBS="$LIBS"
18821 cf_add_libs="${LD_RPATH_OPT}$libdir"
18822 # Filter out duplicates - this happens with badly-designed ".pc" files...
18823 for cf_add_1lib in $LIBS
18825 for cf_add_2lib in $cf_add_libs
18827 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18833 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18835 LIBS="$cf_add_libs"
18837 cat >conftest.$ac_ext <<_ACEOF
18838 #line 18838 "configure"
18839 #include "confdefs.h"
18849 rm -f conftest.$ac_objext conftest$ac_exeext
18850 if { (eval echo "$as_me:18850: \"$ac_link\"") >&5
18851 (eval $ac_link) 2>&5
18853 echo "$as_me:18853: \$? = $ac_status" >&5
18854 (exit $ac_status); } &&
18855 { ac_try='test -s conftest$ac_exeext'
18856 { (eval echo "$as_me:18856: \"$ac_try\"") >&5
18857 (eval $ac_try) 2>&5
18859 echo "$as_me:18859: \$? = $ac_status" >&5
18860 (exit $ac_status); }; }; then
18863 echo "$as_me: failed program was:" >&5
18864 cat conftest.$ac_ext >&5
18867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18868 LIBS="$cf_save_LIBS"
18869 echo "$as_me:18869: result: $cf_rpath_space" >&5
18870 echo "${ECHO_T}$cf_rpath_space" >&6
18871 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
18875 echo "$as_me:18875: checking if rpath-hack should be disabled" >&5
18876 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
18878 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
18879 if test "${enable_rpath_hack+set}" = set; then
18880 enableval="$enable_rpath_hack"
18881 test "$enableval" != no && enableval=yes
18882 if test "$enableval" != "yes" ; then
18883 cf_disable_rpath_hack=yes
18885 cf_disable_rpath_hack=no
18889 cf_disable_rpath_hack=no
18892 echo "$as_me:18892: result: $cf_disable_rpath_hack" >&5
18893 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
18894 if test "$cf_disable_rpath_hack" = no ; then
18896 echo "$as_me:18896: checking for updated LDFLAGS" >&5
18897 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
18898 if test -n "$LD_RPATH_OPT" ; then
18899 echo "$as_me:18899: result: maybe" >&5
18900 echo "${ECHO_T}maybe" >&6
18904 # Extract the first word of "$ac_prog", so it can be a program name with args.
18905 set dummy $ac_prog; ac_word=$2
18906 echo "$as_me:18906: checking for $ac_word" >&5
18907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18908 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
18909 echo $ECHO_N "(cached) $ECHO_C" >&6
18911 if test -n "$cf_ldd_prog"; then
18912 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
18914 ac_save_IFS=$IFS; IFS=$ac_path_separator
18916 for ac_dir in $ac_dummy; do
18918 test -z "$ac_dir" && ac_dir=.
18919 $as_executable_p "$ac_dir/$ac_word" || continue
18920 ac_cv_prog_cf_ldd_prog="$ac_prog"
18921 echo "$as_me:18921: found $ac_dir/$ac_word" >&5
18927 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
18928 if test -n "$cf_ldd_prog"; then
18929 echo "$as_me:18929: result: $cf_ldd_prog" >&5
18930 echo "${ECHO_T}$cf_ldd_prog" >&6
18932 echo "$as_me:18932: result: no" >&5
18933 echo "${ECHO_T}no" >&6
18936 test -n "$cf_ldd_prog" && break
18938 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
18940 cf_rpath_list="/usr/lib /lib"
18941 if test "$cf_ldd_prog" != no
18945 cat >conftest.$ac_ext <<_ACEOF
18946 #line 18946 "configure"
18947 #include "confdefs.h"
18957 rm -f conftest.$ac_objext conftest$ac_exeext
18958 if { (eval echo "$as_me:18958: \"$ac_link\"") >&5
18959 (eval $ac_link) 2>&5
18961 echo "$as_me:18961: \$? = $ac_status" >&5
18962 (exit $ac_status); } &&
18963 { ac_try='test -s conftest$ac_exeext'
18964 { (eval echo "$as_me:18964: \"$ac_try\"") >&5
18965 (eval $ac_try) 2>&5
18967 echo "$as_me:18967: \$? = $ac_status" >&5
18968 (exit $ac_status); }; }; then
18969 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
18970 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
18972 echo "$as_me: failed program was:" >&5
18973 cat conftest.$ac_ext >&5
18975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18977 # If we passed the link-test, but get a "not found" on a given library,
18978 # this could be due to inept reconfiguration of gcc to make it only
18979 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
18980 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
18981 # /usr/local libraries.
18982 if test -n "$cf_rpath_oops"
18984 for cf_rpath_src in $cf_rpath_oops
18986 for cf_rpath_dir in \
18991 if test -f $cf_rpath_dir/lib/$cf_rpath_src
18993 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
18995 echo "${as_me:-configure}:18995: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
18997 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
19005 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
19007 echo "${as_me:-configure}:19007: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
19009 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
19011 echo "${as_me:-configure}:19011: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
19014 for cf_rpath_src in $LDFLAGS
19016 case $cf_rpath_src in
19019 # check if this refers to a directory which we will ignore
19021 if test -n "$cf_rpath_list"
19023 for cf_rpath_item in $cf_rpath_list
19025 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
19033 if test "$cf_rpath_skip" = no
19035 # transform the option
19036 if test "$LD_RPATH_OPT" = "-R " ; then
19037 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
19039 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
19042 # if we have not already added this, add it now
19043 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
19044 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
19046 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
19048 echo "${as_me:-configure}:19048: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
19050 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
19055 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
19057 LDFLAGS=$cf_rpath_dst
19059 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
19061 echo "${as_me:-configure}:19061: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
19063 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
19065 echo "${as_me:-configure}:19065: testing ...checking LIBS $LIBS ..." 1>&5
19068 for cf_rpath_src in $LIBS
19070 case $cf_rpath_src in
19073 # check if this refers to a directory which we will ignore
19075 if test -n "$cf_rpath_list"
19077 for cf_rpath_item in $cf_rpath_list
19079 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
19087 if test "$cf_rpath_skip" = no
19089 # transform the option
19090 if test "$LD_RPATH_OPT" = "-R " ; then
19091 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
19093 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
19096 # if we have not already added this, add it now
19097 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
19098 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
19100 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
19102 echo "${as_me:-configure}:19102: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
19104 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
19109 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
19113 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
19115 echo "${as_me:-configure}:19115: testing ...checked LIBS $LIBS ..." 1>&5
19117 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
19119 echo "${as_me:-configure}:19119: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
19122 echo "$as_me:19122: result: no" >&5
19123 echo "${ECHO_T}no" >&6
19131 ac_config_files="$ac_config_files Makefile"
19132 ac_config_commands="$ac_config_commands default"
19133 cat >confcache <<\_ACEOF
19134 # This file is a shell script that caches the results of configure
19135 # tests run on this system so they can be shared between configure
19136 # scripts and configure runs, see configure's option --config-cache.
19137 # It is not useful on other systems. If it contains results you don't
19138 # want to keep, you may remove or edit it.
19140 # config.status only pays attention to the cache file if you give it
19141 # the --recheck option to rerun configure.
19143 # `ac_cv_env_foo' variables (set or unset) will be overriden when
19144 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19145 # following values.
19149 # The following way of writing the cache mishandles newlines in values,
19150 # but we know of no workaround that is simple, portable, and efficient.
19151 # So, don't put newlines in cache variables' values.
19152 # Ultrix sh set writes to stderr and can't be redirected directly,
19153 # and sets the high bit in the cache file unless we assign to the vars.
19156 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19158 # `set' does not quote correctly, so add quotes (double-quote
19159 # substitution turns \\\\ into \\, and sed turns \\ into \).
19162 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19165 # `set' quotes correctly as required by POSIX, so do not add quotes.
19167 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19174 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19176 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19178 if cmp -s $cache_file confcache; then :; else
19179 if test -w $cache_file; then
19180 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19181 cat confcache >$cache_file
19183 echo "not updating unwritable cache $cache_file"
19188 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19189 # Let make expand exec_prefix.
19190 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19192 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19193 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19194 # trailing colons and then remove the whole line if VPATH becomes empty
19195 # (actually we leave an empty line to preserve line numbers).
19196 if test "x$srcdir" = x.; then
19197 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19198 s/:*\$(srcdir):*/:/;
19199 s/:*\${srcdir}:*/:/;
19201 s/^\([^=]*=[ ]*\):*/\1/;
19207 DEFS=-DHAVE_CONFIG_H
19209 : ${CONFIG_STATUS=./config.status}
19210 ac_clean_files_save=$ac_clean_files
19211 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19212 { echo "$as_me:19212: creating $CONFIG_STATUS" >&5
19213 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19214 cat >$CONFIG_STATUS <<_ACEOF
19216 # Generated automatically by configure.
19217 # Run this file to recreate the current configuration.
19218 # Compiler output produced by configure, useful for debugging
19219 # configure, is in config.log if it exists.
19222 SHELL=\${CONFIG_SHELL-$SHELL}
19223 ac_cs_invocation="\$0 \$@"
19227 cat >>$CONFIG_STATUS <<\_ACEOF
19228 # Be Bourne compatible
19229 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19232 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19236 # Name of the executable.
19237 as_me=`echo "$0" |sed 's,.*[\\/],,'`
19239 if expr a : '\(a\)' >/dev/null 2>&1; then
19245 rm -f conf$$ conf$$.exe conf$$.file
19247 if ln -s conf$$.file conf$$ 2>/dev/null; then
19248 # We could just check for DJGPP; but this test a) works b) is more generic
19249 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19250 if test -f conf$$.exe; then
19251 # Don't use ln at all; we don't have any links
19256 elif ln conf$$.file conf$$ 2>/dev/null; then
19261 rm -f conf$$ conf$$.exe conf$$.file
19263 as_executable_p="test -f"
19265 # Support unset when possible.
19266 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19273 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
19274 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
19275 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
19276 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
19277 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
19278 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
19279 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
19280 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
19283 # We need space, tab and new line, in precisely that order.
19289 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
19295 # Files that config.status was made for.
19296 if test -n "$ac_config_files"; then
19297 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19300 if test -n "$ac_config_headers"; then
19301 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19304 if test -n "$ac_config_links"; then
19305 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19308 if test -n "$ac_config_commands"; then
19309 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19312 cat >>$CONFIG_STATUS <<\EOF
19315 \`$as_me' instantiates files from templates according to the
19316 current configuration.
19318 Usage: $0 [OPTIONS] [FILE]...
19320 -h, --help print this help, then exit
19321 -V, --version print version number, then exit
19322 -d, --debug don't remove temporary files
19323 --recheck update $as_me by reconfiguring in the same conditions
19324 --file=FILE[:TEMPLATE]
19325 instantiate the configuration file FILE
19326 --header=FILE[:TEMPLATE]
19327 instantiate the configuration header FILE
19329 Configuration files:
19332 Configuration headers:
19335 Configuration commands:
19338 Report bugs to <dickey@invisible-island.net>."
19341 cat >>$CONFIG_STATUS <<EOF
19344 configured by $0, generated by GNU Autoconf 2.52.20170501,
19345 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19347 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19348 Free Software Foundation, Inc.
19349 This config.status script is free software; the Free Software Foundation
19350 gives unlimited permission to copy, distribute and modify it."
19355 cat >>$CONFIG_STATUS <<\EOF
19356 # If no file are specified by the user, then we need to provide default
19357 # value. By we need to know if files were specified by the user.
19363 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19364 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19366 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19370 *) # This is not an option, so the user has probably given explicit
19372 ac_need_defaults=false;;
19376 # Handling of the options.
19378 cat >>$CONFIG_STATUS <<EOF
19379 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19380 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19381 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19383 cat >>$CONFIG_STATUS <<\EOF
19384 --version | --vers* | -V )
19385 echo "$ac_cs_version"; exit 0 ;;
19387 # Conflict between --help and --header
19388 { { echo "$as_me:19388: error: ambiguous option: $1
19389 Try \`$0 --help' for more information." >&5
19390 echo "$as_me: error: ambiguous option: $1
19391 Try \`$0 --help' for more information." >&2;}
19392 { (exit 1); exit 1; }; };;
19393 --help | --hel | -h )
19394 echo "$ac_cs_usage"; exit 0 ;;
19395 --debug | --d* | -d )
19397 --file | --fil | --fi | --f )
19399 CONFIG_FILES="$CONFIG_FILES $1"
19400 ac_need_defaults=false;;
19401 --header | --heade | --head | --hea )
19403 CONFIG_HEADERS="$CONFIG_HEADERS $1"
19404 ac_need_defaults=false;;
19406 # This is an error.
19407 -*) { { echo "$as_me:19407: error: unrecognized option: $1
19408 Try \`$0 --help' for more information." >&5
19409 echo "$as_me: error: unrecognized option: $1
19410 Try \`$0 --help' for more information." >&2;}
19411 { (exit 1); exit 1; }; } ;;
19413 *) ac_config_targets="$ac_config_targets $1" ;;
19422 ## ----------------------- ##
19423 ## Running config.status. ##
19424 ## ----------------------- ##
19426 This file was extended by $as_me 2.52.20170501, executed with
19427 CONFIG_FILES = $CONFIG_FILES
19428 CONFIG_HEADERS = $CONFIG_HEADERS
19429 CONFIG_LINKS = $CONFIG_LINKS
19430 CONFIG_COMMANDS = $CONFIG_COMMANDS
19431 > $ac_cs_invocation
19432 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19437 cat >>$CONFIG_STATUS <<EOF
19439 # INIT-COMMANDS section.
19449 cat >>$CONFIG_STATUS <<\EOF
19450 for ac_config_target in $ac_config_targets
19452 case "$ac_config_target" in
19453 # Handling of arguments.
19454 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19455 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19456 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
19457 *) { { echo "$as_me:19457: error: invalid argument: $ac_config_target" >&5
19458 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19459 { (exit 1); exit 1; }; };;
19463 # If the user did not use the arguments to specify the items to instantiate,
19464 # then the envvar interface is used. Set only those that are not.
19465 # We use the long form for the default assignment because of an extremely
19466 # bizarre bug on SunOS 4.1.3.
19467 if $ac_need_defaults; then
19468 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19469 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19470 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19473 # Create a temporary directory, and hook for its removal unless debugging.
19476 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19477 trap '{ (exit 1); exit 1; }' 1 2 13 15
19480 # Create a (secure) tmp directory for tmp files.
19483 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
19484 test -n "$tmp" && test -d "$tmp"
19487 tmp=$TMPDIR/cs$$-$RANDOM
19488 (umask 077 && mkdir $tmp)
19491 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
19492 { (exit 1); exit 1; }
19497 cat >>$CONFIG_STATUS <<EOF
19500 # CONFIG_FILES section.
19503 # No need to generate the scripts if there are no CONFIG_FILES.
19504 # This happens for instance when ./config.status config.h
19505 if test -n "\$CONFIG_FILES"; then
19506 # Protect against being on the right side of a sed subst in config.status.
19507 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19508 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19509 s,@SHELL@,$SHELL,;t t
19510 s,@exec_prefix@,$exec_prefix,;t t
19511 s,@prefix@,$prefix,;t t
19512 s,@program_transform_name@,$program_transform_name,;t t
19513 s,@bindir@,$bindir,;t t
19514 s,@sbindir@,$sbindir,;t t
19515 s,@libexecdir@,$libexecdir,;t t
19516 s,@datarootdir@,$datarootdir,;t t
19517 s,@datadir@,$datadir,;t t
19518 s,@sysconfdir@,$sysconfdir,;t t
19519 s,@sharedstatedir@,$sharedstatedir,;t t
19520 s,@localstatedir@,$localstatedir,;t t
19521 s,@libdir@,$libdir,;t t
19522 s,@includedir@,$includedir,;t t
19523 s,@oldincludedir@,$oldincludedir,;t t
19524 s,@infodir@,$infodir,;t t
19525 s,@mandir@,$mandir,;t t
19526 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19527 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19528 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19529 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19530 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19531 s,@build_alias@,$build_alias,;t t
19532 s,@host_alias@,$host_alias,;t t
19533 s,@target_alias@,$target_alias,;t t
19534 s,@ECHO_C@,$ECHO_C,;t t
19535 s,@ECHO_N@,$ECHO_N,;t t
19536 s,@ECHO_T@,$ECHO_T,;t t
19537 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19538 s,@DEFS@,$DEFS,;t t
19539 s,@LIBS@,$LIBS,;t t
19540 s,@build@,$build,;t t
19541 s,@build_cpu@,$build_cpu,;t t
19542 s,@build_vendor@,$build_vendor,;t t
19543 s,@build_os@,$build_os,;t t
19544 s,@host@,$host,;t t
19545 s,@host_cpu@,$host_cpu,;t t
19546 s,@host_vendor@,$host_vendor,;t t
19547 s,@host_os@,$host_os,;t t
19548 s,@SET_MAKE@,$SET_MAKE,;t t
19550 s,@CFLAGS@,$CFLAGS,;t t
19551 s,@LDFLAGS@,$LDFLAGS,;t t
19552 s,@CPPFLAGS@,$CPPFLAGS,;t t
19553 s,@ac_ct_CC@,$ac_ct_CC,;t t
19554 s,@EXEEXT@,$EXEEXT,;t t
19555 s,@OBJEXT@,$OBJEXT,;t t
19556 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
19559 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19560 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19561 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19562 s,@LINT@,$LINT,;t t
19563 s,@LINT_OPTS@,$LINT_OPTS,;t t
19564 s,@CTAGS@,$CTAGS,;t t
19565 s,@ETAGS@,$ETAGS,;t t
19566 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
19567 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
19568 s,@MATH_LIB@,$MATH_LIB,;t t
19569 s,@top_builddir@,$top_builddir,;t t
19570 s,@CC_G_OPT@,$CC_G_OPT,;t t
19571 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
19572 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
19573 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
19574 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
19576 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
19577 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
19578 s,@LD_MODEL@,$LD_MODEL,;t t
19579 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
19580 s,@LIBTOOL@,$LIBTOOL,;t t
19581 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
19582 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
19583 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
19584 s,@LIB_LINK@,$LIB_LINK,;t t
19585 s,@LINK_TESTS@,$LINK_TESTS,;t t
19586 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19587 s,@PACKAGE@,$PACKAGE,;t t
19588 s,@PTHREAD@,$PTHREAD,;t t
19589 s,@TEST_ARGS@,$TEST_ARGS,;t t
19590 s,@TEST_DEPS@,$TEST_DEPS,;t t
19591 s,@TEST_LIBS@,$TEST_LIBS,;t t
19592 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
19593 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
19594 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
19595 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
19596 s,@includesubdir@,$includesubdir,;t t
19597 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19598 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
19599 s,@ECHO_LT@,$ECHO_LT,;t t
19600 s,@ECHO_LD@,$ECHO_LD,;t t
19601 s,@RULE_CC@,$RULE_CC,;t t
19602 s,@SHOW_CC@,$SHOW_CC,;t t
19603 s,@ECHO_CC@,$ECHO_CC,;t t
19604 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
19605 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
19606 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
19607 s,@X_CFLAGS@,$X_CFLAGS,;t t
19608 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19609 s,@X_LIBS@,$X_LIBS,;t t
19610 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19611 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
19612 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
19613 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
19614 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
19615 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
19620 cat >>$CONFIG_STATUS <<\EOF
19621 # Split the substitutions into bite-sized pieces for seds with
19622 # small command number limits, like on Digital OSF/1 and HP-UX.
19623 ac_max_sed_lines=48
19624 ac_sed_frag=1 # Number of current file.
19625 ac_beg=1 # First line for current file.
19626 ac_end=$ac_max_sed_lines # Line after last line for current file.
19629 while $ac_more_lines; do
19630 if test $ac_beg -gt 1; then
19631 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19633 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19635 if test ! -s $tmp/subs.frag; then
19636 ac_more_lines=false
19638 # The purpose of the label and of the branching condition is to
19639 # speed up the sed processing (if there are no `@' at all, there
19640 # is no need to browse any of the substitutions).
19641 # These are the two extra sed commands mentioned above.
19643 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19644 # It is possible to make a multiline substitution using escaped newlines.
19645 # Ensure that we do not split the substitution between script fragments.
19647 ac_END=`expr $ac_end + $ac_max_sed_lines`
19648 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
19649 if test -s $tmp/subs.next; then
19650 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
19651 if test ! -s $tmp/subs.edit; then
19652 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
19653 if test ! -s $tmp/subs.edit; then
19654 if test $ac_beg -gt 1; then
19655 ac_end=`expr $ac_end - 1`
19662 if test -z "$ac_sed_cmds"; then
19663 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19665 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19667 ac_sed_frag=`expr $ac_sed_frag + 1`
19669 ac_end=`expr $ac_end + $ac_max_sed_lines`
19672 if test -z "$ac_sed_cmds"; then
19675 fi # test -n "$CONFIG_FILES"
19678 cat >>$CONFIG_STATUS <<\EOF
19679 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19680 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19682 - | *:- | *:-:* ) # input from stdin
19684 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19685 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19686 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19688 * ) ac_file_in=$ac_file.in ;;
19691 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19692 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19693 X"$ac_file" : 'X\(//\)[^/]' \| \
19694 X"$ac_file" : 'X\(//\)$' \| \
19695 X"$ac_file" : 'X\(/\)' \| \
19696 . : '\(.\)' 2>/dev/null ||
19698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19700 /^X\(\/\/\)$/{ s//\1/; q; }
19701 /^X\(\/\).*/{ s//\1/; q; }
19703 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19704 { case "$ac_dir" in
19705 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19709 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19710 case $as_mkdir_dir in
19711 # Skip DOS drivespec
19712 ?:) as_incr_dir=$as_mkdir_dir ;;
19714 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19715 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19720 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
19721 # A "../" for each directory in $ac_dir_suffix.
19722 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
19724 ac_dir_suffix= ac_dots=
19729 if test -z "$ac_dots"; then
19732 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
19734 [\\/]* | ?:[\\/]* )
19735 ac_srcdir=$srcdir$ac_dir_suffix;
19736 ac_top_srcdir=$srcdir ;;
19737 *) # Relative path.
19738 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
19739 ac_top_srcdir=$ac_dots$srcdir ;;
19743 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19744 *) ac_INSTALL=$ac_dots$INSTALL ;;
19747 if test x"$ac_file" != x-; then
19748 { echo "$as_me:19748: creating $ac_file" >&5
19749 echo "$as_me: creating $ac_file" >&6;}
19752 # Let's still pretend it is `configure' which instantiates (i.e., don't
19753 # use $as_me), people would be surprised to read:
19754 # /* config.h. Generated automatically by config.status. */
19755 configure_input="Generated automatically from `echo $ac_file_in |
19756 sed 's,.*/,,'` by configure."
19758 # First look for the input files in the build tree, otherwise in the
19760 ac_file_inputs=`IFS=:
19761 for f in $ac_file_in; do
19763 -) echo $tmp/stdin ;;
19765 # Absolute (can't be DOS-style, as IFS=:)
19766 test -f "$f" || { { echo "$as_me:19766: error: cannot find input file: $f" >&5
19767 echo "$as_me: error: cannot find input file: $f" >&2;}
19768 { (exit 1); exit 1; }; }
19771 if test -f "$f"; then
19774 elif test -f "$srcdir/$f"; then
19779 { { echo "$as_me:19779: error: cannot find input file: $f" >&5
19780 echo "$as_me: error: cannot find input file: $f" >&2;}
19781 { (exit 1); exit 1; }; }
19784 done` || { (exit 1); exit 1; }
19786 cat >>$CONFIG_STATUS <<\EOF
19787 ac_warn_datarootdir=no
19788 if test x"$ac_file" != x-; then
19789 for ac_item in $ac_file_inputs
19791 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
19792 if test -n "$ac_seen"; then
19793 ac_used=`grep '@datarootdir@' $ac_item`
19794 if test -z "$ac_used"; then
19795 { echo "$as_me:19795: WARNING: datarootdir was used implicitly but not set:
19797 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
19799 ac_warn_datarootdir=yes
19802 ac_seen=`grep '${datarootdir}' $ac_item`
19803 if test -n "$ac_seen"; then
19804 { echo "$as_me:19804: WARNING: datarootdir was used explicitly but not set:
19806 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
19808 ac_warn_datarootdir=yes
19813 if test "x$ac_warn_datarootdir" = xyes; then
19814 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
19818 cat >>$CONFIG_STATUS <<EOF
19822 cat >>$CONFIG_STATUS <<\EOF
19824 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19825 s,@configure_input@,$configure_input,;t t
19826 s,@srcdir@,$ac_srcdir,;t t
19827 s,@top_srcdir@,$ac_top_srcdir,;t t
19828 s,@INSTALL@,$ac_INSTALL,;t t
19829 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19831 if test x"$ac_file" != x-; then
19832 cp $tmp/out $ac_file
19834 for ac_name in prefix exec_prefix datarootdir
19836 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
19837 if test -n "$ac_seen"; then
19838 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
19839 if test -z "$ac_init"; then
19840 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
19841 { echo "$as_me:19841: WARNING: Variable $ac_name is used but was not set:
19843 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
19848 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
19849 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
19850 if test -s $tmp/out; then
19851 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
19852 { echo "$as_me:19852: WARNING: Some variables may not be substituted:
19854 echo "$as_me: WARNING: Some variables may not be substituted:
19864 cat >>$CONFIG_STATUS <<\EOF
19867 # CONFIG_HEADER section.
19870 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19871 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19873 # ac_d sets the value in "#define NAME VALUE" lines.
19874 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19875 ac_dB='[ ].*$,\1#\2'
19878 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19879 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19880 ac_iB='\([ ]\),\1#\2define\3'
19883 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19884 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19885 ac_uB='$,\1#\2define\3'
19889 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19890 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19892 - | *:- | *:-:* ) # input from stdin
19894 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19895 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19896 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19897 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19898 * ) ac_file_in=$ac_file.in ;;
19901 test x"$ac_file" != x- && { echo "$as_me:19901: creating $ac_file" >&5
19902 echo "$as_me: creating $ac_file" >&6;}
19904 # First look for the input files in the build tree, otherwise in the
19906 ac_file_inputs=`IFS=:
19907 for f in $ac_file_in; do
19909 -) echo $tmp/stdin ;;
19911 # Absolute (can't be DOS-style, as IFS=:)
19912 test -f "$f" || { { echo "$as_me:19912: error: cannot find input file: $f" >&5
19913 echo "$as_me: error: cannot find input file: $f" >&2;}
19914 { (exit 1); exit 1; }; }
19917 if test -f "$f"; then
19920 elif test -f "$srcdir/$f"; then
19925 { { echo "$as_me:19925: error: cannot find input file: $f" >&5
19926 echo "$as_me: error: cannot find input file: $f" >&2;}
19927 { (exit 1); exit 1; }; }
19930 done` || { (exit 1); exit 1; }
19931 # Remove the trailing spaces.
19932 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19936 # Transform confdefs.h into a list of #define's. We won't use it as a sed
19937 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
19938 # be either 'cat' or 'sort'.
19939 cat confdefs.h | uniq >conftest.vals
19941 # Break up conftest.vals because some shells have a limit on
19942 # the size of here documents, and old seds have small limits too.
19944 rm -f conftest.tail
19945 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
19946 while grep . conftest.vals >/dev/null
19948 # Write chunks of a limited-size here document to conftest.frag.
19949 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
19950 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
19951 echo 'CEOF' >> $CONFIG_STATUS
19952 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19953 rm -f conftest.vals
19954 mv conftest.tail conftest.vals
19956 rm -f conftest.vals
19958 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
19960 echo ' cat >> conftest.edit <<CEOF
19961 /@DEFS@/r conftest.frag
19964 sed -f conftest.edit $tmp/in > $tmp/out
19966 mv $tmp/out $tmp/in
19967 rm -f conftest.edit conftest.frag
19968 ' >> $CONFIG_STATUS
19970 cat >>$CONFIG_STATUS <<\EOF
19971 # Let's still pretend it is `configure' which instantiates (i.e., don't
19972 # use $as_me), people would be surprised to read:
19973 # /* config.h. Generated automatically by config.status. */
19974 if test x"$ac_file" = x-; then
19975 echo "/* Generated automatically by configure. */" >$tmp/config.h
19977 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
19979 cat $tmp/in >>$tmp/config.h
19981 if test x"$ac_file" != x-; then
19982 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19983 { echo "$as_me:19983: $ac_file is unchanged" >&5
19984 echo "$as_me: $ac_file is unchanged" >&6;}
19986 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19987 X"$ac_file" : 'X\(//\)[^/]' \| \
19988 X"$ac_file" : 'X\(//\)$' \| \
19989 X"$ac_file" : 'X\(/\)' \| \
19990 . : '\(.\)' 2>/dev/null ||
19992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19993 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19994 /^X\(\/\/\)$/{ s//\1/; q; }
19995 /^X\(\/\).*/{ s//\1/; q; }
19997 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19998 { case "$ac_dir" in
19999 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
20003 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
20004 case $as_mkdir_dir in
20005 # Skip DOS drivespec
20006 ?:) as_incr_dir=$as_mkdir_dir ;;
20008 as_incr_dir=$as_incr_dir/$as_mkdir_dir
20009 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
20016 mv $tmp/config.h $ac_file
20020 rm -f $tmp/config.h
20024 cat >>$CONFIG_STATUS <<\EOF
20026 # CONFIG_COMMANDS section.
20028 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20029 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20030 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20037 if test ! -d $srcdir/$cf_dir; then
20039 elif test -f $srcdir/$cf_dir/programs; then
20040 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
20044 cat >>Makefile <<TEST_EOF
20046 # These rules are generated so we do not rely on suffix rules, which do not
20047 # work consistently for different make-programs (the '\$(MODEL)/' confuses
20048 # some, and the '\$x' confuses others).
20051 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
20054 cat >>Makefile <<TEST_EOF
20056 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
20057 \$(srcdir)/test.priv.h \\
20060 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) \$(srcdir)/$N.c
20064 if test -f ../config.guess && test -f ../config.sub
20066 cat >>Makefile <<TEST_EOF
20068 # if we used CF_INHERIT for getting these files, we can remove them
20070 rm -f config.guess config.sub
20078 cat >>$CONFIG_STATUS <<\EOF
20080 { (exit 0); exit 0; }
20082 chmod +x $CONFIG_STATUS
20083 ac_clean_files=$ac_clean_files_save
20085 # configure is writing to config.log, and then calls config.status.
20086 # config.status does its own redirection, appending to config.log.
20087 # Unfortunately, on DOS this fails, as config.log is still kept open
20088 # by configure, so config.status won't be able to write to it; its
20089 # output is simply discarded. So we exec the FD to /dev/null,
20090 # effectively closing config.log, so it can be properly (re)opened and
20091 # appended to by config.status. When coming back to configure, we
20092 # need to make the FD available again.
20093 if test "$no_create" != yes; then
20096 $SHELL $CONFIG_STATUS || ac_cs_success=false
20098 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20099 # would make configure fail if this is the last instruction.
20100 $ac_cs_success || { (exit 1); exit 1; }