2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20150926.
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.20150926. 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_flags=`echo "$CC" | sed -e 's/^.*[ ]\(-[^ ]\)/\1/'`
1947 CC=`echo "$CC " | sed -e 's/[ ]-[^ ].*$//' -e 's/[ ]*$//'`
1948 for cf_arg in $cf_flags
1956 cf_new_extra_cppflags=
1958 for cf_add_cflags in $cf_flags
1960 case $cf_fix_cppflags in
1962 case $cf_add_cflags in
1963 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1964 case $cf_add_cflags in
1966 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1968 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1969 && test -z "${cf_tst_cflags}" \
1970 && cf_fix_cppflags=yes
1972 if test $cf_fix_cppflags = yes ; then
1973 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1975 elif test "${cf_tst_cflags}" = "\"'" ; then
1976 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1985 case $cf_add_cflags in
1987 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1989 CPPFLAGS=`echo "$CPPFLAGS" | \
1990 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1991 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1995 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2000 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2005 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2007 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2009 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2010 && test -z "${cf_tst_cflags}" \
2011 && cf_fix_cppflags=no
2016 if test -n "$cf_new_cflags" ; then
2018 CFLAGS="$CFLAGS $cf_new_cflags"
2021 if test -n "$cf_new_cppflags" ; then
2023 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2026 if test -n "$cf_new_extra_cppflags" ; then
2028 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2037 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2039 echo "${as_me:-configure}:2039: testing resulting CC: '$CC' ..." 1>&5
2041 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2043 echo "${as_me:-configure}:2043: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2045 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2047 echo "${as_me:-configure}:2047: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2051 echo "$as_me:2051: result: ok" >&5
2052 echo "${ECHO_T}ok" >&6
2057 ac_cpp='$CPP $CPPFLAGS'
2058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2061 ac_main_return=return
2062 echo "$as_me:2062: checking how to run the C preprocessor" >&5
2063 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2064 # On Suns, sometimes $CPP names a directory.
2065 if test -n "$CPP" && test -d "$CPP"; then
2068 if test -z "$CPP"; then
2069 if test "${ac_cv_prog_CPP+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 # Double quotes because CPP needs to be expanded
2073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2076 for ac_c_preproc_warn_flag in '' yes
2078 # Use a header file that comes with gcc, so configuring glibc
2079 # with a fresh cross-compiler works.
2080 # On the NeXT, cc -E runs the code through the compiler's parser,
2081 # not just through cpp. "Syntax error" is here to catch this case.
2082 cat >conftest.$ac_ext <<_ACEOF
2083 #line 2083 "configure"
2084 #include "confdefs.h"
2088 if { (eval echo "$as_me:2088: \"$ac_cpp conftest.$ac_ext\"") >&5
2089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2091 egrep -v '^ *\+' conftest.er1 >conftest.err
2093 cat conftest.err >&5
2094 echo "$as_me:2094: \$? = $ac_status" >&5
2095 (exit $ac_status); } >/dev/null; then
2096 if test -s conftest.err; then
2097 ac_cpp_err=$ac_c_preproc_warn_flag
2104 if test -z "$ac_cpp_err"; then
2107 echo "$as_me: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2109 # Broken: fails on valid input.
2112 rm -f conftest.err conftest.$ac_ext
2114 # OK, works on sane cases. Now check whether non-existent headers
2115 # can be detected and how.
2116 cat >conftest.$ac_ext <<_ACEOF
2117 #line 2117 "configure"
2118 #include "confdefs.h"
2119 #include <ac_nonexistent.h>
2121 if { (eval echo "$as_me:2121: \"$ac_cpp conftest.$ac_ext\"") >&5
2122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2124 egrep -v '^ *\+' conftest.er1 >conftest.err
2126 cat conftest.err >&5
2127 echo "$as_me:2127: \$? = $ac_status" >&5
2128 (exit $ac_status); } >/dev/null; then
2129 if test -s conftest.err; then
2130 ac_cpp_err=$ac_c_preproc_warn_flag
2137 if test -z "$ac_cpp_err"; then
2138 # Broken: success on invalid input.
2141 echo "$as_me: failed program was:" >&5
2142 cat conftest.$ac_ext >&5
2143 # Passes both tests.
2147 rm -f conftest.err conftest.$ac_ext
2150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2151 rm -f conftest.err conftest.$ac_ext
2152 if $ac_preproc_ok; then
2164 echo "$as_me:2164: result: $CPP" >&5
2165 echo "${ECHO_T}$CPP" >&6
2167 for ac_c_preproc_warn_flag in '' yes
2169 # Use a header file that comes with gcc, so configuring glibc
2170 # with a fresh cross-compiler works.
2171 # On the NeXT, cc -E runs the code through the compiler's parser,
2172 # not just through cpp. "Syntax error" is here to catch this case.
2173 cat >conftest.$ac_ext <<_ACEOF
2174 #line 2174 "configure"
2175 #include "confdefs.h"
2179 if { (eval echo "$as_me:2179: \"$ac_cpp conftest.$ac_ext\"") >&5
2180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2182 egrep -v '^ *\+' conftest.er1 >conftest.err
2184 cat conftest.err >&5
2185 echo "$as_me:2185: \$? = $ac_status" >&5
2186 (exit $ac_status); } >/dev/null; then
2187 if test -s conftest.err; then
2188 ac_cpp_err=$ac_c_preproc_warn_flag
2195 if test -z "$ac_cpp_err"; then
2198 echo "$as_me: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2200 # Broken: fails on valid input.
2203 rm -f conftest.err conftest.$ac_ext
2205 # OK, works on sane cases. Now check whether non-existent headers
2206 # can be detected and how.
2207 cat >conftest.$ac_ext <<_ACEOF
2208 #line 2208 "configure"
2209 #include "confdefs.h"
2210 #include <ac_nonexistent.h>
2212 if { (eval echo "$as_me:2212: \"$ac_cpp conftest.$ac_ext\"") >&5
2213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2215 egrep -v '^ *\+' conftest.er1 >conftest.err
2217 cat conftest.err >&5
2218 echo "$as_me:2218: \$? = $ac_status" >&5
2219 (exit $ac_status); } >/dev/null; then
2220 if test -s conftest.err; then
2221 ac_cpp_err=$ac_c_preproc_warn_flag
2228 if test -z "$ac_cpp_err"; then
2229 # Broken: success on invalid input.
2232 echo "$as_me: failed program was:" >&5
2233 cat conftest.$ac_ext >&5
2234 # Passes both tests.
2238 rm -f conftest.err conftest.$ac_ext
2241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2242 rm -f conftest.err conftest.$ac_ext
2243 if $ac_preproc_ok; then
2246 { { echo "$as_me:2246: error: C preprocessor \"$CPP\" fails sanity check" >&5
2247 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2248 { (exit 1); exit 1; }; }
2252 ac_cpp='$CPP $CPPFLAGS'
2253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256 ac_main_return=return
2258 for ac_prog in mawk gawk nawk awk
2260 # Extract the first word of "$ac_prog", so it can be a program name with args.
2261 set dummy $ac_prog; ac_word=$2
2262 echo "$as_me:2262: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264 if test "${ac_cv_prog_AWK+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 if test -n "$AWK"; then
2268 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2270 ac_save_IFS=$IFS; IFS=$ac_path_separator
2272 for ac_dir in $ac_dummy; do
2274 test -z "$ac_dir" && ac_dir=.
2275 $as_executable_p "$ac_dir/$ac_word" || continue
2276 ac_cv_prog_AWK="$ac_prog"
2277 echo "$as_me:2277: found $ac_dir/$ac_word" >&5
2284 if test -n "$AWK"; then
2285 echo "$as_me:2285: result: $AWK" >&5
2286 echo "${ECHO_T}$AWK" >&6
2288 echo "$as_me:2288: result: no" >&5
2289 echo "${ECHO_T}no" >&6
2292 test -n "$AWK" && break
2295 # Find a good install program. We prefer a C program (faster),
2296 # so one script is as good as another. But avoid the broken or
2297 # incompatible versions:
2298 # SysV /etc/install, /usr/sbin/install
2299 # SunOS /usr/etc/install
2300 # IRIX /sbin/install
2302 # AmigaOS /C/install, which installs bootblocks on floppy discs
2303 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2304 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2305 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2306 # ./install, which can be erroneously created by make from ./install.sh.
2307 echo "$as_me:2307: checking for a BSD compatible install" >&5
2308 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2309 if test -z "$INSTALL"; then
2310 if test "${ac_cv_path_install+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 ac_save_IFS=$IFS; IFS=$ac_path_separator
2314 for ac_dir in $PATH; do
2316 # Account for people who put trailing slashes in PATH elements.
2318 / | ./ | .// | /cC/* \
2319 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2322 # OSF1 and SCO ODT 3.0 have their own names for install.
2323 # Don't use installbsd from OSF since it installs stuff as root
2325 for ac_prog in ginstall scoinst install; do
2326 if $as_executable_p "$ac_dir/$ac_prog"; then
2327 if test $ac_prog = install &&
2328 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2329 # AIX install. It has an incompatible calling convention.
2331 elif test $ac_prog = install &&
2332 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2333 # program-specific install script used by HP pwplus--don't use.
2336 ac_cv_path_install="$ac_dir/$ac_prog -c"
2346 if test "${ac_cv_path_install+set}" = set; then
2347 INSTALL=$ac_cv_path_install
2349 # As a last resort, use the slow shell script. We don't cache a
2350 # path for INSTALL within a source directory, because that will
2351 # break other packages using the cache if that directory is
2352 # removed, or if the path is relative.
2353 INSTALL=$ac_install_sh
2356 echo "$as_me:2356: result: $INSTALL" >&5
2357 echo "${ECHO_T}$INSTALL" >&6
2359 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2360 # It thinks the first close brace ends the variable substitution.
2361 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2363 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2365 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2371 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2372 test -z "$cf_dir" && cf_dir=.
2373 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2377 for ac_prog in lint cppcheck splint
2379 # Extract the first word of "$ac_prog", so it can be a program name with args.
2380 set dummy $ac_prog; ac_word=$2
2381 echo "$as_me:2381: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2383 if test "${ac_cv_prog_LINT+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 if test -n "$LINT"; then
2387 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2389 ac_save_IFS=$IFS; IFS=$ac_path_separator
2391 for ac_dir in $ac_dummy; do
2393 test -z "$ac_dir" && ac_dir=.
2394 $as_executable_p "$ac_dir/$ac_word" || continue
2395 ac_cv_prog_LINT="$ac_prog"
2396 echo "$as_me:2396: found $ac_dir/$ac_word" >&5
2402 LINT=$ac_cv_prog_LINT
2403 if test -n "$LINT"; then
2404 echo "$as_me:2404: result: $LINT" >&5
2405 echo "${ECHO_T}$LINT" >&6
2407 echo "$as_me:2407: result: no" >&5
2408 echo "${ECHO_T}no" >&6
2411 test -n "$LINT" && break
2414 echo "$as_me:2414: checking if filesystem supports mixed-case filenames" >&5
2415 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2416 if test "${cf_cv_mixedcase+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 if test "$cross_compiling" = yes ; then
2421 case $target_alias in
2422 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2430 rm -f conftest CONFTEST
2432 if test -f CONFTEST ; then
2437 rm -f conftest CONFTEST
2441 echo "$as_me:2441: result: $cf_cv_mixedcase" >&5
2442 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2443 test "$cf_cv_mixedcase" = yes &&
2444 cat >>confdefs.h <<\EOF
2445 #define MIXEDCASE_FILENAMES 1
2448 for ac_prog in exctags ctags
2450 # Extract the first word of "$ac_prog", so it can be a program name with args.
2451 set dummy $ac_prog; ac_word=$2
2452 echo "$as_me:2452: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2454 if test "${ac_cv_prog_CTAGS+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 if test -n "$CTAGS"; then
2458 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2460 ac_save_IFS=$IFS; IFS=$ac_path_separator
2462 for ac_dir in $ac_dummy; do
2464 test -z "$ac_dir" && ac_dir=.
2465 $as_executable_p "$ac_dir/$ac_word" || continue
2466 ac_cv_prog_CTAGS="$ac_prog"
2467 echo "$as_me:2467: found $ac_dir/$ac_word" >&5
2473 CTAGS=$ac_cv_prog_CTAGS
2474 if test -n "$CTAGS"; then
2475 echo "$as_me:2475: result: $CTAGS" >&5
2476 echo "${ECHO_T}$CTAGS" >&6
2478 echo "$as_me:2478: result: no" >&5
2479 echo "${ECHO_T}no" >&6
2482 test -n "$CTAGS" && break
2485 for ac_prog in exetags etags
2487 # Extract the first word of "$ac_prog", so it can be a program name with args.
2488 set dummy $ac_prog; ac_word=$2
2489 echo "$as_me:2489: checking for $ac_word" >&5
2490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2491 if test "${ac_cv_prog_ETAGS+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 if test -n "$ETAGS"; then
2495 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2497 ac_save_IFS=$IFS; IFS=$ac_path_separator
2499 for ac_dir in $ac_dummy; do
2501 test -z "$ac_dir" && ac_dir=.
2502 $as_executable_p "$ac_dir/$ac_word" || continue
2503 ac_cv_prog_ETAGS="$ac_prog"
2504 echo "$as_me:2504: found $ac_dir/$ac_word" >&5
2510 ETAGS=$ac_cv_prog_ETAGS
2511 if test -n "$ETAGS"; then
2512 echo "$as_me:2512: result: $ETAGS" >&5
2513 echo "${ECHO_T}$ETAGS" >&6
2515 echo "$as_me:2515: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2519 test -n "$ETAGS" && break
2522 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2523 set dummy ${CTAGS:-ctags}; ac_word=$2
2524 echo "$as_me:2524: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 if test -n "$MAKE_LOWER_TAGS"; then
2530 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2532 ac_save_IFS=$IFS; IFS=$ac_path_separator
2534 for ac_dir in $ac_dummy; do
2536 test -z "$ac_dir" && ac_dir=.
2537 $as_executable_p "$ac_dir/$ac_word" || continue
2538 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2539 echo "$as_me:2539: found $ac_dir/$ac_word" >&5
2543 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2546 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2547 if test -n "$MAKE_LOWER_TAGS"; then
2548 echo "$as_me:2548: result: $MAKE_LOWER_TAGS" >&5
2549 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2551 echo "$as_me:2551: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2555 if test "$cf_cv_mixedcase" = yes ; then
2556 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2557 set dummy ${ETAGS:-etags}; ac_word=$2
2558 echo "$as_me:2558: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2560 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 if test -n "$MAKE_UPPER_TAGS"; then
2564 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2566 ac_save_IFS=$IFS; IFS=$ac_path_separator
2568 for ac_dir in $ac_dummy; do
2570 test -z "$ac_dir" && ac_dir=.
2571 $as_executable_p "$ac_dir/$ac_word" || continue
2572 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2573 echo "$as_me:2573: found $ac_dir/$ac_word" >&5
2577 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2580 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2581 if test -n "$MAKE_UPPER_TAGS"; then
2582 echo "$as_me:2582: result: $MAKE_UPPER_TAGS" >&5
2583 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2585 echo "$as_me:2585: result: no" >&5
2586 echo "${ECHO_T}no" >&6
2593 if test "$MAKE_UPPER_TAGS" = yes ; then
2599 if test "$MAKE_LOWER_TAGS" = yes ; then
2605 echo "$as_me:2605: checking if -lm needed for math functions" >&5
2606 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2607 if test "${cf_cv_need_libm+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 cat >conftest.$ac_ext <<_ACEOF
2612 #line 2612 "configure"
2613 #include "confdefs.h"
2622 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2627 rm -f conftest.$ac_objext conftest$ac_exeext
2628 if { (eval echo "$as_me:2628: \"$ac_link\"") >&5
2629 (eval $ac_link) 2>&5
2631 echo "$as_me:2631: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -s conftest$ac_exeext'
2634 { (eval echo "$as_me:2634: \"$ac_try\"") >&5
2637 echo "$as_me:2637: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2641 echo "$as_me: failed program was:" >&5
2642 cat conftest.$ac_ext >&5
2645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2647 echo "$as_me:2647: result: $cf_cv_need_libm" >&5
2648 echo "${ECHO_T}$cf_cv_need_libm" >&6
2649 if test "$cf_cv_need_libm" = yes
2657 CC_SHARED_OPTS=unknown
2658 CPPFLAGS="$CPPFLAGS"
2660 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2661 DFT_UPR_MODEL="NORMAL"
2674 PACKAGE="ncurses-examples"
2680 TINFO_LIBS='$(LIBS_CURSES)'
2681 cf_cv_abi_version=""
2682 cf_cv_rel_version=""
2688 if test "$GCC" = yes
2690 cat > conftest.i <<EOF
2692 #define GCC_PRINTF 0
2697 #ifndef GCC_NORETURN
2698 #define GCC_NORETURN /* nothing */
2701 #define GCC_UNUSED /* nothing */
2704 if test "$GCC" = yes
2706 { echo "$as_me:2706: checking for $CC __attribute__ directives..." >&5
2707 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2708 cat > conftest.$ac_ext <<EOF
2709 #line 2709 "${as_me:-configure}"
2710 #include "confdefs.h"
2711 #include "conftest.h"
2712 #include "conftest.i"
2714 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2716 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2719 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2721 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2723 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2724 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2725 extern void foo(void) GCC_NORETURN;
2726 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2728 cf_printf_attribute=no
2729 cf_scanf_attribute=no
2730 for cf_attribute in scanf printf unused noreturn
2733 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2735 cf_directive="__attribute__(($cf_attribute))"
2736 echo "checking for $CC $cf_directive" 1>&5
2738 case $cf_attribute in
2740 cf_printf_attribute=yes
2741 cat >conftest.h <<EOF
2742 #define GCC_$cf_ATTRIBUTE 1
2746 cf_scanf_attribute=yes
2747 cat >conftest.h <<EOF
2748 #define GCC_$cf_ATTRIBUTE 1
2752 cat >conftest.h <<EOF
2753 #define GCC_$cf_ATTRIBUTE $cf_directive
2758 if { (eval echo "$as_me:2758: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>&5
2761 echo "$as_me:2761: \$? = $ac_status" >&5
2762 (exit $ac_status); }; then
2763 test -n "$verbose" && echo "$as_me:2763: result: ... $cf_attribute" >&5
2764 echo "${ECHO_T}... $cf_attribute" >&6
2765 cat conftest.h >>confdefs.h
2766 case $cf_attribute in
2769 cat >>confdefs.h <<EOF
2770 #define GCC_NORETURN $cf_directive
2775 cf_value='/* nothing */'
2776 if test "$cf_printf_attribute" != no ; then
2777 cf_value='__attribute__((format(printf,fmt,var)))'
2779 cat >>confdefs.h <<\EOF
2780 #define GCC_PRINTF 1
2785 cat >>confdefs.h <<EOF
2786 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2791 cf_value='/* nothing */'
2792 if test "$cf_scanf_attribute" != no ; then
2793 cf_value='__attribute__((format(scanf,fmt,var)))'
2795 cat >>confdefs.h <<\EOF
2801 cat >>confdefs.h <<EOF
2802 #define GCC_SCANFLIKE(fmt,var) $cf_value
2808 cat >>confdefs.h <<EOF
2809 #define GCC_UNUSED $cf_directive
2817 fgrep define conftest.i >>confdefs.h
2822 echo "$as_me:2822: checking if you want to work around bogus compiler/loader warnings" >&5
2823 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
2825 # Check whether --enable-string-hacks or --disable-string-hacks was given.
2826 if test "${enable_string_hacks+set}" = set; then
2827 enableval="$enable_string_hacks"
2828 with_string_hacks=$enableval
2830 with_string_hacks=no
2832 echo "$as_me:2832: result: $with_string_hacks" >&5
2833 echo "${ECHO_T}$with_string_hacks" >&6
2835 if test "x$with_string_hacks" = "xyes"; then
2837 cat >>confdefs.h <<\EOF
2838 #define USE_STRING_HACKS 1
2841 { echo "$as_me:2841: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
2842 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
2843 echo "$as_me:2843: checking for strlcat" >&5
2844 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
2845 if test "${ac_cv_func_strlcat+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2848 cat >conftest.$ac_ext <<_ACEOF
2849 #line 2849 "configure"
2850 #include "confdefs.h"
2851 /* System header to define __stub macros and hopefully few prototypes,
2852 which can conflict with char strlcat (); below. */
2854 /* Override any gcc2 internal prototype to avoid an error. */
2858 /* We use char because int might match the return type of a gcc2
2859 builtin and then its argument prototype would still apply. */
2866 /* The GNU C library defines this for functions which it implements
2867 to always fail with ENOSYS. Some functions are actually named
2868 something starting with __ and the normal name is an alias. */
2869 #if defined (__stub_strlcat) || defined (__stub___strlcat)
2872 f = strlcat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
2879 rm -f conftest.$ac_objext conftest$ac_exeext
2880 if { (eval echo "$as_me:2880: \"$ac_link\"") >&5
2881 (eval $ac_link) 2>&5
2883 echo "$as_me:2883: \$? = $ac_status" >&5
2884 (exit $ac_status); } &&
2885 { ac_try='test -s conftest$ac_exeext'
2886 { (eval echo "$as_me:2886: \"$ac_try\"") >&5
2889 echo "$as_me:2889: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_cv_func_strlcat=yes
2893 echo "$as_me: failed program was:" >&5
2894 cat conftest.$ac_ext >&5
2895 ac_cv_func_strlcat=no
2897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2899 echo "$as_me:2899: result: $ac_cv_func_strlcat" >&5
2900 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
2901 if test $ac_cv_func_strlcat = yes; then
2903 cat >>confdefs.h <<\EOF
2904 #define HAVE_STRLCAT 1
2909 echo "$as_me:2909: checking for strlcat in -lbsd" >&5
2910 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
2911 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 ac_check_lib_save_LIBS=$LIBS
2916 cat >conftest.$ac_ext <<_ACEOF
2917 #line 2917 "configure"
2918 #include "confdefs.h"
2920 /* Override any gcc2 internal prototype to avoid an error. */
2924 /* We use char because int might match the return type of a gcc2
2925 builtin and then its argument prototype would still apply. */
2935 rm -f conftest.$ac_objext conftest$ac_exeext
2936 if { (eval echo "$as_me:2936: \"$ac_link\"") >&5
2937 (eval $ac_link) 2>&5
2939 echo "$as_me:2939: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -s conftest$ac_exeext'
2942 { (eval echo "$as_me:2942: \"$ac_try\"") >&5
2945 echo "$as_me:2945: \$? = $ac_status" >&5
2946 (exit $ac_status); }; }; then
2947 ac_cv_lib_bsd_strlcat=yes
2949 echo "$as_me: failed program was:" >&5
2950 cat conftest.$ac_ext >&5
2951 ac_cv_lib_bsd_strlcat=no
2953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2954 LIBS=$ac_check_lib_save_LIBS
2956 echo "$as_me:2956: result: $ac_cv_lib_bsd_strlcat" >&5
2957 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
2958 if test $ac_cv_lib_bsd_strlcat = yes; then
2961 # Filter out duplicates - this happens with badly-designed ".pc" files...
2962 for cf_add_1lib in $LIBS
2964 for cf_add_2lib in $cf_add_libs
2966 if test "x$cf_add_1lib" = "x$cf_add_2lib"
2972 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
2976 for ac_header in bsd/string.h
2978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2979 echo "$as_me:2979: checking for $ac_header" >&5
2980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2984 cat >conftest.$ac_ext <<_ACEOF
2985 #line 2985 "configure"
2986 #include "confdefs.h"
2987 #include <$ac_header>
2989 if { (eval echo "$as_me:2989: \"$ac_cpp conftest.$ac_ext\"") >&5
2990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2992 egrep -v '^ *\+' conftest.er1 >conftest.err
2994 cat conftest.err >&5
2995 echo "$as_me:2995: \$? = $ac_status" >&5
2996 (exit $ac_status); } >/dev/null; then
2997 if test -s conftest.err; then
2998 ac_cpp_err=$ac_c_preproc_warn_flag
3005 if test -z "$ac_cpp_err"; then
3006 eval "$as_ac_Header=yes"
3008 echo "$as_me: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3010 eval "$as_ac_Header=no"
3012 rm -f conftest.err conftest.$ac_ext
3014 echo "$as_me:3014: result: `eval echo '${'$as_ac_Header'}'`" >&5
3015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3017 cat >>confdefs.h <<EOF
3018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3024 cat >>confdefs.h <<\EOF
3025 #define HAVE_STRLCAT 1
3032 for ac_func in strlcpy snprintf
3034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3035 echo "$as_me:3035: checking for $ac_func" >&5
3036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3037 if eval "test \"\${$as_ac_var+set}\" = set"; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 cat >conftest.$ac_ext <<_ACEOF
3041 #line 3041 "configure"
3042 #include "confdefs.h"
3043 /* System header to define __stub macros and hopefully few prototypes,
3044 which can conflict with char $ac_func (); below. */
3046 /* Override any gcc2 internal prototype to avoid an error. */
3050 /* We use char because int might match the return type of a gcc2
3051 builtin and then its argument prototype would still apply. */
3058 /* The GNU C library defines this for functions which it implements
3059 to always fail with ENOSYS. Some functions are actually named
3060 something starting with __ and the normal name is an alias. */
3061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3064 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3071 rm -f conftest.$ac_objext conftest$ac_exeext
3072 if { (eval echo "$as_me:3072: \"$ac_link\"") >&5
3073 (eval $ac_link) 2>&5
3075 echo "$as_me:3075: \$? = $ac_status" >&5
3076 (exit $ac_status); } &&
3077 { ac_try='test -s conftest$ac_exeext'
3078 { (eval echo "$as_me:3078: \"$ac_try\"") >&5
3081 echo "$as_me:3081: \$? = $ac_status" >&5
3082 (exit $ac_status); }; }; then
3083 eval "$as_ac_var=yes"
3085 echo "$as_me: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3087 eval "$as_ac_var=no"
3089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3091 echo "$as_me:3091: result: `eval echo '${'$as_ac_var'}'`" >&5
3092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3093 if test `eval echo '${'$as_ac_var'}'` = yes; then
3094 cat >>confdefs.h <<EOF
3095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3104 cf_POSIX_C_SOURCE=199506L
3109 cf_xopen_source="-D_ALL_SOURCE"
3115 cf_xopen_source="-D_APPLE_C_SOURCE"
3118 cf_xopen_source="-D_DARWIN_C_SOURCE"
3121 (freebsd*|dragonfly*)
3122 # 5.x headers associate
3123 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3124 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3125 cf_POSIX_C_SOURCE=200112L
3127 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3130 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3133 cf_xopen_source="-D_HPUX_SOURCE"
3136 cf_xopen_source="-D_SGI_SOURCE"
3139 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3141 echo "$as_me:3141: checking if we must define _GNU_SOURCE" >&5
3142 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3143 if test "${cf_cv_gnu_source+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 cat >conftest.$ac_ext <<_ACEOF
3148 #line 3148 "configure"
3149 #include "confdefs.h"
3150 #include <sys/types.h>
3155 #ifndef _XOPEN_SOURCE
3162 rm -f conftest.$ac_objext
3163 if { (eval echo "$as_me:3163: \"$ac_compile\"") >&5
3164 (eval $ac_compile) 2>&5
3166 echo "$as_me:3166: \$? = $ac_status" >&5
3167 (exit $ac_status); } &&
3168 { ac_try='test -s conftest.$ac_objext'
3169 { (eval echo "$as_me:3169: \"$ac_try\"") >&5
3172 echo "$as_me:3172: \$? = $ac_status" >&5
3173 (exit $ac_status); }; }; then
3176 echo "$as_me: failed program was:" >&5
3177 cat conftest.$ac_ext >&5
3179 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3180 cat >conftest.$ac_ext <<_ACEOF
3181 #line 3181 "configure"
3182 #include "confdefs.h"
3183 #include <sys/types.h>
3188 #ifdef _XOPEN_SOURCE
3195 rm -f conftest.$ac_objext
3196 if { (eval echo "$as_me:3196: \"$ac_compile\"") >&5
3197 (eval $ac_compile) 2>&5
3199 echo "$as_me:3199: \$? = $ac_status" >&5
3200 (exit $ac_status); } &&
3201 { ac_try='test -s conftest.$ac_objext'
3202 { (eval echo "$as_me:3202: \"$ac_try\"") >&5
3205 echo "$as_me:3205: \$? = $ac_status" >&5
3206 (exit $ac_status); }; }; then
3209 echo "$as_me: failed program was:" >&5
3210 cat conftest.$ac_ext >&5
3211 cf_cv_gnu_source=yes
3213 rm -f conftest.$ac_objext conftest.$ac_ext
3217 rm -f conftest.$ac_objext conftest.$ac_ext
3220 echo "$as_me:3220: result: $cf_cv_gnu_source" >&5
3221 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3223 if test "$cf_cv_gnu_source" = yes
3225 echo "$as_me:3225: checking if we should also define _DEFAULT_SOURCE" >&5
3226 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
3227 if test "${cf_cv_default_source+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3232 cat >conftest.$ac_ext <<_ACEOF
3233 #line 3233 "configure"
3234 #include "confdefs.h"
3235 #include <sys/types.h>
3240 #ifdef _DEFAULT_SOURCE
3247 rm -f conftest.$ac_objext
3248 if { (eval echo "$as_me:3248: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>&5
3251 echo "$as_me:3251: \$? = $ac_status" >&5
3252 (exit $ac_status); } &&
3253 { ac_try='test -s conftest.$ac_objext'
3254 { (eval echo "$as_me:3254: \"$ac_try\"") >&5
3257 echo "$as_me:3257: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 cf_cv_default_source=no
3261 echo "$as_me: failed program was:" >&5
3262 cat conftest.$ac_ext >&5
3263 cf_cv_default_source=yes
3265 rm -f conftest.$ac_objext conftest.$ac_ext
3268 echo "$as_me:3268: result: $cf_cv_default_source" >&5
3269 echo "${ECHO_T}$cf_cv_default_source" >&6
3270 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
3275 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
3278 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3281 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3283 cf_save_CFLAGS="$CFLAGS"
3284 cf_save_CPPFLAGS="$CPPFLAGS"
3286 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3287 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3288 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3290 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3291 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3292 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3294 echo "$as_me:3294: checking if we should define _POSIX_C_SOURCE" >&5
3295 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3296 if test "${cf_cv_posix_c_source+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 echo "${as_me:-configure}:3300: testing if the symbol is already defined go no further ..." 1>&5
3302 cat >conftest.$ac_ext <<_ACEOF
3303 #line 3303 "configure"
3304 #include "confdefs.h"
3305 #include <sys/types.h>
3310 #ifndef _POSIX_C_SOURCE
3317 rm -f conftest.$ac_objext
3318 if { (eval echo "$as_me:3318: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>&5
3321 echo "$as_me:3321: \$? = $ac_status" >&5
3322 (exit $ac_status); } &&
3323 { ac_try='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:3324: \"$ac_try\"") >&5
3327 echo "$as_me:3327: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 cf_cv_posix_c_source=no
3331 echo "$as_me: failed program was:" >&5
3332 cat conftest.$ac_ext >&5
3333 cf_want_posix_source=no
3334 case .$cf_POSIX_C_SOURCE in
3336 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3339 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3340 cf_want_posix_source=yes
3343 cf_want_posix_source=yes
3346 if test "$cf_want_posix_source" = yes ; then
3347 cat >conftest.$ac_ext <<_ACEOF
3348 #line 3348 "configure"
3349 #include "confdefs.h"
3350 #include <sys/types.h>
3355 #ifdef _POSIX_SOURCE
3362 rm -f conftest.$ac_objext
3363 if { (eval echo "$as_me:3363: \"$ac_compile\"") >&5
3364 (eval $ac_compile) 2>&5
3366 echo "$as_me:3366: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try='test -s conftest.$ac_objext'
3369 { (eval echo "$as_me:3369: \"$ac_try\"") >&5
3372 echo "$as_me:3372: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3376 echo "$as_me: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3378 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3380 rm -f conftest.$ac_objext conftest.$ac_ext
3383 echo "${as_me:-configure}:3383: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3385 CFLAGS="$cf_trim_CFLAGS"
3386 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3388 echo "${as_me:-configure}:3388: testing if the second compile does not leave our definition intact error ..." 1>&5
3390 cat >conftest.$ac_ext <<_ACEOF
3391 #line 3391 "configure"
3392 #include "confdefs.h"
3393 #include <sys/types.h>
3398 #ifndef _POSIX_C_SOURCE
3405 rm -f conftest.$ac_objext
3406 if { (eval echo "$as_me:3406: \"$ac_compile\"") >&5
3407 (eval $ac_compile) 2>&5
3409 echo "$as_me:3409: \$? = $ac_status" >&5
3410 (exit $ac_status); } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:3412: \"$ac_try\"") >&5
3415 echo "$as_me:3415: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3419 echo "$as_me: failed program was:" >&5
3420 cat conftest.$ac_ext >&5
3421 cf_cv_posix_c_source=no
3423 rm -f conftest.$ac_objext conftest.$ac_ext
3424 CFLAGS="$cf_save_CFLAGS"
3425 CPPFLAGS="$cf_save_CPPFLAGS"
3428 rm -f conftest.$ac_objext conftest.$ac_ext
3431 echo "$as_me:3431: result: $cf_cv_posix_c_source" >&5
3432 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3434 if test "$cf_cv_posix_c_source" != no ; then
3435 CFLAGS="$cf_trim_CFLAGS"
3436 CPPFLAGS="$cf_trim_CPPFLAGS"
3441 cf_new_extra_cppflags=
3443 for cf_add_cflags in $cf_cv_posix_c_source
3445 case $cf_fix_cppflags in
3447 case $cf_add_cflags in
3448 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3449 case $cf_add_cflags in
3451 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3453 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3454 && test -z "${cf_tst_cflags}" \
3455 && cf_fix_cppflags=yes
3457 if test $cf_fix_cppflags = yes ; then
3458 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3460 elif test "${cf_tst_cflags}" = "\"'" ; then
3461 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3470 case $cf_add_cflags in
3472 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3474 CPPFLAGS=`echo "$CPPFLAGS" | \
3475 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3476 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3480 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3485 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3490 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3492 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3494 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3495 && test -z "${cf_tst_cflags}" \
3496 && cf_fix_cppflags=no
3501 if test -n "$cf_new_cflags" ; then
3503 CFLAGS="$CFLAGS $cf_new_cflags"
3506 if test -n "$cf_new_cppflags" ; then
3508 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3511 if test -n "$cf_new_extra_cppflags" ; then
3513 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3520 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3523 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3524 cf_xopen_source="-D_BSD_SOURCE"
3528 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3531 cf_xopen_source="-D_OSF_SOURCE"
3534 cf_xopen_source="-D_QNX_SOURCE"
3537 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3540 cf_xopen_source="-D__EXTENSIONS__"
3541 cf_cv_xopen_source=broken
3543 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3549 echo "$as_me:3549: checking if we should define _XOPEN_SOURCE" >&5
3550 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3551 if test "${cf_cv_xopen_source+set}" = set; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 cat >conftest.$ac_ext <<_ACEOF
3556 #line 3556 "configure"
3557 #include "confdefs.h"
3561 #include <sys/types.h>
3567 #ifndef _XOPEN_SOURCE
3574 rm -f conftest.$ac_objext
3575 if { (eval echo "$as_me:3575: \"$ac_compile\"") >&5
3576 (eval $ac_compile) 2>&5
3578 echo "$as_me:3578: \$? = $ac_status" >&5
3579 (exit $ac_status); } &&
3580 { ac_try='test -s conftest.$ac_objext'
3581 { (eval echo "$as_me:3581: \"$ac_try\"") >&5
3584 echo "$as_me:3584: \$? = $ac_status" >&5
3585 (exit $ac_status); }; }; then
3586 cf_cv_xopen_source=no
3588 echo "$as_me: failed program was:" >&5
3589 cat conftest.$ac_ext >&5
3591 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3592 cat >conftest.$ac_ext <<_ACEOF
3593 #line 3593 "configure"
3594 #include "confdefs.h"
3598 #include <sys/types.h>
3604 #ifdef _XOPEN_SOURCE
3611 rm -f conftest.$ac_objext
3612 if { (eval echo "$as_me:3612: \"$ac_compile\"") >&5
3613 (eval $ac_compile) 2>&5
3615 echo "$as_me:3615: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -s conftest.$ac_objext'
3618 { (eval echo "$as_me:3618: \"$ac_try\"") >&5
3621 echo "$as_me:3621: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 cf_cv_xopen_source=no
3625 echo "$as_me: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3627 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3629 rm -f conftest.$ac_objext conftest.$ac_ext
3633 rm -f conftest.$ac_objext conftest.$ac_ext
3636 echo "$as_me:3636: result: $cf_cv_xopen_source" >&5
3637 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3639 if test "$cf_cv_xopen_source" != no ; then
3641 CFLAGS=`echo "$CFLAGS" | \
3642 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3643 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3645 CPPFLAGS=`echo "$CPPFLAGS" | \
3646 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3647 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3649 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3654 cf_new_extra_cppflags=
3656 for cf_add_cflags in $cf_temp_xopen_source
3658 case $cf_fix_cppflags in
3660 case $cf_add_cflags in
3661 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3662 case $cf_add_cflags in
3664 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3666 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3667 && test -z "${cf_tst_cflags}" \
3668 && cf_fix_cppflags=yes
3670 if test $cf_fix_cppflags = yes ; then
3671 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3673 elif test "${cf_tst_cflags}" = "\"'" ; then
3674 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3683 case $cf_add_cflags in
3685 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3687 CPPFLAGS=`echo "$CPPFLAGS" | \
3688 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3689 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3693 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3698 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3703 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3705 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3707 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3708 && test -z "${cf_tst_cflags}" \
3709 && cf_fix_cppflags=no
3714 if test -n "$cf_new_cflags" ; then
3716 CFLAGS="$CFLAGS $cf_new_cflags"
3719 if test -n "$cf_new_cppflags" ; then
3721 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3724 if test -n "$cf_new_extra_cppflags" ; then
3726 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3731 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3733 cf_save_CFLAGS="$CFLAGS"
3734 cf_save_CPPFLAGS="$CPPFLAGS"
3736 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3737 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3738 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3740 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3741 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3742 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3744 echo "$as_me:3744: checking if we should define _POSIX_C_SOURCE" >&5
3745 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3746 if test "${cf_cv_posix_c_source+set}" = set; then
3747 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 echo "${as_me:-configure}:3750: testing if the symbol is already defined go no further ..." 1>&5
3752 cat >conftest.$ac_ext <<_ACEOF
3753 #line 3753 "configure"
3754 #include "confdefs.h"
3755 #include <sys/types.h>
3760 #ifndef _POSIX_C_SOURCE
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:3768: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>&5
3771 echo "$as_me:3771: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -s conftest.$ac_objext'
3774 { (eval echo "$as_me:3774: \"$ac_try\"") >&5
3777 echo "$as_me:3777: \$? = $ac_status" >&5
3778 (exit $ac_status); }; }; then
3779 cf_cv_posix_c_source=no
3781 echo "$as_me: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3783 cf_want_posix_source=no
3784 case .$cf_POSIX_C_SOURCE in
3786 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3789 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3790 cf_want_posix_source=yes
3793 cf_want_posix_source=yes
3796 if test "$cf_want_posix_source" = yes ; then
3797 cat >conftest.$ac_ext <<_ACEOF
3798 #line 3798 "configure"
3799 #include "confdefs.h"
3800 #include <sys/types.h>
3805 #ifdef _POSIX_SOURCE
3812 rm -f conftest.$ac_objext
3813 if { (eval echo "$as_me:3813: \"$ac_compile\"") >&5
3814 (eval $ac_compile) 2>&5
3816 echo "$as_me:3816: \$? = $ac_status" >&5
3817 (exit $ac_status); } &&
3818 { ac_try='test -s conftest.$ac_objext'
3819 { (eval echo "$as_me:3819: \"$ac_try\"") >&5
3822 echo "$as_me:3822: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3826 echo "$as_me: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3828 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3830 rm -f conftest.$ac_objext conftest.$ac_ext
3833 echo "${as_me:-configure}:3833: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3835 CFLAGS="$cf_trim_CFLAGS"
3836 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3838 echo "${as_me:-configure}:3838: testing if the second compile does not leave our definition intact error ..." 1>&5
3840 cat >conftest.$ac_ext <<_ACEOF
3841 #line 3841 "configure"
3842 #include "confdefs.h"
3843 #include <sys/types.h>
3848 #ifndef _POSIX_C_SOURCE
3855 rm -f conftest.$ac_objext
3856 if { (eval echo "$as_me:3856: \"$ac_compile\"") >&5
3857 (eval $ac_compile) 2>&5
3859 echo "$as_me:3859: \$? = $ac_status" >&5
3860 (exit $ac_status); } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:3862: \"$ac_try\"") >&5
3865 echo "$as_me:3865: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3869 echo "$as_me: failed program was:" >&5
3870 cat conftest.$ac_ext >&5
3871 cf_cv_posix_c_source=no
3873 rm -f conftest.$ac_objext conftest.$ac_ext
3874 CFLAGS="$cf_save_CFLAGS"
3875 CPPFLAGS="$cf_save_CPPFLAGS"
3878 rm -f conftest.$ac_objext conftest.$ac_ext
3881 echo "$as_me:3881: result: $cf_cv_posix_c_source" >&5
3882 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3884 if test "$cf_cv_posix_c_source" != no ; then
3885 CFLAGS="$cf_trim_CFLAGS"
3886 CPPFLAGS="$cf_trim_CPPFLAGS"
3891 cf_new_extra_cppflags=
3893 for cf_add_cflags in $cf_cv_posix_c_source
3895 case $cf_fix_cppflags in
3897 case $cf_add_cflags in
3898 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3899 case $cf_add_cflags in
3901 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3903 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3904 && test -z "${cf_tst_cflags}" \
3905 && cf_fix_cppflags=yes
3907 if test $cf_fix_cppflags = yes ; then
3908 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3910 elif test "${cf_tst_cflags}" = "\"'" ; then
3911 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3920 case $cf_add_cflags in
3922 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3924 CPPFLAGS=`echo "$CPPFLAGS" | \
3925 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3926 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3930 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3935 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3940 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3942 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3944 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3945 && test -z "${cf_tst_cflags}" \
3946 && cf_fix_cppflags=no
3951 if test -n "$cf_new_cflags" ; then
3953 CFLAGS="$CFLAGS $cf_new_cflags"
3956 if test -n "$cf_new_cppflags" ; then
3958 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3961 if test -n "$cf_new_extra_cppflags" ; then
3963 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3971 if test -n "$cf_xopen_source" ; then
3976 cf_new_extra_cppflags=
3978 for cf_add_cflags in $cf_xopen_source
3980 case $cf_fix_cppflags in
3982 case $cf_add_cflags in
3983 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3984 case $cf_add_cflags in
3986 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3988 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3989 && test -z "${cf_tst_cflags}" \
3990 && cf_fix_cppflags=yes
3992 if test $cf_fix_cppflags = yes ; then
3993 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3995 elif test "${cf_tst_cflags}" = "\"'" ; then
3996 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4005 case $cf_add_cflags in
4007 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4009 CPPFLAGS=`echo "$CPPFLAGS" | \
4010 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4011 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4015 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4020 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4025 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4027 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4029 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4030 && test -z "${cf_tst_cflags}" \
4031 && cf_fix_cppflags=no
4036 if test -n "$cf_new_cflags" ; then
4037 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
4039 echo "${as_me:-configure}:4039: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
4041 CFLAGS="$CFLAGS $cf_new_cflags"
4044 if test -n "$cf_new_cppflags" ; then
4045 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
4047 echo "${as_me:-configure}:4047: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
4049 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4052 if test -n "$cf_new_extra_cppflags" ; then
4053 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
4055 echo "${as_me:-configure}:4055: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
4057 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4062 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4063 echo "$as_me:4063: checking if _XOPEN_SOURCE really is set" >&5
4064 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4065 cat >conftest.$ac_ext <<_ACEOF
4066 #line 4066 "configure"
4067 #include "confdefs.h"
4073 #ifndef _XOPEN_SOURCE
4080 rm -f conftest.$ac_objext
4081 if { (eval echo "$as_me:4081: \"$ac_compile\"") >&5
4082 (eval $ac_compile) 2>&5
4084 echo "$as_me:4084: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try='test -s conftest.$ac_objext'
4087 { (eval echo "$as_me:4087: \"$ac_try\"") >&5
4090 echo "$as_me:4090: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4092 cf_XOPEN_SOURCE_set=yes
4094 echo "$as_me: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4096 cf_XOPEN_SOURCE_set=no
4098 rm -f conftest.$ac_objext conftest.$ac_ext
4099 echo "$as_me:4099: result: $cf_XOPEN_SOURCE_set" >&5
4100 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
4101 if test $cf_XOPEN_SOURCE_set = yes
4103 cat >conftest.$ac_ext <<_ACEOF
4104 #line 4104 "configure"
4105 #include "confdefs.h"
4111 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4118 rm -f conftest.$ac_objext
4119 if { (eval echo "$as_me:4119: \"$ac_compile\"") >&5
4120 (eval $ac_compile) 2>&5
4122 echo "$as_me:4122: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -s conftest.$ac_objext'
4125 { (eval echo "$as_me:4125: \"$ac_try\"") >&5
4128 echo "$as_me:4128: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
4130 cf_XOPEN_SOURCE_set_ok=yes
4132 echo "$as_me: failed program was:" >&5
4133 cat conftest.$ac_ext >&5
4134 cf_XOPEN_SOURCE_set_ok=no
4136 rm -f conftest.$ac_objext conftest.$ac_ext
4137 if test $cf_XOPEN_SOURCE_set_ok = no
4139 { echo "$as_me:4139: WARNING: _XOPEN_SOURCE is lower than requested" >&5
4140 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
4144 echo "$as_me:4144: checking if we should define _XOPEN_SOURCE" >&5
4145 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4146 if test "${cf_cv_xopen_source+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 cat >conftest.$ac_ext <<_ACEOF
4151 #line 4151 "configure"
4152 #include "confdefs.h"
4156 #include <sys/types.h>
4162 #ifndef _XOPEN_SOURCE
4169 rm -f conftest.$ac_objext
4170 if { (eval echo "$as_me:4170: \"$ac_compile\"") >&5
4171 (eval $ac_compile) 2>&5
4173 echo "$as_me:4173: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try='test -s conftest.$ac_objext'
4176 { (eval echo "$as_me:4176: \"$ac_try\"") >&5
4179 echo "$as_me:4179: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
4181 cf_cv_xopen_source=no
4183 echo "$as_me: failed program was:" >&5
4184 cat conftest.$ac_ext >&5
4186 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4187 cat >conftest.$ac_ext <<_ACEOF
4188 #line 4188 "configure"
4189 #include "confdefs.h"
4193 #include <sys/types.h>
4199 #ifdef _XOPEN_SOURCE
4206 rm -f conftest.$ac_objext
4207 if { (eval echo "$as_me:4207: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>&5
4210 echo "$as_me:4210: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -s conftest.$ac_objext'
4213 { (eval echo "$as_me:4213: \"$ac_try\"") >&5
4216 echo "$as_me:4216: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4218 cf_cv_xopen_source=no
4220 echo "$as_me: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4222 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4224 rm -f conftest.$ac_objext conftest.$ac_ext
4228 rm -f conftest.$ac_objext conftest.$ac_ext
4231 echo "$as_me:4231: result: $cf_cv_xopen_source" >&5
4232 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4234 if test "$cf_cv_xopen_source" != no ; then
4236 CFLAGS=`echo "$CFLAGS" | \
4237 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4238 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4240 CPPFLAGS=`echo "$CPPFLAGS" | \
4241 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4242 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4244 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4249 cf_new_extra_cppflags=
4251 for cf_add_cflags in $cf_temp_xopen_source
4253 case $cf_fix_cppflags in
4255 case $cf_add_cflags in
4256 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4257 case $cf_add_cflags in
4259 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4261 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4262 && test -z "${cf_tst_cflags}" \
4263 && cf_fix_cppflags=yes
4265 if test $cf_fix_cppflags = yes ; then
4266 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4268 elif test "${cf_tst_cflags}" = "\"'" ; then
4269 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4278 case $cf_add_cflags in
4280 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4282 CPPFLAGS=`echo "$CPPFLAGS" | \
4283 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4284 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4288 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4293 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4298 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4300 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4302 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4303 && test -z "${cf_tst_cflags}" \
4304 && cf_fix_cppflags=no
4309 if test -n "$cf_new_cflags" ; then
4311 CFLAGS="$CFLAGS $cf_new_cflags"
4314 if test -n "$cf_new_cppflags" ; then
4316 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4319 if test -n "$cf_new_extra_cppflags" ; then
4321 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4329 echo "$as_me:4329: checking for signal global datatype" >&5
4330 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
4331 if test "${cf_cv_sig_atomic_t+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 "volatile sig_atomic_t" \
4340 cat >conftest.$ac_ext <<_ACEOF
4341 #line 4341 "configure"
4342 #include "confdefs.h"
4344 #include <sys/types.h>
4350 static void handler(int sig)
4357 signal(SIGINT, handler);
4363 rm -f conftest.$ac_objext
4364 if { (eval echo "$as_me:4364: \"$ac_compile\"") >&5
4365 (eval $ac_compile) 2>&5
4367 echo "$as_me:4367: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -s conftest.$ac_objext'
4370 { (eval echo "$as_me:4370: \"$ac_try\"") >&5
4373 echo "$as_me:4373: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 cf_cv_sig_atomic_t=$cf_type
4377 echo "$as_me: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4379 cf_cv_sig_atomic_t=no
4381 rm -f conftest.$ac_objext conftest.$ac_ext
4382 test "$cf_cv_sig_atomic_t" != no && break
4387 echo "$as_me:4387: result: $cf_cv_sig_atomic_t" >&5
4388 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4389 test "$cf_cv_sig_atomic_t" != no &&
4390 cat >>confdefs.h <<EOF
4391 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4394 # Work around breakage on OS X
4396 echo "$as_me:4396: checking if SIGWINCH is defined" >&5
4397 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
4398 if test "${cf_cv_define_sigwinch+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 cat >conftest.$ac_ext <<_ACEOF
4403 #line 4403 "configure"
4404 #include "confdefs.h"
4406 #include <sys/types.h>
4407 #include <sys/signal.h>
4417 rm -f conftest.$ac_objext
4418 if { (eval echo "$as_me:4418: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>&5
4421 echo "$as_me:4421: \$? = $ac_status" >&5
4422 (exit $ac_status); } &&
4423 { ac_try='test -s conftest.$ac_objext'
4424 { (eval echo "$as_me:4424: \"$ac_try\"") >&5
4427 echo "$as_me:4427: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 cf_cv_define_sigwinch=yes
4431 echo "$as_me: failed program was:" >&5
4432 cat conftest.$ac_ext >&5
4433 cat >conftest.$ac_ext <<_ACEOF
4434 #line 4434 "configure"
4435 #include "confdefs.h"
4437 #undef _XOPEN_SOURCE
4438 #undef _POSIX_SOURCE
4439 #undef _POSIX_C_SOURCE
4440 #include <sys/types.h>
4441 #include <sys/signal.h>
4451 rm -f conftest.$ac_objext
4452 if { (eval echo "$as_me:4452: \"$ac_compile\"") >&5
4453 (eval $ac_compile) 2>&5
4455 echo "$as_me:4455: \$? = $ac_status" >&5
4456 (exit $ac_status); } &&
4457 { ac_try='test -s conftest.$ac_objext'
4458 { (eval echo "$as_me:4458: \"$ac_try\"") >&5
4461 echo "$as_me:4461: \$? = $ac_status" >&5
4462 (exit $ac_status); }; }; then
4463 cf_cv_define_sigwinch=maybe
4465 echo "$as_me: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4467 cf_cv_define_sigwinch=no
4469 rm -f conftest.$ac_objext conftest.$ac_ext
4472 rm -f conftest.$ac_objext conftest.$ac_ext
4475 echo "$as_me:4475: result: $cf_cv_define_sigwinch" >&5
4476 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
4478 if test "$cf_cv_define_sigwinch" = maybe ; then
4479 echo "$as_me:4479: checking for actual SIGWINCH definition" >&5
4480 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
4481 if test "${cf_cv_fixup_sigwinch+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 cf_cv_fixup_sigwinch=unknown
4487 while test $cf_sigwinch != 1
4489 cat >conftest.$ac_ext <<_ACEOF
4490 #line 4490 "configure"
4491 #include "confdefs.h"
4493 #undef _XOPEN_SOURCE
4494 #undef _POSIX_SOURCE
4495 #undef _POSIX_C_SOURCE
4496 #include <sys/types.h>
4497 #include <sys/signal.h>
4503 #if SIGWINCH != $cf_sigwinch
4511 rm -f conftest.$ac_objext
4512 if { (eval echo "$as_me:4512: \"$ac_compile\"") >&5
4513 (eval $ac_compile) 2>&5
4515 echo "$as_me:4515: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try='test -s conftest.$ac_objext'
4518 { (eval echo "$as_me:4518: \"$ac_try\"") >&5
4521 echo "$as_me:4521: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4523 cf_cv_fixup_sigwinch=$cf_sigwinch
4526 echo "$as_me: failed program was:" >&5
4527 cat conftest.$ac_ext >&5
4529 rm -f conftest.$ac_objext conftest.$ac_ext
4531 cf_sigwinch=`expr $cf_sigwinch - 1`
4535 echo "$as_me:4535: result: $cf_cv_fixup_sigwinch" >&5
4536 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
4538 if test "$cf_cv_fixup_sigwinch" != unknown ; then
4539 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
4543 # Checks for CODESET support.
4545 echo "$as_me:4545: checking for nl_langinfo and CODESET" >&5
4546 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
4547 if test "${am_cv_langinfo_codeset+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 cat >conftest.$ac_ext <<_ACEOF
4551 #line 4551 "configure"
4552 #include "confdefs.h"
4553 #include <langinfo.h>
4557 char* cs = nl_langinfo(CODESET);
4562 rm -f conftest.$ac_objext conftest$ac_exeext
4563 if { (eval echo "$as_me:4563: \"$ac_link\"") >&5
4564 (eval $ac_link) 2>&5
4566 echo "$as_me:4566: \$? = $ac_status" >&5
4567 (exit $ac_status); } &&
4568 { ac_try='test -s conftest$ac_exeext'
4569 { (eval echo "$as_me:4569: \"$ac_try\"") >&5
4572 echo "$as_me:4572: \$? = $ac_status" >&5
4573 (exit $ac_status); }; }; then
4574 am_cv_langinfo_codeset=yes
4576 echo "$as_me: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4578 am_cv_langinfo_codeset=no
4580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4583 echo "$as_me:4583: result: $am_cv_langinfo_codeset" >&5
4584 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
4585 if test $am_cv_langinfo_codeset = yes; then
4587 cat >>confdefs.h <<\EOF
4588 #define HAVE_LANGINFO_CODESET 1
4593 echo "$as_me:4593: checking if you want to use pkg-config" >&5
4594 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4596 # Check whether --with-pkg-config or --without-pkg-config was given.
4597 if test "${with_pkg_config+set}" = set; then
4598 withval="$with_pkg_config"
4599 cf_pkg_config=$withval
4603 echo "$as_me:4603: result: $cf_pkg_config" >&5
4604 echo "${ECHO_T}$cf_pkg_config" >&6
4606 case $cf_pkg_config in
4612 if test -n "$ac_tool_prefix"; then
4613 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4614 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4615 echo "$as_me:4615: checking for $ac_word" >&5
4616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4617 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4625 ac_save_IFS=$IFS; IFS=$ac_path_separator
4627 for ac_dir in $ac_dummy; do
4629 test -z "$ac_dir" && ac_dir=.
4630 if $as_executable_p "$ac_dir/$ac_word"; then
4631 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4632 echo "$as_me:4632: found $ac_dir/$ac_word" >&5
4640 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4642 if test -n "$PKG_CONFIG"; then
4643 echo "$as_me:4643: result: $PKG_CONFIG" >&5
4644 echo "${ECHO_T}$PKG_CONFIG" >&6
4646 echo "$as_me:4646: result: no" >&5
4647 echo "${ECHO_T}no" >&6
4651 if test -z "$ac_cv_path_PKG_CONFIG"; then
4652 ac_pt_PKG_CONFIG=$PKG_CONFIG
4653 # Extract the first word of "pkg-config", so it can be a program name with args.
4654 set dummy pkg-config; ac_word=$2
4655 echo "$as_me:4655: checking for $ac_word" >&5
4656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4657 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 case $ac_pt_PKG_CONFIG in
4662 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4665 ac_save_IFS=$IFS; IFS=$ac_path_separator
4667 for ac_dir in $ac_dummy; do
4669 test -z "$ac_dir" && ac_dir=.
4670 if $as_executable_p "$ac_dir/$ac_word"; then
4671 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4672 echo "$as_me:4672: found $ac_dir/$ac_word" >&5
4677 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4681 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4683 if test -n "$ac_pt_PKG_CONFIG"; then
4684 echo "$as_me:4684: result: $ac_pt_PKG_CONFIG" >&5
4685 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4687 echo "$as_me:4687: result: no" >&5
4688 echo "${ECHO_T}no" >&6
4691 PKG_CONFIG=$ac_pt_PKG_CONFIG
4693 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4702 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4703 if test "$PKG_CONFIG" != none ; then
4705 if test "x$prefix" != xNONE; then
4706 cf_path_syntax="$prefix"
4708 cf_path_syntax="$ac_default_prefix"
4711 case ".$PKG_CONFIG" in
4716 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4718 (.\${*prefix}*|.\${*dir}*)
4719 eval PKG_CONFIG="$PKG_CONFIG"
4720 case ".$PKG_CONFIG" in
4722 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4727 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4730 { { echo "$as_me:4730: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4731 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4732 { (exit 1); exit 1; }; }
4736 elif test "x$cf_pkg_config" != xno ; then
4737 { echo "$as_me:4737: WARNING: pkg-config is not installed" >&5
4738 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4741 echo "$as_me:4741: checking if you want to see long compiling messages" >&5
4742 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4744 # Check whether --enable-echo or --disable-echo was given.
4745 if test "${enable_echo+set}" = set; then
4746 enableval="$enable_echo"
4747 test "$enableval" != no && enableval=yes
4748 if test "$enableval" != "yes" ; then
4751 ECHO_LD='@echo linking $@;'
4752 RULE_CC='@echo compiling $<'
4753 SHOW_CC='@echo compiling $@'
4775 echo "$as_me:4775: result: $enableval" >&5
4776 echo "${ECHO_T}$enableval" >&6
4778 echo "$as_me:4778: checking for ncurses wrap-prefix" >&5
4779 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
4781 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
4782 if test "${with_ncurses_wrap_prefix+set}" = set; then
4783 withval="$with_ncurses_wrap_prefix"
4784 NCURSES_WRAP_PREFIX=$withval
4786 NCURSES_WRAP_PREFIX=_nc_
4788 echo "$as_me:4788: result: $NCURSES_WRAP_PREFIX" >&5
4789 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
4791 echo "$as_me:4791: checking if you want to check for wide-character functions" >&5
4792 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
4794 # Check whether --enable-widec or --disable-widec was given.
4795 if test "${enable_widec+set}" = set; then
4796 enableval="$enable_widec"
4797 test "$enableval" != no && enableval=yes
4798 if test "$enableval" != "yes" ; then
4808 echo "$as_me:4808: result: $cf_enable_widec" >&5
4809 echo "${ECHO_T}$cf_enable_widec" >&6
4811 echo "$as_me:4811: checking for specific curses-directory" >&5
4812 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4814 # Check whether --with-curses-dir or --without-curses-dir was given.
4815 if test "${with_curses_dir+set}" = set; then
4816 withval="$with_curses_dir"
4817 cf_cv_curses_dir=$withval
4821 echo "$as_me:4821: result: $cf_cv_curses_dir" >&5
4822 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4824 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4827 if test "x$prefix" != xNONE; then
4828 cf_path_syntax="$prefix"
4830 cf_path_syntax="$ac_default_prefix"
4838 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4840 (.\${*prefix}*|.\${*dir}*)
4841 eval withval="$withval"
4844 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4849 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4852 { { echo "$as_me:4852: error: expected a pathname, not \"$withval\"" >&5
4853 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4854 { (exit 1); exit 1; }; }
4858 if test -d "$cf_cv_curses_dir"
4861 if test -n "$cf_cv_curses_dir/include" ; then
4862 for cf_add_incdir in $cf_cv_curses_dir/include
4864 while test $cf_add_incdir != /usr/include
4866 if test -d $cf_add_incdir
4869 if test -n "$CFLAGS$CPPFLAGS" ; then
4870 # a loop is needed to ensure we can add subdirs of existing dirs
4871 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4872 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4873 cf_have_incdir=yes; break
4878 if test "$cf_have_incdir" = no ; then
4879 if test "$cf_add_incdir" = /usr/local/include ; then
4880 if test "$GCC" = yes
4882 cf_save_CPPFLAGS=$CPPFLAGS
4883 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4884 cat >conftest.$ac_ext <<_ACEOF
4885 #line 4885 "configure"
4886 #include "confdefs.h"
4896 rm -f conftest.$ac_objext
4897 if { (eval echo "$as_me:4897: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>&5
4900 echo "$as_me:4900: \$? = $ac_status" >&5
4901 (exit $ac_status); } &&
4902 { ac_try='test -s conftest.$ac_objext'
4903 { (eval echo "$as_me:4903: \"$ac_try\"") >&5
4906 echo "$as_me:4906: \$? = $ac_status" >&5
4907 (exit $ac_status); }; }; then
4910 echo "$as_me: failed program was:" >&5
4911 cat conftest.$ac_ext >&5
4914 rm -f conftest.$ac_objext conftest.$ac_ext
4915 CPPFLAGS=$cf_save_CPPFLAGS
4920 if test "$cf_have_incdir" = no ; then
4921 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4923 echo "${as_me:-configure}:4923: testing adding $cf_add_incdir to include-path ..." 1>&5
4925 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4927 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4928 test "$cf_top_incdir" = "$cf_add_incdir" && break
4929 cf_add_incdir="$cf_top_incdir"
4940 if test -n "$cf_cv_curses_dir/lib" ; then
4941 for cf_add_libdir in $cf_cv_curses_dir/lib
4943 if test $cf_add_libdir = /usr/lib ; then
4945 elif test -d $cf_add_libdir
4948 if test -n "$LDFLAGS$LIBS" ; then
4949 # a loop is needed to ensure we can add subdirs of existing dirs
4950 for cf_test_libdir in $LDFLAGS $LIBS ; do
4951 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4952 cf_have_libdir=yes; break
4956 if test "$cf_have_libdir" = no ; then
4957 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4959 echo "${as_me:-configure}:4959: testing adding $cf_add_libdir to library-path ..." 1>&5
4961 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4972 echo "$as_me:4972: checking for specified curses library type" >&5
4973 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
4975 # Check whether --with-screen or --without-screen was given.
4976 if test "${with_screen+set}" = set; then
4977 withval="$with_screen"
4978 cf_cv_screen=$withval
4981 # Check whether --with-ncursesw or --without-ncursesw was given.
4982 if test "${with_ncursesw+set}" = set; then
4983 withval="$with_ncursesw"
4984 cf_cv_screen=ncursesw
4987 # Check whether --with-ncurses or --without-ncurses was given.
4988 if test "${with_ncurses+set}" = set; then
4989 withval="$with_ncurses"
4990 cf_cv_screen=ncurses
4993 # Check whether --with-pdcurses or --without-pdcurses was given.
4994 if test "${with_pdcurses+set}" = set; then
4995 withval="$with_pdcurses"
4996 cf_cv_screen=pdcurses
4999 # Check whether --with-curses-colr or --without-curses-colr was given.
5000 if test "${with_curses_colr+set}" = set; then
5001 withval="$with_curses_colr"
5002 cf_cv_screen=curses_colr
5005 # Check whether --with-curses-5lib or --without-curses-5lib was given.
5006 if test "${with_curses_5lib+set}" = set; then
5007 withval="$with_curses_5lib"
5008 cf_cv_screen=curses_5lib
5016 echo "$as_me:5016: result: $cf_cv_screen" >&5
5017 echo "${ECHO_T}$cf_cv_screen" >&6
5019 case $cf_cv_screen in
5022 echo "$as_me:5022: checking for extra include directories" >&5
5023 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
5024 if test "${cf_cv_curses_incdir+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5028 cf_cv_curses_incdir=no
5031 if test "x$cf_cv_screen" = "xcurses_colr"
5033 test -d /usr/include/curses_colr && \
5034 cf_cv_curses_incdir="-I/usr/include/curses_colr"
5038 if test "x$cf_cv_screen" = "xcurses_5lib"
5040 test -d /usr/5lib && \
5041 test -d /usr/5include && \
5042 cf_cv_curses_incdir="-I/usr/5include"
5048 echo "$as_me:5048: result: $cf_cv_curses_incdir" >&5
5049 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
5050 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
5052 echo "$as_me:5052: checking if we have identified curses headers" >&5
5053 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
5054 if test "${cf_cv_ncurses_header+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 cf_cv_ncurses_header=none
5061 curses.h ncurses/ncurses.h ncurses/curses.h
5063 cat >conftest.$ac_ext <<_ACEOF
5064 #line 5064 "configure"
5065 #include "confdefs.h"
5066 #include <${cf_header}>
5070 initscr(); tgoto("?", 0,0)
5075 rm -f conftest.$ac_objext
5076 if { (eval echo "$as_me:5076: \"$ac_compile\"") >&5
5077 (eval $ac_compile) 2>&5
5079 echo "$as_me:5079: \$? = $ac_status" >&5
5080 (exit $ac_status); } &&
5081 { ac_try='test -s conftest.$ac_objext'
5082 { (eval echo "$as_me:5082: \"$ac_try\"") >&5
5085 echo "$as_me:5085: \$? = $ac_status" >&5
5086 (exit $ac_status); }; }; then
5087 cf_cv_ncurses_header=$cf_header; break
5089 echo "$as_me: failed program was:" >&5
5090 cat conftest.$ac_ext >&5
5092 rm -f conftest.$ac_objext conftest.$ac_ext
5096 echo "$as_me:5096: result: $cf_cv_ncurses_header" >&5
5097 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
5099 if test "$cf_cv_ncurses_header" = none ; then
5100 { { echo "$as_me:5100: error: No curses header-files found" >&5
5101 echo "$as_me: error: No curses header-files found" >&2;}
5102 { (exit 1); exit 1; }; }
5105 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
5107 for ac_header in $cf_cv_ncurses_header
5109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5110 echo "$as_me:5110: checking for $ac_header" >&5
5111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 cat >conftest.$ac_ext <<_ACEOF
5116 #line 5116 "configure"
5117 #include "confdefs.h"
5118 #include <$ac_header>
5120 if { (eval echo "$as_me:5120: \"$ac_cpp conftest.$ac_ext\"") >&5
5121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5123 egrep -v '^ *\+' conftest.er1 >conftest.err
5125 cat conftest.err >&5
5126 echo "$as_me:5126: \$? = $ac_status" >&5
5127 (exit $ac_status); } >/dev/null; then
5128 if test -s conftest.err; then
5129 ac_cpp_err=$ac_c_preproc_warn_flag
5136 if test -z "$ac_cpp_err"; then
5137 eval "$as_ac_Header=yes"
5139 echo "$as_me: failed program was:" >&5
5140 cat conftest.$ac_ext >&5
5141 eval "$as_ac_Header=no"
5143 rm -f conftest.err conftest.$ac_ext
5145 echo "$as_me:5145: result: `eval echo '${'$as_ac_Header'}'`" >&5
5146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5148 cat >>confdefs.h <<EOF
5149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5155 echo "$as_me:5155: checking for terminfo header" >&5
5156 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
5157 if test "${cf_cv_term_header+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 case ${cf_cv_ncurses_header} in
5162 (*/ncurses.h|*/ncursesw.h)
5163 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
5166 cf_term_header=term.h
5170 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
5172 cat >conftest.$ac_ext <<_ACEOF
5173 #line 5173 "configure"
5174 #include "confdefs.h"
5176 #include <${cf_cv_ncurses_header:-curses.h}>
5182 int x = auto_left_margin
5187 rm -f conftest.$ac_objext
5188 if { (eval echo "$as_me:5188: \"$ac_compile\"") >&5
5189 (eval $ac_compile) 2>&5
5191 echo "$as_me:5191: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -s conftest.$ac_objext'
5194 { (eval echo "$as_me:5194: \"$ac_try\"") >&5
5197 echo "$as_me:5197: \$? = $ac_status" >&5
5198 (exit $ac_status); }; }; then
5200 cf_cv_term_header="$cf_test"
5202 echo "$as_me: failed program was:" >&5
5203 cat conftest.$ac_ext >&5
5205 cf_cv_term_header=unknown
5208 rm -f conftest.$ac_objext conftest.$ac_ext
5209 test "$cf_cv_term_header" != unknown && break
5213 echo "$as_me:5213: result: $cf_cv_term_header" >&5
5214 echo "${ECHO_T}$cf_cv_term_header" >&6
5216 # Set definitions to allow ifdef'ing to accommodate subdirectories
5218 case $cf_cv_term_header in
5221 cat >>confdefs.h <<\EOF
5222 #define HAVE_TERM_H 1
5228 case $cf_cv_term_header in
5231 cat >>confdefs.h <<\EOF
5232 #define HAVE_NCURSES_TERM_H 1
5238 cat >>confdefs.h <<\EOF
5239 #define HAVE_NCURSESW_TERM_H 1
5245 echo "$as_me:5245: checking for ncurses version" >&5
5246 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
5247 if test "${cf_cv_ncurses_version+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 cf_cv_ncurses_version=no
5254 if test "$cross_compiling" = yes; then
5256 # This will not work if the preprocessor splits the line after the
5257 # Autoconf token. The 'unproto' program does that.
5258 cat > conftest.$ac_ext <<EOF
5259 #include <${cf_cv_ncurses_header:-curses.h}>
5261 #ifdef NCURSES_VERSION
5262 Autoconf NCURSES_VERSION
5270 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
5271 { (eval echo "$as_me:5271: \"$cf_try\"") >&5
5274 echo "$as_me:5274: \$? = $ac_status" >&5
5275 (exit $ac_status); }
5276 if test -f conftest.out ; then
5277 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
5278 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
5283 cat >conftest.$ac_ext <<_ACEOF
5284 #line 5284 "configure"
5285 #include "confdefs.h"
5287 #include <${cf_cv_ncurses_header:-curses.h}>
5291 FILE *fp = fopen("$cf_tempfile", "w");
5292 #ifdef NCURSES_VERSION
5293 # ifdef NCURSES_VERSION_PATCH
5294 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
5296 fprintf(fp, "%s\n", NCURSES_VERSION);
5300 fprintf(fp, "old\n");
5305 ${cf_cv_main_return:-return}(0);
5308 rm -f conftest$ac_exeext
5309 if { (eval echo "$as_me:5309: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>&5
5312 echo "$as_me:5312: \$? = $ac_status" >&5
5313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5314 { (eval echo "$as_me:5314: \"$ac_try\"") >&5
5317 echo "$as_me:5317: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5320 cf_cv_ncurses_version=`cat $cf_tempfile`
5322 echo "$as_me: program exited with status $ac_status" >&5
5323 echo "$as_me: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5326 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5331 echo "$as_me:5331: result: $cf_cv_ncurses_version" >&5
5332 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
5333 test "$cf_cv_ncurses_version" = no ||
5334 cat >>confdefs.h <<\EOF
5338 echo "$as_me:5338: checking if we have identified curses libraries" >&5
5339 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
5340 cat >conftest.$ac_ext <<_ACEOF
5341 #line 5341 "configure"
5342 #include "confdefs.h"
5343 #include <${cf_cv_ncurses_header:-curses.h}>
5347 initscr(); tgoto("?", 0,0)
5352 rm -f conftest.$ac_objext conftest$ac_exeext
5353 if { (eval echo "$as_me:5353: \"$ac_link\"") >&5
5354 (eval $ac_link) 2>&5
5356 echo "$as_me:5356: \$? = $ac_status" >&5
5357 (exit $ac_status); } &&
5358 { ac_try='test -s conftest$ac_exeext'
5359 { (eval echo "$as_me:5359: \"$ac_try\"") >&5
5362 echo "$as_me:5362: \$? = $ac_status" >&5
5363 (exit $ac_status); }; }; then
5366 echo "$as_me: failed program was:" >&5
5367 cat conftest.$ac_ext >&5
5370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5371 echo "$as_me:5371: result: $cf_result" >&5
5372 echo "${ECHO_T}$cf_result" >&6
5374 if test "$cf_result" = no ; then
5377 echo "$as_me:5377: checking for tgoto in -lmytinfo" >&5
5378 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5379 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 ac_check_lib_save_LIBS=$LIBS
5383 LIBS="-lmytinfo $LIBS"
5384 cat >conftest.$ac_ext <<_ACEOF
5385 #line 5385 "configure"
5386 #include "confdefs.h"
5388 /* Override any gcc2 internal prototype to avoid an error. */
5392 /* We use char because int might match the return type of a gcc2
5393 builtin and then its argument prototype would still apply. */
5403 rm -f conftest.$ac_objext conftest$ac_exeext
5404 if { (eval echo "$as_me:5404: \"$ac_link\"") >&5
5405 (eval $ac_link) 2>&5
5407 echo "$as_me:5407: \$? = $ac_status" >&5
5408 (exit $ac_status); } &&
5409 { ac_try='test -s conftest$ac_exeext'
5410 { (eval echo "$as_me:5410: \"$ac_try\"") >&5
5413 echo "$as_me:5413: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5415 ac_cv_lib_mytinfo_tgoto=yes
5417 echo "$as_me: failed program was:" >&5
5418 cat conftest.$ac_ext >&5
5419 ac_cv_lib_mytinfo_tgoto=no
5421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5422 LIBS=$ac_check_lib_save_LIBS
5424 echo "$as_me:5424: result: $ac_cv_lib_mytinfo_tgoto" >&5
5425 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5426 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5428 cf_add_libs="-lmytinfo"
5429 # Filter out duplicates - this happens with badly-designed ".pc" files...
5430 for cf_add_1lib in $LIBS
5432 for cf_add_2lib in $cf_add_libs
5434 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5440 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5448 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
5449 # next (1998), and xcurses "newer" (2000). There is no header file for
5450 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
5451 # term.h) for cur_colr
5452 if test "x$cf_cv_screen" = "xcurses_colr"
5454 echo "$as_me:5454: checking for initscr in -lcur_colr" >&5
5455 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5456 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5457 echo $ECHO_N "(cached) $ECHO_C" >&6
5459 ac_check_lib_save_LIBS=$LIBS
5460 LIBS="-lcur_colr $LIBS"
5461 cat >conftest.$ac_ext <<_ACEOF
5462 #line 5462 "configure"
5463 #include "confdefs.h"
5465 /* Override any gcc2 internal prototype to avoid an error. */
5469 /* We use char because int might match the return type of a gcc2
5470 builtin and then its argument prototype would still apply. */
5480 rm -f conftest.$ac_objext conftest$ac_exeext
5481 if { (eval echo "$as_me:5481: \"$ac_link\"") >&5
5482 (eval $ac_link) 2>&5
5484 echo "$as_me:5484: \$? = $ac_status" >&5
5485 (exit $ac_status); } &&
5486 { ac_try='test -s conftest$ac_exeext'
5487 { (eval echo "$as_me:5487: \"$ac_try\"") >&5
5490 echo "$as_me:5490: \$? = $ac_status" >&5
5491 (exit $ac_status); }; }; then
5492 ac_cv_lib_cur_colr_initscr=yes
5494 echo "$as_me: failed program was:" >&5
5495 cat conftest.$ac_ext >&5
5496 ac_cv_lib_cur_colr_initscr=no
5498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5499 LIBS=$ac_check_lib_save_LIBS
5501 echo "$as_me:5501: result: $ac_cv_lib_cur_colr_initscr" >&5
5502 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5503 if test $ac_cv_lib_cur_colr_initscr = yes; then
5505 cf_add_libs="-lcur_colr"
5506 # Filter out duplicates - this happens with badly-designed ".pc" files...
5507 for cf_add_1lib in $LIBS
5509 for cf_add_2lib in $cf_add_libs
5511 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5517 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5521 ac_cv_func_initscr=yes
5525 echo "$as_me:5525: checking for initscr in -lHcurses" >&5
5526 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5527 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 ac_check_lib_save_LIBS=$LIBS
5531 LIBS="-lHcurses $LIBS"
5532 cat >conftest.$ac_ext <<_ACEOF
5533 #line 5533 "configure"
5534 #include "confdefs.h"
5536 /* Override any gcc2 internal prototype to avoid an error. */
5540 /* We use char because int might match the return type of a gcc2
5541 builtin and then its argument prototype would still apply. */
5551 rm -f conftest.$ac_objext conftest$ac_exeext
5552 if { (eval echo "$as_me:5552: \"$ac_link\"") >&5
5553 (eval $ac_link) 2>&5
5555 echo "$as_me:5555: \$? = $ac_status" >&5
5556 (exit $ac_status); } &&
5557 { ac_try='test -s conftest$ac_exeext'
5558 { (eval echo "$as_me:5558: \"$ac_try\"") >&5
5561 echo "$as_me:5561: \$? = $ac_status" >&5
5562 (exit $ac_status); }; }; then
5563 ac_cv_lib_Hcurses_initscr=yes
5565 echo "$as_me: failed program was:" >&5
5566 cat conftest.$ac_ext >&5
5567 ac_cv_lib_Hcurses_initscr=no
5569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5570 LIBS=$ac_check_lib_save_LIBS
5572 echo "$as_me:5572: result: $ac_cv_lib_Hcurses_initscr" >&5
5573 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5574 if test $ac_cv_lib_Hcurses_initscr = yes; then
5576 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5578 cf_add_libs="-lHcurses"
5579 # Filter out duplicates - this happens with badly-designed ".pc" files...
5580 for cf_add_1lib in $LIBS
5582 for cf_add_2lib in $cf_add_libs
5584 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5590 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5594 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
5595 ac_cv_func_initscr=yes
5604 case `arch 2>/dev/null` in
5609 if test -n "/lib64" ; then
5610 for cf_add_libdir in /lib64
5612 if test $cf_add_libdir = /usr/lib ; then
5614 elif test -d $cf_add_libdir
5617 if test -n "$LDFLAGS$LIBS" ; then
5618 # a loop is needed to ensure we can add subdirs of existing dirs
5619 for cf_test_libdir in $LDFLAGS $LIBS ; do
5620 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5621 cf_have_libdir=yes; break
5625 if test "$cf_have_libdir" = no ; then
5626 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5628 echo "${as_me:-configure}:5628: testing adding $cf_add_libdir to library-path ..." 1>&5
5630 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5638 if test -n "/lib" ; then
5639 for cf_add_libdir in /lib
5641 if test $cf_add_libdir = /usr/lib ; then
5643 elif test -d $cf_add_libdir
5646 if test -n "$LDFLAGS$LIBS" ; then
5647 # a loop is needed to ensure we can add subdirs of existing dirs
5648 for cf_test_libdir in $LDFLAGS $LIBS ; do
5649 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5650 cf_have_libdir=yes; break
5654 if test "$cf_have_libdir" = no ; then
5655 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5657 echo "${as_me:-configure}:5657: testing adding $cf_add_libdir to library-path ..." 1>&5
5659 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5669 if test -n "/lib" ; then
5670 for cf_add_libdir in /lib
5672 if test $cf_add_libdir = /usr/lib ; then
5674 elif test -d $cf_add_libdir
5677 if test -n "$LDFLAGS$LIBS" ; then
5678 # a loop is needed to ensure we can add subdirs of existing dirs
5679 for cf_test_libdir in $LDFLAGS $LIBS ; do
5680 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5681 cf_have_libdir=yes; break
5685 if test "$cf_have_libdir" = no ; then
5686 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5688 echo "${as_me:-configure}:5688: testing adding $cf_add_libdir to library-path ..." 1>&5
5690 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5700 if test "x$cf_cv_screen" = "xcurses_5lib"
5702 if test -d /usr/5lib ; then
5704 if test -n "/usr/5lib" ; then
5705 for cf_add_libdir in /usr/5lib
5707 if test $cf_add_libdir = /usr/lib ; then
5709 elif test -d $cf_add_libdir
5712 if test -n "$LDFLAGS$LIBS" ; then
5713 # a loop is needed to ensure we can add subdirs of existing dirs
5714 for cf_test_libdir in $LDFLAGS $LIBS ; do
5715 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5716 cf_have_libdir=yes; break
5720 if test "$cf_have_libdir" = no ; then
5721 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5723 echo "${as_me:-configure}:5723: testing adding $cf_add_libdir to library-path ..." 1>&5
5725 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5731 cf_add_libs="-lcurses -ltermcap"
5732 # Filter out duplicates - this happens with badly-designed ".pc" files...
5733 for cf_add_1lib in $LIBS
5735 for cf_add_2lib in $cf_add_libs
5737 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5743 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5749 ac_cv_func_initscr=yes
5753 if test ".$ac_cv_func_initscr" != .yes ; then
5754 cf_save_LIBS="$LIBS"
5756 if test ".${cf_cv_ncurses_version:-no}" != .no
5758 cf_check_list="ncurses curses cursesX"
5760 cf_check_list="cursesX curses ncurses"
5763 # Check for library containing tgoto. Do this before curses library
5764 # because it may be needed to link the test-case for initscr.
5765 if test "x$cf_term_lib" = x
5767 echo "$as_me:5767: checking for tgoto" >&5
5768 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5769 if test "${ac_cv_func_tgoto+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 cat >conftest.$ac_ext <<_ACEOF
5773 #line 5773 "configure"
5774 #include "confdefs.h"
5775 /* System header to define __stub macros and hopefully few prototypes,
5776 which can conflict with char tgoto (); below. */
5778 /* Override any gcc2 internal prototype to avoid an error. */
5782 /* We use char because int might match the return type of a gcc2
5783 builtin and then its argument prototype would still apply. */
5790 /* The GNU C library defines this for functions which it implements
5791 to always fail with ENOSYS. Some functions are actually named
5792 something starting with __ and the normal name is an alias. */
5793 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5796 f = tgoto; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5803 rm -f conftest.$ac_objext conftest$ac_exeext
5804 if { (eval echo "$as_me:5804: \"$ac_link\"") >&5
5805 (eval $ac_link) 2>&5
5807 echo "$as_me:5807: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try='test -s conftest$ac_exeext'
5810 { (eval echo "$as_me:5810: \"$ac_try\"") >&5
5813 echo "$as_me:5813: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 ac_cv_func_tgoto=yes
5817 echo "$as_me: failed program was:" >&5
5818 cat conftest.$ac_ext >&5
5821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5823 echo "$as_me:5823: result: $ac_cv_func_tgoto" >&5
5824 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5825 if test $ac_cv_func_tgoto = yes; then
5826 cf_term_lib=predefined
5829 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
5831 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5832 echo "$as_me:5832: checking for tgoto in -l$cf_term_lib" >&5
5833 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5834 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 ac_check_lib_save_LIBS=$LIBS
5838 LIBS="-l$cf_term_lib $LIBS"
5839 cat >conftest.$ac_ext <<_ACEOF
5840 #line 5840 "configure"
5841 #include "confdefs.h"
5843 /* Override any gcc2 internal prototype to avoid an error. */
5847 /* We use char because int might match the return type of a gcc2
5848 builtin and then its argument prototype would still apply. */
5858 rm -f conftest.$ac_objext conftest$ac_exeext
5859 if { (eval echo "$as_me:5859: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>&5
5862 echo "$as_me:5862: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -s conftest$ac_exeext'
5865 { (eval echo "$as_me:5865: \"$ac_try\"") >&5
5868 echo "$as_me:5868: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5870 eval "$as_ac_Lib=yes"
5872 echo "$as_me: failed program was:" >&5
5873 cat conftest.$ac_ext >&5
5874 eval "$as_ac_Lib=no"
5876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5877 LIBS=$ac_check_lib_save_LIBS
5879 echo "$as_me:5879: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5880 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5881 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5891 # Check for library containing initscr
5892 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5893 if test "x$cf_curs_lib" = x
5895 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
5897 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5898 echo "$as_me:5898: checking for initscr in -l$cf_curs_lib" >&5
5899 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5900 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 ac_check_lib_save_LIBS=$LIBS
5904 LIBS="-l$cf_curs_lib $LIBS"
5905 cat >conftest.$ac_ext <<_ACEOF
5906 #line 5906 "configure"
5907 #include "confdefs.h"
5909 /* Override any gcc2 internal prototype to avoid an error. */
5913 /* We use char because int might match the return type of a gcc2
5914 builtin and then its argument prototype would still apply. */
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 eval "$as_ac_Lib=yes"
5938 echo "$as_me: failed program was:" >&5
5939 cat conftest.$ac_ext >&5
5940 eval "$as_ac_Lib=no"
5942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5943 LIBS=$ac_check_lib_save_LIBS
5945 echo "$as_me:5945: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5946 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5947 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5953 test $cf_curs_lib = unknown && { { echo "$as_me:5953: error: no curses library found" >&5
5954 echo "$as_me: error: no curses library found" >&2;}
5955 { (exit 1); exit 1; }; }
5957 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5958 if test "$cf_term_lib" = unknown ; then
5959 echo "$as_me:5959: checking if we can link with $cf_curs_lib library" >&5
5960 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5961 cat >conftest.$ac_ext <<_ACEOF
5962 #line 5962 "configure"
5963 #include "confdefs.h"
5964 #include <${cf_cv_ncurses_header:-curses.h}>
5973 rm -f conftest.$ac_objext conftest$ac_exeext
5974 if { (eval echo "$as_me:5974: \"$ac_link\"") >&5
5975 (eval $ac_link) 2>&5
5977 echo "$as_me:5977: \$? = $ac_status" >&5
5978 (exit $ac_status); } &&
5979 { ac_try='test -s conftest$ac_exeext'
5980 { (eval echo "$as_me:5980: \"$ac_try\"") >&5
5983 echo "$as_me:5983: \$? = $ac_status" >&5
5984 (exit $ac_status); }; }; then
5987 echo "$as_me: failed program was:" >&5
5988 cat conftest.$ac_ext >&5
5991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5992 echo "$as_me:5992: result: $cf_result" >&5
5993 echo "${ECHO_T}$cf_result" >&6
5994 test $cf_result = no && { { echo "$as_me:5994: error: Cannot link curses library" >&5
5995 echo "$as_me: error: Cannot link curses library" >&2;}
5996 { (exit 1); exit 1; }; }
5997 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
5999 elif test "$cf_term_lib" != predefined ; then
6000 echo "$as_me:6000: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
6001 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
6002 cat >conftest.$ac_ext <<_ACEOF
6003 #line 6003 "configure"
6004 #include "confdefs.h"
6005 #include <${cf_cv_ncurses_header:-curses.h}>
6009 initscr(); tgoto((char *)0, 0, 0);
6014 rm -f conftest.$ac_objext conftest$ac_exeext
6015 if { (eval echo "$as_me:6015: \"$ac_link\"") >&5
6016 (eval $ac_link) 2>&5
6018 echo "$as_me:6018: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -s conftest$ac_exeext'
6021 { (eval echo "$as_me:6021: \"$ac_try\"") >&5
6024 echo "$as_me:6024: \$? = $ac_status" >&5
6025 (exit $ac_status); }; }; then
6028 echo "$as_me: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6031 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
6032 cat >conftest.$ac_ext <<_ACEOF
6033 #line 6033 "configure"
6034 #include "confdefs.h"
6035 #include <${cf_cv_ncurses_header:-curses.h}>
6044 rm -f conftest.$ac_objext conftest$ac_exeext
6045 if { (eval echo "$as_me:6045: \"$ac_link\"") >&5
6046 (eval $ac_link) 2>&5
6048 echo "$as_me:6048: \$? = $ac_status" >&5
6049 (exit $ac_status); } &&
6050 { ac_try='test -s conftest$ac_exeext'
6051 { (eval echo "$as_me:6051: \"$ac_try\"") >&5
6054 echo "$as_me:6054: \$? = $ac_status" >&5
6055 (exit $ac_status); }; }; then
6058 echo "$as_me: failed program was:" >&5
6059 cat conftest.$ac_ext >&5
6062 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6066 echo "$as_me:6066: result: $cf_result" >&5
6067 echo "${ECHO_T}$cf_result" >&6
6075 echo "$as_me:6075: checking for multibyte character support" >&5
6076 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
6077 if test "${cf_cv_utf8_lib+set}" = set; then
6078 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 cf_save_LIBS="$LIBS"
6082 cat >conftest.$ac_ext <<_ACEOF
6083 #line 6083 "configure"
6084 #include "confdefs.h"
6095 rm -f conftest.$ac_objext conftest$ac_exeext
6096 if { (eval echo "$as_me:6096: \"$ac_link\"") >&5
6097 (eval $ac_link) 2>&5
6099 echo "$as_me:6099: \$? = $ac_status" >&5
6100 (exit $ac_status); } &&
6101 { ac_try='test -s conftest$ac_exeext'
6102 { (eval echo "$as_me:6102: \"$ac_try\"") >&5
6105 echo "$as_me:6105: \$? = $ac_status" >&5
6106 (exit $ac_status); }; }; then
6109 echo "$as_me: failed program was:" >&5
6110 cat conftest.$ac_ext >&5
6112 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
6113 # will be set on completion of the AC_TRY_LINK below.
6114 cf_cv_header_path_utf8=
6115 cf_cv_library_path_utf8=
6117 echo "${as_me:-configure}:6117: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
6119 cf_save_LIBS="$LIBS"
6121 cat >conftest.$ac_ext <<_ACEOF
6122 #line 6122 "configure"
6123 #include "confdefs.h"
6125 #include <libutf8.h>
6134 rm -f conftest.$ac_objext conftest$ac_exeext
6135 if { (eval echo "$as_me:6135: \"$ac_link\"") >&5
6136 (eval $ac_link) 2>&5
6138 echo "$as_me:6138: \$? = $ac_status" >&5
6139 (exit $ac_status); } &&
6140 { ac_try='test -s conftest$ac_exeext'
6141 { (eval echo "$as_me:6141: \"$ac_try\"") >&5
6144 echo "$as_me:6144: \$? = $ac_status" >&5
6145 (exit $ac_status); }; }; then
6147 cf_cv_find_linkage_utf8=yes
6148 cf_cv_header_path_utf8=/usr/include
6149 cf_cv_library_path_utf8=/usr/lib
6152 echo "$as_me: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6155 LIBS="-lutf8 $cf_save_LIBS"
6157 cat >conftest.$ac_ext <<_ACEOF
6158 #line 6158 "configure"
6159 #include "confdefs.h"
6161 #include <libutf8.h>
6170 rm -f conftest.$ac_objext conftest$ac_exeext
6171 if { (eval echo "$as_me:6171: \"$ac_link\"") >&5
6172 (eval $ac_link) 2>&5
6174 echo "$as_me:6174: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -s conftest$ac_exeext'
6177 { (eval echo "$as_me:6177: \"$ac_try\"") >&5
6180 echo "$as_me:6180: \$? = $ac_status" >&5
6181 (exit $ac_status); }; }; then
6183 cf_cv_find_linkage_utf8=yes
6184 cf_cv_header_path_utf8=/usr/include
6185 cf_cv_library_path_utf8=/usr/lib
6186 cf_cv_library_file_utf8="-lutf8"
6189 echo "$as_me: failed program was:" >&5
6190 cat conftest.$ac_ext >&5
6192 cf_cv_find_linkage_utf8=no
6193 LIBS="$cf_save_LIBS"
6195 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
6197 echo "${as_me:-configure}:6197: testing find linkage for utf8 library ..." 1>&5
6199 echo "${as_me:-configure}:6199: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
6201 cf_save_CPPFLAGS="$CPPFLAGS"
6202 cf_test_CPPFLAGS="$CPPFLAGS"
6206 # collect the current set of include-directories from compiler flags
6207 cf_header_path_list=""
6208 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6209 for cf_header_path in $CPPFLAGS $CFLAGS
6211 case $cf_header_path in
6213 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6215 test "x$cf_header_path" != "xNONE" && \
6216 test -d "$cf_header_path" && \
6218 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6219 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6220 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
6221 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
6222 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
6223 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
6226 cf_header_path_list="$cf_header_path_list $cf_search"
6232 # add the variations for the package we are looking for
6236 test "x$prefix" != "xNONE" && \
6237 test -d "$prefix" && \
6239 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6240 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6241 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
6242 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
6243 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
6244 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
6247 for cf_subdir_prefix in \
6256 test "x$cf_subdir_prefix" != "x$prefix" && \
6257 test -d "$cf_subdir_prefix" && \
6258 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
6259 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
6260 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
6261 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
6262 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
6263 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
6264 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
6269 test "$includedir" != NONE && \
6270 test "$includedir" != "/usr/include" && \
6271 test -d "$includedir" && {
6272 test -d $includedir && cf_search="$cf_search $includedir"
6273 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
6276 test "$oldincludedir" != NONE && \
6277 test "$oldincludedir" != "/usr/include" && \
6278 test -d "$oldincludedir" && {
6279 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6280 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
6283 cf_search="$cf_search $cf_header_path_list"
6285 for cf_cv_header_path_utf8 in $cf_search
6287 if test -d $cf_cv_header_path_utf8 ; then
6288 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
6290 echo "${as_me:-configure}:6290: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
6292 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
6293 cat >conftest.$ac_ext <<_ACEOF
6294 #line 6294 "configure"
6295 #include "confdefs.h"
6297 #include <libutf8.h>
6306 rm -f conftest.$ac_objext
6307 if { (eval echo "$as_me:6307: \"$ac_compile\"") >&5
6308 (eval $ac_compile) 2>&5
6310 echo "$as_me:6310: \$? = $ac_status" >&5
6311 (exit $ac_status); } &&
6312 { ac_try='test -s conftest.$ac_objext'
6313 { (eval echo "$as_me:6313: \"$ac_try\"") >&5
6316 echo "$as_me:6316: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
6319 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
6321 echo "${as_me:-configure}:6321: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
6323 cf_cv_find_linkage_utf8=maybe
6324 cf_test_CPPFLAGS="$CPPFLAGS"
6327 echo "$as_me: failed program was:" >&5
6328 cat conftest.$ac_ext >&5
6330 CPPFLAGS="$cf_save_CPPFLAGS"
6333 rm -f conftest.$ac_objext conftest.$ac_ext
6337 if test "$cf_cv_find_linkage_utf8" = maybe ; then
6339 echo "${as_me:-configure}:6339: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
6341 cf_save_LIBS="$LIBS"
6342 cf_save_LDFLAGS="$LDFLAGS"
6344 if test "$cf_cv_find_linkage_utf8" != yes ; then
6347 cf_library_path_list=""
6348 if test -n "${LDFLAGS}${LIBS}" ; then
6349 for cf_library_path in $LDFLAGS $LIBS
6351 case $cf_library_path in
6353 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
6355 test "x$cf_library_path" != "xNONE" && \
6356 test -d "$cf_library_path" && \
6358 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
6359 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
6360 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
6361 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
6362 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
6363 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
6366 cf_library_path_list="$cf_library_path_list $cf_search"
6374 test "x$prefix" != "xNONE" && \
6375 test -d "$prefix" && \
6377 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
6378 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
6379 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
6380 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
6381 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
6382 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
6385 for cf_subdir_prefix in \
6394 test "x$cf_subdir_prefix" != "x$prefix" && \
6395 test -d "$cf_subdir_prefix" && \
6396 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
6397 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
6398 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
6399 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
6400 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
6401 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
6402 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
6407 cf_search="$cf_library_path_list $cf_search"
6409 for cf_cv_library_path_utf8 in $cf_search
6411 if test -d $cf_cv_library_path_utf8 ; then
6412 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
6414 echo "${as_me:-configure}:6414: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
6416 CPPFLAGS="$cf_test_CPPFLAGS"
6417 LIBS="-lutf8 $cf_save_LIBS"
6418 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
6419 cat >conftest.$ac_ext <<_ACEOF
6420 #line 6420 "configure"
6421 #include "confdefs.h"
6423 #include <libutf8.h>
6432 rm -f conftest.$ac_objext conftest$ac_exeext
6433 if { (eval echo "$as_me:6433: \"$ac_link\"") >&5
6434 (eval $ac_link) 2>&5
6436 echo "$as_me:6436: \$? = $ac_status" >&5
6437 (exit $ac_status); } &&
6438 { ac_try='test -s conftest$ac_exeext'
6439 { (eval echo "$as_me:6439: \"$ac_try\"") >&5
6442 echo "$as_me:6442: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6445 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
6447 echo "${as_me:-configure}:6447: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
6449 cf_cv_find_linkage_utf8=yes
6450 cf_cv_library_file_utf8="-lutf8"
6453 echo "$as_me: failed program was:" >&5
6454 cat conftest.$ac_ext >&5
6456 CPPFLAGS="$cf_save_CPPFLAGS"
6457 LIBS="$cf_save_LIBS"
6458 LDFLAGS="$cf_save_LDFLAGS"
6461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6464 CPPFLAGS="$cf_save_CPPFLAGS"
6465 LDFLAGS="$cf_save_LDFLAGS"
6469 cf_cv_find_linkage_utf8=no
6473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6478 LIBS="$cf_save_LIBS"
6480 if test "$cf_cv_find_linkage_utf8" = yes ; then
6481 cf_cv_utf8_lib=add-on
6487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6489 echo "$as_me:6489: result: $cf_cv_utf8_lib" >&5
6490 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
6492 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
6494 if test "$cf_cv_utf8_lib" = "add-on" ; then
6496 cat >>confdefs.h <<\EOF
6497 #define HAVE_LIBUTF8_H 1
6500 if test -n "$cf_cv_header_path_utf8" ; then
6501 for cf_add_incdir in $cf_cv_header_path_utf8
6503 while test $cf_add_incdir != /usr/include
6505 if test -d $cf_add_incdir
6508 if test -n "$CFLAGS$CPPFLAGS" ; then
6509 # a loop is needed to ensure we can add subdirs of existing dirs
6510 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6511 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6512 cf_have_incdir=yes; break
6517 if test "$cf_have_incdir" = no ; then
6518 if test "$cf_add_incdir" = /usr/local/include ; then
6519 if test "$GCC" = yes
6521 cf_save_CPPFLAGS=$CPPFLAGS
6522 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6523 cat >conftest.$ac_ext <<_ACEOF
6524 #line 6524 "configure"
6525 #include "confdefs.h"
6535 rm -f conftest.$ac_objext
6536 if { (eval echo "$as_me:6536: \"$ac_compile\"") >&5
6537 (eval $ac_compile) 2>&5
6539 echo "$as_me:6539: \$? = $ac_status" >&5
6540 (exit $ac_status); } &&
6541 { ac_try='test -s conftest.$ac_objext'
6542 { (eval echo "$as_me:6542: \"$ac_try\"") >&5
6545 echo "$as_me:6545: \$? = $ac_status" >&5
6546 (exit $ac_status); }; }; then
6549 echo "$as_me: failed program was:" >&5
6550 cat conftest.$ac_ext >&5
6553 rm -f conftest.$ac_objext conftest.$ac_ext
6554 CPPFLAGS=$cf_save_CPPFLAGS
6559 if test "$cf_have_incdir" = no ; then
6560 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6562 echo "${as_me:-configure}:6562: testing adding $cf_add_incdir to include-path ..." 1>&5
6564 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6566 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6567 test "$cf_top_incdir" = "$cf_add_incdir" && break
6568 cf_add_incdir="$cf_top_incdir"
6579 if test -n "$cf_cv_library_path_utf8" ; then
6580 for cf_add_libdir in $cf_cv_library_path_utf8
6582 if test $cf_add_libdir = /usr/lib ; then
6584 elif test -d $cf_add_libdir
6587 if test -n "$LDFLAGS$LIBS" ; then
6588 # a loop is needed to ensure we can add subdirs of existing dirs
6589 for cf_test_libdir in $LDFLAGS $LIBS ; do
6590 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6591 cf_have_libdir=yes; break
6595 if test "$cf_have_libdir" = no ; then
6596 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6598 echo "${as_me:-configure}:6598: testing adding $cf_add_libdir to library-path ..." 1>&5
6600 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6606 cf_add_libs="$cf_cv_library_file_utf8"
6607 # Filter out duplicates - this happens with badly-designed ".pc" files...
6608 for cf_add_1lib in $LIBS
6610 for cf_add_2lib in $cf_add_libs
6612 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6618 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6624 cf_ncuconfig_root=$cf_cv_screen
6625 cf_have_ncuconfig=no
6627 if test "x${PKG_CONFIG:=none}" != xnone; then
6628 echo "$as_me:6628: checking pkg-config for $cf_ncuconfig_root" >&5
6629 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
6630 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
6631 echo "$as_me:6631: result: yes" >&5
6632 echo "${ECHO_T}yes" >&6
6634 echo "$as_me:6634: checking if the $cf_ncuconfig_root package files work" >&5
6635 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
6636 cf_have_ncuconfig=unknown
6638 cf_save_CPPFLAGS="$CPPFLAGS"
6639 cf_save_LIBS="$LIBS"
6641 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
6643 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
6644 # Filter out duplicates - this happens with badly-designed ".pc" files...
6645 for cf_add_1lib in $LIBS
6647 for cf_add_2lib in $cf_add_libs
6649 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6655 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6659 cat >conftest.$ac_ext <<_ACEOF
6660 #line 6660 "configure"
6661 #include "confdefs.h"
6662 #include <${cf_cv_ncurses_header:-curses.h}>
6666 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
6671 rm -f conftest.$ac_objext conftest$ac_exeext
6672 if { (eval echo "$as_me:6672: \"$ac_link\"") >&5
6673 (eval $ac_link) 2>&5
6675 echo "$as_me:6675: \$? = $ac_status" >&5
6676 (exit $ac_status); } &&
6677 { ac_try='test -s conftest$ac_exeext'
6678 { (eval echo "$as_me:6678: \"$ac_try\"") >&5
6681 echo "$as_me:6681: \$? = $ac_status" >&5
6682 (exit $ac_status); }; }; then
6683 if test "$cross_compiling" = yes; then
6684 cf_have_ncuconfig=maybe
6686 cat >conftest.$ac_ext <<_ACEOF
6687 #line 6687 "configure"
6688 #include "confdefs.h"
6689 #include <${cf_cv_ncurses_header:-curses.h}>
6691 { char *xx = curses_version(); return (xx == 0); }
6693 rm -f conftest$ac_exeext
6694 if { (eval echo "$as_me:6694: \"$ac_link\"") >&5
6695 (eval $ac_link) 2>&5
6697 echo "$as_me:6697: \$? = $ac_status" >&5
6698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6699 { (eval echo "$as_me:6699: \"$ac_try\"") >&5
6702 echo "$as_me:6702: \$? = $ac_status" >&5
6703 (exit $ac_status); }; }; then
6704 cf_have_ncuconfig=yes
6706 echo "$as_me: program exited with status $ac_status" >&5
6707 echo "$as_me: failed program was:" >&5
6708 cat conftest.$ac_ext >&5
6709 cf_have_ncuconfig=no
6711 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6714 echo "$as_me: failed program was:" >&5
6715 cat conftest.$ac_ext >&5
6716 cf_have_ncuconfig=no
6718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6719 echo "$as_me:6719: result: $cf_have_ncuconfig" >&5
6720 echo "${ECHO_T}$cf_have_ncuconfig" >&6
6721 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
6722 if test "$cf_have_ncuconfig" != "yes"
6724 CPPFLAGS="$cf_save_CPPFLAGS"
6725 LIBS="$cf_save_LIBS"
6726 NCURSES_CONFIG_PKG=none
6729 cat >>confdefs.h <<\EOF
6733 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
6737 echo "$as_me:6737: result: no" >&5
6738 echo "${ECHO_T}no" >&6
6739 NCURSES_CONFIG_PKG=none
6742 NCURSES_CONFIG_PKG=none
6745 if test "x$cf_have_ncuconfig" = "xno"; then
6746 echo "Looking for ${cf_ncuconfig_root}-config"
6748 if test -n "$ac_tool_prefix"; then
6749 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6751 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6752 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6753 echo "$as_me:6753: checking for $ac_word" >&5
6754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6755 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6758 if test -n "$NCURSES_CONFIG"; then
6759 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
6761 ac_save_IFS=$IFS; IFS=$ac_path_separator
6763 for ac_dir in $ac_dummy; do
6765 test -z "$ac_dir" && ac_dir=.
6766 $as_executable_p "$ac_dir/$ac_word" || continue
6767 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
6768 echo "$as_me:6768: found $ac_dir/$ac_word" >&5
6774 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
6775 if test -n "$NCURSES_CONFIG"; then
6776 echo "$as_me:6776: result: $NCURSES_CONFIG" >&5
6777 echo "${ECHO_T}$NCURSES_CONFIG" >&6
6779 echo "$as_me:6779: result: no" >&5
6780 echo "${ECHO_T}no" >&6
6783 test -n "$NCURSES_CONFIG" && break
6786 if test -z "$NCURSES_CONFIG"; then
6787 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
6788 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6790 # Extract the first word of "$ac_prog", so it can be a program name with args.
6791 set dummy $ac_prog; ac_word=$2
6792 echo "$as_me:6792: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6794 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 if test -n "$ac_ct_NCURSES_CONFIG"; then
6798 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
6800 ac_save_IFS=$IFS; IFS=$ac_path_separator
6802 for ac_dir in $ac_dummy; do
6804 test -z "$ac_dir" && ac_dir=.
6805 $as_executable_p "$ac_dir/$ac_word" || continue
6806 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
6807 echo "$as_me:6807: found $ac_dir/$ac_word" >&5
6813 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
6814 if test -n "$ac_ct_NCURSES_CONFIG"; then
6815 echo "$as_me:6815: result: $ac_ct_NCURSES_CONFIG" >&5
6816 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
6818 echo "$as_me:6818: result: no" >&5
6819 echo "${ECHO_T}no" >&6
6822 test -n "$ac_ct_NCURSES_CONFIG" && break
6824 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
6826 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
6829 if test "$NCURSES_CONFIG" != none ; then
6831 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
6833 cf_add_libs="`$NCURSES_CONFIG --libs`"
6834 # Filter out duplicates - this happens with badly-designed ".pc" files...
6835 for cf_add_1lib in $LIBS
6837 for cf_add_2lib in $cf_add_libs
6839 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6845 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6849 # even with config script, some packages use no-override for curses.h
6851 echo "$as_me:6851: checking if we have identified curses headers" >&5
6852 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
6853 if test "${cf_cv_ncurses_header+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6857 cf_cv_ncurses_header=none
6859 ncurses.h $cf_cv_screen/ncurses.h \
6860 curses.h $cf_cv_screen/curses.h
6862 cat >conftest.$ac_ext <<_ACEOF
6863 #line 6863 "configure"
6864 #include "confdefs.h"
6865 #include <${cf_header}>
6869 initscr(); tgoto("?", 0,0)
6874 rm -f conftest.$ac_objext
6875 if { (eval echo "$as_me:6875: \"$ac_compile\"") >&5
6876 (eval $ac_compile) 2>&5
6878 echo "$as_me:6878: \$? = $ac_status" >&5
6879 (exit $ac_status); } &&
6880 { ac_try='test -s conftest.$ac_objext'
6881 { (eval echo "$as_me:6881: \"$ac_try\"") >&5
6884 echo "$as_me:6884: \$? = $ac_status" >&5
6885 (exit $ac_status); }; }; then
6886 cf_cv_ncurses_header=$cf_header; break
6888 echo "$as_me: failed program was:" >&5
6889 cat conftest.$ac_ext >&5
6891 rm -f conftest.$ac_objext conftest.$ac_ext
6895 echo "$as_me:6895: result: $cf_cv_ncurses_header" >&5
6896 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
6898 if test "$cf_cv_ncurses_header" = none ; then
6899 { { echo "$as_me:6899: error: No curses header-files found" >&5
6900 echo "$as_me: error: No curses header-files found" >&2;}
6901 { (exit 1); exit 1; }; }
6904 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
6906 for ac_header in $cf_cv_ncurses_header
6908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6909 echo "$as_me:6909: checking for $ac_header" >&5
6910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 cat >conftest.$ac_ext <<_ACEOF
6915 #line 6915 "configure"
6916 #include "confdefs.h"
6917 #include <$ac_header>
6919 if { (eval echo "$as_me:6919: \"$ac_cpp conftest.$ac_ext\"") >&5
6920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6922 egrep -v '^ *\+' conftest.er1 >conftest.err
6924 cat conftest.err >&5
6925 echo "$as_me:6925: \$? = $ac_status" >&5
6926 (exit $ac_status); } >/dev/null; then
6927 if test -s conftest.err; then
6928 ac_cpp_err=$ac_c_preproc_warn_flag
6935 if test -z "$ac_cpp_err"; then
6936 eval "$as_ac_Header=yes"
6938 echo "$as_me: failed program was:" >&5
6939 cat conftest.$ac_ext >&5
6940 eval "$as_ac_Header=no"
6942 rm -f conftest.err conftest.$ac_ext
6944 echo "$as_me:6944: result: `eval echo '${'$as_ac_Header'}'`" >&5
6945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6947 cat >>confdefs.h <<EOF
6948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6954 cat >>confdefs.h <<\EOF
6958 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6960 cat >>confdefs.h <<EOF
6961 #define $cf_nculib_ROOT 1
6964 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
6968 cf_ncuhdr_root=$cf_cv_screen
6970 test -n "$cf_cv_curses_dir" && \
6971 test "$cf_cv_curses_dir" != "no" && { \
6973 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
6974 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
6976 while test $cf_add_incdir != /usr/include
6978 if test -d $cf_add_incdir
6981 if test -n "$CFLAGS$CPPFLAGS" ; then
6982 # a loop is needed to ensure we can add subdirs of existing dirs
6983 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6984 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6985 cf_have_incdir=yes; break
6990 if test "$cf_have_incdir" = no ; then
6991 if test "$cf_add_incdir" = /usr/local/include ; then
6992 if test "$GCC" = yes
6994 cf_save_CPPFLAGS=$CPPFLAGS
6995 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6996 cat >conftest.$ac_ext <<_ACEOF
6997 #line 6997 "configure"
6998 #include "confdefs.h"
7008 rm -f conftest.$ac_objext
7009 if { (eval echo "$as_me:7009: \"$ac_compile\"") >&5
7010 (eval $ac_compile) 2>&5
7012 echo "$as_me:7012: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try='test -s conftest.$ac_objext'
7015 { (eval echo "$as_me:7015: \"$ac_try\"") >&5
7018 echo "$as_me:7018: \$? = $ac_status" >&5
7019 (exit $ac_status); }; }; then
7022 echo "$as_me: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7026 rm -f conftest.$ac_objext conftest.$ac_ext
7027 CPPFLAGS=$cf_save_CPPFLAGS
7032 if test "$cf_have_incdir" = no ; then
7033 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7035 echo "${as_me:-configure}:7035: testing adding $cf_add_incdir to include-path ..." 1>&5
7037 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7039 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7040 test "$cf_top_incdir" = "$cf_add_incdir" && break
7041 cf_add_incdir="$cf_top_incdir"
7054 echo "$as_me:7054: checking for $cf_ncuhdr_root header in include-path" >&5
7055 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
7056 if test "${cf_cv_ncurses_h+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
7061 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
7062 for cf_header in $cf_header_list
7065 cat >conftest.$ac_ext <<_ACEOF
7066 #line 7066 "configure"
7067 #include "confdefs.h"
7069 #include <$cf_header>
7074 #ifdef NCURSES_VERSION
7076 printf("%s\n", NCURSES_VERSION);
7089 rm -f conftest.$ac_objext
7090 if { (eval echo "$as_me:7090: \"$ac_compile\"") >&5
7091 (eval $ac_compile) 2>&5
7093 echo "$as_me:7093: \$? = $ac_status" >&5
7094 (exit $ac_status); } &&
7095 { ac_try='test -s conftest.$ac_objext'
7096 { (eval echo "$as_me:7096: \"$ac_try\"") >&5
7099 echo "$as_me:7099: \$? = $ac_status" >&5
7100 (exit $ac_status); }; }; then
7101 cf_cv_ncurses_h=$cf_header
7104 echo "$as_me: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7108 rm -f conftest.$ac_objext conftest.$ac_ext
7110 test "$cf_cv_ncurses_h" != no && break
7114 echo "$as_me:7114: result: $cf_cv_ncurses_h" >&5
7115 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
7117 if test "$cf_cv_ncurses_h" != no ; then
7118 cf_cv_ncurses_header=$cf_cv_ncurses_h
7121 echo "$as_me:7121: checking for $cf_ncuhdr_root include-path" >&5
7122 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
7123 if test "${cf_cv_ncurses_h2+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 test -n "$verbose" && echo
7131 # collect the current set of include-directories from compiler flags
7132 cf_header_path_list=""
7133 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7134 for cf_header_path in $CPPFLAGS $CFLAGS
7136 case $cf_header_path in
7138 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7140 test "x$cf_header_path" != "xNONE" && \
7141 test -d "$cf_header_path" && \
7143 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7144 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7145 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
7146 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
7147 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
7148 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"
7151 cf_header_path_list="$cf_header_path_list $cf_search"
7157 # add the variations for the package we are looking for
7161 test "x$prefix" != "xNONE" && \
7162 test -d "$prefix" && \
7164 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7165 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7166 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
7167 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
7168 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
7169 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7172 for cf_subdir_prefix in \
7181 test "x$cf_subdir_prefix" != "x$prefix" && \
7182 test -d "$cf_subdir_prefix" && \
7183 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
7184 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
7185 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
7186 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
7187 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
7188 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
7189 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"
7194 test "$includedir" != NONE && \
7195 test "$includedir" != "/usr/include" && \
7196 test -d "$includedir" && {
7197 test -d $includedir && cf_search="$cf_search $includedir"
7198 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
7201 test "$oldincludedir" != NONE && \
7202 test "$oldincludedir" != "/usr/include" && \
7203 test -d "$oldincludedir" && {
7204 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7205 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
7208 cf_search="$cf_search $cf_header_path_list"
7210 test -n "$verbose" && echo search path $cf_search
7211 cf_save2_CPPFLAGS="$CPPFLAGS"
7212 for cf_incdir in $cf_search
7215 if test -n "$cf_incdir" ; then
7216 for cf_add_incdir in $cf_incdir
7218 while test $cf_add_incdir != /usr/include
7220 if test -d $cf_add_incdir
7223 if test -n "$CFLAGS$CPPFLAGS" ; then
7224 # a loop is needed to ensure we can add subdirs of existing dirs
7225 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7226 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7227 cf_have_incdir=yes; break
7232 if test "$cf_have_incdir" = no ; then
7233 if test "$cf_add_incdir" = /usr/local/include ; then
7234 if test "$GCC" = yes
7236 cf_save_CPPFLAGS=$CPPFLAGS
7237 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7238 cat >conftest.$ac_ext <<_ACEOF
7239 #line 7239 "configure"
7240 #include "confdefs.h"
7250 rm -f conftest.$ac_objext
7251 if { (eval echo "$as_me:7251: \"$ac_compile\"") >&5
7252 (eval $ac_compile) 2>&5
7254 echo "$as_me:7254: \$? = $ac_status" >&5
7255 (exit $ac_status); } &&
7256 { ac_try='test -s conftest.$ac_objext'
7257 { (eval echo "$as_me:7257: \"$ac_try\"") >&5
7260 echo "$as_me:7260: \$? = $ac_status" >&5
7261 (exit $ac_status); }; }; then
7264 echo "$as_me: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7268 rm -f conftest.$ac_objext conftest.$ac_ext
7269 CPPFLAGS=$cf_save_CPPFLAGS
7274 if test "$cf_have_incdir" = no ; then
7275 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7277 echo "${as_me:-configure}:7277: testing adding $cf_add_incdir to include-path ..." 1>&5
7279 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7281 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7282 test "$cf_top_incdir" = "$cf_add_incdir" && break
7283 cf_add_incdir="$cf_top_incdir"
7299 cat >conftest.$ac_ext <<_ACEOF
7300 #line 7300 "configure"
7301 #include "confdefs.h"
7303 #include <$cf_header>
7308 #ifdef NCURSES_VERSION
7310 printf("%s\n", NCURSES_VERSION);
7323 rm -f conftest.$ac_objext
7324 if { (eval echo "$as_me:7324: \"$ac_compile\"") >&5
7325 (eval $ac_compile) 2>&5
7327 echo "$as_me:7327: \$? = $ac_status" >&5
7328 (exit $ac_status); } &&
7329 { ac_try='test -s conftest.$ac_objext'
7330 { (eval echo "$as_me:7330: \"$ac_try\"") >&5
7333 echo "$as_me:7333: \$? = $ac_status" >&5
7334 (exit $ac_status); }; }; then
7335 cf_cv_ncurses_h2=$cf_header
7338 echo "$as_me: failed program was:" >&5
7339 cat conftest.$ac_ext >&5
7342 rm -f conftest.$ac_objext conftest.$ac_ext
7344 if test "$cf_cv_ncurses_h2" != no ; then
7345 cf_cv_ncurses_h2=$cf_incdir/$cf_header
7346 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
7349 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
7351 CPPFLAGS="$cf_save2_CPPFLAGS"
7352 test "$cf_cv_ncurses_h2" != no && break
7354 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:7354: error: not found" >&5
7355 echo "$as_me: error: not found" >&2;}
7356 { (exit 1); exit 1; }; }
7359 echo "$as_me:7359: result: $cf_cv_ncurses_h2" >&5
7360 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
7362 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
7363 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
7364 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
7365 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
7368 if test -n "$cf_1st_incdir" ; then
7369 for cf_add_incdir in $cf_1st_incdir
7371 while test $cf_add_incdir != /usr/include
7373 if test -d $cf_add_incdir
7376 if test -n "$CFLAGS$CPPFLAGS" ; then
7377 # a loop is needed to ensure we can add subdirs of existing dirs
7378 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7379 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7380 cf_have_incdir=yes; break
7385 if test "$cf_have_incdir" = no ; then
7386 if test "$cf_add_incdir" = /usr/local/include ; then
7387 if test "$GCC" = yes
7389 cf_save_CPPFLAGS=$CPPFLAGS
7390 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7391 cat >conftest.$ac_ext <<_ACEOF
7392 #line 7392 "configure"
7393 #include "confdefs.h"
7403 rm -f conftest.$ac_objext
7404 if { (eval echo "$as_me:7404: \"$ac_compile\"") >&5
7405 (eval $ac_compile) 2>&5
7407 echo "$as_me:7407: \$? = $ac_status" >&5
7408 (exit $ac_status); } &&
7409 { ac_try='test -s conftest.$ac_objext'
7410 { (eval echo "$as_me:7410: \"$ac_try\"") >&5
7413 echo "$as_me:7413: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7417 echo "$as_me: failed program was:" >&5
7418 cat conftest.$ac_ext >&5
7421 rm -f conftest.$ac_objext conftest.$ac_ext
7422 CPPFLAGS=$cf_save_CPPFLAGS
7427 if test "$cf_have_incdir" = no ; then
7428 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7430 echo "${as_me:-configure}:7430: testing adding $cf_add_incdir to include-path ..." 1>&5
7432 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7434 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7435 test "$cf_top_incdir" = "$cf_add_incdir" && break
7436 cf_add_incdir="$cf_top_incdir"
7449 # Set definitions to allow ifdef'ing for ncurses.h
7451 case $cf_cv_ncurses_header in
7454 cat >>confdefs.h <<\EOF
7455 #define HAVE_NCURSES_H 1
7461 case $cf_cv_ncurses_header in
7462 (ncurses/curses.h|ncurses/ncurses.h)
7464 cat >>confdefs.h <<\EOF
7465 #define HAVE_NCURSES_NCURSES_H 1
7469 (ncursesw/curses.h|ncursesw/ncurses.h)
7471 cat >>confdefs.h <<\EOF
7472 #define HAVE_NCURSESW_NCURSES_H 1
7478 echo "$as_me:7478: checking for terminfo header" >&5
7479 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
7480 if test "${cf_cv_term_header+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 case ${cf_cv_ncurses_header} in
7485 (*/ncurses.h|*/ncursesw.h)
7486 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
7489 cf_term_header=term.h
7493 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
7495 cat >conftest.$ac_ext <<_ACEOF
7496 #line 7496 "configure"
7497 #include "confdefs.h"
7499 #include <${cf_cv_ncurses_header:-curses.h}>
7505 int x = auto_left_margin
7510 rm -f conftest.$ac_objext
7511 if { (eval echo "$as_me:7511: \"$ac_compile\"") >&5
7512 (eval $ac_compile) 2>&5
7514 echo "$as_me:7514: \$? = $ac_status" >&5
7515 (exit $ac_status); } &&
7516 { ac_try='test -s conftest.$ac_objext'
7517 { (eval echo "$as_me:7517: \"$ac_try\"") >&5
7520 echo "$as_me:7520: \$? = $ac_status" >&5
7521 (exit $ac_status); }; }; then
7523 cf_cv_term_header="$cf_test"
7525 echo "$as_me: failed program was:" >&5
7526 cat conftest.$ac_ext >&5
7528 cf_cv_term_header=unknown
7531 rm -f conftest.$ac_objext conftest.$ac_ext
7532 test "$cf_cv_term_header" != unknown && break
7536 echo "$as_me:7536: result: $cf_cv_term_header" >&5
7537 echo "${ECHO_T}$cf_cv_term_header" >&6
7539 # Set definitions to allow ifdef'ing to accommodate subdirectories
7541 case $cf_cv_term_header in
7544 cat >>confdefs.h <<\EOF
7545 #define HAVE_TERM_H 1
7551 case $cf_cv_term_header in
7554 cat >>confdefs.h <<\EOF
7555 #define HAVE_NCURSES_TERM_H 1
7561 cat >>confdefs.h <<\EOF
7562 #define HAVE_NCURSESW_TERM_H 1
7568 # some applications need this, but should check for NCURSES_VERSION
7570 cat >>confdefs.h <<\EOF
7574 echo "$as_me:7574: checking for ncurses version" >&5
7575 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
7576 if test "${cf_cv_ncurses_version+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 cf_cv_ncurses_version=no
7583 if test "$cross_compiling" = yes; then
7585 # This will not work if the preprocessor splits the line after the
7586 # Autoconf token. The 'unproto' program does that.
7587 cat > conftest.$ac_ext <<EOF
7588 #include <${cf_cv_ncurses_header:-curses.h}>
7590 #ifdef NCURSES_VERSION
7591 Autoconf NCURSES_VERSION
7599 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
7600 { (eval echo "$as_me:7600: \"$cf_try\"") >&5
7603 echo "$as_me:7603: \$? = $ac_status" >&5
7604 (exit $ac_status); }
7605 if test -f conftest.out ; then
7606 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
7607 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
7612 cat >conftest.$ac_ext <<_ACEOF
7613 #line 7613 "configure"
7614 #include "confdefs.h"
7616 #include <${cf_cv_ncurses_header:-curses.h}>
7620 FILE *fp = fopen("$cf_tempfile", "w");
7621 #ifdef NCURSES_VERSION
7622 # ifdef NCURSES_VERSION_PATCH
7623 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
7625 fprintf(fp, "%s\n", NCURSES_VERSION);
7629 fprintf(fp, "old\n");
7634 ${cf_cv_main_return:-return}(0);
7637 rm -f conftest$ac_exeext
7638 if { (eval echo "$as_me:7638: \"$ac_link\"") >&5
7639 (eval $ac_link) 2>&5
7641 echo "$as_me:7641: \$? = $ac_status" >&5
7642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7643 { (eval echo "$as_me:7643: \"$ac_try\"") >&5
7646 echo "$as_me:7646: \$? = $ac_status" >&5
7647 (exit $ac_status); }; }; then
7649 cf_cv_ncurses_version=`cat $cf_tempfile`
7651 echo "$as_me: program exited with status $ac_status" >&5
7652 echo "$as_me: failed program was:" >&5
7653 cat conftest.$ac_ext >&5
7655 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7660 echo "$as_me:7660: result: $cf_cv_ncurses_version" >&5
7661 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
7662 test "$cf_cv_ncurses_version" = no ||
7663 cat >>confdefs.h <<\EOF
7667 cf_nculib_root=$cf_cv_screen
7668 # This works, except for the special case where we find gpm, but
7669 # ncurses is in a nonstandard location via $LIBS, and we really want
7672 cf_ncurses_SAVE="$LIBS"
7673 echo "$as_me:7673: checking for Gpm_Open in -lgpm" >&5
7674 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7675 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7678 ac_check_lib_save_LIBS=$LIBS
7680 cat >conftest.$ac_ext <<_ACEOF
7681 #line 7681 "configure"
7682 #include "confdefs.h"
7684 /* Override any gcc2 internal prototype to avoid an error. */
7688 /* We use char because int might match the return type of a gcc2
7689 builtin and then its argument prototype would still apply. */
7699 rm -f conftest.$ac_objext conftest$ac_exeext
7700 if { (eval echo "$as_me:7700: \"$ac_link\"") >&5
7701 (eval $ac_link) 2>&5
7703 echo "$as_me:7703: \$? = $ac_status" >&5
7704 (exit $ac_status); } &&
7705 { ac_try='test -s conftest$ac_exeext'
7706 { (eval echo "$as_me:7706: \"$ac_try\"") >&5
7709 echo "$as_me:7709: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7711 ac_cv_lib_gpm_Gpm_Open=yes
7713 echo "$as_me: failed program was:" >&5
7714 cat conftest.$ac_ext >&5
7715 ac_cv_lib_gpm_Gpm_Open=no
7717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7718 LIBS=$ac_check_lib_save_LIBS
7720 echo "$as_me:7720: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7721 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7722 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
7723 echo "$as_me:7723: checking for initscr in -lgpm" >&5
7724 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
7725 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 ac_check_lib_save_LIBS=$LIBS
7730 cat >conftest.$ac_ext <<_ACEOF
7731 #line 7731 "configure"
7732 #include "confdefs.h"
7734 /* Override any gcc2 internal prototype to avoid an error. */
7738 /* We use char because int might match the return type of a gcc2
7739 builtin and then its argument prototype would still apply. */
7749 rm -f conftest.$ac_objext conftest$ac_exeext
7750 if { (eval echo "$as_me:7750: \"$ac_link\"") >&5
7751 (eval $ac_link) 2>&5
7753 echo "$as_me:7753: \$? = $ac_status" >&5
7754 (exit $ac_status); } &&
7755 { ac_try='test -s conftest$ac_exeext'
7756 { (eval echo "$as_me:7756: \"$ac_try\"") >&5
7759 echo "$as_me:7759: \$? = $ac_status" >&5
7760 (exit $ac_status); }; }; then
7761 ac_cv_lib_gpm_initscr=yes
7763 echo "$as_me: failed program was:" >&5
7764 cat conftest.$ac_ext >&5
7765 ac_cv_lib_gpm_initscr=no
7767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7768 LIBS=$ac_check_lib_save_LIBS
7770 echo "$as_me:7770: result: $ac_cv_lib_gpm_initscr" >&5
7771 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
7772 if test $ac_cv_lib_gpm_initscr = yes; then
7773 LIBS="$cf_ncurses_SAVE"
7775 cf_ncurses_LIBS="-lgpm"
7782 # This is only necessary if you are linking against an obsolete
7783 # version of ncurses (but it should do no harm, since it's static).
7784 if test "$cf_nculib_root" = ncurses ; then
7785 echo "$as_me:7785: checking for tgoto in -lmytinfo" >&5
7786 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7787 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 ac_check_lib_save_LIBS=$LIBS
7791 LIBS="-lmytinfo $LIBS"
7792 cat >conftest.$ac_ext <<_ACEOF
7793 #line 7793 "configure"
7794 #include "confdefs.h"
7796 /* Override any gcc2 internal prototype to avoid an error. */
7800 /* We use char because int might match the return type of a gcc2
7801 builtin and then its argument prototype would still apply. */
7811 rm -f conftest.$ac_objext conftest$ac_exeext
7812 if { (eval echo "$as_me:7812: \"$ac_link\"") >&5
7813 (eval $ac_link) 2>&5
7815 echo "$as_me:7815: \$? = $ac_status" >&5
7816 (exit $ac_status); } &&
7817 { ac_try='test -s conftest$ac_exeext'
7818 { (eval echo "$as_me:7818: \"$ac_try\"") >&5
7821 echo "$as_me:7821: \$? = $ac_status" >&5
7822 (exit $ac_status); }; }; then
7823 ac_cv_lib_mytinfo_tgoto=yes
7825 echo "$as_me: failed program was:" >&5
7826 cat conftest.$ac_ext >&5
7827 ac_cv_lib_mytinfo_tgoto=no
7829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7830 LIBS=$ac_check_lib_save_LIBS
7832 echo "$as_me:7832: result: $ac_cv_lib_mytinfo_tgoto" >&5
7833 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
7834 if test $ac_cv_lib_mytinfo_tgoto = yes; then
7835 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
7842 cf_add_libs="$cf_ncurses_LIBS"
7843 # Filter out duplicates - this happens with badly-designed ".pc" files...
7844 for cf_add_1lib in $LIBS
7846 for cf_add_2lib in $cf_add_libs
7848 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7854 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7858 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
7861 cf_add_libs="-l$cf_nculib_root"
7862 # Filter out duplicates - this happens with badly-designed ".pc" files...
7863 for cf_add_1lib in $LIBS
7865 for cf_add_2lib in $cf_add_libs
7867 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7873 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7879 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
7881 echo "$as_me:7881: checking for initscr" >&5
7882 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7883 if test "${ac_cv_func_initscr+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7886 cat >conftest.$ac_ext <<_ACEOF
7887 #line 7887 "configure"
7888 #include "confdefs.h"
7889 /* System header to define __stub macros and hopefully few prototypes,
7890 which can conflict with char initscr (); below. */
7892 /* Override any gcc2 internal prototype to avoid an error. */
7896 /* We use char because int might match the return type of a gcc2
7897 builtin and then its argument prototype would still apply. */
7904 /* The GNU C library defines this for functions which it implements
7905 to always fail with ENOSYS. Some functions are actually named
7906 something starting with __ and the normal name is an alias. */
7907 #if defined (__stub_initscr) || defined (__stub___initscr)
7910 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (eval echo "$as_me:7918: \"$ac_link\"") >&5
7919 (eval $ac_link) 2>&5
7921 echo "$as_me:7921: \$? = $ac_status" >&5
7922 (exit $ac_status); } &&
7923 { ac_try='test -s conftest$ac_exeext'
7924 { (eval echo "$as_me:7924: \"$ac_try\"") >&5
7927 echo "$as_me:7927: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
7929 ac_cv_func_initscr=yes
7931 echo "$as_me: failed program was:" >&5
7932 cat conftest.$ac_ext >&5
7933 ac_cv_func_initscr=no
7935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7937 echo "$as_me:7937: result: $ac_cv_func_initscr" >&5
7938 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7939 if test $ac_cv_func_initscr = yes; then
7940 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7943 cf_save_LIBS="$LIBS"
7944 echo "$as_me:7944: checking for initscr in -l$cf_nculib_root" >&5
7945 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
7946 LIBS="-l$cf_nculib_root $LIBS"
7947 cat >conftest.$ac_ext <<_ACEOF
7948 #line 7948 "configure"
7949 #include "confdefs.h"
7950 #include <${cf_cv_ncurses_header:-curses.h}>
7959 rm -f conftest.$ac_objext conftest$ac_exeext
7960 if { (eval echo "$as_me:7960: \"$ac_link\"") >&5
7961 (eval $ac_link) 2>&5
7963 echo "$as_me:7963: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
7965 { ac_try='test -s conftest$ac_exeext'
7966 { (eval echo "$as_me:7966: \"$ac_try\"") >&5
7969 echo "$as_me:7969: \$? = $ac_status" >&5
7970 (exit $ac_status); }; }; then
7971 echo "$as_me:7971: result: yes" >&5
7972 echo "${ECHO_T}yes" >&6
7973 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7976 echo "$as_me: failed program was:" >&5
7977 cat conftest.$ac_ext >&5
7978 echo "$as_me:7978: result: no" >&5
7979 echo "${ECHO_T}no" >&6
7982 cf_library_path_list=""
7983 if test -n "${LDFLAGS}${LIBS}" ; then
7984 for cf_library_path in $LDFLAGS $LIBS
7986 case $cf_library_path in
7988 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7990 test "x$cf_library_path" != "xNONE" && \
7991 test -d "$cf_library_path" && \
7993 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7994 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7995 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
7996 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
7997 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
7998 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"
8001 cf_library_path_list="$cf_library_path_list $cf_search"
8009 test "x$prefix" != "xNONE" && \
8010 test -d "$prefix" && \
8012 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8013 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8014 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
8015 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
8016 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
8017 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
8020 for cf_subdir_prefix in \
8029 test "x$cf_subdir_prefix" != "x$prefix" && \
8030 test -d "$cf_subdir_prefix" && \
8031 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
8032 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
8033 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
8034 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
8035 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
8036 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
8037 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"
8042 cf_search="$cf_library_path_list $cf_search"
8044 for cf_libdir in $cf_search
8046 echo "$as_me:8046: checking for -l$cf_nculib_root in $cf_libdir" >&5
8047 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
8048 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
8049 cat >conftest.$ac_ext <<_ACEOF
8050 #line 8050 "configure"
8051 #include "confdefs.h"
8052 #include <${cf_cv_ncurses_header:-curses.h}>
8061 rm -f conftest.$ac_objext conftest$ac_exeext
8062 if { (eval echo "$as_me:8062: \"$ac_link\"") >&5
8063 (eval $ac_link) 2>&5
8065 echo "$as_me:8065: \$? = $ac_status" >&5
8066 (exit $ac_status); } &&
8067 { ac_try='test -s conftest$ac_exeext'
8068 { (eval echo "$as_me:8068: \"$ac_try\"") >&5
8071 echo "$as_me:8071: \$? = $ac_status" >&5
8072 (exit $ac_status); }; }; then
8073 echo "$as_me:8073: result: yes" >&5
8074 echo "${ECHO_T}yes" >&6
8075 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8078 echo "$as_me: failed program was:" >&5
8079 cat conftest.$ac_ext >&5
8080 echo "$as_me:8080: result: no" >&5
8081 echo "${ECHO_T}no" >&6
8082 LIBS="$cf_save_LIBS"
8084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8092 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
8094 if test $cf_found_library = no ; then
8095 { { echo "$as_me:8095: error: Cannot link $cf_nculib_root library" >&5
8096 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
8097 { (exit 1); exit 1; }; }
8102 if test -n "$cf_ncurses_LIBS" ; then
8103 echo "$as_me:8103: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
8104 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
8105 cf_ncurses_SAVE="$LIBS"
8106 for p in $cf_ncurses_LIBS ; do
8107 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
8108 if test "$q" != "$LIBS" ; then
8112 cat >conftest.$ac_ext <<_ACEOF
8113 #line 8113 "configure"
8114 #include "confdefs.h"
8115 #include <${cf_cv_ncurses_header:-curses.h}>
8119 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
8124 rm -f conftest.$ac_objext conftest$ac_exeext
8125 if { (eval echo "$as_me:8125: \"$ac_link\"") >&5
8126 (eval $ac_link) 2>&5
8128 echo "$as_me:8128: \$? = $ac_status" >&5
8129 (exit $ac_status); } &&
8130 { ac_try='test -s conftest$ac_exeext'
8131 { (eval echo "$as_me:8131: \"$ac_try\"") >&5
8134 echo "$as_me:8134: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 echo "$as_me:8136: result: yes" >&5
8137 echo "${ECHO_T}yes" >&6
8139 echo "$as_me: failed program was:" >&5
8140 cat conftest.$ac_ext >&5
8141 echo "$as_me:8141: result: no" >&5
8142 echo "${ECHO_T}no" >&6
8143 LIBS="$cf_ncurses_SAVE"
8145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8148 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8150 cat >>confdefs.h <<EOF
8151 #define $cf_nculib_ROOT 1
8162 cf_ncuconfig_root=$cf_cv_screen
8163 cf_have_ncuconfig=no
8165 if test "x${PKG_CONFIG:=none}" != xnone; then
8166 echo "$as_me:8166: checking pkg-config for $cf_ncuconfig_root" >&5
8167 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
8168 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
8169 echo "$as_me:8169: result: yes" >&5
8170 echo "${ECHO_T}yes" >&6
8172 echo "$as_me:8172: checking if the $cf_ncuconfig_root package files work" >&5
8173 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
8174 cf_have_ncuconfig=unknown
8176 cf_save_CPPFLAGS="$CPPFLAGS"
8177 cf_save_LIBS="$LIBS"
8179 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
8181 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
8182 # Filter out duplicates - this happens with badly-designed ".pc" files...
8183 for cf_add_1lib in $LIBS
8185 for cf_add_2lib in $cf_add_libs
8187 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8193 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8197 cat >conftest.$ac_ext <<_ACEOF
8198 #line 8198 "configure"
8199 #include "confdefs.h"
8200 #include <${cf_cv_ncurses_header:-curses.h}>
8204 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (eval echo "$as_me:8210: \"$ac_link\"") >&5
8211 (eval $ac_link) 2>&5
8213 echo "$as_me:8213: \$? = $ac_status" >&5
8214 (exit $ac_status); } &&
8215 { ac_try='test -s conftest$ac_exeext'
8216 { (eval echo "$as_me:8216: \"$ac_try\"") >&5
8219 echo "$as_me:8219: \$? = $ac_status" >&5
8220 (exit $ac_status); }; }; then
8221 if test "$cross_compiling" = yes; then
8222 cf_have_ncuconfig=maybe
8224 cat >conftest.$ac_ext <<_ACEOF
8225 #line 8225 "configure"
8226 #include "confdefs.h"
8227 #include <${cf_cv_ncurses_header:-curses.h}>
8229 { char *xx = curses_version(); return (xx == 0); }
8231 rm -f conftest$ac_exeext
8232 if { (eval echo "$as_me:8232: \"$ac_link\"") >&5
8233 (eval $ac_link) 2>&5
8235 echo "$as_me:8235: \$? = $ac_status" >&5
8236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8237 { (eval echo "$as_me:8237: \"$ac_try\"") >&5
8240 echo "$as_me:8240: \$? = $ac_status" >&5
8241 (exit $ac_status); }; }; then
8242 cf_have_ncuconfig=yes
8244 echo "$as_me: program exited with status $ac_status" >&5
8245 echo "$as_me: failed program was:" >&5
8246 cat conftest.$ac_ext >&5
8247 cf_have_ncuconfig=no
8249 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8252 echo "$as_me: failed program was:" >&5
8253 cat conftest.$ac_ext >&5
8254 cf_have_ncuconfig=no
8256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8257 echo "$as_me:8257: result: $cf_have_ncuconfig" >&5
8258 echo "${ECHO_T}$cf_have_ncuconfig" >&6
8259 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
8260 if test "$cf_have_ncuconfig" != "yes"
8262 CPPFLAGS="$cf_save_CPPFLAGS"
8263 LIBS="$cf_save_LIBS"
8264 NCURSES_CONFIG_PKG=none
8267 cat >>confdefs.h <<\EOF
8271 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
8275 echo "$as_me:8275: result: no" >&5
8276 echo "${ECHO_T}no" >&6
8277 NCURSES_CONFIG_PKG=none
8280 NCURSES_CONFIG_PKG=none
8283 if test "x$cf_have_ncuconfig" = "xno"; then
8284 echo "Looking for ${cf_ncuconfig_root}-config"
8286 if test -n "$ac_tool_prefix"; then
8287 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8291 echo "$as_me:8291: checking for $ac_word" >&5
8292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8293 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8296 if test -n "$NCURSES_CONFIG"; then
8297 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
8299 ac_save_IFS=$IFS; IFS=$ac_path_separator
8301 for ac_dir in $ac_dummy; do
8303 test -z "$ac_dir" && ac_dir=.
8304 $as_executable_p "$ac_dir/$ac_word" || continue
8305 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
8306 echo "$as_me:8306: found $ac_dir/$ac_word" >&5
8312 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
8313 if test -n "$NCURSES_CONFIG"; then
8314 echo "$as_me:8314: result: $NCURSES_CONFIG" >&5
8315 echo "${ECHO_T}$NCURSES_CONFIG" >&6
8317 echo "$as_me:8317: result: no" >&5
8318 echo "${ECHO_T}no" >&6
8321 test -n "$NCURSES_CONFIG" && break
8324 if test -z "$NCURSES_CONFIG"; then
8325 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
8326 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8328 # Extract the first word of "$ac_prog", so it can be a program name with args.
8329 set dummy $ac_prog; ac_word=$2
8330 echo "$as_me:8330: checking for $ac_word" >&5
8331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8332 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 if test -n "$ac_ct_NCURSES_CONFIG"; then
8336 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
8338 ac_save_IFS=$IFS; IFS=$ac_path_separator
8340 for ac_dir in $ac_dummy; do
8342 test -z "$ac_dir" && ac_dir=.
8343 $as_executable_p "$ac_dir/$ac_word" || continue
8344 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
8345 echo "$as_me:8345: found $ac_dir/$ac_word" >&5
8351 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
8352 if test -n "$ac_ct_NCURSES_CONFIG"; then
8353 echo "$as_me:8353: result: $ac_ct_NCURSES_CONFIG" >&5
8354 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
8356 echo "$as_me:8356: result: no" >&5
8357 echo "${ECHO_T}no" >&6
8360 test -n "$ac_ct_NCURSES_CONFIG" && break
8362 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
8364 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
8367 if test "$NCURSES_CONFIG" != none ; then
8369 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
8371 cf_add_libs="`$NCURSES_CONFIG --libs`"
8372 # Filter out duplicates - this happens with badly-designed ".pc" files...
8373 for cf_add_1lib in $LIBS
8375 for cf_add_2lib in $cf_add_libs
8377 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8383 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8387 # even with config script, some packages use no-override for curses.h
8389 echo "$as_me:8389: checking if we have identified curses headers" >&5
8390 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
8391 if test "${cf_cv_ncurses_header+set}" = set; then
8392 echo $ECHO_N "(cached) $ECHO_C" >&6
8395 cf_cv_ncurses_header=none
8397 ncurses.h $cf_cv_screen/ncurses.h \
8398 curses.h $cf_cv_screen/curses.h
8400 cat >conftest.$ac_ext <<_ACEOF
8401 #line 8401 "configure"
8402 #include "confdefs.h"
8403 #include <${cf_header}>
8407 initscr(); tgoto("?", 0,0)
8412 rm -f conftest.$ac_objext
8413 if { (eval echo "$as_me:8413: \"$ac_compile\"") >&5
8414 (eval $ac_compile) 2>&5
8416 echo "$as_me:8416: \$? = $ac_status" >&5
8417 (exit $ac_status); } &&
8418 { ac_try='test -s conftest.$ac_objext'
8419 { (eval echo "$as_me:8419: \"$ac_try\"") >&5
8422 echo "$as_me:8422: \$? = $ac_status" >&5
8423 (exit $ac_status); }; }; then
8424 cf_cv_ncurses_header=$cf_header; break
8426 echo "$as_me: failed program was:" >&5
8427 cat conftest.$ac_ext >&5
8429 rm -f conftest.$ac_objext conftest.$ac_ext
8433 echo "$as_me:8433: result: $cf_cv_ncurses_header" >&5
8434 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
8436 if test "$cf_cv_ncurses_header" = none ; then
8437 { { echo "$as_me:8437: error: No curses header-files found" >&5
8438 echo "$as_me: error: No curses header-files found" >&2;}
8439 { (exit 1); exit 1; }; }
8442 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
8444 for ac_header in $cf_cv_ncurses_header
8446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8447 echo "$as_me:8447: checking for $ac_header" >&5
8448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8449 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8450 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 cat >conftest.$ac_ext <<_ACEOF
8453 #line 8453 "configure"
8454 #include "confdefs.h"
8455 #include <$ac_header>
8457 if { (eval echo "$as_me:8457: \"$ac_cpp conftest.$ac_ext\"") >&5
8458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8460 egrep -v '^ *\+' conftest.er1 >conftest.err
8462 cat conftest.err >&5
8463 echo "$as_me:8463: \$? = $ac_status" >&5
8464 (exit $ac_status); } >/dev/null; then
8465 if test -s conftest.err; then
8466 ac_cpp_err=$ac_c_preproc_warn_flag
8473 if test -z "$ac_cpp_err"; then
8474 eval "$as_ac_Header=yes"
8476 echo "$as_me: failed program was:" >&5
8477 cat conftest.$ac_ext >&5
8478 eval "$as_ac_Header=no"
8480 rm -f conftest.err conftest.$ac_ext
8482 echo "$as_me:8482: result: `eval echo '${'$as_ac_Header'}'`" >&5
8483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8485 cat >>confdefs.h <<EOF
8486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8492 cat >>confdefs.h <<\EOF
8496 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8498 cat >>confdefs.h <<EOF
8499 #define $cf_nculib_ROOT 1
8502 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
8506 cf_ncuhdr_root=$cf_cv_screen
8508 test -n "$cf_cv_curses_dir" && \
8509 test "$cf_cv_curses_dir" != "no" && { \
8511 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
8512 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
8514 while test $cf_add_incdir != /usr/include
8516 if test -d $cf_add_incdir
8519 if test -n "$CFLAGS$CPPFLAGS" ; then
8520 # a loop is needed to ensure we can add subdirs of existing dirs
8521 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8522 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8523 cf_have_incdir=yes; break
8528 if test "$cf_have_incdir" = no ; then
8529 if test "$cf_add_incdir" = /usr/local/include ; then
8530 if test "$GCC" = yes
8532 cf_save_CPPFLAGS=$CPPFLAGS
8533 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8534 cat >conftest.$ac_ext <<_ACEOF
8535 #line 8535 "configure"
8536 #include "confdefs.h"
8546 rm -f conftest.$ac_objext
8547 if { (eval echo "$as_me:8547: \"$ac_compile\"") >&5
8548 (eval $ac_compile) 2>&5
8550 echo "$as_me:8550: \$? = $ac_status" >&5
8551 (exit $ac_status); } &&
8552 { ac_try='test -s conftest.$ac_objext'
8553 { (eval echo "$as_me:8553: \"$ac_try\"") >&5
8556 echo "$as_me:8556: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8560 echo "$as_me: failed program was:" >&5
8561 cat conftest.$ac_ext >&5
8564 rm -f conftest.$ac_objext conftest.$ac_ext
8565 CPPFLAGS=$cf_save_CPPFLAGS
8570 if test "$cf_have_incdir" = no ; then
8571 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8573 echo "${as_me:-configure}:8573: testing adding $cf_add_incdir to include-path ..." 1>&5
8575 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8577 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8578 test "$cf_top_incdir" = "$cf_add_incdir" && break
8579 cf_add_incdir="$cf_top_incdir"
8592 echo "$as_me:8592: checking for $cf_ncuhdr_root header in include-path" >&5
8593 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
8594 if test "${cf_cv_ncurses_h+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
8599 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
8600 for cf_header in $cf_header_list
8603 cat >conftest.$ac_ext <<_ACEOF
8604 #line 8604 "configure"
8605 #include "confdefs.h"
8607 #include <$cf_header>
8612 #ifdef NCURSES_VERSION
8614 printf("%s\n", NCURSES_VERSION);
8627 rm -f conftest.$ac_objext
8628 if { (eval echo "$as_me:8628: \"$ac_compile\"") >&5
8629 (eval $ac_compile) 2>&5
8631 echo "$as_me:8631: \$? = $ac_status" >&5
8632 (exit $ac_status); } &&
8633 { ac_try='test -s conftest.$ac_objext'
8634 { (eval echo "$as_me:8634: \"$ac_try\"") >&5
8637 echo "$as_me:8637: \$? = $ac_status" >&5
8638 (exit $ac_status); }; }; then
8639 cf_cv_ncurses_h=$cf_header
8642 echo "$as_me: failed program was:" >&5
8643 cat conftest.$ac_ext >&5
8646 rm -f conftest.$ac_objext conftest.$ac_ext
8648 test "$cf_cv_ncurses_h" != no && break
8652 echo "$as_me:8652: result: $cf_cv_ncurses_h" >&5
8653 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
8655 if test "$cf_cv_ncurses_h" != no ; then
8656 cf_cv_ncurses_header=$cf_cv_ncurses_h
8659 echo "$as_me:8659: checking for $cf_ncuhdr_root include-path" >&5
8660 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
8661 if test "${cf_cv_ncurses_h2+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8665 test -n "$verbose" && echo
8669 # collect the current set of include-directories from compiler flags
8670 cf_header_path_list=""
8671 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8672 for cf_header_path in $CPPFLAGS $CFLAGS
8674 case $cf_header_path in
8676 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8678 test "x$cf_header_path" != "xNONE" && \
8679 test -d "$cf_header_path" && \
8681 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8682 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8683 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
8684 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
8685 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
8686 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"
8689 cf_header_path_list="$cf_header_path_list $cf_search"
8695 # add the variations for the package we are looking for
8699 test "x$prefix" != "xNONE" && \
8700 test -d "$prefix" && \
8702 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8703 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8704 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
8705 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
8706 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
8707 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8710 for cf_subdir_prefix in \
8719 test "x$cf_subdir_prefix" != "x$prefix" && \
8720 test -d "$cf_subdir_prefix" && \
8721 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
8722 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
8723 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
8724 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
8725 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
8726 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
8727 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"
8732 test "$includedir" != NONE && \
8733 test "$includedir" != "/usr/include" && \
8734 test -d "$includedir" && {
8735 test -d $includedir && cf_search="$cf_search $includedir"
8736 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
8739 test "$oldincludedir" != NONE && \
8740 test "$oldincludedir" != "/usr/include" && \
8741 test -d "$oldincludedir" && {
8742 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8743 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
8746 cf_search="$cf_search $cf_header_path_list"
8748 test -n "$verbose" && echo search path $cf_search
8749 cf_save2_CPPFLAGS="$CPPFLAGS"
8750 for cf_incdir in $cf_search
8753 if test -n "$cf_incdir" ; then
8754 for cf_add_incdir in $cf_incdir
8756 while test $cf_add_incdir != /usr/include
8758 if test -d $cf_add_incdir
8761 if test -n "$CFLAGS$CPPFLAGS" ; then
8762 # a loop is needed to ensure we can add subdirs of existing dirs
8763 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8764 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8765 cf_have_incdir=yes; break
8770 if test "$cf_have_incdir" = no ; then
8771 if test "$cf_add_incdir" = /usr/local/include ; then
8772 if test "$GCC" = yes
8774 cf_save_CPPFLAGS=$CPPFLAGS
8775 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8776 cat >conftest.$ac_ext <<_ACEOF
8777 #line 8777 "configure"
8778 #include "confdefs.h"
8788 rm -f conftest.$ac_objext
8789 if { (eval echo "$as_me:8789: \"$ac_compile\"") >&5
8790 (eval $ac_compile) 2>&5
8792 echo "$as_me:8792: \$? = $ac_status" >&5
8793 (exit $ac_status); } &&
8794 { ac_try='test -s conftest.$ac_objext'
8795 { (eval echo "$as_me:8795: \"$ac_try\"") >&5
8798 echo "$as_me:8798: \$? = $ac_status" >&5
8799 (exit $ac_status); }; }; then
8802 echo "$as_me: failed program was:" >&5
8803 cat conftest.$ac_ext >&5
8806 rm -f conftest.$ac_objext conftest.$ac_ext
8807 CPPFLAGS=$cf_save_CPPFLAGS
8812 if test "$cf_have_incdir" = no ; then
8813 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8815 echo "${as_me:-configure}:8815: testing adding $cf_add_incdir to include-path ..." 1>&5
8817 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8819 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8820 test "$cf_top_incdir" = "$cf_add_incdir" && break
8821 cf_add_incdir="$cf_top_incdir"
8837 cat >conftest.$ac_ext <<_ACEOF
8838 #line 8838 "configure"
8839 #include "confdefs.h"
8841 #include <$cf_header>
8846 #ifdef NCURSES_VERSION
8848 printf("%s\n", NCURSES_VERSION);
8861 rm -f conftest.$ac_objext
8862 if { (eval echo "$as_me:8862: \"$ac_compile\"") >&5
8863 (eval $ac_compile) 2>&5
8865 echo "$as_me:8865: \$? = $ac_status" >&5
8866 (exit $ac_status); } &&
8867 { ac_try='test -s conftest.$ac_objext'
8868 { (eval echo "$as_me:8868: \"$ac_try\"") >&5
8871 echo "$as_me:8871: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 cf_cv_ncurses_h2=$cf_header
8876 echo "$as_me: failed program was:" >&5
8877 cat conftest.$ac_ext >&5
8880 rm -f conftest.$ac_objext conftest.$ac_ext
8882 if test "$cf_cv_ncurses_h2" != no ; then
8883 cf_cv_ncurses_h2=$cf_incdir/$cf_header
8884 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
8887 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
8889 CPPFLAGS="$cf_save2_CPPFLAGS"
8890 test "$cf_cv_ncurses_h2" != no && break
8892 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:8892: error: not found" >&5
8893 echo "$as_me: error: not found" >&2;}
8894 { (exit 1); exit 1; }; }
8897 echo "$as_me:8897: result: $cf_cv_ncurses_h2" >&5
8898 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
8900 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
8901 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
8902 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
8903 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
8906 if test -n "$cf_1st_incdir" ; then
8907 for cf_add_incdir in $cf_1st_incdir
8909 while test $cf_add_incdir != /usr/include
8911 if test -d $cf_add_incdir
8914 if test -n "$CFLAGS$CPPFLAGS" ; then
8915 # a loop is needed to ensure we can add subdirs of existing dirs
8916 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8917 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8918 cf_have_incdir=yes; break
8923 if test "$cf_have_incdir" = no ; then
8924 if test "$cf_add_incdir" = /usr/local/include ; then
8925 if test "$GCC" = yes
8927 cf_save_CPPFLAGS=$CPPFLAGS
8928 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8929 cat >conftest.$ac_ext <<_ACEOF
8930 #line 8930 "configure"
8931 #include "confdefs.h"
8941 rm -f conftest.$ac_objext
8942 if { (eval echo "$as_me:8942: \"$ac_compile\"") >&5
8943 (eval $ac_compile) 2>&5
8945 echo "$as_me:8945: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
8947 { ac_try='test -s conftest.$ac_objext'
8948 { (eval echo "$as_me:8948: \"$ac_try\"") >&5
8951 echo "$as_me:8951: \$? = $ac_status" >&5
8952 (exit $ac_status); }; }; then
8955 echo "$as_me: failed program was:" >&5
8956 cat conftest.$ac_ext >&5
8959 rm -f conftest.$ac_objext conftest.$ac_ext
8960 CPPFLAGS=$cf_save_CPPFLAGS
8965 if test "$cf_have_incdir" = no ; then
8966 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8968 echo "${as_me:-configure}:8968: testing adding $cf_add_incdir to include-path ..." 1>&5
8970 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8972 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8973 test "$cf_top_incdir" = "$cf_add_incdir" && break
8974 cf_add_incdir="$cf_top_incdir"
8987 # Set definitions to allow ifdef'ing for ncurses.h
8989 case $cf_cv_ncurses_header in
8992 cat >>confdefs.h <<\EOF
8993 #define HAVE_NCURSES_H 1
8999 case $cf_cv_ncurses_header in
9000 (ncurses/curses.h|ncurses/ncurses.h)
9002 cat >>confdefs.h <<\EOF
9003 #define HAVE_NCURSES_NCURSES_H 1
9007 (ncursesw/curses.h|ncursesw/ncurses.h)
9009 cat >>confdefs.h <<\EOF
9010 #define HAVE_NCURSESW_NCURSES_H 1
9016 echo "$as_me:9016: checking for terminfo header" >&5
9017 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
9018 if test "${cf_cv_term_header+set}" = set; then
9019 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 case ${cf_cv_ncurses_header} in
9023 (*/ncurses.h|*/ncursesw.h)
9024 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
9027 cf_term_header=term.h
9031 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
9033 cat >conftest.$ac_ext <<_ACEOF
9034 #line 9034 "configure"
9035 #include "confdefs.h"
9037 #include <${cf_cv_ncurses_header:-curses.h}>
9043 int x = auto_left_margin
9048 rm -f conftest.$ac_objext
9049 if { (eval echo "$as_me:9049: \"$ac_compile\"") >&5
9050 (eval $ac_compile) 2>&5
9052 echo "$as_me:9052: \$? = $ac_status" >&5
9053 (exit $ac_status); } &&
9054 { ac_try='test -s conftest.$ac_objext'
9055 { (eval echo "$as_me:9055: \"$ac_try\"") >&5
9058 echo "$as_me:9058: \$? = $ac_status" >&5
9059 (exit $ac_status); }; }; then
9061 cf_cv_term_header="$cf_test"
9063 echo "$as_me: failed program was:" >&5
9064 cat conftest.$ac_ext >&5
9066 cf_cv_term_header=unknown
9069 rm -f conftest.$ac_objext conftest.$ac_ext
9070 test "$cf_cv_term_header" != unknown && break
9074 echo "$as_me:9074: result: $cf_cv_term_header" >&5
9075 echo "${ECHO_T}$cf_cv_term_header" >&6
9077 # Set definitions to allow ifdef'ing to accommodate subdirectories
9079 case $cf_cv_term_header in
9082 cat >>confdefs.h <<\EOF
9083 #define HAVE_TERM_H 1
9089 case $cf_cv_term_header in
9092 cat >>confdefs.h <<\EOF
9093 #define HAVE_NCURSES_TERM_H 1
9099 cat >>confdefs.h <<\EOF
9100 #define HAVE_NCURSESW_TERM_H 1
9106 # some applications need this, but should check for NCURSES_VERSION
9108 cat >>confdefs.h <<\EOF
9112 echo "$as_me:9112: checking for ncurses version" >&5
9113 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
9114 if test "${cf_cv_ncurses_version+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 cf_cv_ncurses_version=no
9121 if test "$cross_compiling" = yes; then
9123 # This will not work if the preprocessor splits the line after the
9124 # Autoconf token. The 'unproto' program does that.
9125 cat > conftest.$ac_ext <<EOF
9126 #include <${cf_cv_ncurses_header:-curses.h}>
9128 #ifdef NCURSES_VERSION
9129 Autoconf NCURSES_VERSION
9137 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
9138 { (eval echo "$as_me:9138: \"$cf_try\"") >&5
9141 echo "$as_me:9141: \$? = $ac_status" >&5
9142 (exit $ac_status); }
9143 if test -f conftest.out ; then
9144 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
9145 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
9150 cat >conftest.$ac_ext <<_ACEOF
9151 #line 9151 "configure"
9152 #include "confdefs.h"
9154 #include <${cf_cv_ncurses_header:-curses.h}>
9158 FILE *fp = fopen("$cf_tempfile", "w");
9159 #ifdef NCURSES_VERSION
9160 # ifdef NCURSES_VERSION_PATCH
9161 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
9163 fprintf(fp, "%s\n", NCURSES_VERSION);
9167 fprintf(fp, "old\n");
9172 ${cf_cv_main_return:-return}(0);
9175 rm -f conftest$ac_exeext
9176 if { (eval echo "$as_me:9176: \"$ac_link\"") >&5
9177 (eval $ac_link) 2>&5
9179 echo "$as_me:9179: \$? = $ac_status" >&5
9180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9181 { (eval echo "$as_me:9181: \"$ac_try\"") >&5
9184 echo "$as_me:9184: \$? = $ac_status" >&5
9185 (exit $ac_status); }; }; then
9187 cf_cv_ncurses_version=`cat $cf_tempfile`
9189 echo "$as_me: program exited with status $ac_status" >&5
9190 echo "$as_me: failed program was:" >&5
9191 cat conftest.$ac_ext >&5
9193 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9198 echo "$as_me:9198: result: $cf_cv_ncurses_version" >&5
9199 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
9200 test "$cf_cv_ncurses_version" = no ||
9201 cat >>confdefs.h <<\EOF
9205 cf_nculib_root=$cf_cv_screen
9206 # This works, except for the special case where we find gpm, but
9207 # ncurses is in a nonstandard location via $LIBS, and we really want
9210 cf_ncurses_SAVE="$LIBS"
9211 echo "$as_me:9211: checking for Gpm_Open in -lgpm" >&5
9212 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
9213 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 ac_check_lib_save_LIBS=$LIBS
9218 cat >conftest.$ac_ext <<_ACEOF
9219 #line 9219 "configure"
9220 #include "confdefs.h"
9222 /* Override any gcc2 internal prototype to avoid an error. */
9226 /* We use char because int might match the return type of a gcc2
9227 builtin and then its argument prototype would still apply. */
9237 rm -f conftest.$ac_objext conftest$ac_exeext
9238 if { (eval echo "$as_me:9238: \"$ac_link\"") >&5
9239 (eval $ac_link) 2>&5
9241 echo "$as_me:9241: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -s conftest$ac_exeext'
9244 { (eval echo "$as_me:9244: \"$ac_try\"") >&5
9247 echo "$as_me:9247: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 ac_cv_lib_gpm_Gpm_Open=yes
9251 echo "$as_me: failed program was:" >&5
9252 cat conftest.$ac_ext >&5
9253 ac_cv_lib_gpm_Gpm_Open=no
9255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9256 LIBS=$ac_check_lib_save_LIBS
9258 echo "$as_me:9258: result: $ac_cv_lib_gpm_Gpm_Open" >&5
9259 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
9260 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
9261 echo "$as_me:9261: checking for initscr in -lgpm" >&5
9262 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
9263 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 ac_check_lib_save_LIBS=$LIBS
9268 cat >conftest.$ac_ext <<_ACEOF
9269 #line 9269 "configure"
9270 #include "confdefs.h"
9272 /* Override any gcc2 internal prototype to avoid an error. */
9276 /* We use char because int might match the return type of a gcc2
9277 builtin and then its argument prototype would still apply. */
9287 rm -f conftest.$ac_objext conftest$ac_exeext
9288 if { (eval echo "$as_me:9288: \"$ac_link\"") >&5
9289 (eval $ac_link) 2>&5
9291 echo "$as_me:9291: \$? = $ac_status" >&5
9292 (exit $ac_status); } &&
9293 { ac_try='test -s conftest$ac_exeext'
9294 { (eval echo "$as_me:9294: \"$ac_try\"") >&5
9297 echo "$as_me:9297: \$? = $ac_status" >&5
9298 (exit $ac_status); }; }; then
9299 ac_cv_lib_gpm_initscr=yes
9301 echo "$as_me: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9303 ac_cv_lib_gpm_initscr=no
9305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9306 LIBS=$ac_check_lib_save_LIBS
9308 echo "$as_me:9308: result: $ac_cv_lib_gpm_initscr" >&5
9309 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
9310 if test $ac_cv_lib_gpm_initscr = yes; then
9311 LIBS="$cf_ncurses_SAVE"
9313 cf_ncurses_LIBS="-lgpm"
9320 # This is only necessary if you are linking against an obsolete
9321 # version of ncurses (but it should do no harm, since it's static).
9322 if test "$cf_nculib_root" = ncurses ; then
9323 echo "$as_me:9323: checking for tgoto in -lmytinfo" >&5
9324 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
9325 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 ac_check_lib_save_LIBS=$LIBS
9329 LIBS="-lmytinfo $LIBS"
9330 cat >conftest.$ac_ext <<_ACEOF
9331 #line 9331 "configure"
9332 #include "confdefs.h"
9334 /* Override any gcc2 internal prototype to avoid an error. */
9338 /* We use char because int might match the return type of a gcc2
9339 builtin and then its argument prototype would still apply. */
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (eval echo "$as_me:9350: \"$ac_link\"") >&5
9351 (eval $ac_link) 2>&5
9353 echo "$as_me:9353: \$? = $ac_status" >&5
9354 (exit $ac_status); } &&
9355 { ac_try='test -s conftest$ac_exeext'
9356 { (eval echo "$as_me:9356: \"$ac_try\"") >&5
9359 echo "$as_me:9359: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361 ac_cv_lib_mytinfo_tgoto=yes
9363 echo "$as_me: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9365 ac_cv_lib_mytinfo_tgoto=no
9367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9368 LIBS=$ac_check_lib_save_LIBS
9370 echo "$as_me:9370: result: $ac_cv_lib_mytinfo_tgoto" >&5
9371 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
9372 if test $ac_cv_lib_mytinfo_tgoto = yes; then
9373 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
9380 cf_add_libs="$cf_ncurses_LIBS"
9381 # Filter out duplicates - this happens with badly-designed ".pc" files...
9382 for cf_add_1lib in $LIBS
9384 for cf_add_2lib in $cf_add_libs
9386 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9392 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9396 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
9399 cf_add_libs="-l$cf_nculib_root"
9400 # Filter out duplicates - this happens with badly-designed ".pc" files...
9401 for cf_add_1lib in $LIBS
9403 for cf_add_2lib in $cf_add_libs
9405 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9411 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9417 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
9419 echo "$as_me:9419: checking for initscr" >&5
9420 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
9421 if test "${ac_cv_func_initscr+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 cat >conftest.$ac_ext <<_ACEOF
9425 #line 9425 "configure"
9426 #include "confdefs.h"
9427 /* System header to define __stub macros and hopefully few prototypes,
9428 which can conflict with char initscr (); below. */
9430 /* Override any gcc2 internal prototype to avoid an error. */
9434 /* We use char because int might match the return type of a gcc2
9435 builtin and then its argument prototype would still apply. */
9442 /* The GNU C library defines this for functions which it implements
9443 to always fail with ENOSYS. Some functions are actually named
9444 something starting with __ and the normal name is an alias. */
9445 #if defined (__stub_initscr) || defined (__stub___initscr)
9448 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (eval echo "$as_me:9456: \"$ac_link\"") >&5
9457 (eval $ac_link) 2>&5
9459 echo "$as_me:9459: \$? = $ac_status" >&5
9460 (exit $ac_status); } &&
9461 { ac_try='test -s conftest$ac_exeext'
9462 { (eval echo "$as_me:9462: \"$ac_try\"") >&5
9465 echo "$as_me:9465: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 ac_cv_func_initscr=yes
9469 echo "$as_me: failed program was:" >&5
9470 cat conftest.$ac_ext >&5
9471 ac_cv_func_initscr=no
9473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9475 echo "$as_me:9475: result: $ac_cv_func_initscr" >&5
9476 echo "${ECHO_T}$ac_cv_func_initscr" >&6
9477 if test $ac_cv_func_initscr = yes; then
9478 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9481 cf_save_LIBS="$LIBS"
9482 echo "$as_me:9482: checking for initscr in -l$cf_nculib_root" >&5
9483 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
9484 LIBS="-l$cf_nculib_root $LIBS"
9485 cat >conftest.$ac_ext <<_ACEOF
9486 #line 9486 "configure"
9487 #include "confdefs.h"
9488 #include <${cf_cv_ncurses_header:-curses.h}>
9497 rm -f conftest.$ac_objext conftest$ac_exeext
9498 if { (eval echo "$as_me:9498: \"$ac_link\"") >&5
9499 (eval $ac_link) 2>&5
9501 echo "$as_me:9501: \$? = $ac_status" >&5
9502 (exit $ac_status); } &&
9503 { ac_try='test -s conftest$ac_exeext'
9504 { (eval echo "$as_me:9504: \"$ac_try\"") >&5
9507 echo "$as_me:9507: \$? = $ac_status" >&5
9508 (exit $ac_status); }; }; then
9509 echo "$as_me:9509: result: yes" >&5
9510 echo "${ECHO_T}yes" >&6
9511 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9514 echo "$as_me: failed program was:" >&5
9515 cat conftest.$ac_ext >&5
9516 echo "$as_me:9516: result: no" >&5
9517 echo "${ECHO_T}no" >&6
9520 cf_library_path_list=""
9521 if test -n "${LDFLAGS}${LIBS}" ; then
9522 for cf_library_path in $LDFLAGS $LIBS
9524 case $cf_library_path in
9526 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9528 test "x$cf_library_path" != "xNONE" && \
9529 test -d "$cf_library_path" && \
9531 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9532 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9533 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
9534 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
9535 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
9536 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"
9539 cf_library_path_list="$cf_library_path_list $cf_search"
9547 test "x$prefix" != "xNONE" && \
9548 test -d "$prefix" && \
9550 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9551 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9552 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
9553 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
9554 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
9555 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
9558 for cf_subdir_prefix in \
9567 test "x$cf_subdir_prefix" != "x$prefix" && \
9568 test -d "$cf_subdir_prefix" && \
9569 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9570 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
9571 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
9572 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
9573 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
9574 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
9575 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"
9580 cf_search="$cf_library_path_list $cf_search"
9582 for cf_libdir in $cf_search
9584 echo "$as_me:9584: checking for -l$cf_nculib_root in $cf_libdir" >&5
9585 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
9586 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
9587 cat >conftest.$ac_ext <<_ACEOF
9588 #line 9588 "configure"
9589 #include "confdefs.h"
9590 #include <${cf_cv_ncurses_header:-curses.h}>
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (eval echo "$as_me:9600: \"$ac_link\"") >&5
9601 (eval $ac_link) 2>&5
9603 echo "$as_me:9603: \$? = $ac_status" >&5
9604 (exit $ac_status); } &&
9605 { ac_try='test -s conftest$ac_exeext'
9606 { (eval echo "$as_me:9606: \"$ac_try\"") >&5
9609 echo "$as_me:9609: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 echo "$as_me:9611: result: yes" >&5
9612 echo "${ECHO_T}yes" >&6
9613 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9616 echo "$as_me: failed program was:" >&5
9617 cat conftest.$ac_ext >&5
9618 echo "$as_me:9618: result: no" >&5
9619 echo "${ECHO_T}no" >&6
9620 LIBS="$cf_save_LIBS"
9622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9630 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
9632 if test $cf_found_library = no ; then
9633 { { echo "$as_me:9633: error: Cannot link $cf_nculib_root library" >&5
9634 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
9635 { (exit 1); exit 1; }; }
9640 if test -n "$cf_ncurses_LIBS" ; then
9641 echo "$as_me:9641: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
9642 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
9643 cf_ncurses_SAVE="$LIBS"
9644 for p in $cf_ncurses_LIBS ; do
9645 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
9646 if test "$q" != "$LIBS" ; then
9650 cat >conftest.$ac_ext <<_ACEOF
9651 #line 9651 "configure"
9652 #include "confdefs.h"
9653 #include <${cf_cv_ncurses_header:-curses.h}>
9657 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (eval echo "$as_me:9663: \"$ac_link\"") >&5
9664 (eval $ac_link) 2>&5
9666 echo "$as_me:9666: \$? = $ac_status" >&5
9667 (exit $ac_status); } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (eval echo "$as_me:9669: \"$ac_try\"") >&5
9672 echo "$as_me:9672: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 echo "$as_me:9674: result: yes" >&5
9675 echo "${ECHO_T}yes" >&6
9677 echo "$as_me: failed program was:" >&5
9678 cat conftest.$ac_ext >&5
9679 echo "$as_me:9679: result: no" >&5
9680 echo "${ECHO_T}no" >&6
9681 LIBS="$cf_ncurses_SAVE"
9683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9686 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9688 cat >>confdefs.h <<EOF
9689 #define $cf_nculib_ROOT 1
9699 echo "$as_me:9699: checking for X" >&5
9700 echo $ECHO_N "checking for X... $ECHO_C" >&6
9702 # Check whether --with-x or --without-x was given.
9703 if test "${with_x+set}" = set; then
9707 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9708 if test "x$with_x" = xno; then
9709 # The user explicitly disabled X.
9712 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9713 # Both variables are already set.
9716 if test "${ac_cv_have_x+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9719 # One or both of the vars are not set, and there is no cached value.
9720 ac_x_includes=no ac_x_libraries=no
9722 if mkdir conftest.dir; then
9724 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9725 cat >Imakefile <<'EOF'
9727 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9729 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9730 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9731 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9732 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9733 for ac_extension in a so sl dylib dll; do
9734 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9735 test -f $ac_im_libdir/libX11.$ac_extension; then
9736 ac_im_usrlibdir=$ac_im_libdir; break
9739 # Screen out bogus values from the imake configuration. They are
9740 # bogus both because they are the default anyway, and because
9741 # using them would break gcc on systems where it needs fixed includes.
9742 case $ac_im_incroot in
9744 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9746 case $ac_im_usrlibdir in
9748 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9755 # Standard set of common directories for X headers.
9756 # Check X11 before X11Rn because it is often a symlink to the current release.
9768 /usr/local/X11/include
9769 /usr/local/X11R6/include
9770 /usr/local/X11R5/include
9771 /usr/local/X11R4/include
9773 /usr/local/include/X11
9774 /usr/local/include/X11R6
9775 /usr/local/include/X11R5
9776 /usr/local/include/X11R4
9780 /usr/XFree86/include/X11
9784 /usr/unsupported/include
9786 /usr/local/x11r5/include
9787 /usr/lpp/Xamples/include
9789 /usr/openwin/include
9790 /usr/openwin/share/include'
9792 if test "$ac_x_includes" = no; then
9793 # Guess where to find include files, by looking for Intrinsic.h.
9794 # First, try using that file with no special directory specified.
9795 cat >conftest.$ac_ext <<_ACEOF
9796 #line 9796 "configure"
9797 #include "confdefs.h"
9798 #include <X11/Intrinsic.h>
9800 if { (eval echo "$as_me:9800: \"$ac_cpp conftest.$ac_ext\"") >&5
9801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9803 egrep -v '^ *\+' conftest.er1 >conftest.err
9805 cat conftest.err >&5
9806 echo "$as_me:9806: \$? = $ac_status" >&5
9807 (exit $ac_status); } >/dev/null; then
9808 if test -s conftest.err; then
9809 ac_cpp_err=$ac_c_preproc_warn_flag
9816 if test -z "$ac_cpp_err"; then
9817 # We can compile using X headers with no special include directory.
9820 echo "$as_me: failed program was:" >&5
9821 cat conftest.$ac_ext >&5
9822 for ac_dir in $ac_x_header_dirs; do
9823 if test -r "$ac_dir/X11/Intrinsic.h"; then
9824 ac_x_includes=$ac_dir
9829 rm -f conftest.err conftest.$ac_ext
9830 fi # $ac_x_includes = no
9832 if test "$ac_x_libraries" = no; then
9833 # Check for the libraries.
9834 # See if we find them without any special options.
9835 # Don't add to $LIBS permanently.
9838 cat >conftest.$ac_ext <<_ACEOF
9839 #line 9839 "configure"
9840 #include "confdefs.h"
9841 #include <X11/Intrinsic.h>
9850 rm -f conftest.$ac_objext conftest$ac_exeext
9851 if { (eval echo "$as_me:9851: \"$ac_link\"") >&5
9852 (eval $ac_link) 2>&5
9854 echo "$as_me:9854: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -s conftest$ac_exeext'
9857 { (eval echo "$as_me:9857: \"$ac_try\"") >&5
9860 echo "$as_me:9860: \$? = $ac_status" >&5
9861 (exit $ac_status); }; }; then
9863 # We can link X programs with no special library path.
9866 echo "$as_me: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9869 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9871 # Don't even attempt the hair of trying to link an X program!
9872 for ac_extension in a so sl dylib dll; do
9873 if test -r $ac_dir/libXt.$ac_extension; then
9874 ac_x_libraries=$ac_dir
9880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9881 fi # $ac_x_libraries = no
9883 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9884 # Didn't find X anywhere. Cache the known absence of X.
9885 ac_cv_have_x="have_x=no"
9887 # Record where we found X for the cache.
9888 ac_cv_have_x="have_x=yes \
9889 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9894 eval "$ac_cv_have_x"
9897 if test "$have_x" != yes; then
9898 echo "$as_me:9898: result: $have_x" >&5
9899 echo "${ECHO_T}$have_x" >&6
9902 # If each of the values was on the command line, it overrides each guess.
9903 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9904 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9905 # Update the cache value to reflect the command line values.
9906 ac_cv_have_x="have_x=yes \
9907 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9908 echo "$as_me:9908: result: libraries $x_libraries, headers $x_includes" >&5
9909 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9912 if test "$no_x" = yes; then
9913 # Not all programs may use this symbol, but it does not hurt to define it.
9915 cat >>confdefs.h <<\EOF
9916 #define X_DISPLAY_MISSING 1
9919 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9921 if test -n "$x_includes"; then
9922 X_CFLAGS="$X_CFLAGS -I$x_includes"
9925 # It would also be nice to do this for all -L options, not just this one.
9926 if test -n "$x_libraries"; then
9927 X_LIBS="$X_LIBS -L$x_libraries"
9928 # For Solaris; some versions of Sun CC require a space after -R and
9929 # others require no space. Words are not sufficient . . . .
9930 case `(uname -sr) 2>/dev/null` in
9932 echo "$as_me:9932: checking whether -R must be followed by a space" >&5
9933 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9934 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9935 cat >conftest.$ac_ext <<_ACEOF
9936 #line 9936 "configure"
9937 #include "confdefs.h"
9947 rm -f conftest.$ac_objext conftest$ac_exeext
9948 if { (eval echo "$as_me:9948: \"$ac_link\"") >&5
9949 (eval $ac_link) 2>&5
9951 echo "$as_me:9951: \$? = $ac_status" >&5
9952 (exit $ac_status); } &&
9953 { ac_try='test -s conftest$ac_exeext'
9954 { (eval echo "$as_me:9954: \"$ac_try\"") >&5
9957 echo "$as_me:9957: \$? = $ac_status" >&5
9958 (exit $ac_status); }; }; then
9961 echo "$as_me: failed program was:" >&5
9962 cat conftest.$ac_ext >&5
9965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9966 if test $ac_R_nospace = yes; then
9967 echo "$as_me:9967: result: no" >&5
9968 echo "${ECHO_T}no" >&6
9969 X_LIBS="$X_LIBS -R$x_libraries"
9971 LIBS="$ac_xsave_LIBS -R $x_libraries"
9972 cat >conftest.$ac_ext <<_ACEOF
9973 #line 9973 "configure"
9974 #include "confdefs.h"
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (eval echo "$as_me:9985: \"$ac_link\"") >&5
9986 (eval $ac_link) 2>&5
9988 echo "$as_me:9988: \$? = $ac_status" >&5
9989 (exit $ac_status); } &&
9990 { ac_try='test -s conftest$ac_exeext'
9991 { (eval echo "$as_me:9991: \"$ac_try\"") >&5
9994 echo "$as_me:9994: \$? = $ac_status" >&5
9995 (exit $ac_status); }; }; then
9998 echo "$as_me: failed program was:" >&5
9999 cat conftest.$ac_ext >&5
10002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10003 if test $ac_R_space = yes; then
10004 echo "$as_me:10004: result: yes" >&5
10005 echo "${ECHO_T}yes" >&6
10006 X_LIBS="$X_LIBS -R $x_libraries"
10008 echo "$as_me:10008: result: neither works" >&5
10009 echo "${ECHO_T}neither works" >&6
10012 LIBS=$ac_xsave_LIBS
10016 # Check for system-dependent libraries X programs must link with.
10017 # Do this before checking for the system-independent R6 libraries
10018 # (-lICE), since we may need -lsocket or whatever for X linking.
10020 if test "$ISC" = yes; then
10021 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10023 # Martyn Johnson says this is needed for Ultrix, if the X
10024 # libraries were built with DECnet support. And Karl Berry says
10025 # the Alpha needs dnet_stub (dnet does not exist).
10026 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10027 cat >conftest.$ac_ext <<_ACEOF
10028 #line 10028 "configure"
10029 #include "confdefs.h"
10031 /* Override any gcc2 internal prototype to avoid an error. */
10035 /* We use char because int might match the return type of a gcc2
10036 builtin and then its argument prototype would still apply. */
10037 char XOpenDisplay ();
10046 rm -f conftest.$ac_objext conftest$ac_exeext
10047 if { (eval echo "$as_me:10047: \"$ac_link\"") >&5
10048 (eval $ac_link) 2>&5
10050 echo "$as_me:10050: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try='test -s conftest$ac_exeext'
10053 { (eval echo "$as_me:10053: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10056 echo "$as_me:10056: \$? = $ac_status" >&5
10057 (exit $ac_status); }; }; then
10060 echo "$as_me: failed program was:" >&5
10061 cat conftest.$ac_ext >&5
10062 echo "$as_me:10062: checking for dnet_ntoa in -ldnet" >&5
10063 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
10064 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 ac_check_lib_save_LIBS=$LIBS
10068 LIBS="-ldnet $LIBS"
10069 cat >conftest.$ac_ext <<_ACEOF
10070 #line 10070 "configure"
10071 #include "confdefs.h"
10073 /* Override any gcc2 internal prototype to avoid an error. */
10077 /* We use char because int might match the return type of a gcc2
10078 builtin and then its argument prototype would still apply. */
10088 rm -f conftest.$ac_objext conftest$ac_exeext
10089 if { (eval echo "$as_me:10089: \"$ac_link\"") >&5
10090 (eval $ac_link) 2>&5
10092 echo "$as_me:10092: \$? = $ac_status" >&5
10093 (exit $ac_status); } &&
10094 { ac_try='test -s conftest$ac_exeext'
10095 { (eval echo "$as_me:10095: \"$ac_try\"") >&5
10096 (eval $ac_try) 2>&5
10098 echo "$as_me:10098: \$? = $ac_status" >&5
10099 (exit $ac_status); }; }; then
10100 ac_cv_lib_dnet_dnet_ntoa=yes
10102 echo "$as_me: failed program was:" >&5
10103 cat conftest.$ac_ext >&5
10104 ac_cv_lib_dnet_dnet_ntoa=no
10106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10107 LIBS=$ac_check_lib_save_LIBS
10109 echo "$as_me:10109: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10110 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10111 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10112 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10115 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10116 echo "$as_me:10116: checking for dnet_ntoa in -ldnet_stub" >&5
10117 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10118 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10119 echo $ECHO_N "(cached) $ECHO_C" >&6
10121 ac_check_lib_save_LIBS=$LIBS
10122 LIBS="-ldnet_stub $LIBS"
10123 cat >conftest.$ac_ext <<_ACEOF
10124 #line 10124 "configure"
10125 #include "confdefs.h"
10127 /* Override any gcc2 internal prototype to avoid an error. */
10131 /* We use char because int might match the return type of a gcc2
10132 builtin and then its argument prototype would still apply. */
10142 rm -f conftest.$ac_objext conftest$ac_exeext
10143 if { (eval echo "$as_me:10143: \"$ac_link\"") >&5
10144 (eval $ac_link) 2>&5
10146 echo "$as_me:10146: \$? = $ac_status" >&5
10147 (exit $ac_status); } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (eval echo "$as_me:10149: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:10152: \$? = $ac_status" >&5
10153 (exit $ac_status); }; }; then
10154 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10156 echo "$as_me: failed program was:" >&5
10157 cat conftest.$ac_ext >&5
10158 ac_cv_lib_dnet_stub_dnet_ntoa=no
10160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10161 LIBS=$ac_check_lib_save_LIBS
10163 echo "$as_me:10163: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10164 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10165 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10166 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10172 LIBS="$ac_xsave_LIBS"
10174 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10175 # to get the SysV transport functions.
10176 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10178 # The nsl library prevents programs from opening the X display
10179 # on Irix 5.2, according to T.E. Dickey.
10180 # The functions gethostbyname, getservbyname, and inet_addr are
10181 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10182 echo "$as_me:10182: checking for gethostbyname" >&5
10183 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10184 if test "${ac_cv_func_gethostbyname+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10187 cat >conftest.$ac_ext <<_ACEOF
10188 #line 10188 "configure"
10189 #include "confdefs.h"
10190 /* System header to define __stub macros and hopefully few prototypes,
10191 which can conflict with char gethostbyname (); below. */
10192 #include <assert.h>
10193 /* Override any gcc2 internal prototype to avoid an error. */
10197 /* We use char because int might match the return type of a gcc2
10198 builtin and then its argument prototype would still apply. */
10199 char gethostbyname ();
10205 /* The GNU C library defines this for functions which it implements
10206 to always fail with ENOSYS. Some functions are actually named
10207 something starting with __ and the normal name is an alias. */
10208 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10211 f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (eval echo "$as_me:10219: \"$ac_link\"") >&5
10220 (eval $ac_link) 2>&5
10222 echo "$as_me:10222: \$? = $ac_status" >&5
10223 (exit $ac_status); } &&
10224 { ac_try='test -s conftest$ac_exeext'
10225 { (eval echo "$as_me:10225: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10228 echo "$as_me:10228: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 ac_cv_func_gethostbyname=yes
10232 echo "$as_me: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10234 ac_cv_func_gethostbyname=no
10236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10238 echo "$as_me:10238: result: $ac_cv_func_gethostbyname" >&5
10239 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10241 if test $ac_cv_func_gethostbyname = no; then
10242 echo "$as_me:10242: checking for gethostbyname in -lnsl" >&5
10243 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10244 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 ac_check_lib_save_LIBS=$LIBS
10249 cat >conftest.$ac_ext <<_ACEOF
10250 #line 10250 "configure"
10251 #include "confdefs.h"
10253 /* Override any gcc2 internal prototype to avoid an error. */
10257 /* We use char because int might match the return type of a gcc2
10258 builtin and then its argument prototype would still apply. */
10259 char gethostbyname ();
10268 rm -f conftest.$ac_objext conftest$ac_exeext
10269 if { (eval echo "$as_me:10269: \"$ac_link\"") >&5
10270 (eval $ac_link) 2>&5
10272 echo "$as_me:10272: \$? = $ac_status" >&5
10273 (exit $ac_status); } &&
10274 { ac_try='test -s conftest$ac_exeext'
10275 { (eval echo "$as_me:10275: \"$ac_try\"") >&5
10276 (eval $ac_try) 2>&5
10278 echo "$as_me:10278: \$? = $ac_status" >&5
10279 (exit $ac_status); }; }; then
10280 ac_cv_lib_nsl_gethostbyname=yes
10282 echo "$as_me: failed program was:" >&5
10283 cat conftest.$ac_ext >&5
10284 ac_cv_lib_nsl_gethostbyname=no
10286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10287 LIBS=$ac_check_lib_save_LIBS
10289 echo "$as_me:10289: result: $ac_cv_lib_nsl_gethostbyname" >&5
10290 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10291 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10292 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10295 if test $ac_cv_lib_nsl_gethostbyname = no; then
10296 echo "$as_me:10296: checking for gethostbyname in -lbsd" >&5
10297 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10298 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10301 ac_check_lib_save_LIBS=$LIBS
10303 cat >conftest.$ac_ext <<_ACEOF
10304 #line 10304 "configure"
10305 #include "confdefs.h"
10307 /* Override any gcc2 internal prototype to avoid an error. */
10311 /* We use char because int might match the return type of a gcc2
10312 builtin and then its argument prototype would still apply. */
10313 char gethostbyname ();
10322 rm -f conftest.$ac_objext conftest$ac_exeext
10323 if { (eval echo "$as_me:10323: \"$ac_link\"") >&5
10324 (eval $ac_link) 2>&5
10326 echo "$as_me:10326: \$? = $ac_status" >&5
10327 (exit $ac_status); } &&
10328 { ac_try='test -s conftest$ac_exeext'
10329 { (eval echo "$as_me:10329: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10332 echo "$as_me:10332: \$? = $ac_status" >&5
10333 (exit $ac_status); }; }; then
10334 ac_cv_lib_bsd_gethostbyname=yes
10336 echo "$as_me: failed program was:" >&5
10337 cat conftest.$ac_ext >&5
10338 ac_cv_lib_bsd_gethostbyname=no
10340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10341 LIBS=$ac_check_lib_save_LIBS
10343 echo "$as_me:10343: result: $ac_cv_lib_bsd_gethostbyname" >&5
10344 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10345 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10346 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10352 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10353 # socket/setsockopt and other routines are undefined under SCO ODT
10354 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10355 # on later versions), says Simon Leinen: it contains gethostby*
10356 # variants that don't use the nameserver (or something). -lsocket
10357 # must be given before -lnsl if both are needed. We assume that
10358 # if connect needs -lnsl, so does gethostbyname.
10359 echo "$as_me:10359: checking for connect" >&5
10360 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10361 if test "${ac_cv_func_connect+set}" = set; then
10362 echo $ECHO_N "(cached) $ECHO_C" >&6
10364 cat >conftest.$ac_ext <<_ACEOF
10365 #line 10365 "configure"
10366 #include "confdefs.h"
10367 /* System header to define __stub macros and hopefully few prototypes,
10368 which can conflict with char connect (); below. */
10369 #include <assert.h>
10370 /* Override any gcc2 internal prototype to avoid an error. */
10374 /* We use char because int might match the return type of a gcc2
10375 builtin and then its argument prototype would still apply. */
10382 /* The GNU C library defines this for functions which it implements
10383 to always fail with ENOSYS. Some functions are actually named
10384 something starting with __ and the normal name is an alias. */
10385 #if defined (__stub_connect) || defined (__stub___connect)
10388 f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (eval echo "$as_me:10396: \"$ac_link\"") >&5
10397 (eval $ac_link) 2>&5
10399 echo "$as_me:10399: \$? = $ac_status" >&5
10400 (exit $ac_status); } &&
10401 { ac_try='test -s conftest$ac_exeext'
10402 { (eval echo "$as_me:10402: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10405 echo "$as_me:10405: \$? = $ac_status" >&5
10406 (exit $ac_status); }; }; then
10407 ac_cv_func_connect=yes
10409 echo "$as_me: failed program was:" >&5
10410 cat conftest.$ac_ext >&5
10411 ac_cv_func_connect=no
10413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10415 echo "$as_me:10415: result: $ac_cv_func_connect" >&5
10416 echo "${ECHO_T}$ac_cv_func_connect" >&6
10418 if test $ac_cv_func_connect = no; then
10419 echo "$as_me:10419: checking for connect in -lsocket" >&5
10420 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10421 if test "${ac_cv_lib_socket_connect+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10424 ac_check_lib_save_LIBS=$LIBS
10425 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10426 cat >conftest.$ac_ext <<_ACEOF
10427 #line 10427 "configure"
10428 #include "confdefs.h"
10430 /* Override any gcc2 internal prototype to avoid an error. */
10434 /* We use char because int might match the return type of a gcc2
10435 builtin and then its argument prototype would still apply. */
10445 rm -f conftest.$ac_objext conftest$ac_exeext
10446 if { (eval echo "$as_me:10446: \"$ac_link\"") >&5
10447 (eval $ac_link) 2>&5
10449 echo "$as_me:10449: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -s conftest$ac_exeext'
10452 { (eval echo "$as_me:10452: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10455 echo "$as_me:10455: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
10457 ac_cv_lib_socket_connect=yes
10459 echo "$as_me: failed program was:" >&5
10460 cat conftest.$ac_ext >&5
10461 ac_cv_lib_socket_connect=no
10463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10464 LIBS=$ac_check_lib_save_LIBS
10466 echo "$as_me:10466: result: $ac_cv_lib_socket_connect" >&5
10467 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10468 if test $ac_cv_lib_socket_connect = yes; then
10469 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10474 # Guillermo Gomez says -lposix is necessary on A/UX.
10475 echo "$as_me:10475: checking for remove" >&5
10476 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10477 if test "${ac_cv_func_remove+set}" = set; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10480 cat >conftest.$ac_ext <<_ACEOF
10481 #line 10481 "configure"
10482 #include "confdefs.h"
10483 /* System header to define __stub macros and hopefully few prototypes,
10484 which can conflict with char remove (); below. */
10485 #include <assert.h>
10486 /* Override any gcc2 internal prototype to avoid an error. */
10490 /* We use char because int might match the return type of a gcc2
10491 builtin and then its argument prototype would still apply. */
10498 /* The GNU C library defines this for functions which it implements
10499 to always fail with ENOSYS. Some functions are actually named
10500 something starting with __ and the normal name is an alias. */
10501 #if defined (__stub_remove) || defined (__stub___remove)
10504 f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10511 rm -f conftest.$ac_objext conftest$ac_exeext
10512 if { (eval echo "$as_me:10512: \"$ac_link\"") >&5
10513 (eval $ac_link) 2>&5
10515 echo "$as_me:10515: \$? = $ac_status" >&5
10516 (exit $ac_status); } &&
10517 { ac_try='test -s conftest$ac_exeext'
10518 { (eval echo "$as_me:10518: \"$ac_try\"") >&5
10519 (eval $ac_try) 2>&5
10521 echo "$as_me:10521: \$? = $ac_status" >&5
10522 (exit $ac_status); }; }; then
10523 ac_cv_func_remove=yes
10525 echo "$as_me: failed program was:" >&5
10526 cat conftest.$ac_ext >&5
10527 ac_cv_func_remove=no
10529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10531 echo "$as_me:10531: result: $ac_cv_func_remove" >&5
10532 echo "${ECHO_T}$ac_cv_func_remove" >&6
10534 if test $ac_cv_func_remove = no; then
10535 echo "$as_me:10535: checking for remove in -lposix" >&5
10536 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10537 if test "${ac_cv_lib_posix_remove+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10540 ac_check_lib_save_LIBS=$LIBS
10541 LIBS="-lposix $LIBS"
10542 cat >conftest.$ac_ext <<_ACEOF
10543 #line 10543 "configure"
10544 #include "confdefs.h"
10546 /* Override any gcc2 internal prototype to avoid an error. */
10550 /* We use char because int might match the return type of a gcc2
10551 builtin and then its argument prototype would still apply. */
10561 rm -f conftest.$ac_objext conftest$ac_exeext
10562 if { (eval echo "$as_me:10562: \"$ac_link\"") >&5
10563 (eval $ac_link) 2>&5
10565 echo "$as_me:10565: \$? = $ac_status" >&5
10566 (exit $ac_status); } &&
10567 { ac_try='test -s conftest$ac_exeext'
10568 { (eval echo "$as_me:10568: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10571 echo "$as_me:10571: \$? = $ac_status" >&5
10572 (exit $ac_status); }; }; then
10573 ac_cv_lib_posix_remove=yes
10575 echo "$as_me: failed program was:" >&5
10576 cat conftest.$ac_ext >&5
10577 ac_cv_lib_posix_remove=no
10579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10580 LIBS=$ac_check_lib_save_LIBS
10582 echo "$as_me:10582: result: $ac_cv_lib_posix_remove" >&5
10583 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10584 if test $ac_cv_lib_posix_remove = yes; then
10585 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10590 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10591 echo "$as_me:10591: checking for shmat" >&5
10592 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10593 if test "${ac_cv_func_shmat+set}" = set; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 cat >conftest.$ac_ext <<_ACEOF
10597 #line 10597 "configure"
10598 #include "confdefs.h"
10599 /* System header to define __stub macros and hopefully few prototypes,
10600 which can conflict with char shmat (); below. */
10601 #include <assert.h>
10602 /* Override any gcc2 internal prototype to avoid an error. */
10606 /* We use char because int might match the return type of a gcc2
10607 builtin and then its argument prototype would still apply. */
10614 /* The GNU C library defines this for functions which it implements
10615 to always fail with ENOSYS. Some functions are actually named
10616 something starting with __ and the normal name is an alias. */
10617 #if defined (__stub_shmat) || defined (__stub___shmat)
10620 f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10627 rm -f conftest.$ac_objext conftest$ac_exeext
10628 if { (eval echo "$as_me:10628: \"$ac_link\"") >&5
10629 (eval $ac_link) 2>&5
10631 echo "$as_me:10631: \$? = $ac_status" >&5
10632 (exit $ac_status); } &&
10633 { ac_try='test -s conftest$ac_exeext'
10634 { (eval echo "$as_me:10634: \"$ac_try\"") >&5
10635 (eval $ac_try) 2>&5
10637 echo "$as_me:10637: \$? = $ac_status" >&5
10638 (exit $ac_status); }; }; then
10639 ac_cv_func_shmat=yes
10641 echo "$as_me: failed program was:" >&5
10642 cat conftest.$ac_ext >&5
10643 ac_cv_func_shmat=no
10645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10647 echo "$as_me:10647: result: $ac_cv_func_shmat" >&5
10648 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10650 if test $ac_cv_func_shmat = no; then
10651 echo "$as_me:10651: checking for shmat in -lipc" >&5
10652 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10653 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10656 ac_check_lib_save_LIBS=$LIBS
10658 cat >conftest.$ac_ext <<_ACEOF
10659 #line 10659 "configure"
10660 #include "confdefs.h"
10662 /* Override any gcc2 internal prototype to avoid an error. */
10666 /* We use char because int might match the return type of a gcc2
10667 builtin and then its argument prototype would still apply. */
10677 rm -f conftest.$ac_objext conftest$ac_exeext
10678 if { (eval echo "$as_me:10678: \"$ac_link\"") >&5
10679 (eval $ac_link) 2>&5
10681 echo "$as_me:10681: \$? = $ac_status" >&5
10682 (exit $ac_status); } &&
10683 { ac_try='test -s conftest$ac_exeext'
10684 { (eval echo "$as_me:10684: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10687 echo "$as_me:10687: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }; then
10689 ac_cv_lib_ipc_shmat=yes
10691 echo "$as_me: failed program was:" >&5
10692 cat conftest.$ac_ext >&5
10693 ac_cv_lib_ipc_shmat=no
10695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10696 LIBS=$ac_check_lib_save_LIBS
10698 echo "$as_me:10698: result: $ac_cv_lib_ipc_shmat" >&5
10699 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10700 if test $ac_cv_lib_ipc_shmat = yes; then
10701 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10707 # Check for libraries that X11R6 Xt/Xaw programs need.
10708 ac_save_LDFLAGS=$LDFLAGS
10709 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10710 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10711 # check for ICE first), but we must link in the order -lSM -lICE or
10712 # we get undefined symbols. So assume we have SM if we have ICE.
10713 # These have to be linked with before -lX11, unlike the other
10714 # libraries we check for below, so use a different variable.
10715 # John Interrante, Karl Berry
10716 echo "$as_me:10716: checking for IceConnectionNumber in -lICE" >&5
10717 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10718 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10721 ac_check_lib_save_LIBS=$LIBS
10722 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10723 cat >conftest.$ac_ext <<_ACEOF
10724 #line 10724 "configure"
10725 #include "confdefs.h"
10727 /* Override any gcc2 internal prototype to avoid an error. */
10731 /* We use char because int might match the return type of a gcc2
10732 builtin and then its argument prototype would still apply. */
10733 char IceConnectionNumber ();
10737 IceConnectionNumber ();
10742 rm -f conftest.$ac_objext conftest$ac_exeext
10743 if { (eval echo "$as_me:10743: \"$ac_link\"") >&5
10744 (eval $ac_link) 2>&5
10746 echo "$as_me:10746: \$? = $ac_status" >&5
10747 (exit $ac_status); } &&
10748 { ac_try='test -s conftest$ac_exeext'
10749 { (eval echo "$as_me:10749: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10752 echo "$as_me:10752: \$? = $ac_status" >&5
10753 (exit $ac_status); }; }; then
10754 ac_cv_lib_ICE_IceConnectionNumber=yes
10756 echo "$as_me: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10758 ac_cv_lib_ICE_IceConnectionNumber=no
10760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10761 LIBS=$ac_check_lib_save_LIBS
10763 echo "$as_me:10763: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10764 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10765 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10766 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10769 LDFLAGS=$ac_save_LDFLAGS
10773 cf_x_athena=${cf_x_athena:-Xaw}
10775 echo "$as_me:10775: checking if you want to link with Xaw 3d library" >&5
10776 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
10779 # Check whether --with-Xaw3d or --without-Xaw3d was given.
10780 if test "${with_Xaw3d+set}" = set; then
10781 withval="$with_Xaw3d"
10784 if test "$withval" = yes ; then
10786 echo "$as_me:10786: result: yes" >&5
10787 echo "${ECHO_T}yes" >&6
10789 echo "$as_me:10789: result: no" >&5
10790 echo "${ECHO_T}no" >&6
10793 echo "$as_me:10793: checking if you want to link with Xaw 3d xft library" >&5
10794 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
10797 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
10798 if test "${with_Xaw3dxft+set}" = set; then
10799 withval="$with_Xaw3dxft"
10802 if test "$withval" = yes ; then
10803 cf_x_athena=Xaw3dxft
10804 echo "$as_me:10804: result: yes" >&5
10805 echo "${ECHO_T}yes" >&6
10807 echo "$as_me:10807: result: no" >&5
10808 echo "${ECHO_T}no" >&6
10811 echo "$as_me:10811: checking if you want to link with neXT Athena library" >&5
10812 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
10815 # Check whether --with-neXtaw or --without-neXtaw was given.
10816 if test "${with_neXtaw+set}" = set; then
10817 withval="$with_neXtaw"
10820 if test "$withval" = yes ; then
10822 echo "$as_me:10822: result: yes" >&5
10823 echo "${ECHO_T}yes" >&6
10825 echo "$as_me:10825: result: no" >&5
10826 echo "${ECHO_T}no" >&6
10829 echo "$as_me:10829: checking if you want to link with Athena-Plus library" >&5
10830 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
10833 # Check whether --with-XawPlus or --without-XawPlus was given.
10834 if test "${with_XawPlus+set}" = set; then
10835 withval="$with_XawPlus"
10838 if test "$withval" = yes ; then
10839 cf_x_athena=XawPlus
10840 echo "$as_me:10840: result: yes" >&5
10841 echo "${ECHO_T}yes" >&6
10843 echo "$as_me:10843: result: no" >&5
10844 echo "${ECHO_T}no" >&6
10849 if test "$PKG_CONFIG" != none ; then
10851 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
10852 for cf_athena_pkg in \
10855 ${cf_x_athena}-devel \
10856 lib${cf_x_athena} \
10857 lib${cf_x_athena}-devel
10860 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
10861 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
10863 echo "${as_me:-configure}:10863: testing found package $cf_athena_pkg ..." 1>&5
10865 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
10866 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
10867 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
10869 echo "${as_me:-configure}:10869: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10871 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
10873 echo "${as_me:-configure}:10873: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
10878 cf_new_extra_cppflags=
10880 for cf_add_cflags in $cf_pkgconfig_incs
10882 case $cf_fix_cppflags in
10884 case $cf_add_cflags in
10885 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10886 case $cf_add_cflags in
10888 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10890 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10891 && test -z "${cf_tst_cflags}" \
10892 && cf_fix_cppflags=yes
10894 if test $cf_fix_cppflags = yes ; then
10895 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10897 elif test "${cf_tst_cflags}" = "\"'" ; then
10898 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10903 case "$CPPFLAGS" in
10907 case $cf_add_cflags in
10909 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10911 CPPFLAGS=`echo "$CPPFLAGS" | \
10912 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10913 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10917 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10922 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10927 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10929 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10931 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10932 && test -z "${cf_tst_cflags}" \
10933 && cf_fix_cppflags=no
10938 if test -n "$cf_new_cflags" ; then
10940 CFLAGS="$CFLAGS $cf_new_cflags"
10943 if test -n "$cf_new_cppflags" ; then
10945 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10948 if test -n "$cf_new_extra_cppflags" ; then
10950 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10953 cf_add_libs="$cf_pkgconfig_libs"
10954 # Filter out duplicates - this happens with badly-designed ".pc" files...
10955 for cf_add_1lib in $LIBS
10957 for cf_add_2lib in $cf_add_libs
10959 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10965 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10967 LIBS="$cf_add_libs"
10969 cf_x_athena_lib="$cf_pkgconfig_libs"
10971 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10973 cat >>confdefs.h <<EOF
10974 #define $cf_x_athena_LIBS 1
10977 for cf_trim_lib in Xmu Xt X11
10980 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
10981 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
10982 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
10984 echo "${as_me:-configure}:10984: testing ..trimmed $LIBS ..." 1>&5
10990 echo "$as_me:10990: checking for usable $cf_x_athena/Xmu package" >&5
10991 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
10992 if test "${cf_cv_xaw_compat+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 cat >conftest.$ac_ext <<_ACEOF
10997 #line 10997 "configure"
10998 #include "confdefs.h"
11000 #include <X11/Xmu/CharSet.h>
11006 int check = XmuCompareISOLatin1("big", "small")
11012 rm -f conftest.$ac_objext conftest$ac_exeext
11013 if { (eval echo "$as_me:11013: \"$ac_link\"") >&5
11014 (eval $ac_link) 2>&5
11016 echo "$as_me:11016: \$? = $ac_status" >&5
11017 (exit $ac_status); } &&
11018 { ac_try='test -s conftest$ac_exeext'
11019 { (eval echo "$as_me:11019: \"$ac_try\"") >&5
11020 (eval $ac_try) 2>&5
11022 echo "$as_me:11022: \$? = $ac_status" >&5
11023 (exit $ac_status); }; }; then
11024 cf_cv_xaw_compat=yes
11026 echo "$as_me: failed program was:" >&5
11027 cat conftest.$ac_ext >&5
11028 cf_cv_xaw_compat=no
11030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11032 echo "$as_me:11032: result: $cf_cv_xaw_compat" >&5
11033 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
11035 if test "$cf_cv_xaw_compat" = no
11037 # workaround for broken ".pc" files...
11038 case "$cf_x_athena_lib" in
11042 test -n "$verbose" && echo " work around broken package" 1>&6
11044 echo "${as_me:-configure}:11044: testing work around broken package ..." 1>&5
11046 cf_save_xmu="$LIBS"
11047 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
11049 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
11050 test -n "$verbose" && echo " found package xmu" 1>&6
11052 echo "${as_me:-configure}:11052: testing found package xmu ..." 1>&5
11054 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
11055 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
11056 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
11058 echo "${as_me:-configure}:11058: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11060 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
11062 echo "${as_me:-configure}:11062: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
11067 cf_new_extra_cppflags=
11069 for cf_add_cflags in $cf_pkgconfig_incs
11071 case $cf_fix_cppflags in
11073 case $cf_add_cflags in
11074 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11075 case $cf_add_cflags in
11077 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11079 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11080 && test -z "${cf_tst_cflags}" \
11081 && cf_fix_cppflags=yes
11083 if test $cf_fix_cppflags = yes ; then
11084 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11086 elif test "${cf_tst_cflags}" = "\"'" ; then
11087 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11092 case "$CPPFLAGS" in
11096 case $cf_add_cflags in
11098 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11100 CPPFLAGS=`echo "$CPPFLAGS" | \
11101 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11102 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11106 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11111 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11116 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11118 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11120 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11121 && test -z "${cf_tst_cflags}" \
11122 && cf_fix_cppflags=no
11127 if test -n "$cf_new_cflags" ; then
11129 CFLAGS="$CFLAGS $cf_new_cflags"
11132 if test -n "$cf_new_cppflags" ; then
11134 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11137 if test -n "$cf_new_extra_cppflags" ; then
11139 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11142 cf_add_libs="$cf_pkgconfig_libs"
11143 # Filter out duplicates - this happens with badly-designed ".pc" files...
11144 for cf_add_1lib in $LIBS
11146 for cf_add_2lib in $cf_add_libs
11148 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11154 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11156 LIBS="$cf_add_libs"
11158 LIBS="$cf_save_xmu"
11160 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11162 echo "${as_me:-configure}:11162: testing ...before $LIBS ..." 1>&5
11164 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
11165 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11167 echo "${as_me:-configure}:11167: testing ...after $LIBS ..." 1>&5
11173 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11175 echo "${as_me:-configure}:11175: testing ...before $LIBS ..." 1>&5
11177 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
11178 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11180 echo "${as_me:-configure}:11180: testing ...after $LIBS ..." 1>&5
11184 for cf_trim_lib in Xmu Xt X11
11187 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
11188 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
11189 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
11191 echo "${as_me:-configure}:11191: testing ..trimmed $LIBS ..." 1>&5
11211 if test -z "$cf_x_athena_lib" ; then
11213 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
11214 test -n "$verbose" && echo " found package Xext" 1>&6
11216 echo "${as_me:-configure}:11216: testing found package Xext ..." 1>&5
11218 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
11219 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
11220 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
11222 echo "${as_me:-configure}:11222: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11224 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
11226 echo "${as_me:-configure}:11226: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
11231 cf_new_extra_cppflags=
11233 for cf_add_cflags in $cf_pkgconfig_incs
11235 case $cf_fix_cppflags in
11237 case $cf_add_cflags in
11238 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11239 case $cf_add_cflags in
11241 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11243 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11244 && test -z "${cf_tst_cflags}" \
11245 && cf_fix_cppflags=yes
11247 if test $cf_fix_cppflags = yes ; then
11248 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11250 elif test "${cf_tst_cflags}" = "\"'" ; then
11251 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11256 case "$CPPFLAGS" in
11260 case $cf_add_cflags in
11262 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11264 CPPFLAGS=`echo "$CPPFLAGS" | \
11265 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11266 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11270 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11275 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11280 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11282 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11284 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11285 && test -z "${cf_tst_cflags}" \
11286 && cf_fix_cppflags=no
11291 if test -n "$cf_new_cflags" ; then
11293 CFLAGS="$CFLAGS $cf_new_cflags"
11296 if test -n "$cf_new_cppflags" ; then
11298 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11301 if test -n "$cf_new_extra_cppflags" ; then
11303 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11306 cf_add_libs="$cf_pkgconfig_libs"
11307 # Filter out duplicates - this happens with badly-designed ".pc" files...
11308 for cf_add_1lib in $LIBS
11310 for cf_add_2lib in $cf_add_libs
11312 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11318 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11320 LIBS="$cf_add_libs"
11327 echo "$as_me:11327: checking for XextCreateExtension in -lXext" >&5
11328 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
11329 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
11332 ac_check_lib_save_LIBS=$LIBS
11333 LIBS="-lXext $LIBS"
11334 cat >conftest.$ac_ext <<_ACEOF
11335 #line 11335 "configure"
11336 #include "confdefs.h"
11338 /* Override any gcc2 internal prototype to avoid an error. */
11342 /* We use char because int might match the return type of a gcc2
11343 builtin and then its argument prototype would still apply. */
11344 char XextCreateExtension ();
11348 XextCreateExtension ();
11353 rm -f conftest.$ac_objext conftest$ac_exeext
11354 if { (eval echo "$as_me:11354: \"$ac_link\"") >&5
11355 (eval $ac_link) 2>&5
11357 echo "$as_me:11357: \$? = $ac_status" >&5
11358 (exit $ac_status); } &&
11359 { ac_try='test -s conftest$ac_exeext'
11360 { (eval echo "$as_me:11360: \"$ac_try\"") >&5
11361 (eval $ac_try) 2>&5
11363 echo "$as_me:11363: \$? = $ac_status" >&5
11364 (exit $ac_status); }; }; then
11365 ac_cv_lib_Xext_XextCreateExtension=yes
11367 echo "$as_me: failed program was:" >&5
11368 cat conftest.$ac_ext >&5
11369 ac_cv_lib_Xext_XextCreateExtension=no
11371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11372 LIBS=$ac_check_lib_save_LIBS
11374 echo "$as_me:11374: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
11375 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
11376 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
11378 cf_add_libs="-lXext"
11379 # Filter out duplicates - this happens with badly-designed ".pc" files...
11380 for cf_add_1lib in $LIBS
11382 for cf_add_2lib in $cf_add_libs
11384 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11390 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11392 LIBS="$cf_add_libs"
11398 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new), and (and
11399 # in some cases has installed dummy files in the former, other cases replaced
11400 # it with a link to the new location). This complicates the configure script.
11401 # Check for that pitfall, and recover using pkg-config
11403 # If none of these are set, the configuration is almost certainly broken.
11404 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
11407 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
11408 test -n "$verbose" && echo " found package x11" 1>&6
11410 echo "${as_me:-configure}:11410: testing found package x11 ..." 1>&5
11412 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
11413 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
11414 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
11416 echo "${as_me:-configure}:11416: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11418 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
11420 echo "${as_me:-configure}:11420: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
11425 cf_new_extra_cppflags=
11427 for cf_add_cflags in $cf_pkgconfig_incs
11429 case $cf_fix_cppflags in
11431 case $cf_add_cflags in
11432 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11433 case $cf_add_cflags in
11435 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11437 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11438 && test -z "${cf_tst_cflags}" \
11439 && cf_fix_cppflags=yes
11441 if test $cf_fix_cppflags = yes ; then
11442 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11444 elif test "${cf_tst_cflags}" = "\"'" ; then
11445 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11450 case "$CPPFLAGS" in
11454 case $cf_add_cflags in
11456 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11458 CPPFLAGS=`echo "$CPPFLAGS" | \
11459 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11460 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11464 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11469 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11474 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11476 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11478 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11479 && test -z "${cf_tst_cflags}" \
11480 && cf_fix_cppflags=no
11485 if test -n "$cf_new_cflags" ; then
11487 CFLAGS="$CFLAGS $cf_new_cflags"
11490 if test -n "$cf_new_cppflags" ; then
11492 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11495 if test -n "$cf_new_extra_cppflags" ; then
11497 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11500 cf_add_libs="$cf_pkgconfig_libs"
11501 # Filter out duplicates - this happens with badly-designed ".pc" files...
11502 for cf_add_1lib in $LIBS
11504 for cf_add_2lib in $cf_add_libs
11506 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11512 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11514 LIBS="$cf_add_libs"
11520 { echo "$as_me:11520: WARNING: unable to find X11 library" >&5
11521 echo "$as_me: WARNING: unable to find X11 library" >&2;}
11524 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
11525 test -n "$verbose" && echo " found package ice" 1>&6
11527 echo "${as_me:-configure}:11527: testing found package ice ..." 1>&5
11529 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
11530 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
11531 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
11533 echo "${as_me:-configure}:11533: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11535 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
11537 echo "${as_me:-configure}:11537: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
11542 cf_new_extra_cppflags=
11544 for cf_add_cflags in $cf_pkgconfig_incs
11546 case $cf_fix_cppflags in
11548 case $cf_add_cflags in
11549 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11550 case $cf_add_cflags in
11552 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11554 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11555 && test -z "${cf_tst_cflags}" \
11556 && cf_fix_cppflags=yes
11558 if test $cf_fix_cppflags = yes ; then
11559 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11561 elif test "${cf_tst_cflags}" = "\"'" ; then
11562 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11567 case "$CPPFLAGS" in
11571 case $cf_add_cflags in
11573 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11575 CPPFLAGS=`echo "$CPPFLAGS" | \
11576 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11577 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11581 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11586 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11591 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11593 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11595 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11596 && test -z "${cf_tst_cflags}" \
11597 && cf_fix_cppflags=no
11602 if test -n "$cf_new_cflags" ; then
11604 CFLAGS="$CFLAGS $cf_new_cflags"
11607 if test -n "$cf_new_cppflags" ; then
11609 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11612 if test -n "$cf_new_extra_cppflags" ; then
11614 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11617 cf_add_libs="$cf_pkgconfig_libs"
11618 # Filter out duplicates - this happens with badly-designed ".pc" files...
11619 for cf_add_1lib in $LIBS
11621 for cf_add_2lib in $cf_add_libs
11623 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11629 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11631 LIBS="$cf_add_libs"
11637 { echo "$as_me:11637: WARNING: unable to find ICE library" >&5
11638 echo "$as_me: WARNING: unable to find ICE library" >&2;}
11641 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
11642 test -n "$verbose" && echo " found package sm" 1>&6
11644 echo "${as_me:-configure}:11644: testing found package sm ..." 1>&5
11646 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
11647 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
11648 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11650 echo "${as_me:-configure}:11650: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11652 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11654 echo "${as_me:-configure}:11654: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11659 cf_new_extra_cppflags=
11661 for cf_add_cflags in $cf_pkgconfig_incs
11663 case $cf_fix_cppflags in
11665 case $cf_add_cflags in
11666 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11667 case $cf_add_cflags in
11669 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11671 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11672 && test -z "${cf_tst_cflags}" \
11673 && cf_fix_cppflags=yes
11675 if test $cf_fix_cppflags = yes ; then
11676 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11678 elif test "${cf_tst_cflags}" = "\"'" ; then
11679 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11684 case "$CPPFLAGS" in
11688 case $cf_add_cflags in
11690 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11692 CPPFLAGS=`echo "$CPPFLAGS" | \
11693 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11694 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11698 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11703 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11708 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11710 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11712 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11713 && test -z "${cf_tst_cflags}" \
11714 && cf_fix_cppflags=no
11719 if test -n "$cf_new_cflags" ; then
11721 CFLAGS="$CFLAGS $cf_new_cflags"
11724 if test -n "$cf_new_cppflags" ; then
11726 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11729 if test -n "$cf_new_extra_cppflags" ; then
11731 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11734 cf_add_libs="$cf_pkgconfig_libs"
11735 # Filter out duplicates - this happens with badly-designed ".pc" files...
11736 for cf_add_1lib in $LIBS
11738 for cf_add_2lib in $cf_add_libs
11740 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11746 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11748 LIBS="$cf_add_libs"
11754 { echo "$as_me:11754: WARNING: unable to find SM library" >&5
11755 echo "$as_me: WARNING: unable to find SM library" >&2;}
11758 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
11759 test -n "$verbose" && echo " found package xt" 1>&6
11761 echo "${as_me:-configure}:11761: testing found package xt ..." 1>&5
11763 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
11764 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
11765 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
11767 echo "${as_me:-configure}:11767: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11769 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
11771 echo "${as_me:-configure}:11771: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
11776 cf_new_extra_cppflags=
11778 for cf_add_cflags in $cf_pkgconfig_incs
11780 case $cf_fix_cppflags in
11782 case $cf_add_cflags in
11783 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11784 case $cf_add_cflags in
11786 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11788 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11789 && test -z "${cf_tst_cflags}" \
11790 && cf_fix_cppflags=yes
11792 if test $cf_fix_cppflags = yes ; then
11793 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11795 elif test "${cf_tst_cflags}" = "\"'" ; then
11796 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11801 case "$CPPFLAGS" in
11805 case $cf_add_cflags in
11807 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11809 CPPFLAGS=`echo "$CPPFLAGS" | \
11810 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11811 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11815 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11820 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11825 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11827 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11829 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11830 && test -z "${cf_tst_cflags}" \
11831 && cf_fix_cppflags=no
11836 if test -n "$cf_new_cflags" ; then
11838 CFLAGS="$CFLAGS $cf_new_cflags"
11841 if test -n "$cf_new_cppflags" ; then
11843 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11846 if test -n "$cf_new_extra_cppflags" ; then
11848 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11851 cf_add_libs="$cf_pkgconfig_libs"
11852 # Filter out duplicates - this happens with badly-designed ".pc" files...
11853 for cf_add_1lib in $LIBS
11855 for cf_add_2lib in $cf_add_libs
11857 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11863 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11865 LIBS="$cf_add_libs"
11871 { echo "$as_me:11871: WARNING: unable to find Xt library" >&5
11872 echo "$as_me: WARNING: unable to find Xt library" >&2;}
11879 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
11880 test -n "$verbose" && echo " found package xt" 1>&6
11882 echo "${as_me:-configure}:11882: testing found package xt ..." 1>&5
11884 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
11885 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
11886 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
11888 echo "${as_me:-configure}:11888: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11890 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
11892 echo "${as_me:-configure}:11892: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
11897 cf_new_extra_cppflags=
11899 for cf_add_cflags in $cf_pkgconfig_incs
11901 case $cf_fix_cppflags in
11903 case $cf_add_cflags in
11904 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11905 case $cf_add_cflags in
11907 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11909 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11910 && test -z "${cf_tst_cflags}" \
11911 && cf_fix_cppflags=yes
11913 if test $cf_fix_cppflags = yes ; then
11914 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11916 elif test "${cf_tst_cflags}" = "\"'" ; then
11917 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11922 case "$CPPFLAGS" in
11926 case $cf_add_cflags in
11928 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11930 CPPFLAGS=`echo "$CPPFLAGS" | \
11931 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11932 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11936 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11941 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11946 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11948 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11950 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11951 && test -z "${cf_tst_cflags}" \
11952 && cf_fix_cppflags=no
11957 if test -n "$cf_new_cflags" ; then
11959 CFLAGS="$CFLAGS $cf_new_cflags"
11962 if test -n "$cf_new_cppflags" ; then
11964 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11967 if test -n "$cf_new_extra_cppflags" ; then
11969 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11972 cf_add_libs="$cf_pkgconfig_libs"
11973 # Filter out duplicates - this happens with badly-designed ".pc" files...
11974 for cf_add_1lib in $LIBS
11976 for cf_add_2lib in $cf_add_libs
11978 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11984 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11986 LIBS="$cf_add_libs"
11992 # we have an "xt" package, but it may omit Xt's dependency on X11
11993 echo "$as_me:11993: checking for usable X dependency" >&5
11994 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
11995 if test "${cf_cv_xt_x11_compat+set}" = set; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11999 cat >conftest.$ac_ext <<_ACEOF
12000 #line 12000 "configure"
12001 #include "confdefs.h"
12003 #include <X11/Xlib.h>
12009 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
12010 int rc2 = XClearWindow((Display*) 0, (Window) 0);
12011 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
12012 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
12018 rm -f conftest.$ac_objext conftest$ac_exeext
12019 if { (eval echo "$as_me:12019: \"$ac_link\"") >&5
12020 (eval $ac_link) 2>&5
12022 echo "$as_me:12022: \$? = $ac_status" >&5
12023 (exit $ac_status); } &&
12024 { ac_try='test -s conftest$ac_exeext'
12025 { (eval echo "$as_me:12025: \"$ac_try\"") >&5
12026 (eval $ac_try) 2>&5
12028 echo "$as_me:12028: \$? = $ac_status" >&5
12029 (exit $ac_status); }; }; then
12030 cf_cv_xt_x11_compat=yes
12032 echo "$as_me: failed program was:" >&5
12033 cat conftest.$ac_ext >&5
12034 cf_cv_xt_x11_compat=no
12036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12038 echo "$as_me:12038: result: $cf_cv_xt_x11_compat" >&5
12039 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
12040 if test "$cf_cv_xt_x11_compat" = no
12042 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
12044 echo "${as_me:-configure}:12044: testing work around broken X11 dependency ..." 1>&5
12046 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
12048 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
12049 test -n "$verbose" && echo " found package x11" 1>&6
12051 echo "${as_me:-configure}:12051: testing found package x11 ..." 1>&5
12053 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
12054 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
12055 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
12057 echo "${as_me:-configure}:12057: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12059 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
12061 echo "${as_me:-configure}:12061: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
12066 cf_new_extra_cppflags=
12068 for cf_add_cflags in $cf_pkgconfig_incs
12070 case $cf_fix_cppflags in
12072 case $cf_add_cflags in
12073 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12074 case $cf_add_cflags in
12076 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12078 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12079 && test -z "${cf_tst_cflags}" \
12080 && cf_fix_cppflags=yes
12082 if test $cf_fix_cppflags = yes ; then
12083 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12085 elif test "${cf_tst_cflags}" = "\"'" ; then
12086 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'`
12105 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12110 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12115 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12117 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12119 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12120 && test -z "${cf_tst_cflags}" \
12121 && cf_fix_cppflags=no
12126 if test -n "$cf_new_cflags" ; then
12128 CFLAGS="$CFLAGS $cf_new_cflags"
12131 if test -n "$cf_new_cppflags" ; then
12133 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12136 if test -n "$cf_new_extra_cppflags" ; then
12138 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12141 cf_add_libs="$cf_pkgconfig_libs"
12142 # Filter out duplicates - this happens with badly-designed ".pc" files...
12143 for cf_add_1lib in $LIBS
12145 for cf_add_2lib in $cf_add_libs
12147 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12153 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12155 LIBS="$cf_add_libs"
12162 test -n "$verbose" && echo " ...before $LIBS" 1>&6
12164 echo "${as_me:-configure}:12164: testing ...before $LIBS ..." 1>&5
12166 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
12167 test -n "$verbose" && echo " ...after $LIBS" 1>&6
12169 echo "${as_me:-configure}:12169: testing ...after $LIBS ..." 1>&5
12177 echo "$as_me:12177: checking for usable X Toolkit package" >&5
12178 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
12179 if test "${cf_cv_xt_ice_compat+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12183 cat >conftest.$ac_ext <<_ACEOF
12184 #line 12184 "configure"
12185 #include "confdefs.h"
12187 #include <X11/Shell.h>
12192 int num = IceConnectionNumber(0)
12198 rm -f conftest.$ac_objext conftest$ac_exeext
12199 if { (eval echo "$as_me:12199: \"$ac_link\"") >&5
12200 (eval $ac_link) 2>&5
12202 echo "$as_me:12202: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -s conftest$ac_exeext'
12205 { (eval echo "$as_me:12205: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12208 echo "$as_me:12208: \$? = $ac_status" >&5
12209 (exit $ac_status); }; }; then
12210 cf_cv_xt_ice_compat=yes
12212 echo "$as_me: failed program was:" >&5
12213 cat conftest.$ac_ext >&5
12214 cf_cv_xt_ice_compat=no
12216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12218 echo "$as_me:12218: result: $cf_cv_xt_ice_compat" >&5
12219 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
12221 if test "$cf_cv_xt_ice_compat" = no
12223 # workaround for broken ".pc" files used for X Toolkit.
12224 case "x$X_PRE_LIBS" in
12230 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
12232 echo "${as_me:-configure}:12232: testing work around broken ICE dependency ..." 1>&5
12234 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
12235 test -n "$verbose" && echo " found package ice" 1>&6
12237 echo "${as_me:-configure}:12237: testing found package ice ..." 1>&5
12239 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
12240 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
12241 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
12243 echo "${as_me:-configure}:12243: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12245 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
12247 echo "${as_me:-configure}:12247: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
12252 cf_new_extra_cppflags=
12254 for cf_add_cflags in $cf_pkgconfig_incs
12256 case $cf_fix_cppflags in
12258 case $cf_add_cflags in
12259 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12260 case $cf_add_cflags in
12262 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12264 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12265 && test -z "${cf_tst_cflags}" \
12266 && cf_fix_cppflags=yes
12268 if test $cf_fix_cppflags = yes ; then
12269 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12271 elif test "${cf_tst_cflags}" = "\"'" ; then
12272 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12277 case "$CPPFLAGS" in
12281 case $cf_add_cflags in
12283 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12285 CPPFLAGS=`echo "$CPPFLAGS" | \
12286 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12287 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12291 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12296 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12301 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12303 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12305 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12306 && test -z "${cf_tst_cflags}" \
12307 && cf_fix_cppflags=no
12312 if test -n "$cf_new_cflags" ; then
12314 CFLAGS="$CFLAGS $cf_new_cflags"
12317 if test -n "$cf_new_cppflags" ; then
12319 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12322 if test -n "$cf_new_extra_cppflags" ; then
12324 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12327 cf_add_libs="$cf_pkgconfig_libs"
12328 # Filter out duplicates - this happens with badly-designed ".pc" files...
12329 for cf_add_1lib in $LIBS
12331 for cf_add_2lib in $cf_add_libs
12333 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12339 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12341 LIBS="$cf_add_libs"
12343 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
12344 test -n "$verbose" && echo " found package sm" 1>&6
12346 echo "${as_me:-configure}:12346: testing found package sm ..." 1>&5
12348 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
12349 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
12350 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
12352 echo "${as_me:-configure}:12352: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12354 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
12356 echo "${as_me:-configure}:12356: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
12361 cf_new_extra_cppflags=
12363 for cf_add_cflags in $cf_pkgconfig_incs
12365 case $cf_fix_cppflags in
12367 case $cf_add_cflags in
12368 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12369 case $cf_add_cflags in
12371 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12373 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12374 && test -z "${cf_tst_cflags}" \
12375 && cf_fix_cppflags=yes
12377 if test $cf_fix_cppflags = yes ; then
12378 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12380 elif test "${cf_tst_cflags}" = "\"'" ; then
12381 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12386 case "$CPPFLAGS" in
12390 case $cf_add_cflags in
12392 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12394 CPPFLAGS=`echo "$CPPFLAGS" | \
12395 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12396 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12400 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12405 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12410 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12412 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12414 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12415 && test -z "${cf_tst_cflags}" \
12416 && cf_fix_cppflags=no
12421 if test -n "$cf_new_cflags" ; then
12423 CFLAGS="$CFLAGS $cf_new_cflags"
12426 if test -n "$cf_new_cppflags" ; then
12428 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12431 if test -n "$cf_new_extra_cppflags" ; then
12433 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12436 cf_add_libs="$cf_pkgconfig_libs"
12437 # Filter out duplicates - this happens with badly-designed ".pc" files...
12438 for cf_add_1lib in $LIBS
12440 for cf_add_2lib in $cf_add_libs
12442 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12448 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12450 LIBS="$cf_add_libs"
12463 test -n "$verbose" && echo " ...before $LIBS" 1>&6
12465 echo "${as_me:-configure}:12465: testing ...before $LIBS ..." 1>&5
12467 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
12468 test -n "$verbose" && echo " ...after $LIBS" 1>&6
12470 echo "${as_me:-configure}:12470: testing ...after $LIBS ..." 1>&5
12486 LDFLAGS="$X_LIBS $LDFLAGS"
12488 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
12490 echo "${as_me:-configure}:12490: testing checking additions to CFLAGS ..." 1>&5
12492 cf_check_cflags="$CFLAGS"
12493 cf_check_cppflags="$CPPFLAGS"
12498 cf_new_extra_cppflags=
12500 for cf_add_cflags in $X_CFLAGS
12502 case $cf_fix_cppflags in
12504 case $cf_add_cflags in
12505 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12506 case $cf_add_cflags in
12508 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12510 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12511 && test -z "${cf_tst_cflags}" \
12512 && cf_fix_cppflags=yes
12514 if test $cf_fix_cppflags = yes ; then
12515 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12517 elif test "${cf_tst_cflags}" = "\"'" ; then
12518 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12523 case "$CPPFLAGS" in
12527 case $cf_add_cflags in
12529 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12531 CPPFLAGS=`echo "$CPPFLAGS" | \
12532 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12533 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12537 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12542 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12547 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12549 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12551 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12552 && test -z "${cf_tst_cflags}" \
12553 && cf_fix_cppflags=no
12558 if test -n "$cf_new_cflags" ; then
12559 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
12561 echo "${as_me:-configure}:12561: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
12563 CFLAGS="$CFLAGS $cf_new_cflags"
12566 if test -n "$cf_new_cppflags" ; then
12567 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
12569 echo "${as_me:-configure}:12569: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
12571 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12574 if test -n "$cf_new_extra_cppflags" ; then
12575 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
12577 echo "${as_me:-configure}:12577: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
12579 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12582 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
12583 cat >conftest.$ac_ext <<_ACEOF
12584 #line 12584 "configure"
12585 #include "confdefs.h"
12590 printf("Hello world");
12595 rm -f conftest.$ac_objext conftest$ac_exeext
12596 if { (eval echo "$as_me:12596: \"$ac_link\"") >&5
12597 (eval $ac_link) 2>&5
12599 echo "$as_me:12599: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try='test -s conftest$ac_exeext'
12602 { (eval echo "$as_me:12602: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12605 echo "$as_me:12605: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12609 echo "$as_me: failed program was:" >&5
12610 cat conftest.$ac_ext >&5
12611 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
12613 echo "${as_me:-configure}:12613: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
12615 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
12616 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
12618 echo "${as_me:-configure}:12618: testing but keeping change to \$CPPFLAGS ..." 1>&5
12621 CFLAGS="$cf_check_flags"
12623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12626 echo "$as_me:12626: checking for XOpenDisplay" >&5
12627 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
12628 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
12631 cat >conftest.$ac_ext <<_ACEOF
12632 #line 12632 "configure"
12633 #include "confdefs.h"
12634 /* System header to define __stub macros and hopefully few prototypes,
12635 which can conflict with char XOpenDisplay (); below. */
12636 #include <assert.h>
12637 /* Override any gcc2 internal prototype to avoid an error. */
12641 /* We use char because int might match the return type of a gcc2
12642 builtin and then its argument prototype would still apply. */
12643 char XOpenDisplay ();
12649 /* The GNU C library defines this for functions which it implements
12650 to always fail with ENOSYS. Some functions are actually named
12651 something starting with __ and the normal name is an alias. */
12652 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
12655 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12662 rm -f conftest.$ac_objext conftest$ac_exeext
12663 if { (eval echo "$as_me:12663: \"$ac_link\"") >&5
12664 (eval $ac_link) 2>&5
12666 echo "$as_me:12666: \$? = $ac_status" >&5
12667 (exit $ac_status); } &&
12668 { ac_try='test -s conftest$ac_exeext'
12669 { (eval echo "$as_me:12669: \"$ac_try\"") >&5
12670 (eval $ac_try) 2>&5
12672 echo "$as_me:12672: \$? = $ac_status" >&5
12673 (exit $ac_status); }; }; then
12674 ac_cv_func_XOpenDisplay=yes
12676 echo "$as_me: failed program was:" >&5
12677 cat conftest.$ac_ext >&5
12678 ac_cv_func_XOpenDisplay=no
12680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12682 echo "$as_me:12682: result: $ac_cv_func_XOpenDisplay" >&5
12683 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
12684 if test $ac_cv_func_XOpenDisplay = yes; then
12688 echo "$as_me:12688: checking for XOpenDisplay in -lX11" >&5
12689 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
12690 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 ac_check_lib_save_LIBS=$LIBS
12694 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12695 cat >conftest.$ac_ext <<_ACEOF
12696 #line 12696 "configure"
12697 #include "confdefs.h"
12699 /* Override any gcc2 internal prototype to avoid an error. */
12703 /* We use char because int might match the return type of a gcc2
12704 builtin and then its argument prototype would still apply. */
12705 char XOpenDisplay ();
12714 rm -f conftest.$ac_objext conftest$ac_exeext
12715 if { (eval echo "$as_me:12715: \"$ac_link\"") >&5
12716 (eval $ac_link) 2>&5
12718 echo "$as_me:12718: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
12720 { ac_try='test -s conftest$ac_exeext'
12721 { (eval echo "$as_me:12721: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12724 echo "$as_me:12724: \$? = $ac_status" >&5
12725 (exit $ac_status); }; }; then
12726 ac_cv_lib_X11_XOpenDisplay=yes
12728 echo "$as_me: failed program was:" >&5
12729 cat conftest.$ac_ext >&5
12730 ac_cv_lib_X11_XOpenDisplay=no
12732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12733 LIBS=$ac_check_lib_save_LIBS
12735 echo "$as_me:12735: result: $ac_cv_lib_X11_XOpenDisplay" >&5
12736 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
12737 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
12739 cf_add_libs="-lX11"
12740 # Filter out duplicates - this happens with badly-designed ".pc" files...
12741 for cf_add_1lib in $LIBS
12743 for cf_add_2lib in $cf_add_libs
12745 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12751 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12753 LIBS="$cf_add_libs"
12759 echo "$as_me:12759: checking for XtAppInitialize" >&5
12760 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
12761 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12764 cat >conftest.$ac_ext <<_ACEOF
12765 #line 12765 "configure"
12766 #include "confdefs.h"
12767 /* System header to define __stub macros and hopefully few prototypes,
12768 which can conflict with char XtAppInitialize (); below. */
12769 #include <assert.h>
12770 /* Override any gcc2 internal prototype to avoid an error. */
12774 /* We use char because int might match the return type of a gcc2
12775 builtin and then its argument prototype would still apply. */
12776 char XtAppInitialize ();
12782 /* The GNU C library defines this for functions which it implements
12783 to always fail with ENOSYS. Some functions are actually named
12784 something starting with __ and the normal name is an alias. */
12785 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
12788 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12795 rm -f conftest.$ac_objext conftest$ac_exeext
12796 if { (eval echo "$as_me:12796: \"$ac_link\"") >&5
12797 (eval $ac_link) 2>&5
12799 echo "$as_me:12799: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
12801 { ac_try='test -s conftest$ac_exeext'
12802 { (eval echo "$as_me:12802: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12805 echo "$as_me:12805: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 ac_cv_func_XtAppInitialize=yes
12809 echo "$as_me: failed program was:" >&5
12810 cat conftest.$ac_ext >&5
12811 ac_cv_func_XtAppInitialize=no
12813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12815 echo "$as_me:12815: result: $ac_cv_func_XtAppInitialize" >&5
12816 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
12817 if test $ac_cv_func_XtAppInitialize = yes; then
12821 echo "$as_me:12821: checking for XtAppInitialize in -lXt" >&5
12822 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
12823 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 ac_check_lib_save_LIBS=$LIBS
12827 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12828 cat >conftest.$ac_ext <<_ACEOF
12829 #line 12829 "configure"
12830 #include "confdefs.h"
12832 /* Override any gcc2 internal prototype to avoid an error. */
12836 /* We use char because int might match the return type of a gcc2
12837 builtin and then its argument prototype would still apply. */
12838 char XtAppInitialize ();
12842 XtAppInitialize ();
12847 rm -f conftest.$ac_objext conftest$ac_exeext
12848 if { (eval echo "$as_me:12848: \"$ac_link\"") >&5
12849 (eval $ac_link) 2>&5
12851 echo "$as_me:12851: \$? = $ac_status" >&5
12852 (exit $ac_status); } &&
12853 { ac_try='test -s conftest$ac_exeext'
12854 { (eval echo "$as_me:12854: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12857 echo "$as_me:12857: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
12859 ac_cv_lib_Xt_XtAppInitialize=yes
12861 echo "$as_me: failed program was:" >&5
12862 cat conftest.$ac_ext >&5
12863 ac_cv_lib_Xt_XtAppInitialize=no
12865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12866 LIBS=$ac_check_lib_save_LIBS
12868 echo "$as_me:12868: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
12869 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
12870 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
12872 cat >>confdefs.h <<\EOF
12873 #define HAVE_LIBXT 1
12877 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
12884 if test $cf_have_X_LIBS = no ; then
12885 { echo "$as_me:12885: WARNING: Unable to successfully link X Toolkit library (-lXt) with
12886 test program. You will have to check and add the proper libraries by hand
12888 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
12889 test program. You will have to check and add the proper libraries by hand
12890 to makefile." >&2;}
12893 cf_x_athena_root=$cf_x_athena
12896 for cf_path in default \
12897 /usr/contrib/X11R6 \
12898 /usr/contrib/X11R5 \
12902 if test -z "$cf_x_athena_inc" ; then
12903 cf_save="$CPPFLAGS"
12904 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
12905 if test $cf_path != default ; then
12906 CPPFLAGS="$cf_save -I$cf_path/include"
12907 echo "$as_me:12907: checking for $cf_test in $cf_path" >&5
12908 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
12910 echo "$as_me:12910: checking for $cf_test" >&5
12911 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
12913 cat >conftest.$ac_ext <<_ACEOF
12914 #line 12914 "configure"
12915 #include "confdefs.h"
12917 #include <X11/Intrinsic.h>
12918 #include <$cf_test>
12927 rm -f conftest.$ac_objext
12928 if { (eval echo "$as_me:12928: \"$ac_compile\"") >&5
12929 (eval $ac_compile) 2>&5
12931 echo "$as_me:12931: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
12933 { ac_try='test -s conftest.$ac_objext'
12934 { (eval echo "$as_me:12934: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12937 echo "$as_me:12937: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12941 echo "$as_me: failed program was:" >&5
12942 cat conftest.$ac_ext >&5
12945 rm -f conftest.$ac_objext conftest.$ac_ext
12946 echo "$as_me:12946: result: $cf_result" >&5
12947 echo "${ECHO_T}$cf_result" >&6
12948 if test "$cf_result" = yes ; then
12949 cf_x_athena_inc=$cf_path
12952 CPPFLAGS="$cf_save"
12957 if test -z "$cf_x_athena_inc" ; then
12958 { echo "$as_me:12958: WARNING: Unable to successfully find Athena header files with test program" >&5
12959 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
12960 elif test "$cf_x_athena_inc" != default ; then
12961 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
12964 cf_x_athena_root=$cf_x_athena
12967 for cf_path in default \
12968 /usr/contrib/X11R6 \
12969 /usr/contrib/X11R5 \
12974 ${cf_x_athena_root} \
12975 ${cf_x_athena_root}7 \
12976 ${cf_x_athena_root}6
12979 "-l$cf_lib -lXmu" \
12980 "-l$cf_lib -lXpm -lXmu" \
12981 "-l${cf_lib}_s -lXmu_s"
12983 if test -z "$cf_x_athena_lib" ; then
12985 cf_test=XawSimpleMenuAddGlobalActions
12986 if test $cf_path != default ; then
12988 cf_add_libs="-L$cf_path/lib $cf_libs"
12989 # Filter out duplicates - this happens with badly-designed ".pc" files...
12990 for cf_add_1lib in $LIBS
12992 for cf_add_2lib in $cf_add_libs
12994 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13000 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13002 LIBS="$cf_add_libs"
13004 echo "$as_me:13004: checking for $cf_libs in $cf_path" >&5
13005 echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6
13008 cf_add_libs="$cf_libs"
13009 # Filter out duplicates - this happens with badly-designed ".pc" files...
13010 for cf_add_1lib in $LIBS
13012 for cf_add_2lib in $cf_add_libs
13014 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13020 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13022 LIBS="$cf_add_libs"
13024 echo "$as_me:13024: checking for $cf_test in $cf_libs" >&5
13025 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
13027 cat >conftest.$ac_ext <<_ACEOF
13028 #line 13028 "configure"
13029 #include "confdefs.h"
13031 #include <X11/Intrinsic.h>
13032 #include <X11/$cf_x_athena_root/SimpleMenu.h>
13038 $cf_test((XtAppContext) 0)
13043 rm -f conftest.$ac_objext conftest$ac_exeext
13044 if { (eval echo "$as_me:13044: \"$ac_link\"") >&5
13045 (eval $ac_link) 2>&5
13047 echo "$as_me:13047: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -s conftest$ac_exeext'
13050 { (eval echo "$as_me:13050: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13053 echo "$as_me:13053: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }; then
13057 echo "$as_me: failed program was:" >&5
13058 cat conftest.$ac_ext >&5
13061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13062 echo "$as_me:13062: result: $cf_result" >&5
13063 echo "${ECHO_T}$cf_result" >&6
13064 if test "$cf_result" = yes ; then
13065 cf_x_athena_lib="$cf_libs"
13071 test -n "$cf_x_athena_lib" && break
13075 if test -z "$cf_x_athena_lib" ; then
13076 { { echo "$as_me:13076: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
13077 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
13078 { (exit 1); exit 1; }; }
13081 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13083 cat >>confdefs.h <<EOF
13084 #define $cf_x_athena_LIBS 1
13089 if test -n "$ac_tool_prefix"; then
13090 for ac_prog in xcurses-config
13092 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13093 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13094 echo "$as_me:13094: checking for $ac_word" >&5
13095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13096 if test "${ac_cv_prog_XCURSES_CONFIG+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 if test -n "$XCURSES_CONFIG"; then
13100 ac_cv_prog_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test.
13102 ac_save_IFS=$IFS; IFS=$ac_path_separator
13104 for ac_dir in $ac_dummy; do
13106 test -z "$ac_dir" && ac_dir=.
13107 $as_executable_p "$ac_dir/$ac_word" || continue
13108 ac_cv_prog_XCURSES_CONFIG="$ac_tool_prefix$ac_prog"
13109 echo "$as_me:13109: found $ac_dir/$ac_word" >&5
13115 XCURSES_CONFIG=$ac_cv_prog_XCURSES_CONFIG
13116 if test -n "$XCURSES_CONFIG"; then
13117 echo "$as_me:13117: result: $XCURSES_CONFIG" >&5
13118 echo "${ECHO_T}$XCURSES_CONFIG" >&6
13120 echo "$as_me:13120: result: no" >&5
13121 echo "${ECHO_T}no" >&6
13124 test -n "$XCURSES_CONFIG" && break
13127 if test -z "$XCURSES_CONFIG"; then
13128 ac_ct_XCURSES_CONFIG=$XCURSES_CONFIG
13129 for ac_prog in xcurses-config
13131 # Extract the first word of "$ac_prog", so it can be a program name with args.
13132 set dummy $ac_prog; ac_word=$2
13133 echo "$as_me:13133: checking for $ac_word" >&5
13134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13135 if test "${ac_cv_prog_ac_ct_XCURSES_CONFIG+set}" = set; then
13136 echo $ECHO_N "(cached) $ECHO_C" >&6
13138 if test -n "$ac_ct_XCURSES_CONFIG"; then
13139 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_ct_XCURSES_CONFIG" # Let the user override the test.
13141 ac_save_IFS=$IFS; IFS=$ac_path_separator
13143 for ac_dir in $ac_dummy; do
13145 test -z "$ac_dir" && ac_dir=.
13146 $as_executable_p "$ac_dir/$ac_word" || continue
13147 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_prog"
13148 echo "$as_me:13148: found $ac_dir/$ac_word" >&5
13154 ac_ct_XCURSES_CONFIG=$ac_cv_prog_ac_ct_XCURSES_CONFIG
13155 if test -n "$ac_ct_XCURSES_CONFIG"; then
13156 echo "$as_me:13156: result: $ac_ct_XCURSES_CONFIG" >&5
13157 echo "${ECHO_T}$ac_ct_XCURSES_CONFIG" >&6
13159 echo "$as_me:13159: result: no" >&5
13160 echo "${ECHO_T}no" >&6
13163 test -n "$ac_ct_XCURSES_CONFIG" && break
13165 test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG="none"
13167 XCURSES_CONFIG=$ac_ct_XCURSES_CONFIG
13170 if test "$XCURSES_CONFIG" != none ; then
13172 CPPFLAGS="$CPPFLAGS `$XCURSES_CONFIG --cflags`"
13174 cf_add_libs="`$XCURSES_CONFIG --libs`"
13175 # Filter out duplicates - this happens with badly-designed ".pc" files...
13176 for cf_add_1lib in $LIBS
13178 for cf_add_2lib in $cf_add_libs
13180 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13186 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13188 LIBS="$cf_add_libs"
13190 cf_cv_lib_XCurses=yes
13194 LDFLAGS="$LDFLAGS $X_LIBS"
13196 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
13198 echo "${as_me:-configure}:13198: testing checking additions to CFLAGS ..." 1>&5
13200 cf_check_cflags="$CFLAGS"
13201 cf_check_cppflags="$CPPFLAGS"
13206 cf_new_extra_cppflags=
13208 for cf_add_cflags in $X_CFLAGS
13210 case $cf_fix_cppflags in
13212 case $cf_add_cflags in
13213 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13214 case $cf_add_cflags in
13216 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13218 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13219 && test -z "${cf_tst_cflags}" \
13220 && cf_fix_cppflags=yes
13222 if test $cf_fix_cppflags = yes ; then
13223 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13225 elif test "${cf_tst_cflags}" = "\"'" ; then
13226 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13231 case "$CPPFLAGS" in
13235 case $cf_add_cflags in
13237 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13239 CPPFLAGS=`echo "$CPPFLAGS" | \
13240 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13241 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13245 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13250 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13255 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13257 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13259 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13260 && test -z "${cf_tst_cflags}" \
13261 && cf_fix_cppflags=no
13266 if test -n "$cf_new_cflags" ; then
13267 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
13269 echo "${as_me:-configure}:13269: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
13271 CFLAGS="$CFLAGS $cf_new_cflags"
13274 if test -n "$cf_new_cppflags" ; then
13275 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
13277 echo "${as_me:-configure}:13277: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
13279 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13282 if test -n "$cf_new_extra_cppflags" ; then
13283 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
13285 echo "${as_me:-configure}:13285: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
13287 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13290 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
13291 cat >conftest.$ac_ext <<_ACEOF
13292 #line 13292 "configure"
13293 #include "confdefs.h"
13298 printf("Hello world");
13303 rm -f conftest.$ac_objext conftest$ac_exeext
13304 if { (eval echo "$as_me:13304: \"$ac_link\"") >&5
13305 (eval $ac_link) 2>&5
13307 echo "$as_me:13307: \$? = $ac_status" >&5
13308 (exit $ac_status); } &&
13309 { ac_try='test -s conftest$ac_exeext'
13310 { (eval echo "$as_me:13310: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13313 echo "$as_me:13313: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13317 echo "$as_me: failed program was:" >&5
13318 cat conftest.$ac_ext >&5
13319 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
13321 echo "${as_me:-configure}:13321: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
13323 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
13324 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
13326 echo "${as_me:-configure}:13326: testing but keeping change to \$CPPFLAGS ..." 1>&5
13329 CFLAGS="$cf_check_flags"
13331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13334 echo "$as_me:13334: checking for XOpenDisplay in -lX11" >&5
13335 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
13336 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 ac_check_lib_save_LIBS=$LIBS
13340 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
13341 cat >conftest.$ac_ext <<_ACEOF
13342 #line 13342 "configure"
13343 #include "confdefs.h"
13345 /* Override any gcc2 internal prototype to avoid an error. */
13349 /* We use char because int might match the return type of a gcc2
13350 builtin and then its argument prototype would still apply. */
13351 char XOpenDisplay ();
13360 rm -f conftest.$ac_objext conftest$ac_exeext
13361 if { (eval echo "$as_me:13361: \"$ac_link\"") >&5
13362 (eval $ac_link) 2>&5
13364 echo "$as_me:13364: \$? = $ac_status" >&5
13365 (exit $ac_status); } &&
13366 { ac_try='test -s conftest$ac_exeext'
13367 { (eval echo "$as_me:13367: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13370 echo "$as_me:13370: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13372 ac_cv_lib_X11_XOpenDisplay=yes
13374 echo "$as_me: failed program was:" >&5
13375 cat conftest.$ac_ext >&5
13376 ac_cv_lib_X11_XOpenDisplay=no
13378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13379 LIBS=$ac_check_lib_save_LIBS
13381 echo "$as_me:13381: result: $ac_cv_lib_X11_XOpenDisplay" >&5
13382 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
13383 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
13385 cf_add_libs="-lX11"
13386 # Filter out duplicates - this happens with badly-designed ".pc" files...
13387 for cf_add_1lib in $LIBS
13389 for cf_add_2lib in $cf_add_libs
13391 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13397 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13399 LIBS="$cf_add_libs"
13403 echo "$as_me:13403: checking for XCurses library" >&5
13404 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
13405 if test "${cf_cv_lib_XCurses+set}" = set; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13409 cf_add_libs="-lXCurses"
13410 # Filter out duplicates - this happens with badly-designed ".pc" files...
13411 for cf_add_1lib in $LIBS
13413 for cf_add_2lib in $cf_add_libs
13415 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13421 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13423 LIBS="$cf_add_libs"
13425 cat >conftest.$ac_ext <<_ACEOF
13426 #line 13426 "configure"
13427 #include "confdefs.h"
13429 #include <xcurses.h>
13430 char *XCursesProgramName = "test";
13440 rm -f conftest.$ac_objext conftest$ac_exeext
13441 if { (eval echo "$as_me:13441: \"$ac_link\"") >&5
13442 (eval $ac_link) 2>&5
13444 echo "$as_me:13444: \$? = $ac_status" >&5
13445 (exit $ac_status); } &&
13446 { ac_try='test -s conftest$ac_exeext'
13447 { (eval echo "$as_me:13447: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13450 echo "$as_me:13450: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13452 cf_cv_lib_XCurses=yes
13454 echo "$as_me: failed program was:" >&5
13455 cat conftest.$ac_ext >&5
13456 cf_cv_lib_XCurses=no
13458 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13461 echo "$as_me:13461: result: $cf_cv_lib_XCurses" >&5
13462 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
13466 if test $cf_cv_lib_XCurses = yes ; then
13468 cat >>confdefs.h <<\EOF
13472 cat >>confdefs.h <<\EOF
13476 echo "$as_me:13476: checking for xcurses.h" >&5
13477 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
13478 if test "${ac_cv_header_xcurses_h+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13481 cat >conftest.$ac_ext <<_ACEOF
13482 #line 13482 "configure"
13483 #include "confdefs.h"
13484 #include <xcurses.h>
13486 if { (eval echo "$as_me:13486: \"$ac_cpp conftest.$ac_ext\"") >&5
13487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13489 egrep -v '^ *\+' conftest.er1 >conftest.err
13491 cat conftest.err >&5
13492 echo "$as_me:13492: \$? = $ac_status" >&5
13493 (exit $ac_status); } >/dev/null; then
13494 if test -s conftest.err; then
13495 ac_cpp_err=$ac_c_preproc_warn_flag
13502 if test -z "$ac_cpp_err"; then
13503 ac_cv_header_xcurses_h=yes
13505 echo "$as_me: failed program was:" >&5
13506 cat conftest.$ac_ext >&5
13507 ac_cv_header_xcurses_h=no
13509 rm -f conftest.err conftest.$ac_ext
13511 echo "$as_me:13511: result: $ac_cv_header_xcurses_h" >&5
13512 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
13513 if test $ac_cv_header_xcurses_h = yes; then
13515 cat >>confdefs.h <<\EOF
13516 #define HAVE_XCURSES 1
13522 { { echo "$as_me:13522: error: Cannot link with XCurses" >&5
13523 echo "$as_me: error: Cannot link with XCurses" >&2;}
13524 { (exit 1); exit 1; }; }
13529 { { echo "$as_me:13529: error: unexpected screen-value: $cf_cv_screen" >&5
13530 echo "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;}
13531 { (exit 1); exit 1; }; }
13535 : ${cf_nculib_root:=$cf_cv_screen}
13536 as_ac_Lib=`echo "ac_cv_lib_$cf_nculib_root''__nc_init_pthreads" | $as_tr_sh`
13537 echo "$as_me:13537: checking for _nc_init_pthreads in -l$cf_nculib_root" >&5
13538 echo $ECHO_N "checking for _nc_init_pthreads in -l$cf_nculib_root... $ECHO_C" >&6
13539 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13542 ac_check_lib_save_LIBS=$LIBS
13543 LIBS="-l$cf_nculib_root $LIBS"
13544 cat >conftest.$ac_ext <<_ACEOF
13545 #line 13545 "configure"
13546 #include "confdefs.h"
13548 /* Override any gcc2 internal prototype to avoid an error. */
13552 /* We use char because int might match the return type of a gcc2
13553 builtin and then its argument prototype would still apply. */
13554 char _nc_init_pthreads ();
13558 _nc_init_pthreads ();
13563 rm -f conftest.$ac_objext conftest$ac_exeext
13564 if { (eval echo "$as_me:13564: \"$ac_link\"") >&5
13565 (eval $ac_link) 2>&5
13567 echo "$as_me:13567: \$? = $ac_status" >&5
13568 (exit $ac_status); } &&
13569 { ac_try='test -s conftest$ac_exeext'
13570 { (eval echo "$as_me:13570: \"$ac_try\"") >&5
13571 (eval $ac_try) 2>&5
13573 echo "$as_me:13573: \$? = $ac_status" >&5
13574 (exit $ac_status); }; }; then
13575 eval "$as_ac_Lib=yes"
13577 echo "$as_me: failed program was:" >&5
13578 cat conftest.$ac_ext >&5
13579 eval "$as_ac_Lib=no"
13581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13582 LIBS=$ac_check_lib_save_LIBS
13584 echo "$as_me:13584: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13585 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13586 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13587 cf_cv_ncurses_pthreads=yes
13589 cf_cv_ncurses_pthreads=no
13592 if test "$cf_cv_ncurses_pthreads" = yes
13595 cf_add_libs="-lpthread"
13596 # Filter out duplicates - this happens with badly-designed ".pc" files...
13597 for cf_add_1lib in $LIBS
13599 for cf_add_2lib in $cf_add_libs
13601 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13607 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13609 LIBS="$cf_add_libs"
13613 case $cf_cv_screen in
13615 cf_cv_libtype=`echo "$cf_cv_screen" | sed -e 's/^ncurses//'`
13619 echo "$as_me:13619: checking for NetBSD form.h" >&5
13620 echo $ECHO_N "checking for NetBSD form.h... $ECHO_C" >&6
13621 if test "${cf_cv_netbsd_form_h+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13625 cat >conftest.$ac_ext <<_ACEOF
13626 #line 13626 "configure"
13627 #include "confdefs.h"
13629 #include <${cf_cv_ncurses_header:-curses.h}>
13637 int y = current_field(form)->cursor_ypos;
13638 int x = current_field(form)->cursor_xpos;
13644 rm -f conftest.$ac_objext
13645 if { (eval echo "$as_me:13645: \"$ac_compile\"") >&5
13646 (eval $ac_compile) 2>&5
13648 echo "$as_me:13648: \$? = $ac_status" >&5
13649 (exit $ac_status); } &&
13650 { ac_try='test -s conftest.$ac_objext'
13651 { (eval echo "$as_me:13651: \"$ac_try\"") >&5
13652 (eval $ac_try) 2>&5
13654 echo "$as_me:13654: \$? = $ac_status" >&5
13655 (exit $ac_status); }; }; then
13656 cf_cv_netbsd_form_h=yes
13659 echo "$as_me: failed program was:" >&5
13660 cat conftest.$ac_ext >&5
13661 cf_cv_netbsd_form_h=no
13663 rm -f conftest.$ac_objext conftest.$ac_ext
13666 echo "$as_me:13666: result: $cf_cv_netbsd_form_h" >&5
13667 echo "${ECHO_T}$cf_cv_netbsd_form_h" >&6
13669 test "$cf_cv_netbsd_form_h" = yes &&
13670 cat >>confdefs.h <<\EOF
13671 #define HAVE_NETBSD_FORM_H 1
13674 echo "$as_me:13674: checking for NetBSD menu.h" >&5
13675 echo $ECHO_N "checking for NetBSD menu.h... $ECHO_C" >&6
13676 if test "${cf_cv_netbsd_menu_h+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 cat >conftest.$ac_ext <<_ACEOF
13681 #line 13681 "configure"
13682 #include "confdefs.h"
13684 #include <${cf_cv_ncurses_header:-curses.h}>
13692 int y = menu->max_item_width;
13698 rm -f conftest.$ac_objext
13699 if { (eval echo "$as_me:13699: \"$ac_compile\"") >&5
13700 (eval $ac_compile) 2>&5
13702 echo "$as_me:13702: \$? = $ac_status" >&5
13703 (exit $ac_status); } &&
13704 { ac_try='test -s conftest.$ac_objext'
13705 { (eval echo "$as_me:13705: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13708 echo "$as_me:13708: \$? = $ac_status" >&5
13709 (exit $ac_status); }; }; then
13710 cf_cv_netbsd_menu_h=yes
13713 echo "$as_me: failed program was:" >&5
13714 cat conftest.$ac_ext >&5
13715 cf_cv_netbsd_menu_h=no
13717 rm -f conftest.$ac_objext conftest.$ac_ext
13720 echo "$as_me:13720: result: $cf_cv_netbsd_menu_h" >&5
13721 echo "${ECHO_T}$cf_cv_netbsd_menu_h" >&6
13723 test "$cf_cv_netbsd_menu_h" = yes &&
13724 cat >>confdefs.h <<\EOF
13725 #define HAVE_NETBSD_MENU_H 1
13731 case $cf_cv_screen in
13735 # look for curses-related libraries
13737 as_ac_Lib=`echo "ac_cv_lib_panel$cf_cv_libtype''_new_panel" | $as_tr_sh`
13738 echo "$as_me:13738: checking for new_panel in -lpanel$cf_cv_libtype" >&5
13739 echo $ECHO_N "checking for new_panel in -lpanel$cf_cv_libtype... $ECHO_C" >&6
13740 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13741 echo $ECHO_N "(cached) $ECHO_C" >&6
13743 ac_check_lib_save_LIBS=$LIBS
13744 LIBS="-lpanel$cf_cv_libtype $LIBS"
13745 cat >conftest.$ac_ext <<_ACEOF
13746 #line 13746 "configure"
13747 #include "confdefs.h"
13749 /* Override any gcc2 internal prototype to avoid an error. */
13753 /* We use char because int might match the return type of a gcc2
13754 builtin and then its argument prototype would still apply. */
13764 rm -f conftest.$ac_objext conftest$ac_exeext
13765 if { (eval echo "$as_me:13765: \"$ac_link\"") >&5
13766 (eval $ac_link) 2>&5
13768 echo "$as_me:13768: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
13770 { ac_try='test -s conftest$ac_exeext'
13771 { (eval echo "$as_me:13771: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13774 echo "$as_me:13774: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13776 eval "$as_ac_Lib=yes"
13778 echo "$as_me: failed program was:" >&5
13779 cat conftest.$ac_ext >&5
13780 eval "$as_ac_Lib=no"
13782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13783 LIBS=$ac_check_lib_save_LIBS
13785 echo "$as_me:13785: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13786 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13787 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13789 cf_upper=`echo "have_libpanel" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13791 cf_add_libs="-lpanel$cf_cv_libtype"
13792 # Filter out duplicates - this happens with badly-designed ".pc" files...
13793 for cf_add_1lib in $LIBS
13795 for cf_add_2lib in $cf_add_libs
13797 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13803 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13805 LIBS="$cf_add_libs"
13807 cat >>confdefs.h <<EOF
13808 #define $cf_upper 1
13813 as_ac_Lib=`echo "ac_cv_lib_menu$cf_cv_libtype''_menu_driver" | $as_tr_sh`
13814 echo "$as_me:13814: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
13815 echo $ECHO_N "checking for menu_driver in -lmenu$cf_cv_libtype... $ECHO_C" >&6
13816 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 ac_check_lib_save_LIBS=$LIBS
13820 LIBS="-lmenu$cf_cv_libtype $LIBS"
13821 cat >conftest.$ac_ext <<_ACEOF
13822 #line 13822 "configure"
13823 #include "confdefs.h"
13825 /* Override any gcc2 internal prototype to avoid an error. */
13829 /* We use char because int might match the return type of a gcc2
13830 builtin and then its argument prototype would still apply. */
13831 char menu_driver ();
13840 rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (eval echo "$as_me:13841: \"$ac_link\"") >&5
13842 (eval $ac_link) 2>&5
13844 echo "$as_me:13844: \$? = $ac_status" >&5
13845 (exit $ac_status); } &&
13846 { ac_try='test -s conftest$ac_exeext'
13847 { (eval echo "$as_me:13847: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13850 echo "$as_me:13850: \$? = $ac_status" >&5
13851 (exit $ac_status); }; }; then
13852 eval "$as_ac_Lib=yes"
13854 echo "$as_me: failed program was:" >&5
13855 cat conftest.$ac_ext >&5
13856 eval "$as_ac_Lib=no"
13858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13859 LIBS=$ac_check_lib_save_LIBS
13861 echo "$as_me:13861: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13862 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13863 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13865 cf_upper=`echo "have_libmenu" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13867 cf_add_libs="-lmenu$cf_cv_libtype"
13868 # Filter out duplicates - this happens with badly-designed ".pc" files...
13869 for cf_add_1lib in $LIBS
13871 for cf_add_2lib in $cf_add_libs
13873 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13879 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13881 LIBS="$cf_add_libs"
13883 cat >>confdefs.h <<EOF
13884 #define $cf_upper 1
13889 as_ac_Lib=`echo "ac_cv_lib_form$cf_cv_libtype''_form_driver" | $as_tr_sh`
13890 echo "$as_me:13890: checking for form_driver in -lform$cf_cv_libtype" >&5
13891 echo $ECHO_N "checking for form_driver in -lform$cf_cv_libtype... $ECHO_C" >&6
13892 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13893 echo $ECHO_N "(cached) $ECHO_C" >&6
13895 ac_check_lib_save_LIBS=$LIBS
13896 LIBS="-lform$cf_cv_libtype $LIBS"
13897 cat >conftest.$ac_ext <<_ACEOF
13898 #line 13898 "configure"
13899 #include "confdefs.h"
13901 /* Override any gcc2 internal prototype to avoid an error. */
13905 /* We use char because int might match the return type of a gcc2
13906 builtin and then its argument prototype would still apply. */
13907 char form_driver ();
13916 rm -f conftest.$ac_objext conftest$ac_exeext
13917 if { (eval echo "$as_me:13917: \"$ac_link\"") >&5
13918 (eval $ac_link) 2>&5
13920 echo "$as_me:13920: \$? = $ac_status" >&5
13921 (exit $ac_status); } &&
13922 { ac_try='test -s conftest$ac_exeext'
13923 { (eval echo "$as_me:13923: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13926 echo "$as_me:13926: \$? = $ac_status" >&5
13927 (exit $ac_status); }; }; then
13928 eval "$as_ac_Lib=yes"
13930 echo "$as_me: failed program was:" >&5
13931 cat conftest.$ac_ext >&5
13932 eval "$as_ac_Lib=no"
13934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13935 LIBS=$ac_check_lib_save_LIBS
13937 echo "$as_me:13937: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13938 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13939 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13941 cf_upper=`echo "have_libform" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13943 cf_add_libs="-lform$cf_cv_libtype"
13944 # Filter out duplicates - this happens with badly-designed ".pc" files...
13945 for cf_add_1lib in $LIBS
13947 for cf_add_2lib in $cf_add_libs
13949 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13955 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13957 LIBS="$cf_add_libs"
13959 cat >>confdefs.h <<EOF
13960 #define $cf_upper 1
13965 # look for curses-related headers
13976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13977 echo "$as_me:13977: checking for $ac_header" >&5
13978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 cat >conftest.$ac_ext <<_ACEOF
13983 #line 13983 "configure"
13984 #include "confdefs.h"
13985 #include <$ac_header>
13987 if { (eval echo "$as_me:13987: \"$ac_cpp conftest.$ac_ext\"") >&5
13988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13990 egrep -v '^ *\+' conftest.er1 >conftest.err
13992 cat conftest.err >&5
13993 echo "$as_me:13993: \$? = $ac_status" >&5
13994 (exit $ac_status); } >/dev/null; then
13995 if test -s conftest.err; then
13996 ac_cpp_err=$ac_c_preproc_warn_flag
14003 if test -z "$ac_cpp_err"; then
14004 eval "$as_ac_Header=yes"
14006 echo "$as_me: failed program was:" >&5
14007 cat conftest.$ac_ext >&5
14008 eval "$as_ac_Header=no"
14010 rm -f conftest.err conftest.$ac_ext
14012 echo "$as_me:14012: result: `eval echo '${'$as_ac_Header'}'`" >&5
14013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14015 cat >>confdefs.h <<EOF
14016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14025 echo "$as_me:14025: checking for ANSI C header files" >&5
14026 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14027 if test "${ac_cv_header_stdc+set}" = set; then
14028 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 cat >conftest.$ac_ext <<_ACEOF
14031 #line 14031 "configure"
14032 #include "confdefs.h"
14033 #include <stdlib.h>
14034 #include <stdarg.h>
14035 #include <string.h>
14039 if { (eval echo "$as_me:14039: \"$ac_cpp conftest.$ac_ext\"") >&5
14040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14042 egrep -v '^ *\+' conftest.er1 >conftest.err
14044 cat conftest.err >&5
14045 echo "$as_me:14045: \$? = $ac_status" >&5
14046 (exit $ac_status); } >/dev/null; then
14047 if test -s conftest.err; then
14048 ac_cpp_err=$ac_c_preproc_warn_flag
14055 if test -z "$ac_cpp_err"; then
14056 ac_cv_header_stdc=yes
14058 echo "$as_me: failed program was:" >&5
14059 cat conftest.$ac_ext >&5
14060 ac_cv_header_stdc=no
14062 rm -f conftest.err conftest.$ac_ext
14064 if test $ac_cv_header_stdc = yes; then
14065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14066 cat >conftest.$ac_ext <<_ACEOF
14067 #line 14067 "configure"
14068 #include "confdefs.h"
14069 #include <string.h>
14072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14073 egrep "memchr" >/dev/null 2>&1; then
14076 ac_cv_header_stdc=no
14082 if test $ac_cv_header_stdc = yes; then
14083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14084 cat >conftest.$ac_ext <<_ACEOF
14085 #line 14085 "configure"
14086 #include "confdefs.h"
14087 #include <stdlib.h>
14090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14091 egrep "free" >/dev/null 2>&1; then
14094 ac_cv_header_stdc=no
14100 if test $ac_cv_header_stdc = yes; then
14101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14102 if test "$cross_compiling" = yes; then
14105 cat >conftest.$ac_ext <<_ACEOF
14106 #line 14106 "configure"
14107 #include "confdefs.h"
14109 #if ((' ' & 0x0FF) == 0x020)
14110 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14111 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14113 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14114 || ('j' <= (c) && (c) <= 'r') \
14115 || ('s' <= (c) && (c) <= 'z'))
14116 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14119 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14124 for (i = 0; i < 256; i++)
14125 if (XOR (islower (i), ISLOWER (i))
14126 || toupper (i) != TOUPPER (i))
14127 $ac_main_return(2);
14128 $ac_main_return (0);
14131 rm -f conftest$ac_exeext
14132 if { (eval echo "$as_me:14132: \"$ac_link\"") >&5
14133 (eval $ac_link) 2>&5
14135 echo "$as_me:14135: \$? = $ac_status" >&5
14136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14137 { (eval echo "$as_me:14137: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14140 echo "$as_me:14140: \$? = $ac_status" >&5
14141 (exit $ac_status); }; }; then
14144 echo "$as_me: program exited with status $ac_status" >&5
14145 echo "$as_me: failed program was:" >&5
14146 cat conftest.$ac_ext >&5
14147 ac_cv_header_stdc=no
14149 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14153 echo "$as_me:14153: result: $ac_cv_header_stdc" >&5
14154 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14155 if test $ac_cv_header_stdc = yes; then
14157 cat >>confdefs.h <<\EOF
14158 #define STDC_HEADERS 1
14163 echo "$as_me:14163: checking whether time.h and sys/time.h may both be included" >&5
14164 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14165 if test "${ac_cv_header_time+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14168 cat >conftest.$ac_ext <<_ACEOF
14169 #line 14169 "configure"
14170 #include "confdefs.h"
14171 #include <sys/types.h>
14172 #include <sys/time.h>
14178 if ((struct tm *) 0)
14184 rm -f conftest.$ac_objext
14185 if { (eval echo "$as_me:14185: \"$ac_compile\"") >&5
14186 (eval $ac_compile) 2>&5
14188 echo "$as_me:14188: \$? = $ac_status" >&5
14189 (exit $ac_status); } &&
14190 { ac_try='test -s conftest.$ac_objext'
14191 { (eval echo "$as_me:14191: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14194 echo "$as_me:14194: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 ac_cv_header_time=yes
14198 echo "$as_me: failed program was:" >&5
14199 cat conftest.$ac_ext >&5
14200 ac_cv_header_time=no
14202 rm -f conftest.$ac_objext conftest.$ac_ext
14204 echo "$as_me:14204: result: $ac_cv_header_time" >&5
14205 echo "${ECHO_T}$ac_cv_header_time" >&6
14206 if test $ac_cv_header_time = yes; then
14208 cat >>confdefs.h <<\EOF
14209 #define TIME_WITH_SYS_TIME 1
14226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14227 echo "$as_me:14227: checking for $ac_header" >&5
14228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14232 cat >conftest.$ac_ext <<_ACEOF
14233 #line 14233 "configure"
14234 #include "confdefs.h"
14235 #include <$ac_header>
14237 if { (eval echo "$as_me:14237: \"$ac_cpp conftest.$ac_ext\"") >&5
14238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14240 egrep -v '^ *\+' conftest.er1 >conftest.err
14242 cat conftest.err >&5
14243 echo "$as_me:14243: \$? = $ac_status" >&5
14244 (exit $ac_status); } >/dev/null; then
14245 if test -s conftest.err; then
14246 ac_cpp_err=$ac_c_preproc_warn_flag
14253 if test -z "$ac_cpp_err"; then
14254 eval "$as_ac_Header=yes"
14256 echo "$as_me: failed program was:" >&5
14257 cat conftest.$ac_ext >&5
14258 eval "$as_ac_Header=no"
14260 rm -f conftest.err conftest.$ac_ext
14262 echo "$as_me:14262: result: `eval echo '${'$as_ac_Header'}'`" >&5
14263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14265 cat >>confdefs.h <<EOF
14266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14272 for ac_header in unistd.h getopt.h
14274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14275 echo "$as_me:14275: checking for $ac_header" >&5
14276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14280 cat >conftest.$ac_ext <<_ACEOF
14281 #line 14281 "configure"
14282 #include "confdefs.h"
14283 #include <$ac_header>
14285 if { (eval echo "$as_me:14285: \"$ac_cpp conftest.$ac_ext\"") >&5
14286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14288 egrep -v '^ *\+' conftest.er1 >conftest.err
14290 cat conftest.err >&5
14291 echo "$as_me:14291: \$? = $ac_status" >&5
14292 (exit $ac_status); } >/dev/null; then
14293 if test -s conftest.err; then
14294 ac_cpp_err=$ac_c_preproc_warn_flag
14301 if test -z "$ac_cpp_err"; then
14302 eval "$as_ac_Header=yes"
14304 echo "$as_me: failed program was:" >&5
14305 cat conftest.$ac_ext >&5
14306 eval "$as_ac_Header=no"
14308 rm -f conftest.err conftest.$ac_ext
14310 echo "$as_me:14310: result: `eval echo '${'$as_ac_Header'}'`" >&5
14311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14313 cat >>confdefs.h <<EOF
14314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14320 echo "$as_me:14320: checking for header declaring getopt variables" >&5
14321 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
14322 if test "${cf_cv_getopt_header+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 cf_cv_getopt_header=none
14327 for cf_header in stdio.h stdlib.h unistd.h getopt.h
14329 cat >conftest.$ac_ext <<_ACEOF
14330 #line 14330 "configure"
14331 #include "confdefs.h"
14333 #include <$cf_header>
14337 int x = optind; char *y = optarg
14342 rm -f conftest.$ac_objext
14343 if { (eval echo "$as_me:14343: \"$ac_compile\"") >&5
14344 (eval $ac_compile) 2>&5
14346 echo "$as_me:14346: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try='test -s conftest.$ac_objext'
14349 { (eval echo "$as_me:14349: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14352 echo "$as_me:14352: \$? = $ac_status" >&5
14353 (exit $ac_status); }; }; then
14354 cf_cv_getopt_header=$cf_header
14357 echo "$as_me: failed program was:" >&5
14358 cat conftest.$ac_ext >&5
14360 rm -f conftest.$ac_objext conftest.$ac_ext
14364 echo "$as_me:14364: result: $cf_cv_getopt_header" >&5
14365 echo "${ECHO_T}$cf_cv_getopt_header" >&6
14366 if test $cf_cv_getopt_header != none ; then
14368 cat >>confdefs.h <<\EOF
14369 #define HAVE_GETOPT_HEADER 1
14373 if test $cf_cv_getopt_header = getopt.h ; then
14375 cat >>confdefs.h <<\EOF
14376 #define NEED_GETOPT_H 1
14386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14387 echo "$as_me:14387: checking for $ac_func" >&5
14388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14389 if eval "test \"\${$as_ac_var+set}\" = set"; then
14390 echo $ECHO_N "(cached) $ECHO_C" >&6
14392 cat >conftest.$ac_ext <<_ACEOF
14393 #line 14393 "configure"
14394 #include "confdefs.h"
14395 /* System header to define __stub macros and hopefully few prototypes,
14396 which can conflict with char $ac_func (); below. */
14397 #include <assert.h>
14398 /* Override any gcc2 internal prototype to avoid an error. */
14402 /* We use char because int might match the return type of a gcc2
14403 builtin and then its argument prototype would still apply. */
14410 /* The GNU C library defines this for functions which it implements
14411 to always fail with ENOSYS. Some functions are actually named
14412 something starting with __ and the normal name is an alias. */
14413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14416 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14423 rm -f conftest.$ac_objext conftest$ac_exeext
14424 if { (eval echo "$as_me:14424: \"$ac_link\"") >&5
14425 (eval $ac_link) 2>&5
14427 echo "$as_me:14427: \$? = $ac_status" >&5
14428 (exit $ac_status); } &&
14429 { ac_try='test -s conftest$ac_exeext'
14430 { (eval echo "$as_me:14430: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14433 echo "$as_me:14433: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }; then
14435 eval "$as_ac_var=yes"
14437 echo "$as_me: failed program was:" >&5
14438 cat conftest.$ac_ext >&5
14439 eval "$as_ac_var=no"
14441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14443 echo "$as_me:14443: result: `eval echo '${'$as_ac_var'}'`" >&5
14444 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14445 if test `eval echo '${'$as_ac_var'}'` = yes; then
14446 cat >>confdefs.h <<EOF
14447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14453 if test "x$ac_cv_func_getopt" = xno; then
14454 { { echo "$as_me:14454: error: getopt is required for building programs" >&5
14455 echo "$as_me: error: getopt is required for building programs" >&2;}
14456 { (exit 1); exit 1; }; }
14459 if test "$cf_enable_widec" = yes; then
14472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14473 echo "$as_me:14473: checking for $ac_func" >&5
14474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14475 if eval "test \"\${$as_ac_var+set}\" = set"; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14478 cat >conftest.$ac_ext <<_ACEOF
14479 #line 14479 "configure"
14480 #include "confdefs.h"
14481 /* System header to define __stub macros and hopefully few prototypes,
14482 which can conflict with char $ac_func (); below. */
14483 #include <assert.h>
14484 /* Override any gcc2 internal prototype to avoid an error. */
14488 /* We use char because int might match the return type of a gcc2
14489 builtin and then its argument prototype would still apply. */
14496 /* The GNU C library defines this for functions which it implements
14497 to always fail with ENOSYS. Some functions are actually named
14498 something starting with __ and the normal name is an alias. */
14499 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14502 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14509 rm -f conftest.$ac_objext conftest$ac_exeext
14510 if { (eval echo "$as_me:14510: \"$ac_link\"") >&5
14511 (eval $ac_link) 2>&5
14513 echo "$as_me:14513: \$? = $ac_status" >&5
14514 (exit $ac_status); } &&
14515 { ac_try='test -s conftest$ac_exeext'
14516 { (eval echo "$as_me:14516: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14519 echo "$as_me:14519: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521 eval "$as_ac_var=yes"
14523 echo "$as_me: failed program was:" >&5
14524 cat conftest.$ac_ext >&5
14525 eval "$as_ac_var=no"
14527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14529 echo "$as_me:14529: result: `eval echo '${'$as_ac_var'}'`" >&5
14530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14531 if test `eval echo '${'$as_ac_var'}'` = yes; then
14532 cat >>confdefs.h <<EOF
14533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14541 echo "$as_me:14541: checking definition to turn on extended curses functions" >&5
14542 echo $ECHO_N "checking definition to turn on extended curses functions... $ECHO_C" >&6
14543 if test "${cf_cv_need_xopen_extension+set}" = set; then
14544 echo $ECHO_N "(cached) $ECHO_C" >&6
14547 cf_cv_need_xopen_extension=unknown
14548 cat >conftest.$ac_ext <<_ACEOF
14549 #line 14549 "configure"
14550 #include "confdefs.h"
14552 #include <stdlib.h>
14553 #include <${cf_cv_ncurses_header:-curses.h}>
14558 #if defined(NCURSES_VERSION_PATCH)
14559 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
14563 #ifdef NCURSES_VERSION
14565 int check2 = curs_set((int)sizeof(check));
14567 long x = winnstr(stdscr, "", 0);
14569 getbegyx(stdscr, y1, x1)
14574 rm -f conftest.$ac_objext conftest$ac_exeext
14575 if { (eval echo "$as_me:14575: \"$ac_link\"") >&5
14576 (eval $ac_link) 2>&5
14578 echo "$as_me:14578: \$? = $ac_status" >&5
14579 (exit $ac_status); } &&
14580 { ac_try='test -s conftest$ac_exeext'
14581 { (eval echo "$as_me:14581: \"$ac_try\"") >&5
14582 (eval $ac_try) 2>&5
14584 echo "$as_me:14584: \$? = $ac_status" >&5
14585 (exit $ac_status); }; }; then
14586 cf_cv_need_xopen_extension=none
14588 echo "$as_me: failed program was:" >&5
14589 cat conftest.$ac_ext >&5
14591 for cf_try_xopen_extension in _XOPEN_SOURCE_EXTENDED NCURSES_WIDECHAR
14593 cat >conftest.$ac_ext <<_ACEOF
14594 #line 14594 "configure"
14595 #include "confdefs.h"
14597 #define $cf_try_xopen_extension 1
14598 #include <stdlib.h>
14599 #include <${cf_cv_ncurses_header:-curses.h}>
14604 #ifdef NCURSES_VERSION
14606 int check2 = curs_set((int)sizeof(check));
14608 long x = winnstr(stdscr, "", 0);
14610 getbegyx(stdscr, y1, x1)
14615 rm -f conftest.$ac_objext conftest$ac_exeext
14616 if { (eval echo "$as_me:14616: \"$ac_link\"") >&5
14617 (eval $ac_link) 2>&5
14619 echo "$as_me:14619: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
14621 { ac_try='test -s conftest$ac_exeext'
14622 { (eval echo "$as_me:14622: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14625 echo "$as_me:14625: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14627 cf_cv_need_xopen_extension=$cf_try_xopen_extension; break
14629 echo "$as_me: failed program was:" >&5
14630 cat conftest.$ac_ext >&5
14632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14639 echo "$as_me:14639: result: $cf_cv_need_xopen_extension" >&5
14640 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
14642 case $cf_cv_need_xopen_extension in
14644 CPPFLAGS="$CPPFLAGS -D$cf_cv_need_xopen_extension"
14648 echo "$as_me:14648: checking for term.h" >&5
14649 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
14650 if test "${cf_cv_term_header+set}" = set; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14654 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
14655 # for <term.h> if we do not find the variant.
14657 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
14659 case ${cf_cv_ncurses_header:-curses.h} in
14661 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
14662 cf_header_list="$cf_header_item $cf_header_list"
14666 for cf_header in $cf_header_list
14668 cat >conftest.$ac_ext <<_ACEOF
14669 #line 14669 "configure"
14670 #include "confdefs.h"
14672 #include <${cf_cv_ncurses_header:-curses.h}>
14673 #include <${cf_header}>
14682 rm -f conftest.$ac_objext
14683 if { (eval echo "$as_me:14683: \"$ac_compile\"") >&5
14684 (eval $ac_compile) 2>&5
14686 echo "$as_me:14686: \$? = $ac_status" >&5
14687 (exit $ac_status); } &&
14688 { ac_try='test -s conftest.$ac_objext'
14689 { (eval echo "$as_me:14689: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14692 echo "$as_me:14692: \$? = $ac_status" >&5
14693 (exit $ac_status); }; }; then
14694 cf_cv_term_header=$cf_header
14697 echo "$as_me: failed program was:" >&5
14698 cat conftest.$ac_ext >&5
14699 cf_cv_term_header=no
14701 rm -f conftest.$ac_objext conftest.$ac_ext
14704 case $cf_cv_term_header in
14706 # If curses is ncurses, some packagers still mess it up by trying to make
14707 # us use GNU termcap. This handles the most common case.
14708 for cf_header in ncurses/term.h ncursesw/term.h
14710 cat >conftest.$ac_ext <<_ACEOF
14711 #line 14711 "configure"
14712 #include "confdefs.h"
14714 #include <${cf_cv_ncurses_header:-curses.h}>
14715 #ifdef NCURSES_VERSION
14716 #include <${cf_header}>
14728 rm -f conftest.$ac_objext
14729 if { (eval echo "$as_me:14729: \"$ac_compile\"") >&5
14730 (eval $ac_compile) 2>&5
14732 echo "$as_me:14732: \$? = $ac_status" >&5
14733 (exit $ac_status); } &&
14734 { ac_try='test -s conftest.$ac_objext'
14735 { (eval echo "$as_me:14735: \"$ac_try\"") >&5
14736 (eval $ac_try) 2>&5
14738 echo "$as_me:14738: \$? = $ac_status" >&5
14739 (exit $ac_status); }; }; then
14740 cf_cv_term_header=$cf_header
14743 echo "$as_me: failed program was:" >&5
14744 cat conftest.$ac_ext >&5
14745 cf_cv_term_header=no
14747 rm -f conftest.$ac_objext conftest.$ac_ext
14753 echo "$as_me:14753: result: $cf_cv_term_header" >&5
14754 echo "${ECHO_T}$cf_cv_term_header" >&6
14756 case $cf_cv_term_header in
14759 cat >>confdefs.h <<\EOF
14760 #define HAVE_TERM_H 1
14766 cat >>confdefs.h <<\EOF
14767 #define HAVE_NCURSES_TERM_H 1
14773 cat >>confdefs.h <<\EOF
14774 #define HAVE_NCURSESW_TERM_H 1
14780 echo "$as_me:14780: checking for unctrl.h" >&5
14781 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
14782 if test "${cf_cv_unctrl_header+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
14787 # for <unctrl.h> if we do not find the variant.
14789 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
14791 case ${cf_cv_ncurses_header:-curses.h} in
14793 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
14794 cf_header_list="$cf_header_item $cf_header_list"
14798 for cf_header in $cf_header_list
14800 cat >conftest.$ac_ext <<_ACEOF
14801 #line 14801 "configure"
14802 #include "confdefs.h"
14804 #include <${cf_cv_ncurses_header:-curses.h}>
14805 #include <${cf_header}>
14814 rm -f conftest.$ac_objext
14815 if { (eval echo "$as_me:14815: \"$ac_compile\"") >&5
14816 (eval $ac_compile) 2>&5
14818 echo "$as_me:14818: \$? = $ac_status" >&5
14819 (exit $ac_status); } &&
14820 { ac_try='test -s conftest.$ac_objext'
14821 { (eval echo "$as_me:14821: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14824 echo "$as_me:14824: \$? = $ac_status" >&5
14825 (exit $ac_status); }; }; then
14826 cf_cv_unctrl_header=$cf_header
14829 echo "$as_me: failed program was:" >&5
14830 cat conftest.$ac_ext >&5
14831 cf_cv_unctrl_header=no
14833 rm -f conftest.$ac_objext conftest.$ac_ext
14837 echo "$as_me:14837: result: $cf_cv_unctrl_header" >&5
14838 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
14840 case $cf_cv_unctrl_header in
14842 { echo "$as_me:14842: WARNING: unctrl.h header not found" >&5
14843 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
14847 case $cf_cv_unctrl_header in
14850 cat >>confdefs.h <<\EOF
14851 #define HAVE_UNCTRL_H 1
14857 cat >>confdefs.h <<\EOF
14858 #define HAVE_NCURSES_UNCTRL_H 1
14862 (ncursesw/unctrl.h)
14864 cat >>confdefs.h <<\EOF
14865 #define HAVE_NCURSESW_UNCTRL_H 1
14872 assume_default_colors \
14899 use_default_colors \
14901 use_extended_names \
14915 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14917 echo "$as_me:14917: checking for ${cf_func}" >&5
14918 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
14920 echo "${as_me:-configure}:14920: testing ${cf_func} ..." 1>&5
14922 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
14923 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 eval cf_result='$ac_cv_func_'$cf_func
14927 if test ".$cf_result" != ".no"; then
14928 cat >conftest.$ac_ext <<_ACEOF
14929 #line 14929 "configure"
14930 #include "confdefs.h"
14932 #ifdef HAVE_XCURSES
14933 #include <xcurses.h>
14934 char * XCursesProgramName = "test";
14936 #include <${cf_cv_ncurses_header:-curses.h}>
14937 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14938 #include <ncursesw/term.h>
14939 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14940 #include <ncurses/term.h>
14941 #elif defined(HAVE_TERM_H)
14951 long foo = (long)(&${cf_func});
14952 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
14953 if (foo + 1234 > 5678)
14954 ${cf_cv_main_return:-return}(foo);
14961 rm -f conftest.$ac_objext conftest$ac_exeext
14962 if { (eval echo "$as_me:14962: \"$ac_link\"") >&5
14963 (eval $ac_link) 2>&5
14965 echo "$as_me:14965: \$? = $ac_status" >&5
14966 (exit $ac_status); } &&
14967 { ac_try='test -s conftest$ac_exeext'
14968 { (eval echo "$as_me:14968: \"$ac_try\"") >&5
14969 (eval $ac_try) 2>&5
14971 echo "$as_me:14971: \$? = $ac_status" >&5
14972 (exit $ac_status); }; }; then
14975 echo "$as_me: failed program was:" >&5
14976 cat conftest.$ac_ext >&5
14979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14981 eval 'cf_cv_func_'$cf_func'=$cf_result'
14985 # use the computed/retrieved cache-value:
14986 eval 'cf_result=$cf_cv_func_'$cf_func
14987 echo "$as_me:14987: result: $cf_result" >&5
14988 echo "${ECHO_T}$cf_result" >&6
14989 if test $cf_result != no; then
14990 cat >>confdefs.h <<EOF
14991 #define HAVE_${cf_tr_func} 1
14997 for cf_func in tputs
15000 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15002 echo "$as_me:15002: checking for ${cf_func}" >&5
15003 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
15005 echo "${as_me:-configure}:15005: testing ${cf_func} ..." 1>&5
15007 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 eval cf_result='$ac_cv_func_'$cf_func
15012 if test ".$cf_result" != ".no"; then
15013 cat >conftest.$ac_ext <<_ACEOF
15014 #line 15014 "configure"
15015 #include "confdefs.h"
15017 #ifdef HAVE_XCURSES
15018 #include <xcurses.h>
15019 char * XCursesProgramName = "test";
15021 #include <${cf_cv_ncurses_header:-curses.h}>
15022 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15023 #include <ncursesw/term.h>
15024 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15025 #include <ncurses/term.h>
15026 #elif defined(HAVE_TERM_H)
15036 long foo = (long)(&${cf_func});
15037 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
15038 if (foo + 1234 > 5678)
15039 ${cf_cv_main_return:-return}(foo);
15046 rm -f conftest.$ac_objext conftest$ac_exeext
15047 if { (eval echo "$as_me:15047: \"$ac_link\"") >&5
15048 (eval $ac_link) 2>&5
15050 echo "$as_me:15050: \$? = $ac_status" >&5
15051 (exit $ac_status); } &&
15052 { ac_try='test -s conftest$ac_exeext'
15053 { (eval echo "$as_me:15053: \"$ac_try\"") >&5
15054 (eval $ac_try) 2>&5
15056 echo "$as_me:15056: \$? = $ac_status" >&5
15057 (exit $ac_status); }; }; then
15060 echo "$as_me: failed program was:" >&5
15061 cat conftest.$ac_ext >&5
15064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15066 eval 'cf_cv_func_'$cf_func'=$cf_result'
15070 # use the computed/retrieved cache-value:
15071 eval 'cf_result=$cf_cv_func_'$cf_func
15072 echo "$as_me:15072: result: $cf_result" >&5
15073 echo "${ECHO_T}$cf_result" >&6
15074 if test $cf_result != no; then
15075 cat >>confdefs.h <<EOF
15076 #define HAVE_${cf_tr_func} 1
15082 if test x$cf_cv_func_tputs = xyes
15085 for cf_arg in int char
15087 for cf_ret in int void
15089 if test $cf_ret = void
15091 cf_return="/* nothing */"
15093 cf_return="return value"
15095 cat >conftest.$ac_ext <<_ACEOF
15096 #line 15096 "configure"
15097 #include "confdefs.h"
15099 #include <${cf_cv_ncurses_header:-curses.h}>
15100 #include <$cf_cv_term_header>
15102 static $cf_ret outc($cf_arg value) { $cf_return; }
15108 tputs("hello", 0, outc);
15109 ${cf_cv_main_return:-return}(0);
15115 rm -f conftest.$ac_objext
15116 if { (eval echo "$as_me:15116: \"$ac_compile\"") >&5
15117 (eval $ac_compile) 2>&5
15119 echo "$as_me:15119: \$? = $ac_status" >&5
15120 (exit $ac_status); } &&
15121 { ac_try='test -s conftest.$ac_objext'
15122 { (eval echo "$as_me:15122: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15125 echo "$as_me:15125: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15128 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
15130 echo "${as_me:-configure}:15130: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
15132 cat >>confdefs.h <<EOF
15133 #define TPUTS_ARG $cf_arg
15134 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
15135 #define TPUTS_RETURN(value) $cf_return
15141 echo "$as_me: failed program was:" >&5
15142 cat conftest.$ac_ext >&5
15144 rm -f conftest.$ac_objext conftest.$ac_ext
15146 test $cf_done = yes && break
15150 echo "$as_me:15150: checking for ncurses extended functions" >&5
15151 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
15152 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 cat >conftest.$ac_ext <<_ACEOF
15157 #line 15157 "configure"
15158 #include "confdefs.h"
15160 #include <${cf_cv_ncurses_header:-curses.h}>
15165 int x = NCURSES_EXT_FUNCS
15171 rm -f conftest.$ac_objext
15172 if { (eval echo "$as_me:15172: \"$ac_compile\"") >&5
15173 (eval $ac_compile) 2>&5
15175 echo "$as_me:15175: \$? = $ac_status" >&5
15176 (exit $ac_status); } &&
15177 { ac_try='test -s conftest.$ac_objext'
15178 { (eval echo "$as_me:15178: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15181 echo "$as_me:15181: \$? = $ac_status" >&5
15182 (exit $ac_status); }; }; then
15183 cf_cv_ncurses_ext_funcs=defined
15185 echo "$as_me: failed program was:" >&5
15186 cat conftest.$ac_ext >&5
15188 cat >conftest.$ac_ext <<_ACEOF
15189 #line 15189 "configure"
15190 #include "confdefs.h"
15192 #include <${cf_cv_ncurses_header:-curses.h}>
15197 (void) assume_default_colors (0, 0);
15198 (void) curses_version ();
15199 (void) define_key (0, 0);
15200 (void) is_term_resized (0, 0);
15201 (void) key_defined (0);
15202 (void) keybound (0, 0);
15203 (void) keyok (0, 0);
15204 (void) resize_term (0, 0);
15205 (void) resizeterm (0, 0);
15206 (void) use_default_colors ();
15207 (void) use_extended_names (0);
15208 (void) wresize (0, 0, 0);
15213 rm -f conftest.$ac_objext conftest$ac_exeext
15214 if { (eval echo "$as_me:15214: \"$ac_link\"") >&5
15215 (eval $ac_link) 2>&5
15217 echo "$as_me:15217: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
15219 { ac_try='test -s conftest$ac_exeext'
15220 { (eval echo "$as_me:15220: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15223 echo "$as_me:15223: \$? = $ac_status" >&5
15224 (exit $ac_status); }; }; then
15225 cf_cv_ncurses_ext_funcs=yes
15227 echo "$as_me: failed program was:" >&5
15228 cat conftest.$ac_ext >&5
15229 cf_cv_ncurses_ext_funcs=no
15231 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15234 rm -f conftest.$ac_objext conftest.$ac_ext
15237 echo "$as_me:15237: result: $cf_cv_ncurses_ext_funcs" >&5
15238 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
15239 test "$cf_cv_ncurses_ext_funcs" = yes &&
15240 cat >>confdefs.h <<\EOF
15241 #define NCURSES_EXT_FUNCS 1
15244 if test "$cf_enable_widec" = yes
15246 # workaround for systems with ncurses before 20111029, due to change of
15247 # feature test macro from _XPG5 to _XOPEN_SOURCE
15248 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
15251 echo "$as_me:15251: checking if _XPG5 should be defined to enable wide-characters" >&5
15252 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
15254 cat >conftest.$ac_ext <<_ACEOF
15255 #line 15255 "configure"
15256 #include "confdefs.h"
15258 #include <${cf_cv_ncurses_header:-curses.h}>
15267 rm -f conftest.$ac_objext
15268 if { (eval echo "$as_me:15268: \"$ac_compile\"") >&5
15269 (eval $ac_compile) 2>&5
15271 echo "$as_me:15271: \$? = $ac_status" >&5
15272 (exit $ac_status); } &&
15273 { ac_try='test -s conftest.$ac_objext'
15274 { (eval echo "$as_me:15274: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15277 echo "$as_me:15277: \$? = $ac_status" >&5
15278 (exit $ac_status); }; }; then
15281 echo "$as_me: failed program was:" >&5
15282 cat conftest.$ac_ext >&5
15283 cf_save_cppflags="$CPPFLAGS"
15284 CPPFLAGS="$CPPFLAGS -D_XPG5"
15285 cat >conftest.$ac_ext <<_ACEOF
15286 #line 15286 "configure"
15287 #include "confdefs.h"
15289 #include <${cf_cv_ncurses_header:-curses.h}>
15298 rm -f conftest.$ac_objext
15299 if { (eval echo "$as_me:15299: \"$ac_compile\"") >&5
15300 (eval $ac_compile) 2>&5
15302 echo "$as_me:15302: \$? = $ac_status" >&5
15303 (exit $ac_status); } &&
15304 { ac_try='test -s conftest.$ac_objext'
15305 { (eval echo "$as_me:15305: \"$ac_try\"") >&5
15306 (eval $ac_try) 2>&5
15308 echo "$as_me:15308: \$? = $ac_status" >&5
15309 (exit $ac_status); }; }; then
15312 echo "$as_me: failed program was:" >&5
15313 cat conftest.$ac_ext >&5
15315 rm -f conftest.$ac_objext conftest.$ac_ext
15316 CPPFLAGS="$cf_save_cppflags"
15318 rm -f conftest.$ac_objext conftest.$ac_ext
15319 echo "$as_me:15319: result: $cf_define_xpg5" >&5
15320 echo "${ECHO_T}$cf_define_xpg5" >&6
15322 if test "$cf_define_xpg5" = yes
15324 CPPFLAGS="$CPPFLAGS -D_XPG5"
15328 echo "$as_me:15328: checking for wide-character functions" >&5
15329 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
15330 if test "${cf_cv_widechar_funcs+set}" = set; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15334 cat >conftest.$ac_ext <<_ACEOF
15335 #line 15335 "configure"
15336 #include "confdefs.h"
15338 #include <${cf_cv_ncurses_header:-curses.h}>
15343 static wchar_t src_wchar[2];
15344 static cchar_t dst_cchar;
15345 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
15351 rm -f conftest.$ac_objext conftest$ac_exeext
15352 if { (eval echo "$as_me:15352: \"$ac_link\"") >&5
15353 (eval $ac_link) 2>&5
15355 echo "$as_me:15355: \$? = $ac_status" >&5
15356 (exit $ac_status); } &&
15357 { ac_try='test -s conftest$ac_exeext'
15358 { (eval echo "$as_me:15358: \"$ac_try\"") >&5
15359 (eval $ac_try) 2>&5
15361 echo "$as_me:15361: \$? = $ac_status" >&5
15362 (exit $ac_status); }; }; then
15363 cf_cv_widechar_funcs=yes
15365 echo "$as_me: failed program was:" >&5
15366 cat conftest.$ac_ext >&5
15367 cf_cv_widechar_funcs=no
15369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15372 echo "$as_me:15372: result: $cf_cv_widechar_funcs" >&5
15373 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
15374 if test "$cf_cv_widechar_funcs" != no ; then
15376 cat >>confdefs.h <<\EOF
15377 #define USE_WIDEC_SUPPORT 1
15381 cat >>confdefs.h <<\EOF
15382 #define USE_WIDEC_SUPPORT 0
15387 cat >>confdefs.h <<\EOF
15388 #define USE_WIDEC_SUPPORT 0
15393 echo "$as_me:15393: checking if $cf_cv_screen library uses pthreads" >&5
15394 echo $ECHO_N "checking if $cf_cv_screen library uses pthreads... $ECHO_C" >&6
15395 if test "${cf_cv_use_pthreads+set}" = set; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15399 cat >conftest.$ac_ext <<_ACEOF
15400 #line 15400 "configure"
15401 #include "confdefs.h"
15403 #include <${cf_cv_ncurses_header:-curses.h}>
15404 extern void _nc_init_pthreads(void);
15411 _nc_init_pthreads();
15417 rm -f conftest.$ac_objext conftest$ac_exeext
15418 if { (eval echo "$as_me:15418: \"$ac_link\"") >&5
15419 (eval $ac_link) 2>&5
15421 echo "$as_me:15421: \$? = $ac_status" >&5
15422 (exit $ac_status); } &&
15423 { ac_try='test -s conftest$ac_exeext'
15424 { (eval echo "$as_me:15424: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15427 echo "$as_me:15427: \$? = $ac_status" >&5
15428 (exit $ac_status); }; }; then
15429 cf_cv_use_pthreads=yes
15431 echo "$as_me: failed program was:" >&5
15432 cat conftest.$ac_ext >&5
15433 cf_cv_use_pthreads=no
15435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15438 echo "$as_me:15438: result: $cf_cv_use_pthreads" >&5
15439 echo "${ECHO_T}$cf_cv_use_pthreads" >&6
15440 test $cf_cv_use_pthreads = yes && cat >>confdefs.h <<\EOF
15441 #define USE_PTHREADS 1
15444 echo "$as_me:15444: checking if sys/time.h works with sys/select.h" >&5
15445 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
15446 if test "${cf_cv_sys_time_select+set}" = set; then
15447 echo $ECHO_N "(cached) $ECHO_C" >&6
15450 cat >conftest.$ac_ext <<_ACEOF
15451 #line 15451 "configure"
15452 #include "confdefs.h"
15454 #include <sys/types.h>
15455 #ifdef HAVE_SYS_TIME_H
15456 #include <sys/time.h>
15458 #ifdef HAVE_SYS_SELECT_H
15459 #include <sys/select.h>
15470 rm -f conftest.$ac_objext
15471 if { (eval echo "$as_me:15471: \"$ac_compile\"") >&5
15472 (eval $ac_compile) 2>&5
15474 echo "$as_me:15474: \$? = $ac_status" >&5
15475 (exit $ac_status); } &&
15476 { ac_try='test -s conftest.$ac_objext'
15477 { (eval echo "$as_me:15477: \"$ac_try\"") >&5
15478 (eval $ac_try) 2>&5
15480 echo "$as_me:15480: \$? = $ac_status" >&5
15481 (exit $ac_status); }; }; then
15482 cf_cv_sys_time_select=yes
15484 echo "$as_me: failed program was:" >&5
15485 cat conftest.$ac_ext >&5
15486 cf_cv_sys_time_select=no
15488 rm -f conftest.$ac_objext conftest.$ac_ext
15492 echo "$as_me:15492: result: $cf_cv_sys_time_select" >&5
15493 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
15494 test "$cf_cv_sys_time_select" = yes &&
15495 cat >>confdefs.h <<\EOF
15496 #define HAVE_SYS_TIME_SELECT 1
15499 # special check for test/ditto.c
15501 echo "$as_me:15501: checking for openpty in -lutil" >&5
15502 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15503 if test "${ac_cv_lib_util_openpty+set}" = set; then
15504 echo $ECHO_N "(cached) $ECHO_C" >&6
15506 ac_check_lib_save_LIBS=$LIBS
15507 LIBS="-lutil $LIBS"
15508 cat >conftest.$ac_ext <<_ACEOF
15509 #line 15509 "configure"
15510 #include "confdefs.h"
15512 /* Override any gcc2 internal prototype to avoid an error. */
15516 /* We use char because int might match the return type of a gcc2
15517 builtin and then its argument prototype would still apply. */
15527 rm -f conftest.$ac_objext conftest$ac_exeext
15528 if { (eval echo "$as_me:15528: \"$ac_link\"") >&5
15529 (eval $ac_link) 2>&5
15531 echo "$as_me:15531: \$? = $ac_status" >&5
15532 (exit $ac_status); } &&
15533 { ac_try='test -s conftest$ac_exeext'
15534 { (eval echo "$as_me:15534: \"$ac_try\"") >&5
15535 (eval $ac_try) 2>&5
15537 echo "$as_me:15537: \$? = $ac_status" >&5
15538 (exit $ac_status); }; }; then
15539 ac_cv_lib_util_openpty=yes
15541 echo "$as_me: failed program was:" >&5
15542 cat conftest.$ac_ext >&5
15543 ac_cv_lib_util_openpty=no
15545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15546 LIBS=$ac_check_lib_save_LIBS
15548 echo "$as_me:15548: result: $ac_cv_lib_util_openpty" >&5
15549 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15550 if test $ac_cv_lib_util_openpty = yes; then
15556 echo "$as_me:15556: checking for openpty header" >&5
15557 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
15558 if test "${cf_cv_func_openpty+set}" = set; then
15559 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 cf_save_LIBS="$LIBS"
15563 test $cf_cv_lib_util = yes && {
15564 cf_add_libs="-lutil"
15565 # Filter out duplicates - this happens with badly-designed ".pc" files...
15566 for cf_add_1lib in $LIBS
15568 for cf_add_2lib in $cf_add_libs
15570 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15576 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15578 LIBS="$cf_add_libs"
15580 for cf_header in pty.h libutil.h util.h
15582 cat >conftest.$ac_ext <<_ACEOF
15583 #line 15583 "configure"
15584 #include "confdefs.h"
15586 #include <$cf_header>
15592 int x = openpty((int *)0, (int *)0, (char *)0,
15593 (struct termios *)0, (struct winsize *)0);
15599 rm -f conftest.$ac_objext conftest$ac_exeext
15600 if { (eval echo "$as_me:15600: \"$ac_link\"") >&5
15601 (eval $ac_link) 2>&5
15603 echo "$as_me:15603: \$? = $ac_status" >&5
15604 (exit $ac_status); } &&
15605 { ac_try='test -s conftest$ac_exeext'
15606 { (eval echo "$as_me:15606: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15609 echo "$as_me:15609: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15612 cf_cv_func_openpty=$cf_header
15616 echo "$as_me: failed program was:" >&5
15617 cat conftest.$ac_ext >&5
15619 cf_cv_func_openpty=no
15622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15624 LIBS="$cf_save_LIBS"
15627 echo "$as_me:15627: result: $cf_cv_func_openpty" >&5
15628 echo "${ECHO_T}$cf_cv_func_openpty" >&6
15630 if test "$cf_cv_func_openpty" != no ; then
15632 cat >>confdefs.h <<EOF
15633 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
15636 cat >>confdefs.h <<\EOF
15637 #define USE_XTERM_PTY 1
15640 if test "x$cf_cv_lib_util" = xyes ; then
15642 cf_add_libs="-lutil"
15643 # Filter out duplicates - this happens with badly-designed ".pc" files...
15644 for cf_add_1lib in $TEST_LIBS
15646 for cf_add_2lib in $cf_add_libs
15648 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15654 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15656 TEST_LIBS="$cf_add_libs"
15661 echo "$as_me:15661: checking for function curses_version" >&5
15662 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
15663 if test "${cf_cv_func_curses_version+set}" = set; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15667 if test "$cross_compiling" = yes; then
15668 cf_cv_func_curses_version=unknown
15670 cat >conftest.$ac_ext <<_ACEOF
15671 #line 15671 "configure"
15672 #include "confdefs.h"
15674 #include <${cf_cv_ncurses_header:-curses.h}>
15678 sprintf(temp, "%s\n", curses_version());
15679 ${cf_cv_main_return:-return}(0);
15683 rm -f conftest$ac_exeext
15684 if { (eval echo "$as_me:15684: \"$ac_link\"") >&5
15685 (eval $ac_link) 2>&5
15687 echo "$as_me:15687: \$? = $ac_status" >&5
15688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15689 { (eval echo "$as_me:15689: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15692 echo "$as_me:15692: \$? = $ac_status" >&5
15693 (exit $ac_status); }; }; then
15694 cf_cv_func_curses_version=yes
15697 echo "$as_me: program exited with status $ac_status" >&5
15698 echo "$as_me: failed program was:" >&5
15699 cat conftest.$ac_ext >&5
15700 cf_cv_func_curses_version=no
15703 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15707 echo "$as_me:15707: result: $cf_cv_func_curses_version" >&5
15708 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
15709 test "$cf_cv_func_curses_version" = yes &&
15710 cat >>confdefs.h <<\EOF
15711 #define HAVE_CURSES_VERSION 1
15714 echo "$as_me:15714: checking for alternate character set array" >&5
15715 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
15716 if test "${cf_cv_curses_acs_map+set}" = set; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15720 cf_cv_curses_acs_map=unknown
15721 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
15723 cat >conftest.$ac_ext <<_ACEOF
15724 #line 15724 "configure"
15725 #include "confdefs.h"
15727 #include <${cf_cv_ncurses_header:-curses.h}>
15733 $name['k'] = ACS_PLUS
15739 rm -f conftest.$ac_objext conftest$ac_exeext
15740 if { (eval echo "$as_me:15740: \"$ac_link\"") >&5
15741 (eval $ac_link) 2>&5
15743 echo "$as_me:15743: \$? = $ac_status" >&5
15744 (exit $ac_status); } &&
15745 { ac_try='test -s conftest$ac_exeext'
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_curses_acs_map=$name; break
15753 echo "$as_me: failed program was:" >&5
15754 cat conftest.$ac_ext >&5
15756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15760 echo "$as_me:15760: result: $cf_cv_curses_acs_map" >&5
15761 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
15763 test "$cf_cv_curses_acs_map" != unknown &&
15764 cat >>confdefs.h <<EOF
15765 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
15768 if test "$cf_enable_widec" = yes; then
15770 echo "$as_me:15770: checking for wide alternate character set array" >&5
15771 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
15772 if test "${cf_cv_curses_wacs_map+set}" = set; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15776 cf_cv_curses_wacs_map=unknown
15777 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
15779 cat >conftest.$ac_ext <<_ACEOF
15780 #line 15780 "configure"
15781 #include "confdefs.h"
15783 #ifndef _XOPEN_SOURCE_EXTENDED
15784 #define _XOPEN_SOURCE_EXTENDED
15786 #include <${cf_cv_ncurses_header:-curses.h}>
15790 void *foo = &($name['k'])
15795 rm -f conftest.$ac_objext conftest$ac_exeext
15796 if { (eval echo "$as_me:15796: \"$ac_link\"") >&5
15797 (eval $ac_link) 2>&5
15799 echo "$as_me:15799: \$? = $ac_status" >&5
15800 (exit $ac_status); } &&
15801 { ac_try='test -s conftest$ac_exeext'
15802 { (eval echo "$as_me:15802: \"$ac_try\"") >&5
15803 (eval $ac_try) 2>&5
15805 echo "$as_me:15805: \$? = $ac_status" >&5
15806 (exit $ac_status); }; }; then
15807 cf_cv_curses_wacs_map=$name
15810 echo "$as_me: failed program was:" >&5
15811 cat conftest.$ac_ext >&5
15813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15816 echo "$as_me:15816: result: $cf_cv_curses_wacs_map" >&5
15817 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
15819 test "$cf_cv_curses_wacs_map" != unknown &&
15820 cat >>confdefs.h <<EOF
15821 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
15824 echo "$as_me:15824: checking for wide alternate character constants" >&5
15825 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
15826 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
15827 echo $ECHO_N "(cached) $ECHO_C" >&6
15830 cf_cv_curses_wacs_symbols=no
15831 if test "$cf_cv_curses_wacs_map" != unknown
15833 cat >conftest.$ac_ext <<_ACEOF
15834 #line 15834 "configure"
15835 #include "confdefs.h"
15837 #ifndef _XOPEN_SOURCE_EXTENDED
15838 #define _XOPEN_SOURCE_EXTENDED
15840 #include <${cf_cv_ncurses_header:-curses.h}>
15844 cchar_t *foo = WACS_PLUS;
15845 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
15850 rm -f conftest.$ac_objext conftest$ac_exeext
15851 if { (eval echo "$as_me:15851: \"$ac_link\"") >&5
15852 (eval $ac_link) 2>&5
15854 echo "$as_me:15854: \$? = $ac_status" >&5
15855 (exit $ac_status); } &&
15856 { ac_try='test -s conftest$ac_exeext'
15857 { (eval echo "$as_me:15857: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15860 echo "$as_me:15860: \$? = $ac_status" >&5
15861 (exit $ac_status); }; }; then
15862 cf_cv_curses_wacs_symbols=yes
15864 echo "$as_me: failed program was:" >&5
15865 cat conftest.$ac_ext >&5
15867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15869 cat >conftest.$ac_ext <<_ACEOF
15870 #line 15870 "configure"
15871 #include "confdefs.h"
15873 #ifndef _XOPEN_SOURCE_EXTENDED
15874 #define _XOPEN_SOURCE_EXTENDED
15876 #include <${cf_cv_ncurses_header:-curses.h}>
15880 cchar_t *foo = WACS_PLUS
15885 rm -f conftest.$ac_objext conftest$ac_exeext
15886 if { (eval echo "$as_me:15886: \"$ac_link\"") >&5
15887 (eval $ac_link) 2>&5
15889 echo "$as_me:15889: \$? = $ac_status" >&5
15890 (exit $ac_status); } &&
15891 { ac_try='test -s conftest$ac_exeext'
15892 { (eval echo "$as_me:15892: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15895 echo "$as_me:15895: \$? = $ac_status" >&5
15896 (exit $ac_status); }; }; then
15897 cf_cv_curses_wacs_symbols=yes
15899 echo "$as_me: failed program was:" >&5
15900 cat conftest.$ac_ext >&5
15902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15906 echo "$as_me:15906: result: $cf_cv_curses_wacs_symbols" >&5
15907 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
15909 test "$cf_cv_curses_wacs_symbols" != no &&
15910 cat >>confdefs.h <<\EOF
15911 #define CURSES_WACS_SYMBOLS 1
15916 echo "$as_me:15916: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15917 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15918 cat >conftest.$ac_ext <<_ACEOF
15919 #line 15919 "configure"
15920 #include "confdefs.h"
15922 #ifndef _XOPEN_SOURCE_EXTENDED
15923 #define _XOPEN_SOURCE_EXTENDED
15925 #include <${cf_cv_ncurses_header:-curses.h}>
15936 rm -f conftest.$ac_objext
15937 if { (eval echo "$as_me:15937: \"$ac_compile\"") >&5
15938 (eval $ac_compile) 2>&5
15940 echo "$as_me:15940: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
15942 { ac_try='test -s conftest.$ac_objext'
15943 { (eval echo "$as_me:15943: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15946 echo "$as_me:15946: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
15950 echo "$as_me: failed program was:" >&5
15951 cat conftest.$ac_ext >&5
15954 rm -f conftest.$ac_objext conftest.$ac_ext
15955 echo "$as_me:15955: result: $cf_result" >&5
15956 echo "${ECHO_T}$cf_result" >&6
15957 if test $cf_result = yes ; then
15959 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15961 cat >>confdefs.h <<EOF
15962 #define $cf_result 1
15967 cat >>confdefs.h <<EOF
15968 #define attr_t long
15973 if test "$cf_enable_widec" = yes; then
15975 # This is needed on Tru64 5.0 to declare mbstate_t
15976 echo "$as_me:15976: checking if we must include wchar.h to declare mbstate_t" >&5
15977 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
15978 if test "${cf_cv_mbstate_t+set}" = set; then
15979 echo $ECHO_N "(cached) $ECHO_C" >&6
15982 cat >conftest.$ac_ext <<_ACEOF
15983 #line 15983 "configure"
15984 #include "confdefs.h"
15986 #include <stdlib.h>
15987 #include <stdarg.h>
15989 #ifdef HAVE_LIBUTF8_H
15990 #include <libutf8.h>
16000 rm -f conftest.$ac_objext
16001 if { (eval echo "$as_me:16001: \"$ac_compile\"") >&5
16002 (eval $ac_compile) 2>&5
16004 echo "$as_me:16004: \$? = $ac_status" >&5
16005 (exit $ac_status); } &&
16006 { ac_try='test -s conftest.$ac_objext'
16007 { (eval echo "$as_me:16007: \"$ac_try\"") >&5
16008 (eval $ac_try) 2>&5
16010 echo "$as_me:16010: \$? = $ac_status" >&5
16011 (exit $ac_status); }; }; then
16014 echo "$as_me: failed program was:" >&5
16015 cat conftest.$ac_ext >&5
16016 cat >conftest.$ac_ext <<_ACEOF
16017 #line 16017 "configure"
16018 #include "confdefs.h"
16020 #include <stdlib.h>
16021 #include <stdarg.h>
16024 #ifdef HAVE_LIBUTF8_H
16025 #include <libutf8.h>
16035 rm -f conftest.$ac_objext
16036 if { (eval echo "$as_me:16036: \"$ac_compile\"") >&5
16037 (eval $ac_compile) 2>&5
16039 echo "$as_me:16039: \$? = $ac_status" >&5
16040 (exit $ac_status); } &&
16041 { ac_try='test -s conftest.$ac_objext'
16042 { (eval echo "$as_me:16042: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16045 echo "$as_me:16045: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 cf_cv_mbstate_t=yes
16049 echo "$as_me: failed program was:" >&5
16050 cat conftest.$ac_ext >&5
16051 cf_cv_mbstate_t=unknown
16053 rm -f conftest.$ac_objext conftest.$ac_ext
16055 rm -f conftest.$ac_objext conftest.$ac_ext
16057 echo "$as_me:16057: result: $cf_cv_mbstate_t" >&5
16058 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
16060 if test "$cf_cv_mbstate_t" = yes ; then
16062 cat >>confdefs.h <<\EOF
16063 #define NEED_WCHAR_H 1
16069 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
16070 if test "$cf_cv_mbstate_t" = unknown ; then
16071 NCURSES_MBSTATE_T=1
16074 # if we find mbstate_t in either place, use substitution to provide a fallback.
16075 if test "$cf_cv_mbstate_t" != unknown ; then
16076 NCURSES_OK_MBSTATE_T=1
16079 # This is needed on Tru64 5.0 to declare wchar_t
16080 echo "$as_me:16080: checking if we must include wchar.h to declare wchar_t" >&5
16081 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
16082 if test "${cf_cv_wchar_t+set}" = set; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16086 cat >conftest.$ac_ext <<_ACEOF
16087 #line 16087 "configure"
16088 #include "confdefs.h"
16090 #include <stdlib.h>
16091 #include <stdarg.h>
16093 #ifdef HAVE_LIBUTF8_H
16094 #include <libutf8.h>
16104 rm -f conftest.$ac_objext
16105 if { (eval echo "$as_me:16105: \"$ac_compile\"") >&5
16106 (eval $ac_compile) 2>&5
16108 echo "$as_me:16108: \$? = $ac_status" >&5
16109 (exit $ac_status); } &&
16110 { ac_try='test -s conftest.$ac_objext'
16111 { (eval echo "$as_me:16111: \"$ac_try\"") >&5
16112 (eval $ac_try) 2>&5
16114 echo "$as_me:16114: \$? = $ac_status" >&5
16115 (exit $ac_status); }; }; then
16118 echo "$as_me: failed program was:" >&5
16119 cat conftest.$ac_ext >&5
16120 cat >conftest.$ac_ext <<_ACEOF
16121 #line 16121 "configure"
16122 #include "confdefs.h"
16124 #include <stdlib.h>
16125 #include <stdarg.h>
16128 #ifdef HAVE_LIBUTF8_H
16129 #include <libutf8.h>
16139 rm -f conftest.$ac_objext
16140 if { (eval echo "$as_me:16140: \"$ac_compile\"") >&5
16141 (eval $ac_compile) 2>&5
16143 echo "$as_me:16143: \$? = $ac_status" >&5
16144 (exit $ac_status); } &&
16145 { ac_try='test -s conftest.$ac_objext'
16146 { (eval echo "$as_me:16146: \"$ac_try\"") >&5
16147 (eval $ac_try) 2>&5
16149 echo "$as_me:16149: \$? = $ac_status" >&5
16150 (exit $ac_status); }; }; then
16153 echo "$as_me: failed program was:" >&5
16154 cat conftest.$ac_ext >&5
16155 cf_cv_wchar_t=unknown
16157 rm -f conftest.$ac_objext conftest.$ac_ext
16159 rm -f conftest.$ac_objext conftest.$ac_ext
16161 echo "$as_me:16161: result: $cf_cv_wchar_t" >&5
16162 echo "${ECHO_T}$cf_cv_wchar_t" >&6
16164 if test "$cf_cv_wchar_t" = yes ; then
16166 cat >>confdefs.h <<\EOF
16167 #define NEED_WCHAR_H 1
16173 # if we do not find wchar_t in either place, use substitution to provide a fallback.
16174 if test "$cf_cv_wchar_t" = unknown ; then
16178 # if we find wchar_t in either place, use substitution to provide a fallback.
16179 if test "$cf_cv_wchar_t" != unknown ; then
16180 NCURSES_OK_WCHAR_T=1
16183 # This is needed on Tru64 5.0 to declare wint_t
16184 echo "$as_me:16184: checking if we must include wchar.h to declare wint_t" >&5
16185 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
16186 if test "${cf_cv_wint_t+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16190 cat >conftest.$ac_ext <<_ACEOF
16191 #line 16191 "configure"
16192 #include "confdefs.h"
16194 #include <stdlib.h>
16195 #include <stdarg.h>
16197 #ifdef HAVE_LIBUTF8_H
16198 #include <libutf8.h>
16208 rm -f conftest.$ac_objext
16209 if { (eval echo "$as_me:16209: \"$ac_compile\"") >&5
16210 (eval $ac_compile) 2>&5
16212 echo "$as_me:16212: \$? = $ac_status" >&5
16213 (exit $ac_status); } &&
16214 { ac_try='test -s conftest.$ac_objext'
16215 { (eval echo "$as_me:16215: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16218 echo "$as_me:16218: \$? = $ac_status" >&5
16219 (exit $ac_status); }; }; then
16222 echo "$as_me: failed program was:" >&5
16223 cat conftest.$ac_ext >&5
16224 cat >conftest.$ac_ext <<_ACEOF
16225 #line 16225 "configure"
16226 #include "confdefs.h"
16228 #include <stdlib.h>
16229 #include <stdarg.h>
16232 #ifdef HAVE_LIBUTF8_H
16233 #include <libutf8.h>
16243 rm -f conftest.$ac_objext
16244 if { (eval echo "$as_me:16244: \"$ac_compile\"") >&5
16245 (eval $ac_compile) 2>&5
16247 echo "$as_me:16247: \$? = $ac_status" >&5
16248 (exit $ac_status); } &&
16249 { ac_try='test -s conftest.$ac_objext'
16250 { (eval echo "$as_me:16250: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16253 echo "$as_me:16253: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16257 echo "$as_me: failed program was:" >&5
16258 cat conftest.$ac_ext >&5
16259 cf_cv_wint_t=unknown
16261 rm -f conftest.$ac_objext conftest.$ac_ext
16263 rm -f conftest.$ac_objext conftest.$ac_ext
16265 echo "$as_me:16265: result: $cf_cv_wint_t" >&5
16266 echo "${ECHO_T}$cf_cv_wint_t" >&6
16268 if test "$cf_cv_wint_t" = yes ; then
16270 cat >>confdefs.h <<\EOF
16271 #define NEED_WCHAR_H 1
16277 # if we do not find wint_t in either place, use substitution to provide a fallback.
16278 if test "$cf_cv_wint_t" = unknown ; then
16282 # if we find wint_t in either place, use substitution to provide a fallback.
16283 if test "$cf_cv_wint_t" != unknown ; then
16284 NCURSES_OK_WINT_T=1
16287 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
16289 echo "$as_me:16289: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16290 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16291 cat >conftest.$ac_ext <<_ACEOF
16292 #line 16292 "configure"
16293 #include "confdefs.h"
16295 #ifndef _XOPEN_SOURCE_EXTENDED
16296 #define _XOPEN_SOURCE_EXTENDED
16298 #include <${cf_cv_ncurses_header:-curses.h}>
16309 rm -f conftest.$ac_objext
16310 if { (eval echo "$as_me:16310: \"$ac_compile\"") >&5
16311 (eval $ac_compile) 2>&5
16313 echo "$as_me:16313: \$? = $ac_status" >&5
16314 (exit $ac_status); } &&
16315 { ac_try='test -s conftest.$ac_objext'
16316 { (eval echo "$as_me:16316: \"$ac_try\"") >&5
16317 (eval $ac_try) 2>&5
16319 echo "$as_me:16319: \$? = $ac_status" >&5
16320 (exit $ac_status); }; }; then
16323 echo "$as_me: failed program was:" >&5
16324 cat conftest.$ac_ext >&5
16327 rm -f conftest.$ac_objext conftest.$ac_ext
16328 echo "$as_me:16328: result: $cf_result" >&5
16329 echo "${ECHO_T}$cf_result" >&6
16330 if test $cf_result = yes ; then
16332 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16334 cat >>confdefs.h <<EOF
16335 #define $cf_result 1
16340 cat >>confdefs.h <<EOF
16341 #define mbstate_t long
16348 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
16350 echo "$as_me:16350: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16351 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16352 cat >conftest.$ac_ext <<_ACEOF
16353 #line 16353 "configure"
16354 #include "confdefs.h"
16356 #ifndef _XOPEN_SOURCE_EXTENDED
16357 #define _XOPEN_SOURCE_EXTENDED
16359 #include <${cf_cv_ncurses_header:-curses.h}>
16370 rm -f conftest.$ac_objext
16371 if { (eval echo "$as_me:16371: \"$ac_compile\"") >&5
16372 (eval $ac_compile) 2>&5
16374 echo "$as_me:16374: \$? = $ac_status" >&5
16375 (exit $ac_status); } &&
16376 { ac_try='test -s conftest.$ac_objext'
16377 { (eval echo "$as_me:16377: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
16380 echo "$as_me:16380: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16384 echo "$as_me: failed program was:" >&5
16385 cat conftest.$ac_ext >&5
16388 rm -f conftest.$ac_objext conftest.$ac_ext
16389 echo "$as_me:16389: result: $cf_result" >&5
16390 echo "${ECHO_T}$cf_result" >&6
16391 if test $cf_result = yes ; then
16393 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16395 cat >>confdefs.h <<EOF
16396 #define $cf_result 1
16401 cat >>confdefs.h <<EOF
16402 #define wchar_t long
16409 if test "$NCURSES_OK_WINT_T" = 0 ; then
16411 echo "$as_me:16411: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16412 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16413 cat >conftest.$ac_ext <<_ACEOF
16414 #line 16414 "configure"
16415 #include "confdefs.h"
16417 #ifndef _XOPEN_SOURCE_EXTENDED
16418 #define _XOPEN_SOURCE_EXTENDED
16420 #include <${cf_cv_ncurses_header:-curses.h}>
16431 rm -f conftest.$ac_objext
16432 if { (eval echo "$as_me:16432: \"$ac_compile\"") >&5
16433 (eval $ac_compile) 2>&5
16435 echo "$as_me:16435: \$? = $ac_status" >&5
16436 (exit $ac_status); } &&
16437 { ac_try='test -s conftest.$ac_objext'
16438 { (eval echo "$as_me:16438: \"$ac_try\"") >&5
16439 (eval $ac_try) 2>&5
16441 echo "$as_me:16441: \$? = $ac_status" >&5
16442 (exit $ac_status); }; }; then
16445 echo "$as_me: failed program was:" >&5
16446 cat conftest.$ac_ext >&5
16449 rm -f conftest.$ac_objext conftest.$ac_ext
16450 echo "$as_me:16450: result: $cf_result" >&5
16451 echo "${ECHO_T}$cf_result" >&6
16452 if test $cf_result = yes ; then
16454 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16456 cat >>confdefs.h <<EOF
16457 #define $cf_result 1
16462 cat >>confdefs.h <<EOF
16463 #define wint_t long
16471 echo "$as_me:16471: checking for data ospeed declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
16472 echo $ECHO_N "checking for data ospeed declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16474 cat >conftest.$ac_ext <<_ACEOF
16475 #line 16475 "configure"
16476 #include "confdefs.h"
16478 #ifdef HAVE_XCURSES
16479 #include <xcurses.h>
16480 char * XCursesProgramName = "test";
16482 #include <${cf_cv_ncurses_header:-curses.h}>
16483 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16484 #include <ncursesw/term.h>
16485 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16486 #include <ncurses/term.h>
16487 #elif defined(HAVE_TERM_H)
16496 void *foo = &(ospeed)
16502 rm -f conftest.$ac_objext
16503 if { (eval echo "$as_me:16503: \"$ac_compile\"") >&5
16504 (eval $ac_compile) 2>&5
16506 echo "$as_me:16506: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
16508 { ac_try='test -s conftest.$ac_objext'
16509 { (eval echo "$as_me:16509: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16512 echo "$as_me:16512: \$? = $ac_status" >&5
16513 (exit $ac_status); }; }; then
16516 echo "$as_me: failed program was:" >&5
16517 cat conftest.$ac_ext >&5
16520 rm -f conftest.$ac_objext conftest.$ac_ext
16521 echo "$as_me:16521: result: $cf_result" >&5
16522 echo "${ECHO_T}$cf_result" >&6
16524 if test $cf_result = yes ; then
16526 cf_result=`echo "have_curses_data_ospeed" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16528 cat >>confdefs.h <<EOF
16529 #define $cf_result 1
16533 echo "$as_me:16533: checking for data ospeed in library" >&5
16534 echo $ECHO_N "checking for data ospeed in library... $ECHO_C" >&6
16535 # BSD linkers insist on making weak linkage, but resolve at runtime.
16536 if test "$cross_compiling" = yes; then
16539 cat >conftest.$ac_ext <<_ACEOF
16540 #line 16540 "configure"
16541 #include "confdefs.h"
16543 #ifdef HAVE_XCURSES
16544 #include <xcurses.h>
16545 char * XCursesProgramName = "test";
16547 #include <${cf_cv_ncurses_header:-curses.h}>
16548 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16549 #include <ncursesw/term.h>
16550 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16551 #include <ncurses/term.h>
16552 #elif defined(HAVE_TERM_H)
16557 extern char ospeed;
16563 void *foo = &(ospeed);
16564 fprintf(stderr, "testing linkage of ospeed:%p\n", foo);
16565 ${cf_cv_main_return:-return}(foo == 0);
16572 rm -f conftest.$ac_objext conftest$ac_exeext
16573 if { (eval echo "$as_me:16573: \"$ac_link\"") >&5
16574 (eval $ac_link) 2>&5
16576 echo "$as_me:16576: \$? = $ac_status" >&5
16577 (exit $ac_status); } &&
16578 { ac_try='test -s conftest$ac_exeext'
16579 { (eval echo "$as_me:16579: \"$ac_try\"") >&5
16580 (eval $ac_try) 2>&5
16582 echo "$as_me:16582: \$? = $ac_status" >&5
16583 (exit $ac_status); }; }; then
16586 echo "$as_me: failed program was:" >&5
16587 cat conftest.$ac_ext >&5
16590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16593 cat >conftest.$ac_ext <<_ACEOF
16594 #line 16594 "configure"
16595 #include "confdefs.h"
16597 #ifdef HAVE_XCURSES
16598 #include <xcurses.h>
16599 char * XCursesProgramName = "test";
16601 #include <${cf_cv_ncurses_header:-curses.h}>
16602 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16603 #include <ncursesw/term.h>
16604 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16605 #include <ncurses/term.h>
16606 #elif defined(HAVE_TERM_H)
16611 extern char ospeed;
16614 void *foo = &(ospeed);
16615 fprintf(stderr, "testing linkage of ospeed:%p\n", foo);
16616 ${cf_cv_main_return:-return}(foo == 0);
16619 rm -f conftest$ac_exeext
16620 if { (eval echo "$as_me:16620: \"$ac_link\"") >&5
16621 (eval $ac_link) 2>&5
16623 echo "$as_me:16623: \$? = $ac_status" >&5
16624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16625 { (eval echo "$as_me:16625: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16628 echo "$as_me:16628: \$? = $ac_status" >&5
16629 (exit $ac_status); }; }; then
16632 echo "$as_me: program exited with status $ac_status" >&5
16633 echo "$as_me: failed program was:" >&5
16634 cat conftest.$ac_ext >&5
16637 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16639 echo "$as_me:16639: result: $cf_result" >&5
16640 echo "${ECHO_T}$cf_result" >&6
16641 if test $cf_result = yes ; then
16643 cf_result=`echo "decl_curses_data_ospeed" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16645 cat >>confdefs.h <<EOF
16646 #define $cf_result 1
16652 echo "$as_me:16652: checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
16653 echo $ECHO_N "checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16655 cat >conftest.$ac_ext <<_ACEOF
16656 #line 16656 "configure"
16657 #include "confdefs.h"
16659 #ifdef HAVE_XCURSES
16660 #include <xcurses.h>
16661 char * XCursesProgramName = "test";
16663 #include <${cf_cv_ncurses_header:-curses.h}>
16664 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16665 #include <ncursesw/term.h>
16666 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16667 #include <ncurses/term.h>
16668 #elif defined(HAVE_TERM_H)
16677 void *foo = &(boolnames)
16683 rm -f conftest.$ac_objext
16684 if { (eval echo "$as_me:16684: \"$ac_compile\"") >&5
16685 (eval $ac_compile) 2>&5
16687 echo "$as_me:16687: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
16689 { ac_try='test -s conftest.$ac_objext'
16690 { (eval echo "$as_me:16690: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16693 echo "$as_me:16693: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16697 echo "$as_me: failed program was:" >&5
16698 cat conftest.$ac_ext >&5
16701 rm -f conftest.$ac_objext conftest.$ac_ext
16702 echo "$as_me:16702: result: $cf_result" >&5
16703 echo "${ECHO_T}$cf_result" >&6
16705 if test $cf_result = yes ; then
16707 cf_result=`echo "have_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16709 cat >>confdefs.h <<EOF
16710 #define $cf_result 1
16714 echo "$as_me:16714: checking for data boolnames in library" >&5
16715 echo $ECHO_N "checking for data boolnames in library... $ECHO_C" >&6
16716 # BSD linkers insist on making weak linkage, but resolve at runtime.
16717 if test "$cross_compiling" = yes; then
16720 cat >conftest.$ac_ext <<_ACEOF
16721 #line 16721 "configure"
16722 #include "confdefs.h"
16724 #ifdef HAVE_XCURSES
16725 #include <xcurses.h>
16726 char * XCursesProgramName = "test";
16728 #include <${cf_cv_ncurses_header:-curses.h}>
16729 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16730 #include <ncursesw/term.h>
16731 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16732 #include <ncurses/term.h>
16733 #elif defined(HAVE_TERM_H)
16738 extern char boolnames;
16744 void *foo = &(boolnames);
16745 fprintf(stderr, "testing linkage of boolnames:%p\n", foo);
16746 ${cf_cv_main_return:-return}(foo == 0);
16753 rm -f conftest.$ac_objext conftest$ac_exeext
16754 if { (eval echo "$as_me:16754: \"$ac_link\"") >&5
16755 (eval $ac_link) 2>&5
16757 echo "$as_me:16757: \$? = $ac_status" >&5
16758 (exit $ac_status); } &&
16759 { ac_try='test -s conftest$ac_exeext'
16760 { (eval echo "$as_me:16760: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16763 echo "$as_me:16763: \$? = $ac_status" >&5
16764 (exit $ac_status); }; }; then
16767 echo "$as_me: failed program was:" >&5
16768 cat conftest.$ac_ext >&5
16771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16774 cat >conftest.$ac_ext <<_ACEOF
16775 #line 16775 "configure"
16776 #include "confdefs.h"
16778 #ifdef HAVE_XCURSES
16779 #include <xcurses.h>
16780 char * XCursesProgramName = "test";
16782 #include <${cf_cv_ncurses_header:-curses.h}>
16783 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16784 #include <ncursesw/term.h>
16785 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16786 #include <ncurses/term.h>
16787 #elif defined(HAVE_TERM_H)
16792 extern char boolnames;
16795 void *foo = &(boolnames);
16796 fprintf(stderr, "testing linkage of boolnames:%p\n", foo);
16797 ${cf_cv_main_return:-return}(foo == 0);
16800 rm -f conftest$ac_exeext
16801 if { (eval echo "$as_me:16801: \"$ac_link\"") >&5
16802 (eval $ac_link) 2>&5
16804 echo "$as_me:16804: \$? = $ac_status" >&5
16805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16806 { (eval echo "$as_me:16806: \"$ac_try\"") >&5
16807 (eval $ac_try) 2>&5
16809 echo "$as_me:16809: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16813 echo "$as_me: program exited with status $ac_status" >&5
16814 echo "$as_me: failed program was:" >&5
16815 cat conftest.$ac_ext >&5
16818 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16820 echo "$as_me:16820: result: $cf_result" >&5
16821 echo "${ECHO_T}$cf_result" >&6
16822 if test $cf_result = yes ; then
16824 cf_result=`echo "decl_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16826 cat >>confdefs.h <<EOF
16827 #define $cf_result 1
16833 echo "$as_me:16833: checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
16834 echo $ECHO_N "checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16836 cat >conftest.$ac_ext <<_ACEOF
16837 #line 16837 "configure"
16838 #include "confdefs.h"
16840 #ifdef HAVE_XCURSES
16841 #include <xcurses.h>
16842 char * XCursesProgramName = "test";
16844 #include <${cf_cv_ncurses_header:-curses.h}>
16845 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16846 #include <ncursesw/term.h>
16847 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16848 #include <ncurses/term.h>
16849 #elif defined(HAVE_TERM_H)
16858 void *foo = &(boolfnames)
16864 rm -f conftest.$ac_objext
16865 if { (eval echo "$as_me:16865: \"$ac_compile\"") >&5
16866 (eval $ac_compile) 2>&5
16868 echo "$as_me:16868: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -s conftest.$ac_objext'
16871 { (eval echo "$as_me:16871: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16874 echo "$as_me:16874: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16878 echo "$as_me: failed program was:" >&5
16879 cat conftest.$ac_ext >&5
16882 rm -f conftest.$ac_objext conftest.$ac_ext
16883 echo "$as_me:16883: result: $cf_result" >&5
16884 echo "${ECHO_T}$cf_result" >&6
16886 if test $cf_result = yes ; then
16888 cf_result=`echo "have_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16890 cat >>confdefs.h <<EOF
16891 #define $cf_result 1
16895 echo "$as_me:16895: checking for data boolfnames in library" >&5
16896 echo $ECHO_N "checking for data boolfnames in library... $ECHO_C" >&6
16897 # BSD linkers insist on making weak linkage, but resolve at runtime.
16898 if test "$cross_compiling" = yes; then
16901 cat >conftest.$ac_ext <<_ACEOF
16902 #line 16902 "configure"
16903 #include "confdefs.h"
16905 #ifdef HAVE_XCURSES
16906 #include <xcurses.h>
16907 char * XCursesProgramName = "test";
16909 #include <${cf_cv_ncurses_header:-curses.h}>
16910 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16911 #include <ncursesw/term.h>
16912 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16913 #include <ncurses/term.h>
16914 #elif defined(HAVE_TERM_H)
16919 extern char boolfnames;
16925 void *foo = &(boolfnames);
16926 fprintf(stderr, "testing linkage of boolfnames:%p\n", foo);
16927 ${cf_cv_main_return:-return}(foo == 0);
16934 rm -f conftest.$ac_objext conftest$ac_exeext
16935 if { (eval echo "$as_me:16935: \"$ac_link\"") >&5
16936 (eval $ac_link) 2>&5
16938 echo "$as_me:16938: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
16940 { ac_try='test -s conftest$ac_exeext'
16941 { (eval echo "$as_me:16941: \"$ac_try\"") >&5
16942 (eval $ac_try) 2>&5
16944 echo "$as_me:16944: \$? = $ac_status" >&5
16945 (exit $ac_status); }; }; then
16948 echo "$as_me: failed program was:" >&5
16949 cat conftest.$ac_ext >&5
16952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16955 cat >conftest.$ac_ext <<_ACEOF
16956 #line 16956 "configure"
16957 #include "confdefs.h"
16959 #ifdef HAVE_XCURSES
16960 #include <xcurses.h>
16961 char * XCursesProgramName = "test";
16963 #include <${cf_cv_ncurses_header:-curses.h}>
16964 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16965 #include <ncursesw/term.h>
16966 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16967 #include <ncurses/term.h>
16968 #elif defined(HAVE_TERM_H)
16973 extern char boolfnames;
16976 void *foo = &(boolfnames);
16977 fprintf(stderr, "testing linkage of boolfnames:%p\n", foo);
16978 ${cf_cv_main_return:-return}(foo == 0);
16981 rm -f conftest$ac_exeext
16982 if { (eval echo "$as_me:16982: \"$ac_link\"") >&5
16983 (eval $ac_link) 2>&5
16985 echo "$as_me:16985: \$? = $ac_status" >&5
16986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16987 { (eval echo "$as_me:16987: \"$ac_try\"") >&5
16988 (eval $ac_try) 2>&5
16990 echo "$as_me:16990: \$? = $ac_status" >&5
16991 (exit $ac_status); }; }; then
16994 echo "$as_me: program exited with status $ac_status" >&5
16995 echo "$as_me: failed program was:" >&5
16996 cat conftest.$ac_ext >&5
16999 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17001 echo "$as_me:17001: result: $cf_result" >&5
17002 echo "${ECHO_T}$cf_result" >&6
17003 if test $cf_result = yes ; then
17005 cf_result=`echo "decl_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17007 cat >>confdefs.h <<EOF
17008 #define $cf_result 1
17014 echo "$as_me:17014: checking for data ttytype declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
17015 echo $ECHO_N "checking for data ttytype declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
17017 cat >conftest.$ac_ext <<_ACEOF
17018 #line 17018 "configure"
17019 #include "confdefs.h"
17021 #ifdef HAVE_XCURSES
17022 #include <xcurses.h>
17023 char * XCursesProgramName = "test";
17025 #include <${cf_cv_ncurses_header:-curses.h}>
17026 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17027 #include <ncursesw/term.h>
17028 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17029 #include <ncurses/term.h>
17030 #elif defined(HAVE_TERM_H)
17039 void *foo = &(ttytype)
17045 rm -f conftest.$ac_objext
17046 if { (eval echo "$as_me:17046: \"$ac_compile\"") >&5
17047 (eval $ac_compile) 2>&5
17049 echo "$as_me:17049: \$? = $ac_status" >&5
17050 (exit $ac_status); } &&
17051 { ac_try='test -s conftest.$ac_objext'
17052 { (eval echo "$as_me:17052: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17055 echo "$as_me:17055: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17059 echo "$as_me: failed program was:" >&5
17060 cat conftest.$ac_ext >&5
17063 rm -f conftest.$ac_objext conftest.$ac_ext
17064 echo "$as_me:17064: result: $cf_result" >&5
17065 echo "${ECHO_T}$cf_result" >&6
17067 if test $cf_result = yes ; then
17069 cf_result=`echo "have_curses_data_ttytype" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17071 cat >>confdefs.h <<EOF
17072 #define $cf_result 1
17076 echo "$as_me:17076: checking for data ttytype in library" >&5
17077 echo $ECHO_N "checking for data ttytype in library... $ECHO_C" >&6
17078 # BSD linkers insist on making weak linkage, but resolve at runtime.
17079 if test "$cross_compiling" = yes; then
17082 cat >conftest.$ac_ext <<_ACEOF
17083 #line 17083 "configure"
17084 #include "confdefs.h"
17086 #ifdef HAVE_XCURSES
17087 #include <xcurses.h>
17088 char * XCursesProgramName = "test";
17090 #include <${cf_cv_ncurses_header:-curses.h}>
17091 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17092 #include <ncursesw/term.h>
17093 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17094 #include <ncurses/term.h>
17095 #elif defined(HAVE_TERM_H)
17100 extern char ttytype;
17106 void *foo = &(ttytype);
17107 fprintf(stderr, "testing linkage of ttytype:%p\n", foo);
17108 ${cf_cv_main_return:-return}(foo == 0);
17115 rm -f conftest.$ac_objext conftest$ac_exeext
17116 if { (eval echo "$as_me:17116: \"$ac_link\"") >&5
17117 (eval $ac_link) 2>&5
17119 echo "$as_me:17119: \$? = $ac_status" >&5
17120 (exit $ac_status); } &&
17121 { ac_try='test -s conftest$ac_exeext'
17122 { (eval echo "$as_me:17122: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17125 echo "$as_me:17125: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
17129 echo "$as_me: failed program was:" >&5
17130 cat conftest.$ac_ext >&5
17133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17136 cat >conftest.$ac_ext <<_ACEOF
17137 #line 17137 "configure"
17138 #include "confdefs.h"
17140 #ifdef HAVE_XCURSES
17141 #include <xcurses.h>
17142 char * XCursesProgramName = "test";
17144 #include <${cf_cv_ncurses_header:-curses.h}>
17145 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17146 #include <ncursesw/term.h>
17147 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17148 #include <ncurses/term.h>
17149 #elif defined(HAVE_TERM_H)
17154 extern char ttytype;
17157 void *foo = &(ttytype);
17158 fprintf(stderr, "testing linkage of ttytype:%p\n", foo);
17159 ${cf_cv_main_return:-return}(foo == 0);
17162 rm -f conftest$ac_exeext
17163 if { (eval echo "$as_me:17163: \"$ac_link\"") >&5
17164 (eval $ac_link) 2>&5
17166 echo "$as_me:17166: \$? = $ac_status" >&5
17167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17168 { (eval echo "$as_me:17168: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17171 echo "$as_me:17171: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17175 echo "$as_me: program exited with status $ac_status" >&5
17176 echo "$as_me: failed program was:" >&5
17177 cat conftest.$ac_ext >&5
17180 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17182 echo "$as_me:17182: result: $cf_result" >&5
17183 echo "${ECHO_T}$cf_result" >&6
17184 if test $cf_result = yes ; then
17186 cf_result=`echo "decl_curses_data_ttytype" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17188 cat >>confdefs.h <<EOF
17189 #define $cf_result 1
17195 if ( test "$GCC" = yes || test "$GXX" = yes )
17197 echo "$as_me:17197: checking if you want to turn on gcc warnings" >&5
17198 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
17200 # Check whether --enable-warnings or --disable-warnings was given.
17201 if test "${enable_warnings+set}" = set; then
17202 enableval="$enable_warnings"
17203 test "$enableval" != yes && enableval=no
17204 if test "$enableval" != "no" ; then
17214 echo "$as_me:17214: result: $with_warnings" >&5
17215 echo "${ECHO_T}$with_warnings" >&6
17216 if test "$with_warnings" = "yes"
17219 if test "$GCC" = yes
17221 cat > conftest.i <<EOF
17223 #define GCC_PRINTF 0
17226 #define GCC_SCANF 0
17228 #ifndef GCC_NORETURN
17229 #define GCC_NORETURN /* nothing */
17232 #define GCC_UNUSED /* nothing */
17235 if test "$GCC" = yes
17237 { echo "$as_me:17237: checking for $CC __attribute__ directives..." >&5
17238 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17239 cat > conftest.$ac_ext <<EOF
17240 #line 17240 "${as_me:-configure}"
17241 #include "confdefs.h"
17242 #include "conftest.h"
17243 #include "conftest.i"
17245 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17247 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17250 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17252 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17254 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17255 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
17256 extern void foo(void) GCC_NORETURN;
17257 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
17259 cf_printf_attribute=no
17260 cf_scanf_attribute=no
17261 for cf_attribute in scanf printf unused noreturn
17264 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17266 cf_directive="__attribute__(($cf_attribute))"
17267 echo "checking for $CC $cf_directive" 1>&5
17269 case $cf_attribute in
17271 cf_printf_attribute=yes
17272 cat >conftest.h <<EOF
17273 #define GCC_$cf_ATTRIBUTE 1
17277 cf_scanf_attribute=yes
17278 cat >conftest.h <<EOF
17279 #define GCC_$cf_ATTRIBUTE 1
17283 cat >conftest.h <<EOF
17284 #define GCC_$cf_ATTRIBUTE $cf_directive
17289 if { (eval echo "$as_me:17289: \"$ac_compile\"") >&5
17290 (eval $ac_compile) 2>&5
17292 echo "$as_me:17292: \$? = $ac_status" >&5
17293 (exit $ac_status); }; then
17294 test -n "$verbose" && echo "$as_me:17294: result: ... $cf_attribute" >&5
17295 echo "${ECHO_T}... $cf_attribute" >&6
17296 cat conftest.h >>confdefs.h
17297 case $cf_attribute in
17300 cat >>confdefs.h <<EOF
17301 #define GCC_NORETURN $cf_directive
17306 cf_value='/* nothing */'
17307 if test "$cf_printf_attribute" != no ; then
17308 cf_value='__attribute__((format(printf,fmt,var)))'
17310 cat >>confdefs.h <<\EOF
17311 #define GCC_PRINTF 1
17316 cat >>confdefs.h <<EOF
17317 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17322 cf_value='/* nothing */'
17323 if test "$cf_scanf_attribute" != no ; then
17324 cf_value='__attribute__((format(scanf,fmt,var)))'
17326 cat >>confdefs.h <<\EOF
17327 #define GCC_SCANF 1
17332 cat >>confdefs.h <<EOF
17333 #define GCC_SCANFLIKE(fmt,var) $cf_value
17339 cat >>confdefs.h <<EOF
17340 #define GCC_UNUSED $cf_directive
17348 fgrep define conftest.i >>confdefs.h
17355 if test "$GCC" = yes ; then
17358 echo "$as_me:17358: checking if this is really Intel C compiler" >&5
17359 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
17360 cf_save_CFLAGS="$CFLAGS"
17361 CFLAGS="$CFLAGS -no-gcc"
17362 cat >conftest.$ac_ext <<_ACEOF
17363 #line 17363 "configure"
17364 #include "confdefs.h"
17370 #ifdef __INTEL_COMPILER
17379 rm -f conftest.$ac_objext
17380 if { (eval echo "$as_me:17380: \"$ac_compile\"") >&5
17381 (eval $ac_compile) 2>&5
17383 echo "$as_me:17383: \$? = $ac_status" >&5
17384 (exit $ac_status); } &&
17385 { ac_try='test -s conftest.$ac_objext'
17386 { (eval echo "$as_me:17386: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17389 echo "$as_me:17389: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17392 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
17395 echo "$as_me: failed program was:" >&5
17396 cat conftest.$ac_ext >&5
17398 rm -f conftest.$ac_objext conftest.$ac_ext
17399 CFLAGS="$cf_save_CFLAGS"
17400 echo "$as_me:17400: result: $INTEL_COMPILER" >&5
17401 echo "${ECHO_T}$INTEL_COMPILER" >&6
17408 if test "$GCC" = yes ; then
17409 echo "$as_me:17409: checking if this is really Clang C compiler" >&5
17410 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
17411 cf_save_CFLAGS="$CFLAGS"
17412 CFLAGS="$CFLAGS -Qunused-arguments"
17413 cat >conftest.$ac_ext <<_ACEOF
17414 #line 17414 "configure"
17415 #include "confdefs.h"
17430 rm -f conftest.$ac_objext
17431 if { (eval echo "$as_me:17431: \"$ac_compile\"") >&5
17432 (eval $ac_compile) 2>&5
17434 echo "$as_me:17434: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
17436 { ac_try='test -s conftest.$ac_objext'
17437 { (eval echo "$as_me:17437: \"$ac_try\"") >&5
17438 (eval $ac_try) 2>&5
17440 echo "$as_me:17440: \$? = $ac_status" >&5
17441 (exit $ac_status); }; }; then
17443 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
17446 echo "$as_me: failed program was:" >&5
17447 cat conftest.$ac_ext >&5
17449 rm -f conftest.$ac_objext conftest.$ac_ext
17450 CFLAGS="$cf_save_CFLAGS"
17451 echo "$as_me:17451: result: $CLANG_COMPILER" >&5
17452 echo "${ECHO_T}$CLANG_COMPILER" >&6
17455 cat > conftest.$ac_ext <<EOF
17456 #line 17456 "${as_me:-configure}"
17457 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17460 if test "$INTEL_COMPILER" = yes
17462 # The "-wdXXX" options suppress warnings:
17463 # remark #1419: external declaration in primary source file
17464 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17465 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17466 # remark #193: zero used for undefined preprocessing identifier
17467 # remark #593: variable "curs_sb_left_arrow" was set but never used
17468 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17469 # remark #869: parameter "tw" was never referenced
17470 # remark #981: operands are evaluated in unspecified order
17471 # warning #279: controlling expression is constant
17473 { echo "$as_me:17473: checking for $CC warning options..." >&5
17474 echo "$as_me: checking for $CC warning options..." >&6;}
17475 cf_save_CFLAGS="$CFLAGS"
17476 EXTRA_CFLAGS="-Wall"
17488 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17489 if { (eval echo "$as_me:17489: \"$ac_compile\"") >&5
17490 (eval $ac_compile) 2>&5
17492 echo "$as_me:17492: \$? = $ac_status" >&5
17493 (exit $ac_status); }; then
17494 test -n "$verbose" && echo "$as_me:17494: result: ... -$cf_opt" >&5
17495 echo "${ECHO_T}... -$cf_opt" >&6
17496 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17499 CFLAGS="$cf_save_CFLAGS"
17501 elif test "$GCC" = yes
17503 { echo "$as_me:17503: checking for $CC warning options..." >&5
17504 echo "$as_me: checking for $CC warning options..." >&6;}
17505 cf_save_CFLAGS="$CFLAGS"
17508 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
17509 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
17510 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
17511 for cf_opt in W Wall \
17512 Wbad-function-cast \
17515 Wdeclaration-after-statement \
17518 Wmissing-declarations \
17519 Wmissing-prototypes \
17523 Wstrict-prototypes \
17524 Wundef $cf_gcc_warnings $cf_warn_CONST
17526 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17527 if { (eval echo "$as_me:17527: \"$ac_compile\"") >&5
17528 (eval $ac_compile) 2>&5
17530 echo "$as_me:17530: \$? = $ac_status" >&5
17531 (exit $ac_status); }; then
17532 test -n "$verbose" && echo "$as_me:17532: result: ... -$cf_opt" >&5
17533 echo "${ECHO_T}... -$cf_opt" >&6
17536 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
17539 case $GCC_VERSION in
17541 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17543 echo "${as_me:-configure}:17543: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17549 case $GCC_VERSION in
17551 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17553 echo "${as_me:-configure}:17553: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17559 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17562 CFLAGS="$cf_save_CFLAGS"
17569 echo "$as_me:17569: checking if you want to use dmalloc for testing" >&5
17570 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
17572 # Check whether --with-dmalloc or --without-dmalloc was given.
17573 if test "${with_dmalloc+set}" = set; then
17574 withval="$with_dmalloc"
17576 cat >>confdefs.h <<EOF
17577 #define USE_DMALLOC 1
17580 : ${with_cflags:=-g}
17581 : ${with_no_leaks:=yes}
17586 echo "$as_me:17586: result: ${with_dmalloc:-no}" >&5
17587 echo "${ECHO_T}${with_dmalloc:-no}" >&6
17589 case .$with_cflags in
17599 cf_new_extra_cppflags=
17601 for cf_add_cflags in -g
17603 case $cf_fix_cppflags in
17605 case $cf_add_cflags in
17606 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17607 case $cf_add_cflags in
17609 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17611 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17612 && test -z "${cf_tst_cflags}" \
17613 && cf_fix_cppflags=yes
17615 if test $cf_fix_cppflags = yes ; then
17616 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17618 elif test "${cf_tst_cflags}" = "\"'" ; then
17619 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17624 case "$CPPFLAGS" in
17628 case $cf_add_cflags in
17630 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17632 CPPFLAGS=`echo "$CPPFLAGS" | \
17633 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17634 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17638 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17643 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17648 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17650 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17652 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17653 && test -z "${cf_tst_cflags}" \
17654 && cf_fix_cppflags=no
17659 if test -n "$cf_new_cflags" ; then
17661 CFLAGS="$CFLAGS $cf_new_cflags"
17664 if test -n "$cf_new_cppflags" ; then
17666 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17669 if test -n "$cf_new_extra_cppflags" ; then
17671 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17679 if test "$with_dmalloc" = yes ; then
17680 echo "$as_me:17680: checking for dmalloc.h" >&5
17681 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
17682 if test "${ac_cv_header_dmalloc_h+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17685 cat >conftest.$ac_ext <<_ACEOF
17686 #line 17686 "configure"
17687 #include "confdefs.h"
17688 #include <dmalloc.h>
17690 if { (eval echo "$as_me:17690: \"$ac_cpp conftest.$ac_ext\"") >&5
17691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17693 egrep -v '^ *\+' conftest.er1 >conftest.err
17695 cat conftest.err >&5
17696 echo "$as_me:17696: \$? = $ac_status" >&5
17697 (exit $ac_status); } >/dev/null; then
17698 if test -s conftest.err; then
17699 ac_cpp_err=$ac_c_preproc_warn_flag
17706 if test -z "$ac_cpp_err"; then
17707 ac_cv_header_dmalloc_h=yes
17709 echo "$as_me: failed program was:" >&5
17710 cat conftest.$ac_ext >&5
17711 ac_cv_header_dmalloc_h=no
17713 rm -f conftest.err conftest.$ac_ext
17715 echo "$as_me:17715: result: $ac_cv_header_dmalloc_h" >&5
17716 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
17717 if test $ac_cv_header_dmalloc_h = yes; then
17719 echo "$as_me:17719: checking for dmalloc_debug in -ldmalloc" >&5
17720 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
17721 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 ac_check_lib_save_LIBS=$LIBS
17725 LIBS="-ldmalloc $LIBS"
17726 cat >conftest.$ac_ext <<_ACEOF
17727 #line 17727 "configure"
17728 #include "confdefs.h"
17730 /* Override any gcc2 internal prototype to avoid an error. */
17734 /* We use char because int might match the return type of a gcc2
17735 builtin and then its argument prototype would still apply. */
17736 char dmalloc_debug ();
17745 rm -f conftest.$ac_objext conftest$ac_exeext
17746 if { (eval echo "$as_me:17746: \"$ac_link\"") >&5
17747 (eval $ac_link) 2>&5
17749 echo "$as_me:17749: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
17751 { ac_try='test -s conftest$ac_exeext'
17752 { (eval echo "$as_me:17752: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17755 echo "$as_me:17755: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 ac_cv_lib_dmalloc_dmalloc_debug=yes
17759 echo "$as_me: failed program was:" >&5
17760 cat conftest.$ac_ext >&5
17761 ac_cv_lib_dmalloc_dmalloc_debug=no
17763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17764 LIBS=$ac_check_lib_save_LIBS
17766 echo "$as_me:17766: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
17767 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
17768 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
17769 cat >>confdefs.h <<EOF
17770 #define HAVE_LIBDMALLOC 1
17773 LIBS="-ldmalloc $LIBS"
17781 echo "$as_me:17781: checking if you want to use dbmalloc for testing" >&5
17782 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
17784 # Check whether --with-dbmalloc or --without-dbmalloc was given.
17785 if test "${with_dbmalloc+set}" = set; then
17786 withval="$with_dbmalloc"
17788 cat >>confdefs.h <<EOF
17789 #define USE_DBMALLOC 1
17792 : ${with_cflags:=-g}
17793 : ${with_no_leaks:=yes}
17798 echo "$as_me:17798: result: ${with_dbmalloc:-no}" >&5
17799 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
17801 case .$with_cflags in
17811 cf_new_extra_cppflags=
17813 for cf_add_cflags in -g
17815 case $cf_fix_cppflags in
17817 case $cf_add_cflags in
17818 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17819 case $cf_add_cflags in
17821 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17823 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17824 && test -z "${cf_tst_cflags}" \
17825 && cf_fix_cppflags=yes
17827 if test $cf_fix_cppflags = yes ; then
17828 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17830 elif test "${cf_tst_cflags}" = "\"'" ; then
17831 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17836 case "$CPPFLAGS" in
17840 case $cf_add_cflags in
17842 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17844 CPPFLAGS=`echo "$CPPFLAGS" | \
17845 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17846 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17850 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17855 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17860 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17862 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17864 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17865 && test -z "${cf_tst_cflags}" \
17866 && cf_fix_cppflags=no
17871 if test -n "$cf_new_cflags" ; then
17873 CFLAGS="$CFLAGS $cf_new_cflags"
17876 if test -n "$cf_new_cppflags" ; then
17878 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17881 if test -n "$cf_new_extra_cppflags" ; then
17883 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17891 if test "$with_dbmalloc" = yes ; then
17892 echo "$as_me:17892: checking for dbmalloc.h" >&5
17893 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
17894 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
17895 echo $ECHO_N "(cached) $ECHO_C" >&6
17897 cat >conftest.$ac_ext <<_ACEOF
17898 #line 17898 "configure"
17899 #include "confdefs.h"
17900 #include <dbmalloc.h>
17902 if { (eval echo "$as_me:17902: \"$ac_cpp conftest.$ac_ext\"") >&5
17903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17905 egrep -v '^ *\+' conftest.er1 >conftest.err
17907 cat conftest.err >&5
17908 echo "$as_me:17908: \$? = $ac_status" >&5
17909 (exit $ac_status); } >/dev/null; then
17910 if test -s conftest.err; then
17911 ac_cpp_err=$ac_c_preproc_warn_flag
17918 if test -z "$ac_cpp_err"; then
17919 ac_cv_header_dbmalloc_h=yes
17921 echo "$as_me: failed program was:" >&5
17922 cat conftest.$ac_ext >&5
17923 ac_cv_header_dbmalloc_h=no
17925 rm -f conftest.err conftest.$ac_ext
17927 echo "$as_me:17927: result: $ac_cv_header_dbmalloc_h" >&5
17928 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
17929 if test $ac_cv_header_dbmalloc_h = yes; then
17931 echo "$as_me:17931: checking for debug_malloc in -ldbmalloc" >&5
17932 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
17933 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
17934 echo $ECHO_N "(cached) $ECHO_C" >&6
17936 ac_check_lib_save_LIBS=$LIBS
17937 LIBS="-ldbmalloc $LIBS"
17938 cat >conftest.$ac_ext <<_ACEOF
17939 #line 17939 "configure"
17940 #include "confdefs.h"
17942 /* Override any gcc2 internal prototype to avoid an error. */
17946 /* We use char because int might match the return type of a gcc2
17947 builtin and then its argument prototype would still apply. */
17948 char debug_malloc ();
17957 rm -f conftest.$ac_objext conftest$ac_exeext
17958 if { (eval echo "$as_me:17958: \"$ac_link\"") >&5
17959 (eval $ac_link) 2>&5
17961 echo "$as_me:17961: \$? = $ac_status" >&5
17962 (exit $ac_status); } &&
17963 { ac_try='test -s conftest$ac_exeext'
17964 { (eval echo "$as_me:17964: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17967 echo "$as_me:17967: \$? = $ac_status" >&5
17968 (exit $ac_status); }; }; then
17969 ac_cv_lib_dbmalloc_debug_malloc=yes
17971 echo "$as_me: failed program was:" >&5
17972 cat conftest.$ac_ext >&5
17973 ac_cv_lib_dbmalloc_debug_malloc=no
17975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17976 LIBS=$ac_check_lib_save_LIBS
17978 echo "$as_me:17978: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
17979 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
17980 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
17981 cat >>confdefs.h <<EOF
17982 #define HAVE_LIBDBMALLOC 1
17985 LIBS="-ldbmalloc $LIBS"
17993 echo "$as_me:17993: checking if you want to use valgrind for testing" >&5
17994 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
17996 # Check whether --with-valgrind or --without-valgrind was given.
17997 if test "${with_valgrind+set}" = set; then
17998 withval="$with_valgrind"
18000 cat >>confdefs.h <<EOF
18001 #define USE_VALGRIND 1
18004 : ${with_cflags:=-g}
18005 : ${with_no_leaks:=yes}
18010 echo "$as_me:18010: result: ${with_valgrind:-no}" >&5
18011 echo "${ECHO_T}${with_valgrind:-no}" >&6
18013 case .$with_cflags in
18023 cf_new_extra_cppflags=
18025 for cf_add_cflags in -g
18027 case $cf_fix_cppflags in
18029 case $cf_add_cflags in
18030 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18031 case $cf_add_cflags in
18033 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18035 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18036 && test -z "${cf_tst_cflags}" \
18037 && cf_fix_cppflags=yes
18039 if test $cf_fix_cppflags = yes ; then
18040 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
18042 elif test "${cf_tst_cflags}" = "\"'" ; then
18043 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
18048 case "$CPPFLAGS" in
18052 case $cf_add_cflags in
18054 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18056 CPPFLAGS=`echo "$CPPFLAGS" | \
18057 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18058 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18062 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
18067 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
18072 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
18074 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18076 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18077 && test -z "${cf_tst_cflags}" \
18078 && cf_fix_cppflags=no
18083 if test -n "$cf_new_cflags" ; then
18085 CFLAGS="$CFLAGS $cf_new_cflags"
18088 if test -n "$cf_new_cppflags" ; then
18090 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
18093 if test -n "$cf_new_extra_cppflags" ; then
18095 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
18103 echo "$as_me:18103: checking if you want to perform memory-leak testing" >&5
18104 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18106 # Check whether --enable-leaks or --disable-leaks was given.
18107 if test "${enable_leaks+set}" = set; then
18108 enableval="$enable_leaks"
18109 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18111 : ${with_no_leaks:=no}
18113 echo "$as_me:18113: result: $with_no_leaks" >&5
18114 echo "${ECHO_T}$with_no_leaks" >&6
18116 if test "$with_no_leaks" = yes ; then
18118 cat >>confdefs.h <<\EOF
18122 cat >>confdefs.h <<\EOF
18123 #define YY_NO_LEAKS 1
18129 echo "$as_me:18129: checking for an rpath option" >&5
18130 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
18131 case $cf_cv_system_name in
18133 if test "$GCC" = yes; then
18134 LD_RPATH_OPT="-Wl,-rpath,"
18136 LD_RPATH_OPT="-rpath "
18139 (linux*|gnu*|k*bsd*-gnu|freebsd*)
18140 LD_RPATH_OPT="-Wl,-rpath,"
18142 (openbsd[2-9].*|mirbsd*)
18143 LD_RPATH_OPT="-Wl,-rpath,"
18146 LD_RPATH_OPT="-rpath "
18149 LD_RPATH_OPT="-Wl,-rpath,"
18152 LD_RPATH_OPT="-rpath "
18160 echo "$as_me:18160: result: $LD_RPATH_OPT" >&5
18161 echo "${ECHO_T}$LD_RPATH_OPT" >&6
18163 case "x$LD_RPATH_OPT" in
18165 echo "$as_me:18165: checking if we need a space after rpath option" >&5
18166 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
18167 cf_save_LIBS="$LIBS"
18169 cf_add_libs="${LD_RPATH_OPT}$libdir"
18170 # Filter out duplicates - this happens with badly-designed ".pc" files...
18171 for cf_add_1lib in $LIBS
18173 for cf_add_2lib in $cf_add_libs
18175 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18181 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18183 LIBS="$cf_add_libs"
18185 cat >conftest.$ac_ext <<_ACEOF
18186 #line 18186 "configure"
18187 #include "confdefs.h"
18197 rm -f conftest.$ac_objext conftest$ac_exeext
18198 if { (eval echo "$as_me:18198: \"$ac_link\"") >&5
18199 (eval $ac_link) 2>&5
18201 echo "$as_me:18201: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try='test -s conftest$ac_exeext'
18204 { (eval echo "$as_me:18204: \"$ac_try\"") >&5
18205 (eval $ac_try) 2>&5
18207 echo "$as_me:18207: \$? = $ac_status" >&5
18208 (exit $ac_status); }; }; then
18211 echo "$as_me: failed program was:" >&5
18212 cat conftest.$ac_ext >&5
18215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18216 LIBS="$cf_save_LIBS"
18217 echo "$as_me:18217: result: $cf_rpath_space" >&5
18218 echo "${ECHO_T}$cf_rpath_space" >&6
18219 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
18223 echo "$as_me:18223: checking if rpath-hack should be disabled" >&5
18224 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
18226 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
18227 if test "${enable_rpath_hack+set}" = set; then
18228 enableval="$enable_rpath_hack"
18229 test "$enableval" != no && enableval=yes
18230 if test "$enableval" != "yes" ; then
18231 cf_disable_rpath_hack=yes
18233 cf_disable_rpath_hack=no
18237 cf_disable_rpath_hack=no
18240 echo "$as_me:18240: result: $cf_disable_rpath_hack" >&5
18241 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
18242 if test "$cf_disable_rpath_hack" = no ; then
18244 echo "$as_me:18244: checking for updated LDFLAGS" >&5
18245 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
18246 if test -n "$LD_RPATH_OPT" ; then
18247 echo "$as_me:18247: result: maybe" >&5
18248 echo "${ECHO_T}maybe" >&6
18252 # Extract the first word of "$ac_prog", so it can be a program name with args.
18253 set dummy $ac_prog; ac_word=$2
18254 echo "$as_me:18254: checking for $ac_word" >&5
18255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18256 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
18257 echo $ECHO_N "(cached) $ECHO_C" >&6
18259 if test -n "$cf_ldd_prog"; then
18260 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
18262 ac_save_IFS=$IFS; IFS=$ac_path_separator
18264 for ac_dir in $ac_dummy; do
18266 test -z "$ac_dir" && ac_dir=.
18267 $as_executable_p "$ac_dir/$ac_word" || continue
18268 ac_cv_prog_cf_ldd_prog="$ac_prog"
18269 echo "$as_me:18269: found $ac_dir/$ac_word" >&5
18275 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
18276 if test -n "$cf_ldd_prog"; then
18277 echo "$as_me:18277: result: $cf_ldd_prog" >&5
18278 echo "${ECHO_T}$cf_ldd_prog" >&6
18280 echo "$as_me:18280: result: no" >&5
18281 echo "${ECHO_T}no" >&6
18284 test -n "$cf_ldd_prog" && break
18286 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
18288 cf_rpath_list="/usr/lib /lib"
18289 if test "$cf_ldd_prog" != no
18293 cat >conftest.$ac_ext <<_ACEOF
18294 #line 18294 "configure"
18295 #include "confdefs.h"
18305 rm -f conftest.$ac_objext conftest$ac_exeext
18306 if { (eval echo "$as_me:18306: \"$ac_link\"") >&5
18307 (eval $ac_link) 2>&5
18309 echo "$as_me:18309: \$? = $ac_status" >&5
18310 (exit $ac_status); } &&
18311 { ac_try='test -s conftest$ac_exeext'
18312 { (eval echo "$as_me:18312: \"$ac_try\"") >&5
18313 (eval $ac_try) 2>&5
18315 echo "$as_me:18315: \$? = $ac_status" >&5
18316 (exit $ac_status); }; }; then
18317 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
18318 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
18320 echo "$as_me: failed program was:" >&5
18321 cat conftest.$ac_ext >&5
18323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18325 # If we passed the link-test, but get a "not found" on a given library,
18326 # this could be due to inept reconfiguration of gcc to make it only
18327 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
18328 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
18329 # /usr/local libraries.
18330 if test -n "$cf_rpath_oops"
18332 for cf_rpath_src in $cf_rpath_oops
18334 for cf_rpath_dir in \
18339 if test -f $cf_rpath_dir/lib/$cf_rpath_src
18341 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
18343 echo "${as_me:-configure}:18343: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
18345 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
18353 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
18355 echo "${as_me:-configure}:18355: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
18357 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
18359 echo "${as_me:-configure}:18359: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
18362 for cf_rpath_src in $LDFLAGS
18364 case $cf_rpath_src in
18367 # check if this refers to a directory which we will ignore
18369 if test -n "$cf_rpath_list"
18371 for cf_rpath_item in $cf_rpath_list
18373 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
18381 if test "$cf_rpath_skip" = no
18383 # transform the option
18384 if test "$LD_RPATH_OPT" = "-R " ; then
18385 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
18387 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
18390 # if we have not already added this, add it now
18391 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
18392 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
18394 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
18396 echo "${as_me:-configure}:18396: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
18398 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
18403 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
18405 LDFLAGS=$cf_rpath_dst
18407 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
18409 echo "${as_me:-configure}:18409: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
18411 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
18413 echo "${as_me:-configure}:18413: testing ...checking LIBS $LIBS ..." 1>&5
18416 for cf_rpath_src in $LIBS
18418 case $cf_rpath_src in
18421 # check if this refers to a directory which we will ignore
18423 if test -n "$cf_rpath_list"
18425 for cf_rpath_item in $cf_rpath_list
18427 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
18435 if test "$cf_rpath_skip" = no
18437 # transform the option
18438 if test "$LD_RPATH_OPT" = "-R " ; then
18439 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
18441 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
18444 # if we have not already added this, add it now
18445 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
18446 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
18448 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
18450 echo "${as_me:-configure}:18450: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
18452 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
18457 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
18461 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
18463 echo "${as_me:-configure}:18463: testing ...checked LIBS $LIBS ..." 1>&5
18465 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
18467 echo "${as_me:-configure}:18467: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
18470 echo "$as_me:18470: result: no" >&5
18471 echo "${ECHO_T}no" >&6
18479 ac_config_files="$ac_config_files Makefile"
18480 ac_config_commands="$ac_config_commands default"
18481 cat >confcache <<\_ACEOF
18482 # This file is a shell script that caches the results of configure
18483 # tests run on this system so they can be shared between configure
18484 # scripts and configure runs, see configure's option --config-cache.
18485 # It is not useful on other systems. If it contains results you don't
18486 # want to keep, you may remove or edit it.
18488 # config.status only pays attention to the cache file if you give it
18489 # the --recheck option to rerun configure.
18491 # `ac_cv_env_foo' variables (set or unset) will be overriden when
18492 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18493 # following values.
18497 # The following way of writing the cache mishandles newlines in values,
18498 # but we know of no workaround that is simple, portable, and efficient.
18499 # So, don't put newlines in cache variables' values.
18500 # Ultrix sh set writes to stderr and can't be redirected directly,
18501 # and sets the high bit in the cache file unless we assign to the vars.
18504 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18506 # `set' does not quote correctly, so add quotes (double-quote
18507 # substitution turns \\\\ into \\, and sed turns \\ into \).
18510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18513 # `set' quotes correctly as required by POSIX, so do not add quotes.
18515 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18522 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18524 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18526 if cmp -s $cache_file confcache; then :; else
18527 if test -w $cache_file; then
18528 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18529 cat confcache >$cache_file
18531 echo "not updating unwritable cache $cache_file"
18536 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18537 # Let make expand exec_prefix.
18538 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18540 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18541 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18542 # trailing colons and then remove the whole line if VPATH becomes empty
18543 # (actually we leave an empty line to preserve line numbers).
18544 if test "x$srcdir" = x.; then
18545 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18546 s/:*\$(srcdir):*/:/;
18547 s/:*\${srcdir}:*/:/;
18549 s/^\([^=]*=[ ]*\):*/\1/;
18555 DEFS=-DHAVE_CONFIG_H
18557 : ${CONFIG_STATUS=./config.status}
18558 ac_clean_files_save=$ac_clean_files
18559 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18560 { echo "$as_me:18560: creating $CONFIG_STATUS" >&5
18561 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18562 cat >$CONFIG_STATUS <<_ACEOF
18564 # Generated automatically by configure.
18565 # Run this file to recreate the current configuration.
18566 # Compiler output produced by configure, useful for debugging
18567 # configure, is in config.log if it exists.
18570 SHELL=\${CONFIG_SHELL-$SHELL}
18571 ac_cs_invocation="\$0 \$@"
18575 cat >>$CONFIG_STATUS <<\_ACEOF
18576 # Be Bourne compatible
18577 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18580 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18584 # Name of the executable.
18585 as_me=`echo "$0" |sed 's,.*[\\/],,'`
18587 if expr a : '\(a\)' >/dev/null 2>&1; then
18593 rm -f conf$$ conf$$.exe conf$$.file
18595 if ln -s conf$$.file conf$$ 2>/dev/null; then
18596 # We could just check for DJGPP; but this test a) works b) is more generic
18597 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18598 if test -f conf$$.exe; then
18599 # Don't use ln at all; we don't have any links
18604 elif ln conf$$.file conf$$ 2>/dev/null; then
18609 rm -f conf$$ conf$$.exe conf$$.file
18611 as_executable_p="test -f"
18613 # Support unset when possible.
18614 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18621 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
18622 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
18623 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
18624 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
18625 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
18626 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
18627 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
18628 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
18631 # We need space, tab and new line, in precisely that order.
18637 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
18643 # Files that config.status was made for.
18644 if test -n "$ac_config_files"; then
18645 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18648 if test -n "$ac_config_headers"; then
18649 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18652 if test -n "$ac_config_links"; then
18653 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18656 if test -n "$ac_config_commands"; then
18657 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18660 cat >>$CONFIG_STATUS <<\EOF
18663 \`$as_me' instantiates files from templates according to the
18664 current configuration.
18666 Usage: $0 [OPTIONS] [FILE]...
18668 -h, --help print this help, then exit
18669 -V, --version print version number, then exit
18670 -d, --debug don't remove temporary files
18671 --recheck update $as_me by reconfiguring in the same conditions
18672 --file=FILE[:TEMPLATE]
18673 instantiate the configuration file FILE
18674 --header=FILE[:TEMPLATE]
18675 instantiate the configuration header FILE
18677 Configuration files:
18680 Configuration headers:
18683 Configuration commands:
18686 Report bugs to <dickey@invisible-island.net>."
18689 cat >>$CONFIG_STATUS <<EOF
18692 configured by $0, generated by GNU Autoconf 2.52.20150926,
18693 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18695 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18696 Free Software Foundation, Inc.
18697 This config.status script is free software; the Free Software Foundation
18698 gives unlimited permission to copy, distribute and modify it."
18703 cat >>$CONFIG_STATUS <<\EOF
18704 # If no file are specified by the user, then we need to provide default
18705 # value. By we need to know if files were specified by the user.
18711 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18712 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18714 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18718 *) # This is not an option, so the user has probably given explicit
18720 ac_need_defaults=false;;
18724 # Handling of the options.
18726 cat >>$CONFIG_STATUS <<EOF
18727 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18728 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18729 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18731 cat >>$CONFIG_STATUS <<\EOF
18732 --version | --vers* | -V )
18733 echo "$ac_cs_version"; exit 0 ;;
18735 # Conflict between --help and --header
18736 { { echo "$as_me:18736: error: ambiguous option: $1
18737 Try \`$0 --help' for more information." >&5
18738 echo "$as_me: error: ambiguous option: $1
18739 Try \`$0 --help' for more information." >&2;}
18740 { (exit 1); exit 1; }; };;
18741 --help | --hel | -h )
18742 echo "$ac_cs_usage"; exit 0 ;;
18743 --debug | --d* | -d )
18745 --file | --fil | --fi | --f )
18747 CONFIG_FILES="$CONFIG_FILES $1"
18748 ac_need_defaults=false;;
18749 --header | --heade | --head | --hea )
18751 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18752 ac_need_defaults=false;;
18754 # This is an error.
18755 -*) { { echo "$as_me:18755: error: unrecognized option: $1
18756 Try \`$0 --help' for more information." >&5
18757 echo "$as_me: error: unrecognized option: $1
18758 Try \`$0 --help' for more information." >&2;}
18759 { (exit 1); exit 1; }; } ;;
18761 *) ac_config_targets="$ac_config_targets $1" ;;
18770 ## ----------------------- ##
18771 ## Running config.status. ##
18772 ## ----------------------- ##
18774 This file was extended by $as_me 2.52.20150926, executed with
18775 CONFIG_FILES = $CONFIG_FILES
18776 CONFIG_HEADERS = $CONFIG_HEADERS
18777 CONFIG_LINKS = $CONFIG_LINKS
18778 CONFIG_COMMANDS = $CONFIG_COMMANDS
18779 > $ac_cs_invocation
18780 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18785 cat >>$CONFIG_STATUS <<EOF
18787 # INIT-COMMANDS section.
18797 cat >>$CONFIG_STATUS <<\EOF
18798 for ac_config_target in $ac_config_targets
18800 case "$ac_config_target" in
18801 # Handling of arguments.
18802 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18803 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18804 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
18805 *) { { echo "$as_me:18805: error: invalid argument: $ac_config_target" >&5
18806 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18807 { (exit 1); exit 1; }; };;
18811 # If the user did not use the arguments to specify the items to instantiate,
18812 # then the envvar interface is used. Set only those that are not.
18813 # We use the long form for the default assignment because of an extremely
18814 # bizarre bug on SunOS 4.1.3.
18815 if $ac_need_defaults; then
18816 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18817 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18818 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18821 # Create a temporary directory, and hook for its removal unless debugging.
18824 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18825 trap '{ (exit 1); exit 1; }' 1 2 13 15
18828 # Create a (secure) tmp directory for tmp files.
18831 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18832 test -n "$tmp" && test -d "$tmp"
18835 tmp=$TMPDIR/cs$$-$RANDOM
18836 (umask 077 && mkdir $tmp)
18839 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18840 { (exit 1); exit 1; }
18845 cat >>$CONFIG_STATUS <<EOF
18848 # CONFIG_FILES section.
18851 # No need to generate the scripts if there are no CONFIG_FILES.
18852 # This happens for instance when ./config.status config.h
18853 if test -n "\$CONFIG_FILES"; then
18854 # Protect against being on the right side of a sed subst in config.status.
18855 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18856 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18857 s,@SHELL@,$SHELL,;t t
18858 s,@exec_prefix@,$exec_prefix,;t t
18859 s,@prefix@,$prefix,;t t
18860 s,@program_transform_name@,$program_transform_name,;t t
18861 s,@bindir@,$bindir,;t t
18862 s,@sbindir@,$sbindir,;t t
18863 s,@libexecdir@,$libexecdir,;t t
18864 s,@datarootdir@,$datarootdir,;t t
18865 s,@datadir@,$datadir,;t t
18866 s,@sysconfdir@,$sysconfdir,;t t
18867 s,@sharedstatedir@,$sharedstatedir,;t t
18868 s,@localstatedir@,$localstatedir,;t t
18869 s,@libdir@,$libdir,;t t
18870 s,@includedir@,$includedir,;t t
18871 s,@oldincludedir@,$oldincludedir,;t t
18872 s,@infodir@,$infodir,;t t
18873 s,@mandir@,$mandir,;t t
18874 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18875 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18876 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18877 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18878 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18879 s,@build_alias@,$build_alias,;t t
18880 s,@host_alias@,$host_alias,;t t
18881 s,@target_alias@,$target_alias,;t t
18882 s,@ECHO_C@,$ECHO_C,;t t
18883 s,@ECHO_N@,$ECHO_N,;t t
18884 s,@ECHO_T@,$ECHO_T,;t t
18885 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18886 s,@DEFS@,$DEFS,;t t
18887 s,@LIBS@,$LIBS,;t t
18888 s,@build@,$build,;t t
18889 s,@build_cpu@,$build_cpu,;t t
18890 s,@build_vendor@,$build_vendor,;t t
18891 s,@build_os@,$build_os,;t t
18892 s,@host@,$host,;t t
18893 s,@host_cpu@,$host_cpu,;t t
18894 s,@host_vendor@,$host_vendor,;t t
18895 s,@host_os@,$host_os,;t t
18896 s,@SET_MAKE@,$SET_MAKE,;t t
18898 s,@CFLAGS@,$CFLAGS,;t t
18899 s,@LDFLAGS@,$LDFLAGS,;t t
18900 s,@CPPFLAGS@,$CPPFLAGS,;t t
18901 s,@ac_ct_CC@,$ac_ct_CC,;t t
18902 s,@EXEEXT@,$EXEEXT,;t t
18903 s,@OBJEXT@,$OBJEXT,;t t
18904 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
18907 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18908 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18909 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18910 s,@LINT@,$LINT,;t t
18911 s,@LINT_OPTS@,$LINT_OPTS,;t t
18912 s,@CTAGS@,$CTAGS,;t t
18913 s,@ETAGS@,$ETAGS,;t t
18914 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
18915 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
18916 s,@MATH_LIB@,$MATH_LIB,;t t
18917 s,@top_builddir@,$top_builddir,;t t
18918 s,@CC_G_OPT@,$CC_G_OPT,;t t
18919 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
18920 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
18921 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
18922 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
18924 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
18925 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
18926 s,@LD_MODEL@,$LD_MODEL,;t t
18927 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
18928 s,@LIBTOOL@,$LIBTOOL,;t t
18929 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
18930 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
18931 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
18932 s,@LIB_LINK@,$LIB_LINK,;t t
18933 s,@LINK_TESTS@,$LINK_TESTS,;t t
18934 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18935 s,@PACKAGE@,$PACKAGE,;t t
18936 s,@PTHREAD@,$PTHREAD,;t t
18937 s,@TEST_ARGS@,$TEST_ARGS,;t t
18938 s,@TEST_DEPS@,$TEST_DEPS,;t t
18939 s,@TEST_LIBS@,$TEST_LIBS,;t t
18940 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
18941 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
18942 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
18943 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
18944 s,@includesubdir@,$includesubdir,;t t
18945 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18946 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
18947 s,@ECHO_LT@,$ECHO_LT,;t t
18948 s,@ECHO_LD@,$ECHO_LD,;t t
18949 s,@RULE_CC@,$RULE_CC,;t t
18950 s,@SHOW_CC@,$SHOW_CC,;t t
18951 s,@ECHO_CC@,$ECHO_CC,;t t
18952 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
18953 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
18954 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
18955 s,@X_CFLAGS@,$X_CFLAGS,;t t
18956 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18957 s,@X_LIBS@,$X_LIBS,;t t
18958 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18959 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
18960 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
18961 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
18962 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
18963 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
18968 cat >>$CONFIG_STATUS <<\EOF
18969 # Split the substitutions into bite-sized pieces for seds with
18970 # small command number limits, like on Digital OSF/1 and HP-UX.
18971 ac_max_sed_lines=48
18972 ac_sed_frag=1 # Number of current file.
18973 ac_beg=1 # First line for current file.
18974 ac_end=$ac_max_sed_lines # Line after last line for current file.
18977 while $ac_more_lines; do
18978 if test $ac_beg -gt 1; then
18979 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18981 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18983 if test ! -s $tmp/subs.frag; then
18984 ac_more_lines=false
18986 # The purpose of the label and of the branching condition is to
18987 # speed up the sed processing (if there are no `@' at all, there
18988 # is no need to browse any of the substitutions).
18989 # These are the two extra sed commands mentioned above.
18991 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18992 # It is possible to make a multiline substitution using escaped newlines.
18993 # Ensure that we do not split the substitution between script fragments.
18995 ac_END=`expr $ac_end + $ac_max_sed_lines`
18996 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
18997 if test -s $tmp/subs.next; then
18998 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
18999 if test ! -s $tmp/subs.edit; then
19000 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
19001 if test ! -s $tmp/subs.edit; then
19002 if test $ac_beg -gt 1; then
19003 ac_end=`expr $ac_end - 1`
19010 if test -z "$ac_sed_cmds"; then
19011 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19013 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19015 ac_sed_frag=`expr $ac_sed_frag + 1`
19017 ac_end=`expr $ac_end + $ac_max_sed_lines`
19020 if test -z "$ac_sed_cmds"; then
19023 fi # test -n "$CONFIG_FILES"
19026 cat >>$CONFIG_STATUS <<\EOF
19027 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19028 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19030 - | *:- | *:-:* ) # input from stdin
19032 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19033 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19034 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19035 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19036 * ) ac_file_in=$ac_file.in ;;
19039 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19040 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19041 X"$ac_file" : 'X\(//\)[^/]' \| \
19042 X"$ac_file" : 'X\(//\)$' \| \
19043 X"$ac_file" : 'X\(/\)' \| \
19044 . : '\(.\)' 2>/dev/null ||
19046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19047 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19048 /^X\(\/\/\)$/{ s//\1/; q; }
19049 /^X\(\/\).*/{ s//\1/; q; }
19051 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19052 { case "$ac_dir" in
19053 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19057 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19058 case $as_mkdir_dir in
19059 # Skip DOS drivespec
19060 ?:) as_incr_dir=$as_mkdir_dir ;;
19062 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19063 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19068 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
19069 # A "../" for each directory in $ac_dir_suffix.
19070 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
19072 ac_dir_suffix= ac_dots=
19077 if test -z "$ac_dots"; then
19080 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
19082 [\\/]* | ?:[\\/]* )
19083 ac_srcdir=$srcdir$ac_dir_suffix;
19084 ac_top_srcdir=$srcdir ;;
19085 *) # Relative path.
19086 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
19087 ac_top_srcdir=$ac_dots$srcdir ;;
19091 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19092 *) ac_INSTALL=$ac_dots$INSTALL ;;
19095 if test x"$ac_file" != x-; then
19096 { echo "$as_me:19096: creating $ac_file" >&5
19097 echo "$as_me: creating $ac_file" >&6;}
19100 # Let's still pretend it is `configure' which instantiates (i.e., don't
19101 # use $as_me), people would be surprised to read:
19102 # /* config.h. Generated automatically by config.status. */
19103 configure_input="Generated automatically from `echo $ac_file_in |
19104 sed 's,.*/,,'` by configure."
19106 # First look for the input files in the build tree, otherwise in the
19108 ac_file_inputs=`IFS=:
19109 for f in $ac_file_in; do
19111 -) echo $tmp/stdin ;;
19113 # Absolute (can't be DOS-style, as IFS=:)
19114 test -f "$f" || { { echo "$as_me:19114: error: cannot find input file: $f" >&5
19115 echo "$as_me: error: cannot find input file: $f" >&2;}
19116 { (exit 1); exit 1; }; }
19119 if test -f "$f"; then
19122 elif test -f "$srcdir/$f"; then
19127 { { echo "$as_me:19127: error: cannot find input file: $f" >&5
19128 echo "$as_me: error: cannot find input file: $f" >&2;}
19129 { (exit 1); exit 1; }; }
19132 done` || { (exit 1); exit 1; }
19134 cat >>$CONFIG_STATUS <<\EOF
19135 ac_warn_datarootdir=no
19136 if test x"$ac_file" != x-; then
19137 for ac_item in $ac_file_inputs
19139 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
19140 if test -n "$ac_seen"; then
19141 ac_used=`grep '@datarootdir@' $ac_item`
19142 if test -z "$ac_used"; then
19143 { echo "$as_me:19143: WARNING: datarootdir was used implicitly but not set:
19145 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
19147 ac_warn_datarootdir=yes
19150 ac_seen=`grep '${datarootdir}' $ac_item`
19151 if test -n "$ac_seen"; then
19152 { echo "$as_me:19152: WARNING: datarootdir was used explicitly but not set:
19154 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
19156 ac_warn_datarootdir=yes
19161 if test "x$ac_warn_datarootdir" = xyes; then
19162 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
19166 cat >>$CONFIG_STATUS <<EOF
19170 cat >>$CONFIG_STATUS <<\EOF
19172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19173 s,@configure_input@,$configure_input,;t t
19174 s,@srcdir@,$ac_srcdir,;t t
19175 s,@top_srcdir@,$ac_top_srcdir,;t t
19176 s,@INSTALL@,$ac_INSTALL,;t t
19177 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19179 if test x"$ac_file" != x-; then
19180 cp $tmp/out $ac_file
19182 for ac_name in prefix exec_prefix datarootdir
19184 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
19185 if test -n "$ac_seen"; then
19186 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
19187 if test -z "$ac_init"; then
19188 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
19189 { echo "$as_me:19189: WARNING: Variable $ac_name is used but was not set:
19191 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
19196 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
19197 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
19198 if test -s $tmp/out; then
19199 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
19200 { echo "$as_me:19200: WARNING: Some variables may not be substituted:
19202 echo "$as_me: WARNING: Some variables may not be substituted:
19212 cat >>$CONFIG_STATUS <<\EOF
19215 # CONFIG_HEADER section.
19218 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19219 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19221 # ac_d sets the value in "#define NAME VALUE" lines.
19222 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19223 ac_dB='[ ].*$,\1#\2'
19226 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19227 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19228 ac_iB='\([ ]\),\1#\2define\3'
19231 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19232 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19233 ac_uB='$,\1#\2define\3'
19237 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19238 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19240 - | *:- | *:-:* ) # input from stdin
19242 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19243 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19244 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19245 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19246 * ) ac_file_in=$ac_file.in ;;
19249 test x"$ac_file" != x- && { echo "$as_me:19249: creating $ac_file" >&5
19250 echo "$as_me: creating $ac_file" >&6;}
19252 # First look for the input files in the build tree, otherwise in the
19254 ac_file_inputs=`IFS=:
19255 for f in $ac_file_in; do
19257 -) echo $tmp/stdin ;;
19259 # Absolute (can't be DOS-style, as IFS=:)
19260 test -f "$f" || { { echo "$as_me:19260: error: cannot find input file: $f" >&5
19261 echo "$as_me: error: cannot find input file: $f" >&2;}
19262 { (exit 1); exit 1; }; }
19265 if test -f "$f"; then
19268 elif test -f "$srcdir/$f"; then
19273 { { echo "$as_me:19273: error: cannot find input file: $f" >&5
19274 echo "$as_me: error: cannot find input file: $f" >&2;}
19275 { (exit 1); exit 1; }; }
19278 done` || { (exit 1); exit 1; }
19279 # Remove the trailing spaces.
19280 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19284 # Transform confdefs.h into a list of #define's. We won't use it as a sed
19285 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
19286 # be either 'cat' or 'sort'.
19287 cat confdefs.h | uniq >conftest.vals
19289 # Break up conftest.vals because some shells have a limit on
19290 # the size of here documents, and old seds have small limits too.
19292 rm -f conftest.tail
19293 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
19294 while grep . conftest.vals >/dev/null
19296 # Write chunks of a limited-size here document to conftest.frag.
19297 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
19298 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
19299 echo 'CEOF' >> $CONFIG_STATUS
19300 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19301 rm -f conftest.vals
19302 mv conftest.tail conftest.vals
19304 rm -f conftest.vals
19306 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
19308 echo ' cat >> conftest.edit <<CEOF
19309 /@DEFS@/r conftest.frag
19312 sed -f conftest.edit $tmp/in > $tmp/out
19314 mv $tmp/out $tmp/in
19315 rm -f conftest.edit conftest.frag
19316 ' >> $CONFIG_STATUS
19318 cat >>$CONFIG_STATUS <<\EOF
19319 # Let's still pretend it is `configure' which instantiates (i.e., don't
19320 # use $as_me), people would be surprised to read:
19321 # /* config.h. Generated automatically by config.status. */
19322 if test x"$ac_file" = x-; then
19323 echo "/* Generated automatically by configure. */" >$tmp/config.h
19325 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
19327 cat $tmp/in >>$tmp/config.h
19329 if test x"$ac_file" != x-; then
19330 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19331 { echo "$as_me:19331: $ac_file is unchanged" >&5
19332 echo "$as_me: $ac_file is unchanged" >&6;}
19334 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19335 X"$ac_file" : 'X\(//\)[^/]' \| \
19336 X"$ac_file" : 'X\(//\)$' \| \
19337 X"$ac_file" : 'X\(/\)' \| \
19338 . : '\(.\)' 2>/dev/null ||
19340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19342 /^X\(\/\/\)$/{ s//\1/; q; }
19343 /^X\(\/\).*/{ s//\1/; q; }
19345 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19346 { case "$ac_dir" in
19347 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19351 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19352 case $as_mkdir_dir in
19353 # Skip DOS drivespec
19354 ?:) as_incr_dir=$as_mkdir_dir ;;
19356 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19357 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19364 mv $tmp/config.h $ac_file
19368 rm -f $tmp/config.h
19372 cat >>$CONFIG_STATUS <<\EOF
19374 # CONFIG_COMMANDS section.
19376 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19377 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19378 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19385 if test ! -d $srcdir/$cf_dir; then
19387 elif test -f $srcdir/$cf_dir/programs; then
19388 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
19392 cat >>Makefile <<TEST_EOF
19394 # These rules are generated so we do not rely on suffix rules, which do not
19395 # work consistently for different make-programs (the '\$(MODEL)/' confuses
19396 # some, and the '\$x' confuses others).
19399 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
19402 cat >>Makefile <<TEST_EOF
19404 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
19405 \$(srcdir)/test.priv.h \\
19408 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) \$(srcdir)/$N.c
19412 if test -f ../config.guess && test -f ../config.sub
19414 cat >>Makefile <<TEST_EOF
19416 # if we used CF_INHERIT for getting these files, we can remove them
19418 rm -f config.guess config.sub
19426 cat >>$CONFIG_STATUS <<\EOF
19428 { (exit 0); exit 0; }
19430 chmod +x $CONFIG_STATUS
19431 ac_clean_files=$ac_clean_files_save
19433 # configure is writing to config.log, and then calls config.status.
19434 # config.status does its own redirection, appending to config.log.
19435 # Unfortunately, on DOS this fails, as config.log is still kept open
19436 # by configure, so config.status won't be able to write to it; its
19437 # output is simply discarded. So we exec the FD to /dev/null,
19438 # effectively closing config.log, so it can be properly (re)opened and
19439 # appended to by config.status. When coming back to configure, we
19440 # need to make the FD available again.
19441 if test "$no_create" != yes; then
19444 $SHELL $CONFIG_STATUS || ac_cs_success=false
19446 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19447 # would make configure fail if this is the last instruction.
19448 $ac_cs_success || { (exit 1); exit 1; }