2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20141204.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="ncurses.c"
109 # Initialize some variables set by options.
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
121 program_transform_name=s,x,x,
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datarootdir='${prefix}/share'
138 datadir='${datarootdir}'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${datarootdir}/info'
146 mandir='${datarootdir}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build_alias ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build_alias=$ac_optarg ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file=$ac_optarg ;;
189 cache_file=config.cache ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir=$ac_optarg ;;
197 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
198 | --dataroo | --dataro | --datar)
199 ac_prev=datarootdir ;;
200 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
201 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
202 datarootdir=$ac_optarg ;;
204 -disable-* | --disable-*)
205 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
206 # Reject names that are not valid shell variable names.
207 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
208 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
209 { (exit 1); exit 1; }; }
210 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
211 eval "enable_$ac_feature=no" ;;
213 -enable-* | --enable-*)
214 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
215 # Reject names that are not valid shell variable names.
216 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
217 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
218 { (exit 1); exit 1; }; }
219 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
221 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
224 eval "enable_$ac_feature='$ac_optarg'" ;;
226 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
227 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
228 | --exec | --exe | --ex)
229 ac_prev=exec_prefix ;;
230 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
231 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
232 | --exec=* | --exe=* | --ex=*)
233 exec_prefix=$ac_optarg ;;
235 -gas | --gas | --ga | --g)
236 # Obsolete; use --with-gas.
239 -help | --help | --hel | --he | -h)
241 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
242 ac_init_help=recursive ;;
243 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
244 ac_init_help=short ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host_alias ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host_alias=$ac_optarg ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir=$ac_optarg ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir=$ac_optarg ;;
263 -libdir | --libdir | --libdi | --libd)
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir=$ac_optarg ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir=$ac_optarg ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 # Obsolete; use --without-fp.
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir=$ac_optarg ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix=$ac_optarg ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix=$ac_optarg ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name=$ac_optarg ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354 sbindir=$ac_optarg ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365 sharedstatedir=$ac_optarg ;;
367 -site | --site | --sit)
369 -site=* | --site=* | --sit=*)
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir=$ac_optarg ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target_alias ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target_alias=$ac_optarg ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
392 -version | --version | --versio | --versi | --vers | -V)
396 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid package name: $ac_package" >&2
400 { (exit 1); exit 1; }; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
406 eval "with_$ac_package='$ac_optarg'" ;;
408 -without-* | --without-*)
409 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid package name: $ac_package" >&2
413 { (exit 1); exit 1; }; }
414 ac_package=`echo $ac_package | sed 's/-/_/g'`
415 eval "with_$ac_package=no" ;;
418 # Obsolete; use --with-x.
421 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422 | --x-incl | --x-inc | --x-in | --x-i)
423 ac_prev=x_includes ;;
424 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426 x_includes=$ac_optarg ;;
428 -x-libraries | --x-libraries | --x-librarie | --x-librari \
429 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430 ac_prev=x_libraries ;;
431 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433 x_libraries=$ac_optarg ;;
435 -*) { echo "$as_me: error: unrecognized option: $ac_option
436 Try \`$0 --help' for more information." >&2
437 { (exit 1); exit 1; }; }
441 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
442 # Reject names that are not valid shell variable names.
443 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
444 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
445 { (exit 1); exit 1; }; }
446 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
447 eval "$ac_envvar='$ac_optarg'"
451 # FIXME: should be removed in autoconf 3.0.
452 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
453 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
454 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
455 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
461 if test -n "$ac_prev"; then
462 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
463 { echo "$as_me: error: missing argument to $ac_option" >&2
464 { (exit 1); exit 1; }; }
467 # Be sure to have absolute paths.
468 for ac_var in exec_prefix prefix
470 eval ac_val=$`echo $ac_var`
472 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
473 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
474 { (exit 1); exit 1; }; };;
478 # Be sure to have absolute paths.
479 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
480 localstatedir libdir includedir oldincludedir infodir mandir
482 eval ac_val=$`echo $ac_var`
484 [\\/$]* | ?:[\\/]* ) ;;
485 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
486 { (exit 1); exit 1; }; };;
490 # There might be people who depend on the old broken behavior: `$host'
491 # used to hold the argument of --host etc.
496 # FIXME: should be removed in autoconf 3.0.
497 if test "x$host_alias" != x; then
498 if test "x$build_alias" = x; then
499 cross_compiling=maybe
500 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
501 If a cross compiler is detected then cross compile mode will be used." >&2
502 elif test "x$build_alias" != "x$host_alias"; then
508 test -n "$host_alias" && ac_tool_prefix=$host_alias-
510 test "$silent" = yes && exec 6>/dev/null
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted=yes
515 # Try the directory containing this script, then its parent.
517 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 if test ! -r $srcdir/$ac_unique_file; then
524 ac_srcdir_defaulted=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
529 { (exit 1); exit 1; }; }
531 { echo "$as_me: error: cannot find sources in $srcdir" >&2
532 { (exit 1); exit 1; }; }
535 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
536 ac_env_build_alias_set=${build_alias+set}
537 ac_env_build_alias_value=$build_alias
538 ac_cv_env_build_alias_set=${build_alias+set}
539 ac_cv_env_build_alias_value=$build_alias
540 ac_env_host_alias_set=${host_alias+set}
541 ac_env_host_alias_value=$host_alias
542 ac_cv_env_host_alias_set=${host_alias+set}
543 ac_cv_env_host_alias_value=$host_alias
544 ac_env_target_alias_set=${target_alias+set}
545 ac_env_target_alias_value=$target_alias
546 ac_cv_env_target_alias_set=${target_alias+set}
547 ac_cv_env_target_alias_value=$target_alias
548 ac_env_CC_set=${CC+set}
550 ac_cv_env_CC_set=${CC+set}
551 ac_cv_env_CC_value=$CC
552 ac_env_CFLAGS_set=${CFLAGS+set}
553 ac_env_CFLAGS_value=$CFLAGS
554 ac_cv_env_CFLAGS_set=${CFLAGS+set}
555 ac_cv_env_CFLAGS_value=$CFLAGS
556 ac_env_LDFLAGS_set=${LDFLAGS+set}
557 ac_env_LDFLAGS_value=$LDFLAGS
558 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
559 ac_cv_env_LDFLAGS_value=$LDFLAGS
560 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
561 ac_env_CPPFLAGS_value=$CPPFLAGS
562 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
563 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
564 ac_env_CPP_set=${CPP+set}
565 ac_env_CPP_value=$CPP
566 ac_cv_env_CPP_set=${CPP+set}
567 ac_cv_env_CPP_value=$CPP
570 # Report the --help message.
572 if test "$ac_init_help" = "long"; then
573 # Omit some internal or obsolete options to make the list less imposing.
574 # This message is too long to be a string in the A/UX 3.1 sh.
576 \`configure' configures this package to adapt to many kinds of systems.
578 Usage: $0 [OPTION]... [VAR=VALUE]...
580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
581 VAR=VALUE. See below for descriptions of some of the useful variables.
583 Defaults for the options are specified in brackets.
586 -h, --help display this help and exit
587 --help=short display options specific to this package
588 --help=recursive display the short help of all the included packages
589 -V, --version display version information and exit
590 -q, --quiet, --silent do not print \`checking...' messages
591 --cache-file=FILE cache test results in FILE [disabled]
592 -C, --config-cache alias for \`--cache-file=config.cache'
593 -n, --no-create do not create output files
594 --srcdir=DIR find the sources in DIR [configure dir or \`..']
599 Installation directories:
600 --prefix=PREFIX install architecture-independent files in PREFIX
602 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
605 By default, \`make install' will install all the files in
606 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
607 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
608 for instance \`--prefix=\$HOME'.
610 For better control, use the options below.
612 Fine tuning of the installation directories:
613 --bindir=DIR user executables [EPREFIX/bin]
614 --sbindir=DIR system admin executables [EPREFIX/sbin]
615 --libexecdir=DIR program executables [EPREFIX/libexec]
616 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
617 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
618 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
619 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
620 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
621 --libdir=DIR object code libraries [EPREFIX/lib]
622 --includedir=DIR C header files [PREFIX/include]
623 --oldincludedir=DIR C header files for non-gcc [/usr/include]
624 --infodir=DIR info documentation [DATAROOTDIR/info]
625 --mandir=DIR man documentation [DATAROOTDIR/man]
631 --program-prefix=PREFIX prepend PREFIX to installed program names
632 --program-suffix=SUFFIX append SUFFIX to installed program names
633 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
636 --x-includes=DIR X include files are in DIR
637 --x-libraries=DIR X library files are in DIR
640 --build=BUILD configure for building on BUILD [guessed]
641 --host=HOST build programs to run on HOST [BUILD]
645 if test -n "$ac_init_help"; then
650 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
651 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
654 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
655 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
658 --with-pkg-config{=path} enable/disable use of pkg-config
659 --disable-echo do not display "compiling" commands
660 Curses Version-dependent Options:
661 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
662 --disable-widec disable checks for wide-character functions
663 --with-curses-dir=DIR directory in which (n)curses is installed
664 --with-screen=XXX use specified curses-libraries
665 --with-ncursesw use wide ncurses-libraries
666 --with-ncurses use ncurses-libraries
667 --with-pdcurses compile/link with pdcurses X11 library
668 --with-curses-colr compile/link with HPUX 10.x color-curses
669 --with-curses-5lib compile/link with SunOS 5lib curses
670 --with-Xaw3d link with Xaw 3d library
671 --with-Xaw3dxft link with Xaw 3d xft library
672 --with-neXtaw link with neXT Athena library
673 --with-XawPlus link with Athena-Plus library
674 --with-x use the X Window System
675 Testing/development Options:
676 --enable-warnings test: turn on gcc compiler warnings
677 --with-dmalloc test: use Gray Watson's dmalloc library
678 --with-dbmalloc test: use Conor Cahill's dbmalloc library
679 --with-valgrind test: use valgrind
680 --disable-leaks test: free permanent memory, analyze leaks
681 --disable-rpath-hack don't add rpath options for additional libraries
683 Some influential environment variables:
684 CC C compiler command
685 CFLAGS C compiler flags
686 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
687 nonstandard directory <lib dir>
688 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
689 headers in a nonstandard directory <include dir>
692 Use these variables to override the choices made by `configure' or to help
693 it to find libraries and programs with nonstandard names/locations.
698 if test "$ac_init_help" = "recursive"; then
699 # If there are subdirs, report their specific --help.
701 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
703 # A "../" for each directory in /$ac_subdir.
704 ac_dots=`echo $ac_subdir |
705 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
708 .) # No --srcdir option. We are building in place.
709 ac_sub_srcdir=$srcdir ;;
710 [\\/]* | ?:[\\/]* ) # Absolute path.
711 ac_sub_srcdir=$srcdir/$ac_subdir ;;
713 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
716 # Check for guested configure; otherwise get Cygnus style configure.
717 if test -f $ac_sub_srcdir/configure.gnu; then
719 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
720 elif test -f $ac_sub_srcdir/configure; then
722 $SHELL $ac_sub_srcdir/configure --help=recursive
723 elif test -f $ac_sub_srcdir/configure.ac ||
724 test -f $ac_sub_srcdir/configure.in; then
728 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
734 test -n "$ac_init_help" && exit 0
735 if $ac_init_version; then
738 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
739 Free Software Foundation, Inc.
740 This configure script is free software; the Free Software Foundation
741 gives unlimited permission to copy, distribute and modify it.
747 This file contains any messages produced by compilers while
748 running configure, to aid debugging if configure makes a mistake.
750 It was created by $as_me, which was
751 generated by GNU Autoconf 2.52.20141204. Invocation command line was
762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
769 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
771 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
772 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
774 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
775 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
776 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
777 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
791 # Keep a trace of the command line.
792 # Strip out --no-create and --no-recursion so they do not pile up.
793 # Also quote any args containing shell meta-characters.
799 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
800 | --no-cr | --no-c) ;;
801 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
802 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
803 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
804 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
805 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
807 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
810 # Get rid of the leading space.
813 # When interrupted or exit'd, cleanup temporary files, and complete
814 # config.log. We remove comments because anyway the quotes in there
815 # would cause problems or look ugly.
817 # Save into config.log some information that might help in debugging.
819 echo "## ----------------- ##" >&5
820 echo "## Cache variables. ##" >&5
821 echo "## ----------------- ##" >&5
823 # The following way of writing the cache mishandles newlines in values,
826 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
829 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
834 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
838 sed "/^$/d" confdefs.h >conftest.log
839 if test -s conftest.log; then
841 echo "## ------------ ##" >&5
842 echo "## confdefs.h. ##" >&5
843 echo "## ------------ ##" >&5
848 test "$ac_signal" != 0 &&
849 echo "$as_me: caught signal $ac_signal" >&5
850 echo "$as_me: exit $exit_status" >&5
851 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
854 for ac_signal in 1 2 13 15; do
855 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
859 # confdefs.h avoids OS command line length limits that DEFS can exceed.
860 rm -rf conftest* confdefs.h
861 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
864 # Let the site file select an alternate cache file if it wants to.
865 # Prefer explicitly selected file to automatically selected ones.
866 if test -z "$CONFIG_SITE"; then
867 if test "x$prefix" != xNONE; then
868 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
870 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
873 for ac_site_file in $CONFIG_SITE; do
874 if test -r "$ac_site_file"; then
875 { echo "$as_me:875: loading site script $ac_site_file" >&5
876 echo "$as_me: loading site script $ac_site_file" >&6;}
877 cat "$ac_site_file" >&5
882 if test -r "$cache_file"; then
883 # Some versions of bash will fail to source /dev/null (special
884 # files actually), so we avoid doing that.
885 if test -f "$cache_file"; then
886 { echo "$as_me:886: loading cache $cache_file" >&5
887 echo "$as_me: loading cache $cache_file" >&6;}
889 [\\/]* | ?:[\\/]* ) . $cache_file;;
894 { echo "$as_me:894: creating cache $cache_file" >&5
895 echo "$as_me: creating cache $cache_file" >&6;}
899 # Check that the precious variables saved in the cache have kept the same
901 ac_cache_corrupted=false
902 for ac_var in `(set) 2>&1 |
903 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
904 eval ac_old_set=\$ac_cv_env_${ac_var}_set
905 eval ac_new_set=\$ac_env_${ac_var}_set
906 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
907 eval ac_new_val="\$ac_env_${ac_var}_value"
908 case $ac_old_set,$ac_new_set in
910 { echo "$as_me:910: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
911 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
912 ac_cache_corrupted=: ;;
914 { echo "$as_me:914: error: \`$ac_var' was not set in the previous run" >&5
915 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
916 ac_cache_corrupted=: ;;
919 if test "x$ac_old_val" != "x$ac_new_val"; then
920 { echo "$as_me:920: error: \`$ac_var' has changed since the previous run:" >&5
921 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
922 { echo "$as_me:922: former value: $ac_old_val" >&5
923 echo "$as_me: former value: $ac_old_val" >&2;}
924 { echo "$as_me:924: current value: $ac_new_val" >&5
925 echo "$as_me: current value: $ac_new_val" >&2;}
929 # Pass precious variables to config.status. It doesn't matter if
930 # we pass some twice (in addition to the command line arguments).
931 if test "$ac_new_set" = set; then
933 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
934 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
935 ac_configure_args="$ac_configure_args '$ac_arg'"
937 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
942 if $ac_cache_corrupted; then
943 { echo "$as_me:943: error: changes in the environment can compromise the build" >&5
944 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
945 { { echo "$as_me:945: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
946 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
947 { (exit 1); exit 1; }; }
951 ac_cpp='$CPP $CPPFLAGS'
952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
955 ac_main_return=return
957 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
958 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
960 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
961 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
963 echo "#! $SHELL" >conftest.sh
964 echo "exit 0" >>conftest.sh
966 if { (echo "$as_me:966: PATH=\".;.\"; conftest.sh") >&5
967 (PATH=".;."; conftest.sh) 2>&5
969 echo "$as_me:969: \$? = $ac_status" >&5
970 (exit $ac_status); }; then
971 ac_path_separator=';'
975 PATH_SEPARATOR="$ac_path_separator"
978 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
980 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
982 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
985 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
986 if test -f $ac_dir/install-sh; then
988 ac_install_sh="$ac_aux_dir/install-sh -c"
990 elif test -f $ac_dir/install.sh; then
992 ac_install_sh="$ac_aux_dir/install.sh -c"
994 elif test -f $ac_dir/shtool; then
996 ac_install_sh="$ac_aux_dir/shtool install -c"
1000 if test -z "$ac_aux_dir"; then
1001 { { echo "$as_me:1001: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1002 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1003 { (exit 1); exit 1; }; }
1005 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1006 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1007 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1009 # Make sure we can run config.sub.
1010 $ac_config_sub sun4 >/dev/null 2>&1 ||
1011 { { echo "$as_me:1011: error: cannot run $ac_config_sub" >&5
1012 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1013 { (exit 1); exit 1; }; }
1015 echo "$as_me:1015: checking build system type" >&5
1016 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1017 if test "${ac_cv_build+set}" = set; then
1018 echo $ECHO_N "(cached) $ECHO_C" >&6
1020 ac_cv_build_alias=$build_alias
1021 test -z "$ac_cv_build_alias" &&
1022 ac_cv_build_alias=`$ac_config_guess`
1023 test -z "$ac_cv_build_alias" &&
1024 { { echo "$as_me:1024: error: cannot guess build type; you must specify one" >&5
1025 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1026 { (exit 1); exit 1; }; }
1027 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1028 { { echo "$as_me:1028: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1029 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1030 { (exit 1); exit 1; }; }
1033 echo "$as_me:1033: result: $ac_cv_build" >&5
1034 echo "${ECHO_T}$ac_cv_build" >&6
1036 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1037 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1038 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1040 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1041 echo "$as_me:1041: checking host system type" >&5
1042 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1043 if test "${ac_cv_host+set}" = set; then
1044 echo $ECHO_N "(cached) $ECHO_C" >&6
1046 ac_cv_host_alias=$host_alias
1047 test -z "$ac_cv_host_alias" &&
1048 ac_cv_host_alias=$ac_cv_build_alias
1049 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1050 { { echo "$as_me:1050: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1051 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1052 { (exit 1); exit 1; }; }
1055 echo "$as_me:1055: result: $ac_cv_host" >&5
1056 echo "${ECHO_T}$ac_cv_host" >&6
1058 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1059 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1060 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1062 system_name="$host_os"
1064 system_name="`(uname -s -r) 2>/dev/null`"
1065 if test -z "$system_name" ; then
1066 system_name="`(hostname) 2>/dev/null`"
1069 test -n "$system_name" &&
1070 cat >>confdefs.h <<EOF
1071 #define SYSTEM_NAME "$system_name"
1074 if test "${cf_cv_system_name+set}" = set; then
1075 echo $ECHO_N "(cached) $ECHO_C" >&6
1077 cf_cv_system_name="$system_name"
1080 test -z "$system_name" && system_name="$cf_cv_system_name"
1081 test -n "$cf_cv_system_name" && echo "$as_me:1081: result: Configuring for $cf_cv_system_name" >&5
1082 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1084 if test ".$system_name" != ".$cf_cv_system_name" ; then
1085 echo "$as_me:1085: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1086 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1087 { { echo "$as_me:1087: error: \"Please remove config.cache and try again.\"" >&5
1088 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1089 { (exit 1); exit 1; }; }
1092 test "$program_prefix" != NONE &&
1093 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1094 # Use a double $ so make ignores it.
1095 test "$program_suffix" != NONE &&
1096 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1097 # Double any \ or $. echo might interpret backslashes.
1098 # By default was `s,x,x', remove it if useless.
1099 cat <<\_ACEOF >conftest.sed
1100 s/[\\$]/&&/g;s/;s,x,x,$//
1102 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1105 echo "$as_me:1105: checking whether ${MAKE-make} sets \${MAKE}" >&5
1106 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1107 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1108 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1109 echo $ECHO_N "(cached) $ECHO_C" >&6
1111 cat >conftest.make <<\EOF
1113 @echo 'ac_maketemp="${MAKE}"'
1115 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1116 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1117 if test -n "$ac_maketemp"; then
1118 eval ac_cv_prog_make_${ac_make}_set=yes
1120 eval ac_cv_prog_make_${ac_make}_set=no
1124 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1125 echo "$as_me:1125: result: yes" >&5
1126 echo "${ECHO_T}yes" >&6
1129 echo "$as_me:1129: result: no" >&5
1130 echo "${ECHO_T}no" >&6
1131 SET_MAKE="MAKE=${MAKE-make}"
1135 ac_cpp='$CPP $CPPFLAGS'
1136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1139 ac_main_return=return
1140 if test -n "$ac_tool_prefix"; then
1141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1143 echo "$as_me:1143: checking for $ac_word" >&5
1144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1145 if test "${ac_cv_prog_CC+set}" = set; then
1146 echo $ECHO_N "(cached) $ECHO_C" >&6
1148 if test -n "$CC"; then
1149 ac_cv_prog_CC="$CC" # Let the user override the test.
1151 ac_save_IFS=$IFS; IFS=$ac_path_separator
1153 for ac_dir in $ac_dummy; do
1155 test -z "$ac_dir" && ac_dir=.
1156 $as_executable_p "$ac_dir/$ac_word" || continue
1157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1158 echo "$as_me:1158: found $ac_dir/$ac_word" >&5
1165 if test -n "$CC"; then
1166 echo "$as_me:1166: result: $CC" >&5
1167 echo "${ECHO_T}$CC" >&6
1169 echo "$as_me:1169: result: no" >&5
1170 echo "${ECHO_T}no" >&6
1174 if test -z "$ac_cv_prog_CC"; then
1176 # Extract the first word of "gcc", so it can be a program name with args.
1177 set dummy gcc; ac_word=$2
1178 echo "$as_me:1178: checking for $ac_word" >&5
1179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1181 echo $ECHO_N "(cached) $ECHO_C" >&6
1183 if test -n "$ac_ct_CC"; then
1184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1186 ac_save_IFS=$IFS; IFS=$ac_path_separator
1188 for ac_dir in $ac_dummy; do
1190 test -z "$ac_dir" && ac_dir=.
1191 $as_executable_p "$ac_dir/$ac_word" || continue
1192 ac_cv_prog_ac_ct_CC="gcc"
1193 echo "$as_me:1193: found $ac_dir/$ac_word" >&5
1199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1200 if test -n "$ac_ct_CC"; then
1201 echo "$as_me:1201: result: $ac_ct_CC" >&5
1202 echo "${ECHO_T}$ac_ct_CC" >&6
1204 echo "$as_me:1204: result: no" >&5
1205 echo "${ECHO_T}no" >&6
1213 if test -z "$CC"; then
1214 if test -n "$ac_tool_prefix"; then
1215 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1216 set dummy ${ac_tool_prefix}cc; ac_word=$2
1217 echo "$as_me:1217: checking for $ac_word" >&5
1218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1219 if test "${ac_cv_prog_CC+set}" = set; then
1220 echo $ECHO_N "(cached) $ECHO_C" >&6
1222 if test -n "$CC"; then
1223 ac_cv_prog_CC="$CC" # Let the user override the test.
1225 ac_save_IFS=$IFS; IFS=$ac_path_separator
1227 for ac_dir in $ac_dummy; do
1229 test -z "$ac_dir" && ac_dir=.
1230 $as_executable_p "$ac_dir/$ac_word" || continue
1231 ac_cv_prog_CC="${ac_tool_prefix}cc"
1232 echo "$as_me:1232: found $ac_dir/$ac_word" >&5
1239 if test -n "$CC"; then
1240 echo "$as_me:1240: result: $CC" >&5
1241 echo "${ECHO_T}$CC" >&6
1243 echo "$as_me:1243: result: no" >&5
1244 echo "${ECHO_T}no" >&6
1248 if test -z "$ac_cv_prog_CC"; then
1250 # Extract the first word of "cc", so it can be a program name with args.
1251 set dummy cc; ac_word=$2
1252 echo "$as_me:1252: checking for $ac_word" >&5
1253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1255 echo $ECHO_N "(cached) $ECHO_C" >&6
1257 if test -n "$ac_ct_CC"; then
1258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1260 ac_save_IFS=$IFS; IFS=$ac_path_separator
1262 for ac_dir in $ac_dummy; do
1264 test -z "$ac_dir" && ac_dir=.
1265 $as_executable_p "$ac_dir/$ac_word" || continue
1266 ac_cv_prog_ac_ct_CC="cc"
1267 echo "$as_me:1267: found $ac_dir/$ac_word" >&5
1273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1274 if test -n "$ac_ct_CC"; then
1275 echo "$as_me:1275: result: $ac_ct_CC" >&5
1276 echo "${ECHO_T}$ac_ct_CC" >&6
1278 echo "$as_me:1278: result: no" >&5
1279 echo "${ECHO_T}no" >&6
1288 if test -z "$CC"; then
1289 # Extract the first word of "cc", so it can be a program name with args.
1290 set dummy cc; ac_word=$2
1291 echo "$as_me:1291: checking for $ac_word" >&5
1292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1293 if test "${ac_cv_prog_CC+set}" = set; then
1294 echo $ECHO_N "(cached) $ECHO_C" >&6
1296 if test -n "$CC"; then
1297 ac_cv_prog_CC="$CC" # Let the user override the test.
1300 ac_save_IFS=$IFS; IFS=$ac_path_separator
1302 for ac_dir in $ac_dummy; do
1304 test -z "$ac_dir" && ac_dir=.
1305 $as_executable_p "$ac_dir/$ac_word" || continue
1306 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1307 ac_prog_rejected=yes
1311 echo "$as_me:1311: found $ac_dir/$ac_word" >&5
1315 if test $ac_prog_rejected = yes; then
1316 # We found a bogon in the path, so make sure we never use it.
1317 set dummy $ac_cv_prog_CC
1319 if test $# != 0; then
1320 # We chose a different compiler from the bogus one.
1321 # However, it has the same basename, so the bogon will be chosen
1322 # first if we set CC to just the basename; use the full file name.
1324 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1332 if test -n "$CC"; then
1333 echo "$as_me:1333: result: $CC" >&5
1334 echo "${ECHO_T}$CC" >&6
1336 echo "$as_me:1336: result: no" >&5
1337 echo "${ECHO_T}no" >&6
1341 if test -z "$CC"; then
1342 if test -n "$ac_tool_prefix"; then
1345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1347 echo "$as_me:1347: checking for $ac_word" >&5
1348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1349 if test "${ac_cv_prog_CC+set}" = set; then
1350 echo $ECHO_N "(cached) $ECHO_C" >&6
1352 if test -n "$CC"; then
1353 ac_cv_prog_CC="$CC" # Let the user override the test.
1355 ac_save_IFS=$IFS; IFS=$ac_path_separator
1357 for ac_dir in $ac_dummy; do
1359 test -z "$ac_dir" && ac_dir=.
1360 $as_executable_p "$ac_dir/$ac_word" || continue
1361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1362 echo "$as_me:1362: found $ac_dir/$ac_word" >&5
1369 if test -n "$CC"; then
1370 echo "$as_me:1370: result: $CC" >&5
1371 echo "${ECHO_T}$CC" >&6
1373 echo "$as_me:1373: result: no" >&5
1374 echo "${ECHO_T}no" >&6
1377 test -n "$CC" && break
1380 if test -z "$CC"; then
1384 # Extract the first word of "$ac_prog", so it can be a program name with args.
1385 set dummy $ac_prog; ac_word=$2
1386 echo "$as_me:1386: checking for $ac_word" >&5
1387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 if test -n "$ac_ct_CC"; then
1392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1394 ac_save_IFS=$IFS; IFS=$ac_path_separator
1396 for ac_dir in $ac_dummy; do
1398 test -z "$ac_dir" && ac_dir=.
1399 $as_executable_p "$ac_dir/$ac_word" || continue
1400 ac_cv_prog_ac_ct_CC="$ac_prog"
1401 echo "$as_me:1401: found $ac_dir/$ac_word" >&5
1407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1408 if test -n "$ac_ct_CC"; then
1409 echo "$as_me:1409: result: $ac_ct_CC" >&5
1410 echo "${ECHO_T}$ac_ct_CC" >&6
1412 echo "$as_me:1412: result: no" >&5
1413 echo "${ECHO_T}no" >&6
1416 test -n "$ac_ct_CC" && break
1424 test -z "$CC" && { { echo "$as_me:1424: error: no acceptable cc found in \$PATH" >&5
1425 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1426 { (exit 1); exit 1; }; }
1428 # Provide some information about the compiler.
1429 echo "$as_me:1429:" \
1430 "checking for C compiler version" >&5
1431 ac_compiler=`set X $ac_compile; echo $2`
1432 { (eval echo "$as_me:1432: \"$ac_compiler --version </dev/null >&5\"") >&5
1433 (eval $ac_compiler --version </dev/null >&5) 2>&5
1435 echo "$as_me:1435: \$? = $ac_status" >&5
1436 (exit $ac_status); }
1437 { (eval echo "$as_me:1437: \"$ac_compiler -v </dev/null >&5\"") >&5
1438 (eval $ac_compiler -v </dev/null >&5) 2>&5
1440 echo "$as_me:1440: \$? = $ac_status" >&5
1441 (exit $ac_status); }
1442 { (eval echo "$as_me:1442: \"$ac_compiler -V </dev/null >&5\"") >&5
1443 (eval $ac_compiler -V </dev/null >&5) 2>&5
1445 echo "$as_me:1445: \$? = $ac_status" >&5
1446 (exit $ac_status); }
1448 cat >conftest.$ac_ext <<_ACEOF
1449 #line 1449 "configure"
1450 #include "confdefs.h"
1460 ac_clean_files_save=$ac_clean_files
1461 ac_clean_files="$ac_clean_files a.out a.exe"
1462 # Try to create an executable without -o first, disregard a.out.
1463 # It will help us diagnose broken compilers, and finding out an intuition
1465 echo "$as_me:1465: checking for C compiler default output" >&5
1466 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1467 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1468 if { (eval echo "$as_me:1468: \"$ac_link_default\"") >&5
1469 (eval $ac_link_default) 2>&5
1471 echo "$as_me:1471: \$? = $ac_status" >&5
1472 (exit $ac_status); }; then
1473 # Find the output, starting from the most likely. This scheme is
1474 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1476 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1477 ls a.out conftest 2>/dev/null;
1478 ls a.* conftest.* 2>/dev/null`; do
1480 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1481 a.out ) # We found the default executable, but exeext='' is most
1484 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1485 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1492 echo "$as_me: failed program was:" >&5
1493 cat conftest.$ac_ext >&5
1494 { { echo "$as_me:1494: error: C compiler cannot create executables" >&5
1495 echo "$as_me: error: C compiler cannot create executables" >&2;}
1496 { (exit 77); exit 77; }; }
1499 ac_exeext=$ac_cv_exeext
1500 echo "$as_me:1500: result: $ac_file" >&5
1501 echo "${ECHO_T}$ac_file" >&6
1503 # Check the compiler produces executables we can run. If not, either
1504 # the compiler is broken, or we cross compile.
1505 echo "$as_me:1505: checking whether the C compiler works" >&5
1506 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1507 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1508 # If not cross compiling, check that we can run a simple program.
1509 if test "$cross_compiling" != yes; then
1510 if { ac_try='./$ac_file'
1511 { (eval echo "$as_me:1511: \"$ac_try\"") >&5
1514 echo "$as_me:1514: \$? = $ac_status" >&5
1515 (exit $ac_status); }; }; then
1518 if test "$cross_compiling" = maybe; then
1521 { { echo "$as_me:1521: error: cannot run C compiled programs.
1522 If you meant to cross compile, use \`--host'." >&5
1523 echo "$as_me: error: cannot run C compiled programs.
1524 If you meant to cross compile, use \`--host'." >&2;}
1525 { (exit 1); exit 1; }; }
1529 echo "$as_me:1529: result: yes" >&5
1530 echo "${ECHO_T}yes" >&6
1532 rm -f a.out a.exe conftest$ac_cv_exeext
1533 ac_clean_files=$ac_clean_files_save
1534 # Check the compiler produces executables we can run. If not, either
1535 # the compiler is broken, or we cross compile.
1536 echo "$as_me:1536: checking whether we are cross compiling" >&5
1537 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1538 echo "$as_me:1538: result: $cross_compiling" >&5
1539 echo "${ECHO_T}$cross_compiling" >&6
1541 echo "$as_me:1541: checking for executable suffix" >&5
1542 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1543 if { (eval echo "$as_me:1543: \"$ac_link\"") >&5
1544 (eval $ac_link) 2>&5
1546 echo "$as_me:1546: \$? = $ac_status" >&5
1547 (exit $ac_status); }; then
1548 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1549 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1550 # work properly (i.e., refer to `conftest.exe'), while it won't with
1552 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1554 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1555 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1562 { { echo "$as_me:1562: error: cannot compute EXEEXT: cannot compile and link" >&5
1563 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1564 { (exit 1); exit 1; }; }
1567 rm -f conftest$ac_cv_exeext
1568 echo "$as_me:1568: result: $ac_cv_exeext" >&5
1569 echo "${ECHO_T}$ac_cv_exeext" >&6
1571 rm -f conftest.$ac_ext
1572 EXEEXT=$ac_cv_exeext
1574 echo "$as_me:1574: checking for object suffix" >&5
1575 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1576 if test "${ac_cv_objext+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 cat >conftest.$ac_ext <<_ACEOF
1580 #line 1580 "configure"
1581 #include "confdefs.h"
1591 rm -f conftest.o conftest.obj
1592 if { (eval echo "$as_me:1592: \"$ac_compile\"") >&5
1593 (eval $ac_compile) 2>&5
1595 echo "$as_me:1595: \$? = $ac_status" >&5
1596 (exit $ac_status); }; then
1597 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1599 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1600 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1605 echo "$as_me: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1607 { { echo "$as_me:1607: error: cannot compute OBJEXT: cannot compile" >&5
1608 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1609 { (exit 1); exit 1; }; }
1612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1614 echo "$as_me:1614: result: $ac_cv_objext" >&5
1615 echo "${ECHO_T}$ac_cv_objext" >&6
1616 OBJEXT=$ac_cv_objext
1618 echo "$as_me:1618: checking whether we are using the GNU C compiler" >&5
1619 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1620 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 cat >conftest.$ac_ext <<_ACEOF
1624 #line 1624 "configure"
1625 #include "confdefs.h"
1638 rm -f conftest.$ac_objext
1639 if { (eval echo "$as_me:1639: \"$ac_compile\"") >&5
1640 (eval $ac_compile) 2>&5
1642 echo "$as_me:1642: \$? = $ac_status" >&5
1643 (exit $ac_status); } &&
1644 { ac_try='test -s conftest.$ac_objext'
1645 { (eval echo "$as_me:1645: \"$ac_try\"") >&5
1648 echo "$as_me:1648: \$? = $ac_status" >&5
1649 (exit $ac_status); }; }; then
1652 echo "$as_me: failed program was:" >&5
1653 cat conftest.$ac_ext >&5
1656 rm -f conftest.$ac_objext conftest.$ac_ext
1657 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1660 echo "$as_me:1660: result: $ac_cv_c_compiler_gnu" >&5
1661 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1662 GCC=`test $ac_compiler_gnu = yes && echo yes`
1663 ac_test_CFLAGS=${CFLAGS+set}
1664 ac_save_CFLAGS=$CFLAGS
1666 echo "$as_me:1666: checking whether $CC accepts -g" >&5
1667 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1668 if test "${ac_cv_prog_cc_g+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 cat >conftest.$ac_ext <<_ACEOF
1672 #line 1672 "configure"
1673 #include "confdefs.h"
1683 rm -f conftest.$ac_objext
1684 if { (eval echo "$as_me:1684: \"$ac_compile\"") >&5
1685 (eval $ac_compile) 2>&5
1687 echo "$as_me:1687: \$? = $ac_status" >&5
1688 (exit $ac_status); } &&
1689 { ac_try='test -s conftest.$ac_objext'
1690 { (eval echo "$as_me:1690: \"$ac_try\"") >&5
1693 echo "$as_me:1693: \$? = $ac_status" >&5
1694 (exit $ac_status); }; }; then
1697 echo "$as_me: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1701 rm -f conftest.$ac_objext conftest.$ac_ext
1703 echo "$as_me:1703: result: $ac_cv_prog_cc_g" >&5
1704 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1705 if test "$ac_test_CFLAGS" = set; then
1706 CFLAGS=$ac_save_CFLAGS
1707 elif test $ac_cv_prog_cc_g = yes; then
1708 if test "$GCC" = yes; then
1714 if test "$GCC" = yes; then
1720 # Some people use a C++ compiler to compile C. Since we use `exit',
1721 # in C++ we need to declare it. In case someone uses the same compiler
1722 # for both compiling C and C++ we need to have the C++ compiler decide
1723 # the declaration of exit, since it's the most demanding environment.
1724 cat >conftest.$ac_ext <<_ACEOF
1729 rm -f conftest.$ac_objext
1730 if { (eval echo "$as_me:1730: \"$ac_compile\"") >&5
1731 (eval $ac_compile) 2>&5
1733 echo "$as_me:1733: \$? = $ac_status" >&5
1734 (exit $ac_status); } &&
1735 { ac_try='test -s conftest.$ac_objext'
1736 { (eval echo "$as_me:1736: \"$ac_try\"") >&5
1739 echo "$as_me:1739: \$? = $ac_status" >&5
1740 (exit $ac_status); }; }; then
1741 for ac_declaration in \
1743 '#include <stdlib.h>' \
1744 'extern "C" void std::exit (int) throw (); using std::exit;' \
1745 'extern "C" void std::exit (int); using std::exit;' \
1746 'extern "C" void exit (int) throw ();' \
1747 'extern "C" void exit (int);' \
1750 cat >conftest.$ac_ext <<_ACEOF
1751 #line 1751 "configure"
1752 #include "confdefs.h"
1763 rm -f conftest.$ac_objext
1764 if { (eval echo "$as_me:1764: \"$ac_compile\"") >&5
1765 (eval $ac_compile) 2>&5
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); } &&
1769 { ac_try='test -s conftest.$ac_objext'
1770 { (eval echo "$as_me:1770: \"$ac_try\"") >&5
1773 echo "$as_me:1773: \$? = $ac_status" >&5
1774 (exit $ac_status); }; }; then
1777 echo "$as_me: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1781 rm -f conftest.$ac_objext conftest.$ac_ext
1782 cat >conftest.$ac_ext <<_ACEOF
1783 #line 1783 "configure"
1784 #include "confdefs.h"
1794 rm -f conftest.$ac_objext
1795 if { (eval echo "$as_me:1795: \"$ac_compile\"") >&5
1796 (eval $ac_compile) 2>&5
1798 echo "$as_me:1798: \$? = $ac_status" >&5
1799 (exit $ac_status); } &&
1800 { ac_try='test -s conftest.$ac_objext'
1801 { (eval echo "$as_me:1801: \"$ac_try\"") >&5
1804 echo "$as_me:1804: \$? = $ac_status" >&5
1805 (exit $ac_status); }; }; then
1808 echo "$as_me: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1811 rm -f conftest.$ac_objext conftest.$ac_ext
1814 if test -n "$ac_declaration"; then
1815 echo '#ifdef __cplusplus' >>confdefs.h
1816 echo $ac_declaration >>confdefs.h
1817 echo '#endif' >>confdefs.h
1821 echo "$as_me: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1824 rm -f conftest.$ac_objext conftest.$ac_ext
1826 ac_cpp='$CPP $CPPFLAGS'
1827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1830 ac_main_return=return
1833 if test "$GCC" = yes ; then
1834 echo "$as_me:1834: checking version of $CC" >&5
1835 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1836 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.].*//'`"
1837 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1838 echo "$as_me:1838: result: $GCC_VERSION" >&5
1839 echo "${ECHO_T}$GCC_VERSION" >&6
1842 echo "$as_me:1842: checking for $CC option to accept ANSI C" >&5
1843 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1844 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 ac_cv_prog_cc_stdc=no
1849 cat >conftest.$ac_ext <<_ACEOF
1850 #line 1850 "configure"
1851 #include "confdefs.h"
1854 #include <sys/types.h>
1855 #include <sys/stat.h>
1856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1857 struct buf { int x; };
1858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1859 static char *e (p, i)
1865 static char *f (char * (*g) (char **, int), char **p, ...)
1870 s = g (p, va_arg (v,int));
1874 int test (int i, double x);
1875 struct s1 {int (*f) (int a);};
1876 struct s2 {int (*f) (double a);};
1877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1888 # Don't try gcc -ansi; that turns off useful extensions and
1889 # breaks some systems' header files.
1890 # AIX -qlanglvl=ansi
1891 # Ultrix and OSF/1 -std1
1892 # HP-UX 10.20 and later -Ae
1893 # HP-UX older versions -Aa -D_HPUX_SOURCE
1894 # SVR4 -Xc -D__EXTENSIONS__
1895 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1897 CC="$ac_save_CC $ac_arg"
1898 rm -f conftest.$ac_objext
1899 if { (eval echo "$as_me:1899: \"$ac_compile\"") >&5
1900 (eval $ac_compile) 2>&5
1902 echo "$as_me:1902: \$? = $ac_status" >&5
1903 (exit $ac_status); } &&
1904 { ac_try='test -s conftest.$ac_objext'
1905 { (eval echo "$as_me:1905: \"$ac_try\"") >&5
1908 echo "$as_me:1908: \$? = $ac_status" >&5
1909 (exit $ac_status); }; }; then
1910 ac_cv_prog_cc_stdc=$ac_arg
1913 echo "$as_me: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1916 rm -f conftest.$ac_objext
1918 rm -f conftest.$ac_ext conftest.$ac_objext
1923 case "x$ac_cv_prog_cc_stdc" in
1925 echo "$as_me:1925: result: none needed" >&5
1926 echo "${ECHO_T}none needed" >&6 ;;
1928 echo "$as_me:1928: result: $ac_cv_prog_cc_stdc" >&5
1929 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1930 CC="$CC $ac_cv_prog_cc_stdc" ;;
1933 # This should have been defined by AC_PROG_CC
1936 echo "$as_me:1936: checking \$CC variable" >&5
1937 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1940 echo "$as_me:1940: result: broken" >&5
1941 echo "${ECHO_T}broken" >&6
1942 { echo "$as_me:1942: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1943 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1945 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
1946 CC=`echo "$CC" | sed -e 's/[ ].*//'`
1951 cf_new_extra_cppflags=
1953 for cf_add_cflags in $cf_flags
1955 case $cf_fix_cppflags in
1957 case $cf_add_cflags in
1958 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1959 case $cf_add_cflags in
1961 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1963 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1964 && test -z "${cf_tst_cflags}" \
1965 && cf_fix_cppflags=yes
1967 if test $cf_fix_cppflags = yes ; then
1968 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1970 elif test "${cf_tst_cflags}" = "\"'" ; then
1971 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1980 case $cf_add_cflags in
1982 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1984 CPPFLAGS=`echo "$CPPFLAGS" | \
1985 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1986 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1990 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1995 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2000 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2002 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2004 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2005 && test -z "${cf_tst_cflags}" \
2006 && cf_fix_cppflags=no
2011 if test -n "$cf_new_cflags" ; then
2013 CFLAGS="$CFLAGS $cf_new_cflags"
2016 if test -n "$cf_new_cppflags" ; then
2018 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2021 if test -n "$cf_new_extra_cppflags" ; then
2023 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2028 echo "$as_me:2028: result: ok" >&5
2029 echo "${ECHO_T}ok" >&6
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038 ac_main_return=return
2039 echo "$as_me:2039: checking how to run the C preprocessor" >&5
2040 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2041 # On Suns, sometimes $CPP names a directory.
2042 if test -n "$CPP" && test -d "$CPP"; then
2045 if test -z "$CPP"; then
2046 if test "${ac_cv_prog_CPP+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 # Double quotes because CPP needs to be expanded
2050 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2053 for ac_c_preproc_warn_flag in '' yes
2055 # Use a header file that comes with gcc, so configuring glibc
2056 # with a fresh cross-compiler works.
2057 # On the NeXT, cc -E runs the code through the compiler's parser,
2058 # not just through cpp. "Syntax error" is here to catch this case.
2059 cat >conftest.$ac_ext <<_ACEOF
2060 #line 2060 "configure"
2061 #include "confdefs.h"
2065 if { (eval echo "$as_me:2065: \"$ac_cpp conftest.$ac_ext\"") >&5
2066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2068 egrep -v '^ *\+' conftest.er1 >conftest.err
2070 cat conftest.err >&5
2071 echo "$as_me:2071: \$? = $ac_status" >&5
2072 (exit $ac_status); } >/dev/null; then
2073 if test -s conftest.err; then
2074 ac_cpp_err=$ac_c_preproc_warn_flag
2081 if test -z "$ac_cpp_err"; then
2084 echo "$as_me: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2086 # Broken: fails on valid input.
2089 rm -f conftest.err conftest.$ac_ext
2091 # OK, works on sane cases. Now check whether non-existent headers
2092 # can be detected and how.
2093 cat >conftest.$ac_ext <<_ACEOF
2094 #line 2094 "configure"
2095 #include "confdefs.h"
2096 #include <ac_nonexistent.h>
2098 if { (eval echo "$as_me:2098: \"$ac_cpp conftest.$ac_ext\"") >&5
2099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2101 egrep -v '^ *\+' conftest.er1 >conftest.err
2103 cat conftest.err >&5
2104 echo "$as_me:2104: \$? = $ac_status" >&5
2105 (exit $ac_status); } >/dev/null; then
2106 if test -s conftest.err; then
2107 ac_cpp_err=$ac_c_preproc_warn_flag
2114 if test -z "$ac_cpp_err"; then
2115 # Broken: success on invalid input.
2118 echo "$as_me: failed program was:" >&5
2119 cat conftest.$ac_ext >&5
2120 # Passes both tests.
2124 rm -f conftest.err conftest.$ac_ext
2127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2128 rm -f conftest.err conftest.$ac_ext
2129 if $ac_preproc_ok; then
2141 echo "$as_me:2141: result: $CPP" >&5
2142 echo "${ECHO_T}$CPP" >&6
2144 for ac_c_preproc_warn_flag in '' yes
2146 # Use a header file that comes with gcc, so configuring glibc
2147 # with a fresh cross-compiler works.
2148 # On the NeXT, cc -E runs the code through the compiler's parser,
2149 # not just through cpp. "Syntax error" is here to catch this case.
2150 cat >conftest.$ac_ext <<_ACEOF
2151 #line 2151 "configure"
2152 #include "confdefs.h"
2156 if { (eval echo "$as_me:2156: \"$ac_cpp conftest.$ac_ext\"") >&5
2157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2159 egrep -v '^ *\+' conftest.er1 >conftest.err
2161 cat conftest.err >&5
2162 echo "$as_me:2162: \$? = $ac_status" >&5
2163 (exit $ac_status); } >/dev/null; then
2164 if test -s conftest.err; then
2165 ac_cpp_err=$ac_c_preproc_warn_flag
2172 if test -z "$ac_cpp_err"; then
2175 echo "$as_me: failed program was:" >&5
2176 cat conftest.$ac_ext >&5
2177 # Broken: fails on valid input.
2180 rm -f conftest.err conftest.$ac_ext
2182 # OK, works on sane cases. Now check whether non-existent headers
2183 # can be detected and how.
2184 cat >conftest.$ac_ext <<_ACEOF
2185 #line 2185 "configure"
2186 #include "confdefs.h"
2187 #include <ac_nonexistent.h>
2189 if { (eval echo "$as_me:2189: \"$ac_cpp conftest.$ac_ext\"") >&5
2190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2192 egrep -v '^ *\+' conftest.er1 >conftest.err
2194 cat conftest.err >&5
2195 echo "$as_me:2195: \$? = $ac_status" >&5
2196 (exit $ac_status); } >/dev/null; then
2197 if test -s conftest.err; then
2198 ac_cpp_err=$ac_c_preproc_warn_flag
2205 if test -z "$ac_cpp_err"; then
2206 # Broken: success on invalid input.
2209 echo "$as_me: failed program was:" >&5
2210 cat conftest.$ac_ext >&5
2211 # Passes both tests.
2215 rm -f conftest.err conftest.$ac_ext
2218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2219 rm -f conftest.err conftest.$ac_ext
2220 if $ac_preproc_ok; then
2223 { { echo "$as_me:2223: error: C preprocessor \"$CPP\" fails sanity check" >&5
2224 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2225 { (exit 1); exit 1; }; }
2229 ac_cpp='$CPP $CPPFLAGS'
2230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2233 ac_main_return=return
2235 for ac_prog in mawk gawk nawk awk
2237 # Extract the first word of "$ac_prog", so it can be a program name with args.
2238 set dummy $ac_prog; ac_word=$2
2239 echo "$as_me:2239: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241 if test "${ac_cv_prog_AWK+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 if test -n "$AWK"; then
2245 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2247 ac_save_IFS=$IFS; IFS=$ac_path_separator
2249 for ac_dir in $ac_dummy; do
2251 test -z "$ac_dir" && ac_dir=.
2252 $as_executable_p "$ac_dir/$ac_word" || continue
2253 ac_cv_prog_AWK="$ac_prog"
2254 echo "$as_me:2254: found $ac_dir/$ac_word" >&5
2261 if test -n "$AWK"; then
2262 echo "$as_me:2262: result: $AWK" >&5
2263 echo "${ECHO_T}$AWK" >&6
2265 echo "$as_me:2265: result: no" >&5
2266 echo "${ECHO_T}no" >&6
2269 test -n "$AWK" && break
2272 # Find a good install program. We prefer a C program (faster),
2273 # so one script is as good as another. But avoid the broken or
2274 # incompatible versions:
2275 # SysV /etc/install, /usr/sbin/install
2276 # SunOS /usr/etc/install
2277 # IRIX /sbin/install
2279 # AmigaOS /C/install, which installs bootblocks on floppy discs
2280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2283 # ./install, which can be erroneously created by make from ./install.sh.
2284 echo "$as_me:2284: checking for a BSD compatible install" >&5
2285 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2286 if test -z "$INSTALL"; then
2287 if test "${ac_cv_path_install+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 ac_save_IFS=$IFS; IFS=$ac_path_separator
2291 for ac_dir in $PATH; do
2293 # Account for people who put trailing slashes in PATH elements.
2295 / | ./ | .// | /cC/* \
2296 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2299 # OSF1 and SCO ODT 3.0 have their own names for install.
2300 # Don't use installbsd from OSF since it installs stuff as root
2302 for ac_prog in ginstall scoinst install; do
2303 if $as_executable_p "$ac_dir/$ac_prog"; then
2304 if test $ac_prog = install &&
2305 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2306 # AIX install. It has an incompatible calling convention.
2308 elif test $ac_prog = install &&
2309 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2310 # program-specific install script used by HP pwplus--don't use.
2313 ac_cv_path_install="$ac_dir/$ac_prog -c"
2323 if test "${ac_cv_path_install+set}" = set; then
2324 INSTALL=$ac_cv_path_install
2326 # As a last resort, use the slow shell script. We don't cache a
2327 # path for INSTALL within a source directory, because that will
2328 # break other packages using the cache if that directory is
2329 # removed, or if the path is relative.
2330 INSTALL=$ac_install_sh
2333 echo "$as_me:2333: result: $INSTALL" >&5
2334 echo "${ECHO_T}$INSTALL" >&6
2336 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2337 # It thinks the first close brace ends the variable substitution.
2338 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2340 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2342 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2348 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2349 test -z "$cf_dir" && cf_dir=.
2350 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2354 for ac_prog in tdlint lint alint splint lclint
2356 # Extract the first word of "$ac_prog", so it can be a program name with args.
2357 set dummy $ac_prog; ac_word=$2
2358 echo "$as_me:2358: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2360 if test "${ac_cv_prog_LINT+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 if test -n "$LINT"; then
2364 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2366 ac_save_IFS=$IFS; IFS=$ac_path_separator
2368 for ac_dir in $ac_dummy; do
2370 test -z "$ac_dir" && ac_dir=.
2371 $as_executable_p "$ac_dir/$ac_word" || continue
2372 ac_cv_prog_LINT="$ac_prog"
2373 echo "$as_me:2373: found $ac_dir/$ac_word" >&5
2379 LINT=$ac_cv_prog_LINT
2380 if test -n "$LINT"; then
2381 echo "$as_me:2381: result: $LINT" >&5
2382 echo "${ECHO_T}$LINT" >&6
2384 echo "$as_me:2384: result: no" >&5
2385 echo "${ECHO_T}no" >&6
2388 test -n "$LINT" && break
2391 echo "$as_me:2391: checking if filesystem supports mixed-case filenames" >&5
2392 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2393 if test "${cf_cv_mixedcase+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 if test "$cross_compiling" = yes ; then
2398 case $target_alias in
2399 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2407 rm -f conftest CONFTEST
2409 if test -f CONFTEST ; then
2414 rm -f conftest CONFTEST
2418 echo "$as_me:2418: result: $cf_cv_mixedcase" >&5
2419 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2420 test "$cf_cv_mixedcase" = yes &&
2421 cat >>confdefs.h <<\EOF
2422 #define MIXEDCASE_FILENAMES 1
2425 for ac_prog in exctags ctags
2427 # Extract the first word of "$ac_prog", so it can be a program name with args.
2428 set dummy $ac_prog; ac_word=$2
2429 echo "$as_me:2429: checking for $ac_word" >&5
2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2431 if test "${ac_cv_prog_CTAGS+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 if test -n "$CTAGS"; then
2435 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2437 ac_save_IFS=$IFS; IFS=$ac_path_separator
2439 for ac_dir in $ac_dummy; do
2441 test -z "$ac_dir" && ac_dir=.
2442 $as_executable_p "$ac_dir/$ac_word" || continue
2443 ac_cv_prog_CTAGS="$ac_prog"
2444 echo "$as_me:2444: found $ac_dir/$ac_word" >&5
2450 CTAGS=$ac_cv_prog_CTAGS
2451 if test -n "$CTAGS"; then
2452 echo "$as_me:2452: result: $CTAGS" >&5
2453 echo "${ECHO_T}$CTAGS" >&6
2455 echo "$as_me:2455: result: no" >&5
2456 echo "${ECHO_T}no" >&6
2459 test -n "$CTAGS" && break
2462 for ac_prog in exetags etags
2464 # Extract the first word of "$ac_prog", so it can be a program name with args.
2465 set dummy $ac_prog; ac_word=$2
2466 echo "$as_me:2466: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2468 if test "${ac_cv_prog_ETAGS+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 if test -n "$ETAGS"; then
2472 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2474 ac_save_IFS=$IFS; IFS=$ac_path_separator
2476 for ac_dir in $ac_dummy; do
2478 test -z "$ac_dir" && ac_dir=.
2479 $as_executable_p "$ac_dir/$ac_word" || continue
2480 ac_cv_prog_ETAGS="$ac_prog"
2481 echo "$as_me:2481: found $ac_dir/$ac_word" >&5
2487 ETAGS=$ac_cv_prog_ETAGS
2488 if test -n "$ETAGS"; then
2489 echo "$as_me:2489: result: $ETAGS" >&5
2490 echo "${ECHO_T}$ETAGS" >&6
2492 echo "$as_me:2492: result: no" >&5
2493 echo "${ECHO_T}no" >&6
2496 test -n "$ETAGS" && break
2499 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2500 set dummy ${CTAGS:-ctags}; ac_word=$2
2501 echo "$as_me:2501: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2503 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test -n "$MAKE_LOWER_TAGS"; then
2507 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2509 ac_save_IFS=$IFS; IFS=$ac_path_separator
2511 for ac_dir in $ac_dummy; do
2513 test -z "$ac_dir" && ac_dir=.
2514 $as_executable_p "$ac_dir/$ac_word" || continue
2515 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2516 echo "$as_me:2516: found $ac_dir/$ac_word" >&5
2520 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2523 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2524 if test -n "$MAKE_LOWER_TAGS"; then
2525 echo "$as_me:2525: result: $MAKE_LOWER_TAGS" >&5
2526 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2528 echo "$as_me:2528: result: no" >&5
2529 echo "${ECHO_T}no" >&6
2532 if test "$cf_cv_mixedcase" = yes ; then
2533 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2534 set dummy ${ETAGS:-etags}; ac_word=$2
2535 echo "$as_me:2535: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2537 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 if test -n "$MAKE_UPPER_TAGS"; then
2541 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2543 ac_save_IFS=$IFS; IFS=$ac_path_separator
2545 for ac_dir in $ac_dummy; do
2547 test -z "$ac_dir" && ac_dir=.
2548 $as_executable_p "$ac_dir/$ac_word" || continue
2549 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2550 echo "$as_me:2550: found $ac_dir/$ac_word" >&5
2554 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2557 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2558 if test -n "$MAKE_UPPER_TAGS"; then
2559 echo "$as_me:2559: result: $MAKE_UPPER_TAGS" >&5
2560 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2562 echo "$as_me:2562: result: no" >&5
2563 echo "${ECHO_T}no" >&6
2570 if test "$MAKE_UPPER_TAGS" = yes ; then
2576 if test "$MAKE_LOWER_TAGS" = yes ; then
2582 echo "$as_me:2582: checking if -lm needed for math functions" >&5
2583 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2584 if test "${cf_cv_need_libm+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 cat >conftest.$ac_ext <<_ACEOF
2589 #line 2589 "configure"
2590 #include "confdefs.h"
2598 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2603 rm -f conftest.$ac_objext conftest$ac_exeext
2604 if { (eval echo "$as_me:2604: \"$ac_link\"") >&5
2605 (eval $ac_link) 2>&5
2607 echo "$as_me:2607: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -s conftest$ac_exeext'
2610 { (eval echo "$as_me:2610: \"$ac_try\"") >&5
2613 echo "$as_me:2613: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2617 echo "$as_me: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2623 echo "$as_me:2623: result: $cf_cv_need_libm" >&5
2624 echo "${ECHO_T}$cf_cv_need_libm" >&6
2625 if test "$cf_cv_need_libm" = yes
2633 CC_SHARED_OPTS=unknown
2634 CPPFLAGS="$CPPFLAGS"
2636 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2637 DFT_UPR_MODEL="NORMAL"
2650 PACKAGE="ncurses-examples"
2656 TINFO_LIBS='$(LIBS_CURSES)'
2657 cf_cv_abi_version=""
2658 cf_cv_rel_version=""
2664 if test "$GCC" = yes
2666 cat > conftest.i <<EOF
2668 #define GCC_PRINTF 0
2673 #ifndef GCC_NORETURN
2674 #define GCC_NORETURN /* nothing */
2677 #define GCC_UNUSED /* nothing */
2680 if test "$GCC" = yes
2682 { echo "$as_me:2682: checking for $CC __attribute__ directives..." >&5
2683 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2685 "${as_me:-configure}"
2686 #include "confdefs.h"
2687 #include "conftest.h"
2688 #include "conftest.i"
2690 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2692 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2695 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2697 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2699 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2700 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2701 extern void foo(void) GCC_NORETURN;
2702 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2704 cf_printf_attribute=no
2705 cf_scanf_attribute=no
2706 for cf_attribute in scanf printf unused noreturn
2709 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2711 cf_directive="__attribute__(($cf_attribute))"
2712 echo "checking for $CC $cf_directive" 1>&5
2714 case $cf_attribute in
2716 cf_printf_attribute=yes
2717 cat >conftest.h <<EOF
2718 #define GCC_$cf_ATTRIBUTE 1
2722 cf_scanf_attribute=yes
2723 cat >conftest.h <<EOF
2724 #define GCC_$cf_ATTRIBUTE 1
2728 cat >conftest.h <<EOF
2729 #define GCC_$cf_ATTRIBUTE $cf_directive
2734 if { (eval echo "$as_me:2734: \"$ac_compile\"") >&5
2735 (eval $ac_compile) 2>&5
2737 echo "$as_me:2737: \$? = $ac_status" >&5
2738 (exit $ac_status); }; then
2739 test -n "$verbose" && echo "$as_me:2739: result: ... $cf_attribute" >&5
2740 echo "${ECHO_T}... $cf_attribute" >&6
2741 cat conftest.h >>confdefs.h
2742 case $cf_attribute in
2745 cat >>confdefs.h <<EOF
2746 #define GCC_NORETURN $cf_directive
2751 cf_value='/* nothing */'
2752 if test "$cf_printf_attribute" != no ; then
2753 cf_value='__attribute__((format(printf,fmt,var)))'
2755 cat >>confdefs.h <<\EOF
2756 #define GCC_PRINTF 1
2761 cat >>confdefs.h <<EOF
2762 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2767 cf_value='/* nothing */'
2768 if test "$cf_scanf_attribute" != no ; then
2769 cf_value='__attribute__((format(scanf,fmt,var)))'
2771 cat >>confdefs.h <<\EOF
2777 cat >>confdefs.h <<EOF
2778 #define GCC_SCANFLIKE(fmt,var) $cf_value
2784 cat >>confdefs.h <<EOF
2785 #define GCC_UNUSED $cf_directive
2793 fgrep define conftest.i >>confdefs.h
2799 cf_POSIX_C_SOURCE=199506L
2804 cf_xopen_source="-D_ALL_SOURCE"
2810 cf_xopen_source="-D_APPLE_C_SOURCE"
2813 cf_xopen_source="-D_DARWIN_C_SOURCE"
2816 (freebsd*|dragonfly*)
2817 # 5.x headers associate
2818 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2819 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2820 cf_POSIX_C_SOURCE=200112L
2822 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2825 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2828 cf_xopen_source="-D_HPUX_SOURCE"
2831 cf_xopen_source="-D_SGI_SOURCE"
2834 (linux*|gnu*|mint*|k*bsd*-gnu)
2836 echo "$as_me:2836: checking if we must define _GNU_SOURCE" >&5
2837 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2838 if test "${cf_cv_gnu_source+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 cat >conftest.$ac_ext <<_ACEOF
2843 #line 2843 "configure"
2844 #include "confdefs.h"
2845 #include <sys/types.h>
2850 #ifndef _XOPEN_SOURCE
2857 rm -f conftest.$ac_objext
2858 if { (eval echo "$as_me:2858: \"$ac_compile\"") >&5
2859 (eval $ac_compile) 2>&5
2861 echo "$as_me:2861: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 { ac_try='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:2864: \"$ac_try\"") >&5
2867 echo "$as_me:2867: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2871 echo "$as_me: failed program was:" >&5
2872 cat conftest.$ac_ext >&5
2874 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2875 cat >conftest.$ac_ext <<_ACEOF
2876 #line 2876 "configure"
2877 #include "confdefs.h"
2878 #include <sys/types.h>
2883 #ifdef _XOPEN_SOURCE
2890 rm -f conftest.$ac_objext
2891 if { (eval echo "$as_me:2891: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>&5
2894 echo "$as_me:2894: \$? = $ac_status" >&5
2895 (exit $ac_status); } &&
2896 { ac_try='test -s conftest.$ac_objext'
2897 { (eval echo "$as_me:2897: \"$ac_try\"") >&5
2900 echo "$as_me:2900: \$? = $ac_status" >&5
2901 (exit $ac_status); }; }; then
2904 echo "$as_me: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2906 cf_cv_gnu_source=yes
2908 rm -f conftest.$ac_objext conftest.$ac_ext
2912 rm -f conftest.$ac_objext conftest.$ac_ext
2915 echo "$as_me:2915: result: $cf_cv_gnu_source" >&5
2916 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2917 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2921 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
2924 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2927 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2929 cf_save_CFLAGS="$CFLAGS"
2930 cf_save_CPPFLAGS="$CPPFLAGS"
2932 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2933 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2934 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2936 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2937 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2938 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2940 echo "$as_me:2940: checking if we should define _POSIX_C_SOURCE" >&5
2941 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2942 if test "${cf_cv_posix_c_source+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 echo "${as_me:-configure}:2946: testing if the symbol is already defined go no further ..." 1>&5
2948 cat >conftest.$ac_ext <<_ACEOF
2949 #line 2949 "configure"
2950 #include "confdefs.h"
2951 #include <sys/types.h>
2956 #ifndef _POSIX_C_SOURCE
2963 rm -f conftest.$ac_objext
2964 if { (eval echo "$as_me:2964: \"$ac_compile\"") >&5
2965 (eval $ac_compile) 2>&5
2967 echo "$as_me:2967: \$? = $ac_status" >&5
2968 (exit $ac_status); } &&
2969 { ac_try='test -s conftest.$ac_objext'
2970 { (eval echo "$as_me:2970: \"$ac_try\"") >&5
2973 echo "$as_me:2973: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2975 cf_cv_posix_c_source=no
2977 echo "$as_me: failed program was:" >&5
2978 cat conftest.$ac_ext >&5
2979 cf_want_posix_source=no
2980 case .$cf_POSIX_C_SOURCE in
2982 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2985 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2986 cf_want_posix_source=yes
2989 cf_want_posix_source=yes
2992 if test "$cf_want_posix_source" = yes ; then
2993 cat >conftest.$ac_ext <<_ACEOF
2994 #line 2994 "configure"
2995 #include "confdefs.h"
2996 #include <sys/types.h>
3001 #ifdef _POSIX_SOURCE
3008 rm -f conftest.$ac_objext
3009 if { (eval echo "$as_me:3009: \"$ac_compile\"") >&5
3010 (eval $ac_compile) 2>&5
3012 echo "$as_me:3012: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -s conftest.$ac_objext'
3015 { (eval echo "$as_me:3015: \"$ac_try\"") >&5
3018 echo "$as_me:3018: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3022 echo "$as_me: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3024 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3026 rm -f conftest.$ac_objext conftest.$ac_ext
3029 echo "${as_me:-configure}:3029: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3031 CFLAGS="$cf_trim_CFLAGS"
3032 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3034 echo "${as_me:-configure}:3034: testing if the second compile does not leave our definition intact error ..." 1>&5
3036 cat >conftest.$ac_ext <<_ACEOF
3037 #line 3037 "configure"
3038 #include "confdefs.h"
3039 #include <sys/types.h>
3044 #ifndef _POSIX_C_SOURCE
3051 rm -f conftest.$ac_objext
3052 if { (eval echo "$as_me:3052: \"$ac_compile\"") >&5
3053 (eval $ac_compile) 2>&5
3055 echo "$as_me:3055: \$? = $ac_status" >&5
3056 (exit $ac_status); } &&
3057 { ac_try='test -s conftest.$ac_objext'
3058 { (eval echo "$as_me:3058: \"$ac_try\"") >&5
3061 echo "$as_me:3061: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3065 echo "$as_me: failed program was:" >&5
3066 cat conftest.$ac_ext >&5
3067 cf_cv_posix_c_source=no
3069 rm -f conftest.$ac_objext conftest.$ac_ext
3070 CFLAGS="$cf_save_CFLAGS"
3071 CPPFLAGS="$cf_save_CPPFLAGS"
3074 rm -f conftest.$ac_objext conftest.$ac_ext
3077 echo "$as_me:3077: result: $cf_cv_posix_c_source" >&5
3078 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3080 if test "$cf_cv_posix_c_source" != no ; then
3081 CFLAGS="$cf_trim_CFLAGS"
3082 CPPFLAGS="$cf_trim_CPPFLAGS"
3087 cf_new_extra_cppflags=
3089 for cf_add_cflags in $cf_cv_posix_c_source
3091 case $cf_fix_cppflags in
3093 case $cf_add_cflags in
3094 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3095 case $cf_add_cflags in
3097 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3099 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3100 && test -z "${cf_tst_cflags}" \
3101 && cf_fix_cppflags=yes
3103 if test $cf_fix_cppflags = yes ; then
3104 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3106 elif test "${cf_tst_cflags}" = "\"'" ; then
3107 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3116 case $cf_add_cflags in
3118 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3120 CPPFLAGS=`echo "$CPPFLAGS" | \
3121 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3122 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3126 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3131 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3136 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3138 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3140 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3141 && test -z "${cf_tst_cflags}" \
3142 && cf_fix_cppflags=no
3147 if test -n "$cf_new_cflags" ; then
3149 CFLAGS="$CFLAGS $cf_new_cflags"
3152 if test -n "$cf_new_cppflags" ; then
3154 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3157 if test -n "$cf_new_extra_cppflags" ; then
3159 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3166 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3169 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3170 cf_xopen_source="-D_BSD_SOURCE"
3174 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3177 cf_xopen_source="-D_OSF_SOURCE"
3180 cf_xopen_source="-D_QNX_SOURCE"
3183 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3186 cf_xopen_source="-D__EXTENSIONS__"
3187 cf_cv_xopen_source=broken
3189 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3195 echo "$as_me:3195: checking if we should define _XOPEN_SOURCE" >&5
3196 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3197 if test "${cf_cv_xopen_source+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 cat >conftest.$ac_ext <<_ACEOF
3202 #line 3202 "configure"
3203 #include "confdefs.h"
3207 #include <sys/types.h>
3213 #ifndef _XOPEN_SOURCE
3220 rm -f conftest.$ac_objext
3221 if { (eval echo "$as_me:3221: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>&5
3224 echo "$as_me:3224: \$? = $ac_status" >&5
3225 (exit $ac_status); } &&
3226 { ac_try='test -s conftest.$ac_objext'
3227 { (eval echo "$as_me:3227: \"$ac_try\"") >&5
3230 echo "$as_me:3230: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3232 cf_cv_xopen_source=no
3234 echo "$as_me: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3237 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3238 cat >conftest.$ac_ext <<_ACEOF
3239 #line 3239 "configure"
3240 #include "confdefs.h"
3244 #include <sys/types.h>
3250 #ifdef _XOPEN_SOURCE
3257 rm -f conftest.$ac_objext
3258 if { (eval echo "$as_me:3258: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>&5
3261 echo "$as_me:3261: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:3264: \"$ac_try\"") >&5
3267 echo "$as_me:3267: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3269 cf_cv_xopen_source=no
3271 echo "$as_me: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3273 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3275 rm -f conftest.$ac_objext conftest.$ac_ext
3279 rm -f conftest.$ac_objext conftest.$ac_ext
3282 echo "$as_me:3282: result: $cf_cv_xopen_source" >&5
3283 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3285 if test "$cf_cv_xopen_source" != no ; then
3287 CFLAGS=`echo "$CFLAGS" | \
3288 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3289 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3291 CPPFLAGS=`echo "$CPPFLAGS" | \
3292 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3293 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3295 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3300 cf_new_extra_cppflags=
3302 for cf_add_cflags in $cf_temp_xopen_source
3304 case $cf_fix_cppflags in
3306 case $cf_add_cflags in
3307 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3308 case $cf_add_cflags in
3310 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3312 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3313 && test -z "${cf_tst_cflags}" \
3314 && cf_fix_cppflags=yes
3316 if test $cf_fix_cppflags = yes ; then
3317 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3319 elif test "${cf_tst_cflags}" = "\"'" ; then
3320 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3329 case $cf_add_cflags in
3331 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3333 CPPFLAGS=`echo "$CPPFLAGS" | \
3334 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3335 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3339 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3344 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3349 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3351 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3353 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3354 && test -z "${cf_tst_cflags}" \
3355 && cf_fix_cppflags=no
3360 if test -n "$cf_new_cflags" ; then
3362 CFLAGS="$CFLAGS $cf_new_cflags"
3365 if test -n "$cf_new_cppflags" ; then
3367 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3370 if test -n "$cf_new_extra_cppflags" ; then
3372 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3377 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3379 cf_save_CFLAGS="$CFLAGS"
3380 cf_save_CPPFLAGS="$CPPFLAGS"
3382 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3383 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3384 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3386 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3387 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3388 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3390 echo "$as_me:3390: checking if we should define _POSIX_C_SOURCE" >&5
3391 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3392 if test "${cf_cv_posix_c_source+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 echo "${as_me:-configure}:3396: testing if the symbol is already defined go no further ..." 1>&5
3398 cat >conftest.$ac_ext <<_ACEOF
3399 #line 3399 "configure"
3400 #include "confdefs.h"
3401 #include <sys/types.h>
3406 #ifndef _POSIX_C_SOURCE
3413 rm -f conftest.$ac_objext
3414 if { (eval echo "$as_me:3414: \"$ac_compile\"") >&5
3415 (eval $ac_compile) 2>&5
3417 echo "$as_me:3417: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -s conftest.$ac_objext'
3420 { (eval echo "$as_me:3420: \"$ac_try\"") >&5
3423 echo "$as_me:3423: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3425 cf_cv_posix_c_source=no
3427 echo "$as_me: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3429 cf_want_posix_source=no
3430 case .$cf_POSIX_C_SOURCE in
3432 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3435 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3436 cf_want_posix_source=yes
3439 cf_want_posix_source=yes
3442 if test "$cf_want_posix_source" = yes ; then
3443 cat >conftest.$ac_ext <<_ACEOF
3444 #line 3444 "configure"
3445 #include "confdefs.h"
3446 #include <sys/types.h>
3451 #ifdef _POSIX_SOURCE
3458 rm -f conftest.$ac_objext
3459 if { (eval echo "$as_me:3459: \"$ac_compile\"") >&5
3460 (eval $ac_compile) 2>&5
3462 echo "$as_me:3462: \$? = $ac_status" >&5
3463 (exit $ac_status); } &&
3464 { ac_try='test -s conftest.$ac_objext'
3465 { (eval echo "$as_me:3465: \"$ac_try\"") >&5
3468 echo "$as_me:3468: \$? = $ac_status" >&5
3469 (exit $ac_status); }; }; then
3472 echo "$as_me: failed program was:" >&5
3473 cat conftest.$ac_ext >&5
3474 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3476 rm -f conftest.$ac_objext conftest.$ac_ext
3479 echo "${as_me:-configure}:3479: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3481 CFLAGS="$cf_trim_CFLAGS"
3482 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3484 echo "${as_me:-configure}:3484: testing if the second compile does not leave our definition intact error ..." 1>&5
3486 cat >conftest.$ac_ext <<_ACEOF
3487 #line 3487 "configure"
3488 #include "confdefs.h"
3489 #include <sys/types.h>
3494 #ifndef _POSIX_C_SOURCE
3501 rm -f conftest.$ac_objext
3502 if { (eval echo "$as_me:3502: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>&5
3505 echo "$as_me:3505: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:3508: \"$ac_try\"") >&5
3511 echo "$as_me:3511: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3515 echo "$as_me: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3517 cf_cv_posix_c_source=no
3519 rm -f conftest.$ac_objext conftest.$ac_ext
3520 CFLAGS="$cf_save_CFLAGS"
3521 CPPFLAGS="$cf_save_CPPFLAGS"
3524 rm -f conftest.$ac_objext conftest.$ac_ext
3527 echo "$as_me:3527: result: $cf_cv_posix_c_source" >&5
3528 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3530 if test "$cf_cv_posix_c_source" != no ; then
3531 CFLAGS="$cf_trim_CFLAGS"
3532 CPPFLAGS="$cf_trim_CPPFLAGS"
3537 cf_new_extra_cppflags=
3539 for cf_add_cflags in $cf_cv_posix_c_source
3541 case $cf_fix_cppflags in
3543 case $cf_add_cflags in
3544 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3545 case $cf_add_cflags in
3547 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3549 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3550 && test -z "${cf_tst_cflags}" \
3551 && cf_fix_cppflags=yes
3553 if test $cf_fix_cppflags = yes ; then
3554 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3556 elif test "${cf_tst_cflags}" = "\"'" ; then
3557 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3566 case $cf_add_cflags in
3568 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3570 CPPFLAGS=`echo "$CPPFLAGS" | \
3571 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3572 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3576 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3581 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3586 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3588 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3590 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3591 && test -z "${cf_tst_cflags}" \
3592 && cf_fix_cppflags=no
3597 if test -n "$cf_new_cflags" ; then
3599 CFLAGS="$CFLAGS $cf_new_cflags"
3602 if test -n "$cf_new_cppflags" ; then
3604 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3607 if test -n "$cf_new_extra_cppflags" ; then
3609 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3617 if test -n "$cf_xopen_source" ; then
3622 cf_new_extra_cppflags=
3624 for cf_add_cflags in $cf_xopen_source
3626 case $cf_fix_cppflags in
3628 case $cf_add_cflags in
3629 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3630 case $cf_add_cflags in
3632 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3634 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3635 && test -z "${cf_tst_cflags}" \
3636 && cf_fix_cppflags=yes
3638 if test $cf_fix_cppflags = yes ; then
3639 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3641 elif test "${cf_tst_cflags}" = "\"'" ; then
3642 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3651 case $cf_add_cflags in
3653 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3655 CPPFLAGS=`echo "$CPPFLAGS" | \
3656 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3657 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3661 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3666 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3671 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3673 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3675 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3676 && test -z "${cf_tst_cflags}" \
3677 && cf_fix_cppflags=no
3682 if test -n "$cf_new_cflags" ; then
3683 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
3685 echo "${as_me:-configure}:3685: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
3687 CFLAGS="$CFLAGS $cf_new_cflags"
3690 if test -n "$cf_new_cppflags" ; then
3691 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
3693 echo "${as_me:-configure}:3693: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
3695 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3698 if test -n "$cf_new_extra_cppflags" ; then
3699 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
3701 echo "${as_me:-configure}:3701: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
3703 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3708 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3709 echo "$as_me:3709: checking if _XOPEN_SOURCE really is set" >&5
3710 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3711 cat >conftest.$ac_ext <<_ACEOF
3712 #line 3712 "configure"
3713 #include "confdefs.h"
3719 #ifndef _XOPEN_SOURCE
3726 rm -f conftest.$ac_objext
3727 if { (eval echo "$as_me:3727: \"$ac_compile\"") >&5
3728 (eval $ac_compile) 2>&5
3730 echo "$as_me:3730: \$? = $ac_status" >&5
3731 (exit $ac_status); } &&
3732 { ac_try='test -s conftest.$ac_objext'
3733 { (eval echo "$as_me:3733: \"$ac_try\"") >&5
3736 echo "$as_me:3736: \$? = $ac_status" >&5
3737 (exit $ac_status); }; }; then
3738 cf_XOPEN_SOURCE_set=yes
3740 echo "$as_me: failed program was:" >&5
3741 cat conftest.$ac_ext >&5
3742 cf_XOPEN_SOURCE_set=no
3744 rm -f conftest.$ac_objext conftest.$ac_ext
3745 echo "$as_me:3745: result: $cf_XOPEN_SOURCE_set" >&5
3746 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3747 if test $cf_XOPEN_SOURCE_set = yes
3749 cat >conftest.$ac_ext <<_ACEOF
3750 #line 3750 "configure"
3751 #include "confdefs.h"
3757 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3764 rm -f conftest.$ac_objext
3765 if { (eval echo "$as_me:3765: \"$ac_compile\"") >&5
3766 (eval $ac_compile) 2>&5
3768 echo "$as_me:3768: \$? = $ac_status" >&5
3769 (exit $ac_status); } &&
3770 { ac_try='test -s conftest.$ac_objext'
3771 { (eval echo "$as_me:3771: \"$ac_try\"") >&5
3774 echo "$as_me:3774: \$? = $ac_status" >&5
3775 (exit $ac_status); }; }; then
3776 cf_XOPEN_SOURCE_set_ok=yes
3778 echo "$as_me: failed program was:" >&5
3779 cat conftest.$ac_ext >&5
3780 cf_XOPEN_SOURCE_set_ok=no
3782 rm -f conftest.$ac_objext conftest.$ac_ext
3783 if test $cf_XOPEN_SOURCE_set_ok = no
3785 { echo "$as_me:3785: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3786 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3790 echo "$as_me:3790: checking if we should define _XOPEN_SOURCE" >&5
3791 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3792 if test "${cf_cv_xopen_source+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 cat >conftest.$ac_ext <<_ACEOF
3797 #line 3797 "configure"
3798 #include "confdefs.h"
3802 #include <sys/types.h>
3808 #ifndef _XOPEN_SOURCE
3815 rm -f conftest.$ac_objext
3816 if { (eval echo "$as_me:3816: \"$ac_compile\"") >&5
3817 (eval $ac_compile) 2>&5
3819 echo "$as_me:3819: \$? = $ac_status" >&5
3820 (exit $ac_status); } &&
3821 { ac_try='test -s conftest.$ac_objext'
3822 { (eval echo "$as_me:3822: \"$ac_try\"") >&5
3825 echo "$as_me:3825: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 cf_cv_xopen_source=no
3829 echo "$as_me: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3832 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3833 cat >conftest.$ac_ext <<_ACEOF
3834 #line 3834 "configure"
3835 #include "confdefs.h"
3839 #include <sys/types.h>
3845 #ifdef _XOPEN_SOURCE
3852 rm -f conftest.$ac_objext
3853 if { (eval echo "$as_me:3853: \"$ac_compile\"") >&5
3854 (eval $ac_compile) 2>&5
3856 echo "$as_me:3856: \$? = $ac_status" >&5
3857 (exit $ac_status); } &&
3858 { ac_try='test -s conftest.$ac_objext'
3859 { (eval echo "$as_me:3859: \"$ac_try\"") >&5
3862 echo "$as_me:3862: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 cf_cv_xopen_source=no
3866 echo "$as_me: failed program was:" >&5
3867 cat conftest.$ac_ext >&5
3868 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3870 rm -f conftest.$ac_objext conftest.$ac_ext
3874 rm -f conftest.$ac_objext conftest.$ac_ext
3877 echo "$as_me:3877: result: $cf_cv_xopen_source" >&5
3878 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3880 if test "$cf_cv_xopen_source" != no ; then
3882 CFLAGS=`echo "$CFLAGS" | \
3883 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3884 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3886 CPPFLAGS=`echo "$CPPFLAGS" | \
3887 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3888 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3890 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3895 cf_new_extra_cppflags=
3897 for cf_add_cflags in $cf_temp_xopen_source
3899 case $cf_fix_cppflags in
3901 case $cf_add_cflags in
3902 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3903 case $cf_add_cflags in
3905 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3907 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3908 && test -z "${cf_tst_cflags}" \
3909 && cf_fix_cppflags=yes
3911 if test $cf_fix_cppflags = yes ; then
3912 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3914 elif test "${cf_tst_cflags}" = "\"'" ; then
3915 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3924 case $cf_add_cflags in
3926 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3928 CPPFLAGS=`echo "$CPPFLAGS" | \
3929 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3930 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3934 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3939 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3944 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3946 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3948 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3949 && test -z "${cf_tst_cflags}" \
3950 && cf_fix_cppflags=no
3955 if test -n "$cf_new_cflags" ; then
3957 CFLAGS="$CFLAGS $cf_new_cflags"
3960 if test -n "$cf_new_cppflags" ; then
3962 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3965 if test -n "$cf_new_extra_cppflags" ; then
3967 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3975 echo "$as_me:3975: checking for signal global datatype" >&5
3976 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3977 if test "${cf_cv_sig_atomic_t+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 "volatile sig_atomic_t" \
3986 cat >conftest.$ac_ext <<_ACEOF
3987 #line 3987 "configure"
3988 #include "confdefs.h"
3990 #include <sys/types.h>
3996 static void handler(int sig)
4003 signal(SIGINT, handler);
4009 rm -f conftest.$ac_objext
4010 if { (eval echo "$as_me:4010: \"$ac_compile\"") >&5
4011 (eval $ac_compile) 2>&5
4013 echo "$as_me:4013: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try='test -s conftest.$ac_objext'
4016 { (eval echo "$as_me:4016: \"$ac_try\"") >&5
4019 echo "$as_me:4019: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4021 cf_cv_sig_atomic_t=$cf_type
4023 echo "$as_me: failed program was:" >&5
4024 cat conftest.$ac_ext >&5
4025 cf_cv_sig_atomic_t=no
4027 rm -f conftest.$ac_objext conftest.$ac_ext
4028 test "$cf_cv_sig_atomic_t" != no && break
4033 echo "$as_me:4033: result: $cf_cv_sig_atomic_t" >&5
4034 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4035 test "$cf_cv_sig_atomic_t" != no &&
4036 cat >>confdefs.h <<EOF
4037 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4040 echo "$as_me:4040: checking if you want to use pkg-config" >&5
4041 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4043 # Check whether --with-pkg-config or --without-pkg-config was given.
4044 if test "${with_pkg_config+set}" = set; then
4045 withval="$with_pkg_config"
4046 cf_pkg_config=$withval
4050 echo "$as_me:4050: result: $cf_pkg_config" >&5
4051 echo "${ECHO_T}$cf_pkg_config" >&6
4053 case $cf_pkg_config in
4059 if test -n "$ac_tool_prefix"; then
4060 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4061 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4062 echo "$as_me:4062: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4072 ac_save_IFS=$IFS; IFS=$ac_path_separator
4074 for ac_dir in $ac_dummy; do
4076 test -z "$ac_dir" && ac_dir=.
4077 if $as_executable_p "$ac_dir/$ac_word"; then
4078 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4079 echo "$as_me:4079: found $ac_dir/$ac_word" >&5
4087 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4089 if test -n "$PKG_CONFIG"; then
4090 echo "$as_me:4090: result: $PKG_CONFIG" >&5
4091 echo "${ECHO_T}$PKG_CONFIG" >&6
4093 echo "$as_me:4093: result: no" >&5
4094 echo "${ECHO_T}no" >&6
4098 if test -z "$ac_cv_path_PKG_CONFIG"; then
4099 ac_pt_PKG_CONFIG=$PKG_CONFIG
4100 # Extract the first word of "pkg-config", so it can be a program name with args.
4101 set dummy pkg-config; ac_word=$2
4102 echo "$as_me:4102: checking for $ac_word" >&5
4103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4104 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 case $ac_pt_PKG_CONFIG in
4109 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4112 ac_save_IFS=$IFS; IFS=$ac_path_separator
4114 for ac_dir in $ac_dummy; do
4116 test -z "$ac_dir" && ac_dir=.
4117 if $as_executable_p "$ac_dir/$ac_word"; then
4118 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4119 echo "$as_me:4119: found $ac_dir/$ac_word" >&5
4124 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4128 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4130 if test -n "$ac_pt_PKG_CONFIG"; then
4131 echo "$as_me:4131: result: $ac_pt_PKG_CONFIG" >&5
4132 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4134 echo "$as_me:4134: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4138 PKG_CONFIG=$ac_pt_PKG_CONFIG
4140 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4149 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4150 if test "$PKG_CONFIG" != none ; then
4152 if test "x$prefix" != xNONE; then
4153 cf_path_syntax="$prefix"
4155 cf_path_syntax="$ac_default_prefix"
4158 case ".$PKG_CONFIG" in
4163 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4165 (.\${*prefix}*|.\${*dir}*)
4166 eval PKG_CONFIG="$PKG_CONFIG"
4167 case ".$PKG_CONFIG" in
4169 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4174 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4177 { { echo "$as_me:4177: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4178 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4179 { (exit 1); exit 1; }; }
4184 { echo "$as_me:4184: WARNING: pkg-config is not installed" >&5
4185 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4188 echo "$as_me:4188: checking if you want to see long compiling messages" >&5
4189 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4191 # Check whether --enable-echo or --disable-echo was given.
4192 if test "${enable_echo+set}" = set; then
4193 enableval="$enable_echo"
4194 test "$enableval" != no && enableval=yes
4195 if test "$enableval" != "yes" ; then
4198 ECHO_LD='@echo linking $@;'
4199 RULE_CC='@echo compiling $<'
4200 SHOW_CC='@echo compiling $@'
4222 echo "$as_me:4222: result: $enableval" >&5
4223 echo "${ECHO_T}$enableval" >&6
4225 echo "$as_me:4225: checking for ncurses wrap-prefix" >&5
4226 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
4228 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
4229 if test "${with_ncurses_wrap_prefix+set}" = set; then
4230 withval="$with_ncurses_wrap_prefix"
4231 NCURSES_WRAP_PREFIX=$withval
4233 NCURSES_WRAP_PREFIX=_nc_
4235 echo "$as_me:4235: result: $NCURSES_WRAP_PREFIX" >&5
4236 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
4238 echo "$as_me:4238: checking if you want to check for wide-character functions" >&5
4239 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
4241 # Check whether --enable-widec or --disable-widec was given.
4242 if test "${enable_widec+set}" = set; then
4243 enableval="$enable_widec"
4244 test "$enableval" != no && enableval=yes
4245 if test "$enableval" != "yes" ; then
4255 echo "$as_me:4255: result: $cf_enable_widec" >&5
4256 echo "${ECHO_T}$cf_enable_widec" >&6
4258 echo "$as_me:4258: checking for specific curses-directory" >&5
4259 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4261 # Check whether --with-curses-dir or --without-curses-dir was given.
4262 if test "${with_curses_dir+set}" = set; then
4263 withval="$with_curses_dir"
4264 cf_cv_curses_dir=$withval
4268 echo "$as_me:4268: result: $cf_cv_curses_dir" >&5
4269 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4271 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4274 if test "x$prefix" != xNONE; then
4275 cf_path_syntax="$prefix"
4277 cf_path_syntax="$ac_default_prefix"
4285 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4287 (.\${*prefix}*|.\${*dir}*)
4288 eval withval="$withval"
4291 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4296 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4299 { { echo "$as_me:4299: error: expected a pathname, not \"$withval\"" >&5
4300 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4301 { (exit 1); exit 1; }; }
4305 if test -d "$cf_cv_curses_dir"
4308 if test -n "$cf_cv_curses_dir/include" ; then
4309 for cf_add_incdir in $cf_cv_curses_dir/include
4311 while test $cf_add_incdir != /usr/include
4313 if test -d $cf_add_incdir
4316 if test -n "$CFLAGS$CPPFLAGS" ; then
4317 # a loop is needed to ensure we can add subdirs of existing dirs
4318 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4319 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4320 cf_have_incdir=yes; break
4325 if test "$cf_have_incdir" = no ; then
4326 if test "$cf_add_incdir" = /usr/local/include ; then
4327 if test "$GCC" = yes
4329 cf_save_CPPFLAGS=$CPPFLAGS
4330 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4331 cat >conftest.$ac_ext <<_ACEOF
4332 #line 4332 "configure"
4333 #include "confdefs.h"
4343 rm -f conftest.$ac_objext
4344 if { (eval echo "$as_me:4344: \"$ac_compile\"") >&5
4345 (eval $ac_compile) 2>&5
4347 echo "$as_me:4347: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try='test -s conftest.$ac_objext'
4350 { (eval echo "$as_me:4350: \"$ac_try\"") >&5
4353 echo "$as_me:4353: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4357 echo "$as_me: failed program was:" >&5
4358 cat conftest.$ac_ext >&5
4361 rm -f conftest.$ac_objext conftest.$ac_ext
4362 CPPFLAGS=$cf_save_CPPFLAGS
4367 if test "$cf_have_incdir" = no ; then
4368 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4370 echo "${as_me:-configure}:4370: testing adding $cf_add_incdir to include-path ..." 1>&5
4372 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4374 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4375 test "$cf_top_incdir" = "$cf_add_incdir" && break
4376 cf_add_incdir="$cf_top_incdir"
4385 if test -n "$cf_cv_curses_dir/lib" ; then
4386 for cf_add_libdir in $cf_cv_curses_dir/lib
4388 if test $cf_add_libdir = /usr/lib ; then
4390 elif test -d $cf_add_libdir
4393 if test -n "$LDFLAGS$LIBS" ; then
4394 # a loop is needed to ensure we can add subdirs of existing dirs
4395 for cf_test_libdir in $LDFLAGS $LIBS ; do
4396 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4397 cf_have_libdir=yes; break
4401 if test "$cf_have_libdir" = no ; then
4402 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4404 echo "${as_me:-configure}:4404: testing adding $cf_add_libdir to library-path ..." 1>&5
4406 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4417 echo "$as_me:4417: checking for specified curses library type" >&5
4418 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
4420 # Check whether --with-screen or --without-screen was given.
4421 if test "${with_screen+set}" = set; then
4422 withval="$with_screen"
4423 cf_cv_screen=$withval
4426 # Check whether --with-ncursesw or --without-ncursesw was given.
4427 if test "${with_ncursesw+set}" = set; then
4428 withval="$with_ncursesw"
4429 cf_cv_screen=ncursesw
4432 # Check whether --with-ncurses or --without-ncurses was given.
4433 if test "${with_ncurses+set}" = set; then
4434 withval="$with_ncurses"
4435 cf_cv_screen=ncurses
4438 # Check whether --with-pdcurses or --without-pdcurses was given.
4439 if test "${with_pdcurses+set}" = set; then
4440 withval="$with_pdcurses"
4441 cf_cv_screen=pdcurses
4444 # Check whether --with-curses-colr or --without-curses-colr was given.
4445 if test "${with_curses_colr+set}" = set; then
4446 withval="$with_curses_colr"
4447 cf_cv_screen=curses_colr
4450 # Check whether --with-curses-5lib or --without-curses-5lib was given.
4451 if test "${with_curses_5lib+set}" = set; then
4452 withval="$with_curses_5lib"
4453 cf_cv_screen=curses_5lib
4461 echo "$as_me:4461: result: $cf_cv_screen" >&5
4462 echo "${ECHO_T}$cf_cv_screen" >&6
4464 case $cf_cv_screen in
4467 echo "$as_me:4467: checking for extra include directories" >&5
4468 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
4469 if test "${cf_cv_curses_incdir+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 cf_cv_curses_incdir=no
4476 if test "x$cf_cv_screen" = "xcurses_colr"
4478 test -d /usr/include/curses_colr && \
4479 cf_cv_curses_incdir="-I/usr/include/curses_colr"
4483 if test "x$cf_cv_screen" = "xcurses_5lib"
4485 test -d /usr/5lib && \
4486 test -d /usr/5include && \
4487 cf_cv_curses_incdir="-I/usr/5include"
4493 echo "$as_me:4493: result: $cf_cv_curses_incdir" >&5
4494 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
4495 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
4497 echo "$as_me:4497: checking if we have identified curses headers" >&5
4498 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4499 if test "${cf_cv_ncurses_header+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 cf_cv_ncurses_header=none
4506 curses.h ncurses/ncurses.h ncurses/curses.h
4508 cat >conftest.$ac_ext <<_ACEOF
4509 #line 4509 "configure"
4510 #include "confdefs.h"
4511 #include <${cf_header}>
4515 initscr(); tgoto("?", 0,0)
4520 rm -f conftest.$ac_objext
4521 if { (eval echo "$as_me:4521: \"$ac_compile\"") >&5
4522 (eval $ac_compile) 2>&5
4524 echo "$as_me:4524: \$? = $ac_status" >&5
4525 (exit $ac_status); } &&
4526 { ac_try='test -s conftest.$ac_objext'
4527 { (eval echo "$as_me:4527: \"$ac_try\"") >&5
4530 echo "$as_me:4530: \$? = $ac_status" >&5
4531 (exit $ac_status); }; }; then
4532 cf_cv_ncurses_header=$cf_header; break
4534 echo "$as_me: failed program was:" >&5
4535 cat conftest.$ac_ext >&5
4537 rm -f conftest.$ac_objext conftest.$ac_ext
4541 echo "$as_me:4541: result: $cf_cv_ncurses_header" >&5
4542 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4544 if test "$cf_cv_ncurses_header" = none ; then
4545 { { echo "$as_me:4545: error: No curses header-files found" >&5
4546 echo "$as_me: error: No curses header-files found" >&2;}
4547 { (exit 1); exit 1; }; }
4550 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4552 for ac_header in $cf_cv_ncurses_header
4554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4555 echo "$as_me:4555: checking for $ac_header" >&5
4556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 cat >conftest.$ac_ext <<_ACEOF
4561 #line 4561 "configure"
4562 #include "confdefs.h"
4563 #include <$ac_header>
4565 if { (eval echo "$as_me:4565: \"$ac_cpp conftest.$ac_ext\"") >&5
4566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4568 egrep -v '^ *\+' conftest.er1 >conftest.err
4570 cat conftest.err >&5
4571 echo "$as_me:4571: \$? = $ac_status" >&5
4572 (exit $ac_status); } >/dev/null; then
4573 if test -s conftest.err; then
4574 ac_cpp_err=$ac_c_preproc_warn_flag
4581 if test -z "$ac_cpp_err"; then
4582 eval "$as_ac_Header=yes"
4584 echo "$as_me: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4586 eval "$as_ac_Header=no"
4588 rm -f conftest.err conftest.$ac_ext
4590 echo "$as_me:4590: result: `eval echo '${'$as_ac_Header'}'`" >&5
4591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4593 cat >>confdefs.h <<EOF
4594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4600 echo "$as_me:4600: checking for terminfo header" >&5
4601 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4602 if test "${cf_cv_term_header+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 case ${cf_cv_ncurses_header} in
4607 (*/ncurses.h|*/ncursesw.h)
4608 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4611 cf_term_header=term.h
4615 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4617 cat >conftest.$ac_ext <<_ACEOF
4618 #line 4618 "configure"
4619 #include "confdefs.h"
4621 #include <${cf_cv_ncurses_header:-curses.h}>
4627 int x = auto_left_margin
4632 rm -f conftest.$ac_objext
4633 if { (eval echo "$as_me:4633: \"$ac_compile\"") >&5
4634 (eval $ac_compile) 2>&5
4636 echo "$as_me:4636: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try='test -s conftest.$ac_objext'
4639 { (eval echo "$as_me:4639: \"$ac_try\"") >&5
4642 echo "$as_me:4642: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4645 cf_cv_term_header="$cf_test"
4647 echo "$as_me: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4650 cf_cv_term_header=unknown
4653 rm -f conftest.$ac_objext conftest.$ac_ext
4654 test "$cf_cv_term_header" != unknown && break
4658 echo "$as_me:4658: result: $cf_cv_term_header" >&5
4659 echo "${ECHO_T}$cf_cv_term_header" >&6
4661 # Set definitions to allow ifdef'ing to accommodate subdirectories
4663 case $cf_cv_term_header in
4666 cat >>confdefs.h <<\EOF
4667 #define HAVE_TERM_H 1
4673 case $cf_cv_term_header in
4676 cat >>confdefs.h <<\EOF
4677 #define HAVE_NCURSES_TERM_H 1
4683 cat >>confdefs.h <<\EOF
4684 #define HAVE_NCURSESW_TERM_H 1
4690 echo "$as_me:4690: checking for ncurses version" >&5
4691 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
4692 if test "${cf_cv_ncurses_version+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 cf_cv_ncurses_version=no
4699 if test "$cross_compiling" = yes; then
4701 # This will not work if the preprocessor splits the line after the
4702 # Autoconf token. The 'unproto' program does that.
4703 cat > conftest.$ac_ext <<EOF
4704 #include <${cf_cv_ncurses_header:-curses.h}>
4706 #ifdef NCURSES_VERSION
4707 Autoconf NCURSES_VERSION
4715 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
4716 { (eval echo "$as_me:4716: \"$cf_try\"") >&5
4719 echo "$as_me:4719: \$? = $ac_status" >&5
4720 (exit $ac_status); }
4721 if test -f conftest.out ; then
4722 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
4723 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
4728 cat >conftest.$ac_ext <<_ACEOF
4729 #line 4729 "configure"
4730 #include "confdefs.h"
4732 #include <${cf_cv_ncurses_header:-curses.h}>
4736 FILE *fp = fopen("$cf_tempfile", "w");
4737 #ifdef NCURSES_VERSION
4738 # ifdef NCURSES_VERSION_PATCH
4739 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
4741 fprintf(fp, "%s\n", NCURSES_VERSION);
4745 fprintf(fp, "old\n");
4750 ${cf_cv_main_return:-return}(0);
4753 rm -f conftest$ac_exeext
4754 if { (eval echo "$as_me:4754: \"$ac_link\"") >&5
4755 (eval $ac_link) 2>&5
4757 echo "$as_me:4757: \$? = $ac_status" >&5
4758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4759 { (eval echo "$as_me:4759: \"$ac_try\"") >&5
4762 echo "$as_me:4762: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4765 cf_cv_ncurses_version=`cat $cf_tempfile`
4767 echo "$as_me: program exited with status $ac_status" >&5
4768 echo "$as_me: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4771 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4776 echo "$as_me:4776: result: $cf_cv_ncurses_version" >&5
4777 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
4778 test "$cf_cv_ncurses_version" = no ||
4779 cat >>confdefs.h <<\EOF
4783 echo "$as_me:4783: checking if we have identified curses libraries" >&5
4784 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
4785 cat >conftest.$ac_ext <<_ACEOF
4786 #line 4786 "configure"
4787 #include "confdefs.h"
4788 #include <${cf_cv_ncurses_header:-curses.h}>
4792 initscr(); tgoto("?", 0,0)
4797 rm -f conftest.$ac_objext conftest$ac_exeext
4798 if { (eval echo "$as_me:4798: \"$ac_link\"") >&5
4799 (eval $ac_link) 2>&5
4801 echo "$as_me:4801: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try='test -s conftest$ac_exeext'
4804 { (eval echo "$as_me:4804: \"$ac_try\"") >&5
4807 echo "$as_me:4807: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4811 echo "$as_me: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4816 echo "$as_me:4816: result: $cf_result" >&5
4817 echo "${ECHO_T}$cf_result" >&6
4819 if test "$cf_result" = no ; then
4822 echo "$as_me:4822: checking for tgoto in -lmytinfo" >&5
4823 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
4824 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 ac_check_lib_save_LIBS=$LIBS
4828 LIBS="-lmytinfo $LIBS"
4829 cat >conftest.$ac_ext <<_ACEOF
4830 #line 4830 "configure"
4831 #include "confdefs.h"
4833 /* Override any gcc2 internal prototype to avoid an error. */
4837 /* We use char because int might match the return type of a gcc2
4838 builtin and then its argument prototype would still apply. */
4848 rm -f conftest.$ac_objext conftest$ac_exeext
4849 if { (eval echo "$as_me:4849: \"$ac_link\"") >&5
4850 (eval $ac_link) 2>&5
4852 echo "$as_me:4852: \$? = $ac_status" >&5
4853 (exit $ac_status); } &&
4854 { ac_try='test -s conftest$ac_exeext'
4855 { (eval echo "$as_me:4855: \"$ac_try\"") >&5
4858 echo "$as_me:4858: \$? = $ac_status" >&5
4859 (exit $ac_status); }; }; then
4860 ac_cv_lib_mytinfo_tgoto=yes
4862 echo "$as_me: failed program was:" >&5
4863 cat conftest.$ac_ext >&5
4864 ac_cv_lib_mytinfo_tgoto=no
4866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4867 LIBS=$ac_check_lib_save_LIBS
4869 echo "$as_me:4869: result: $ac_cv_lib_mytinfo_tgoto" >&5
4870 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
4871 if test $ac_cv_lib_mytinfo_tgoto = yes; then
4873 cf_add_libs="-lmytinfo"
4874 # Filter out duplicates - this happens with badly-designed ".pc" files...
4875 for cf_add_1lib in $LIBS
4877 for cf_add_2lib in $cf_add_libs
4879 if test "x$cf_add_1lib" = "x$cf_add_2lib"
4885 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
4893 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
4894 # next (1998), and xcurses "newer" (2000). There is no header file for
4895 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
4896 # term.h) for cur_colr
4897 if test "x$cf_cv_screen" = "xcurses_colr"
4899 echo "$as_me:4899: checking for initscr in -lcur_colr" >&5
4900 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
4901 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 ac_check_lib_save_LIBS=$LIBS
4905 LIBS="-lcur_colr $LIBS"
4906 cat >conftest.$ac_ext <<_ACEOF
4907 #line 4907 "configure"
4908 #include "confdefs.h"
4910 /* Override any gcc2 internal prototype to avoid an error. */
4914 /* We use char because int might match the return type of a gcc2
4915 builtin and then its argument prototype would still apply. */
4925 rm -f conftest.$ac_objext conftest$ac_exeext
4926 if { (eval echo "$as_me:4926: \"$ac_link\"") >&5
4927 (eval $ac_link) 2>&5
4929 echo "$as_me:4929: \$? = $ac_status" >&5
4930 (exit $ac_status); } &&
4931 { ac_try='test -s conftest$ac_exeext'
4932 { (eval echo "$as_me:4932: \"$ac_try\"") >&5
4935 echo "$as_me:4935: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4937 ac_cv_lib_cur_colr_initscr=yes
4939 echo "$as_me: failed program was:" >&5
4940 cat conftest.$ac_ext >&5
4941 ac_cv_lib_cur_colr_initscr=no
4943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4944 LIBS=$ac_check_lib_save_LIBS
4946 echo "$as_me:4946: result: $ac_cv_lib_cur_colr_initscr" >&5
4947 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
4948 if test $ac_cv_lib_cur_colr_initscr = yes; then
4950 cf_add_libs="-lcur_colr"
4951 # Filter out duplicates - this happens with badly-designed ".pc" files...
4952 for cf_add_1lib in $LIBS
4954 for cf_add_2lib in $cf_add_libs
4956 if test "x$cf_add_1lib" = "x$cf_add_2lib"
4962 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
4966 ac_cv_func_initscr=yes
4970 echo "$as_me:4970: checking for initscr in -lHcurses" >&5
4971 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
4972 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 ac_check_lib_save_LIBS=$LIBS
4976 LIBS="-lHcurses $LIBS"
4977 cat >conftest.$ac_ext <<_ACEOF
4978 #line 4978 "configure"
4979 #include "confdefs.h"
4981 /* Override any gcc2 internal prototype to avoid an error. */
4985 /* We use char because int might match the return type of a gcc2
4986 builtin and then its argument prototype would still apply. */
4996 rm -f conftest.$ac_objext conftest$ac_exeext
4997 if { (eval echo "$as_me:4997: \"$ac_link\"") >&5
4998 (eval $ac_link) 2>&5
5000 echo "$as_me:5000: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try='test -s conftest$ac_exeext'
5003 { (eval echo "$as_me:5003: \"$ac_try\"") >&5
5006 echo "$as_me:5006: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 ac_cv_lib_Hcurses_initscr=yes
5010 echo "$as_me: failed program was:" >&5
5011 cat conftest.$ac_ext >&5
5012 ac_cv_lib_Hcurses_initscr=no
5014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5015 LIBS=$ac_check_lib_save_LIBS
5017 echo "$as_me:5017: result: $ac_cv_lib_Hcurses_initscr" >&5
5018 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5019 if test $ac_cv_lib_Hcurses_initscr = yes; then
5021 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5023 cf_add_libs="-lHcurses"
5024 # Filter out duplicates - this happens with badly-designed ".pc" files...
5025 for cf_add_1lib in $LIBS
5027 for cf_add_2lib in $cf_add_libs
5029 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5035 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5039 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
5040 ac_cv_func_initscr=yes
5049 case `arch 2>/dev/null` in
5054 if test -n "/lib64" ; then
5055 for cf_add_libdir in /lib64
5057 if test $cf_add_libdir = /usr/lib ; then
5059 elif test -d $cf_add_libdir
5062 if test -n "$LDFLAGS$LIBS" ; then
5063 # a loop is needed to ensure we can add subdirs of existing dirs
5064 for cf_test_libdir in $LDFLAGS $LIBS ; do
5065 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5066 cf_have_libdir=yes; break
5070 if test "$cf_have_libdir" = no ; then
5071 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5073 echo "${as_me:-configure}:5073: testing adding $cf_add_libdir to library-path ..." 1>&5
5075 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5083 if test -n "/lib" ; then
5084 for cf_add_libdir in /lib
5086 if test $cf_add_libdir = /usr/lib ; then
5088 elif test -d $cf_add_libdir
5091 if test -n "$LDFLAGS$LIBS" ; then
5092 # a loop is needed to ensure we can add subdirs of existing dirs
5093 for cf_test_libdir in $LDFLAGS $LIBS ; do
5094 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5095 cf_have_libdir=yes; break
5099 if test "$cf_have_libdir" = no ; then
5100 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5102 echo "${as_me:-configure}:5102: testing adding $cf_add_libdir to library-path ..." 1>&5
5104 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5114 if test -n "/lib" ; then
5115 for cf_add_libdir in /lib
5117 if test $cf_add_libdir = /usr/lib ; then
5119 elif test -d $cf_add_libdir
5122 if test -n "$LDFLAGS$LIBS" ; then
5123 # a loop is needed to ensure we can add subdirs of existing dirs
5124 for cf_test_libdir in $LDFLAGS $LIBS ; do
5125 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5126 cf_have_libdir=yes; break
5130 if test "$cf_have_libdir" = no ; then
5131 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5133 echo "${as_me:-configure}:5133: testing adding $cf_add_libdir to library-path ..." 1>&5
5135 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5145 if test "x$cf_cv_screen" = "xcurses_5lib"
5147 if test -d /usr/5lib ; then
5149 if test -n "/usr/5lib" ; then
5150 for cf_add_libdir in /usr/5lib
5152 if test $cf_add_libdir = /usr/lib ; then
5154 elif test -d $cf_add_libdir
5157 if test -n "$LDFLAGS$LIBS" ; then
5158 # a loop is needed to ensure we can add subdirs of existing dirs
5159 for cf_test_libdir in $LDFLAGS $LIBS ; do
5160 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5161 cf_have_libdir=yes; break
5165 if test "$cf_have_libdir" = no ; then
5166 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5168 echo "${as_me:-configure}:5168: testing adding $cf_add_libdir to library-path ..." 1>&5
5170 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5176 cf_add_libs="-lcurses -ltermcap"
5177 # Filter out duplicates - this happens with badly-designed ".pc" files...
5178 for cf_add_1lib in $LIBS
5180 for cf_add_2lib in $cf_add_libs
5182 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5188 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5194 ac_cv_func_initscr=yes
5198 if test ".$ac_cv_func_initscr" != .yes ; then
5199 cf_save_LIBS="$LIBS"
5201 if test ".${cf_cv_ncurses_version:-no}" != .no
5203 cf_check_list="ncurses curses cursesX"
5205 cf_check_list="cursesX curses ncurses"
5208 # Check for library containing tgoto. Do this before curses library
5209 # because it may be needed to link the test-case for initscr.
5210 if test "x$cf_term_lib" = x
5212 echo "$as_me:5212: checking for tgoto" >&5
5213 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5214 if test "${ac_cv_func_tgoto+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 cat >conftest.$ac_ext <<_ACEOF
5218 #line 5218 "configure"
5219 #include "confdefs.h"
5220 /* System header to define __stub macros and hopefully few prototypes,
5221 which can conflict with char tgoto (); below. */
5223 /* Override any gcc2 internal prototype to avoid an error. */
5227 /* We use char because int might match the return type of a gcc2
5228 builtin and then its argument prototype would still apply. */
5235 /* The GNU C library defines this for functions which it implements
5236 to always fail with ENOSYS. Some functions are actually named
5237 something starting with __ and the normal name is an alias. */
5238 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5241 f = tgoto; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5248 rm -f conftest.$ac_objext conftest$ac_exeext
5249 if { (eval echo "$as_me:5249: \"$ac_link\"") >&5
5250 (eval $ac_link) 2>&5
5252 echo "$as_me:5252: \$? = $ac_status" >&5
5253 (exit $ac_status); } &&
5254 { ac_try='test -s conftest$ac_exeext'
5255 { (eval echo "$as_me:5255: \"$ac_try\"") >&5
5258 echo "$as_me:5258: \$? = $ac_status" >&5
5259 (exit $ac_status); }; }; then
5260 ac_cv_func_tgoto=yes
5262 echo "$as_me: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5268 echo "$as_me:5268: result: $ac_cv_func_tgoto" >&5
5269 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5270 if test $ac_cv_func_tgoto = yes; then
5271 cf_term_lib=predefined
5274 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
5276 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5277 echo "$as_me:5277: checking for tgoto in -l$cf_term_lib" >&5
5278 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5279 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 ac_check_lib_save_LIBS=$LIBS
5283 LIBS="-l$cf_term_lib $LIBS"
5284 cat >conftest.$ac_ext <<_ACEOF
5285 #line 5285 "configure"
5286 #include "confdefs.h"
5288 /* Override any gcc2 internal prototype to avoid an error. */
5292 /* We use char because int might match the return type of a gcc2
5293 builtin and then its argument prototype would still apply. */
5303 rm -f conftest.$ac_objext conftest$ac_exeext
5304 if { (eval echo "$as_me:5304: \"$ac_link\"") >&5
5305 (eval $ac_link) 2>&5
5307 echo "$as_me:5307: \$? = $ac_status" >&5
5308 (exit $ac_status); } &&
5309 { ac_try='test -s conftest$ac_exeext'
5310 { (eval echo "$as_me:5310: \"$ac_try\"") >&5
5313 echo "$as_me:5313: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
5315 eval "$as_ac_Lib=yes"
5317 echo "$as_me: failed program was:" >&5
5318 cat conftest.$ac_ext >&5
5319 eval "$as_ac_Lib=no"
5321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5322 LIBS=$ac_check_lib_save_LIBS
5324 echo "$as_me:5324: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5325 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5326 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5336 # Check for library containing initscr
5337 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5338 if test "x$cf_curs_lib" = x
5340 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
5342 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5343 echo "$as_me:5343: checking for initscr in -l$cf_curs_lib" >&5
5344 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5345 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 ac_check_lib_save_LIBS=$LIBS
5349 LIBS="-l$cf_curs_lib $LIBS"
5350 cat >conftest.$ac_ext <<_ACEOF
5351 #line 5351 "configure"
5352 #include "confdefs.h"
5354 /* Override any gcc2 internal prototype to avoid an error. */
5358 /* We use char because int might match the return type of a gcc2
5359 builtin and then its argument prototype would still apply. */
5369 rm -f conftest.$ac_objext conftest$ac_exeext
5370 if { (eval echo "$as_me:5370: \"$ac_link\"") >&5
5371 (eval $ac_link) 2>&5
5373 echo "$as_me:5373: \$? = $ac_status" >&5
5374 (exit $ac_status); } &&
5375 { ac_try='test -s conftest$ac_exeext'
5376 { (eval echo "$as_me:5376: \"$ac_try\"") >&5
5379 echo "$as_me:5379: \$? = $ac_status" >&5
5380 (exit $ac_status); }; }; then
5381 eval "$as_ac_Lib=yes"
5383 echo "$as_me: failed program was:" >&5
5384 cat conftest.$ac_ext >&5
5385 eval "$as_ac_Lib=no"
5387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5388 LIBS=$ac_check_lib_save_LIBS
5390 echo "$as_me:5390: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5391 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5392 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5398 test $cf_curs_lib = unknown && { { echo "$as_me:5398: error: no curses library found" >&5
5399 echo "$as_me: error: no curses library found" >&2;}
5400 { (exit 1); exit 1; }; }
5402 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5403 if test "$cf_term_lib" = unknown ; then
5404 echo "$as_me:5404: checking if we can link with $cf_curs_lib library" >&5
5405 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5406 cat >conftest.$ac_ext <<_ACEOF
5407 #line 5407 "configure"
5408 #include "confdefs.h"
5409 #include <${cf_cv_ncurses_header:-curses.h}>
5418 rm -f conftest.$ac_objext conftest$ac_exeext
5419 if { (eval echo "$as_me:5419: \"$ac_link\"") >&5
5420 (eval $ac_link) 2>&5
5422 echo "$as_me:5422: \$? = $ac_status" >&5
5423 (exit $ac_status); } &&
5424 { ac_try='test -s conftest$ac_exeext'
5425 { (eval echo "$as_me:5425: \"$ac_try\"") >&5
5428 echo "$as_me:5428: \$? = $ac_status" >&5
5429 (exit $ac_status); }; }; then
5432 echo "$as_me: failed program was:" >&5
5433 cat conftest.$ac_ext >&5
5436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5437 echo "$as_me:5437: result: $cf_result" >&5
5438 echo "${ECHO_T}$cf_result" >&6
5439 test $cf_result = no && { { echo "$as_me:5439: error: Cannot link curses library" >&5
5440 echo "$as_me: error: Cannot link curses library" >&2;}
5441 { (exit 1); exit 1; }; }
5442 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
5444 elif test "$cf_term_lib" != predefined ; then
5445 echo "$as_me:5445: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5446 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5447 cat >conftest.$ac_ext <<_ACEOF
5448 #line 5448 "configure"
5449 #include "confdefs.h"
5450 #include <${cf_cv_ncurses_header:-curses.h}>
5454 initscr(); tgoto((char *)0, 0, 0);
5459 rm -f conftest.$ac_objext conftest$ac_exeext
5460 if { (eval echo "$as_me:5460: \"$ac_link\"") >&5
5461 (eval $ac_link) 2>&5
5463 echo "$as_me:5463: \$? = $ac_status" >&5
5464 (exit $ac_status); } &&
5465 { ac_try='test -s conftest$ac_exeext'
5466 { (eval echo "$as_me:5466: \"$ac_try\"") >&5
5469 echo "$as_me:5469: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5473 echo "$as_me: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5476 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5477 cat >conftest.$ac_ext <<_ACEOF
5478 #line 5478 "configure"
5479 #include "confdefs.h"
5480 #include <${cf_cv_ncurses_header:-curses.h}>
5489 rm -f conftest.$ac_objext conftest$ac_exeext
5490 if { (eval echo "$as_me:5490: \"$ac_link\"") >&5
5491 (eval $ac_link) 2>&5
5493 echo "$as_me:5493: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -s conftest$ac_exeext'
5496 { (eval echo "$as_me:5496: \"$ac_try\"") >&5
5499 echo "$as_me:5499: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5503 echo "$as_me: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5511 echo "$as_me:5511: result: $cf_result" >&5
5512 echo "${ECHO_T}$cf_result" >&6
5520 echo "$as_me:5520: checking for multibyte character support" >&5
5521 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
5522 if test "${cf_cv_utf8_lib+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 cf_save_LIBS="$LIBS"
5527 cat >conftest.$ac_ext <<_ACEOF
5528 #line 5528 "configure"
5529 #include "confdefs.h"
5540 rm -f conftest.$ac_objext conftest$ac_exeext
5541 if { (eval echo "$as_me:5541: \"$ac_link\"") >&5
5542 (eval $ac_link) 2>&5
5544 echo "$as_me:5544: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -s conftest$ac_exeext'
5547 { (eval echo "$as_me:5547: \"$ac_try\"") >&5
5550 echo "$as_me:5550: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5554 echo "$as_me: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5557 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
5558 # will be set on completion of the AC_TRY_LINK below.
5559 cf_cv_header_path_utf8=
5560 cf_cv_library_path_utf8=
5562 echo "${as_me:-configure}:5562: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
5564 cf_save_LIBS="$LIBS"
5566 cat >conftest.$ac_ext <<_ACEOF
5567 #line 5567 "configure"
5568 #include "confdefs.h"
5570 #include <libutf8.h>
5579 rm -f conftest.$ac_objext conftest$ac_exeext
5580 if { (eval echo "$as_me:5580: \"$ac_link\"") >&5
5581 (eval $ac_link) 2>&5
5583 echo "$as_me:5583: \$? = $ac_status" >&5
5584 (exit $ac_status); } &&
5585 { ac_try='test -s conftest$ac_exeext'
5586 { (eval echo "$as_me:5586: \"$ac_try\"") >&5
5589 echo "$as_me:5589: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5592 cf_cv_find_linkage_utf8=yes
5593 cf_cv_header_path_utf8=/usr/include
5594 cf_cv_library_path_utf8=/usr/lib
5597 echo "$as_me: failed program was:" >&5
5598 cat conftest.$ac_ext >&5
5600 LIBS="-lutf8 $cf_save_LIBS"
5602 cat >conftest.$ac_ext <<_ACEOF
5603 #line 5603 "configure"
5604 #include "confdefs.h"
5606 #include <libutf8.h>
5615 rm -f conftest.$ac_objext conftest$ac_exeext
5616 if { (eval echo "$as_me:5616: \"$ac_link\"") >&5
5617 (eval $ac_link) 2>&5
5619 echo "$as_me:5619: \$? = $ac_status" >&5
5620 (exit $ac_status); } &&
5621 { ac_try='test -s conftest$ac_exeext'
5622 { (eval echo "$as_me:5622: \"$ac_try\"") >&5
5625 echo "$as_me:5625: \$? = $ac_status" >&5
5626 (exit $ac_status); }; }; then
5628 cf_cv_find_linkage_utf8=yes
5629 cf_cv_header_path_utf8=/usr/include
5630 cf_cv_library_path_utf8=/usr/lib
5631 cf_cv_library_file_utf8="-lutf8"
5634 echo "$as_me: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5637 cf_cv_find_linkage_utf8=no
5638 LIBS="$cf_save_LIBS"
5640 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
5642 echo "${as_me:-configure}:5642: testing find linkage for utf8 library ..." 1>&5
5644 echo "${as_me:-configure}:5644: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
5646 cf_save_CPPFLAGS="$CPPFLAGS"
5647 cf_test_CPPFLAGS="$CPPFLAGS"
5651 # collect the current set of include-directories from compiler flags
5652 cf_header_path_list=""
5653 if test -n "${CFLAGS}${CPPFLAGS}" ; then
5654 for cf_header_path in $CPPFLAGS $CFLAGS
5656 case $cf_header_path in
5658 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
5660 test "x$cf_header_path" != "xNONE" && \
5661 test -d "$cf_header_path" && \
5663 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
5664 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
5665 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
5666 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
5667 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
5668 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
5671 cf_header_path_list="$cf_header_path_list $cf_search"
5677 # add the variations for the package we are looking for
5681 test "x$prefix" != "xNONE" && \
5682 test -d "$prefix" && \
5684 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
5685 test -d $prefix/include && cf_search="$cf_search $prefix/include"
5686 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
5687 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
5688 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
5689 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
5692 for cf_subdir_prefix in \
5701 test "x$cf_subdir_prefix" != "x$prefix" && \
5702 test -d "$cf_subdir_prefix" && \
5703 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
5704 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
5705 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
5706 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
5707 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
5708 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
5709 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
5714 test "$includedir" != NONE && \
5715 test "$includedir" != "/usr/include" && \
5716 test -d "$includedir" && {
5717 test -d $includedir && cf_search="$cf_search $includedir"
5718 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
5721 test "$oldincludedir" != NONE && \
5722 test "$oldincludedir" != "/usr/include" && \
5723 test -d "$oldincludedir" && {
5724 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
5725 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
5728 cf_search="$cf_search $cf_header_path_list"
5730 for cf_cv_header_path_utf8 in $cf_search
5732 if test -d $cf_cv_header_path_utf8 ; then
5733 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
5735 echo "${as_me:-configure}:5735: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
5737 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
5738 cat >conftest.$ac_ext <<_ACEOF
5739 #line 5739 "configure"
5740 #include "confdefs.h"
5742 #include <libutf8.h>
5751 rm -f conftest.$ac_objext
5752 if { (eval echo "$as_me:5752: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>&5
5755 echo "$as_me:5755: \$? = $ac_status" >&5
5756 (exit $ac_status); } &&
5757 { ac_try='test -s conftest.$ac_objext'
5758 { (eval echo "$as_me:5758: \"$ac_try\"") >&5
5761 echo "$as_me:5761: \$? = $ac_status" >&5
5762 (exit $ac_status); }; }; then
5764 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
5766 echo "${as_me:-configure}:5766: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
5768 cf_cv_find_linkage_utf8=maybe
5769 cf_test_CPPFLAGS="$CPPFLAGS"
5772 echo "$as_me: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5775 CPPFLAGS="$cf_save_CPPFLAGS"
5778 rm -f conftest.$ac_objext conftest.$ac_ext
5782 if test "$cf_cv_find_linkage_utf8" = maybe ; then
5784 echo "${as_me:-configure}:5784: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
5786 cf_save_LIBS="$LIBS"
5787 cf_save_LDFLAGS="$LDFLAGS"
5789 if test "$cf_cv_find_linkage_utf8" != yes ; then
5792 cf_library_path_list=""
5793 if test -n "${LDFLAGS}${LIBS}" ; then
5794 for cf_library_path in $LDFLAGS $LIBS
5796 case $cf_library_path in
5798 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
5800 test "x$cf_library_path" != "xNONE" && \
5801 test -d "$cf_library_path" && \
5803 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
5804 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
5805 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
5806 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
5807 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
5808 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
5811 cf_library_path_list="$cf_library_path_list $cf_search"
5819 test "x$prefix" != "xNONE" && \
5820 test -d "$prefix" && \
5822 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
5823 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
5824 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
5825 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
5826 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
5827 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
5830 for cf_subdir_prefix in \
5839 test "x$cf_subdir_prefix" != "x$prefix" && \
5840 test -d "$cf_subdir_prefix" && \
5841 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
5842 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
5843 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
5844 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
5845 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
5846 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
5847 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
5852 cf_search="$cf_library_path_list $cf_search"
5854 for cf_cv_library_path_utf8 in $cf_search
5856 if test -d $cf_cv_library_path_utf8 ; then
5857 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
5859 echo "${as_me:-configure}:5859: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
5861 CPPFLAGS="$cf_test_CPPFLAGS"
5862 LIBS="-lutf8 $cf_save_LIBS"
5863 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
5864 cat >conftest.$ac_ext <<_ACEOF
5865 #line 5865 "configure"
5866 #include "confdefs.h"
5868 #include <libutf8.h>
5877 rm -f conftest.$ac_objext conftest$ac_exeext
5878 if { (eval echo "$as_me:5878: \"$ac_link\"") >&5
5879 (eval $ac_link) 2>&5
5881 echo "$as_me:5881: \$? = $ac_status" >&5
5882 (exit $ac_status); } &&
5883 { ac_try='test -s conftest$ac_exeext'
5884 { (eval echo "$as_me:5884: \"$ac_try\"") >&5
5887 echo "$as_me:5887: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then
5890 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
5892 echo "${as_me:-configure}:5892: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
5894 cf_cv_find_linkage_utf8=yes
5895 cf_cv_library_file_utf8="-lutf8"
5898 echo "$as_me: failed program was:" >&5
5899 cat conftest.$ac_ext >&5
5901 CPPFLAGS="$cf_save_CPPFLAGS"
5902 LIBS="$cf_save_LIBS"
5903 LDFLAGS="$cf_save_LDFLAGS"
5906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5909 CPPFLAGS="$cf_save_CPPFLAGS"
5910 LDFLAGS="$cf_save_LDFLAGS"
5914 cf_cv_find_linkage_utf8=no
5918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5923 LIBS="$cf_save_LIBS"
5925 if test "$cf_cv_find_linkage_utf8" = yes ; then
5926 cf_cv_utf8_lib=add-on
5932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5934 echo "$as_me:5934: result: $cf_cv_utf8_lib" >&5
5935 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
5937 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
5939 if test "$cf_cv_utf8_lib" = "add-on" ; then
5941 cat >>confdefs.h <<\EOF
5942 #define HAVE_LIBUTF8_H 1
5945 if test -n "$cf_cv_header_path_utf8" ; then
5946 for cf_add_incdir in $cf_cv_header_path_utf8
5948 while test $cf_add_incdir != /usr/include
5950 if test -d $cf_add_incdir
5953 if test -n "$CFLAGS$CPPFLAGS" ; then
5954 # a loop is needed to ensure we can add subdirs of existing dirs
5955 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5956 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5957 cf_have_incdir=yes; break
5962 if test "$cf_have_incdir" = no ; then
5963 if test "$cf_add_incdir" = /usr/local/include ; then
5964 if test "$GCC" = yes
5966 cf_save_CPPFLAGS=$CPPFLAGS
5967 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5968 cat >conftest.$ac_ext <<_ACEOF
5969 #line 5969 "configure"
5970 #include "confdefs.h"
5980 rm -f conftest.$ac_objext
5981 if { (eval echo "$as_me:5981: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>&5
5984 echo "$as_me:5984: \$? = $ac_status" >&5
5985 (exit $ac_status); } &&
5986 { ac_try='test -s conftest.$ac_objext'
5987 { (eval echo "$as_me:5987: \"$ac_try\"") >&5
5990 echo "$as_me:5990: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5994 echo "$as_me: failed program was:" >&5
5995 cat conftest.$ac_ext >&5
5998 rm -f conftest.$ac_objext conftest.$ac_ext
5999 CPPFLAGS=$cf_save_CPPFLAGS
6004 if test "$cf_have_incdir" = no ; then
6005 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6007 echo "${as_me:-configure}:6007: testing adding $cf_add_incdir to include-path ..." 1>&5
6009 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6011 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6012 test "$cf_top_incdir" = "$cf_add_incdir" && break
6013 cf_add_incdir="$cf_top_incdir"
6022 if test -n "$cf_cv_library_path_utf8" ; then
6023 for cf_add_libdir in $cf_cv_library_path_utf8
6025 if test $cf_add_libdir = /usr/lib ; then
6027 elif test -d $cf_add_libdir
6030 if test -n "$LDFLAGS$LIBS" ; then
6031 # a loop is needed to ensure we can add subdirs of existing dirs
6032 for cf_test_libdir in $LDFLAGS $LIBS ; do
6033 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6034 cf_have_libdir=yes; break
6038 if test "$cf_have_libdir" = no ; then
6039 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6041 echo "${as_me:-configure}:6041: testing adding $cf_add_libdir to library-path ..." 1>&5
6043 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6049 cf_add_libs="$cf_cv_library_file_utf8"
6050 # Filter out duplicates - this happens with badly-designed ".pc" files...
6051 for cf_add_1lib in $LIBS
6053 for cf_add_2lib in $cf_add_libs
6055 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6061 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6067 cf_ncuconfig_root=$cf_cv_screen
6068 cf_have_ncuconfig=no
6070 if test "x$PKG_CONFIG" != xnone; then
6071 echo "$as_me:6071: checking pkg-config for $cf_ncuconfig_root" >&5
6072 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
6073 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
6074 echo "$as_me:6074: result: yes" >&5
6075 echo "${ECHO_T}yes" >&6
6077 echo "$as_me:6077: checking if the $cf_ncuconfig_root package files work" >&5
6078 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
6079 cf_have_ncuconfig=unknown
6081 cf_save_CPPFLAGS="$CPPFLAGS"
6082 cf_save_LIBS="$LIBS"
6084 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
6086 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
6087 # Filter out duplicates - this happens with badly-designed ".pc" files...
6088 for cf_add_1lib in $LIBS
6090 for cf_add_2lib in $cf_add_libs
6092 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6098 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6102 cat >conftest.$ac_ext <<_ACEOF
6103 #line 6103 "configure"
6104 #include "confdefs.h"
6105 #include <${cf_cv_ncurses_header:-curses.h}>
6109 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
6114 rm -f conftest.$ac_objext conftest$ac_exeext
6115 if { (eval echo "$as_me:6115: \"$ac_link\"") >&5
6116 (eval $ac_link) 2>&5
6118 echo "$as_me:6118: \$? = $ac_status" >&5
6119 (exit $ac_status); } &&
6120 { ac_try='test -s conftest$ac_exeext'
6121 { (eval echo "$as_me:6121: \"$ac_try\"") >&5
6124 echo "$as_me:6124: \$? = $ac_status" >&5
6125 (exit $ac_status); }; }; then
6126 if test "$cross_compiling" = yes; then
6127 { { echo "$as_me:6127: error: cannot run test program while cross compiling" >&5
6128 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6129 { (exit 1); exit 1; }; }
6131 cat >conftest.$ac_ext <<_ACEOF
6132 #line 6132 "configure"
6133 #include "confdefs.h"
6134 #include <${cf_cv_ncurses_header:-curses.h}>
6136 { char *xx = curses_version(); return (xx == 0); }
6138 rm -f conftest$ac_exeext
6139 if { (eval echo "$as_me:6139: \"$ac_link\"") >&5
6140 (eval $ac_link) 2>&5
6142 echo "$as_me:6142: \$? = $ac_status" >&5
6143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6144 { (eval echo "$as_me:6144: \"$ac_try\"") >&5
6147 echo "$as_me:6147: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 cf_have_ncuconfig=yes
6151 echo "$as_me: program exited with status $ac_status" >&5
6152 echo "$as_me: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6154 cf_have_ncuconfig=no
6156 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6159 echo "$as_me: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6161 cf_have_ncuconfig=no
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6165 echo "$as_me:6165: result: $cf_have_ncuconfig" >&5
6166 echo "${ECHO_T}$cf_have_ncuconfig" >&6
6167 if test "$cf_have_ncuconfig" != "yes"
6169 CPPFLAGS="$cf_save_CPPFLAGS"
6170 LIBS="$cf_save_LIBS"
6173 cat >>confdefs.h <<\EOF
6180 echo "$as_me:6180: result: no" >&5
6181 echo "${ECHO_T}no" >&6
6185 if test "x$cf_have_ncuconfig" = "xno"; then
6186 echo "Looking for ${cf_ncuconfig_root}-config"
6188 if test -n "$ac_tool_prefix"; then
6189 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6193 echo "$as_me:6193: checking for $ac_word" >&5
6194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6195 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 if test -n "$NCURSES_CONFIG"; then
6199 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
6201 ac_save_IFS=$IFS; IFS=$ac_path_separator
6203 for ac_dir in $ac_dummy; do
6205 test -z "$ac_dir" && ac_dir=.
6206 $as_executable_p "$ac_dir/$ac_word" || continue
6207 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
6208 echo "$as_me:6208: found $ac_dir/$ac_word" >&5
6214 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
6215 if test -n "$NCURSES_CONFIG"; then
6216 echo "$as_me:6216: result: $NCURSES_CONFIG" >&5
6217 echo "${ECHO_T}$NCURSES_CONFIG" >&6
6219 echo "$as_me:6219: result: no" >&5
6220 echo "${ECHO_T}no" >&6
6223 test -n "$NCURSES_CONFIG" && break
6226 if test -z "$NCURSES_CONFIG"; then
6227 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
6228 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6230 # Extract the first word of "$ac_prog", so it can be a program name with args.
6231 set dummy $ac_prog; ac_word=$2
6232 echo "$as_me:6232: checking for $ac_word" >&5
6233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6234 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
6235 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 if test -n "$ac_ct_NCURSES_CONFIG"; then
6238 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
6240 ac_save_IFS=$IFS; IFS=$ac_path_separator
6242 for ac_dir in $ac_dummy; do
6244 test -z "$ac_dir" && ac_dir=.
6245 $as_executable_p "$ac_dir/$ac_word" || continue
6246 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
6247 echo "$as_me:6247: found $ac_dir/$ac_word" >&5
6253 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
6254 if test -n "$ac_ct_NCURSES_CONFIG"; then
6255 echo "$as_me:6255: result: $ac_ct_NCURSES_CONFIG" >&5
6256 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
6258 echo "$as_me:6258: result: no" >&5
6259 echo "${ECHO_T}no" >&6
6262 test -n "$ac_ct_NCURSES_CONFIG" && break
6264 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
6266 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
6269 if test "$NCURSES_CONFIG" != none ; then
6271 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
6273 cf_add_libs="`$NCURSES_CONFIG --libs`"
6274 # Filter out duplicates - this happens with badly-designed ".pc" files...
6275 for cf_add_1lib in $LIBS
6277 for cf_add_2lib in $cf_add_libs
6279 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6285 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6289 # even with config script, some packages use no-override for curses.h
6291 echo "$as_me:6291: checking if we have identified curses headers" >&5
6292 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
6293 if test "${cf_cv_ncurses_header+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 cf_cv_ncurses_header=none
6299 ncurses.h $cf_cv_screen/ncurses.h \
6300 curses.h $cf_cv_screen/curses.h
6302 cat >conftest.$ac_ext <<_ACEOF
6303 #line 6303 "configure"
6304 #include "confdefs.h"
6305 #include <${cf_header}>
6309 initscr(); tgoto("?", 0,0)
6314 rm -f conftest.$ac_objext
6315 if { (eval echo "$as_me:6315: \"$ac_compile\"") >&5
6316 (eval $ac_compile) 2>&5
6318 echo "$as_me:6318: \$? = $ac_status" >&5
6319 (exit $ac_status); } &&
6320 { ac_try='test -s conftest.$ac_objext'
6321 { (eval echo "$as_me:6321: \"$ac_try\"") >&5
6324 echo "$as_me:6324: \$? = $ac_status" >&5
6325 (exit $ac_status); }; }; then
6326 cf_cv_ncurses_header=$cf_header; break
6328 echo "$as_me: failed program was:" >&5
6329 cat conftest.$ac_ext >&5
6331 rm -f conftest.$ac_objext conftest.$ac_ext
6335 echo "$as_me:6335: result: $cf_cv_ncurses_header" >&5
6336 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
6338 if test "$cf_cv_ncurses_header" = none ; then
6339 { { echo "$as_me:6339: error: No curses header-files found" >&5
6340 echo "$as_me: error: No curses header-files found" >&2;}
6341 { (exit 1); exit 1; }; }
6344 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
6346 for ac_header in $cf_cv_ncurses_header
6348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6349 echo "$as_me:6349: checking for $ac_header" >&5
6350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6352 echo $ECHO_N "(cached) $ECHO_C" >&6
6354 cat >conftest.$ac_ext <<_ACEOF
6355 #line 6355 "configure"
6356 #include "confdefs.h"
6357 #include <$ac_header>
6359 if { (eval echo "$as_me:6359: \"$ac_cpp conftest.$ac_ext\"") >&5
6360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6362 egrep -v '^ *\+' conftest.er1 >conftest.err
6364 cat conftest.err >&5
6365 echo "$as_me:6365: \$? = $ac_status" >&5
6366 (exit $ac_status); } >/dev/null; then
6367 if test -s conftest.err; then
6368 ac_cpp_err=$ac_c_preproc_warn_flag
6375 if test -z "$ac_cpp_err"; then
6376 eval "$as_ac_Header=yes"
6378 echo "$as_me: failed program was:" >&5
6379 cat conftest.$ac_ext >&5
6380 eval "$as_ac_Header=no"
6382 rm -f conftest.err conftest.$ac_ext
6384 echo "$as_me:6384: result: `eval echo '${'$as_ac_Header'}'`" >&5
6385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6387 cat >>confdefs.h <<EOF
6388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6394 cat >>confdefs.h <<\EOF
6398 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6400 cat >>confdefs.h <<EOF
6401 #define $cf_nculib_ROOT 1
6404 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
6408 cf_ncuhdr_root=$cf_cv_screen
6410 test -n "$cf_cv_curses_dir" && \
6411 test "$cf_cv_curses_dir" != "no" && { \
6413 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
6414 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
6416 while test $cf_add_incdir != /usr/include
6418 if test -d $cf_add_incdir
6421 if test -n "$CFLAGS$CPPFLAGS" ; then
6422 # a loop is needed to ensure we can add subdirs of existing dirs
6423 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6424 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6425 cf_have_incdir=yes; break
6430 if test "$cf_have_incdir" = no ; then
6431 if test "$cf_add_incdir" = /usr/local/include ; then
6432 if test "$GCC" = yes
6434 cf_save_CPPFLAGS=$CPPFLAGS
6435 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6436 cat >conftest.$ac_ext <<_ACEOF
6437 #line 6437 "configure"
6438 #include "confdefs.h"
6448 rm -f conftest.$ac_objext
6449 if { (eval echo "$as_me:6449: \"$ac_compile\"") >&5
6450 (eval $ac_compile) 2>&5
6452 echo "$as_me:6452: \$? = $ac_status" >&5
6453 (exit $ac_status); } &&
6454 { ac_try='test -s conftest.$ac_objext'
6455 { (eval echo "$as_me:6455: \"$ac_try\"") >&5
6458 echo "$as_me:6458: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6462 echo "$as_me: failed program was:" >&5
6463 cat conftest.$ac_ext >&5
6466 rm -f conftest.$ac_objext conftest.$ac_ext
6467 CPPFLAGS=$cf_save_CPPFLAGS
6472 if test "$cf_have_incdir" = no ; then
6473 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6475 echo "${as_me:-configure}:6475: testing adding $cf_add_incdir to include-path ..." 1>&5
6477 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6479 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6480 test "$cf_top_incdir" = "$cf_add_incdir" && break
6481 cf_add_incdir="$cf_top_incdir"
6492 echo "$as_me:6492: checking for $cf_ncuhdr_root header in include-path" >&5
6493 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
6494 if test "${cf_cv_ncurses_h+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
6499 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
6500 for cf_header in $cf_header_list
6503 cat >conftest.$ac_ext <<_ACEOF
6504 #line 6504 "configure"
6505 #include "confdefs.h"
6507 #include <$cf_header>
6512 #ifdef NCURSES_VERSION
6514 printf("%s\n", NCURSES_VERSION);
6527 rm -f conftest.$ac_objext
6528 if { (eval echo "$as_me:6528: \"$ac_compile\"") >&5
6529 (eval $ac_compile) 2>&5
6531 echo "$as_me:6531: \$? = $ac_status" >&5
6532 (exit $ac_status); } &&
6533 { ac_try='test -s conftest.$ac_objext'
6534 { (eval echo "$as_me:6534: \"$ac_try\"") >&5
6537 echo "$as_me:6537: \$? = $ac_status" >&5
6538 (exit $ac_status); }; }; then
6539 cf_cv_ncurses_h=$cf_header
6542 echo "$as_me: failed program was:" >&5
6543 cat conftest.$ac_ext >&5
6546 rm -f conftest.$ac_objext conftest.$ac_ext
6548 test "$cf_cv_ncurses_h" != no && break
6552 echo "$as_me:6552: result: $cf_cv_ncurses_h" >&5
6553 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
6555 if test "$cf_cv_ncurses_h" != no ; then
6556 cf_cv_ncurses_header=$cf_cv_ncurses_h
6559 echo "$as_me:6559: checking for $cf_ncuhdr_root include-path" >&5
6560 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
6561 if test "${cf_cv_ncurses_h2+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 test -n "$verbose" && echo
6569 # collect the current set of include-directories from compiler flags
6570 cf_header_path_list=""
6571 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6572 for cf_header_path in $CPPFLAGS $CFLAGS
6574 case $cf_header_path in
6576 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6578 test "x$cf_header_path" != "xNONE" && \
6579 test -d "$cf_header_path" && \
6581 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6582 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6583 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
6584 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
6585 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
6586 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"
6589 cf_header_path_list="$cf_header_path_list $cf_search"
6595 # add the variations for the package we are looking for
6599 test "x$prefix" != "xNONE" && \
6600 test -d "$prefix" && \
6602 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6603 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6604 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
6605 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
6606 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
6607 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6610 for cf_subdir_prefix in \
6619 test "x$cf_subdir_prefix" != "x$prefix" && \
6620 test -d "$cf_subdir_prefix" && \
6621 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
6622 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
6623 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
6624 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
6625 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
6626 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
6627 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"
6632 test "$includedir" != NONE && \
6633 test "$includedir" != "/usr/include" && \
6634 test -d "$includedir" && {
6635 test -d $includedir && cf_search="$cf_search $includedir"
6636 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
6639 test "$oldincludedir" != NONE && \
6640 test "$oldincludedir" != "/usr/include" && \
6641 test -d "$oldincludedir" && {
6642 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6643 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
6646 cf_search="$cf_search $cf_header_path_list"
6648 test -n "$verbose" && echo search path $cf_search
6649 cf_save2_CPPFLAGS="$CPPFLAGS"
6650 for cf_incdir in $cf_search
6653 if test -n "$cf_incdir" ; then
6654 for cf_add_incdir in $cf_incdir
6656 while test $cf_add_incdir != /usr/include
6658 if test -d $cf_add_incdir
6661 if test -n "$CFLAGS$CPPFLAGS" ; then
6662 # a loop is needed to ensure we can add subdirs of existing dirs
6663 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6664 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6665 cf_have_incdir=yes; break
6670 if test "$cf_have_incdir" = no ; then
6671 if test "$cf_add_incdir" = /usr/local/include ; then
6672 if test "$GCC" = yes
6674 cf_save_CPPFLAGS=$CPPFLAGS
6675 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6676 cat >conftest.$ac_ext <<_ACEOF
6677 #line 6677 "configure"
6678 #include "confdefs.h"
6688 rm -f conftest.$ac_objext
6689 if { (eval echo "$as_me:6689: \"$ac_compile\"") >&5
6690 (eval $ac_compile) 2>&5
6692 echo "$as_me:6692: \$? = $ac_status" >&5
6693 (exit $ac_status); } &&
6694 { ac_try='test -s conftest.$ac_objext'
6695 { (eval echo "$as_me:6695: \"$ac_try\"") >&5
6698 echo "$as_me:6698: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }; then
6702 echo "$as_me: failed program was:" >&5
6703 cat conftest.$ac_ext >&5
6706 rm -f conftest.$ac_objext conftest.$ac_ext
6707 CPPFLAGS=$cf_save_CPPFLAGS
6712 if test "$cf_have_incdir" = no ; then
6713 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6715 echo "${as_me:-configure}:6715: testing adding $cf_add_incdir to include-path ..." 1>&5
6717 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6719 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6720 test "$cf_top_incdir" = "$cf_add_incdir" && break
6721 cf_add_incdir="$cf_top_incdir"
6735 cat >conftest.$ac_ext <<_ACEOF
6736 #line 6736 "configure"
6737 #include "confdefs.h"
6739 #include <$cf_header>
6744 #ifdef NCURSES_VERSION
6746 printf("%s\n", NCURSES_VERSION);
6759 rm -f conftest.$ac_objext
6760 if { (eval echo "$as_me:6760: \"$ac_compile\"") >&5
6761 (eval $ac_compile) 2>&5
6763 echo "$as_me:6763: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -s conftest.$ac_objext'
6766 { (eval echo "$as_me:6766: \"$ac_try\"") >&5
6769 echo "$as_me:6769: \$? = $ac_status" >&5
6770 (exit $ac_status); }; }; then
6771 cf_cv_ncurses_h2=$cf_header
6774 echo "$as_me: failed program was:" >&5
6775 cat conftest.$ac_ext >&5
6778 rm -f conftest.$ac_objext conftest.$ac_ext
6780 if test "$cf_cv_ncurses_h2" != no ; then
6781 cf_cv_ncurses_h2=$cf_incdir/$cf_header
6782 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
6785 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
6787 CPPFLAGS="$cf_save2_CPPFLAGS"
6788 test "$cf_cv_ncurses_h2" != no && break
6790 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:6790: error: not found" >&5
6791 echo "$as_me: error: not found" >&2;}
6792 { (exit 1); exit 1; }; }
6795 echo "$as_me:6795: result: $cf_cv_ncurses_h2" >&5
6796 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
6798 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
6799 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
6800 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
6801 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
6804 if test -n "$cf_1st_incdir" ; then
6805 for cf_add_incdir in $cf_1st_incdir
6807 while test $cf_add_incdir != /usr/include
6809 if test -d $cf_add_incdir
6812 if test -n "$CFLAGS$CPPFLAGS" ; then
6813 # a loop is needed to ensure we can add subdirs of existing dirs
6814 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6815 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6816 cf_have_incdir=yes; break
6821 if test "$cf_have_incdir" = no ; then
6822 if test "$cf_add_incdir" = /usr/local/include ; then
6823 if test "$GCC" = yes
6825 cf_save_CPPFLAGS=$CPPFLAGS
6826 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6827 cat >conftest.$ac_ext <<_ACEOF
6828 #line 6828 "configure"
6829 #include "confdefs.h"
6839 rm -f conftest.$ac_objext
6840 if { (eval echo "$as_me:6840: \"$ac_compile\"") >&5
6841 (eval $ac_compile) 2>&5
6843 echo "$as_me:6843: \$? = $ac_status" >&5
6844 (exit $ac_status); } &&
6845 { ac_try='test -s conftest.$ac_objext'
6846 { (eval echo "$as_me:6846: \"$ac_try\"") >&5
6849 echo "$as_me:6849: \$? = $ac_status" >&5
6850 (exit $ac_status); }; }; then
6853 echo "$as_me: failed program was:" >&5
6854 cat conftest.$ac_ext >&5
6857 rm -f conftest.$ac_objext conftest.$ac_ext
6858 CPPFLAGS=$cf_save_CPPFLAGS
6863 if test "$cf_have_incdir" = no ; then
6864 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6866 echo "${as_me:-configure}:6866: testing adding $cf_add_incdir to include-path ..." 1>&5
6868 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6870 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6871 test "$cf_top_incdir" = "$cf_add_incdir" && break
6872 cf_add_incdir="$cf_top_incdir"
6883 # Set definitions to allow ifdef'ing for ncurses.h
6885 case $cf_cv_ncurses_header in
6888 cat >>confdefs.h <<\EOF
6889 #define HAVE_NCURSES_H 1
6895 case $cf_cv_ncurses_header in
6896 (ncurses/curses.h|ncurses/ncurses.h)
6898 cat >>confdefs.h <<\EOF
6899 #define HAVE_NCURSES_NCURSES_H 1
6903 (ncursesw/curses.h|ncursesw/ncurses.h)
6905 cat >>confdefs.h <<\EOF
6906 #define HAVE_NCURSESW_NCURSES_H 1
6912 echo "$as_me:6912: checking for terminfo header" >&5
6913 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6914 if test "${cf_cv_term_header+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 case ${cf_cv_ncurses_header} in
6919 (*/ncurses.h|*/ncursesw.h)
6920 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6923 cf_term_header=term.h
6927 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6929 cat >conftest.$ac_ext <<_ACEOF
6930 #line 6930 "configure"
6931 #include "confdefs.h"
6933 #include <${cf_cv_ncurses_header:-curses.h}>
6939 int x = auto_left_margin
6944 rm -f conftest.$ac_objext
6945 if { (eval echo "$as_me:6945: \"$ac_compile\"") >&5
6946 (eval $ac_compile) 2>&5
6948 echo "$as_me:6948: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -s conftest.$ac_objext'
6951 { (eval echo "$as_me:6951: \"$ac_try\"") >&5
6954 echo "$as_me:6954: \$? = $ac_status" >&5
6955 (exit $ac_status); }; }; then
6957 cf_cv_term_header="$cf_test"
6959 echo "$as_me: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6962 cf_cv_term_header=unknown
6965 rm -f conftest.$ac_objext conftest.$ac_ext
6966 test "$cf_cv_term_header" != unknown && break
6970 echo "$as_me:6970: result: $cf_cv_term_header" >&5
6971 echo "${ECHO_T}$cf_cv_term_header" >&6
6973 # Set definitions to allow ifdef'ing to accommodate subdirectories
6975 case $cf_cv_term_header in
6978 cat >>confdefs.h <<\EOF
6979 #define HAVE_TERM_H 1
6985 case $cf_cv_term_header in
6988 cat >>confdefs.h <<\EOF
6989 #define HAVE_NCURSES_TERM_H 1
6995 cat >>confdefs.h <<\EOF
6996 #define HAVE_NCURSESW_TERM_H 1
7002 # some applications need this, but should check for NCURSES_VERSION
7004 cat >>confdefs.h <<\EOF
7008 echo "$as_me:7008: checking for ncurses version" >&5
7009 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
7010 if test "${cf_cv_ncurses_version+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 cf_cv_ncurses_version=no
7017 if test "$cross_compiling" = yes; then
7019 # This will not work if the preprocessor splits the line after the
7020 # Autoconf token. The 'unproto' program does that.
7021 cat > conftest.$ac_ext <<EOF
7022 #include <${cf_cv_ncurses_header:-curses.h}>
7024 #ifdef NCURSES_VERSION
7025 Autoconf NCURSES_VERSION
7033 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
7034 { (eval echo "$as_me:7034: \"$cf_try\"") >&5
7037 echo "$as_me:7037: \$? = $ac_status" >&5
7038 (exit $ac_status); }
7039 if test -f conftest.out ; then
7040 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
7041 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
7046 cat >conftest.$ac_ext <<_ACEOF
7047 #line 7047 "configure"
7048 #include "confdefs.h"
7050 #include <${cf_cv_ncurses_header:-curses.h}>
7054 FILE *fp = fopen("$cf_tempfile", "w");
7055 #ifdef NCURSES_VERSION
7056 # ifdef NCURSES_VERSION_PATCH
7057 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
7059 fprintf(fp, "%s\n", NCURSES_VERSION);
7063 fprintf(fp, "old\n");
7068 ${cf_cv_main_return:-return}(0);
7071 rm -f conftest$ac_exeext
7072 if { (eval echo "$as_me:7072: \"$ac_link\"") >&5
7073 (eval $ac_link) 2>&5
7075 echo "$as_me:7075: \$? = $ac_status" >&5
7076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7077 { (eval echo "$as_me:7077: \"$ac_try\"") >&5
7080 echo "$as_me:7080: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7083 cf_cv_ncurses_version=`cat $cf_tempfile`
7085 echo "$as_me: program exited with status $ac_status" >&5
7086 echo "$as_me: failed program was:" >&5
7087 cat conftest.$ac_ext >&5
7089 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7094 echo "$as_me:7094: result: $cf_cv_ncurses_version" >&5
7095 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
7096 test "$cf_cv_ncurses_version" = no ||
7097 cat >>confdefs.h <<\EOF
7101 cf_nculib_root=$cf_cv_screen
7102 # This works, except for the special case where we find gpm, but
7103 # ncurses is in a nonstandard location via $LIBS, and we really want
7106 cf_ncurses_SAVE="$LIBS"
7107 echo "$as_me:7107: checking for Gpm_Open in -lgpm" >&5
7108 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7109 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7112 ac_check_lib_save_LIBS=$LIBS
7114 cat >conftest.$ac_ext <<_ACEOF
7115 #line 7115 "configure"
7116 #include "confdefs.h"
7118 /* Override any gcc2 internal prototype to avoid an error. */
7122 /* We use char because int might match the return type of a gcc2
7123 builtin and then its argument prototype would still apply. */
7133 rm -f conftest.$ac_objext conftest$ac_exeext
7134 if { (eval echo "$as_me:7134: \"$ac_link\"") >&5
7135 (eval $ac_link) 2>&5
7137 echo "$as_me:7137: \$? = $ac_status" >&5
7138 (exit $ac_status); } &&
7139 { ac_try='test -s conftest$ac_exeext'
7140 { (eval echo "$as_me:7140: \"$ac_try\"") >&5
7143 echo "$as_me:7143: \$? = $ac_status" >&5
7144 (exit $ac_status); }; }; then
7145 ac_cv_lib_gpm_Gpm_Open=yes
7147 echo "$as_me: failed program was:" >&5
7148 cat conftest.$ac_ext >&5
7149 ac_cv_lib_gpm_Gpm_Open=no
7151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7152 LIBS=$ac_check_lib_save_LIBS
7154 echo "$as_me:7154: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7155 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7156 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
7157 echo "$as_me:7157: checking for initscr in -lgpm" >&5
7158 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
7159 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 ac_check_lib_save_LIBS=$LIBS
7164 cat >conftest.$ac_ext <<_ACEOF
7165 #line 7165 "configure"
7166 #include "confdefs.h"
7168 /* Override any gcc2 internal prototype to avoid an error. */
7172 /* We use char because int might match the return type of a gcc2
7173 builtin and then its argument prototype would still apply. */
7183 rm -f conftest.$ac_objext conftest$ac_exeext
7184 if { (eval echo "$as_me:7184: \"$ac_link\"") >&5
7185 (eval $ac_link) 2>&5
7187 echo "$as_me:7187: \$? = $ac_status" >&5
7188 (exit $ac_status); } &&
7189 { ac_try='test -s conftest$ac_exeext'
7190 { (eval echo "$as_me:7190: \"$ac_try\"") >&5
7193 echo "$as_me:7193: \$? = $ac_status" >&5
7194 (exit $ac_status); }; }; then
7195 ac_cv_lib_gpm_initscr=yes
7197 echo "$as_me: failed program was:" >&5
7198 cat conftest.$ac_ext >&5
7199 ac_cv_lib_gpm_initscr=no
7201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7202 LIBS=$ac_check_lib_save_LIBS
7204 echo "$as_me:7204: result: $ac_cv_lib_gpm_initscr" >&5
7205 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
7206 if test $ac_cv_lib_gpm_initscr = yes; then
7207 LIBS="$cf_ncurses_SAVE"
7209 cf_ncurses_LIBS="-lgpm"
7216 # This is only necessary if you are linking against an obsolete
7217 # version of ncurses (but it should do no harm, since it's static).
7218 if test "$cf_nculib_root" = ncurses ; then
7219 echo "$as_me:7219: checking for tgoto in -lmytinfo" >&5
7220 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7221 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 ac_check_lib_save_LIBS=$LIBS
7225 LIBS="-lmytinfo $LIBS"
7226 cat >conftest.$ac_ext <<_ACEOF
7227 #line 7227 "configure"
7228 #include "confdefs.h"
7230 /* Override any gcc2 internal prototype to avoid an error. */
7234 /* We use char because int might match the return type of a gcc2
7235 builtin and then its argument prototype would still apply. */
7245 rm -f conftest.$ac_objext conftest$ac_exeext
7246 if { (eval echo "$as_me:7246: \"$ac_link\"") >&5
7247 (eval $ac_link) 2>&5
7249 echo "$as_me:7249: \$? = $ac_status" >&5
7250 (exit $ac_status); } &&
7251 { ac_try='test -s conftest$ac_exeext'
7252 { (eval echo "$as_me:7252: \"$ac_try\"") >&5
7255 echo "$as_me:7255: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 ac_cv_lib_mytinfo_tgoto=yes
7259 echo "$as_me: failed program was:" >&5
7260 cat conftest.$ac_ext >&5
7261 ac_cv_lib_mytinfo_tgoto=no
7263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7264 LIBS=$ac_check_lib_save_LIBS
7266 echo "$as_me:7266: result: $ac_cv_lib_mytinfo_tgoto" >&5
7267 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
7268 if test $ac_cv_lib_mytinfo_tgoto = yes; then
7269 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
7276 cf_add_libs="$cf_ncurses_LIBS"
7277 # Filter out duplicates - this happens with badly-designed ".pc" files...
7278 for cf_add_1lib in $LIBS
7280 for cf_add_2lib in $cf_add_libs
7282 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7288 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7292 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
7295 cf_add_libs="-l$cf_nculib_root"
7296 # Filter out duplicates - this happens with badly-designed ".pc" files...
7297 for cf_add_1lib in $LIBS
7299 for cf_add_2lib in $cf_add_libs
7301 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7307 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7313 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
7315 echo "$as_me:7315: checking for initscr" >&5
7316 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7317 if test "${ac_cv_func_initscr+set}" = set; then
7318 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 cat >conftest.$ac_ext <<_ACEOF
7321 #line 7321 "configure"
7322 #include "confdefs.h"
7323 /* System header to define __stub macros and hopefully few prototypes,
7324 which can conflict with char initscr (); below. */
7326 /* Override any gcc2 internal prototype to avoid an error. */
7330 /* We use char because int might match the return type of a gcc2
7331 builtin and then its argument prototype would still apply. */
7338 /* The GNU C library defines this for functions which it implements
7339 to always fail with ENOSYS. Some functions are actually named
7340 something starting with __ and the normal name is an alias. */
7341 #if defined (__stub_initscr) || defined (__stub___initscr)
7344 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7351 rm -f conftest.$ac_objext conftest$ac_exeext
7352 if { (eval echo "$as_me:7352: \"$ac_link\"") >&5
7353 (eval $ac_link) 2>&5
7355 echo "$as_me:7355: \$? = $ac_status" >&5
7356 (exit $ac_status); } &&
7357 { ac_try='test -s conftest$ac_exeext'
7358 { (eval echo "$as_me:7358: \"$ac_try\"") >&5
7361 echo "$as_me:7361: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_cv_func_initscr=yes
7365 echo "$as_me: failed program was:" >&5
7366 cat conftest.$ac_ext >&5
7367 ac_cv_func_initscr=no
7369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7371 echo "$as_me:7371: result: $ac_cv_func_initscr" >&5
7372 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7373 if test $ac_cv_func_initscr = yes; then
7374 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7377 cf_save_LIBS="$LIBS"
7378 echo "$as_me:7378: checking for initscr in -l$cf_nculib_root" >&5
7379 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
7380 LIBS="-l$cf_nculib_root $LIBS"
7381 cat >conftest.$ac_ext <<_ACEOF
7382 #line 7382 "configure"
7383 #include "confdefs.h"
7384 #include <${cf_cv_ncurses_header:-curses.h}>
7393 rm -f conftest.$ac_objext conftest$ac_exeext
7394 if { (eval echo "$as_me:7394: \"$ac_link\"") >&5
7395 (eval $ac_link) 2>&5
7397 echo "$as_me:7397: \$? = $ac_status" >&5
7398 (exit $ac_status); } &&
7399 { ac_try='test -s conftest$ac_exeext'
7400 { (eval echo "$as_me:7400: \"$ac_try\"") >&5
7403 echo "$as_me:7403: \$? = $ac_status" >&5
7404 (exit $ac_status); }; }; then
7405 echo "$as_me:7405: result: yes" >&5
7406 echo "${ECHO_T}yes" >&6
7407 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7410 echo "$as_me: failed program was:" >&5
7411 cat conftest.$ac_ext >&5
7412 echo "$as_me:7412: result: no" >&5
7413 echo "${ECHO_T}no" >&6
7416 cf_library_path_list=""
7417 if test -n "${LDFLAGS}${LIBS}" ; then
7418 for cf_library_path in $LDFLAGS $LIBS
7420 case $cf_library_path in
7422 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7424 test "x$cf_library_path" != "xNONE" && \
7425 test -d "$cf_library_path" && \
7427 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7428 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7429 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
7430 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
7431 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
7432 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"
7435 cf_library_path_list="$cf_library_path_list $cf_search"
7443 test "x$prefix" != "xNONE" && \
7444 test -d "$prefix" && \
7446 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7447 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7448 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
7449 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
7450 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
7451 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
7454 for cf_subdir_prefix in \
7463 test "x$cf_subdir_prefix" != "x$prefix" && \
7464 test -d "$cf_subdir_prefix" && \
7465 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
7466 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
7467 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
7468 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
7469 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
7470 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
7471 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"
7476 cf_search="$cf_library_path_list $cf_search"
7478 for cf_libdir in $cf_search
7480 echo "$as_me:7480: checking for -l$cf_nculib_root in $cf_libdir" >&5
7481 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
7482 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
7483 cat >conftest.$ac_ext <<_ACEOF
7484 #line 7484 "configure"
7485 #include "confdefs.h"
7486 #include <${cf_cv_ncurses_header:-curses.h}>
7495 rm -f conftest.$ac_objext conftest$ac_exeext
7496 if { (eval echo "$as_me:7496: \"$ac_link\"") >&5
7497 (eval $ac_link) 2>&5
7499 echo "$as_me:7499: \$? = $ac_status" >&5
7500 (exit $ac_status); } &&
7501 { ac_try='test -s conftest$ac_exeext'
7502 { (eval echo "$as_me:7502: \"$ac_try\"") >&5
7505 echo "$as_me:7505: \$? = $ac_status" >&5
7506 (exit $ac_status); }; }; then
7507 echo "$as_me:7507: result: yes" >&5
7508 echo "${ECHO_T}yes" >&6
7509 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7512 echo "$as_me: failed program was:" >&5
7513 cat conftest.$ac_ext >&5
7514 echo "$as_me:7514: result: no" >&5
7515 echo "${ECHO_T}no" >&6
7516 LIBS="$cf_save_LIBS"
7518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7526 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
7528 if test $cf_found_library = no ; then
7529 { { echo "$as_me:7529: error: Cannot link $cf_nculib_root library" >&5
7530 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
7531 { (exit 1); exit 1; }; }
7536 if test -n "$cf_ncurses_LIBS" ; then
7537 echo "$as_me:7537: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
7538 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
7539 cf_ncurses_SAVE="$LIBS"
7540 for p in $cf_ncurses_LIBS ; do
7541 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
7542 if test "$q" != "$LIBS" ; then
7546 cat >conftest.$ac_ext <<_ACEOF
7547 #line 7547 "configure"
7548 #include "confdefs.h"
7549 #include <${cf_cv_ncurses_header:-curses.h}>
7553 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7558 rm -f conftest.$ac_objext conftest$ac_exeext
7559 if { (eval echo "$as_me:7559: \"$ac_link\"") >&5
7560 (eval $ac_link) 2>&5
7562 echo "$as_me:7562: \$? = $ac_status" >&5
7563 (exit $ac_status); } &&
7564 { ac_try='test -s conftest$ac_exeext'
7565 { (eval echo "$as_me:7565: \"$ac_try\"") >&5
7568 echo "$as_me:7568: \$? = $ac_status" >&5
7569 (exit $ac_status); }; }; then
7570 echo "$as_me:7570: result: yes" >&5
7571 echo "${ECHO_T}yes" >&6
7573 echo "$as_me: failed program was:" >&5
7574 cat conftest.$ac_ext >&5
7575 echo "$as_me:7575: result: no" >&5
7576 echo "${ECHO_T}no" >&6
7577 LIBS="$cf_ncurses_SAVE"
7579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7582 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7584 cat >>confdefs.h <<EOF
7585 #define $cf_nculib_ROOT 1
7594 cf_ncuconfig_root=$cf_cv_screen
7595 cf_have_ncuconfig=no
7597 if test "x$PKG_CONFIG" != xnone; then
7598 echo "$as_me:7598: checking pkg-config for $cf_ncuconfig_root" >&5
7599 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
7600 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
7601 echo "$as_me:7601: result: yes" >&5
7602 echo "${ECHO_T}yes" >&6
7604 echo "$as_me:7604: checking if the $cf_ncuconfig_root package files work" >&5
7605 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
7606 cf_have_ncuconfig=unknown
7608 cf_save_CPPFLAGS="$CPPFLAGS"
7609 cf_save_LIBS="$LIBS"
7611 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
7613 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
7614 # Filter out duplicates - this happens with badly-designed ".pc" files...
7615 for cf_add_1lib in $LIBS
7617 for cf_add_2lib in $cf_add_libs
7619 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7625 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7629 cat >conftest.$ac_ext <<_ACEOF
7630 #line 7630 "configure"
7631 #include "confdefs.h"
7632 #include <${cf_cv_ncurses_header:-curses.h}>
7636 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7641 rm -f conftest.$ac_objext conftest$ac_exeext
7642 if { (eval echo "$as_me:7642: \"$ac_link\"") >&5
7643 (eval $ac_link) 2>&5
7645 echo "$as_me:7645: \$? = $ac_status" >&5
7646 (exit $ac_status); } &&
7647 { ac_try='test -s conftest$ac_exeext'
7648 { (eval echo "$as_me:7648: \"$ac_try\"") >&5
7651 echo "$as_me:7651: \$? = $ac_status" >&5
7652 (exit $ac_status); }; }; then
7653 if test "$cross_compiling" = yes; then
7654 { { echo "$as_me:7654: error: cannot run test program while cross compiling" >&5
7655 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7656 { (exit 1); exit 1; }; }
7658 cat >conftest.$ac_ext <<_ACEOF
7659 #line 7659 "configure"
7660 #include "confdefs.h"
7661 #include <${cf_cv_ncurses_header:-curses.h}>
7663 { char *xx = curses_version(); return (xx == 0); }
7665 rm -f conftest$ac_exeext
7666 if { (eval echo "$as_me:7666: \"$ac_link\"") >&5
7667 (eval $ac_link) 2>&5
7669 echo "$as_me:7669: \$? = $ac_status" >&5
7670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7671 { (eval echo "$as_me:7671: \"$ac_try\"") >&5
7674 echo "$as_me:7674: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 cf_have_ncuconfig=yes
7678 echo "$as_me: program exited with status $ac_status" >&5
7679 echo "$as_me: failed program was:" >&5
7680 cat conftest.$ac_ext >&5
7681 cf_have_ncuconfig=no
7683 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7686 echo "$as_me: failed program was:" >&5
7687 cat conftest.$ac_ext >&5
7688 cf_have_ncuconfig=no
7690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7692 echo "$as_me:7692: result: $cf_have_ncuconfig" >&5
7693 echo "${ECHO_T}$cf_have_ncuconfig" >&6
7694 if test "$cf_have_ncuconfig" != "yes"
7696 CPPFLAGS="$cf_save_CPPFLAGS"
7697 LIBS="$cf_save_LIBS"
7700 cat >>confdefs.h <<\EOF
7707 echo "$as_me:7707: result: no" >&5
7708 echo "${ECHO_T}no" >&6
7712 if test "x$cf_have_ncuconfig" = "xno"; then
7713 echo "Looking for ${cf_ncuconfig_root}-config"
7715 if test -n "$ac_tool_prefix"; then
7716 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
7718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7720 echo "$as_me:7720: checking for $ac_word" >&5
7721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7722 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 if test -n "$NCURSES_CONFIG"; then
7726 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
7728 ac_save_IFS=$IFS; IFS=$ac_path_separator
7730 for ac_dir in $ac_dummy; do
7732 test -z "$ac_dir" && ac_dir=.
7733 $as_executable_p "$ac_dir/$ac_word" || continue
7734 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
7735 echo "$as_me:7735: found $ac_dir/$ac_word" >&5
7741 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
7742 if test -n "$NCURSES_CONFIG"; then
7743 echo "$as_me:7743: result: $NCURSES_CONFIG" >&5
7744 echo "${ECHO_T}$NCURSES_CONFIG" >&6
7746 echo "$as_me:7746: result: no" >&5
7747 echo "${ECHO_T}no" >&6
7750 test -n "$NCURSES_CONFIG" && break
7753 if test -z "$NCURSES_CONFIG"; then
7754 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
7755 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
7757 # Extract the first word of "$ac_prog", so it can be a program name with args.
7758 set dummy $ac_prog; ac_word=$2
7759 echo "$as_me:7759: checking for $ac_word" >&5
7760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7761 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 if test -n "$ac_ct_NCURSES_CONFIG"; then
7765 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
7767 ac_save_IFS=$IFS; IFS=$ac_path_separator
7769 for ac_dir in $ac_dummy; do
7771 test -z "$ac_dir" && ac_dir=.
7772 $as_executable_p "$ac_dir/$ac_word" || continue
7773 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
7774 echo "$as_me:7774: found $ac_dir/$ac_word" >&5
7780 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
7781 if test -n "$ac_ct_NCURSES_CONFIG"; then
7782 echo "$as_me:7782: result: $ac_ct_NCURSES_CONFIG" >&5
7783 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
7785 echo "$as_me:7785: result: no" >&5
7786 echo "${ECHO_T}no" >&6
7789 test -n "$ac_ct_NCURSES_CONFIG" && break
7791 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
7793 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
7796 if test "$NCURSES_CONFIG" != none ; then
7798 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
7800 cf_add_libs="`$NCURSES_CONFIG --libs`"
7801 # Filter out duplicates - this happens with badly-designed ".pc" files...
7802 for cf_add_1lib in $LIBS
7804 for cf_add_2lib in $cf_add_libs
7806 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7812 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7816 # even with config script, some packages use no-override for curses.h
7818 echo "$as_me:7818: checking if we have identified curses headers" >&5
7819 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
7820 if test "${cf_cv_ncurses_header+set}" = set; then
7821 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 cf_cv_ncurses_header=none
7826 ncurses.h $cf_cv_screen/ncurses.h \
7827 curses.h $cf_cv_screen/curses.h
7829 cat >conftest.$ac_ext <<_ACEOF
7830 #line 7830 "configure"
7831 #include "confdefs.h"
7832 #include <${cf_header}>
7836 initscr(); tgoto("?", 0,0)
7841 rm -f conftest.$ac_objext
7842 if { (eval echo "$as_me:7842: \"$ac_compile\"") >&5
7843 (eval $ac_compile) 2>&5
7845 echo "$as_me:7845: \$? = $ac_status" >&5
7846 (exit $ac_status); } &&
7847 { ac_try='test -s conftest.$ac_objext'
7848 { (eval echo "$as_me:7848: \"$ac_try\"") >&5
7851 echo "$as_me:7851: \$? = $ac_status" >&5
7852 (exit $ac_status); }; }; then
7853 cf_cv_ncurses_header=$cf_header; break
7855 echo "$as_me: failed program was:" >&5
7856 cat conftest.$ac_ext >&5
7858 rm -f conftest.$ac_objext conftest.$ac_ext
7862 echo "$as_me:7862: result: $cf_cv_ncurses_header" >&5
7863 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
7865 if test "$cf_cv_ncurses_header" = none ; then
7866 { { echo "$as_me:7866: error: No curses header-files found" >&5
7867 echo "$as_me: error: No curses header-files found" >&2;}
7868 { (exit 1); exit 1; }; }
7871 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
7873 for ac_header in $cf_cv_ncurses_header
7875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7876 echo "$as_me:7876: checking for $ac_header" >&5
7877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7878 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 cat >conftest.$ac_ext <<_ACEOF
7882 #line 7882 "configure"
7883 #include "confdefs.h"
7884 #include <$ac_header>
7886 if { (eval echo "$as_me:7886: \"$ac_cpp conftest.$ac_ext\"") >&5
7887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7889 egrep -v '^ *\+' conftest.er1 >conftest.err
7891 cat conftest.err >&5
7892 echo "$as_me:7892: \$? = $ac_status" >&5
7893 (exit $ac_status); } >/dev/null; then
7894 if test -s conftest.err; then
7895 ac_cpp_err=$ac_c_preproc_warn_flag
7902 if test -z "$ac_cpp_err"; then
7903 eval "$as_ac_Header=yes"
7905 echo "$as_me: failed program was:" >&5
7906 cat conftest.$ac_ext >&5
7907 eval "$as_ac_Header=no"
7909 rm -f conftest.err conftest.$ac_ext
7911 echo "$as_me:7911: result: `eval echo '${'$as_ac_Header'}'`" >&5
7912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7914 cat >>confdefs.h <<EOF
7915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7921 cat >>confdefs.h <<\EOF
7925 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7927 cat >>confdefs.h <<EOF
7928 #define $cf_nculib_ROOT 1
7931 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
7935 cf_ncuhdr_root=$cf_cv_screen
7937 test -n "$cf_cv_curses_dir" && \
7938 test "$cf_cv_curses_dir" != "no" && { \
7940 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
7941 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
7943 while test $cf_add_incdir != /usr/include
7945 if test -d $cf_add_incdir
7948 if test -n "$CFLAGS$CPPFLAGS" ; then
7949 # a loop is needed to ensure we can add subdirs of existing dirs
7950 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7951 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7952 cf_have_incdir=yes; break
7957 if test "$cf_have_incdir" = no ; then
7958 if test "$cf_add_incdir" = /usr/local/include ; then
7959 if test "$GCC" = yes
7961 cf_save_CPPFLAGS=$CPPFLAGS
7962 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7963 cat >conftest.$ac_ext <<_ACEOF
7964 #line 7964 "configure"
7965 #include "confdefs.h"
7975 rm -f conftest.$ac_objext
7976 if { (eval echo "$as_me:7976: \"$ac_compile\"") >&5
7977 (eval $ac_compile) 2>&5
7979 echo "$as_me:7979: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try='test -s conftest.$ac_objext'
7982 { (eval echo "$as_me:7982: \"$ac_try\"") >&5
7985 echo "$as_me:7985: \$? = $ac_status" >&5
7986 (exit $ac_status); }; }; then
7989 echo "$as_me: failed program was:" >&5
7990 cat conftest.$ac_ext >&5
7993 rm -f conftest.$ac_objext conftest.$ac_ext
7994 CPPFLAGS=$cf_save_CPPFLAGS
7999 if test "$cf_have_incdir" = no ; then
8000 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8002 echo "${as_me:-configure}:8002: testing adding $cf_add_incdir to include-path ..." 1>&5
8004 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8006 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8007 test "$cf_top_incdir" = "$cf_add_incdir" && break
8008 cf_add_incdir="$cf_top_incdir"
8019 echo "$as_me:8019: checking for $cf_ncuhdr_root header in include-path" >&5
8020 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
8021 if test "${cf_cv_ncurses_h+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8025 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
8026 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
8027 for cf_header in $cf_header_list
8030 cat >conftest.$ac_ext <<_ACEOF
8031 #line 8031 "configure"
8032 #include "confdefs.h"
8034 #include <$cf_header>
8039 #ifdef NCURSES_VERSION
8041 printf("%s\n", NCURSES_VERSION);
8054 rm -f conftest.$ac_objext
8055 if { (eval echo "$as_me:8055: \"$ac_compile\"") >&5
8056 (eval $ac_compile) 2>&5
8058 echo "$as_me:8058: \$? = $ac_status" >&5
8059 (exit $ac_status); } &&
8060 { ac_try='test -s conftest.$ac_objext'
8061 { (eval echo "$as_me:8061: \"$ac_try\"") >&5
8064 echo "$as_me:8064: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 cf_cv_ncurses_h=$cf_header
8069 echo "$as_me: failed program was:" >&5
8070 cat conftest.$ac_ext >&5
8073 rm -f conftest.$ac_objext conftest.$ac_ext
8075 test "$cf_cv_ncurses_h" != no && break
8079 echo "$as_me:8079: result: $cf_cv_ncurses_h" >&5
8080 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
8082 if test "$cf_cv_ncurses_h" != no ; then
8083 cf_cv_ncurses_header=$cf_cv_ncurses_h
8086 echo "$as_me:8086: checking for $cf_ncuhdr_root include-path" >&5
8087 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
8088 if test "${cf_cv_ncurses_h2+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 test -n "$verbose" && echo
8096 # collect the current set of include-directories from compiler flags
8097 cf_header_path_list=""
8098 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8099 for cf_header_path in $CPPFLAGS $CFLAGS
8101 case $cf_header_path in
8103 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8105 test "x$cf_header_path" != "xNONE" && \
8106 test -d "$cf_header_path" && \
8108 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8109 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8110 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
8111 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
8112 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
8113 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"
8116 cf_header_path_list="$cf_header_path_list $cf_search"
8122 # add the variations for the package we are looking for
8126 test "x$prefix" != "xNONE" && \
8127 test -d "$prefix" && \
8129 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8130 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8131 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
8132 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
8133 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
8134 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8137 for cf_subdir_prefix in \
8146 test "x$cf_subdir_prefix" != "x$prefix" && \
8147 test -d "$cf_subdir_prefix" && \
8148 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
8149 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
8150 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
8151 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
8152 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
8153 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
8154 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"
8159 test "$includedir" != NONE && \
8160 test "$includedir" != "/usr/include" && \
8161 test -d "$includedir" && {
8162 test -d $includedir && cf_search="$cf_search $includedir"
8163 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
8166 test "$oldincludedir" != NONE && \
8167 test "$oldincludedir" != "/usr/include" && \
8168 test -d "$oldincludedir" && {
8169 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8170 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
8173 cf_search="$cf_search $cf_header_path_list"
8175 test -n "$verbose" && echo search path $cf_search
8176 cf_save2_CPPFLAGS="$CPPFLAGS"
8177 for cf_incdir in $cf_search
8180 if test -n "$cf_incdir" ; then
8181 for cf_add_incdir in $cf_incdir
8183 while test $cf_add_incdir != /usr/include
8185 if test -d $cf_add_incdir
8188 if test -n "$CFLAGS$CPPFLAGS" ; then
8189 # a loop is needed to ensure we can add subdirs of existing dirs
8190 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8191 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8192 cf_have_incdir=yes; break
8197 if test "$cf_have_incdir" = no ; then
8198 if test "$cf_add_incdir" = /usr/local/include ; then
8199 if test "$GCC" = yes
8201 cf_save_CPPFLAGS=$CPPFLAGS
8202 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8203 cat >conftest.$ac_ext <<_ACEOF
8204 #line 8204 "configure"
8205 #include "confdefs.h"
8215 rm -f conftest.$ac_objext
8216 if { (eval echo "$as_me:8216: \"$ac_compile\"") >&5
8217 (eval $ac_compile) 2>&5
8219 echo "$as_me:8219: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -s conftest.$ac_objext'
8222 { (eval echo "$as_me:8222: \"$ac_try\"") >&5
8225 echo "$as_me:8225: \$? = $ac_status" >&5
8226 (exit $ac_status); }; }; then
8229 echo "$as_me: failed program was:" >&5
8230 cat conftest.$ac_ext >&5
8233 rm -f conftest.$ac_objext conftest.$ac_ext
8234 CPPFLAGS=$cf_save_CPPFLAGS
8239 if test "$cf_have_incdir" = no ; then
8240 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8242 echo "${as_me:-configure}:8242: testing adding $cf_add_incdir to include-path ..." 1>&5
8244 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8246 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8247 test "$cf_top_incdir" = "$cf_add_incdir" && break
8248 cf_add_incdir="$cf_top_incdir"
8262 cat >conftest.$ac_ext <<_ACEOF
8263 #line 8263 "configure"
8264 #include "confdefs.h"
8266 #include <$cf_header>
8271 #ifdef NCURSES_VERSION
8273 printf("%s\n", NCURSES_VERSION);
8286 rm -f conftest.$ac_objext
8287 if { (eval echo "$as_me:8287: \"$ac_compile\"") >&5
8288 (eval $ac_compile) 2>&5
8290 echo "$as_me:8290: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
8292 { ac_try='test -s conftest.$ac_objext'
8293 { (eval echo "$as_me:8293: \"$ac_try\"") >&5
8296 echo "$as_me:8296: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 cf_cv_ncurses_h2=$cf_header
8301 echo "$as_me: failed program was:" >&5
8302 cat conftest.$ac_ext >&5
8305 rm -f conftest.$ac_objext conftest.$ac_ext
8307 if test "$cf_cv_ncurses_h2" != no ; then
8308 cf_cv_ncurses_h2=$cf_incdir/$cf_header
8309 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
8312 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
8314 CPPFLAGS="$cf_save2_CPPFLAGS"
8315 test "$cf_cv_ncurses_h2" != no && break
8317 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:8317: error: not found" >&5
8318 echo "$as_me: error: not found" >&2;}
8319 { (exit 1); exit 1; }; }
8322 echo "$as_me:8322: result: $cf_cv_ncurses_h2" >&5
8323 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
8325 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
8326 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
8327 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
8328 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
8331 if test -n "$cf_1st_incdir" ; then
8332 for cf_add_incdir in $cf_1st_incdir
8334 while test $cf_add_incdir != /usr/include
8336 if test -d $cf_add_incdir
8339 if test -n "$CFLAGS$CPPFLAGS" ; then
8340 # a loop is needed to ensure we can add subdirs of existing dirs
8341 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8342 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8343 cf_have_incdir=yes; break
8348 if test "$cf_have_incdir" = no ; then
8349 if test "$cf_add_incdir" = /usr/local/include ; then
8350 if test "$GCC" = yes
8352 cf_save_CPPFLAGS=$CPPFLAGS
8353 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8354 cat >conftest.$ac_ext <<_ACEOF
8355 #line 8355 "configure"
8356 #include "confdefs.h"
8366 rm -f conftest.$ac_objext
8367 if { (eval echo "$as_me:8367: \"$ac_compile\"") >&5
8368 (eval $ac_compile) 2>&5
8370 echo "$as_me:8370: \$? = $ac_status" >&5
8371 (exit $ac_status); } &&
8372 { ac_try='test -s conftest.$ac_objext'
8373 { (eval echo "$as_me:8373: \"$ac_try\"") >&5
8376 echo "$as_me:8376: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8380 echo "$as_me: failed program was:" >&5
8381 cat conftest.$ac_ext >&5
8384 rm -f conftest.$ac_objext conftest.$ac_ext
8385 CPPFLAGS=$cf_save_CPPFLAGS
8390 if test "$cf_have_incdir" = no ; then
8391 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8393 echo "${as_me:-configure}:8393: testing adding $cf_add_incdir to include-path ..." 1>&5
8395 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8397 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8398 test "$cf_top_incdir" = "$cf_add_incdir" && break
8399 cf_add_incdir="$cf_top_incdir"
8410 # Set definitions to allow ifdef'ing for ncurses.h
8412 case $cf_cv_ncurses_header in
8415 cat >>confdefs.h <<\EOF
8416 #define HAVE_NCURSES_H 1
8422 case $cf_cv_ncurses_header in
8423 (ncurses/curses.h|ncurses/ncurses.h)
8425 cat >>confdefs.h <<\EOF
8426 #define HAVE_NCURSES_NCURSES_H 1
8430 (ncursesw/curses.h|ncursesw/ncurses.h)
8432 cat >>confdefs.h <<\EOF
8433 #define HAVE_NCURSESW_NCURSES_H 1
8439 echo "$as_me:8439: checking for terminfo header" >&5
8440 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
8441 if test "${cf_cv_term_header+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 case ${cf_cv_ncurses_header} in
8446 (*/ncurses.h|*/ncursesw.h)
8447 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8450 cf_term_header=term.h
8454 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
8456 cat >conftest.$ac_ext <<_ACEOF
8457 #line 8457 "configure"
8458 #include "confdefs.h"
8460 #include <${cf_cv_ncurses_header:-curses.h}>
8466 int x = auto_left_margin
8471 rm -f conftest.$ac_objext
8472 if { (eval echo "$as_me:8472: \"$ac_compile\"") >&5
8473 (eval $ac_compile) 2>&5
8475 echo "$as_me:8475: \$? = $ac_status" >&5
8476 (exit $ac_status); } &&
8477 { ac_try='test -s conftest.$ac_objext'
8478 { (eval echo "$as_me:8478: \"$ac_try\"") >&5
8481 echo "$as_me:8481: \$? = $ac_status" >&5
8482 (exit $ac_status); }; }; then
8484 cf_cv_term_header="$cf_test"
8486 echo "$as_me: failed program was:" >&5
8487 cat conftest.$ac_ext >&5
8489 cf_cv_term_header=unknown
8492 rm -f conftest.$ac_objext conftest.$ac_ext
8493 test "$cf_cv_term_header" != unknown && break
8497 echo "$as_me:8497: result: $cf_cv_term_header" >&5
8498 echo "${ECHO_T}$cf_cv_term_header" >&6
8500 # Set definitions to allow ifdef'ing to accommodate subdirectories
8502 case $cf_cv_term_header in
8505 cat >>confdefs.h <<\EOF
8506 #define HAVE_TERM_H 1
8512 case $cf_cv_term_header in
8515 cat >>confdefs.h <<\EOF
8516 #define HAVE_NCURSES_TERM_H 1
8522 cat >>confdefs.h <<\EOF
8523 #define HAVE_NCURSESW_TERM_H 1
8529 # some applications need this, but should check for NCURSES_VERSION
8531 cat >>confdefs.h <<\EOF
8535 echo "$as_me:8535: checking for ncurses version" >&5
8536 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
8537 if test "${cf_cv_ncurses_version+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8541 cf_cv_ncurses_version=no
8544 if test "$cross_compiling" = yes; then
8546 # This will not work if the preprocessor splits the line after the
8547 # Autoconf token. The 'unproto' program does that.
8548 cat > conftest.$ac_ext <<EOF
8549 #include <${cf_cv_ncurses_header:-curses.h}>
8551 #ifdef NCURSES_VERSION
8552 Autoconf NCURSES_VERSION
8560 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
8561 { (eval echo "$as_me:8561: \"$cf_try\"") >&5
8564 echo "$as_me:8564: \$? = $ac_status" >&5
8565 (exit $ac_status); }
8566 if test -f conftest.out ; then
8567 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
8568 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
8573 cat >conftest.$ac_ext <<_ACEOF
8574 #line 8574 "configure"
8575 #include "confdefs.h"
8577 #include <${cf_cv_ncurses_header:-curses.h}>
8581 FILE *fp = fopen("$cf_tempfile", "w");
8582 #ifdef NCURSES_VERSION
8583 # ifdef NCURSES_VERSION_PATCH
8584 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
8586 fprintf(fp, "%s\n", NCURSES_VERSION);
8590 fprintf(fp, "old\n");
8595 ${cf_cv_main_return:-return}(0);
8598 rm -f conftest$ac_exeext
8599 if { (eval echo "$as_me:8599: \"$ac_link\"") >&5
8600 (eval $ac_link) 2>&5
8602 echo "$as_me:8602: \$? = $ac_status" >&5
8603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8604 { (eval echo "$as_me:8604: \"$ac_try\"") >&5
8607 echo "$as_me:8607: \$? = $ac_status" >&5
8608 (exit $ac_status); }; }; then
8610 cf_cv_ncurses_version=`cat $cf_tempfile`
8612 echo "$as_me: program exited with status $ac_status" >&5
8613 echo "$as_me: failed program was:" >&5
8614 cat conftest.$ac_ext >&5
8616 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8621 echo "$as_me:8621: result: $cf_cv_ncurses_version" >&5
8622 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
8623 test "$cf_cv_ncurses_version" = no ||
8624 cat >>confdefs.h <<\EOF
8628 cf_nculib_root=$cf_cv_screen
8629 # This works, except for the special case where we find gpm, but
8630 # ncurses is in a nonstandard location via $LIBS, and we really want
8633 cf_ncurses_SAVE="$LIBS"
8634 echo "$as_me:8634: checking for Gpm_Open in -lgpm" >&5
8635 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
8636 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8639 ac_check_lib_save_LIBS=$LIBS
8641 cat >conftest.$ac_ext <<_ACEOF
8642 #line 8642 "configure"
8643 #include "confdefs.h"
8645 /* Override any gcc2 internal prototype to avoid an error. */
8649 /* We use char because int might match the return type of a gcc2
8650 builtin and then its argument prototype would still apply. */
8660 rm -f conftest.$ac_objext conftest$ac_exeext
8661 if { (eval echo "$as_me:8661: \"$ac_link\"") >&5
8662 (eval $ac_link) 2>&5
8664 echo "$as_me:8664: \$? = $ac_status" >&5
8665 (exit $ac_status); } &&
8666 { ac_try='test -s conftest$ac_exeext'
8667 { (eval echo "$as_me:8667: \"$ac_try\"") >&5
8670 echo "$as_me:8670: \$? = $ac_status" >&5
8671 (exit $ac_status); }; }; then
8672 ac_cv_lib_gpm_Gpm_Open=yes
8674 echo "$as_me: failed program was:" >&5
8675 cat conftest.$ac_ext >&5
8676 ac_cv_lib_gpm_Gpm_Open=no
8678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8679 LIBS=$ac_check_lib_save_LIBS
8681 echo "$as_me:8681: result: $ac_cv_lib_gpm_Gpm_Open" >&5
8682 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
8683 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
8684 echo "$as_me:8684: checking for initscr in -lgpm" >&5
8685 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
8686 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 ac_check_lib_save_LIBS=$LIBS
8691 cat >conftest.$ac_ext <<_ACEOF
8692 #line 8692 "configure"
8693 #include "confdefs.h"
8695 /* Override any gcc2 internal prototype to avoid an error. */
8699 /* We use char because int might match the return type of a gcc2
8700 builtin and then its argument prototype would still apply. */
8710 rm -f conftest.$ac_objext conftest$ac_exeext
8711 if { (eval echo "$as_me:8711: \"$ac_link\"") >&5
8712 (eval $ac_link) 2>&5
8714 echo "$as_me:8714: \$? = $ac_status" >&5
8715 (exit $ac_status); } &&
8716 { ac_try='test -s conftest$ac_exeext'
8717 { (eval echo "$as_me:8717: \"$ac_try\"") >&5
8720 echo "$as_me:8720: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 ac_cv_lib_gpm_initscr=yes
8724 echo "$as_me: failed program was:" >&5
8725 cat conftest.$ac_ext >&5
8726 ac_cv_lib_gpm_initscr=no
8728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8729 LIBS=$ac_check_lib_save_LIBS
8731 echo "$as_me:8731: result: $ac_cv_lib_gpm_initscr" >&5
8732 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
8733 if test $ac_cv_lib_gpm_initscr = yes; then
8734 LIBS="$cf_ncurses_SAVE"
8736 cf_ncurses_LIBS="-lgpm"
8743 # This is only necessary if you are linking against an obsolete
8744 # version of ncurses (but it should do no harm, since it's static).
8745 if test "$cf_nculib_root" = ncurses ; then
8746 echo "$as_me:8746: checking for tgoto in -lmytinfo" >&5
8747 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
8748 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 ac_check_lib_save_LIBS=$LIBS
8752 LIBS="-lmytinfo $LIBS"
8753 cat >conftest.$ac_ext <<_ACEOF
8754 #line 8754 "configure"
8755 #include "confdefs.h"
8757 /* Override any gcc2 internal prototype to avoid an error. */
8761 /* We use char because int might match the return type of a gcc2
8762 builtin and then its argument prototype would still apply. */
8772 rm -f conftest.$ac_objext conftest$ac_exeext
8773 if { (eval echo "$as_me:8773: \"$ac_link\"") >&5
8774 (eval $ac_link) 2>&5
8776 echo "$as_me:8776: \$? = $ac_status" >&5
8777 (exit $ac_status); } &&
8778 { ac_try='test -s conftest$ac_exeext'
8779 { (eval echo "$as_me:8779: \"$ac_try\"") >&5
8782 echo "$as_me:8782: \$? = $ac_status" >&5
8783 (exit $ac_status); }; }; then
8784 ac_cv_lib_mytinfo_tgoto=yes
8786 echo "$as_me: failed program was:" >&5
8787 cat conftest.$ac_ext >&5
8788 ac_cv_lib_mytinfo_tgoto=no
8790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8791 LIBS=$ac_check_lib_save_LIBS
8793 echo "$as_me:8793: result: $ac_cv_lib_mytinfo_tgoto" >&5
8794 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
8795 if test $ac_cv_lib_mytinfo_tgoto = yes; then
8796 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
8803 cf_add_libs="$cf_ncurses_LIBS"
8804 # Filter out duplicates - this happens with badly-designed ".pc" files...
8805 for cf_add_1lib in $LIBS
8807 for cf_add_2lib in $cf_add_libs
8809 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8815 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8819 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
8822 cf_add_libs="-l$cf_nculib_root"
8823 # Filter out duplicates - this happens with badly-designed ".pc" files...
8824 for cf_add_1lib in $LIBS
8826 for cf_add_2lib in $cf_add_libs
8828 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8834 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8840 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
8842 echo "$as_me:8842: checking for initscr" >&5
8843 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
8844 if test "${ac_cv_func_initscr+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 cat >conftest.$ac_ext <<_ACEOF
8848 #line 8848 "configure"
8849 #include "confdefs.h"
8850 /* System header to define __stub macros and hopefully few prototypes,
8851 which can conflict with char initscr (); below. */
8853 /* Override any gcc2 internal prototype to avoid an error. */
8857 /* We use char because int might match the return type of a gcc2
8858 builtin and then its argument prototype would still apply. */
8865 /* The GNU C library defines this for functions which it implements
8866 to always fail with ENOSYS. Some functions are actually named
8867 something starting with __ and the normal name is an alias. */
8868 #if defined (__stub_initscr) || defined (__stub___initscr)
8871 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8878 rm -f conftest.$ac_objext conftest$ac_exeext
8879 if { (eval echo "$as_me:8879: \"$ac_link\"") >&5
8880 (eval $ac_link) 2>&5
8882 echo "$as_me:8882: \$? = $ac_status" >&5
8883 (exit $ac_status); } &&
8884 { ac_try='test -s conftest$ac_exeext'
8885 { (eval echo "$as_me:8885: \"$ac_try\"") >&5
8888 echo "$as_me:8888: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8890 ac_cv_func_initscr=yes
8892 echo "$as_me: failed program was:" >&5
8893 cat conftest.$ac_ext >&5
8894 ac_cv_func_initscr=no
8896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8898 echo "$as_me:8898: result: $ac_cv_func_initscr" >&5
8899 echo "${ECHO_T}$ac_cv_func_initscr" >&6
8900 if test $ac_cv_func_initscr = yes; then
8901 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8904 cf_save_LIBS="$LIBS"
8905 echo "$as_me:8905: checking for initscr in -l$cf_nculib_root" >&5
8906 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
8907 LIBS="-l$cf_nculib_root $LIBS"
8908 cat >conftest.$ac_ext <<_ACEOF
8909 #line 8909 "configure"
8910 #include "confdefs.h"
8911 #include <${cf_cv_ncurses_header:-curses.h}>
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:8921: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>&5
8924 echo "$as_me:8924: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -s conftest$ac_exeext'
8927 { (eval echo "$as_me:8927: \"$ac_try\"") >&5
8930 echo "$as_me:8930: \$? = $ac_status" >&5
8931 (exit $ac_status); }; }; then
8932 echo "$as_me:8932: result: yes" >&5
8933 echo "${ECHO_T}yes" >&6
8934 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8937 echo "$as_me: failed program was:" >&5
8938 cat conftest.$ac_ext >&5
8939 echo "$as_me:8939: result: no" >&5
8940 echo "${ECHO_T}no" >&6
8943 cf_library_path_list=""
8944 if test -n "${LDFLAGS}${LIBS}" ; then
8945 for cf_library_path in $LDFLAGS $LIBS
8947 case $cf_library_path in
8949 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8951 test "x$cf_library_path" != "xNONE" && \
8952 test -d "$cf_library_path" && \
8954 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8955 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8956 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
8957 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
8958 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
8959 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"
8962 cf_library_path_list="$cf_library_path_list $cf_search"
8970 test "x$prefix" != "xNONE" && \
8971 test -d "$prefix" && \
8973 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8974 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8975 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
8976 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
8977 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
8978 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
8981 for cf_subdir_prefix in \
8990 test "x$cf_subdir_prefix" != "x$prefix" && \
8991 test -d "$cf_subdir_prefix" && \
8992 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
8993 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
8994 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
8995 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
8996 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
8997 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
8998 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"
9003 cf_search="$cf_library_path_list $cf_search"
9005 for cf_libdir in $cf_search
9007 echo "$as_me:9007: checking for -l$cf_nculib_root in $cf_libdir" >&5
9008 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
9009 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
9010 cat >conftest.$ac_ext <<_ACEOF
9011 #line 9011 "configure"
9012 #include "confdefs.h"
9013 #include <${cf_cv_ncurses_header:-curses.h}>
9022 rm -f conftest.$ac_objext conftest$ac_exeext
9023 if { (eval echo "$as_me:9023: \"$ac_link\"") >&5
9024 (eval $ac_link) 2>&5
9026 echo "$as_me:9026: \$? = $ac_status" >&5
9027 (exit $ac_status); } &&
9028 { ac_try='test -s conftest$ac_exeext'
9029 { (eval echo "$as_me:9029: \"$ac_try\"") >&5
9032 echo "$as_me:9032: \$? = $ac_status" >&5
9033 (exit $ac_status); }; }; then
9034 echo "$as_me:9034: result: yes" >&5
9035 echo "${ECHO_T}yes" >&6
9036 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9039 echo "$as_me: failed program was:" >&5
9040 cat conftest.$ac_ext >&5
9041 echo "$as_me:9041: result: no" >&5
9042 echo "${ECHO_T}no" >&6
9043 LIBS="$cf_save_LIBS"
9045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9053 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
9055 if test $cf_found_library = no ; then
9056 { { echo "$as_me:9056: error: Cannot link $cf_nculib_root library" >&5
9057 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
9058 { (exit 1); exit 1; }; }
9063 if test -n "$cf_ncurses_LIBS" ; then
9064 echo "$as_me:9064: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
9065 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
9066 cf_ncurses_SAVE="$LIBS"
9067 for p in $cf_ncurses_LIBS ; do
9068 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
9069 if test "$q" != "$LIBS" ; then
9073 cat >conftest.$ac_ext <<_ACEOF
9074 #line 9074 "configure"
9075 #include "confdefs.h"
9076 #include <${cf_cv_ncurses_header:-curses.h}>
9080 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
9085 rm -f conftest.$ac_objext conftest$ac_exeext
9086 if { (eval echo "$as_me:9086: \"$ac_link\"") >&5
9087 (eval $ac_link) 2>&5
9089 echo "$as_me:9089: \$? = $ac_status" >&5
9090 (exit $ac_status); } &&
9091 { ac_try='test -s conftest$ac_exeext'
9092 { (eval echo "$as_me:9092: \"$ac_try\"") >&5
9095 echo "$as_me:9095: \$? = $ac_status" >&5
9096 (exit $ac_status); }; }; then
9097 echo "$as_me:9097: result: yes" >&5
9098 echo "${ECHO_T}yes" >&6
9100 echo "$as_me: failed program was:" >&5
9101 cat conftest.$ac_ext >&5
9102 echo "$as_me:9102: result: no" >&5
9103 echo "${ECHO_T}no" >&6
9104 LIBS="$cf_ncurses_SAVE"
9106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9109 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9111 cat >>confdefs.h <<EOF
9112 #define $cf_nculib_ROOT 1
9120 echo "$as_me:9120: checking for X" >&5
9121 echo $ECHO_N "checking for X... $ECHO_C" >&6
9123 # Check whether --with-x or --without-x was given.
9124 if test "${with_x+set}" = set; then
9128 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9129 if test "x$with_x" = xno; then
9130 # The user explicitly disabled X.
9133 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9134 # Both variables are already set.
9137 if test "${ac_cv_have_x+set}" = set; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 # One or both of the vars are not set, and there is no cached value.
9141 ac_x_includes=no ac_x_libraries=no
9143 if mkdir conftest.dir; then
9145 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9146 cat >Imakefile <<'EOF'
9148 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9150 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9151 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9152 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9153 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9154 for ac_extension in a so sl dylib dll; do
9155 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9156 test -f $ac_im_libdir/libX11.$ac_extension; then
9157 ac_im_usrlibdir=$ac_im_libdir; break
9160 # Screen out bogus values from the imake configuration. They are
9161 # bogus both because they are the default anyway, and because
9162 # using them would break gcc on systems where it needs fixed includes.
9163 case $ac_im_incroot in
9165 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9167 case $ac_im_usrlibdir in
9169 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9176 # Standard set of common directories for X headers.
9177 # Check X11 before X11Rn because it is often a symlink to the current release.
9189 /usr/local/X11/include
9190 /usr/local/X11R6/include
9191 /usr/local/X11R5/include
9192 /usr/local/X11R4/include
9194 /usr/local/include/X11
9195 /usr/local/include/X11R6
9196 /usr/local/include/X11R5
9197 /usr/local/include/X11R4
9201 /usr/XFree86/include/X11
9205 /usr/unsupported/include
9207 /usr/local/x11r5/include
9208 /usr/lpp/Xamples/include
9210 /usr/openwin/include
9211 /usr/openwin/share/include'
9213 if test "$ac_x_includes" = no; then
9214 # Guess where to find include files, by looking for Intrinsic.h.
9215 # First, try using that file with no special directory specified.
9216 cat >conftest.$ac_ext <<_ACEOF
9217 #line 9217 "configure"
9218 #include "confdefs.h"
9219 #include <X11/Intrinsic.h>
9221 if { (eval echo "$as_me:9221: \"$ac_cpp conftest.$ac_ext\"") >&5
9222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9224 egrep -v '^ *\+' conftest.er1 >conftest.err
9226 cat conftest.err >&5
9227 echo "$as_me:9227: \$? = $ac_status" >&5
9228 (exit $ac_status); } >/dev/null; then
9229 if test -s conftest.err; then
9230 ac_cpp_err=$ac_c_preproc_warn_flag
9237 if test -z "$ac_cpp_err"; then
9238 # We can compile using X headers with no special include directory.
9241 echo "$as_me: failed program was:" >&5
9242 cat conftest.$ac_ext >&5
9243 for ac_dir in $ac_x_header_dirs; do
9244 if test -r "$ac_dir/X11/Intrinsic.h"; then
9245 ac_x_includes=$ac_dir
9250 rm -f conftest.err conftest.$ac_ext
9251 fi # $ac_x_includes = no
9253 if test "$ac_x_libraries" = no; then
9254 # Check for the libraries.
9255 # See if we find them without any special options.
9256 # Don't add to $LIBS permanently.
9259 cat >conftest.$ac_ext <<_ACEOF
9260 #line 9260 "configure"
9261 #include "confdefs.h"
9262 #include <X11/Intrinsic.h>
9271 rm -f conftest.$ac_objext conftest$ac_exeext
9272 if { (eval echo "$as_me:9272: \"$ac_link\"") >&5
9273 (eval $ac_link) 2>&5
9275 echo "$as_me:9275: \$? = $ac_status" >&5
9276 (exit $ac_status); } &&
9277 { ac_try='test -s conftest$ac_exeext'
9278 { (eval echo "$as_me:9278: \"$ac_try\"") >&5
9281 echo "$as_me:9281: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9284 # We can link X programs with no special library path.
9287 echo "$as_me: failed program was:" >&5
9288 cat conftest.$ac_ext >&5
9290 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9292 # Don't even attempt the hair of trying to link an X program!
9293 for ac_extension in a so sl dylib dll; do
9294 if test -r $ac_dir/libXt.$ac_extension; then
9295 ac_x_libraries=$ac_dir
9301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9302 fi # $ac_x_libraries = no
9304 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9305 # Didn't find X anywhere. Cache the known absence of X.
9306 ac_cv_have_x="have_x=no"
9308 # Record where we found X for the cache.
9309 ac_cv_have_x="have_x=yes \
9310 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9315 eval "$ac_cv_have_x"
9318 if test "$have_x" != yes; then
9319 echo "$as_me:9319: result: $have_x" >&5
9320 echo "${ECHO_T}$have_x" >&6
9323 # If each of the values was on the command line, it overrides each guess.
9324 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9325 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9326 # Update the cache value to reflect the command line values.
9327 ac_cv_have_x="have_x=yes \
9328 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9329 echo "$as_me:9329: result: libraries $x_libraries, headers $x_includes" >&5
9330 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9333 if test "$no_x" = yes; then
9334 # Not all programs may use this symbol, but it does not hurt to define it.
9336 cat >>confdefs.h <<\EOF
9337 #define X_DISPLAY_MISSING 1
9340 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9342 if test -n "$x_includes"; then
9343 X_CFLAGS="$X_CFLAGS -I$x_includes"
9346 # It would also be nice to do this for all -L options, not just this one.
9347 if test -n "$x_libraries"; then
9348 X_LIBS="$X_LIBS -L$x_libraries"
9349 # For Solaris; some versions of Sun CC require a space after -R and
9350 # others require no space. Words are not sufficient . . . .
9351 case `(uname -sr) 2>/dev/null` in
9353 echo "$as_me:9353: checking whether -R must be followed by a space" >&5
9354 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9355 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9356 cat >conftest.$ac_ext <<_ACEOF
9357 #line 9357 "configure"
9358 #include "confdefs.h"
9368 rm -f conftest.$ac_objext conftest$ac_exeext
9369 if { (eval echo "$as_me:9369: \"$ac_link\"") >&5
9370 (eval $ac_link) 2>&5
9372 echo "$as_me:9372: \$? = $ac_status" >&5
9373 (exit $ac_status); } &&
9374 { ac_try='test -s conftest$ac_exeext'
9375 { (eval echo "$as_me:9375: \"$ac_try\"") >&5
9378 echo "$as_me:9378: \$? = $ac_status" >&5
9379 (exit $ac_status); }; }; then
9382 echo "$as_me: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9387 if test $ac_R_nospace = yes; then
9388 echo "$as_me:9388: result: no" >&5
9389 echo "${ECHO_T}no" >&6
9390 X_LIBS="$X_LIBS -R$x_libraries"
9392 LIBS="$ac_xsave_LIBS -R $x_libraries"
9393 cat >conftest.$ac_ext <<_ACEOF
9394 #line 9394 "configure"
9395 #include "confdefs.h"
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (eval echo "$as_me:9406: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>&5
9409 echo "$as_me:9409: \$? = $ac_status" >&5
9410 (exit $ac_status); } &&
9411 { ac_try='test -s conftest$ac_exeext'
9412 { (eval echo "$as_me:9412: \"$ac_try\"") >&5
9415 echo "$as_me:9415: \$? = $ac_status" >&5
9416 (exit $ac_status); }; }; then
9419 echo "$as_me: failed program was:" >&5
9420 cat conftest.$ac_ext >&5
9423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9424 if test $ac_R_space = yes; then
9425 echo "$as_me:9425: result: yes" >&5
9426 echo "${ECHO_T}yes" >&6
9427 X_LIBS="$X_LIBS -R $x_libraries"
9429 echo "$as_me:9429: result: neither works" >&5
9430 echo "${ECHO_T}neither works" >&6
9437 # Check for system-dependent libraries X programs must link with.
9438 # Do this before checking for the system-independent R6 libraries
9439 # (-lICE), since we may need -lsocket or whatever for X linking.
9441 if test "$ISC" = yes; then
9442 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9444 # Martyn Johnson says this is needed for Ultrix, if the X
9445 # libraries were built with DECnet support. And Karl Berry says
9446 # the Alpha needs dnet_stub (dnet does not exist).
9447 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9448 cat >conftest.$ac_ext <<_ACEOF
9449 #line 9449 "configure"
9450 #include "confdefs.h"
9452 /* Override any gcc2 internal prototype to avoid an error. */
9456 /* We use char because int might match the return type of a gcc2
9457 builtin and then its argument prototype would still apply. */
9458 char XOpenDisplay ();
9467 rm -f conftest.$ac_objext conftest$ac_exeext
9468 if { (eval echo "$as_me:9468: \"$ac_link\"") >&5
9469 (eval $ac_link) 2>&5
9471 echo "$as_me:9471: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try='test -s conftest$ac_exeext'
9474 { (eval echo "$as_me:9474: \"$ac_try\"") >&5
9477 echo "$as_me:9477: \$? = $ac_status" >&5
9478 (exit $ac_status); }; }; then
9481 echo "$as_me: failed program was:" >&5
9482 cat conftest.$ac_ext >&5
9483 echo "$as_me:9483: checking for dnet_ntoa in -ldnet" >&5
9484 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9485 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9488 ac_check_lib_save_LIBS=$LIBS
9490 cat >conftest.$ac_ext <<_ACEOF
9491 #line 9491 "configure"
9492 #include "confdefs.h"
9494 /* Override any gcc2 internal prototype to avoid an error. */
9498 /* We use char because int might match the return type of a gcc2
9499 builtin and then its argument prototype would still apply. */
9509 rm -f conftest.$ac_objext conftest$ac_exeext
9510 if { (eval echo "$as_me:9510: \"$ac_link\"") >&5
9511 (eval $ac_link) 2>&5
9513 echo "$as_me:9513: \$? = $ac_status" >&5
9514 (exit $ac_status); } &&
9515 { ac_try='test -s conftest$ac_exeext'
9516 { (eval echo "$as_me:9516: \"$ac_try\"") >&5
9519 echo "$as_me:9519: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 ac_cv_lib_dnet_dnet_ntoa=yes
9523 echo "$as_me: failed program was:" >&5
9524 cat conftest.$ac_ext >&5
9525 ac_cv_lib_dnet_dnet_ntoa=no
9527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9528 LIBS=$ac_check_lib_save_LIBS
9530 echo "$as_me:9530: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9531 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9532 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9533 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9536 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9537 echo "$as_me:9537: checking for dnet_ntoa in -ldnet_stub" >&5
9538 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9539 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 ac_check_lib_save_LIBS=$LIBS
9543 LIBS="-ldnet_stub $LIBS"
9544 cat >conftest.$ac_ext <<_ACEOF
9545 #line 9545 "configure"
9546 #include "confdefs.h"
9548 /* Override any gcc2 internal prototype to avoid an error. */
9552 /* We use char because int might match the return type of a gcc2
9553 builtin and then its argument prototype would still apply. */
9563 rm -f conftest.$ac_objext conftest$ac_exeext
9564 if { (eval echo "$as_me:9564: \"$ac_link\"") >&5
9565 (eval $ac_link) 2>&5
9567 echo "$as_me:9567: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try='test -s conftest$ac_exeext'
9570 { (eval echo "$as_me:9570: \"$ac_try\"") >&5
9573 echo "$as_me:9573: \$? = $ac_status" >&5
9574 (exit $ac_status); }; }; then
9575 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9577 echo "$as_me: failed program was:" >&5
9578 cat conftest.$ac_ext >&5
9579 ac_cv_lib_dnet_stub_dnet_ntoa=no
9581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9582 LIBS=$ac_check_lib_save_LIBS
9584 echo "$as_me:9584: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9585 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9586 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9587 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9593 LIBS="$ac_xsave_LIBS"
9595 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9596 # to get the SysV transport functions.
9597 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9599 # The nsl library prevents programs from opening the X display
9600 # on Irix 5.2, according to T.E. Dickey.
9601 # The functions gethostbyname, getservbyname, and inet_addr are
9602 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9603 echo "$as_me:9603: checking for gethostbyname" >&5
9604 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9605 if test "${ac_cv_func_gethostbyname+set}" = set; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 cat >conftest.$ac_ext <<_ACEOF
9609 #line 9609 "configure"
9610 #include "confdefs.h"
9611 /* System header to define __stub macros and hopefully few prototypes,
9612 which can conflict with char gethostbyname (); below. */
9614 /* Override any gcc2 internal prototype to avoid an error. */
9618 /* We use char because int might match the return type of a gcc2
9619 builtin and then its argument prototype would still apply. */
9620 char gethostbyname ();
9626 /* The GNU C library defines this for functions which it implements
9627 to always fail with ENOSYS. Some functions are actually named
9628 something starting with __ and the normal name is an alias. */
9629 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9632 f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9639 rm -f conftest.$ac_objext conftest$ac_exeext
9640 if { (eval echo "$as_me:9640: \"$ac_link\"") >&5
9641 (eval $ac_link) 2>&5
9643 echo "$as_me:9643: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
9645 { ac_try='test -s conftest$ac_exeext'
9646 { (eval echo "$as_me:9646: \"$ac_try\"") >&5
9649 echo "$as_me:9649: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 ac_cv_func_gethostbyname=yes
9653 echo "$as_me: failed program was:" >&5
9654 cat conftest.$ac_ext >&5
9655 ac_cv_func_gethostbyname=no
9657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9659 echo "$as_me:9659: result: $ac_cv_func_gethostbyname" >&5
9660 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9662 if test $ac_cv_func_gethostbyname = no; then
9663 echo "$as_me:9663: checking for gethostbyname in -lnsl" >&5
9664 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9665 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 ac_check_lib_save_LIBS=$LIBS
9670 cat >conftest.$ac_ext <<_ACEOF
9671 #line 9671 "configure"
9672 #include "confdefs.h"
9674 /* Override any gcc2 internal prototype to avoid an error. */
9678 /* We use char because int might match the return type of a gcc2
9679 builtin and then its argument prototype would still apply. */
9680 char gethostbyname ();
9689 rm -f conftest.$ac_objext conftest$ac_exeext
9690 if { (eval echo "$as_me:9690: \"$ac_link\"") >&5
9691 (eval $ac_link) 2>&5
9693 echo "$as_me:9693: \$? = $ac_status" >&5
9694 (exit $ac_status); } &&
9695 { ac_try='test -s conftest$ac_exeext'
9696 { (eval echo "$as_me:9696: \"$ac_try\"") >&5
9699 echo "$as_me:9699: \$? = $ac_status" >&5
9700 (exit $ac_status); }; }; then
9701 ac_cv_lib_nsl_gethostbyname=yes
9703 echo "$as_me: failed program was:" >&5
9704 cat conftest.$ac_ext >&5
9705 ac_cv_lib_nsl_gethostbyname=no
9707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9708 LIBS=$ac_check_lib_save_LIBS
9710 echo "$as_me:9710: result: $ac_cv_lib_nsl_gethostbyname" >&5
9711 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9712 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9713 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9716 if test $ac_cv_lib_nsl_gethostbyname = no; then
9717 echo "$as_me:9717: checking for gethostbyname in -lbsd" >&5
9718 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9719 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 ac_check_lib_save_LIBS=$LIBS
9724 cat >conftest.$ac_ext <<_ACEOF
9725 #line 9725 "configure"
9726 #include "confdefs.h"
9728 /* Override any gcc2 internal prototype to avoid an error. */
9732 /* We use char because int might match the return type of a gcc2
9733 builtin and then its argument prototype would still apply. */
9734 char gethostbyname ();
9743 rm -f conftest.$ac_objext conftest$ac_exeext
9744 if { (eval echo "$as_me:9744: \"$ac_link\"") >&5
9745 (eval $ac_link) 2>&5
9747 echo "$as_me:9747: \$? = $ac_status" >&5
9748 (exit $ac_status); } &&
9749 { ac_try='test -s conftest$ac_exeext'
9750 { (eval echo "$as_me:9750: \"$ac_try\"") >&5
9753 echo "$as_me:9753: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 ac_cv_lib_bsd_gethostbyname=yes
9757 echo "$as_me: failed program was:" >&5
9758 cat conftest.$ac_ext >&5
9759 ac_cv_lib_bsd_gethostbyname=no
9761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9762 LIBS=$ac_check_lib_save_LIBS
9764 echo "$as_me:9764: result: $ac_cv_lib_bsd_gethostbyname" >&5
9765 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9766 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9767 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9773 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9774 # socket/setsockopt and other routines are undefined under SCO ODT
9775 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9776 # on later versions), says Simon Leinen: it contains gethostby*
9777 # variants that don't use the nameserver (or something). -lsocket
9778 # must be given before -lnsl if both are needed. We assume that
9779 # if connect needs -lnsl, so does gethostbyname.
9780 echo "$as_me:9780: checking for connect" >&5
9781 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9782 if test "${ac_cv_func_connect+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 cat >conftest.$ac_ext <<_ACEOF
9786 #line 9786 "configure"
9787 #include "confdefs.h"
9788 /* System header to define __stub macros and hopefully few prototypes,
9789 which can conflict with char connect (); below. */
9791 /* Override any gcc2 internal prototype to avoid an error. */
9795 /* We use char because int might match the return type of a gcc2
9796 builtin and then its argument prototype would still apply. */
9803 /* The GNU C library defines this for functions which it implements
9804 to always fail with ENOSYS. Some functions are actually named
9805 something starting with __ and the normal name is an alias. */
9806 #if defined (__stub_connect) || defined (__stub___connect)
9809 f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9816 rm -f conftest.$ac_objext conftest$ac_exeext
9817 if { (eval echo "$as_me:9817: \"$ac_link\"") >&5
9818 (eval $ac_link) 2>&5
9820 echo "$as_me:9820: \$? = $ac_status" >&5
9821 (exit $ac_status); } &&
9822 { ac_try='test -s conftest$ac_exeext'
9823 { (eval echo "$as_me:9823: \"$ac_try\"") >&5
9826 echo "$as_me:9826: \$? = $ac_status" >&5
9827 (exit $ac_status); }; }; then
9828 ac_cv_func_connect=yes
9830 echo "$as_me: failed program was:" >&5
9831 cat conftest.$ac_ext >&5
9832 ac_cv_func_connect=no
9834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9836 echo "$as_me:9836: result: $ac_cv_func_connect" >&5
9837 echo "${ECHO_T}$ac_cv_func_connect" >&6
9839 if test $ac_cv_func_connect = no; then
9840 echo "$as_me:9840: checking for connect in -lsocket" >&5
9841 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9842 if test "${ac_cv_lib_socket_connect+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 ac_check_lib_save_LIBS=$LIBS
9846 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9847 cat >conftest.$ac_ext <<_ACEOF
9848 #line 9848 "configure"
9849 #include "confdefs.h"
9851 /* Override any gcc2 internal prototype to avoid an error. */
9855 /* We use char because int might match the return type of a gcc2
9856 builtin and then its argument prototype would still apply. */
9866 rm -f conftest.$ac_objext conftest$ac_exeext
9867 if { (eval echo "$as_me:9867: \"$ac_link\"") >&5
9868 (eval $ac_link) 2>&5
9870 echo "$as_me:9870: \$? = $ac_status" >&5
9871 (exit $ac_status); } &&
9872 { ac_try='test -s conftest$ac_exeext'
9873 { (eval echo "$as_me:9873: \"$ac_try\"") >&5
9876 echo "$as_me:9876: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 ac_cv_lib_socket_connect=yes
9880 echo "$as_me: failed program was:" >&5
9881 cat conftest.$ac_ext >&5
9882 ac_cv_lib_socket_connect=no
9884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9885 LIBS=$ac_check_lib_save_LIBS
9887 echo "$as_me:9887: result: $ac_cv_lib_socket_connect" >&5
9888 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9889 if test $ac_cv_lib_socket_connect = yes; then
9890 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9895 # Guillermo Gomez says -lposix is necessary on A/UX.
9896 echo "$as_me:9896: checking for remove" >&5
9897 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9898 if test "${ac_cv_func_remove+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 cat >conftest.$ac_ext <<_ACEOF
9902 #line 9902 "configure"
9903 #include "confdefs.h"
9904 /* System header to define __stub macros and hopefully few prototypes,
9905 which can conflict with char remove (); below. */
9907 /* Override any gcc2 internal prototype to avoid an error. */
9911 /* We use char because int might match the return type of a gcc2
9912 builtin and then its argument prototype would still apply. */
9919 /* The GNU C library defines this for functions which it implements
9920 to always fail with ENOSYS. Some functions are actually named
9921 something starting with __ and the normal name is an alias. */
9922 #if defined (__stub_remove) || defined (__stub___remove)
9925 f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (eval echo "$as_me:9933: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>&5
9936 echo "$as_me:9936: \$? = $ac_status" >&5
9937 (exit $ac_status); } &&
9938 { ac_try='test -s conftest$ac_exeext'
9939 { (eval echo "$as_me:9939: \"$ac_try\"") >&5
9942 echo "$as_me:9942: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9944 ac_cv_func_remove=yes
9946 echo "$as_me: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9948 ac_cv_func_remove=no
9950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9952 echo "$as_me:9952: result: $ac_cv_func_remove" >&5
9953 echo "${ECHO_T}$ac_cv_func_remove" >&6
9955 if test $ac_cv_func_remove = no; then
9956 echo "$as_me:9956: checking for remove in -lposix" >&5
9957 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9958 if test "${ac_cv_lib_posix_remove+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 ac_check_lib_save_LIBS=$LIBS
9962 LIBS="-lposix $LIBS"
9963 cat >conftest.$ac_ext <<_ACEOF
9964 #line 9964 "configure"
9965 #include "confdefs.h"
9967 /* Override any gcc2 internal prototype to avoid an error. */
9971 /* We use char because int might match the return type of a gcc2
9972 builtin and then its argument prototype would still apply. */
9982 rm -f conftest.$ac_objext conftest$ac_exeext
9983 if { (eval echo "$as_me:9983: \"$ac_link\"") >&5
9984 (eval $ac_link) 2>&5
9986 echo "$as_me:9986: \$? = $ac_status" >&5
9987 (exit $ac_status); } &&
9988 { ac_try='test -s conftest$ac_exeext'
9989 { (eval echo "$as_me:9989: \"$ac_try\"") >&5
9992 echo "$as_me:9992: \$? = $ac_status" >&5
9993 (exit $ac_status); }; }; then
9994 ac_cv_lib_posix_remove=yes
9996 echo "$as_me: failed program was:" >&5
9997 cat conftest.$ac_ext >&5
9998 ac_cv_lib_posix_remove=no
10000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10001 LIBS=$ac_check_lib_save_LIBS
10003 echo "$as_me:10003: result: $ac_cv_lib_posix_remove" >&5
10004 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10005 if test $ac_cv_lib_posix_remove = yes; then
10006 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10011 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10012 echo "$as_me:10012: checking for shmat" >&5
10013 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10014 if test "${ac_cv_func_shmat+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 cat >conftest.$ac_ext <<_ACEOF
10018 #line 10018 "configure"
10019 #include "confdefs.h"
10020 /* System header to define __stub macros and hopefully few prototypes,
10021 which can conflict with char shmat (); below. */
10022 #include <assert.h>
10023 /* Override any gcc2 internal prototype to avoid an error. */
10027 /* We use char because int might match the return type of a gcc2
10028 builtin and then its argument prototype would still apply. */
10035 /* The GNU C library defines this for functions which it implements
10036 to always fail with ENOSYS. Some functions are actually named
10037 something starting with __ and the normal name is an alias. */
10038 #if defined (__stub_shmat) || defined (__stub___shmat)
10041 f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10048 rm -f conftest.$ac_objext conftest$ac_exeext
10049 if { (eval echo "$as_me:10049: \"$ac_link\"") >&5
10050 (eval $ac_link) 2>&5
10052 echo "$as_me:10052: \$? = $ac_status" >&5
10053 (exit $ac_status); } &&
10054 { ac_try='test -s conftest$ac_exeext'
10055 { (eval echo "$as_me:10055: \"$ac_try\"") >&5
10056 (eval $ac_try) 2>&5
10058 echo "$as_me:10058: \$? = $ac_status" >&5
10059 (exit $ac_status); }; }; then
10060 ac_cv_func_shmat=yes
10062 echo "$as_me: failed program was:" >&5
10063 cat conftest.$ac_ext >&5
10064 ac_cv_func_shmat=no
10066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10068 echo "$as_me:10068: result: $ac_cv_func_shmat" >&5
10069 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10071 if test $ac_cv_func_shmat = no; then
10072 echo "$as_me:10072: checking for shmat in -lipc" >&5
10073 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10074 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 ac_check_lib_save_LIBS=$LIBS
10079 cat >conftest.$ac_ext <<_ACEOF
10080 #line 10080 "configure"
10081 #include "confdefs.h"
10083 /* Override any gcc2 internal prototype to avoid an error. */
10087 /* We use char because int might match the return type of a gcc2
10088 builtin and then its argument prototype would still apply. */
10098 rm -f conftest.$ac_objext conftest$ac_exeext
10099 if { (eval echo "$as_me:10099: \"$ac_link\"") >&5
10100 (eval $ac_link) 2>&5
10102 echo "$as_me:10102: \$? = $ac_status" >&5
10103 (exit $ac_status); } &&
10104 { ac_try='test -s conftest$ac_exeext'
10105 { (eval echo "$as_me:10105: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10108 echo "$as_me:10108: \$? = $ac_status" >&5
10109 (exit $ac_status); }; }; then
10110 ac_cv_lib_ipc_shmat=yes
10112 echo "$as_me: failed program was:" >&5
10113 cat conftest.$ac_ext >&5
10114 ac_cv_lib_ipc_shmat=no
10116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10117 LIBS=$ac_check_lib_save_LIBS
10119 echo "$as_me:10119: result: $ac_cv_lib_ipc_shmat" >&5
10120 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10121 if test $ac_cv_lib_ipc_shmat = yes; then
10122 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10128 # Check for libraries that X11R6 Xt/Xaw programs need.
10129 ac_save_LDFLAGS=$LDFLAGS
10130 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10131 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10132 # check for ICE first), but we must link in the order -lSM -lICE or
10133 # we get undefined symbols. So assume we have SM if we have ICE.
10134 # These have to be linked with before -lX11, unlike the other
10135 # libraries we check for below, so use a different variable.
10136 # John Interrante, Karl Berry
10137 echo "$as_me:10137: checking for IceConnectionNumber in -lICE" >&5
10138 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10139 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10142 ac_check_lib_save_LIBS=$LIBS
10143 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10144 cat >conftest.$ac_ext <<_ACEOF
10145 #line 10145 "configure"
10146 #include "confdefs.h"
10148 /* Override any gcc2 internal prototype to avoid an error. */
10152 /* We use char because int might match the return type of a gcc2
10153 builtin and then its argument prototype would still apply. */
10154 char IceConnectionNumber ();
10158 IceConnectionNumber ();
10163 rm -f conftest.$ac_objext conftest$ac_exeext
10164 if { (eval echo "$as_me:10164: \"$ac_link\"") >&5
10165 (eval $ac_link) 2>&5
10167 echo "$as_me:10167: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
10169 { ac_try='test -s conftest$ac_exeext'
10170 { (eval echo "$as_me:10170: \"$ac_try\"") >&5
10171 (eval $ac_try) 2>&5
10173 echo "$as_me:10173: \$? = $ac_status" >&5
10174 (exit $ac_status); }; }; then
10175 ac_cv_lib_ICE_IceConnectionNumber=yes
10177 echo "$as_me: failed program was:" >&5
10178 cat conftest.$ac_ext >&5
10179 ac_cv_lib_ICE_IceConnectionNumber=no
10181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10182 LIBS=$ac_check_lib_save_LIBS
10184 echo "$as_me:10184: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10185 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10186 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10187 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10190 LDFLAGS=$ac_save_LDFLAGS
10194 cf_x_athena=${cf_x_athena:-Xaw}
10196 echo "$as_me:10196: checking if you want to link with Xaw 3d library" >&5
10197 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
10200 # Check whether --with-Xaw3d or --without-Xaw3d was given.
10201 if test "${with_Xaw3d+set}" = set; then
10202 withval="$with_Xaw3d"
10205 if test "$withval" = yes ; then
10207 echo "$as_me:10207: result: yes" >&5
10208 echo "${ECHO_T}yes" >&6
10210 echo "$as_me:10210: result: no" >&5
10211 echo "${ECHO_T}no" >&6
10214 echo "$as_me:10214: checking if you want to link with Xaw 3d xft library" >&5
10215 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
10218 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
10219 if test "${with_Xaw3dxft+set}" = set; then
10220 withval="$with_Xaw3dxft"
10223 if test "$withval" = yes ; then
10224 cf_x_athena=Xaw3dxft
10225 echo "$as_me:10225: result: yes" >&5
10226 echo "${ECHO_T}yes" >&6
10228 echo "$as_me:10228: result: no" >&5
10229 echo "${ECHO_T}no" >&6
10232 echo "$as_me:10232: checking if you want to link with neXT Athena library" >&5
10233 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
10236 # Check whether --with-neXtaw or --without-neXtaw was given.
10237 if test "${with_neXtaw+set}" = set; then
10238 withval="$with_neXtaw"
10241 if test "$withval" = yes ; then
10243 echo "$as_me:10243: result: yes" >&5
10244 echo "${ECHO_T}yes" >&6
10246 echo "$as_me:10246: result: no" >&5
10247 echo "${ECHO_T}no" >&6
10250 echo "$as_me:10250: checking if you want to link with Athena-Plus library" >&5
10251 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
10254 # Check whether --with-XawPlus or --without-XawPlus was given.
10255 if test "${with_XawPlus+set}" = set; then
10256 withval="$with_XawPlus"
10259 if test "$withval" = yes ; then
10260 cf_x_athena=XawPlus
10261 echo "$as_me:10261: result: yes" >&5
10262 echo "${ECHO_T}yes" >&6
10264 echo "$as_me:10264: result: no" >&5
10265 echo "${ECHO_T}no" >&6
10270 if test "$PKG_CONFIG" != none ; then
10272 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
10273 for cf_athena_pkg in \
10276 ${cf_x_athena}-devel \
10277 lib${cf_x_athena} \
10278 lib${cf_x_athena}-devel
10281 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
10282 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
10284 echo "${as_me:-configure}:10284: testing found package $cf_athena_pkg ..." 1>&5
10286 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
10287 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
10288 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
10290 echo "${as_me:-configure}:10290: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10292 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
10294 echo "${as_me:-configure}:10294: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
10299 cf_new_extra_cppflags=
10301 for cf_add_cflags in $cf_pkgconfig_incs
10303 case $cf_fix_cppflags in
10305 case $cf_add_cflags in
10306 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10307 case $cf_add_cflags in
10309 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10311 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10312 && test -z "${cf_tst_cflags}" \
10313 && cf_fix_cppflags=yes
10315 if test $cf_fix_cppflags = yes ; then
10316 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10318 elif test "${cf_tst_cflags}" = "\"'" ; then
10319 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10324 case "$CPPFLAGS" in
10328 case $cf_add_cflags in
10330 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10332 CPPFLAGS=`echo "$CPPFLAGS" | \
10333 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10334 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10338 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10343 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10348 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10350 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10352 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10353 && test -z "${cf_tst_cflags}" \
10354 && cf_fix_cppflags=no
10359 if test -n "$cf_new_cflags" ; then
10361 CFLAGS="$CFLAGS $cf_new_cflags"
10364 if test -n "$cf_new_cppflags" ; then
10366 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10369 if test -n "$cf_new_extra_cppflags" ; then
10371 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10374 cf_add_libs="$cf_pkgconfig_libs"
10375 # Filter out duplicates - this happens with badly-designed ".pc" files...
10376 for cf_add_1lib in $LIBS
10378 for cf_add_2lib in $cf_add_libs
10380 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10386 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10388 LIBS="$cf_add_libs"
10390 cf_x_athena_lib="$cf_pkgconfig_libs"
10392 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10394 cat >>confdefs.h <<EOF
10395 #define $cf_x_athena_LIBS 1
10398 for cf_trim_lib in Xmu Xt X11
10401 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
10402 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
10403 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
10405 echo "${as_me:-configure}:10405: testing ..trimmed $LIBS ..." 1>&5
10411 echo "$as_me:10411: checking for usable $cf_x_athena/Xmu package" >&5
10412 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
10413 if test "${cf_cv_xaw_compat+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10417 cat >conftest.$ac_ext <<_ACEOF
10418 #line 10418 "configure"
10419 #include "confdefs.h"
10421 #include <X11/Xmu/CharSet.h>
10427 int check = XmuCompareISOLatin1("big", "small")
10433 rm -f conftest.$ac_objext conftest$ac_exeext
10434 if { (eval echo "$as_me:10434: \"$ac_link\"") >&5
10435 (eval $ac_link) 2>&5
10437 echo "$as_me:10437: \$? = $ac_status" >&5
10438 (exit $ac_status); } &&
10439 { ac_try='test -s conftest$ac_exeext'
10440 { (eval echo "$as_me:10440: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10443 echo "$as_me:10443: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
10445 cf_cv_xaw_compat=yes
10447 echo "$as_me: failed program was:" >&5
10448 cat conftest.$ac_ext >&5
10449 cf_cv_xaw_compat=no
10451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10453 echo "$as_me:10453: result: $cf_cv_xaw_compat" >&5
10454 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
10456 if test "$cf_cv_xaw_compat" = no
10458 # workaround for broken ".pc" files...
10459 case "$cf_x_athena_lib" in
10463 test -n "$verbose" && echo " work around broken package" 1>&6
10465 echo "${as_me:-configure}:10465: testing work around broken package ..." 1>&5
10467 cf_save_xmu="$LIBS"
10468 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
10470 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
10471 test -n "$verbose" && echo " found package xmu" 1>&6
10473 echo "${as_me:-configure}:10473: testing found package xmu ..." 1>&5
10475 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
10476 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
10477 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
10479 echo "${as_me:-configure}:10479: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10481 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
10483 echo "${as_me:-configure}:10483: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
10488 cf_new_extra_cppflags=
10490 for cf_add_cflags in $cf_pkgconfig_incs
10492 case $cf_fix_cppflags in
10494 case $cf_add_cflags in
10495 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10496 case $cf_add_cflags in
10498 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10500 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10501 && test -z "${cf_tst_cflags}" \
10502 && cf_fix_cppflags=yes
10504 if test $cf_fix_cppflags = yes ; then
10505 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10507 elif test "${cf_tst_cflags}" = "\"'" ; then
10508 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10513 case "$CPPFLAGS" in
10517 case $cf_add_cflags in
10519 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10521 CPPFLAGS=`echo "$CPPFLAGS" | \
10522 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10523 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10527 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10532 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10537 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10539 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10541 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10542 && test -z "${cf_tst_cflags}" \
10543 && cf_fix_cppflags=no
10548 if test -n "$cf_new_cflags" ; then
10550 CFLAGS="$CFLAGS $cf_new_cflags"
10553 if test -n "$cf_new_cppflags" ; then
10555 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10558 if test -n "$cf_new_extra_cppflags" ; then
10560 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10563 cf_add_libs="$cf_pkgconfig_libs"
10564 # Filter out duplicates - this happens with badly-designed ".pc" files...
10565 for cf_add_1lib in $LIBS
10567 for cf_add_2lib in $cf_add_libs
10569 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10575 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10577 LIBS="$cf_add_libs"
10579 LIBS="$cf_save_xmu"
10581 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10583 echo "${as_me:-configure}:10583: testing ...before $LIBS ..." 1>&5
10585 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
10586 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10588 echo "${as_me:-configure}:10588: testing ...after $LIBS ..." 1>&5
10594 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10596 echo "${as_me:-configure}:10596: testing ...before $LIBS ..." 1>&5
10598 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
10599 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10601 echo "${as_me:-configure}:10601: testing ...after $LIBS ..." 1>&5
10605 for cf_trim_lib in Xmu Xt X11
10608 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
10609 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
10610 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
10612 echo "${as_me:-configure}:10612: testing ..trimmed $LIBS ..." 1>&5
10632 if test -z "$cf_x_athena_lib" ; then
10634 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
10635 test -n "$verbose" && echo " found package Xext" 1>&6
10637 echo "${as_me:-configure}:10637: testing found package Xext ..." 1>&5
10639 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
10640 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
10641 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
10643 echo "${as_me:-configure}:10643: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10645 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
10647 echo "${as_me:-configure}:10647: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
10652 cf_new_extra_cppflags=
10654 for cf_add_cflags in $cf_pkgconfig_incs
10656 case $cf_fix_cppflags in
10658 case $cf_add_cflags in
10659 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10660 case $cf_add_cflags in
10662 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10664 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10665 && test -z "${cf_tst_cflags}" \
10666 && cf_fix_cppflags=yes
10668 if test $cf_fix_cppflags = yes ; then
10669 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10671 elif test "${cf_tst_cflags}" = "\"'" ; then
10672 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10677 case "$CPPFLAGS" in
10681 case $cf_add_cflags in
10683 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10685 CPPFLAGS=`echo "$CPPFLAGS" | \
10686 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10687 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10691 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10696 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10701 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10703 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10705 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10706 && test -z "${cf_tst_cflags}" \
10707 && cf_fix_cppflags=no
10712 if test -n "$cf_new_cflags" ; then
10714 CFLAGS="$CFLAGS $cf_new_cflags"
10717 if test -n "$cf_new_cppflags" ; then
10719 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10722 if test -n "$cf_new_extra_cppflags" ; then
10724 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10727 cf_add_libs="$cf_pkgconfig_libs"
10728 # Filter out duplicates - this happens with badly-designed ".pc" files...
10729 for cf_add_1lib in $LIBS
10731 for cf_add_2lib in $cf_add_libs
10733 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10739 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10741 LIBS="$cf_add_libs"
10748 echo "$as_me:10748: checking for XextCreateExtension in -lXext" >&5
10749 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
10750 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 ac_check_lib_save_LIBS=$LIBS
10754 LIBS="-lXext $LIBS"
10755 cat >conftest.$ac_ext <<_ACEOF
10756 #line 10756 "configure"
10757 #include "confdefs.h"
10759 /* Override any gcc2 internal prototype to avoid an error. */
10763 /* We use char because int might match the return type of a gcc2
10764 builtin and then its argument prototype would still apply. */
10765 char XextCreateExtension ();
10769 XextCreateExtension ();
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (eval echo "$as_me:10775: \"$ac_link\"") >&5
10776 (eval $ac_link) 2>&5
10778 echo "$as_me:10778: \$? = $ac_status" >&5
10779 (exit $ac_status); } &&
10780 { ac_try='test -s conftest$ac_exeext'
10781 { (eval echo "$as_me:10781: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10784 echo "$as_me:10784: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10786 ac_cv_lib_Xext_XextCreateExtension=yes
10788 echo "$as_me: failed program was:" >&5
10789 cat conftest.$ac_ext >&5
10790 ac_cv_lib_Xext_XextCreateExtension=no
10792 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10793 LIBS=$ac_check_lib_save_LIBS
10795 echo "$as_me:10795: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
10796 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
10797 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
10799 cf_add_libs="-lXext"
10800 # Filter out duplicates - this happens with badly-designed ".pc" files...
10801 for cf_add_1lib in $LIBS
10803 for cf_add_2lib in $cf_add_libs
10805 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10811 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10813 LIBS="$cf_add_libs"
10819 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new), and (and
10820 # in some cases has installed dummy files in the former, other cases replaced
10821 # it with a link to the new location). This complicates the configure script.
10822 # Check for that pitfall, and recover using pkg-config
10824 # If none of these are set, the configuration is almost certainly broken.
10825 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
10828 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
10829 test -n "$verbose" && echo " found package x11" 1>&6
10831 echo "${as_me:-configure}:10831: testing found package x11 ..." 1>&5
10833 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
10834 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
10835 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
10837 echo "${as_me:-configure}:10837: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10839 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
10841 echo "${as_me:-configure}:10841: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
10846 cf_new_extra_cppflags=
10848 for cf_add_cflags in $cf_pkgconfig_incs
10850 case $cf_fix_cppflags in
10852 case $cf_add_cflags in
10853 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10854 case $cf_add_cflags in
10856 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10858 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10859 && test -z "${cf_tst_cflags}" \
10860 && cf_fix_cppflags=yes
10862 if test $cf_fix_cppflags = yes ; then
10863 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10865 elif test "${cf_tst_cflags}" = "\"'" ; then
10866 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10871 case "$CPPFLAGS" in
10875 case $cf_add_cflags in
10877 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10879 CPPFLAGS=`echo "$CPPFLAGS" | \
10880 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10881 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10885 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10890 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10895 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10897 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10899 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10900 && test -z "${cf_tst_cflags}" \
10901 && cf_fix_cppflags=no
10906 if test -n "$cf_new_cflags" ; then
10908 CFLAGS="$CFLAGS $cf_new_cflags"
10911 if test -n "$cf_new_cppflags" ; then
10913 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10916 if test -n "$cf_new_extra_cppflags" ; then
10918 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10921 cf_add_libs="$cf_pkgconfig_libs"
10922 # Filter out duplicates - this happens with badly-designed ".pc" files...
10923 for cf_add_1lib in $LIBS
10925 for cf_add_2lib in $cf_add_libs
10927 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10933 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10935 LIBS="$cf_add_libs"
10941 { echo "$as_me:10941: WARNING: unable to find X11 library" >&5
10942 echo "$as_me: WARNING: unable to find X11 library" >&2;}
10945 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
10946 test -n "$verbose" && echo " found package ice" 1>&6
10948 echo "${as_me:-configure}:10948: testing found package ice ..." 1>&5
10950 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
10951 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
10952 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
10954 echo "${as_me:-configure}:10954: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10956 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
10958 echo "${as_me:-configure}:10958: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
10963 cf_new_extra_cppflags=
10965 for cf_add_cflags in $cf_pkgconfig_incs
10967 case $cf_fix_cppflags in
10969 case $cf_add_cflags in
10970 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10971 case $cf_add_cflags in
10973 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10975 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10976 && test -z "${cf_tst_cflags}" \
10977 && cf_fix_cppflags=yes
10979 if test $cf_fix_cppflags = yes ; then
10980 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10982 elif test "${cf_tst_cflags}" = "\"'" ; then
10983 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10988 case "$CPPFLAGS" in
10992 case $cf_add_cflags in
10994 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10996 CPPFLAGS=`echo "$CPPFLAGS" | \
10997 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10998 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11002 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11007 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11012 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11014 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11016 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11017 && test -z "${cf_tst_cflags}" \
11018 && cf_fix_cppflags=no
11023 if test -n "$cf_new_cflags" ; then
11025 CFLAGS="$CFLAGS $cf_new_cflags"
11028 if test -n "$cf_new_cppflags" ; then
11030 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11033 if test -n "$cf_new_extra_cppflags" ; then
11035 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11038 cf_add_libs="$cf_pkgconfig_libs"
11039 # Filter out duplicates - this happens with badly-designed ".pc" files...
11040 for cf_add_1lib in $LIBS
11042 for cf_add_2lib in $cf_add_libs
11044 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11050 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11052 LIBS="$cf_add_libs"
11058 { echo "$as_me:11058: WARNING: unable to find ICE library" >&5
11059 echo "$as_me: WARNING: unable to find ICE library" >&2;}
11062 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
11063 test -n "$verbose" && echo " found package sm" 1>&6
11065 echo "${as_me:-configure}:11065: testing found package sm ..." 1>&5
11067 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
11068 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
11069 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11071 echo "${as_me:-configure}:11071: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11073 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11075 echo "${as_me:-configure}:11075: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11080 cf_new_extra_cppflags=
11082 for cf_add_cflags in $cf_pkgconfig_incs
11084 case $cf_fix_cppflags in
11086 case $cf_add_cflags in
11087 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11088 case $cf_add_cflags in
11090 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11092 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11093 && test -z "${cf_tst_cflags}" \
11094 && cf_fix_cppflags=yes
11096 if test $cf_fix_cppflags = yes ; then
11097 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11099 elif test "${cf_tst_cflags}" = "\"'" ; then
11100 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11105 case "$CPPFLAGS" in
11109 case $cf_add_cflags in
11111 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11113 CPPFLAGS=`echo "$CPPFLAGS" | \
11114 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11115 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11119 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11124 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11129 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11131 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11133 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11134 && test -z "${cf_tst_cflags}" \
11135 && cf_fix_cppflags=no
11140 if test -n "$cf_new_cflags" ; then
11142 CFLAGS="$CFLAGS $cf_new_cflags"
11145 if test -n "$cf_new_cppflags" ; then
11147 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11150 if test -n "$cf_new_extra_cppflags" ; then
11152 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11155 cf_add_libs="$cf_pkgconfig_libs"
11156 # Filter out duplicates - this happens with badly-designed ".pc" files...
11157 for cf_add_1lib in $LIBS
11159 for cf_add_2lib in $cf_add_libs
11161 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11167 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11169 LIBS="$cf_add_libs"
11175 { echo "$as_me:11175: WARNING: unable to find SM library" >&5
11176 echo "$as_me: WARNING: unable to find SM library" >&2;}
11179 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
11180 test -n "$verbose" && echo " found package xt" 1>&6
11182 echo "${as_me:-configure}:11182: testing found package xt ..." 1>&5
11184 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
11185 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
11186 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
11188 echo "${as_me:-configure}:11188: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11190 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
11192 echo "${as_me:-configure}:11192: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
11197 cf_new_extra_cppflags=
11199 for cf_add_cflags in $cf_pkgconfig_incs
11201 case $cf_fix_cppflags in
11203 case $cf_add_cflags in
11204 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11205 case $cf_add_cflags in
11207 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11210 && test -z "${cf_tst_cflags}" \
11211 && cf_fix_cppflags=yes
11213 if test $cf_fix_cppflags = yes ; then
11214 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11216 elif test "${cf_tst_cflags}" = "\"'" ; then
11217 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11222 case "$CPPFLAGS" in
11226 case $cf_add_cflags in
11228 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11230 CPPFLAGS=`echo "$CPPFLAGS" | \
11231 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11232 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11236 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11241 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11246 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11248 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11250 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11251 && test -z "${cf_tst_cflags}" \
11252 && cf_fix_cppflags=no
11257 if test -n "$cf_new_cflags" ; then
11259 CFLAGS="$CFLAGS $cf_new_cflags"
11262 if test -n "$cf_new_cppflags" ; then
11264 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11267 if test -n "$cf_new_extra_cppflags" ; then
11269 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11272 cf_add_libs="$cf_pkgconfig_libs"
11273 # Filter out duplicates - this happens with badly-designed ".pc" files...
11274 for cf_add_1lib in $LIBS
11276 for cf_add_2lib in $cf_add_libs
11278 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11284 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11286 LIBS="$cf_add_libs"
11292 { echo "$as_me:11292: WARNING: unable to find Xt library" >&5
11293 echo "$as_me: WARNING: unable to find Xt library" >&2;}
11300 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
11301 test -n "$verbose" && echo " found package xt" 1>&6
11303 echo "${as_me:-configure}:11303: testing found package xt ..." 1>&5
11305 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
11306 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
11307 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
11309 echo "${as_me:-configure}:11309: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11311 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
11313 echo "${as_me:-configure}:11313: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
11318 cf_new_extra_cppflags=
11320 for cf_add_cflags in $cf_pkgconfig_incs
11322 case $cf_fix_cppflags in
11324 case $cf_add_cflags in
11325 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11326 case $cf_add_cflags in
11328 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11330 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11331 && test -z "${cf_tst_cflags}" \
11332 && cf_fix_cppflags=yes
11334 if test $cf_fix_cppflags = yes ; then
11335 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11337 elif test "${cf_tst_cflags}" = "\"'" ; then
11338 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11343 case "$CPPFLAGS" in
11347 case $cf_add_cflags in
11349 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11351 CPPFLAGS=`echo "$CPPFLAGS" | \
11352 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11353 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11357 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11362 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11367 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11369 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11371 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11372 && test -z "${cf_tst_cflags}" \
11373 && cf_fix_cppflags=no
11378 if test -n "$cf_new_cflags" ; then
11380 CFLAGS="$CFLAGS $cf_new_cflags"
11383 if test -n "$cf_new_cppflags" ; then
11385 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11388 if test -n "$cf_new_extra_cppflags" ; then
11390 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11393 cf_add_libs="$cf_pkgconfig_libs"
11394 # Filter out duplicates - this happens with badly-designed ".pc" files...
11395 for cf_add_1lib in $LIBS
11397 for cf_add_2lib in $cf_add_libs
11399 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11405 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11407 LIBS="$cf_add_libs"
11413 # we have an "xt" package, but it may omit Xt's dependency on X11
11414 echo "$as_me:11414: checking for usable X dependency" >&5
11415 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
11416 if test "${cf_cv_xt_x11_compat+set}" = set; then
11417 echo $ECHO_N "(cached) $ECHO_C" >&6
11420 cat >conftest.$ac_ext <<_ACEOF
11421 #line 11421 "configure"
11422 #include "confdefs.h"
11424 #include <X11/Xlib.h>
11430 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
11431 int rc2 = XClearWindow((Display*) 0, (Window) 0);
11432 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
11433 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (eval echo "$as_me:11440: \"$ac_link\"") >&5
11441 (eval $ac_link) 2>&5
11443 echo "$as_me:11443: \$? = $ac_status" >&5
11444 (exit $ac_status); } &&
11445 { ac_try='test -s conftest$ac_exeext'
11446 { (eval echo "$as_me:11446: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11449 echo "$as_me:11449: \$? = $ac_status" >&5
11450 (exit $ac_status); }; }; then
11451 cf_cv_xt_x11_compat=yes
11453 echo "$as_me: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11455 cf_cv_xt_x11_compat=no
11457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11459 echo "$as_me:11459: result: $cf_cv_xt_x11_compat" >&5
11460 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
11461 if test "$cf_cv_xt_x11_compat" = no
11463 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
11465 echo "${as_me:-configure}:11465: testing work around broken X11 dependency ..." 1>&5
11467 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
11469 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
11470 test -n "$verbose" && echo " found package x11" 1>&6
11472 echo "${as_me:-configure}:11472: testing found package x11 ..." 1>&5
11474 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
11475 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
11476 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
11478 echo "${as_me:-configure}:11478: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11480 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
11482 echo "${as_me:-configure}:11482: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
11487 cf_new_extra_cppflags=
11489 for cf_add_cflags in $cf_pkgconfig_incs
11491 case $cf_fix_cppflags in
11493 case $cf_add_cflags in
11494 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11495 case $cf_add_cflags in
11497 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11499 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11500 && test -z "${cf_tst_cflags}" \
11501 && cf_fix_cppflags=yes
11503 if test $cf_fix_cppflags = yes ; then
11504 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11506 elif test "${cf_tst_cflags}" = "\"'" ; then
11507 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11512 case "$CPPFLAGS" in
11516 case $cf_add_cflags in
11518 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11520 CPPFLAGS=`echo "$CPPFLAGS" | \
11521 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11522 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11526 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11531 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11536 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11538 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11540 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11541 && test -z "${cf_tst_cflags}" \
11542 && cf_fix_cppflags=no
11547 if test -n "$cf_new_cflags" ; then
11549 CFLAGS="$CFLAGS $cf_new_cflags"
11552 if test -n "$cf_new_cppflags" ; then
11554 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11557 if test -n "$cf_new_extra_cppflags" ; then
11559 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11562 cf_add_libs="$cf_pkgconfig_libs"
11563 # Filter out duplicates - this happens with badly-designed ".pc" files...
11564 for cf_add_1lib in $LIBS
11566 for cf_add_2lib in $cf_add_libs
11568 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11574 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11576 LIBS="$cf_add_libs"
11583 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11585 echo "${as_me:-configure}:11585: testing ...before $LIBS ..." 1>&5
11587 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
11588 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11590 echo "${as_me:-configure}:11590: testing ...after $LIBS ..." 1>&5
11598 echo "$as_me:11598: checking for usable X Toolkit package" >&5
11599 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
11600 if test "${cf_cv_xt_ice_compat+set}" = set; then
11601 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 cat >conftest.$ac_ext <<_ACEOF
11605 #line 11605 "configure"
11606 #include "confdefs.h"
11608 #include <X11/Shell.h>
11613 int num = IceConnectionNumber(0)
11619 rm -f conftest.$ac_objext conftest$ac_exeext
11620 if { (eval echo "$as_me:11620: \"$ac_link\"") >&5
11621 (eval $ac_link) 2>&5
11623 echo "$as_me:11623: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
11625 { ac_try='test -s conftest$ac_exeext'
11626 { (eval echo "$as_me:11626: \"$ac_try\"") >&5
11627 (eval $ac_try) 2>&5
11629 echo "$as_me:11629: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 cf_cv_xt_ice_compat=yes
11633 echo "$as_me: failed program was:" >&5
11634 cat conftest.$ac_ext >&5
11635 cf_cv_xt_ice_compat=no
11637 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11639 echo "$as_me:11639: result: $cf_cv_xt_ice_compat" >&5
11640 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
11642 if test "$cf_cv_xt_ice_compat" = no
11644 # workaround for broken ".pc" files used for X Toolkit.
11645 case "x$X_PRE_LIBS" in
11651 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
11653 echo "${as_me:-configure}:11653: testing work around broken ICE dependency ..." 1>&5
11655 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
11656 test -n "$verbose" && echo " found package ice" 1>&6
11658 echo "${as_me:-configure}:11658: testing found package ice ..." 1>&5
11660 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
11661 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
11662 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
11664 echo "${as_me:-configure}:11664: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11666 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
11668 echo "${as_me:-configure}:11668: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
11673 cf_new_extra_cppflags=
11675 for cf_add_cflags in $cf_pkgconfig_incs
11677 case $cf_fix_cppflags in
11679 case $cf_add_cflags in
11680 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11681 case $cf_add_cflags in
11683 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11685 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11686 && test -z "${cf_tst_cflags}" \
11687 && cf_fix_cppflags=yes
11689 if test $cf_fix_cppflags = yes ; then
11690 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11692 elif test "${cf_tst_cflags}" = "\"'" ; then
11693 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11698 case "$CPPFLAGS" in
11702 case $cf_add_cflags in
11704 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11706 CPPFLAGS=`echo "$CPPFLAGS" | \
11707 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11708 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11712 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11717 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11722 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11724 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11726 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11727 && test -z "${cf_tst_cflags}" \
11728 && cf_fix_cppflags=no
11733 if test -n "$cf_new_cflags" ; then
11735 CFLAGS="$CFLAGS $cf_new_cflags"
11738 if test -n "$cf_new_cppflags" ; then
11740 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11743 if test -n "$cf_new_extra_cppflags" ; then
11745 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11748 cf_add_libs="$cf_pkgconfig_libs"
11749 # Filter out duplicates - this happens with badly-designed ".pc" files...
11750 for cf_add_1lib in $LIBS
11752 for cf_add_2lib in $cf_add_libs
11754 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11760 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11762 LIBS="$cf_add_libs"
11764 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
11765 test -n "$verbose" && echo " found package sm" 1>&6
11767 echo "${as_me:-configure}:11767: testing found package sm ..." 1>&5
11769 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
11770 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
11771 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11773 echo "${as_me:-configure}:11773: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11775 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11777 echo "${as_me:-configure}:11777: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11782 cf_new_extra_cppflags=
11784 for cf_add_cflags in $cf_pkgconfig_incs
11786 case $cf_fix_cppflags in
11788 case $cf_add_cflags in
11789 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11790 case $cf_add_cflags in
11792 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11794 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11795 && test -z "${cf_tst_cflags}" \
11796 && cf_fix_cppflags=yes
11798 if test $cf_fix_cppflags = yes ; then
11799 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11801 elif test "${cf_tst_cflags}" = "\"'" ; then
11802 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11807 case "$CPPFLAGS" in
11811 case $cf_add_cflags in
11813 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11815 CPPFLAGS=`echo "$CPPFLAGS" | \
11816 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11817 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11821 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11826 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11831 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11833 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11835 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11836 && test -z "${cf_tst_cflags}" \
11837 && cf_fix_cppflags=no
11842 if test -n "$cf_new_cflags" ; then
11844 CFLAGS="$CFLAGS $cf_new_cflags"
11847 if test -n "$cf_new_cppflags" ; then
11849 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11852 if test -n "$cf_new_extra_cppflags" ; then
11854 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11857 cf_add_libs="$cf_pkgconfig_libs"
11858 # Filter out duplicates - this happens with badly-designed ".pc" files...
11859 for cf_add_1lib in $LIBS
11861 for cf_add_2lib in $cf_add_libs
11863 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11869 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11871 LIBS="$cf_add_libs"
11884 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11886 echo "${as_me:-configure}:11886: testing ...before $LIBS ..." 1>&5
11888 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
11889 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11891 echo "${as_me:-configure}:11891: testing ...after $LIBS ..." 1>&5
11907 LDFLAGS="$X_LIBS $LDFLAGS"
11909 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
11911 echo "${as_me:-configure}:11911: testing checking additions to CFLAGS ..." 1>&5
11913 cf_check_cflags="$CFLAGS"
11914 cf_check_cppflags="$CPPFLAGS"
11919 cf_new_extra_cppflags=
11921 for cf_add_cflags in $X_CFLAGS
11923 case $cf_fix_cppflags in
11925 case $cf_add_cflags in
11926 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11927 case $cf_add_cflags in
11929 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11931 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11932 && test -z "${cf_tst_cflags}" \
11933 && cf_fix_cppflags=yes
11935 if test $cf_fix_cppflags = yes ; then
11936 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11938 elif test "${cf_tst_cflags}" = "\"'" ; then
11939 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11944 case "$CPPFLAGS" in
11948 case $cf_add_cflags in
11950 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11952 CPPFLAGS=`echo "$CPPFLAGS" | \
11953 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11954 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11958 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11963 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11968 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11970 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11972 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11973 && test -z "${cf_tst_cflags}" \
11974 && cf_fix_cppflags=no
11979 if test -n "$cf_new_cflags" ; then
11980 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11982 echo "${as_me:-configure}:11982: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11984 CFLAGS="$CFLAGS $cf_new_cflags"
11987 if test -n "$cf_new_cppflags" ; then
11988 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11990 echo "${as_me:-configure}:11990: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11992 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11995 if test -n "$cf_new_extra_cppflags" ; then
11996 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11998 echo "${as_me:-configure}:11998: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
12000 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12003 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
12004 cat >conftest.$ac_ext <<_ACEOF
12005 #line 12005 "configure"
12006 #include "confdefs.h"
12011 printf("Hello world");
12016 rm -f conftest.$ac_objext conftest$ac_exeext
12017 if { (eval echo "$as_me:12017: \"$ac_link\"") >&5
12018 (eval $ac_link) 2>&5
12020 echo "$as_me:12020: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -s conftest$ac_exeext'
12023 { (eval echo "$as_me:12023: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12026 echo "$as_me:12026: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12030 echo "$as_me: failed program was:" >&5
12031 cat conftest.$ac_ext >&5
12032 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
12034 echo "${as_me:-configure}:12034: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
12036 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
12037 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
12039 echo "${as_me:-configure}:12039: testing but keeping change to \$CPPFLAGS ..." 1>&5
12042 CFLAGS="$cf_check_flags"
12044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12047 echo "$as_me:12047: checking for XOpenDisplay" >&5
12048 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
12049 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 cat >conftest.$ac_ext <<_ACEOF
12053 #line 12053 "configure"
12054 #include "confdefs.h"
12055 /* System header to define __stub macros and hopefully few prototypes,
12056 which can conflict with char XOpenDisplay (); below. */
12057 #include <assert.h>
12058 /* Override any gcc2 internal prototype to avoid an error. */
12062 /* We use char because int might match the return type of a gcc2
12063 builtin and then its argument prototype would still apply. */
12064 char XOpenDisplay ();
12070 /* The GNU C library defines this for functions which it implements
12071 to always fail with ENOSYS. Some functions are actually named
12072 something starting with __ and the normal name is an alias. */
12073 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
12076 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12083 rm -f conftest.$ac_objext conftest$ac_exeext
12084 if { (eval echo "$as_me:12084: \"$ac_link\"") >&5
12085 (eval $ac_link) 2>&5
12087 echo "$as_me:12087: \$? = $ac_status" >&5
12088 (exit $ac_status); } &&
12089 { ac_try='test -s conftest$ac_exeext'
12090 { (eval echo "$as_me:12090: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12093 echo "$as_me:12093: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 ac_cv_func_XOpenDisplay=yes
12097 echo "$as_me: failed program was:" >&5
12098 cat conftest.$ac_ext >&5
12099 ac_cv_func_XOpenDisplay=no
12101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12103 echo "$as_me:12103: result: $ac_cv_func_XOpenDisplay" >&5
12104 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
12105 if test $ac_cv_func_XOpenDisplay = yes; then
12109 echo "$as_me:12109: checking for XOpenDisplay in -lX11" >&5
12110 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
12111 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 ac_check_lib_save_LIBS=$LIBS
12115 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12116 cat >conftest.$ac_ext <<_ACEOF
12117 #line 12117 "configure"
12118 #include "confdefs.h"
12120 /* Override any gcc2 internal prototype to avoid an error. */
12124 /* We use char because int might match the return type of a gcc2
12125 builtin and then its argument prototype would still apply. */
12126 char XOpenDisplay ();
12135 rm -f conftest.$ac_objext conftest$ac_exeext
12136 if { (eval echo "$as_me:12136: \"$ac_link\"") >&5
12137 (eval $ac_link) 2>&5
12139 echo "$as_me:12139: \$? = $ac_status" >&5
12140 (exit $ac_status); } &&
12141 { ac_try='test -s conftest$ac_exeext'
12142 { (eval echo "$as_me:12142: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12145 echo "$as_me:12145: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_lib_X11_XOpenDisplay=yes
12149 echo "$as_me: failed program was:" >&5
12150 cat conftest.$ac_ext >&5
12151 ac_cv_lib_X11_XOpenDisplay=no
12153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12154 LIBS=$ac_check_lib_save_LIBS
12156 echo "$as_me:12156: result: $ac_cv_lib_X11_XOpenDisplay" >&5
12157 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
12158 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
12160 cf_add_libs="-lX11"
12161 # Filter out duplicates - this happens with badly-designed ".pc" files...
12162 for cf_add_1lib in $LIBS
12164 for cf_add_2lib in $cf_add_libs
12166 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12172 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12174 LIBS="$cf_add_libs"
12180 echo "$as_me:12180: checking for XtAppInitialize" >&5
12181 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
12182 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12185 cat >conftest.$ac_ext <<_ACEOF
12186 #line 12186 "configure"
12187 #include "confdefs.h"
12188 /* System header to define __stub macros and hopefully few prototypes,
12189 which can conflict with char XtAppInitialize (); below. */
12190 #include <assert.h>
12191 /* Override any gcc2 internal prototype to avoid an error. */
12195 /* We use char because int might match the return type of a gcc2
12196 builtin and then its argument prototype would still apply. */
12197 char XtAppInitialize ();
12203 /* The GNU C library defines this for functions which it implements
12204 to always fail with ENOSYS. Some functions are actually named
12205 something starting with __ and the normal name is an alias. */
12206 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
12209 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (eval echo "$as_me:12217: \"$ac_link\"") >&5
12218 (eval $ac_link) 2>&5
12220 echo "$as_me:12220: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
12222 { ac_try='test -s conftest$ac_exeext'
12223 { (eval echo "$as_me:12223: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12226 echo "$as_me:12226: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12228 ac_cv_func_XtAppInitialize=yes
12230 echo "$as_me: failed program was:" >&5
12231 cat conftest.$ac_ext >&5
12232 ac_cv_func_XtAppInitialize=no
12234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12236 echo "$as_me:12236: result: $ac_cv_func_XtAppInitialize" >&5
12237 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
12238 if test $ac_cv_func_XtAppInitialize = yes; then
12242 echo "$as_me:12242: checking for XtAppInitialize in -lXt" >&5
12243 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
12244 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12247 ac_check_lib_save_LIBS=$LIBS
12248 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12249 cat >conftest.$ac_ext <<_ACEOF
12250 #line 12250 "configure"
12251 #include "confdefs.h"
12253 /* Override any gcc2 internal prototype to avoid an error. */
12257 /* We use char because int might match the return type of a gcc2
12258 builtin and then its argument prototype would still apply. */
12259 char XtAppInitialize ();
12263 XtAppInitialize ();
12268 rm -f conftest.$ac_objext conftest$ac_exeext
12269 if { (eval echo "$as_me:12269: \"$ac_link\"") >&5
12270 (eval $ac_link) 2>&5
12272 echo "$as_me:12272: \$? = $ac_status" >&5
12273 (exit $ac_status); } &&
12274 { ac_try='test -s conftest$ac_exeext'
12275 { (eval echo "$as_me:12275: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12278 echo "$as_me:12278: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 ac_cv_lib_Xt_XtAppInitialize=yes
12282 echo "$as_me: failed program was:" >&5
12283 cat conftest.$ac_ext >&5
12284 ac_cv_lib_Xt_XtAppInitialize=no
12286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12287 LIBS=$ac_check_lib_save_LIBS
12289 echo "$as_me:12289: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
12290 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
12291 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
12293 cat >>confdefs.h <<\EOF
12294 #define HAVE_LIBXT 1
12298 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
12305 if test $cf_have_X_LIBS = no ; then
12306 { echo "$as_me:12306: WARNING: Unable to successfully link X Toolkit library (-lXt) with
12307 test program. You will have to check and add the proper libraries by hand
12309 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
12310 test program. You will have to check and add the proper libraries by hand
12311 to makefile." >&2;}
12314 cf_x_athena_root=$cf_x_athena
12317 for cf_path in default \
12318 /usr/contrib/X11R6 \
12319 /usr/contrib/X11R5 \
12323 if test -z "$cf_x_athena_inc" ; then
12324 cf_save="$CPPFLAGS"
12325 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
12326 if test $cf_path != default ; then
12327 CPPFLAGS="$cf_save -I$cf_path/include"
12328 echo "$as_me:12328: checking for $cf_test in $cf_path" >&5
12329 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
12331 echo "$as_me:12331: checking for $cf_test" >&5
12332 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
12334 cat >conftest.$ac_ext <<_ACEOF
12335 #line 12335 "configure"
12336 #include "confdefs.h"
12338 #include <X11/Intrinsic.h>
12339 #include <$cf_test>
12348 rm -f conftest.$ac_objext
12349 if { (eval echo "$as_me:12349: \"$ac_compile\"") >&5
12350 (eval $ac_compile) 2>&5
12352 echo "$as_me:12352: \$? = $ac_status" >&5
12353 (exit $ac_status); } &&
12354 { ac_try='test -s conftest.$ac_objext'
12355 { (eval echo "$as_me:12355: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12358 echo "$as_me:12358: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12362 echo "$as_me: failed program was:" >&5
12363 cat conftest.$ac_ext >&5
12366 rm -f conftest.$ac_objext conftest.$ac_ext
12367 echo "$as_me:12367: result: $cf_result" >&5
12368 echo "${ECHO_T}$cf_result" >&6
12369 if test "$cf_result" = yes ; then
12370 cf_x_athena_inc=$cf_path
12373 CPPFLAGS="$cf_save"
12378 if test -z "$cf_x_athena_inc" ; then
12379 { echo "$as_me:12379: WARNING: Unable to successfully find Athena header files with test program" >&5
12380 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
12381 elif test "$cf_x_athena_inc" != default ; then
12382 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
12385 cf_x_athena_root=$cf_x_athena
12388 for cf_path in default \
12389 /usr/contrib/X11R6 \
12390 /usr/contrib/X11R5 \
12395 ${cf_x_athena_root} \
12396 ${cf_x_athena_root}7 \
12397 ${cf_x_athena_root}6
12400 "-l$cf_lib -lXmu" \
12401 "-l$cf_lib -lXpm -lXmu" \
12402 "-l${cf_lib}_s -lXmu_s"
12404 if test -z "$cf_x_athena_lib" ; then
12406 cf_test=XawSimpleMenuAddGlobalActions
12407 if test $cf_path != default ; then
12409 cf_add_libs="-L$cf_path/lib $cf_libs"
12410 # Filter out duplicates - this happens with badly-designed ".pc" files...
12411 for cf_add_1lib in $LIBS
12413 for cf_add_2lib in $cf_add_libs
12415 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12421 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12423 LIBS="$cf_add_libs"
12425 echo "$as_me:12425: checking for $cf_libs in $cf_path" >&5
12426 echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6
12429 cf_add_libs="$cf_libs"
12430 # Filter out duplicates - this happens with badly-designed ".pc" files...
12431 for cf_add_1lib in $LIBS
12433 for cf_add_2lib in $cf_add_libs
12435 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12441 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12443 LIBS="$cf_add_libs"
12445 echo "$as_me:12445: checking for $cf_test in $cf_libs" >&5
12446 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
12448 cat >conftest.$ac_ext <<_ACEOF
12449 #line 12449 "configure"
12450 #include "confdefs.h"
12452 #include <X11/Intrinsic.h>
12453 #include <X11/$cf_x_athena_root/SimpleMenu.h>
12459 $cf_test((XtAppContext) 0)
12464 rm -f conftest.$ac_objext conftest$ac_exeext
12465 if { (eval echo "$as_me:12465: \"$ac_link\"") >&5
12466 (eval $ac_link) 2>&5
12468 echo "$as_me:12468: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
12470 { ac_try='test -s conftest$ac_exeext'
12471 { (eval echo "$as_me:12471: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:12474: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12478 echo "$as_me: failed program was:" >&5
12479 cat conftest.$ac_ext >&5
12482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12483 echo "$as_me:12483: result: $cf_result" >&5
12484 echo "${ECHO_T}$cf_result" >&6
12485 if test "$cf_result" = yes ; then
12486 cf_x_athena_lib="$cf_libs"
12492 test -n "$cf_x_athena_lib" && break
12496 if test -z "$cf_x_athena_lib" ; then
12497 { { echo "$as_me:12497: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
12498 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
12499 { (exit 1); exit 1; }; }
12502 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12504 cat >>confdefs.h <<EOF
12505 #define $cf_x_athena_LIBS 1
12510 if test -n "$ac_tool_prefix"; then
12511 for ac_prog in xcurses-config
12513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12515 echo "$as_me:12515: checking for $ac_word" >&5
12516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12517 if test "${ac_cv_prog_XCURSES_CONFIG+set}" = set; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 if test -n "$XCURSES_CONFIG"; then
12521 ac_cv_prog_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test.
12523 ac_save_IFS=$IFS; IFS=$ac_path_separator
12525 for ac_dir in $ac_dummy; do
12527 test -z "$ac_dir" && ac_dir=.
12528 $as_executable_p "$ac_dir/$ac_word" || continue
12529 ac_cv_prog_XCURSES_CONFIG="$ac_tool_prefix$ac_prog"
12530 echo "$as_me:12530: found $ac_dir/$ac_word" >&5
12536 XCURSES_CONFIG=$ac_cv_prog_XCURSES_CONFIG
12537 if test -n "$XCURSES_CONFIG"; then
12538 echo "$as_me:12538: result: $XCURSES_CONFIG" >&5
12539 echo "${ECHO_T}$XCURSES_CONFIG" >&6
12541 echo "$as_me:12541: result: no" >&5
12542 echo "${ECHO_T}no" >&6
12545 test -n "$XCURSES_CONFIG" && break
12548 if test -z "$XCURSES_CONFIG"; then
12549 ac_ct_XCURSES_CONFIG=$XCURSES_CONFIG
12550 for ac_prog in xcurses-config
12552 # Extract the first word of "$ac_prog", so it can be a program name with args.
12553 set dummy $ac_prog; ac_word=$2
12554 echo "$as_me:12554: checking for $ac_word" >&5
12555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12556 if test "${ac_cv_prog_ac_ct_XCURSES_CONFIG+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 if test -n "$ac_ct_XCURSES_CONFIG"; then
12560 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_ct_XCURSES_CONFIG" # Let the user override the test.
12562 ac_save_IFS=$IFS; IFS=$ac_path_separator
12564 for ac_dir in $ac_dummy; do
12566 test -z "$ac_dir" && ac_dir=.
12567 $as_executable_p "$ac_dir/$ac_word" || continue
12568 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_prog"
12569 echo "$as_me:12569: found $ac_dir/$ac_word" >&5
12575 ac_ct_XCURSES_CONFIG=$ac_cv_prog_ac_ct_XCURSES_CONFIG
12576 if test -n "$ac_ct_XCURSES_CONFIG"; then
12577 echo "$as_me:12577: result: $ac_ct_XCURSES_CONFIG" >&5
12578 echo "${ECHO_T}$ac_ct_XCURSES_CONFIG" >&6
12580 echo "$as_me:12580: result: no" >&5
12581 echo "${ECHO_T}no" >&6
12584 test -n "$ac_ct_XCURSES_CONFIG" && break
12586 test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG="none"
12588 XCURSES_CONFIG=$ac_ct_XCURSES_CONFIG
12591 if test "$XCURSES_CONFIG" != none ; then
12593 CPPFLAGS="$CPPFLAGS `$XCURSES_CONFIG --cflags`"
12595 cf_add_libs="`$XCURSES_CONFIG --libs`"
12596 # Filter out duplicates - this happens with badly-designed ".pc" files...
12597 for cf_add_1lib in $LIBS
12599 for cf_add_2lib in $cf_add_libs
12601 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12607 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12609 LIBS="$cf_add_libs"
12611 cf_cv_lib_XCurses=yes
12615 LDFLAGS="$LDFLAGS $X_LIBS"
12617 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
12619 echo "${as_me:-configure}:12619: testing checking additions to CFLAGS ..." 1>&5
12621 cf_check_cflags="$CFLAGS"
12622 cf_check_cppflags="$CPPFLAGS"
12627 cf_new_extra_cppflags=
12629 for cf_add_cflags in $X_CFLAGS
12631 case $cf_fix_cppflags in
12633 case $cf_add_cflags in
12634 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12635 case $cf_add_cflags in
12637 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12639 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12640 && test -z "${cf_tst_cflags}" \
12641 && cf_fix_cppflags=yes
12643 if test $cf_fix_cppflags = yes ; then
12644 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12646 elif test "${cf_tst_cflags}" = "\"'" ; then
12647 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12652 case "$CPPFLAGS" in
12656 case $cf_add_cflags in
12658 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12660 CPPFLAGS=`echo "$CPPFLAGS" | \
12661 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12662 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12666 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12671 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12676 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12678 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12680 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12681 && test -z "${cf_tst_cflags}" \
12682 && cf_fix_cppflags=no
12687 if test -n "$cf_new_cflags" ; then
12688 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
12690 echo "${as_me:-configure}:12690: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
12692 CFLAGS="$CFLAGS $cf_new_cflags"
12695 if test -n "$cf_new_cppflags" ; then
12696 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
12698 echo "${as_me:-configure}:12698: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
12700 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12703 if test -n "$cf_new_extra_cppflags" ; then
12704 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
12706 echo "${as_me:-configure}:12706: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
12708 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12711 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
12712 cat >conftest.$ac_ext <<_ACEOF
12713 #line 12713 "configure"
12714 #include "confdefs.h"
12719 printf("Hello world");
12724 rm -f conftest.$ac_objext conftest$ac_exeext
12725 if { (eval echo "$as_me:12725: \"$ac_link\"") >&5
12726 (eval $ac_link) 2>&5
12728 echo "$as_me:12728: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
12730 { ac_try='test -s conftest$ac_exeext'
12731 { (eval echo "$as_me:12731: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12734 echo "$as_me:12734: \$? = $ac_status" >&5
12735 (exit $ac_status); }; }; then
12738 echo "$as_me: failed program was:" >&5
12739 cat conftest.$ac_ext >&5
12740 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
12742 echo "${as_me:-configure}:12742: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
12744 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
12745 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
12747 echo "${as_me:-configure}:12747: testing but keeping change to \$CPPFLAGS ..." 1>&5
12750 CFLAGS="$cf_check_flags"
12752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12755 echo "$as_me:12755: checking for XOpenDisplay in -lX11" >&5
12756 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
12757 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12760 ac_check_lib_save_LIBS=$LIBS
12761 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12762 cat >conftest.$ac_ext <<_ACEOF
12763 #line 12763 "configure"
12764 #include "confdefs.h"
12766 /* Override any gcc2 internal prototype to avoid an error. */
12770 /* We use char because int might match the return type of a gcc2
12771 builtin and then its argument prototype would still apply. */
12772 char XOpenDisplay ();
12781 rm -f conftest.$ac_objext conftest$ac_exeext
12782 if { (eval echo "$as_me:12782: \"$ac_link\"") >&5
12783 (eval $ac_link) 2>&5
12785 echo "$as_me:12785: \$? = $ac_status" >&5
12786 (exit $ac_status); } &&
12787 { ac_try='test -s conftest$ac_exeext'
12788 { (eval echo "$as_me:12788: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12791 echo "$as_me:12791: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793 ac_cv_lib_X11_XOpenDisplay=yes
12795 echo "$as_me: failed program was:" >&5
12796 cat conftest.$ac_ext >&5
12797 ac_cv_lib_X11_XOpenDisplay=no
12799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12800 LIBS=$ac_check_lib_save_LIBS
12802 echo "$as_me:12802: result: $ac_cv_lib_X11_XOpenDisplay" >&5
12803 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
12804 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
12806 cf_add_libs="-lX11"
12807 # Filter out duplicates - this happens with badly-designed ".pc" files...
12808 for cf_add_1lib in $LIBS
12810 for cf_add_2lib in $cf_add_libs
12812 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12818 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12820 LIBS="$cf_add_libs"
12824 echo "$as_me:12824: checking for XCurses library" >&5
12825 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
12826 if test "${cf_cv_lib_XCurses+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 cf_add_libs="-lXCurses"
12831 # Filter out duplicates - this happens with badly-designed ".pc" files...
12832 for cf_add_1lib in $LIBS
12834 for cf_add_2lib in $cf_add_libs
12836 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12842 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12844 LIBS="$cf_add_libs"
12846 cat >conftest.$ac_ext <<_ACEOF
12847 #line 12847 "configure"
12848 #include "confdefs.h"
12850 #include <xcurses.h>
12851 char *XCursesProgramName = "test";
12861 rm -f conftest.$ac_objext conftest$ac_exeext
12862 if { (eval echo "$as_me:12862: \"$ac_link\"") >&5
12863 (eval $ac_link) 2>&5
12865 echo "$as_me:12865: \$? = $ac_status" >&5
12866 (exit $ac_status); } &&
12867 { ac_try='test -s conftest$ac_exeext'
12868 { (eval echo "$as_me:12868: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12871 echo "$as_me:12871: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 cf_cv_lib_XCurses=yes
12875 echo "$as_me: failed program was:" >&5
12876 cat conftest.$ac_ext >&5
12877 cf_cv_lib_XCurses=no
12879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12882 echo "$as_me:12882: result: $cf_cv_lib_XCurses" >&5
12883 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
12887 if test $cf_cv_lib_XCurses = yes ; then
12889 cat >>confdefs.h <<\EOF
12893 cat >>confdefs.h <<\EOF
12897 echo "$as_me:12897: checking for xcurses.h" >&5
12898 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
12899 if test "${ac_cv_header_xcurses_h+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 cat >conftest.$ac_ext <<_ACEOF
12903 #line 12903 "configure"
12904 #include "confdefs.h"
12905 #include <xcurses.h>
12907 if { (eval echo "$as_me:12907: \"$ac_cpp conftest.$ac_ext\"") >&5
12908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12910 egrep -v '^ *\+' conftest.er1 >conftest.err
12912 cat conftest.err >&5
12913 echo "$as_me:12913: \$? = $ac_status" >&5
12914 (exit $ac_status); } >/dev/null; then
12915 if test -s conftest.err; then
12916 ac_cpp_err=$ac_c_preproc_warn_flag
12923 if test -z "$ac_cpp_err"; then
12924 ac_cv_header_xcurses_h=yes
12926 echo "$as_me: failed program was:" >&5
12927 cat conftest.$ac_ext >&5
12928 ac_cv_header_xcurses_h=no
12930 rm -f conftest.err conftest.$ac_ext
12932 echo "$as_me:12932: result: $ac_cv_header_xcurses_h" >&5
12933 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
12934 if test $ac_cv_header_xcurses_h = yes; then
12936 cat >>confdefs.h <<\EOF
12937 #define HAVE_XCURSES 1
12943 { { echo "$as_me:12943: error: Cannot link with XCurses" >&5
12944 echo "$as_me: error: Cannot link with XCurses" >&2;}
12945 { (exit 1); exit 1; }; }
12950 { { echo "$as_me:12950: error: unexpected screen-value: $cf_cv_screen" >&5
12951 echo "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;}
12952 { (exit 1); exit 1; }; }
12956 case $cf_cv_screen in
12958 cf_cv_libtype=`echo "$cf_cv_screen" | sed -e 's/^ncurses//'`
12962 echo "$as_me:12962: checking for NetBSD form.h" >&5
12963 echo $ECHO_N "checking for NetBSD form.h... $ECHO_C" >&6
12964 if test "${cf_cv_netbsd_form_h+set}" = set; then
12965 echo $ECHO_N "(cached) $ECHO_C" >&6
12968 cat >conftest.$ac_ext <<_ACEOF
12969 #line 12969 "configure"
12970 #include "confdefs.h"
12972 #include <${cf_cv_ncurses_header:-curses.h}>
12980 int y = current_field(form)->cursor_ypos;
12981 int x = current_field(form)->cursor_xpos;
12987 rm -f conftest.$ac_objext
12988 if { (eval echo "$as_me:12988: \"$ac_compile\"") >&5
12989 (eval $ac_compile) 2>&5
12991 echo "$as_me:12991: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
12993 { ac_try='test -s conftest.$ac_objext'
12994 { (eval echo "$as_me:12994: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12997 echo "$as_me:12997: \$? = $ac_status" >&5
12998 (exit $ac_status); }; }; then
12999 cf_cv_netbsd_form_h=yes
13002 echo "$as_me: failed program was:" >&5
13003 cat conftest.$ac_ext >&5
13004 cf_cv_netbsd_form_h=no
13006 rm -f conftest.$ac_objext conftest.$ac_ext
13009 echo "$as_me:13009: result: $cf_cv_netbsd_form_h" >&5
13010 echo "${ECHO_T}$cf_cv_netbsd_form_h" >&6
13012 test "$cf_cv_netbsd_form_h" = yes &&
13013 cat >>confdefs.h <<\EOF
13014 #define HAVE_NETBSD_FORM_H 1
13017 echo "$as_me:13017: checking for NetBSD menu.h" >&5
13018 echo $ECHO_N "checking for NetBSD menu.h... $ECHO_C" >&6
13019 if test "${cf_cv_netbsd_menu_h+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13023 cat >conftest.$ac_ext <<_ACEOF
13024 #line 13024 "configure"
13025 #include "confdefs.h"
13027 #include <${cf_cv_ncurses_header:-curses.h}>
13035 int y = menu->max_item_width;
13041 rm -f conftest.$ac_objext
13042 if { (eval echo "$as_me:13042: \"$ac_compile\"") >&5
13043 (eval $ac_compile) 2>&5
13045 echo "$as_me:13045: \$? = $ac_status" >&5
13046 (exit $ac_status); } &&
13047 { ac_try='test -s conftest.$ac_objext'
13048 { (eval echo "$as_me:13048: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13051 echo "$as_me:13051: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 cf_cv_netbsd_menu_h=yes
13056 echo "$as_me: failed program was:" >&5
13057 cat conftest.$ac_ext >&5
13058 cf_cv_netbsd_menu_h=no
13060 rm -f conftest.$ac_objext conftest.$ac_ext
13063 echo "$as_me:13063: result: $cf_cv_netbsd_menu_h" >&5
13064 echo "${ECHO_T}$cf_cv_netbsd_menu_h" >&6
13066 test "$cf_cv_netbsd_menu_h" = yes &&
13067 cat >>confdefs.h <<\EOF
13068 #define HAVE_NETBSD_MENU_H 1
13074 case $cf_cv_screen in
13078 # look for curses-related libraries
13080 as_ac_Lib=`echo "ac_cv_lib_panel$cf_cv_libtype''_new_panel" | $as_tr_sh`
13081 echo "$as_me:13081: checking for new_panel in -lpanel$cf_cv_libtype" >&5
13082 echo $ECHO_N "checking for new_panel in -lpanel$cf_cv_libtype... $ECHO_C" >&6
13083 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 ac_check_lib_save_LIBS=$LIBS
13087 LIBS="-lpanel$cf_cv_libtype $LIBS"
13088 cat >conftest.$ac_ext <<_ACEOF
13089 #line 13089 "configure"
13090 #include "confdefs.h"
13092 /* Override any gcc2 internal prototype to avoid an error. */
13096 /* We use char because int might match the return type of a gcc2
13097 builtin and then its argument prototype would still apply. */
13107 rm -f conftest.$ac_objext conftest$ac_exeext
13108 if { (eval echo "$as_me:13108: \"$ac_link\"") >&5
13109 (eval $ac_link) 2>&5
13111 echo "$as_me:13111: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try='test -s conftest$ac_exeext'
13114 { (eval echo "$as_me:13114: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13117 echo "$as_me:13117: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 eval "$as_ac_Lib=yes"
13121 echo "$as_me: failed program was:" >&5
13122 cat conftest.$ac_ext >&5
13123 eval "$as_ac_Lib=no"
13125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13126 LIBS=$ac_check_lib_save_LIBS
13128 echo "$as_me:13128: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13129 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13130 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13132 cf_upper=`echo "have_libpanel" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13134 cf_add_libs="-lpanel$cf_cv_libtype"
13135 # Filter out duplicates - this happens with badly-designed ".pc" files...
13136 for cf_add_1lib in $LIBS
13138 for cf_add_2lib in $cf_add_libs
13140 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13146 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13148 LIBS="$cf_add_libs"
13150 cat >>confdefs.h <<EOF
13151 #define $cf_upper 1
13156 as_ac_Lib=`echo "ac_cv_lib_menu$cf_cv_libtype''_menu_driver" | $as_tr_sh`
13157 echo "$as_me:13157: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
13158 echo $ECHO_N "checking for menu_driver in -lmenu$cf_cv_libtype... $ECHO_C" >&6
13159 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 ac_check_lib_save_LIBS=$LIBS
13163 LIBS="-lmenu$cf_cv_libtype $LIBS"
13164 cat >conftest.$ac_ext <<_ACEOF
13165 #line 13165 "configure"
13166 #include "confdefs.h"
13168 /* Override any gcc2 internal prototype to avoid an error. */
13172 /* We use char because int might match the return type of a gcc2
13173 builtin and then its argument prototype would still apply. */
13174 char menu_driver ();
13183 rm -f conftest.$ac_objext conftest$ac_exeext
13184 if { (eval echo "$as_me:13184: \"$ac_link\"") >&5
13185 (eval $ac_link) 2>&5
13187 echo "$as_me:13187: \$? = $ac_status" >&5
13188 (exit $ac_status); } &&
13189 { ac_try='test -s conftest$ac_exeext'
13190 { (eval echo "$as_me:13190: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13193 echo "$as_me:13193: \$? = $ac_status" >&5
13194 (exit $ac_status); }; }; then
13195 eval "$as_ac_Lib=yes"
13197 echo "$as_me: failed program was:" >&5
13198 cat conftest.$ac_ext >&5
13199 eval "$as_ac_Lib=no"
13201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13202 LIBS=$ac_check_lib_save_LIBS
13204 echo "$as_me:13204: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13205 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13206 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13208 cf_upper=`echo "have_libmenu" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13210 cf_add_libs="-lmenu$cf_cv_libtype"
13211 # Filter out duplicates - this happens with badly-designed ".pc" files...
13212 for cf_add_1lib in $LIBS
13214 for cf_add_2lib in $cf_add_libs
13216 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13222 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13224 LIBS="$cf_add_libs"
13226 cat >>confdefs.h <<EOF
13227 #define $cf_upper 1
13232 as_ac_Lib=`echo "ac_cv_lib_form$cf_cv_libtype''_form_driver" | $as_tr_sh`
13233 echo "$as_me:13233: checking for form_driver in -lform$cf_cv_libtype" >&5
13234 echo $ECHO_N "checking for form_driver in -lform$cf_cv_libtype... $ECHO_C" >&6
13235 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13238 ac_check_lib_save_LIBS=$LIBS
13239 LIBS="-lform$cf_cv_libtype $LIBS"
13240 cat >conftest.$ac_ext <<_ACEOF
13241 #line 13241 "configure"
13242 #include "confdefs.h"
13244 /* Override any gcc2 internal prototype to avoid an error. */
13248 /* We use char because int might match the return type of a gcc2
13249 builtin and then its argument prototype would still apply. */
13250 char form_driver ();
13259 rm -f conftest.$ac_objext conftest$ac_exeext
13260 if { (eval echo "$as_me:13260: \"$ac_link\"") >&5
13261 (eval $ac_link) 2>&5
13263 echo "$as_me:13263: \$? = $ac_status" >&5
13264 (exit $ac_status); } &&
13265 { ac_try='test -s conftest$ac_exeext'
13266 { (eval echo "$as_me:13266: \"$ac_try\"") >&5
13267 (eval $ac_try) 2>&5
13269 echo "$as_me:13269: \$? = $ac_status" >&5
13270 (exit $ac_status); }; }; then
13271 eval "$as_ac_Lib=yes"
13273 echo "$as_me: failed program was:" >&5
13274 cat conftest.$ac_ext >&5
13275 eval "$as_ac_Lib=no"
13277 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13278 LIBS=$ac_check_lib_save_LIBS
13280 echo "$as_me:13280: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13281 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13282 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13284 cf_upper=`echo "have_libform" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13286 cf_add_libs="-lform$cf_cv_libtype"
13287 # Filter out duplicates - this happens with badly-designed ".pc" files...
13288 for cf_add_1lib in $LIBS
13290 for cf_add_2lib in $cf_add_libs
13292 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13298 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13300 LIBS="$cf_add_libs"
13302 cat >>confdefs.h <<EOF
13303 #define $cf_upper 1
13308 # look for curses-related headers
13319 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13320 echo "$as_me:13320: checking for $ac_header" >&5
13321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 cat >conftest.$ac_ext <<_ACEOF
13326 #line 13326 "configure"
13327 #include "confdefs.h"
13328 #include <$ac_header>
13330 if { (eval echo "$as_me:13330: \"$ac_cpp conftest.$ac_ext\"") >&5
13331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13333 egrep -v '^ *\+' conftest.er1 >conftest.err
13335 cat conftest.err >&5
13336 echo "$as_me:13336: \$? = $ac_status" >&5
13337 (exit $ac_status); } >/dev/null; then
13338 if test -s conftest.err; then
13339 ac_cpp_err=$ac_c_preproc_warn_flag
13346 if test -z "$ac_cpp_err"; then
13347 eval "$as_ac_Header=yes"
13349 echo "$as_me: failed program was:" >&5
13350 cat conftest.$ac_ext >&5
13351 eval "$as_ac_Header=no"
13353 rm -f conftest.err conftest.$ac_ext
13355 echo "$as_me:13355: result: `eval echo '${'$as_ac_Header'}'`" >&5
13356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13358 cat >>confdefs.h <<EOF
13359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13368 echo "$as_me:13368: checking for ANSI C header files" >&5
13369 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13370 if test "${ac_cv_header_stdc+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13373 cat >conftest.$ac_ext <<_ACEOF
13374 #line 13374 "configure"
13375 #include "confdefs.h"
13376 #include <stdlib.h>
13377 #include <stdarg.h>
13378 #include <string.h>
13382 if { (eval echo "$as_me:13382: \"$ac_cpp conftest.$ac_ext\"") >&5
13383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13385 egrep -v '^ *\+' conftest.er1 >conftest.err
13387 cat conftest.err >&5
13388 echo "$as_me:13388: \$? = $ac_status" >&5
13389 (exit $ac_status); } >/dev/null; then
13390 if test -s conftest.err; then
13391 ac_cpp_err=$ac_c_preproc_warn_flag
13398 if test -z "$ac_cpp_err"; then
13399 ac_cv_header_stdc=yes
13401 echo "$as_me: failed program was:" >&5
13402 cat conftest.$ac_ext >&5
13403 ac_cv_header_stdc=no
13405 rm -f conftest.err conftest.$ac_ext
13407 if test $ac_cv_header_stdc = yes; then
13408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13409 cat >conftest.$ac_ext <<_ACEOF
13410 #line 13410 "configure"
13411 #include "confdefs.h"
13412 #include <string.h>
13415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13416 egrep "memchr" >/dev/null 2>&1; then
13419 ac_cv_header_stdc=no
13425 if test $ac_cv_header_stdc = yes; then
13426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13427 cat >conftest.$ac_ext <<_ACEOF
13428 #line 13428 "configure"
13429 #include "confdefs.h"
13430 #include <stdlib.h>
13433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13434 egrep "free" >/dev/null 2>&1; then
13437 ac_cv_header_stdc=no
13443 if test $ac_cv_header_stdc = yes; then
13444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13445 if test "$cross_compiling" = yes; then
13448 cat >conftest.$ac_ext <<_ACEOF
13449 #line 13449 "configure"
13450 #include "confdefs.h"
13452 #if ((' ' & 0x0FF) == 0x020)
13453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13456 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13457 || ('j' <= (c) && (c) <= 'r') \
13458 || ('s' <= (c) && (c) <= 'z'))
13459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13467 for (i = 0; i < 256; i++)
13468 if (XOR (islower (i), ISLOWER (i))
13469 || toupper (i) != TOUPPER (i))
13470 $ac_main_return(2);
13471 $ac_main_return (0);
13474 rm -f conftest$ac_exeext
13475 if { (eval echo "$as_me:13475: \"$ac_link\"") >&5
13476 (eval $ac_link) 2>&5
13478 echo "$as_me:13478: \$? = $ac_status" >&5
13479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13480 { (eval echo "$as_me:13480: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13483 echo "$as_me:13483: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13487 echo "$as_me: program exited with status $ac_status" >&5
13488 echo "$as_me: failed program was:" >&5
13489 cat conftest.$ac_ext >&5
13490 ac_cv_header_stdc=no
13492 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13496 echo "$as_me:13496: result: $ac_cv_header_stdc" >&5
13497 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13498 if test $ac_cv_header_stdc = yes; then
13500 cat >>confdefs.h <<\EOF
13501 #define STDC_HEADERS 1
13506 echo "$as_me:13506: checking whether time.h and sys/time.h may both be included" >&5
13507 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13508 if test "${ac_cv_header_time+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 cat >conftest.$ac_ext <<_ACEOF
13512 #line 13512 "configure"
13513 #include "confdefs.h"
13514 #include <sys/types.h>
13515 #include <sys/time.h>
13521 if ((struct tm *) 0)
13527 rm -f conftest.$ac_objext
13528 if { (eval echo "$as_me:13528: \"$ac_compile\"") >&5
13529 (eval $ac_compile) 2>&5
13531 echo "$as_me:13531: \$? = $ac_status" >&5
13532 (exit $ac_status); } &&
13533 { ac_try='test -s conftest.$ac_objext'
13534 { (eval echo "$as_me:13534: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13537 echo "$as_me:13537: \$? = $ac_status" >&5
13538 (exit $ac_status); }; }; then
13539 ac_cv_header_time=yes
13541 echo "$as_me: failed program was:" >&5
13542 cat conftest.$ac_ext >&5
13543 ac_cv_header_time=no
13545 rm -f conftest.$ac_objext conftest.$ac_ext
13547 echo "$as_me:13547: result: $ac_cv_header_time" >&5
13548 echo "${ECHO_T}$ac_cv_header_time" >&6
13549 if test $ac_cv_header_time = yes; then
13551 cat >>confdefs.h <<\EOF
13552 #define TIME_WITH_SYS_TIME 1
13569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13570 echo "$as_me:13570: checking for $ac_header" >&5
13571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 cat >conftest.$ac_ext <<_ACEOF
13576 #line 13576 "configure"
13577 #include "confdefs.h"
13578 #include <$ac_header>
13580 if { (eval echo "$as_me:13580: \"$ac_cpp conftest.$ac_ext\"") >&5
13581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13583 egrep -v '^ *\+' conftest.er1 >conftest.err
13585 cat conftest.err >&5
13586 echo "$as_me:13586: \$? = $ac_status" >&5
13587 (exit $ac_status); } >/dev/null; then
13588 if test -s conftest.err; then
13589 ac_cpp_err=$ac_c_preproc_warn_flag
13596 if test -z "$ac_cpp_err"; then
13597 eval "$as_ac_Header=yes"
13599 echo "$as_me: failed program was:" >&5
13600 cat conftest.$ac_ext >&5
13601 eval "$as_ac_Header=no"
13603 rm -f conftest.err conftest.$ac_ext
13605 echo "$as_me:13605: result: `eval echo '${'$as_ac_Header'}'`" >&5
13606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13608 cat >>confdefs.h <<EOF
13609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13615 for ac_header in unistd.h getopt.h
13617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13618 echo "$as_me:13618: checking for $ac_header" >&5
13619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 cat >conftest.$ac_ext <<_ACEOF
13624 #line 13624 "configure"
13625 #include "confdefs.h"
13626 #include <$ac_header>
13628 if { (eval echo "$as_me:13628: \"$ac_cpp conftest.$ac_ext\"") >&5
13629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13631 egrep -v '^ *\+' conftest.er1 >conftest.err
13633 cat conftest.err >&5
13634 echo "$as_me:13634: \$? = $ac_status" >&5
13635 (exit $ac_status); } >/dev/null; then
13636 if test -s conftest.err; then
13637 ac_cpp_err=$ac_c_preproc_warn_flag
13644 if test -z "$ac_cpp_err"; then
13645 eval "$as_ac_Header=yes"
13647 echo "$as_me: failed program was:" >&5
13648 cat conftest.$ac_ext >&5
13649 eval "$as_ac_Header=no"
13651 rm -f conftest.err conftest.$ac_ext
13653 echo "$as_me:13653: result: `eval echo '${'$as_ac_Header'}'`" >&5
13654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13656 cat >>confdefs.h <<EOF
13657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13663 echo "$as_me:13663: checking for header declaring getopt variables" >&5
13664 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
13665 if test "${cf_cv_getopt_header+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 cf_cv_getopt_header=none
13670 for cf_header in stdio.h stdlib.h unistd.h getopt.h
13672 cat >conftest.$ac_ext <<_ACEOF
13673 #line 13673 "configure"
13674 #include "confdefs.h"
13676 #include <$cf_header>
13680 int x = optind; char *y = optarg
13685 rm -f conftest.$ac_objext
13686 if { (eval echo "$as_me:13686: \"$ac_compile\"") >&5
13687 (eval $ac_compile) 2>&5
13689 echo "$as_me:13689: \$? = $ac_status" >&5
13690 (exit $ac_status); } &&
13691 { ac_try='test -s conftest.$ac_objext'
13692 { (eval echo "$as_me:13692: \"$ac_try\"") >&5
13693 (eval $ac_try) 2>&5
13695 echo "$as_me:13695: \$? = $ac_status" >&5
13696 (exit $ac_status); }; }; then
13697 cf_cv_getopt_header=$cf_header
13700 echo "$as_me: failed program was:" >&5
13701 cat conftest.$ac_ext >&5
13703 rm -f conftest.$ac_objext conftest.$ac_ext
13707 echo "$as_me:13707: result: $cf_cv_getopt_header" >&5
13708 echo "${ECHO_T}$cf_cv_getopt_header" >&6
13709 if test $cf_cv_getopt_header != none ; then
13711 cat >>confdefs.h <<\EOF
13712 #define HAVE_GETOPT_HEADER 1
13716 if test $cf_cv_getopt_header = getopt.h ; then
13718 cat >>confdefs.h <<\EOF
13719 #define NEED_GETOPT_H 1
13729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13730 echo "$as_me:13730: checking for $ac_func" >&5
13731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13732 if eval "test \"\${$as_ac_var+set}\" = set"; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 cat >conftest.$ac_ext <<_ACEOF
13736 #line 13736 "configure"
13737 #include "confdefs.h"
13738 /* System header to define __stub macros and hopefully few prototypes,
13739 which can conflict with char $ac_func (); below. */
13740 #include <assert.h>
13741 /* Override any gcc2 internal prototype to avoid an error. */
13745 /* We use char because int might match the return type of a gcc2
13746 builtin and then its argument prototype would still apply. */
13753 /* The GNU C library defines this for functions which it implements
13754 to always fail with ENOSYS. Some functions are actually named
13755 something starting with __ and the normal name is an alias. */
13756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13759 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13766 rm -f conftest.$ac_objext conftest$ac_exeext
13767 if { (eval echo "$as_me:13767: \"$ac_link\"") >&5
13768 (eval $ac_link) 2>&5
13770 echo "$as_me:13770: \$? = $ac_status" >&5
13771 (exit $ac_status); } &&
13772 { ac_try='test -s conftest$ac_exeext'
13773 { (eval echo "$as_me:13773: \"$ac_try\"") >&5
13774 (eval $ac_try) 2>&5
13776 echo "$as_me:13776: \$? = $ac_status" >&5
13777 (exit $ac_status); }; }; then
13778 eval "$as_ac_var=yes"
13780 echo "$as_me: failed program was:" >&5
13781 cat conftest.$ac_ext >&5
13782 eval "$as_ac_var=no"
13784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13786 echo "$as_me:13786: result: `eval echo '${'$as_ac_var'}'`" >&5
13787 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13788 if test `eval echo '${'$as_ac_var'}'` = yes; then
13789 cat >>confdefs.h <<EOF
13790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13796 if test "x$ac_cv_func_getopt" = xno; then
13797 { { echo "$as_me:13797: error: getopt is required for building programs" >&5
13798 echo "$as_me: error: getopt is required for building programs" >&2;}
13799 { (exit 1); exit 1; }; }
13802 if test "$cf_enable_widec" = yes; then
13815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13816 echo "$as_me:13816: checking for $ac_func" >&5
13817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13818 if eval "test \"\${$as_ac_var+set}\" = set"; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 cat >conftest.$ac_ext <<_ACEOF
13822 #line 13822 "configure"
13823 #include "confdefs.h"
13824 /* System header to define __stub macros and hopefully few prototypes,
13825 which can conflict with char $ac_func (); below. */
13826 #include <assert.h>
13827 /* Override any gcc2 internal prototype to avoid an error. */
13831 /* We use char because int might match the return type of a gcc2
13832 builtin and then its argument prototype would still apply. */
13839 /* The GNU C library defines this for functions which it implements
13840 to always fail with ENOSYS. Some functions are actually named
13841 something starting with __ and the normal name is an alias. */
13842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13845 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13852 rm -f conftest.$ac_objext conftest$ac_exeext
13853 if { (eval echo "$as_me:13853: \"$ac_link\"") >&5
13854 (eval $ac_link) 2>&5
13856 echo "$as_me:13856: \$? = $ac_status" >&5
13857 (exit $ac_status); } &&
13858 { ac_try='test -s conftest$ac_exeext'
13859 { (eval echo "$as_me:13859: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13862 echo "$as_me:13862: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13864 eval "$as_ac_var=yes"
13866 echo "$as_me: failed program was:" >&5
13867 cat conftest.$ac_ext >&5
13868 eval "$as_ac_var=no"
13870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13872 echo "$as_me:13872: result: `eval echo '${'$as_ac_var'}'`" >&5
13873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13874 if test `eval echo '${'$as_ac_var'}'` = yes; then
13875 cat >>confdefs.h <<EOF
13876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13884 echo "$as_me:13884: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
13885 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
13886 if test "${cf_cv_need_xopen_extension+set}" = set; then
13887 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 cat >conftest.$ac_ext <<_ACEOF
13891 #line 13891 "configure"
13892 #include "confdefs.h"
13894 #include <stdlib.h>
13895 #include <${cf_cv_ncurses_header:-curses.h}>
13900 #if defined(NCURSES_VERSION_PATCH)
13901 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
13905 long x = winnstr(stdscr, "", 0);
13907 getbegyx(stdscr, y1, x1)
13912 rm -f conftest.$ac_objext conftest$ac_exeext
13913 if { (eval echo "$as_me:13913: \"$ac_link\"") >&5
13914 (eval $ac_link) 2>&5
13916 echo "$as_me:13916: \$? = $ac_status" >&5
13917 (exit $ac_status); } &&
13918 { ac_try='test -s conftest$ac_exeext'
13919 { (eval echo "$as_me:13919: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13922 echo "$as_me:13922: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 cf_cv_need_xopen_extension=no
13926 echo "$as_me: failed program was:" >&5
13927 cat conftest.$ac_ext >&5
13928 cat >conftest.$ac_ext <<_ACEOF
13929 #line 13929 "configure"
13930 #include "confdefs.h"
13932 #define _XOPEN_SOURCE_EXTENDED
13933 #include <stdlib.h>
13934 #include <${cf_cv_ncurses_header:-curses.h}>
13939 #ifdef NCURSES_VERSION
13941 int check2 = curs_set((int)sizeof(check));
13943 long x = winnstr(stdscr, "", 0);
13945 getbegyx(stdscr, y1, x1)
13950 rm -f conftest.$ac_objext conftest$ac_exeext
13951 if { (eval echo "$as_me:13951: \"$ac_link\"") >&5
13952 (eval $ac_link) 2>&5
13954 echo "$as_me:13954: \$? = $ac_status" >&5
13955 (exit $ac_status); } &&
13956 { ac_try='test -s conftest$ac_exeext'
13957 { (eval echo "$as_me:13957: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13960 echo "$as_me:13960: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
13962 cf_cv_need_xopen_extension=yes
13964 echo "$as_me: failed program was:" >&5
13965 cat conftest.$ac_ext >&5
13966 cf_cv_need_xopen_extension=unknown
13968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13972 echo "$as_me:13972: result: $cf_cv_need_xopen_extension" >&5
13973 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
13974 test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
13976 echo "$as_me:13976: checking for term.h" >&5
13977 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13978 if test "${cf_cv_term_header+set}" = set; then
13979 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
13983 # for <term.h> if we do not find the variant.
13985 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
13987 case ${cf_cv_ncurses_header:-curses.h} in
13989 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
13990 cf_header_list="$cf_header_item $cf_header_list"
13994 for cf_header in $cf_header_list
13996 cat >conftest.$ac_ext <<_ACEOF
13997 #line 13997 "configure"
13998 #include "confdefs.h"
14000 #include <${cf_cv_ncurses_header:-curses.h}>
14001 #include <${cf_header}>
14010 rm -f conftest.$ac_objext
14011 if { (eval echo "$as_me:14011: \"$ac_compile\"") >&5
14012 (eval $ac_compile) 2>&5
14014 echo "$as_me:14014: \$? = $ac_status" >&5
14015 (exit $ac_status); } &&
14016 { ac_try='test -s conftest.$ac_objext'
14017 { (eval echo "$as_me:14017: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14020 echo "$as_me:14020: \$? = $ac_status" >&5
14021 (exit $ac_status); }; }; then
14022 cf_cv_term_header=$cf_header
14025 echo "$as_me: failed program was:" >&5
14026 cat conftest.$ac_ext >&5
14027 cf_cv_term_header=no
14029 rm -f conftest.$ac_objext conftest.$ac_ext
14032 case $cf_cv_term_header in
14034 # If curses is ncurses, some packagers still mess it up by trying to make
14035 # us use GNU termcap. This handles the most common case.
14036 for cf_header in ncurses/term.h ncursesw/term.h
14038 cat >conftest.$ac_ext <<_ACEOF
14039 #line 14039 "configure"
14040 #include "confdefs.h"
14042 #include <${cf_cv_ncurses_header:-curses.h}>
14043 #ifdef NCURSES_VERSION
14044 #include <${cf_header}>
14056 rm -f conftest.$ac_objext
14057 if { (eval echo "$as_me:14057: \"$ac_compile\"") >&5
14058 (eval $ac_compile) 2>&5
14060 echo "$as_me:14060: \$? = $ac_status" >&5
14061 (exit $ac_status); } &&
14062 { ac_try='test -s conftest.$ac_objext'
14063 { (eval echo "$as_me:14063: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14066 echo "$as_me:14066: \$? = $ac_status" >&5
14067 (exit $ac_status); }; }; then
14068 cf_cv_term_header=$cf_header
14071 echo "$as_me: failed program was:" >&5
14072 cat conftest.$ac_ext >&5
14073 cf_cv_term_header=no
14075 rm -f conftest.$ac_objext conftest.$ac_ext
14081 echo "$as_me:14081: result: $cf_cv_term_header" >&5
14082 echo "${ECHO_T}$cf_cv_term_header" >&6
14084 case $cf_cv_term_header in
14087 cat >>confdefs.h <<\EOF
14088 #define HAVE_TERM_H 1
14094 cat >>confdefs.h <<\EOF
14095 #define HAVE_NCURSES_TERM_H 1
14101 cat >>confdefs.h <<\EOF
14102 #define HAVE_NCURSESW_TERM_H 1
14108 echo "$as_me:14108: checking for unctrl.h" >&5
14109 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
14110 if test "${cf_cv_unctrl_header+set}" = set; then
14111 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
14115 # for <unctrl.h> if we do not find the variant.
14117 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
14119 case ${cf_cv_ncurses_header:-curses.h} in
14121 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
14122 cf_header_list="$cf_header_item $cf_header_list"
14126 for cf_header in $cf_header_list
14128 cat >conftest.$ac_ext <<_ACEOF
14129 #line 14129 "configure"
14130 #include "confdefs.h"
14132 #include <${cf_cv_ncurses_header:-curses.h}>
14133 #include <${cf_header}>
14142 rm -f conftest.$ac_objext
14143 if { (eval echo "$as_me:14143: \"$ac_compile\"") >&5
14144 (eval $ac_compile) 2>&5
14146 echo "$as_me:14146: \$? = $ac_status" >&5
14147 (exit $ac_status); } &&
14148 { ac_try='test -s conftest.$ac_objext'
14149 { (eval echo "$as_me:14149: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14152 echo "$as_me:14152: \$? = $ac_status" >&5
14153 (exit $ac_status); }; }; then
14154 cf_cv_unctrl_header=$cf_header
14157 echo "$as_me: failed program was:" >&5
14158 cat conftest.$ac_ext >&5
14159 cf_cv_unctrl_header=no
14161 rm -f conftest.$ac_objext conftest.$ac_ext
14165 echo "$as_me:14165: result: $cf_cv_unctrl_header" >&5
14166 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
14168 case $cf_cv_unctrl_header in
14170 { echo "$as_me:14170: WARNING: unctrl.h header not found" >&5
14171 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
14175 case $cf_cv_unctrl_header in
14178 cat >>confdefs.h <<\EOF
14179 #define HAVE_UNCTRL_H 1
14185 cat >>confdefs.h <<\EOF
14186 #define HAVE_NCURSES_UNCTRL_H 1
14190 (ncursesw/unctrl.h)
14192 cat >>confdefs.h <<\EOF
14193 #define HAVE_NCURSESW_UNCTRL_H 1
14200 assume_default_colors \
14226 use_default_colors \
14228 use_extended_names \
14242 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14244 echo "$as_me:14244: checking for ${cf_func}" >&5
14245 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
14247 echo "${as_me:-configure}:14247: testing ${cf_func} ..." 1>&5
14249 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 eval cf_result='$ac_cv_func_'$cf_func
14254 if test ".$cf_result" != ".no"; then
14255 cat >conftest.$ac_ext <<_ACEOF
14256 #line 14256 "configure"
14257 #include "confdefs.h"
14259 #ifdef HAVE_XCURSES
14260 #include <xcurses.h>
14261 char * XCursesProgramName = "test";
14263 #include <${cf_cv_ncurses_header:-curses.h}>
14264 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14265 #include <ncursesw/term.h>
14266 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14267 #include <ncurses/term.h>
14268 #elif defined(HAVE_TERM_H)
14278 long foo = (long)(&${cf_func});
14279 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
14280 if (foo + 1234 > 5678)
14281 ${cf_cv_main_return:-return}(foo);
14288 rm -f conftest.$ac_objext conftest$ac_exeext
14289 if { (eval echo "$as_me:14289: \"$ac_link\"") >&5
14290 (eval $ac_link) 2>&5
14292 echo "$as_me:14292: \$? = $ac_status" >&5
14293 (exit $ac_status); } &&
14294 { ac_try='test -s conftest$ac_exeext'
14295 { (eval echo "$as_me:14295: \"$ac_try\"") >&5
14296 (eval $ac_try) 2>&5
14298 echo "$as_me:14298: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
14302 echo "$as_me: failed program was:" >&5
14303 cat conftest.$ac_ext >&5
14306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14308 eval 'cf_cv_func_'$cf_func'=$cf_result'
14312 # use the computed/retrieved cache-value:
14313 eval 'cf_result=$cf_cv_func_'$cf_func
14314 echo "$as_me:14314: result: $cf_result" >&5
14315 echo "${ECHO_T}$cf_result" >&6
14316 if test $cf_result != no; then
14317 cat >>confdefs.h <<EOF
14318 #define HAVE_${cf_tr_func} 1
14324 for cf_func in tputs
14327 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14329 echo "$as_me:14329: checking for ${cf_func}" >&5
14330 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
14332 echo "${as_me:-configure}:14332: testing ${cf_func} ..." 1>&5
14334 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 eval cf_result='$ac_cv_func_'$cf_func
14339 if test ".$cf_result" != ".no"; then
14340 cat >conftest.$ac_ext <<_ACEOF
14341 #line 14341 "configure"
14342 #include "confdefs.h"
14344 #ifdef HAVE_XCURSES
14345 #include <xcurses.h>
14346 char * XCursesProgramName = "test";
14348 #include <${cf_cv_ncurses_header:-curses.h}>
14349 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14350 #include <ncursesw/term.h>
14351 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14352 #include <ncurses/term.h>
14353 #elif defined(HAVE_TERM_H)
14363 long foo = (long)(&${cf_func});
14364 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
14365 if (foo + 1234 > 5678)
14366 ${cf_cv_main_return:-return}(foo);
14373 rm -f conftest.$ac_objext conftest$ac_exeext
14374 if { (eval echo "$as_me:14374: \"$ac_link\"") >&5
14375 (eval $ac_link) 2>&5
14377 echo "$as_me:14377: \$? = $ac_status" >&5
14378 (exit $ac_status); } &&
14379 { ac_try='test -s conftest$ac_exeext'
14380 { (eval echo "$as_me:14380: \"$ac_try\"") >&5
14381 (eval $ac_try) 2>&5
14383 echo "$as_me:14383: \$? = $ac_status" >&5
14384 (exit $ac_status); }; }; then
14387 echo "$as_me: failed program was:" >&5
14388 cat conftest.$ac_ext >&5
14391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14393 eval 'cf_cv_func_'$cf_func'=$cf_result'
14397 # use the computed/retrieved cache-value:
14398 eval 'cf_result=$cf_cv_func_'$cf_func
14399 echo "$as_me:14399: result: $cf_result" >&5
14400 echo "${ECHO_T}$cf_result" >&6
14401 if test $cf_result != no; then
14402 cat >>confdefs.h <<EOF
14403 #define HAVE_${cf_tr_func} 1
14409 if test x$cf_cv_func_tputs = xyes
14412 for cf_arg in int char
14414 for cf_ret in int void
14416 if test $cf_ret = void
14418 cf_return="/* nothing */"
14420 cf_return="return value"
14422 cat >conftest.$ac_ext <<_ACEOF
14423 #line 14423 "configure"
14424 #include "confdefs.h"
14426 #include <${cf_cv_ncurses_header:-curses.h}>
14427 #include <$cf_cv_term_header>
14429 static $cf_ret outc($cf_arg value) { $cf_return; }
14435 tputs("hello", 0, outc);
14436 ${cf_cv_main_return:-return}(0);
14442 rm -f conftest.$ac_objext
14443 if { (eval echo "$as_me:14443: \"$ac_compile\"") >&5
14444 (eval $ac_compile) 2>&5
14446 echo "$as_me:14446: \$? = $ac_status" >&5
14447 (exit $ac_status); } &&
14448 { ac_try='test -s conftest.$ac_objext'
14449 { (eval echo "$as_me:14449: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14452 echo "$as_me:14452: \$? = $ac_status" >&5
14453 (exit $ac_status); }; }; then
14455 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
14457 echo "${as_me:-configure}:14457: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
14459 cat >>confdefs.h <<EOF
14460 #define TPUTS_ARG $cf_arg
14461 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
14462 #define TPUTS_RETURN(value) $cf_return
14468 echo "$as_me: failed program was:" >&5
14469 cat conftest.$ac_ext >&5
14471 rm -f conftest.$ac_objext conftest.$ac_ext
14473 test $cf_done = yes && break
14477 echo "$as_me:14477: checking for ncurses extended functions" >&5
14478 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
14479 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 cat >conftest.$ac_ext <<_ACEOF
14484 #line 14484 "configure"
14485 #include "confdefs.h"
14487 #include <${cf_cv_ncurses_header:-curses.h}>
14492 int x = NCURSES_EXT_FUNCS
14498 rm -f conftest.$ac_objext
14499 if { (eval echo "$as_me:14499: \"$ac_compile\"") >&5
14500 (eval $ac_compile) 2>&5
14502 echo "$as_me:14502: \$? = $ac_status" >&5
14503 (exit $ac_status); } &&
14504 { ac_try='test -s conftest.$ac_objext'
14505 { (eval echo "$as_me:14505: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14508 echo "$as_me:14508: \$? = $ac_status" >&5
14509 (exit $ac_status); }; }; then
14510 cf_cv_ncurses_ext_funcs=defined
14512 echo "$as_me: failed program was:" >&5
14513 cat conftest.$ac_ext >&5
14515 cat >conftest.$ac_ext <<_ACEOF
14516 #line 14516 "configure"
14517 #include "confdefs.h"
14519 #include <${cf_cv_ncurses_header:-curses.h}>
14524 (void) assume_default_colors (0, 0);
14525 (void) curses_version ();
14526 (void) define_key (0, 0);
14527 (void) is_term_resized (0, 0);
14528 (void) key_defined (0);
14529 (void) keybound (0, 0);
14530 (void) keyok (0, 0);
14531 (void) resize_term (0, 0);
14532 (void) resizeterm (0, 0);
14533 (void) use_default_colors ();
14534 (void) use_extended_names (0);
14535 (void) wresize (0, 0, 0);
14540 rm -f conftest.$ac_objext conftest$ac_exeext
14541 if { (eval echo "$as_me:14541: \"$ac_link\"") >&5
14542 (eval $ac_link) 2>&5
14544 echo "$as_me:14544: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
14546 { ac_try='test -s conftest$ac_exeext'
14547 { (eval echo "$as_me:14547: \"$ac_try\"") >&5
14548 (eval $ac_try) 2>&5
14550 echo "$as_me:14550: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }; then
14552 cf_cv_ncurses_ext_funcs=yes
14554 echo "$as_me: failed program was:" >&5
14555 cat conftest.$ac_ext >&5
14556 cf_cv_ncurses_ext_funcs=no
14558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14561 rm -f conftest.$ac_objext conftest.$ac_ext
14564 echo "$as_me:14564: result: $cf_cv_ncurses_ext_funcs" >&5
14565 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
14566 test "$cf_cv_ncurses_ext_funcs" = yes &&
14567 cat >>confdefs.h <<\EOF
14568 #define NCURSES_EXT_FUNCS 1
14571 if test "$cf_enable_widec" = yes
14573 # workaround for systems with ncurses before 20111029, due to change of
14574 # feature test macro from _XPG5 to _XOPEN_SOURCE
14575 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
14578 echo "$as_me:14578: checking if _XPG5 should be defined to enable wide-characters" >&5
14579 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
14581 cat >conftest.$ac_ext <<_ACEOF
14582 #line 14582 "configure"
14583 #include "confdefs.h"
14585 #include <${cf_cv_ncurses_header:-curses.h}>
14594 rm -f conftest.$ac_objext
14595 if { (eval echo "$as_me:14595: \"$ac_compile\"") >&5
14596 (eval $ac_compile) 2>&5
14598 echo "$as_me:14598: \$? = $ac_status" >&5
14599 (exit $ac_status); } &&
14600 { ac_try='test -s conftest.$ac_objext'
14601 { (eval echo "$as_me:14601: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14604 echo "$as_me:14604: \$? = $ac_status" >&5
14605 (exit $ac_status); }; }; then
14608 echo "$as_me: failed program was:" >&5
14609 cat conftest.$ac_ext >&5
14610 cf_save_cppflags="$CPPFLAGS"
14611 CPPFLAGS="$CPPFLAGS -D_XPG5"
14612 cat >conftest.$ac_ext <<_ACEOF
14613 #line 14613 "configure"
14614 #include "confdefs.h"
14616 #include <${cf_cv_ncurses_header:-curses.h}>
14625 rm -f conftest.$ac_objext
14626 if { (eval echo "$as_me:14626: \"$ac_compile\"") >&5
14627 (eval $ac_compile) 2>&5
14629 echo "$as_me:14629: \$? = $ac_status" >&5
14630 (exit $ac_status); } &&
14631 { ac_try='test -s conftest.$ac_objext'
14632 { (eval echo "$as_me:14632: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14635 echo "$as_me:14635: \$? = $ac_status" >&5
14636 (exit $ac_status); }; }; then
14639 echo "$as_me: failed program was:" >&5
14640 cat conftest.$ac_ext >&5
14642 rm -f conftest.$ac_objext conftest.$ac_ext
14643 CPPFLAGS="$cf_save_cppflags"
14645 rm -f conftest.$ac_objext conftest.$ac_ext
14646 echo "$as_me:14646: result: $cf_define_xpg5" >&5
14647 echo "${ECHO_T}$cf_define_xpg5" >&6
14649 if test "$cf_define_xpg5" = yes
14651 CPPFLAGS="$CPPFLAGS -D_XPG5"
14655 echo "$as_me:14655: checking for wide-character functions" >&5
14656 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
14657 if test "${cf_cv_widechar_funcs+set}" = set; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
14661 cat >conftest.$ac_ext <<_ACEOF
14662 #line 14662 "configure"
14663 #include "confdefs.h"
14665 #include <${cf_cv_ncurses_header:-curses.h}>
14670 static wchar_t src_wchar[2];
14671 static cchar_t dst_cchar;
14672 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
14678 rm -f conftest.$ac_objext conftest$ac_exeext
14679 if { (eval echo "$as_me:14679: \"$ac_link\"") >&5
14680 (eval $ac_link) 2>&5
14682 echo "$as_me:14682: \$? = $ac_status" >&5
14683 (exit $ac_status); } &&
14684 { ac_try='test -s conftest$ac_exeext'
14685 { (eval echo "$as_me:14685: \"$ac_try\"") >&5
14686 (eval $ac_try) 2>&5
14688 echo "$as_me:14688: \$? = $ac_status" >&5
14689 (exit $ac_status); }; }; then
14690 cf_cv_widechar_funcs=yes
14692 echo "$as_me: failed program was:" >&5
14693 cat conftest.$ac_ext >&5
14694 cf_cv_widechar_funcs=no
14696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14699 echo "$as_me:14699: result: $cf_cv_widechar_funcs" >&5
14700 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
14701 if test "$cf_cv_widechar_funcs" != no ; then
14703 cat >>confdefs.h <<\EOF
14704 #define USE_WIDEC_SUPPORT 1
14708 cat >>confdefs.h <<\EOF
14709 #define USE_WIDEC_SUPPORT 0
14714 cat >>confdefs.h <<\EOF
14715 #define USE_WIDEC_SUPPORT 0
14720 echo "$as_me:14720: checking if sys/time.h works with sys/select.h" >&5
14721 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
14722 if test "${cf_cv_sys_time_select+set}" = set; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 cat >conftest.$ac_ext <<_ACEOF
14727 #line 14727 "configure"
14728 #include "confdefs.h"
14730 #include <sys/types.h>
14731 #ifdef HAVE_SYS_TIME_H
14732 #include <sys/time.h>
14734 #ifdef HAVE_SYS_SELECT_H
14735 #include <sys/select.h>
14746 rm -f conftest.$ac_objext
14747 if { (eval echo "$as_me:14747: \"$ac_compile\"") >&5
14748 (eval $ac_compile) 2>&5
14750 echo "$as_me:14750: \$? = $ac_status" >&5
14751 (exit $ac_status); } &&
14752 { ac_try='test -s conftest.$ac_objext'
14753 { (eval echo "$as_me:14753: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 echo "$as_me:14756: \$? = $ac_status" >&5
14757 (exit $ac_status); }; }; then
14758 cf_cv_sys_time_select=yes
14760 echo "$as_me: failed program was:" >&5
14761 cat conftest.$ac_ext >&5
14762 cf_cv_sys_time_select=no
14764 rm -f conftest.$ac_objext conftest.$ac_ext
14768 echo "$as_me:14768: result: $cf_cv_sys_time_select" >&5
14769 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
14770 test "$cf_cv_sys_time_select" = yes &&
14771 cat >>confdefs.h <<\EOF
14772 #define HAVE_SYS_TIME_SELECT 1
14775 echo "$as_me:14775: checking for function curses_version" >&5
14776 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
14777 if test "${cf_cv_func_curses_version+set}" = set; then
14778 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 if test "$cross_compiling" = yes; then
14782 cf_cv_func_curses_version=unknown
14784 cat >conftest.$ac_ext <<_ACEOF
14785 #line 14785 "configure"
14786 #include "confdefs.h"
14788 #include <${cf_cv_ncurses_header:-curses.h}>
14792 sprintf(temp, "%s\n", curses_version());
14793 ${cf_cv_main_return:-return}(0);
14797 rm -f conftest$ac_exeext
14798 if { (eval echo "$as_me:14798: \"$ac_link\"") >&5
14799 (eval $ac_link) 2>&5
14801 echo "$as_me:14801: \$? = $ac_status" >&5
14802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14803 { (eval echo "$as_me:14803: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14806 echo "$as_me:14806: \$? = $ac_status" >&5
14807 (exit $ac_status); }; }; then
14808 cf_cv_func_curses_version=yes
14811 echo "$as_me: program exited with status $ac_status" >&5
14812 echo "$as_me: failed program was:" >&5
14813 cat conftest.$ac_ext >&5
14814 cf_cv_func_curses_version=no
14817 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14821 echo "$as_me:14821: result: $cf_cv_func_curses_version" >&5
14822 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
14823 test "$cf_cv_func_curses_version" = yes &&
14824 cat >>confdefs.h <<\EOF
14825 #define HAVE_CURSES_VERSION 1
14828 echo "$as_me:14828: checking for alternate character set array" >&5
14829 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
14830 if test "${cf_cv_curses_acs_map+set}" = set; then
14831 echo $ECHO_N "(cached) $ECHO_C" >&6
14834 cf_cv_curses_acs_map=unknown
14835 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
14837 cat >conftest.$ac_ext <<_ACEOF
14838 #line 14838 "configure"
14839 #include "confdefs.h"
14841 #include <${cf_cv_ncurses_header:-curses.h}>
14847 $name['k'] = ACS_PLUS
14853 rm -f conftest.$ac_objext conftest$ac_exeext
14854 if { (eval echo "$as_me:14854: \"$ac_link\"") >&5
14855 (eval $ac_link) 2>&5
14857 echo "$as_me:14857: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
14859 { ac_try='test -s conftest$ac_exeext'
14860 { (eval echo "$as_me:14860: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14863 echo "$as_me:14863: \$? = $ac_status" >&5
14864 (exit $ac_status); }; }; then
14865 cf_cv_curses_acs_map=$name; break
14867 echo "$as_me: failed program was:" >&5
14868 cat conftest.$ac_ext >&5
14870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14874 echo "$as_me:14874: result: $cf_cv_curses_acs_map" >&5
14875 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
14877 test "$cf_cv_curses_acs_map" != unknown &&
14878 cat >>confdefs.h <<EOF
14879 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
14882 if test "$cf_enable_widec" = yes; then
14884 echo "$as_me:14884: checking for wide alternate character set array" >&5
14885 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
14886 if test "${cf_cv_curses_wacs_map+set}" = set; then
14887 echo $ECHO_N "(cached) $ECHO_C" >&6
14890 cf_cv_curses_wacs_map=unknown
14891 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
14893 cat >conftest.$ac_ext <<_ACEOF
14894 #line 14894 "configure"
14895 #include "confdefs.h"
14897 #ifndef _XOPEN_SOURCE_EXTENDED
14898 #define _XOPEN_SOURCE_EXTENDED
14900 #include <${cf_cv_ncurses_header:-curses.h}>
14904 void *foo = &($name['k'])
14909 rm -f conftest.$ac_objext conftest$ac_exeext
14910 if { (eval echo "$as_me:14910: \"$ac_link\"") >&5
14911 (eval $ac_link) 2>&5
14913 echo "$as_me:14913: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
14915 { ac_try='test -s conftest$ac_exeext'
14916 { (eval echo "$as_me:14916: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14919 echo "$as_me:14919: \$? = $ac_status" >&5
14920 (exit $ac_status); }; }; then
14921 cf_cv_curses_wacs_map=$name
14924 echo "$as_me: failed program was:" >&5
14925 cat conftest.$ac_ext >&5
14927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14930 echo "$as_me:14930: result: $cf_cv_curses_wacs_map" >&5
14931 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
14933 test "$cf_cv_curses_wacs_map" != unknown &&
14934 cat >>confdefs.h <<EOF
14935 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
14938 echo "$as_me:14938: checking for wide alternate character constants" >&5
14939 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
14940 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 cf_cv_curses_wacs_symbols=no
14945 if test "$cf_cv_curses_wacs_map" != unknown
14947 cat >conftest.$ac_ext <<_ACEOF
14948 #line 14948 "configure"
14949 #include "confdefs.h"
14951 #ifndef _XOPEN_SOURCE_EXTENDED
14952 #define _XOPEN_SOURCE_EXTENDED
14954 #include <${cf_cv_ncurses_header:-curses.h}>
14958 cchar_t *foo = WACS_PLUS;
14959 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
14964 rm -f conftest.$ac_objext conftest$ac_exeext
14965 if { (eval echo "$as_me:14965: \"$ac_link\"") >&5
14966 (eval $ac_link) 2>&5
14968 echo "$as_me:14968: \$? = $ac_status" >&5
14969 (exit $ac_status); } &&
14970 { ac_try='test -s conftest$ac_exeext'
14971 { (eval echo "$as_me:14971: \"$ac_try\"") >&5
14972 (eval $ac_try) 2>&5
14974 echo "$as_me:14974: \$? = $ac_status" >&5
14975 (exit $ac_status); }; }; then
14976 cf_cv_curses_wacs_symbols=yes
14978 echo "$as_me: failed program was:" >&5
14979 cat conftest.$ac_ext >&5
14981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14983 cat >conftest.$ac_ext <<_ACEOF
14984 #line 14984 "configure"
14985 #include "confdefs.h"
14987 #ifndef _XOPEN_SOURCE_EXTENDED
14988 #define _XOPEN_SOURCE_EXTENDED
14990 #include <${cf_cv_ncurses_header:-curses.h}>
14994 cchar_t *foo = WACS_PLUS
14999 rm -f conftest.$ac_objext conftest$ac_exeext
15000 if { (eval echo "$as_me:15000: \"$ac_link\"") >&5
15001 (eval $ac_link) 2>&5
15003 echo "$as_me:15003: \$? = $ac_status" >&5
15004 (exit $ac_status); } &&
15005 { ac_try='test -s conftest$ac_exeext'
15006 { (eval echo "$as_me:15006: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15009 echo "$as_me:15009: \$? = $ac_status" >&5
15010 (exit $ac_status); }; }; then
15011 cf_cv_curses_wacs_symbols=yes
15013 echo "$as_me: failed program was:" >&5
15014 cat conftest.$ac_ext >&5
15016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15020 echo "$as_me:15020: result: $cf_cv_curses_wacs_symbols" >&5
15021 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
15023 test "$cf_cv_curses_wacs_symbols" != no &&
15024 cat >>confdefs.h <<\EOF
15025 #define CURSES_WACS_SYMBOLS 1
15030 echo "$as_me:15030: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15031 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15032 cat >conftest.$ac_ext <<_ACEOF
15033 #line 15033 "configure"
15034 #include "confdefs.h"
15036 #ifndef _XOPEN_SOURCE_EXTENDED
15037 #define _XOPEN_SOURCE_EXTENDED
15039 #include <${cf_cv_ncurses_header:-curses.h}>
15050 rm -f conftest.$ac_objext
15051 if { (eval echo "$as_me:15051: \"$ac_compile\"") >&5
15052 (eval $ac_compile) 2>&5
15054 echo "$as_me:15054: \$? = $ac_status" >&5
15055 (exit $ac_status); } &&
15056 { ac_try='test -s conftest.$ac_objext'
15057 { (eval echo "$as_me:15057: \"$ac_try\"") >&5
15058 (eval $ac_try) 2>&5
15060 echo "$as_me:15060: \$? = $ac_status" >&5
15061 (exit $ac_status); }; }; then
15064 echo "$as_me: failed program was:" >&5
15065 cat conftest.$ac_ext >&5
15068 rm -f conftest.$ac_objext conftest.$ac_ext
15069 echo "$as_me:15069: result: $cf_result" >&5
15070 echo "${ECHO_T}$cf_result" >&6
15071 if test $cf_result = yes ; then
15073 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15075 cat >>confdefs.h <<EOF
15076 #define $cf_result 1
15081 cat >>confdefs.h <<EOF
15082 #define attr_t long
15087 if test "$cf_enable_widec" = yes; then
15089 # This is needed on Tru64 5.0 to declare mbstate_t
15090 echo "$as_me:15090: checking if we must include wchar.h to declare mbstate_t" >&5
15091 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
15092 if test "${cf_cv_mbstate_t+set}" = set; then
15093 echo $ECHO_N "(cached) $ECHO_C" >&6
15096 cat >conftest.$ac_ext <<_ACEOF
15097 #line 15097 "configure"
15098 #include "confdefs.h"
15100 #include <stdlib.h>
15101 #include <stdarg.h>
15103 #ifdef HAVE_LIBUTF8_H
15104 #include <libutf8.h>
15114 rm -f conftest.$ac_objext
15115 if { (eval echo "$as_me:15115: \"$ac_compile\"") >&5
15116 (eval $ac_compile) 2>&5
15118 echo "$as_me:15118: \$? = $ac_status" >&5
15119 (exit $ac_status); } &&
15120 { ac_try='test -s conftest.$ac_objext'
15121 { (eval echo "$as_me:15121: \"$ac_try\"") >&5
15122 (eval $ac_try) 2>&5
15124 echo "$as_me:15124: \$? = $ac_status" >&5
15125 (exit $ac_status); }; }; then
15128 echo "$as_me: failed program was:" >&5
15129 cat conftest.$ac_ext >&5
15130 cat >conftest.$ac_ext <<_ACEOF
15131 #line 15131 "configure"
15132 #include "confdefs.h"
15134 #include <stdlib.h>
15135 #include <stdarg.h>
15138 #ifdef HAVE_LIBUTF8_H
15139 #include <libutf8.h>
15149 rm -f conftest.$ac_objext
15150 if { (eval echo "$as_me:15150: \"$ac_compile\"") >&5
15151 (eval $ac_compile) 2>&5
15153 echo "$as_me:15153: \$? = $ac_status" >&5
15154 (exit $ac_status); } &&
15155 { ac_try='test -s conftest.$ac_objext'
15156 { (eval echo "$as_me:15156: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15159 echo "$as_me:15159: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
15161 cf_cv_mbstate_t=yes
15163 echo "$as_me: failed program was:" >&5
15164 cat conftest.$ac_ext >&5
15165 cf_cv_mbstate_t=unknown
15167 rm -f conftest.$ac_objext conftest.$ac_ext
15169 rm -f conftest.$ac_objext conftest.$ac_ext
15171 echo "$as_me:15171: result: $cf_cv_mbstate_t" >&5
15172 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
15174 if test "$cf_cv_mbstate_t" = yes ; then
15176 cat >>confdefs.h <<\EOF
15177 #define NEED_WCHAR_H 1
15183 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
15184 if test "$cf_cv_mbstate_t" = unknown ; then
15185 NCURSES_MBSTATE_T=1
15188 # if we find mbstate_t in either place, use substitution to provide a fallback.
15189 if test "$cf_cv_mbstate_t" != unknown ; then
15190 NCURSES_OK_MBSTATE_T=1
15193 # This is needed on Tru64 5.0 to declare wchar_t
15194 echo "$as_me:15194: checking if we must include wchar.h to declare wchar_t" >&5
15195 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
15196 if test "${cf_cv_wchar_t+set}" = set; then
15197 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 cat >conftest.$ac_ext <<_ACEOF
15201 #line 15201 "configure"
15202 #include "confdefs.h"
15204 #include <stdlib.h>
15205 #include <stdarg.h>
15207 #ifdef HAVE_LIBUTF8_H
15208 #include <libutf8.h>
15218 rm -f conftest.$ac_objext
15219 if { (eval echo "$as_me:15219: \"$ac_compile\"") >&5
15220 (eval $ac_compile) 2>&5
15222 echo "$as_me:15222: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -s conftest.$ac_objext'
15225 { (eval echo "$as_me:15225: \"$ac_try\"") >&5
15226 (eval $ac_try) 2>&5
15228 echo "$as_me:15228: \$? = $ac_status" >&5
15229 (exit $ac_status); }; }; then
15232 echo "$as_me: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15234 cat >conftest.$ac_ext <<_ACEOF
15235 #line 15235 "configure"
15236 #include "confdefs.h"
15238 #include <stdlib.h>
15239 #include <stdarg.h>
15242 #ifdef HAVE_LIBUTF8_H
15243 #include <libutf8.h>
15253 rm -f conftest.$ac_objext
15254 if { (eval echo "$as_me:15254: \"$ac_compile\"") >&5
15255 (eval $ac_compile) 2>&5
15257 echo "$as_me:15257: \$? = $ac_status" >&5
15258 (exit $ac_status); } &&
15259 { ac_try='test -s conftest.$ac_objext'
15260 { (eval echo "$as_me:15260: \"$ac_try\"") >&5
15261 (eval $ac_try) 2>&5
15263 echo "$as_me:15263: \$? = $ac_status" >&5
15264 (exit $ac_status); }; }; then
15267 echo "$as_me: failed program was:" >&5
15268 cat conftest.$ac_ext >&5
15269 cf_cv_wchar_t=unknown
15271 rm -f conftest.$ac_objext conftest.$ac_ext
15273 rm -f conftest.$ac_objext conftest.$ac_ext
15275 echo "$as_me:15275: result: $cf_cv_wchar_t" >&5
15276 echo "${ECHO_T}$cf_cv_wchar_t" >&6
15278 if test "$cf_cv_wchar_t" = yes ; then
15280 cat >>confdefs.h <<\EOF
15281 #define NEED_WCHAR_H 1
15287 # if we do not find wchar_t in either place, use substitution to provide a fallback.
15288 if test "$cf_cv_wchar_t" = unknown ; then
15292 # if we find wchar_t in either place, use substitution to provide a fallback.
15293 if test "$cf_cv_wchar_t" != unknown ; then
15294 NCURSES_OK_WCHAR_T=1
15297 # This is needed on Tru64 5.0 to declare wint_t
15298 echo "$as_me:15298: checking if we must include wchar.h to declare wint_t" >&5
15299 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
15300 if test "${cf_cv_wint_t+set}" = set; then
15301 echo $ECHO_N "(cached) $ECHO_C" >&6
15304 cat >conftest.$ac_ext <<_ACEOF
15305 #line 15305 "configure"
15306 #include "confdefs.h"
15308 #include <stdlib.h>
15309 #include <stdarg.h>
15311 #ifdef HAVE_LIBUTF8_H
15312 #include <libutf8.h>
15322 rm -f conftest.$ac_objext
15323 if { (eval echo "$as_me:15323: \"$ac_compile\"") >&5
15324 (eval $ac_compile) 2>&5
15326 echo "$as_me:15326: \$? = $ac_status" >&5
15327 (exit $ac_status); } &&
15328 { ac_try='test -s conftest.$ac_objext'
15329 { (eval echo "$as_me:15329: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15332 echo "$as_me:15332: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15336 echo "$as_me: failed program was:" >&5
15337 cat conftest.$ac_ext >&5
15338 cat >conftest.$ac_ext <<_ACEOF
15339 #line 15339 "configure"
15340 #include "confdefs.h"
15342 #include <stdlib.h>
15343 #include <stdarg.h>
15346 #ifdef HAVE_LIBUTF8_H
15347 #include <libutf8.h>
15357 rm -f conftest.$ac_objext
15358 if { (eval echo "$as_me:15358: \"$ac_compile\"") >&5
15359 (eval $ac_compile) 2>&5
15361 echo "$as_me:15361: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try='test -s conftest.$ac_objext'
15364 { (eval echo "$as_me:15364: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15367 echo "$as_me:15367: \$? = $ac_status" >&5
15368 (exit $ac_status); }; }; then
15371 echo "$as_me: failed program was:" >&5
15372 cat conftest.$ac_ext >&5
15373 cf_cv_wint_t=unknown
15375 rm -f conftest.$ac_objext conftest.$ac_ext
15377 rm -f conftest.$ac_objext conftest.$ac_ext
15379 echo "$as_me:15379: result: $cf_cv_wint_t" >&5
15380 echo "${ECHO_T}$cf_cv_wint_t" >&6
15382 if test "$cf_cv_wint_t" = yes ; then
15384 cat >>confdefs.h <<\EOF
15385 #define NEED_WCHAR_H 1
15391 # if we do not find wint_t in either place, use substitution to provide a fallback.
15392 if test "$cf_cv_wint_t" = unknown ; then
15396 # if we find wint_t in either place, use substitution to provide a fallback.
15397 if test "$cf_cv_wint_t" != unknown ; then
15398 NCURSES_OK_WINT_T=1
15401 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
15403 echo "$as_me:15403: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15404 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15405 cat >conftest.$ac_ext <<_ACEOF
15406 #line 15406 "configure"
15407 #include "confdefs.h"
15409 #ifndef _XOPEN_SOURCE_EXTENDED
15410 #define _XOPEN_SOURCE_EXTENDED
15412 #include <${cf_cv_ncurses_header:-curses.h}>
15423 rm -f conftest.$ac_objext
15424 if { (eval echo "$as_me:15424: \"$ac_compile\"") >&5
15425 (eval $ac_compile) 2>&5
15427 echo "$as_me:15427: \$? = $ac_status" >&5
15428 (exit $ac_status); } &&
15429 { ac_try='test -s conftest.$ac_objext'
15430 { (eval echo "$as_me:15430: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15433 echo "$as_me:15433: \$? = $ac_status" >&5
15434 (exit $ac_status); }; }; then
15437 echo "$as_me: failed program was:" >&5
15438 cat conftest.$ac_ext >&5
15441 rm -f conftest.$ac_objext conftest.$ac_ext
15442 echo "$as_me:15442: result: $cf_result" >&5
15443 echo "${ECHO_T}$cf_result" >&6
15444 if test $cf_result = yes ; then
15446 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15448 cat >>confdefs.h <<EOF
15449 #define $cf_result 1
15454 cat >>confdefs.h <<EOF
15455 #define mbstate_t long
15462 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
15464 echo "$as_me:15464: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15465 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15466 cat >conftest.$ac_ext <<_ACEOF
15467 #line 15467 "configure"
15468 #include "confdefs.h"
15470 #ifndef _XOPEN_SOURCE_EXTENDED
15471 #define _XOPEN_SOURCE_EXTENDED
15473 #include <${cf_cv_ncurses_header:-curses.h}>
15484 rm -f conftest.$ac_objext
15485 if { (eval echo "$as_me:15485: \"$ac_compile\"") >&5
15486 (eval $ac_compile) 2>&5
15488 echo "$as_me:15488: \$? = $ac_status" >&5
15489 (exit $ac_status); } &&
15490 { ac_try='test -s conftest.$ac_objext'
15491 { (eval echo "$as_me:15491: \"$ac_try\"") >&5
15492 (eval $ac_try) 2>&5
15494 echo "$as_me:15494: \$? = $ac_status" >&5
15495 (exit $ac_status); }; }; then
15498 echo "$as_me: failed program was:" >&5
15499 cat conftest.$ac_ext >&5
15502 rm -f conftest.$ac_objext conftest.$ac_ext
15503 echo "$as_me:15503: result: $cf_result" >&5
15504 echo "${ECHO_T}$cf_result" >&6
15505 if test $cf_result = yes ; then
15507 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15509 cat >>confdefs.h <<EOF
15510 #define $cf_result 1
15515 cat >>confdefs.h <<EOF
15516 #define wchar_t long
15523 if test "$NCURSES_OK_WINT_T" = 0 ; then
15525 echo "$as_me:15525: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15526 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15527 cat >conftest.$ac_ext <<_ACEOF
15528 #line 15528 "configure"
15529 #include "confdefs.h"
15531 #ifndef _XOPEN_SOURCE_EXTENDED
15532 #define _XOPEN_SOURCE_EXTENDED
15534 #include <${cf_cv_ncurses_header:-curses.h}>
15545 rm -f conftest.$ac_objext
15546 if { (eval echo "$as_me:15546: \"$ac_compile\"") >&5
15547 (eval $ac_compile) 2>&5
15549 echo "$as_me:15549: \$? = $ac_status" >&5
15550 (exit $ac_status); } &&
15551 { ac_try='test -s conftest.$ac_objext'
15552 { (eval echo "$as_me:15552: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15555 echo "$as_me:15555: \$? = $ac_status" >&5
15556 (exit $ac_status); }; }; then
15559 echo "$as_me: failed program was:" >&5
15560 cat conftest.$ac_ext >&5
15563 rm -f conftest.$ac_objext conftest.$ac_ext
15564 echo "$as_me:15564: result: $cf_result" >&5
15565 echo "${ECHO_T}$cf_result" >&6
15566 if test $cf_result = yes ; then
15568 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15570 cat >>confdefs.h <<EOF
15571 #define $cf_result 1
15576 cat >>confdefs.h <<EOF
15577 #define wint_t long
15585 echo "$as_me:15585: checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
15586 echo $ECHO_N "checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15588 cat >conftest.$ac_ext <<_ACEOF
15589 #line 15589 "configure"
15590 #include "confdefs.h"
15592 #ifdef HAVE_XCURSES
15593 #include <xcurses.h>
15594 char * XCursesProgramName = "test";
15596 #include <${cf_cv_ncurses_header:-curses.h}>
15597 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15598 #include <ncursesw/term.h>
15599 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15600 #include <ncurses/term.h>
15601 #elif defined(HAVE_TERM_H)
15610 void *foo = &(boolnames)
15616 rm -f conftest.$ac_objext
15617 if { (eval echo "$as_me:15617: \"$ac_compile\"") >&5
15618 (eval $ac_compile) 2>&5
15620 echo "$as_me:15620: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
15622 { ac_try='test -s conftest.$ac_objext'
15623 { (eval echo "$as_me:15623: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15626 echo "$as_me:15626: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }; then
15630 echo "$as_me: failed program was:" >&5
15631 cat conftest.$ac_ext >&5
15634 rm -f conftest.$ac_objext conftest.$ac_ext
15635 echo "$as_me:15635: result: $cf_result" >&5
15636 echo "${ECHO_T}$cf_result" >&6
15638 if test $cf_result = yes ; then
15640 cf_result=`echo "have_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15642 cat >>confdefs.h <<EOF
15643 #define $cf_result 1
15647 echo "$as_me:15647: checking for data boolnames in library" >&5
15648 echo $ECHO_N "checking for data boolnames in library... $ECHO_C" >&6
15649 # BSD linkers insist on making weak linkage, but resolve at runtime.
15650 if test "$cross_compiling" = yes; then
15653 cat >conftest.$ac_ext <<_ACEOF
15654 #line 15654 "configure"
15655 #include "confdefs.h"
15657 #ifdef HAVE_XCURSES
15658 #include <xcurses.h>
15659 char * XCursesProgramName = "test";
15661 #include <${cf_cv_ncurses_header:-curses.h}>
15662 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15663 #include <ncursesw/term.h>
15664 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15665 #include <ncurses/term.h>
15666 #elif defined(HAVE_TERM_H)
15671 extern char boolnames;
15677 void *foo = &(boolnames);
15678 fprintf(stderr, "testing linkage of boolnames:%p\n", foo);
15679 ${cf_cv_main_return:-return}(foo == 0);
15686 rm -f conftest.$ac_objext conftest$ac_exeext
15687 if { (eval echo "$as_me:15687: \"$ac_link\"") >&5
15688 (eval $ac_link) 2>&5
15690 echo "$as_me:15690: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
15692 { ac_try='test -s conftest$ac_exeext'
15693 { (eval echo "$as_me:15693: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15696 echo "$as_me:15696: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15700 echo "$as_me: failed program was:" >&5
15701 cat conftest.$ac_ext >&5
15704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15707 cat >conftest.$ac_ext <<_ACEOF
15708 #line 15708 "configure"
15709 #include "confdefs.h"
15711 #ifdef HAVE_XCURSES
15712 #include <xcurses.h>
15713 char * XCursesProgramName = "test";
15715 #include <${cf_cv_ncurses_header:-curses.h}>
15716 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15717 #include <ncursesw/term.h>
15718 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15719 #include <ncurses/term.h>
15720 #elif defined(HAVE_TERM_H)
15725 extern char boolnames;
15728 void *foo = &(boolnames);
15729 fprintf(stderr, "testing linkage of boolnames:%p\n", foo);
15730 ${cf_cv_main_return:-return}(foo == 0);
15733 rm -f conftest$ac_exeext
15734 if { (eval echo "$as_me:15734: \"$ac_link\"") >&5
15735 (eval $ac_link) 2>&5
15737 echo "$as_me:15737: \$? = $ac_status" >&5
15738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15739 { (eval echo "$as_me:15739: \"$ac_try\"") >&5
15740 (eval $ac_try) 2>&5
15742 echo "$as_me:15742: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15746 echo "$as_me: program exited with status $ac_status" >&5
15747 echo "$as_me: failed program was:" >&5
15748 cat conftest.$ac_ext >&5
15751 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15753 echo "$as_me:15753: result: $cf_result" >&5
15754 echo "${ECHO_T}$cf_result" >&6
15755 if test $cf_result = yes ; then
15757 cf_result=`echo "decl_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15759 cat >>confdefs.h <<EOF
15760 #define $cf_result 1
15766 echo "$as_me:15766: checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
15767 echo $ECHO_N "checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15769 cat >conftest.$ac_ext <<_ACEOF
15770 #line 15770 "configure"
15771 #include "confdefs.h"
15773 #ifdef HAVE_XCURSES
15774 #include <xcurses.h>
15775 char * XCursesProgramName = "test";
15777 #include <${cf_cv_ncurses_header:-curses.h}>
15778 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15779 #include <ncursesw/term.h>
15780 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15781 #include <ncurses/term.h>
15782 #elif defined(HAVE_TERM_H)
15791 void *foo = &(boolfnames)
15797 rm -f conftest.$ac_objext
15798 if { (eval echo "$as_me:15798: \"$ac_compile\"") >&5
15799 (eval $ac_compile) 2>&5
15801 echo "$as_me:15801: \$? = $ac_status" >&5
15802 (exit $ac_status); } &&
15803 { ac_try='test -s conftest.$ac_objext'
15804 { (eval echo "$as_me:15804: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15807 echo "$as_me:15807: \$? = $ac_status" >&5
15808 (exit $ac_status); }; }; then
15811 echo "$as_me: failed program was:" >&5
15812 cat conftest.$ac_ext >&5
15815 rm -f conftest.$ac_objext conftest.$ac_ext
15816 echo "$as_me:15816: result: $cf_result" >&5
15817 echo "${ECHO_T}$cf_result" >&6
15819 if test $cf_result = yes ; then
15821 cf_result=`echo "have_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15823 cat >>confdefs.h <<EOF
15824 #define $cf_result 1
15828 echo "$as_me:15828: checking for data boolfnames in library" >&5
15829 echo $ECHO_N "checking for data boolfnames in library... $ECHO_C" >&6
15830 # BSD linkers insist on making weak linkage, but resolve at runtime.
15831 if test "$cross_compiling" = yes; then
15834 cat >conftest.$ac_ext <<_ACEOF
15835 #line 15835 "configure"
15836 #include "confdefs.h"
15838 #ifdef HAVE_XCURSES
15839 #include <xcurses.h>
15840 char * XCursesProgramName = "test";
15842 #include <${cf_cv_ncurses_header:-curses.h}>
15843 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15844 #include <ncursesw/term.h>
15845 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15846 #include <ncurses/term.h>
15847 #elif defined(HAVE_TERM_H)
15852 extern char boolfnames;
15858 void *foo = &(boolfnames);
15859 fprintf(stderr, "testing linkage of boolfnames:%p\n", foo);
15860 ${cf_cv_main_return:-return}(foo == 0);
15867 rm -f conftest.$ac_objext conftest$ac_exeext
15868 if { (eval echo "$as_me:15868: \"$ac_link\"") >&5
15869 (eval $ac_link) 2>&5
15871 echo "$as_me:15871: \$? = $ac_status" >&5
15872 (exit $ac_status); } &&
15873 { ac_try='test -s conftest$ac_exeext'
15874 { (eval echo "$as_me:15874: \"$ac_try\"") >&5
15875 (eval $ac_try) 2>&5
15877 echo "$as_me:15877: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
15881 echo "$as_me: failed program was:" >&5
15882 cat conftest.$ac_ext >&5
15885 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15888 cat >conftest.$ac_ext <<_ACEOF
15889 #line 15889 "configure"
15890 #include "confdefs.h"
15892 #ifdef HAVE_XCURSES
15893 #include <xcurses.h>
15894 char * XCursesProgramName = "test";
15896 #include <${cf_cv_ncurses_header:-curses.h}>
15897 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15898 #include <ncursesw/term.h>
15899 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15900 #include <ncurses/term.h>
15901 #elif defined(HAVE_TERM_H)
15906 extern char boolfnames;
15909 void *foo = &(boolfnames);
15910 fprintf(stderr, "testing linkage of boolfnames:%p\n", foo);
15911 ${cf_cv_main_return:-return}(foo == 0);
15914 rm -f conftest$ac_exeext
15915 if { (eval echo "$as_me:15915: \"$ac_link\"") >&5
15916 (eval $ac_link) 2>&5
15918 echo "$as_me:15918: \$? = $ac_status" >&5
15919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15920 { (eval echo "$as_me:15920: \"$ac_try\"") >&5
15921 (eval $ac_try) 2>&5
15923 echo "$as_me:15923: \$? = $ac_status" >&5
15924 (exit $ac_status); }; }; then
15927 echo "$as_me: program exited with status $ac_status" >&5
15928 echo "$as_me: failed program was:" >&5
15929 cat conftest.$ac_ext >&5
15932 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15934 echo "$as_me:15934: result: $cf_result" >&5
15935 echo "${ECHO_T}$cf_result" >&6
15936 if test $cf_result = yes ; then
15938 cf_result=`echo "decl_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15940 cat >>confdefs.h <<EOF
15941 #define $cf_result 1
15947 if ( test "$GCC" = yes || test "$GXX" = yes )
15949 echo "$as_me:15949: checking if you want to turn on gcc warnings" >&5
15950 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
15952 # Check whether --enable-warnings or --disable-warnings was given.
15953 if test "${enable_warnings+set}" = set; then
15954 enableval="$enable_warnings"
15955 test "$enableval" != yes && enableval=no
15956 if test "$enableval" != "no" ; then
15966 echo "$as_me:15966: result: $with_warnings" >&5
15967 echo "${ECHO_T}$with_warnings" >&6
15968 if test "$with_warnings" = "yes"
15971 if test "$GCC" = yes
15973 cat > conftest.i <<EOF
15975 #define GCC_PRINTF 0
15978 #define GCC_SCANF 0
15980 #ifndef GCC_NORETURN
15981 #define GCC_NORETURN /* nothing */
15984 #define GCC_UNUSED /* nothing */
15987 if test "$GCC" = yes
15989 { echo "$as_me:15989: checking for $CC __attribute__ directives..." >&5
15990 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
15991 cat > conftest.$ac_ext <<EOF
15992 #line 15992 "${as_me:-configure}"
15993 #include "confdefs.h"
15994 #include "conftest.h"
15995 #include "conftest.i"
15997 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
15999 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
16002 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
16004 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
16006 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
16007 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
16008 extern void foo(void) GCC_NORETURN;
16009 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
16011 cf_printf_attribute=no
16012 cf_scanf_attribute=no
16013 for cf_attribute in scanf printf unused noreturn
16016 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16018 cf_directive="__attribute__(($cf_attribute))"
16019 echo "checking for $CC $cf_directive" 1>&5
16021 case $cf_attribute in
16023 cf_printf_attribute=yes
16024 cat >conftest.h <<EOF
16025 #define GCC_$cf_ATTRIBUTE 1
16029 cf_scanf_attribute=yes
16030 cat >conftest.h <<EOF
16031 #define GCC_$cf_ATTRIBUTE 1
16035 cat >conftest.h <<EOF
16036 #define GCC_$cf_ATTRIBUTE $cf_directive
16041 if { (eval echo "$as_me:16041: \"$ac_compile\"") >&5
16042 (eval $ac_compile) 2>&5
16044 echo "$as_me:16044: \$? = $ac_status" >&5
16045 (exit $ac_status); }; then
16046 test -n "$verbose" && echo "$as_me:16046: result: ... $cf_attribute" >&5
16047 echo "${ECHO_T}... $cf_attribute" >&6
16048 cat conftest.h >>confdefs.h
16049 case $cf_attribute in
16052 cat >>confdefs.h <<EOF
16053 #define GCC_NORETURN $cf_directive
16058 cf_value='/* nothing */'
16059 if test "$cf_printf_attribute" != no ; then
16060 cf_value='__attribute__((format(printf,fmt,var)))'
16062 cat >>confdefs.h <<\EOF
16063 #define GCC_PRINTF 1
16068 cat >>confdefs.h <<EOF
16069 #define GCC_PRINTFLIKE(fmt,var) $cf_value
16074 cf_value='/* nothing */'
16075 if test "$cf_scanf_attribute" != no ; then
16076 cf_value='__attribute__((format(scanf,fmt,var)))'
16078 cat >>confdefs.h <<\EOF
16079 #define GCC_SCANF 1
16084 cat >>confdefs.h <<EOF
16085 #define GCC_SCANFLIKE(fmt,var) $cf_value
16091 cat >>confdefs.h <<EOF
16092 #define GCC_UNUSED $cf_directive
16100 fgrep define conftest.i >>confdefs.h
16107 if test "$GCC" = yes ; then
16110 echo "$as_me:16110: checking if this is really Intel C compiler" >&5
16111 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
16112 cf_save_CFLAGS="$CFLAGS"
16113 CFLAGS="$CFLAGS -no-gcc"
16114 cat >conftest.$ac_ext <<_ACEOF
16115 #line 16115 "configure"
16116 #include "confdefs.h"
16122 #ifdef __INTEL_COMPILER
16131 rm -f conftest.$ac_objext
16132 if { (eval echo "$as_me:16132: \"$ac_compile\"") >&5
16133 (eval $ac_compile) 2>&5
16135 echo "$as_me:16135: \$? = $ac_status" >&5
16136 (exit $ac_status); } &&
16137 { ac_try='test -s conftest.$ac_objext'
16138 { (eval echo "$as_me:16138: \"$ac_try\"") >&5
16139 (eval $ac_try) 2>&5
16141 echo "$as_me:16141: \$? = $ac_status" >&5
16142 (exit $ac_status); }; }; then
16144 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
16147 echo "$as_me: failed program was:" >&5
16148 cat conftest.$ac_ext >&5
16150 rm -f conftest.$ac_objext conftest.$ac_ext
16151 CFLAGS="$cf_save_CFLAGS"
16152 echo "$as_me:16152: result: $INTEL_COMPILER" >&5
16153 echo "${ECHO_T}$INTEL_COMPILER" >&6
16160 if test "$GCC" = yes ; then
16161 echo "$as_me:16161: checking if this is really Clang C compiler" >&5
16162 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
16163 cf_save_CFLAGS="$CFLAGS"
16164 CFLAGS="$CFLAGS -Qunused-arguments"
16165 cat >conftest.$ac_ext <<_ACEOF
16166 #line 16166 "configure"
16167 #include "confdefs.h"
16182 rm -f conftest.$ac_objext
16183 if { (eval echo "$as_me:16183: \"$ac_compile\"") >&5
16184 (eval $ac_compile) 2>&5
16186 echo "$as_me:16186: \$? = $ac_status" >&5
16187 (exit $ac_status); } &&
16188 { ac_try='test -s conftest.$ac_objext'
16189 { (eval echo "$as_me:16189: \"$ac_try\"") >&5
16190 (eval $ac_try) 2>&5
16192 echo "$as_me:16192: \$? = $ac_status" >&5
16193 (exit $ac_status); }; }; then
16195 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
16198 echo "$as_me: failed program was:" >&5
16199 cat conftest.$ac_ext >&5
16201 rm -f conftest.$ac_objext conftest.$ac_ext
16202 CFLAGS="$cf_save_CFLAGS"
16203 echo "$as_me:16203: result: $CLANG_COMPILER" >&5
16204 echo "${ECHO_T}$CLANG_COMPILER" >&6
16207 cat > conftest.$ac_ext <<EOF
16208 #line 16208 "${as_me:-configure}"
16209 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16212 if test "$INTEL_COMPILER" = yes
16214 # The "-wdXXX" options suppress warnings:
16215 # remark #1419: external declaration in primary source file
16216 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16217 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16218 # remark #193: zero used for undefined preprocessing identifier
16219 # remark #593: variable "curs_sb_left_arrow" was set but never used
16220 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16221 # remark #869: parameter "tw" was never referenced
16222 # remark #981: operands are evaluated in unspecified order
16223 # warning #279: controlling expression is constant
16225 { echo "$as_me:16225: checking for $CC warning options..." >&5
16226 echo "$as_me: checking for $CC warning options..." >&6;}
16227 cf_save_CFLAGS="$CFLAGS"
16228 EXTRA_CFLAGS="-Wall"
16240 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16241 if { (eval echo "$as_me:16241: \"$ac_compile\"") >&5
16242 (eval $ac_compile) 2>&5
16244 echo "$as_me:16244: \$? = $ac_status" >&5
16245 (exit $ac_status); }; then
16246 test -n "$verbose" && echo "$as_me:16246: result: ... -$cf_opt" >&5
16247 echo "${ECHO_T}... -$cf_opt" >&6
16248 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16251 CFLAGS="$cf_save_CFLAGS"
16253 elif test "$GCC" = yes
16255 { echo "$as_me:16255: checking for $CC warning options..." >&5
16256 echo "$as_me: checking for $CC warning options..." >&6;}
16257 cf_save_CFLAGS="$CFLAGS"
16260 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
16261 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
16262 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
16263 for cf_opt in W Wall \
16264 Wbad-function-cast \
16267 Wdeclaration-after-statement \
16270 Wmissing-declarations \
16271 Wmissing-prototypes \
16275 Wstrict-prototypes \
16276 Wundef $cf_gcc_warnings $cf_warn_CONST
16278 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16279 if { (eval echo "$as_me:16279: \"$ac_compile\"") >&5
16280 (eval $ac_compile) 2>&5
16282 echo "$as_me:16282: \$? = $ac_status" >&5
16283 (exit $ac_status); }; then
16284 test -n "$verbose" && echo "$as_me:16284: result: ... -$cf_opt" >&5
16285 echo "${ECHO_T}... -$cf_opt" >&6
16288 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
16291 case $GCC_VERSION in
16293 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16295 echo "${as_me:-configure}:16295: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16301 case $GCC_VERSION in
16303 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16305 echo "${as_me:-configure}:16305: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16311 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16314 CFLAGS="$cf_save_CFLAGS"
16321 echo "$as_me:16321: checking if you want to use dmalloc for testing" >&5
16322 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
16324 # Check whether --with-dmalloc or --without-dmalloc was given.
16325 if test "${with_dmalloc+set}" = set; then
16326 withval="$with_dmalloc"
16328 cat >>confdefs.h <<EOF
16329 #define USE_DMALLOC 1
16332 : ${with_cflags:=-g}
16333 : ${with_no_leaks:=yes}
16338 echo "$as_me:16338: result: ${with_dmalloc:-no}" >&5
16339 echo "${ECHO_T}${with_dmalloc:-no}" >&6
16341 case .$with_cflags in
16351 cf_new_extra_cppflags=
16353 for cf_add_cflags in -g
16355 case $cf_fix_cppflags in
16357 case $cf_add_cflags in
16358 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16359 case $cf_add_cflags in
16361 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16363 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16364 && test -z "${cf_tst_cflags}" \
16365 && cf_fix_cppflags=yes
16367 if test $cf_fix_cppflags = yes ; then
16368 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16370 elif test "${cf_tst_cflags}" = "\"'" ; then
16371 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16376 case "$CPPFLAGS" in
16380 case $cf_add_cflags in
16382 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16384 CPPFLAGS=`echo "$CPPFLAGS" | \
16385 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16386 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16390 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
16395 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
16400 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16402 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16404 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16405 && test -z "${cf_tst_cflags}" \
16406 && cf_fix_cppflags=no
16411 if test -n "$cf_new_cflags" ; then
16413 CFLAGS="$CFLAGS $cf_new_cflags"
16416 if test -n "$cf_new_cppflags" ; then
16418 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
16421 if test -n "$cf_new_extra_cppflags" ; then
16423 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16431 if test "$with_dmalloc" = yes ; then
16432 echo "$as_me:16432: checking for dmalloc.h" >&5
16433 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
16434 if test "${ac_cv_header_dmalloc_h+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 cat >conftest.$ac_ext <<_ACEOF
16438 #line 16438 "configure"
16439 #include "confdefs.h"
16440 #include <dmalloc.h>
16442 if { (eval echo "$as_me:16442: \"$ac_cpp conftest.$ac_ext\"") >&5
16443 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16445 egrep -v '^ *\+' conftest.er1 >conftest.err
16447 cat conftest.err >&5
16448 echo "$as_me:16448: \$? = $ac_status" >&5
16449 (exit $ac_status); } >/dev/null; then
16450 if test -s conftest.err; then
16451 ac_cpp_err=$ac_c_preproc_warn_flag
16458 if test -z "$ac_cpp_err"; then
16459 ac_cv_header_dmalloc_h=yes
16461 echo "$as_me: failed program was:" >&5
16462 cat conftest.$ac_ext >&5
16463 ac_cv_header_dmalloc_h=no
16465 rm -f conftest.err conftest.$ac_ext
16467 echo "$as_me:16467: result: $ac_cv_header_dmalloc_h" >&5
16468 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
16469 if test $ac_cv_header_dmalloc_h = yes; then
16471 echo "$as_me:16471: checking for dmalloc_debug in -ldmalloc" >&5
16472 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
16473 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 ac_check_lib_save_LIBS=$LIBS
16477 LIBS="-ldmalloc $LIBS"
16478 cat >conftest.$ac_ext <<_ACEOF
16479 #line 16479 "configure"
16480 #include "confdefs.h"
16482 /* Override any gcc2 internal prototype to avoid an error. */
16486 /* We use char because int might match the return type of a gcc2
16487 builtin and then its argument prototype would still apply. */
16488 char dmalloc_debug ();
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (eval echo "$as_me:16498: \"$ac_link\"") >&5
16499 (eval $ac_link) 2>&5
16501 echo "$as_me:16501: \$? = $ac_status" >&5
16502 (exit $ac_status); } &&
16503 { ac_try='test -s conftest$ac_exeext'
16504 { (eval echo "$as_me:16504: \"$ac_try\"") >&5
16505 (eval $ac_try) 2>&5
16507 echo "$as_me:16507: \$? = $ac_status" >&5
16508 (exit $ac_status); }; }; then
16509 ac_cv_lib_dmalloc_dmalloc_debug=yes
16511 echo "$as_me: failed program was:" >&5
16512 cat conftest.$ac_ext >&5
16513 ac_cv_lib_dmalloc_dmalloc_debug=no
16515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16516 LIBS=$ac_check_lib_save_LIBS
16518 echo "$as_me:16518: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
16519 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
16520 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
16521 cat >>confdefs.h <<EOF
16522 #define HAVE_LIBDMALLOC 1
16525 LIBS="-ldmalloc $LIBS"
16533 echo "$as_me:16533: checking if you want to use dbmalloc for testing" >&5
16534 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
16536 # Check whether --with-dbmalloc or --without-dbmalloc was given.
16537 if test "${with_dbmalloc+set}" = set; then
16538 withval="$with_dbmalloc"
16540 cat >>confdefs.h <<EOF
16541 #define USE_DBMALLOC 1
16544 : ${with_cflags:=-g}
16545 : ${with_no_leaks:=yes}
16550 echo "$as_me:16550: result: ${with_dbmalloc:-no}" >&5
16551 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
16553 case .$with_cflags in
16563 cf_new_extra_cppflags=
16565 for cf_add_cflags in -g
16567 case $cf_fix_cppflags in
16569 case $cf_add_cflags in
16570 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16571 case $cf_add_cflags in
16573 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16575 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16576 && test -z "${cf_tst_cflags}" \
16577 && cf_fix_cppflags=yes
16579 if test $cf_fix_cppflags = yes ; then
16580 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16582 elif test "${cf_tst_cflags}" = "\"'" ; then
16583 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16588 case "$CPPFLAGS" in
16592 case $cf_add_cflags in
16594 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16596 CPPFLAGS=`echo "$CPPFLAGS" | \
16597 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16598 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16602 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
16607 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
16612 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16614 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16616 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16617 && test -z "${cf_tst_cflags}" \
16618 && cf_fix_cppflags=no
16623 if test -n "$cf_new_cflags" ; then
16625 CFLAGS="$CFLAGS $cf_new_cflags"
16628 if test -n "$cf_new_cppflags" ; then
16630 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
16633 if test -n "$cf_new_extra_cppflags" ; then
16635 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16643 if test "$with_dbmalloc" = yes ; then
16644 echo "$as_me:16644: checking for dbmalloc.h" >&5
16645 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
16646 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 cat >conftest.$ac_ext <<_ACEOF
16650 #line 16650 "configure"
16651 #include "confdefs.h"
16652 #include <dbmalloc.h>
16654 if { (eval echo "$as_me:16654: \"$ac_cpp conftest.$ac_ext\"") >&5
16655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16657 egrep -v '^ *\+' conftest.er1 >conftest.err
16659 cat conftest.err >&5
16660 echo "$as_me:16660: \$? = $ac_status" >&5
16661 (exit $ac_status); } >/dev/null; then
16662 if test -s conftest.err; then
16663 ac_cpp_err=$ac_c_preproc_warn_flag
16670 if test -z "$ac_cpp_err"; then
16671 ac_cv_header_dbmalloc_h=yes
16673 echo "$as_me: failed program was:" >&5
16674 cat conftest.$ac_ext >&5
16675 ac_cv_header_dbmalloc_h=no
16677 rm -f conftest.err conftest.$ac_ext
16679 echo "$as_me:16679: result: $ac_cv_header_dbmalloc_h" >&5
16680 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
16681 if test $ac_cv_header_dbmalloc_h = yes; then
16683 echo "$as_me:16683: checking for debug_malloc in -ldbmalloc" >&5
16684 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
16685 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 ac_check_lib_save_LIBS=$LIBS
16689 LIBS="-ldbmalloc $LIBS"
16690 cat >conftest.$ac_ext <<_ACEOF
16691 #line 16691 "configure"
16692 #include "confdefs.h"
16694 /* Override any gcc2 internal prototype to avoid an error. */
16698 /* We use char because int might match the return type of a gcc2
16699 builtin and then its argument prototype would still apply. */
16700 char debug_malloc ();
16709 rm -f conftest.$ac_objext conftest$ac_exeext
16710 if { (eval echo "$as_me:16710: \"$ac_link\"") >&5
16711 (eval $ac_link) 2>&5
16713 echo "$as_me:16713: \$? = $ac_status" >&5
16714 (exit $ac_status); } &&
16715 { ac_try='test -s conftest$ac_exeext'
16716 { (eval echo "$as_me:16716: \"$ac_try\"") >&5
16717 (eval $ac_try) 2>&5
16719 echo "$as_me:16719: \$? = $ac_status" >&5
16720 (exit $ac_status); }; }; then
16721 ac_cv_lib_dbmalloc_debug_malloc=yes
16723 echo "$as_me: failed program was:" >&5
16724 cat conftest.$ac_ext >&5
16725 ac_cv_lib_dbmalloc_debug_malloc=no
16727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16728 LIBS=$ac_check_lib_save_LIBS
16730 echo "$as_me:16730: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
16731 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
16732 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
16733 cat >>confdefs.h <<EOF
16734 #define HAVE_LIBDBMALLOC 1
16737 LIBS="-ldbmalloc $LIBS"
16745 echo "$as_me:16745: checking if you want to use valgrind for testing" >&5
16746 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
16748 # Check whether --with-valgrind or --without-valgrind was given.
16749 if test "${with_valgrind+set}" = set; then
16750 withval="$with_valgrind"
16752 cat >>confdefs.h <<EOF
16753 #define USE_VALGRIND 1
16756 : ${with_cflags:=-g}
16757 : ${with_no_leaks:=yes}
16762 echo "$as_me:16762: result: ${with_valgrind:-no}" >&5
16763 echo "${ECHO_T}${with_valgrind:-no}" >&6
16765 case .$with_cflags in
16775 cf_new_extra_cppflags=
16777 for cf_add_cflags in -g
16779 case $cf_fix_cppflags in
16781 case $cf_add_cflags in
16782 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16783 case $cf_add_cflags in
16785 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16787 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16788 && test -z "${cf_tst_cflags}" \
16789 && cf_fix_cppflags=yes
16791 if test $cf_fix_cppflags = yes ; then
16792 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16794 elif test "${cf_tst_cflags}" = "\"'" ; then
16795 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16800 case "$CPPFLAGS" in
16804 case $cf_add_cflags in
16806 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16808 CPPFLAGS=`echo "$CPPFLAGS" | \
16809 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16810 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16814 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
16819 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
16824 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16826 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16828 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16829 && test -z "${cf_tst_cflags}" \
16830 && cf_fix_cppflags=no
16835 if test -n "$cf_new_cflags" ; then
16837 CFLAGS="$CFLAGS $cf_new_cflags"
16840 if test -n "$cf_new_cppflags" ; then
16842 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
16845 if test -n "$cf_new_extra_cppflags" ; then
16847 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16855 echo "$as_me:16855: checking if you want to perform memory-leak testing" >&5
16856 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
16858 # Check whether --enable-leaks or --disable-leaks was given.
16859 if test "${enable_leaks+set}" = set; then
16860 enableval="$enable_leaks"
16861 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
16863 : ${with_no_leaks:=no}
16865 echo "$as_me:16865: result: $with_no_leaks" >&5
16866 echo "${ECHO_T}$with_no_leaks" >&6
16868 if test "$with_no_leaks" = yes ; then
16870 cat >>confdefs.h <<\EOF
16874 cat >>confdefs.h <<\EOF
16875 #define YY_NO_LEAKS 1
16881 echo "$as_me:16881: checking for an rpath option" >&5
16882 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
16883 case $cf_cv_system_name in
16885 if test "$GCC" = yes; then
16886 LD_RPATH_OPT="-Wl,-rpath,"
16888 LD_RPATH_OPT="-rpath "
16891 (linux*|gnu*|k*bsd*-gnu)
16892 LD_RPATH_OPT="-Wl,-rpath,"
16894 (openbsd[2-9].*|mirbsd*)
16895 LD_RPATH_OPT="-Wl,-rpath,"
16897 (dragonfly*|freebsd*)
16898 LD_RPATH_OPT="-rpath "
16901 LD_RPATH_OPT="-Wl,-rpath,"
16904 LD_RPATH_OPT="-rpath "
16912 echo "$as_me:16912: result: $LD_RPATH_OPT" >&5
16913 echo "${ECHO_T}$LD_RPATH_OPT" >&6
16915 case "x$LD_RPATH_OPT" in
16917 echo "$as_me:16917: checking if we need a space after rpath option" >&5
16918 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
16919 cf_save_LIBS="$LIBS"
16921 cf_add_libs="${LD_RPATH_OPT}$libdir"
16922 # Filter out duplicates - this happens with badly-designed ".pc" files...
16923 for cf_add_1lib in $LIBS
16925 for cf_add_2lib in $cf_add_libs
16927 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16933 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16935 LIBS="$cf_add_libs"
16937 cat >conftest.$ac_ext <<_ACEOF
16938 #line 16938 "configure"
16939 #include "confdefs.h"
16949 rm -f conftest.$ac_objext conftest$ac_exeext
16950 if { (eval echo "$as_me:16950: \"$ac_link\"") >&5
16951 (eval $ac_link) 2>&5
16953 echo "$as_me:16953: \$? = $ac_status" >&5
16954 (exit $ac_status); } &&
16955 { ac_try='test -s conftest$ac_exeext'
16956 { (eval echo "$as_me:16956: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16959 echo "$as_me:16959: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
16963 echo "$as_me: failed program was:" >&5
16964 cat conftest.$ac_ext >&5
16967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16968 LIBS="$cf_save_LIBS"
16969 echo "$as_me:16969: result: $cf_rpath_space" >&5
16970 echo "${ECHO_T}$cf_rpath_space" >&6
16971 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
16975 echo "$as_me:16975: checking if rpath-hack should be disabled" >&5
16976 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
16978 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
16979 if test "${enable_rpath_hack+set}" = set; then
16980 enableval="$enable_rpath_hack"
16981 test "$enableval" != no && enableval=yes
16982 if test "$enableval" != "yes" ; then
16983 cf_disable_rpath_hack=yes
16985 cf_disable_rpath_hack=no
16989 cf_disable_rpath_hack=no
16992 echo "$as_me:16992: result: $cf_disable_rpath_hack" >&5
16993 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
16994 if test "$cf_disable_rpath_hack" = no ; then
16996 echo "$as_me:16996: checking for updated LDFLAGS" >&5
16997 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
16998 if test -n "$LD_RPATH_OPT" ; then
16999 echo "$as_me:16999: result: maybe" >&5
17000 echo "${ECHO_T}maybe" >&6
17004 # Extract the first word of "$ac_prog", so it can be a program name with args.
17005 set dummy $ac_prog; ac_word=$2
17006 echo "$as_me:17006: checking for $ac_word" >&5
17007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17008 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
17009 echo $ECHO_N "(cached) $ECHO_C" >&6
17011 if test -n "$cf_ldd_prog"; then
17012 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
17014 ac_save_IFS=$IFS; IFS=$ac_path_separator
17016 for ac_dir in $ac_dummy; do
17018 test -z "$ac_dir" && ac_dir=.
17019 $as_executable_p "$ac_dir/$ac_word" || continue
17020 ac_cv_prog_cf_ldd_prog="$ac_prog"
17021 echo "$as_me:17021: found $ac_dir/$ac_word" >&5
17027 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
17028 if test -n "$cf_ldd_prog"; then
17029 echo "$as_me:17029: result: $cf_ldd_prog" >&5
17030 echo "${ECHO_T}$cf_ldd_prog" >&6
17032 echo "$as_me:17032: result: no" >&5
17033 echo "${ECHO_T}no" >&6
17036 test -n "$cf_ldd_prog" && break
17038 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
17040 cf_rpath_list="/usr/lib /lib"
17041 if test "$cf_ldd_prog" != no
17045 cat >conftest.$ac_ext <<_ACEOF
17046 #line 17046 "configure"
17047 #include "confdefs.h"
17057 rm -f conftest.$ac_objext conftest$ac_exeext
17058 if { (eval echo "$as_me:17058: \"$ac_link\"") >&5
17059 (eval $ac_link) 2>&5
17061 echo "$as_me:17061: \$? = $ac_status" >&5
17062 (exit $ac_status); } &&
17063 { ac_try='test -s conftest$ac_exeext'
17064 { (eval echo "$as_me:17064: \"$ac_try\"") >&5
17065 (eval $ac_try) 2>&5
17067 echo "$as_me:17067: \$? = $ac_status" >&5
17068 (exit $ac_status); }; }; then
17069 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
17070 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
17072 echo "$as_me: failed program was:" >&5
17073 cat conftest.$ac_ext >&5
17075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17077 # If we passed the link-test, but get a "not found" on a given library,
17078 # this could be due to inept reconfiguration of gcc to make it only
17079 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
17080 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
17081 # /usr/local libraries.
17082 if test -n "$cf_rpath_oops"
17084 for cf_rpath_src in $cf_rpath_oops
17086 for cf_rpath_dir in \
17091 if test -f $cf_rpath_dir/lib/$cf_rpath_src
17093 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
17095 echo "${as_me:-configure}:17095: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
17097 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
17105 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
17107 echo "${as_me:-configure}:17107: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
17109 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
17111 echo "${as_me:-configure}:17111: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
17114 for cf_rpath_src in $LDFLAGS
17116 case $cf_rpath_src in
17119 # check if this refers to a directory which we will ignore
17121 if test -n "$cf_rpath_list"
17123 for cf_rpath_item in $cf_rpath_list
17125 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
17133 if test "$cf_rpath_skip" = no
17135 # transform the option
17136 if test "$LD_RPATH_OPT" = "-R " ; then
17137 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
17139 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
17142 # if we have not already added this, add it now
17143 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
17144 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
17146 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
17148 echo "${as_me:-configure}:17148: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
17150 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
17155 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
17157 LDFLAGS=$cf_rpath_dst
17159 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
17161 echo "${as_me:-configure}:17161: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
17163 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
17165 echo "${as_me:-configure}:17165: testing ...checking LIBS $LIBS ..." 1>&5
17168 for cf_rpath_src in $LIBS
17170 case $cf_rpath_src in
17173 # check if this refers to a directory which we will ignore
17175 if test -n "$cf_rpath_list"
17177 for cf_rpath_item in $cf_rpath_list
17179 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
17187 if test "$cf_rpath_skip" = no
17189 # transform the option
17190 if test "$LD_RPATH_OPT" = "-R " ; then
17191 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
17193 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
17196 # if we have not already added this, add it now
17197 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
17198 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
17200 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
17202 echo "${as_me:-configure}:17202: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
17204 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
17209 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
17213 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
17215 echo "${as_me:-configure}:17215: testing ...checked LIBS $LIBS ..." 1>&5
17217 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
17219 echo "${as_me:-configure}:17219: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
17222 echo "$as_me:17222: result: no" >&5
17223 echo "${ECHO_T}no" >&6
17231 ac_config_files="$ac_config_files Makefile"
17232 ac_config_commands="$ac_config_commands default"
17233 cat >confcache <<\_ACEOF
17234 # This file is a shell script that caches the results of configure
17235 # tests run on this system so they can be shared between configure
17236 # scripts and configure runs, see configure's option --config-cache.
17237 # It is not useful on other systems. If it contains results you don't
17238 # want to keep, you may remove or edit it.
17240 # config.status only pays attention to the cache file if you give it
17241 # the --recheck option to rerun configure.
17243 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17244 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17245 # following values.
17249 # The following way of writing the cache mishandles newlines in values,
17250 # but we know of no workaround that is simple, portable, and efficient.
17251 # So, don't put newlines in cache variables' values.
17252 # Ultrix sh set writes to stderr and can't be redirected directly,
17253 # and sets the high bit in the cache file unless we assign to the vars.
17256 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17258 # `set' does not quote correctly, so add quotes (double-quote
17259 # substitution turns \\\\ into \\, and sed turns \\ into \).
17262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17265 # `set' quotes correctly as required by POSIX, so do not add quotes.
17267 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17274 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17276 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17278 if cmp -s $cache_file confcache; then :; else
17279 if test -w $cache_file; then
17280 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17281 cat confcache >$cache_file
17283 echo "not updating unwritable cache $cache_file"
17288 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17289 # Let make expand exec_prefix.
17290 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17292 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17293 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17294 # trailing colons and then remove the whole line if VPATH becomes empty
17295 # (actually we leave an empty line to preserve line numbers).
17296 if test "x$srcdir" = x.; then
17297 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17298 s/:*\$(srcdir):*/:/;
17299 s/:*\${srcdir}:*/:/;
17301 s/^\([^=]*=[ ]*\):*/\1/;
17307 DEFS=-DHAVE_CONFIG_H
17309 : ${CONFIG_STATUS=./config.status}
17310 ac_clean_files_save=$ac_clean_files
17311 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17312 { echo "$as_me:17312: creating $CONFIG_STATUS" >&5
17313 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17314 cat >$CONFIG_STATUS <<_ACEOF
17316 # Generated automatically by configure.
17317 # Run this file to recreate the current configuration.
17318 # Compiler output produced by configure, useful for debugging
17319 # configure, is in config.log if it exists.
17322 SHELL=\${CONFIG_SHELL-$SHELL}
17323 ac_cs_invocation="\$0 \$@"
17327 cat >>$CONFIG_STATUS <<\_ACEOF
17328 # Be Bourne compatible
17329 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17332 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17336 # Name of the executable.
17337 as_me=`echo "$0" |sed 's,.*[\\/],,'`
17339 if expr a : '\(a\)' >/dev/null 2>&1; then
17345 rm -f conf$$ conf$$.exe conf$$.file
17347 if ln -s conf$$.file conf$$ 2>/dev/null; then
17348 # We could just check for DJGPP; but this test a) works b) is more generic
17349 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17350 if test -f conf$$.exe; then
17351 # Don't use ln at all; we don't have any links
17356 elif ln conf$$.file conf$$ 2>/dev/null; then
17361 rm -f conf$$ conf$$.exe conf$$.file
17363 as_executable_p="test -f"
17365 # Support unset when possible.
17366 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17373 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
17374 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
17375 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
17376 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
17377 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
17378 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
17379 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
17380 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
17383 # We need space, tab and new line, in precisely that order.
17389 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
17395 # Files that config.status was made for.
17396 if test -n "$ac_config_files"; then
17397 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17400 if test -n "$ac_config_headers"; then
17401 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17404 if test -n "$ac_config_links"; then
17405 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17408 if test -n "$ac_config_commands"; then
17409 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17412 cat >>$CONFIG_STATUS <<\EOF
17415 \`$as_me' instantiates files from templates according to the
17416 current configuration.
17418 Usage: $0 [OPTIONS] [FILE]...
17420 -h, --help print this help, then exit
17421 -V, --version print version number, then exit
17422 -d, --debug don't remove temporary files
17423 --recheck update $as_me by reconfiguring in the same conditions
17424 --file=FILE[:TEMPLATE]
17425 instantiate the configuration file FILE
17426 --header=FILE[:TEMPLATE]
17427 instantiate the configuration header FILE
17429 Configuration files:
17432 Configuration headers:
17435 Configuration commands:
17438 Report bugs to <dickey@invisible-island.net>."
17441 cat >>$CONFIG_STATUS <<EOF
17444 configured by $0, generated by GNU Autoconf 2.52.20141204,
17445 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17447 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17448 Free Software Foundation, Inc.
17449 This config.status script is free software; the Free Software Foundation
17450 gives unlimited permission to copy, distribute and modify it."
17455 cat >>$CONFIG_STATUS <<\EOF
17456 # If no file are specified by the user, then we need to provide default
17457 # value. By we need to know if files were specified by the user.
17463 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17464 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17466 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17470 *) # This is not an option, so the user has probably given explicit
17472 ac_need_defaults=false;;
17476 # Handling of the options.
17478 cat >>$CONFIG_STATUS <<EOF
17479 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17480 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17481 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17483 cat >>$CONFIG_STATUS <<\EOF
17484 --version | --vers* | -V )
17485 echo "$ac_cs_version"; exit 0 ;;
17487 # Conflict between --help and --header
17488 { { echo "$as_me:17488: error: ambiguous option: $1
17489 Try \`$0 --help' for more information." >&5
17490 echo "$as_me: error: ambiguous option: $1
17491 Try \`$0 --help' for more information." >&2;}
17492 { (exit 1); exit 1; }; };;
17493 --help | --hel | -h )
17494 echo "$ac_cs_usage"; exit 0 ;;
17495 --debug | --d* | -d )
17497 --file | --fil | --fi | --f )
17499 CONFIG_FILES="$CONFIG_FILES $1"
17500 ac_need_defaults=false;;
17501 --header | --heade | --head | --hea )
17503 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17504 ac_need_defaults=false;;
17506 # This is an error.
17507 -*) { { echo "$as_me:17507: error: unrecognized option: $1
17508 Try \`$0 --help' for more information." >&5
17509 echo "$as_me: error: unrecognized option: $1
17510 Try \`$0 --help' for more information." >&2;}
17511 { (exit 1); exit 1; }; } ;;
17513 *) ac_config_targets="$ac_config_targets $1" ;;
17522 ## ----------------------- ##
17523 ## Running config.status. ##
17524 ## ----------------------- ##
17526 This file was extended by $as_me 2.52.20141204, executed with
17527 CONFIG_FILES = $CONFIG_FILES
17528 CONFIG_HEADERS = $CONFIG_HEADERS
17529 CONFIG_LINKS = $CONFIG_LINKS
17530 CONFIG_COMMANDS = $CONFIG_COMMANDS
17531 > $ac_cs_invocation
17532 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17537 cat >>$CONFIG_STATUS <<EOF
17539 # INIT-COMMANDS section.
17549 cat >>$CONFIG_STATUS <<\EOF
17550 for ac_config_target in $ac_config_targets
17552 case "$ac_config_target" in
17553 # Handling of arguments.
17554 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17555 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17556 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
17557 *) { { echo "$as_me:17557: error: invalid argument: $ac_config_target" >&5
17558 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17559 { (exit 1); exit 1; }; };;
17563 # If the user did not use the arguments to specify the items to instantiate,
17564 # then the envvar interface is used. Set only those that are not.
17565 # We use the long form for the default assignment because of an extremely
17566 # bizarre bug on SunOS 4.1.3.
17567 if $ac_need_defaults; then
17568 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17569 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17570 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17573 # Create a temporary directory, and hook for its removal unless debugging.
17576 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17577 trap '{ (exit 1); exit 1; }' 1 2 13 15
17580 # Create a (secure) tmp directory for tmp files.
17583 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17584 test -n "$tmp" && test -d "$tmp"
17587 tmp=$TMPDIR/cs$$-$RANDOM
17588 (umask 077 && mkdir $tmp)
17591 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17592 { (exit 1); exit 1; }
17597 cat >>$CONFIG_STATUS <<EOF
17600 # CONFIG_FILES section.
17603 # No need to generate the scripts if there are no CONFIG_FILES.
17604 # This happens for instance when ./config.status config.h
17605 if test -n "\$CONFIG_FILES"; then
17606 # Protect against being on the right side of a sed subst in config.status.
17607 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17608 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17609 s,@SHELL@,$SHELL,;t t
17610 s,@exec_prefix@,$exec_prefix,;t t
17611 s,@prefix@,$prefix,;t t
17612 s,@program_transform_name@,$program_transform_name,;t t
17613 s,@bindir@,$bindir,;t t
17614 s,@sbindir@,$sbindir,;t t
17615 s,@libexecdir@,$libexecdir,;t t
17616 s,@datarootdir@,$datarootdir,;t t
17617 s,@datadir@,$datadir,;t t
17618 s,@sysconfdir@,$sysconfdir,;t t
17619 s,@sharedstatedir@,$sharedstatedir,;t t
17620 s,@localstatedir@,$localstatedir,;t t
17621 s,@libdir@,$libdir,;t t
17622 s,@includedir@,$includedir,;t t
17623 s,@oldincludedir@,$oldincludedir,;t t
17624 s,@infodir@,$infodir,;t t
17625 s,@mandir@,$mandir,;t t
17626 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17627 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17628 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17629 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17630 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17631 s,@build_alias@,$build_alias,;t t
17632 s,@host_alias@,$host_alias,;t t
17633 s,@target_alias@,$target_alias,;t t
17634 s,@ECHO_C@,$ECHO_C,;t t
17635 s,@ECHO_N@,$ECHO_N,;t t
17636 s,@ECHO_T@,$ECHO_T,;t t
17637 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17638 s,@DEFS@,$DEFS,;t t
17639 s,@LIBS@,$LIBS,;t t
17640 s,@build@,$build,;t t
17641 s,@build_cpu@,$build_cpu,;t t
17642 s,@build_vendor@,$build_vendor,;t t
17643 s,@build_os@,$build_os,;t t
17644 s,@host@,$host,;t t
17645 s,@host_cpu@,$host_cpu,;t t
17646 s,@host_vendor@,$host_vendor,;t t
17647 s,@host_os@,$host_os,;t t
17648 s,@SET_MAKE@,$SET_MAKE,;t t
17650 s,@CFLAGS@,$CFLAGS,;t t
17651 s,@LDFLAGS@,$LDFLAGS,;t t
17652 s,@CPPFLAGS@,$CPPFLAGS,;t t
17653 s,@ac_ct_CC@,$ac_ct_CC,;t t
17654 s,@EXEEXT@,$EXEEXT,;t t
17655 s,@OBJEXT@,$OBJEXT,;t t
17656 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
17659 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17660 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17661 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17662 s,@LINT@,$LINT,;t t
17663 s,@LINT_OPTS@,$LINT_OPTS,;t t
17664 s,@CTAGS@,$CTAGS,;t t
17665 s,@ETAGS@,$ETAGS,;t t
17666 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
17667 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
17668 s,@MATH_LIB@,$MATH_LIB,;t t
17669 s,@top_builddir@,$top_builddir,;t t
17670 s,@CC_G_OPT@,$CC_G_OPT,;t t
17671 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
17672 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
17673 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
17674 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
17676 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
17677 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
17678 s,@LD_MODEL@,$LD_MODEL,;t t
17679 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
17680 s,@LIBTOOL@,$LIBTOOL,;t t
17681 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
17682 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
17683 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
17684 s,@LIB_LINK@,$LIB_LINK,;t t
17685 s,@LINK_TESTS@,$LINK_TESTS,;t t
17686 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
17687 s,@PACKAGE@,$PACKAGE,;t t
17688 s,@PTHREAD@,$PTHREAD,;t t
17689 s,@TEST_ARGS@,$TEST_ARGS,;t t
17690 s,@TEST_DEPS@,$TEST_DEPS,;t t
17691 s,@TEST_LIBS@,$TEST_LIBS,;t t
17692 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
17693 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
17694 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
17695 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
17696 s,@includesubdir@,$includesubdir,;t t
17697 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17698 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
17699 s,@ECHO_LT@,$ECHO_LT,;t t
17700 s,@ECHO_LD@,$ECHO_LD,;t t
17701 s,@RULE_CC@,$RULE_CC,;t t
17702 s,@SHOW_CC@,$SHOW_CC,;t t
17703 s,@ECHO_CC@,$ECHO_CC,;t t
17704 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
17705 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
17706 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
17707 s,@X_CFLAGS@,$X_CFLAGS,;t t
17708 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17709 s,@X_LIBS@,$X_LIBS,;t t
17710 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17711 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
17712 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
17713 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
17714 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
17715 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
17720 cat >>$CONFIG_STATUS <<\EOF
17721 # Split the substitutions into bite-sized pieces for seds with
17722 # small command number limits, like on Digital OSF/1 and HP-UX.
17723 ac_max_sed_lines=48
17724 ac_sed_frag=1 # Number of current file.
17725 ac_beg=1 # First line for current file.
17726 ac_end=$ac_max_sed_lines # Line after last line for current file.
17729 while $ac_more_lines; do
17730 if test $ac_beg -gt 1; then
17731 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17733 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17735 if test ! -s $tmp/subs.frag; then
17736 ac_more_lines=false
17738 # The purpose of the label and of the branching condition is to
17739 # speed up the sed processing (if there are no `@' at all, there
17740 # is no need to browse any of the substitutions).
17741 # These are the two extra sed commands mentioned above.
17743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17744 if test -z "$ac_sed_cmds"; then
17745 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17747 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17749 ac_sed_frag=`expr $ac_sed_frag + 1`
17751 ac_end=`expr $ac_end + $ac_max_sed_lines`
17754 if test -z "$ac_sed_cmds"; then
17757 fi # test -n "$CONFIG_FILES"
17760 cat >>$CONFIG_STATUS <<\EOF
17761 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17762 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17764 - | *:- | *:-:* ) # input from stdin
17766 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17767 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17768 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17769 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17770 * ) ac_file_in=$ac_file.in ;;
17773 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17774 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17775 X"$ac_file" : 'X\(//\)[^/]' \| \
17776 X"$ac_file" : 'X\(//\)$' \| \
17777 X"$ac_file" : 'X\(/\)' \| \
17778 . : '\(.\)' 2>/dev/null ||
17780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17782 /^X\(\/\/\)$/{ s//\1/; q; }
17783 /^X\(\/\).*/{ s//\1/; q; }
17785 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17786 { case "$ac_dir" in
17787 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17791 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17792 case $as_mkdir_dir in
17793 # Skip DOS drivespec
17794 ?:) as_incr_dir=$as_mkdir_dir ;;
17796 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17797 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
17802 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
17803 # A "../" for each directory in $ac_dir_suffix.
17804 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
17806 ac_dir_suffix= ac_dots=
17811 if test -z "$ac_dots"; then
17814 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
17816 [\\/]* | ?:[\\/]* )
17817 ac_srcdir=$srcdir$ac_dir_suffix;
17818 ac_top_srcdir=$srcdir ;;
17819 *) # Relative path.
17820 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
17821 ac_top_srcdir=$ac_dots$srcdir ;;
17825 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17826 *) ac_INSTALL=$ac_dots$INSTALL ;;
17829 if test x"$ac_file" != x-; then
17830 { echo "$as_me:17830: creating $ac_file" >&5
17831 echo "$as_me: creating $ac_file" >&6;}
17834 # Let's still pretend it is `configure' which instantiates (i.e., don't
17835 # use $as_me), people would be surprised to read:
17836 # /* config.h. Generated automatically by config.status. */
17837 configure_input="Generated automatically from `echo $ac_file_in |
17838 sed 's,.*/,,'` by configure."
17840 # First look for the input files in the build tree, otherwise in the
17842 ac_file_inputs=`IFS=:
17843 for f in $ac_file_in; do
17845 -) echo $tmp/stdin ;;
17847 # Absolute (can't be DOS-style, as IFS=:)
17848 test -f "$f" || { { echo "$as_me:17848: error: cannot find input file: $f" >&5
17849 echo "$as_me: error: cannot find input file: $f" >&2;}
17850 { (exit 1); exit 1; }; }
17853 if test -f "$f"; then
17856 elif test -f "$srcdir/$f"; then
17861 { { echo "$as_me:17861: error: cannot find input file: $f" >&5
17862 echo "$as_me: error: cannot find input file: $f" >&2;}
17863 { (exit 1); exit 1; }; }
17866 done` || { (exit 1); exit 1; }
17868 cat >>$CONFIG_STATUS <<\EOF
17869 ac_warn_datarootdir=no
17870 if test x"$ac_file" != x-; then
17871 for ac_item in $ac_file_inputs
17873 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
17874 if test -n "$ac_seen"; then
17875 ac_used=`grep '@datarootdir@' $ac_item`
17876 if test -z "$ac_used"; then
17877 { echo "$as_me:17877: WARNING: datarootdir was used implicitly but not set:
17879 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
17881 ac_warn_datarootdir=yes
17884 ac_seen=`grep '${datarootdir}' $ac_item`
17885 if test -n "$ac_seen"; then
17886 { echo "$as_me:17886: WARNING: datarootdir was used explicitly but not set:
17888 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
17890 ac_warn_datarootdir=yes
17895 if test "x$ac_warn_datarootdir" = xyes; then
17896 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
17900 cat >>$CONFIG_STATUS <<EOF
17904 cat >>$CONFIG_STATUS <<\EOF
17906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17907 s,@configure_input@,$configure_input,;t t
17908 s,@srcdir@,$ac_srcdir,;t t
17909 s,@top_srcdir@,$ac_top_srcdir,;t t
17910 s,@INSTALL@,$ac_INSTALL,;t t
17911 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17913 if test x"$ac_file" != x-; then
17914 cp $tmp/out $ac_file
17916 for ac_name in prefix exec_prefix datarootdir
17918 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
17919 if test -n "$ac_seen"; then
17920 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
17921 if test -z "$ac_init"; then
17922 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
17923 { echo "$as_me:17923: WARNING: Variable $ac_name is used but was not set:
17925 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
17930 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
17931 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
17932 if test -s $tmp/out; then
17933 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
17934 { echo "$as_me:17934: WARNING: Some variables may not be substituted:
17936 echo "$as_me: WARNING: Some variables may not be substituted:
17946 cat >>$CONFIG_STATUS <<\EOF
17949 # CONFIG_HEADER section.
17952 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17953 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17955 # ac_d sets the value in "#define NAME VALUE" lines.
17956 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17957 ac_dB='[ ].*$,\1#\2'
17960 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17961 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17962 ac_iB='\([ ]\),\1#\2define\3'
17965 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17966 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17967 ac_uB='$,\1#\2define\3'
17971 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17972 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17974 - | *:- | *:-:* ) # input from stdin
17976 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17977 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17978 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17979 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17980 * ) ac_file_in=$ac_file.in ;;
17983 test x"$ac_file" != x- && { echo "$as_me:17983: creating $ac_file" >&5
17984 echo "$as_me: creating $ac_file" >&6;}
17986 # First look for the input files in the build tree, otherwise in the
17988 ac_file_inputs=`IFS=:
17989 for f in $ac_file_in; do
17991 -) echo $tmp/stdin ;;
17993 # Absolute (can't be DOS-style, as IFS=:)
17994 test -f "$f" || { { echo "$as_me:17994: error: cannot find input file: $f" >&5
17995 echo "$as_me: error: cannot find input file: $f" >&2;}
17996 { (exit 1); exit 1; }; }
17999 if test -f "$f"; then
18002 elif test -f "$srcdir/$f"; then
18007 { { echo "$as_me:18007: error: cannot find input file: $f" >&5
18008 echo "$as_me: error: cannot find input file: $f" >&2;}
18009 { (exit 1); exit 1; }; }
18012 done` || { (exit 1); exit 1; }
18013 # Remove the trailing spaces.
18014 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18018 # Transform confdefs.h into a list of #define's. We won't use it as a sed
18019 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
18020 # be either 'cat' or 'sort'.
18021 cat confdefs.h | uniq >conftest.vals
18023 # Break up conftest.vals because some shells have a limit on
18024 # the size of here documents, and old seds have small limits too.
18026 rm -f conftest.tail
18027 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
18028 while grep . conftest.vals >/dev/null
18030 # Write chunks of a limited-size here document to conftest.frag.
18031 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
18032 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
18033 echo 'CEOF' >> $CONFIG_STATUS
18034 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18035 rm -f conftest.vals
18036 mv conftest.tail conftest.vals
18038 rm -f conftest.vals
18040 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
18042 echo ' cat >> conftest.edit <<CEOF
18043 /@DEFS@/r conftest.frag
18046 sed -f conftest.edit $tmp/in > $tmp/out
18048 mv $tmp/out $tmp/in
18049 rm -f conftest.edit conftest.frag
18050 ' >> $CONFIG_STATUS
18052 cat >>$CONFIG_STATUS <<\EOF
18053 # Let's still pretend it is `configure' which instantiates (i.e., don't
18054 # use $as_me), people would be surprised to read:
18055 # /* config.h. Generated automatically by config.status. */
18056 if test x"$ac_file" = x-; then
18057 echo "/* Generated automatically by configure. */" >$tmp/config.h
18059 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
18061 cat $tmp/in >>$tmp/config.h
18063 if test x"$ac_file" != x-; then
18064 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18065 { echo "$as_me:18065: $ac_file is unchanged" >&5
18066 echo "$as_me: $ac_file is unchanged" >&6;}
18068 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18069 X"$ac_file" : 'X\(//\)[^/]' \| \
18070 X"$ac_file" : 'X\(//\)$' \| \
18071 X"$ac_file" : 'X\(/\)' \| \
18072 . : '\(.\)' 2>/dev/null ||
18074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18076 /^X\(\/\/\)$/{ s//\1/; q; }
18077 /^X\(\/\).*/{ s//\1/; q; }
18079 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18080 { case "$ac_dir" in
18081 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18085 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18086 case $as_mkdir_dir in
18087 # Skip DOS drivespec
18088 ?:) as_incr_dir=$as_mkdir_dir ;;
18090 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18091 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18098 mv $tmp/config.h $ac_file
18102 rm -f $tmp/config.h
18106 cat >>$CONFIG_STATUS <<\EOF
18108 # CONFIG_COMMANDS section.
18110 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18111 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18112 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18119 if test ! -d $srcdir/$cf_dir; then
18121 elif test -f $srcdir/$cf_dir/programs; then
18122 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
18126 cat >>Makefile <<TEST_EOF
18128 # These rules are generated so we do not rely on suffix rules, which do not
18129 # work consistently for different make-programs (the '\$(MODEL)/' confuses
18130 # some, and the '\$x' confuses others).
18133 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
18136 cat >>Makefile <<TEST_EOF
18138 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
18139 \$(srcdir)/test.priv.h \\
18142 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) \$(srcdir)/$N.c
18146 if test -f ../config.guess && test -f ../config.sub
18148 cat >>Makefile <<TEST_EOF
18150 # if we used CF_INHERIT for getting these files, we can remove them
18152 rm -f config.guess config.sub
18160 cat >>$CONFIG_STATUS <<\EOF
18162 { (exit 0); exit 0; }
18164 chmod +x $CONFIG_STATUS
18165 ac_clean_files=$ac_clean_files_save
18167 # configure is writing to config.log, and then calls config.status.
18168 # config.status does its own redirection, appending to config.log.
18169 # Unfortunately, on DOS this fails, as config.log is still kept open
18170 # by configure, so config.status won't be able to write to it; its
18171 # output is simply discarded. So we exec the FD to /dev/null,
18172 # effectively closing config.log, so it can be properly (re)opened and
18173 # appended to by config.status. When coming back to configure, we
18174 # need to make the FD available again.
18175 if test "$no_create" != yes; then
18178 $SHELL $CONFIG_STATUS || ac_cs_success=false
18180 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18181 # would make configure fail if this is the last instruction.
18182 $ac_cs_success || { (exit 1); exit 1; }