2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20150926.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="ncurses.c"
109 # Initialize some variables set by options.
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
121 program_transform_name=s,x,x,
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datarootdir='${prefix}/share'
138 datadir='${datarootdir}'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${datarootdir}/info'
146 mandir='${datarootdir}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build_alias ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build_alias=$ac_optarg ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file=$ac_optarg ;;
189 cache_file=config.cache ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir=$ac_optarg ;;
197 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
198 | --dataroo | --dataro | --datar)
199 ac_prev=datarootdir ;;
200 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
201 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
202 datarootdir=$ac_optarg ;;
204 -disable-* | --disable-*)
205 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
206 # Reject names that are not valid shell variable names.
207 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
208 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
209 { (exit 1); exit 1; }; }
210 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
211 eval "enable_$ac_feature=no" ;;
213 -enable-* | --enable-*)
214 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
215 # Reject names that are not valid shell variable names.
216 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
217 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
218 { (exit 1); exit 1; }; }
219 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
221 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
224 eval "enable_$ac_feature='$ac_optarg'" ;;
226 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
227 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
228 | --exec | --exe | --ex)
229 ac_prev=exec_prefix ;;
230 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
231 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
232 | --exec=* | --exe=* | --ex=*)
233 exec_prefix=$ac_optarg ;;
235 -gas | --gas | --ga | --g)
236 # Obsolete; use --with-gas.
239 -help | --help | --hel | --he | -h)
241 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
242 ac_init_help=recursive ;;
243 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
244 ac_init_help=short ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host_alias ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host_alias=$ac_optarg ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir=$ac_optarg ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir=$ac_optarg ;;
263 -libdir | --libdir | --libdi | --libd)
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir=$ac_optarg ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir=$ac_optarg ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 # Obsolete; use --without-fp.
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir=$ac_optarg ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix=$ac_optarg ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix=$ac_optarg ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name=$ac_optarg ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354 sbindir=$ac_optarg ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365 sharedstatedir=$ac_optarg ;;
367 -site | --site | --sit)
369 -site=* | --site=* | --sit=*)
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir=$ac_optarg ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target_alias ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target_alias=$ac_optarg ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
392 -version | --version | --versio | --versi | --vers | -V)
396 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid package name: $ac_package" >&2
400 { (exit 1); exit 1; }; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
406 eval "with_$ac_package='$ac_optarg'" ;;
408 -without-* | --without-*)
409 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid package name: $ac_package" >&2
413 { (exit 1); exit 1; }; }
414 ac_package=`echo $ac_package | sed 's/-/_/g'`
415 eval "with_$ac_package=no" ;;
418 # Obsolete; use --with-x.
421 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422 | --x-incl | --x-inc | --x-in | --x-i)
423 ac_prev=x_includes ;;
424 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426 x_includes=$ac_optarg ;;
428 -x-libraries | --x-libraries | --x-librarie | --x-librari \
429 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430 ac_prev=x_libraries ;;
431 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433 x_libraries=$ac_optarg ;;
435 -*) { echo "$as_me: error: unrecognized option: $ac_option
436 Try \`$0 --help' for more information." >&2
437 { (exit 1); exit 1; }; }
441 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
442 # Reject names that are not valid shell variable names.
443 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
444 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
445 { (exit 1); exit 1; }; }
446 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
447 eval "$ac_envvar='$ac_optarg'"
451 # FIXME: should be removed in autoconf 3.0.
452 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
453 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
454 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
455 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
461 if test -n "$ac_prev"; then
462 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
463 { echo "$as_me: error: missing argument to $ac_option" >&2
464 { (exit 1); exit 1; }; }
467 # Be sure to have absolute paths.
468 for ac_var in exec_prefix prefix
470 eval ac_val=$`echo $ac_var`
472 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
473 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
474 { (exit 1); exit 1; }; };;
478 # Be sure to have absolute paths.
479 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
480 localstatedir libdir includedir oldincludedir infodir mandir
482 eval ac_val=$`echo $ac_var`
484 [\\/$]* | ?:[\\/]* ) ;;
485 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
486 { (exit 1); exit 1; }; };;
490 # There might be people who depend on the old broken behavior: `$host'
491 # used to hold the argument of --host etc.
496 # FIXME: should be removed in autoconf 3.0.
497 if test "x$host_alias" != x; then
498 if test "x$build_alias" = x; then
499 cross_compiling=maybe
500 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
501 If a cross compiler is detected then cross compile mode will be used." >&2
502 elif test "x$build_alias" != "x$host_alias"; then
508 test -n "$host_alias" && ac_tool_prefix=$host_alias-
510 test "$silent" = yes && exec 6>/dev/null
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted=yes
515 # Try the directory containing this script, then its parent.
517 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 if test ! -r $srcdir/$ac_unique_file; then
524 ac_srcdir_defaulted=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
529 { (exit 1); exit 1; }; }
531 { echo "$as_me: error: cannot find sources in $srcdir" >&2
532 { (exit 1); exit 1; }; }
535 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
536 ac_env_build_alias_set=${build_alias+set}
537 ac_env_build_alias_value=$build_alias
538 ac_cv_env_build_alias_set=${build_alias+set}
539 ac_cv_env_build_alias_value=$build_alias
540 ac_env_host_alias_set=${host_alias+set}
541 ac_env_host_alias_value=$host_alias
542 ac_cv_env_host_alias_set=${host_alias+set}
543 ac_cv_env_host_alias_value=$host_alias
544 ac_env_target_alias_set=${target_alias+set}
545 ac_env_target_alias_value=$target_alias
546 ac_cv_env_target_alias_set=${target_alias+set}
547 ac_cv_env_target_alias_value=$target_alias
548 ac_env_CC_set=${CC+set}
550 ac_cv_env_CC_set=${CC+set}
551 ac_cv_env_CC_value=$CC
552 ac_env_CFLAGS_set=${CFLAGS+set}
553 ac_env_CFLAGS_value=$CFLAGS
554 ac_cv_env_CFLAGS_set=${CFLAGS+set}
555 ac_cv_env_CFLAGS_value=$CFLAGS
556 ac_env_LDFLAGS_set=${LDFLAGS+set}
557 ac_env_LDFLAGS_value=$LDFLAGS
558 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
559 ac_cv_env_LDFLAGS_value=$LDFLAGS
560 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
561 ac_env_CPPFLAGS_value=$CPPFLAGS
562 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
563 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
564 ac_env_CPP_set=${CPP+set}
565 ac_env_CPP_value=$CPP
566 ac_cv_env_CPP_set=${CPP+set}
567 ac_cv_env_CPP_value=$CPP
570 # Report the --help message.
572 if test "$ac_init_help" = "long"; then
573 # Omit some internal or obsolete options to make the list less imposing.
574 # This message is too long to be a string in the A/UX 3.1 sh.
576 \`configure' configures this package to adapt to many kinds of systems.
578 Usage: $0 [OPTION]... [VAR=VALUE]...
580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
581 VAR=VALUE. See below for descriptions of some of the useful variables.
583 Defaults for the options are specified in brackets.
586 -h, --help display this help and exit
587 --help=short display options specific to this package
588 --help=recursive display the short help of all the included packages
589 -V, --version display version information and exit
590 -q, --quiet, --silent do not print \`checking...' messages
591 --cache-file=FILE cache test results in FILE [disabled]
592 -C, --config-cache alias for \`--cache-file=config.cache'
593 -n, --no-create do not create output files
594 --srcdir=DIR find the sources in DIR [configure dir or \`..']
599 Installation directories:
600 --prefix=PREFIX install architecture-independent files in PREFIX
602 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
605 By default, \`make install' will install all the files in
606 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
607 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
608 for instance \`--prefix=\$HOME'.
610 For better control, use the options below.
612 Fine tuning of the installation directories:
613 --bindir=DIR user executables [EPREFIX/bin]
614 --sbindir=DIR system admin executables [EPREFIX/sbin]
615 --libexecdir=DIR program executables [EPREFIX/libexec]
616 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
617 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
618 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
619 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
620 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
621 --libdir=DIR object code libraries [EPREFIX/lib]
622 --includedir=DIR C header files [PREFIX/include]
623 --oldincludedir=DIR C header files for non-gcc [/usr/include]
624 --infodir=DIR info documentation [DATAROOTDIR/info]
625 --mandir=DIR man documentation [DATAROOTDIR/man]
631 --program-prefix=PREFIX prepend PREFIX to installed program names
632 --program-suffix=SUFFIX append SUFFIX to installed program names
633 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
636 --x-includes=DIR X include files are in DIR
637 --x-libraries=DIR X library files are in DIR
640 --build=BUILD configure for building on BUILD [guessed]
641 --host=HOST build programs to run on HOST [BUILD]
645 if test -n "$ac_init_help"; then
650 --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.20150926. 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
3180 cf_xopen_source="-D_OSF_SOURCE"
3183 cf_xopen_source="-D_QNX_SOURCE"
3186 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3189 cf_xopen_source="-D__EXTENSIONS__"
3190 cf_cv_xopen_source=broken
3192 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3198 echo "$as_me:3198: checking if we should define _XOPEN_SOURCE" >&5
3199 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3200 if test "${cf_cv_xopen_source+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 cat >conftest.$ac_ext <<_ACEOF
3205 #line 3205 "configure"
3206 #include "confdefs.h"
3210 #include <sys/types.h>
3216 #ifndef _XOPEN_SOURCE
3223 rm -f conftest.$ac_objext
3224 if { (eval echo "$as_me:3224: \"$ac_compile\"") >&5
3225 (eval $ac_compile) 2>&5
3227 echo "$as_me:3227: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try='test -s conftest.$ac_objext'
3230 { (eval echo "$as_me:3230: \"$ac_try\"") >&5
3233 echo "$as_me:3233: \$? = $ac_status" >&5
3234 (exit $ac_status); }; }; then
3235 cf_cv_xopen_source=no
3237 echo "$as_me: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3240 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3241 cat >conftest.$ac_ext <<_ACEOF
3242 #line 3242 "configure"
3243 #include "confdefs.h"
3247 #include <sys/types.h>
3253 #ifdef _XOPEN_SOURCE
3260 rm -f conftest.$ac_objext
3261 if { (eval echo "$as_me:3261: \"$ac_compile\"") >&5
3262 (eval $ac_compile) 2>&5
3264 echo "$as_me:3264: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try='test -s conftest.$ac_objext'
3267 { (eval echo "$as_me:3267: \"$ac_try\"") >&5
3270 echo "$as_me:3270: \$? = $ac_status" >&5
3271 (exit $ac_status); }; }; then
3272 cf_cv_xopen_source=no
3274 echo "$as_me: failed program was:" >&5
3275 cat conftest.$ac_ext >&5
3276 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3278 rm -f conftest.$ac_objext conftest.$ac_ext
3282 rm -f conftest.$ac_objext conftest.$ac_ext
3285 echo "$as_me:3285: result: $cf_cv_xopen_source" >&5
3286 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3288 if test "$cf_cv_xopen_source" != no ; then
3290 CFLAGS=`echo "$CFLAGS" | \
3291 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3292 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3294 CPPFLAGS=`echo "$CPPFLAGS" | \
3295 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3296 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3298 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3303 cf_new_extra_cppflags=
3305 for cf_add_cflags in $cf_temp_xopen_source
3307 case $cf_fix_cppflags in
3309 case $cf_add_cflags in
3310 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3311 case $cf_add_cflags in
3313 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3315 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3316 && test -z "${cf_tst_cflags}" \
3317 && cf_fix_cppflags=yes
3319 if test $cf_fix_cppflags = yes ; then
3320 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3322 elif test "${cf_tst_cflags}" = "\"'" ; then
3323 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3332 case $cf_add_cflags in
3334 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3336 CPPFLAGS=`echo "$CPPFLAGS" | \
3337 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3338 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3342 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3347 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3352 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3354 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3356 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3357 && test -z "${cf_tst_cflags}" \
3358 && cf_fix_cppflags=no
3363 if test -n "$cf_new_cflags" ; then
3365 CFLAGS="$CFLAGS $cf_new_cflags"
3368 if test -n "$cf_new_cppflags" ; then
3370 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3373 if test -n "$cf_new_extra_cppflags" ; then
3375 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3380 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3382 cf_save_CFLAGS="$CFLAGS"
3383 cf_save_CPPFLAGS="$CPPFLAGS"
3385 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3386 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3387 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3389 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3390 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3391 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3393 echo "$as_me:3393: checking if we should define _POSIX_C_SOURCE" >&5
3394 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3395 if test "${cf_cv_posix_c_source+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 echo "${as_me:-configure}:3399: testing if the symbol is already defined go no further ..." 1>&5
3401 cat >conftest.$ac_ext <<_ACEOF
3402 #line 3402 "configure"
3403 #include "confdefs.h"
3404 #include <sys/types.h>
3409 #ifndef _POSIX_C_SOURCE
3416 rm -f conftest.$ac_objext
3417 if { (eval echo "$as_me:3417: \"$ac_compile\"") >&5
3418 (eval $ac_compile) 2>&5
3420 echo "$as_me:3420: \$? = $ac_status" >&5
3421 (exit $ac_status); } &&
3422 { ac_try='test -s conftest.$ac_objext'
3423 { (eval echo "$as_me:3423: \"$ac_try\"") >&5
3426 echo "$as_me:3426: \$? = $ac_status" >&5
3427 (exit $ac_status); }; }; then
3428 cf_cv_posix_c_source=no
3430 echo "$as_me: failed program was:" >&5
3431 cat conftest.$ac_ext >&5
3432 cf_want_posix_source=no
3433 case .$cf_POSIX_C_SOURCE in
3435 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3438 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3439 cf_want_posix_source=yes
3442 cf_want_posix_source=yes
3445 if test "$cf_want_posix_source" = yes ; then
3446 cat >conftest.$ac_ext <<_ACEOF
3447 #line 3447 "configure"
3448 #include "confdefs.h"
3449 #include <sys/types.h>
3454 #ifdef _POSIX_SOURCE
3461 rm -f conftest.$ac_objext
3462 if { (eval echo "$as_me:3462: \"$ac_compile\"") >&5
3463 (eval $ac_compile) 2>&5
3465 echo "$as_me:3465: \$? = $ac_status" >&5
3466 (exit $ac_status); } &&
3467 { ac_try='test -s conftest.$ac_objext'
3468 { (eval echo "$as_me:3468: \"$ac_try\"") >&5
3471 echo "$as_me:3471: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3475 echo "$as_me: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3477 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3479 rm -f conftest.$ac_objext conftest.$ac_ext
3482 echo "${as_me:-configure}:3482: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3484 CFLAGS="$cf_trim_CFLAGS"
3485 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3487 echo "${as_me:-configure}:3487: testing if the second compile does not leave our definition intact error ..." 1>&5
3489 cat >conftest.$ac_ext <<_ACEOF
3490 #line 3490 "configure"
3491 #include "confdefs.h"
3492 #include <sys/types.h>
3497 #ifndef _POSIX_C_SOURCE
3504 rm -f conftest.$ac_objext
3505 if { (eval echo "$as_me:3505: \"$ac_compile\"") >&5
3506 (eval $ac_compile) 2>&5
3508 echo "$as_me:3508: \$? = $ac_status" >&5
3509 (exit $ac_status); } &&
3510 { ac_try='test -s conftest.$ac_objext'
3511 { (eval echo "$as_me:3511: \"$ac_try\"") >&5
3514 echo "$as_me:3514: \$? = $ac_status" >&5
3515 (exit $ac_status); }; }; then
3518 echo "$as_me: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3520 cf_cv_posix_c_source=no
3522 rm -f conftest.$ac_objext conftest.$ac_ext
3523 CFLAGS="$cf_save_CFLAGS"
3524 CPPFLAGS="$cf_save_CPPFLAGS"
3527 rm -f conftest.$ac_objext conftest.$ac_ext
3530 echo "$as_me:3530: result: $cf_cv_posix_c_source" >&5
3531 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3533 if test "$cf_cv_posix_c_source" != no ; then
3534 CFLAGS="$cf_trim_CFLAGS"
3535 CPPFLAGS="$cf_trim_CPPFLAGS"
3540 cf_new_extra_cppflags=
3542 for cf_add_cflags in $cf_cv_posix_c_source
3544 case $cf_fix_cppflags in
3546 case $cf_add_cflags in
3547 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3548 case $cf_add_cflags in
3550 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3552 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3553 && test -z "${cf_tst_cflags}" \
3554 && cf_fix_cppflags=yes
3556 if test $cf_fix_cppflags = yes ; then
3557 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3559 elif test "${cf_tst_cflags}" = "\"'" ; then
3560 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3569 case $cf_add_cflags in
3571 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3573 CPPFLAGS=`echo "$CPPFLAGS" | \
3574 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3575 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3579 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3584 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3589 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3591 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3593 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3594 && test -z "${cf_tst_cflags}" \
3595 && cf_fix_cppflags=no
3600 if test -n "$cf_new_cflags" ; then
3602 CFLAGS="$CFLAGS $cf_new_cflags"
3605 if test -n "$cf_new_cppflags" ; then
3607 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3610 if test -n "$cf_new_extra_cppflags" ; then
3612 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3620 if test -n "$cf_xopen_source" ; then
3625 cf_new_extra_cppflags=
3627 for cf_add_cflags in $cf_xopen_source
3629 case $cf_fix_cppflags in
3631 case $cf_add_cflags in
3632 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3633 case $cf_add_cflags in
3635 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3637 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3638 && test -z "${cf_tst_cflags}" \
3639 && cf_fix_cppflags=yes
3641 if test $cf_fix_cppflags = yes ; then
3642 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3644 elif test "${cf_tst_cflags}" = "\"'" ; then
3645 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3654 case $cf_add_cflags in
3656 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3658 CPPFLAGS=`echo "$CPPFLAGS" | \
3659 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3660 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3664 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3669 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3674 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3676 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3678 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3679 && test -z "${cf_tst_cflags}" \
3680 && cf_fix_cppflags=no
3685 if test -n "$cf_new_cflags" ; then
3686 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
3688 echo "${as_me:-configure}:3688: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
3690 CFLAGS="$CFLAGS $cf_new_cflags"
3693 if test -n "$cf_new_cppflags" ; then
3694 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
3696 echo "${as_me:-configure}:3696: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
3698 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3701 if test -n "$cf_new_extra_cppflags" ; then
3702 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
3704 echo "${as_me:-configure}:3704: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
3706 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3711 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3712 echo "$as_me:3712: checking if _XOPEN_SOURCE really is set" >&5
3713 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3714 cat >conftest.$ac_ext <<_ACEOF
3715 #line 3715 "configure"
3716 #include "confdefs.h"
3722 #ifndef _XOPEN_SOURCE
3729 rm -f conftest.$ac_objext
3730 if { (eval echo "$as_me:3730: \"$ac_compile\"") >&5
3731 (eval $ac_compile) 2>&5
3733 echo "$as_me:3733: \$? = $ac_status" >&5
3734 (exit $ac_status); } &&
3735 { ac_try='test -s conftest.$ac_objext'
3736 { (eval echo "$as_me:3736: \"$ac_try\"") >&5
3739 echo "$as_me:3739: \$? = $ac_status" >&5
3740 (exit $ac_status); }; }; then
3741 cf_XOPEN_SOURCE_set=yes
3743 echo "$as_me: failed program was:" >&5
3744 cat conftest.$ac_ext >&5
3745 cf_XOPEN_SOURCE_set=no
3747 rm -f conftest.$ac_objext conftest.$ac_ext
3748 echo "$as_me:3748: result: $cf_XOPEN_SOURCE_set" >&5
3749 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3750 if test $cf_XOPEN_SOURCE_set = yes
3752 cat >conftest.$ac_ext <<_ACEOF
3753 #line 3753 "configure"
3754 #include "confdefs.h"
3760 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:3768: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>&5
3771 echo "$as_me:3771: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -s conftest.$ac_objext'
3774 { (eval echo "$as_me:3774: \"$ac_try\"") >&5
3777 echo "$as_me:3777: \$? = $ac_status" >&5
3778 (exit $ac_status); }; }; then
3779 cf_XOPEN_SOURCE_set_ok=yes
3781 echo "$as_me: failed program was:" >&5
3782 cat conftest.$ac_ext >&5
3783 cf_XOPEN_SOURCE_set_ok=no
3785 rm -f conftest.$ac_objext conftest.$ac_ext
3786 if test $cf_XOPEN_SOURCE_set_ok = no
3788 { echo "$as_me:3788: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3789 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3793 echo "$as_me:3793: checking if we should define _XOPEN_SOURCE" >&5
3794 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3795 if test "${cf_cv_xopen_source+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 cat >conftest.$ac_ext <<_ACEOF
3800 #line 3800 "configure"
3801 #include "confdefs.h"
3805 #include <sys/types.h>
3811 #ifndef _XOPEN_SOURCE
3818 rm -f conftest.$ac_objext
3819 if { (eval echo "$as_me:3819: \"$ac_compile\"") >&5
3820 (eval $ac_compile) 2>&5
3822 echo "$as_me:3822: \$? = $ac_status" >&5
3823 (exit $ac_status); } &&
3824 { ac_try='test -s conftest.$ac_objext'
3825 { (eval echo "$as_me:3825: \"$ac_try\"") >&5
3828 echo "$as_me:3828: \$? = $ac_status" >&5
3829 (exit $ac_status); }; }; then
3830 cf_cv_xopen_source=no
3832 echo "$as_me: failed program was:" >&5
3833 cat conftest.$ac_ext >&5
3835 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3836 cat >conftest.$ac_ext <<_ACEOF
3837 #line 3837 "configure"
3838 #include "confdefs.h"
3842 #include <sys/types.h>
3848 #ifdef _XOPEN_SOURCE
3855 rm -f conftest.$ac_objext
3856 if { (eval echo "$as_me:3856: \"$ac_compile\"") >&5
3857 (eval $ac_compile) 2>&5
3859 echo "$as_me:3859: \$? = $ac_status" >&5
3860 (exit $ac_status); } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (eval echo "$as_me:3862: \"$ac_try\"") >&5
3865 echo "$as_me:3865: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 cf_cv_xopen_source=no
3869 echo "$as_me: failed program was:" >&5
3870 cat conftest.$ac_ext >&5
3871 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3873 rm -f conftest.$ac_objext conftest.$ac_ext
3877 rm -f conftest.$ac_objext conftest.$ac_ext
3880 echo "$as_me:3880: result: $cf_cv_xopen_source" >&5
3881 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3883 if test "$cf_cv_xopen_source" != no ; then
3885 CFLAGS=`echo "$CFLAGS" | \
3886 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3887 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3889 CPPFLAGS=`echo "$CPPFLAGS" | \
3890 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3891 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3893 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3898 cf_new_extra_cppflags=
3900 for cf_add_cflags in $cf_temp_xopen_source
3902 case $cf_fix_cppflags in
3904 case $cf_add_cflags in
3905 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3906 case $cf_add_cflags in
3908 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3910 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3911 && test -z "${cf_tst_cflags}" \
3912 && cf_fix_cppflags=yes
3914 if test $cf_fix_cppflags = yes ; then
3915 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3917 elif test "${cf_tst_cflags}" = "\"'" ; then
3918 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3927 case $cf_add_cflags in
3929 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3931 CPPFLAGS=`echo "$CPPFLAGS" | \
3932 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3933 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3937 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3942 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3947 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3949 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3951 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3952 && test -z "${cf_tst_cflags}" \
3953 && cf_fix_cppflags=no
3958 if test -n "$cf_new_cflags" ; then
3960 CFLAGS="$CFLAGS $cf_new_cflags"
3963 if test -n "$cf_new_cppflags" ; then
3965 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3968 if test -n "$cf_new_extra_cppflags" ; then
3970 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3978 echo "$as_me:3978: checking for signal global datatype" >&5
3979 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3980 if test "${cf_cv_sig_atomic_t+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 "volatile sig_atomic_t" \
3989 cat >conftest.$ac_ext <<_ACEOF
3990 #line 3990 "configure"
3991 #include "confdefs.h"
3993 #include <sys/types.h>
3999 static void handler(int sig)
4006 signal(SIGINT, handler);
4012 rm -f conftest.$ac_objext
4013 if { (eval echo "$as_me:4013: \"$ac_compile\"") >&5
4014 (eval $ac_compile) 2>&5
4016 echo "$as_me:4016: \$? = $ac_status" >&5
4017 (exit $ac_status); } &&
4018 { ac_try='test -s conftest.$ac_objext'
4019 { (eval echo "$as_me:4019: \"$ac_try\"") >&5
4022 echo "$as_me:4022: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4024 cf_cv_sig_atomic_t=$cf_type
4026 echo "$as_me: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4028 cf_cv_sig_atomic_t=no
4030 rm -f conftest.$ac_objext conftest.$ac_ext
4031 test "$cf_cv_sig_atomic_t" != no && break
4036 echo "$as_me:4036: result: $cf_cv_sig_atomic_t" >&5
4037 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4038 test "$cf_cv_sig_atomic_t" != no &&
4039 cat >>confdefs.h <<EOF
4040 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4043 echo "$as_me:4043: checking if you want to use pkg-config" >&5
4044 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4046 # Check whether --with-pkg-config or --without-pkg-config was given.
4047 if test "${with_pkg_config+set}" = set; then
4048 withval="$with_pkg_config"
4049 cf_pkg_config=$withval
4053 echo "$as_me:4053: result: $cf_pkg_config" >&5
4054 echo "${ECHO_T}$cf_pkg_config" >&6
4056 case $cf_pkg_config in
4062 if test -n "$ac_tool_prefix"; then
4063 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4064 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4065 echo "$as_me:4065: checking for $ac_word" >&5
4066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4067 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4072 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4075 ac_save_IFS=$IFS; IFS=$ac_path_separator
4077 for ac_dir in $ac_dummy; do
4079 test -z "$ac_dir" && ac_dir=.
4080 if $as_executable_p "$ac_dir/$ac_word"; then
4081 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4082 echo "$as_me:4082: found $ac_dir/$ac_word" >&5
4090 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4092 if test -n "$PKG_CONFIG"; then
4093 echo "$as_me:4093: result: $PKG_CONFIG" >&5
4094 echo "${ECHO_T}$PKG_CONFIG" >&6
4096 echo "$as_me:4096: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4101 if test -z "$ac_cv_path_PKG_CONFIG"; then
4102 ac_pt_PKG_CONFIG=$PKG_CONFIG
4103 # Extract the first word of "pkg-config", so it can be a program name with args.
4104 set dummy pkg-config; ac_word=$2
4105 echo "$as_me:4105: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4110 case $ac_pt_PKG_CONFIG in
4112 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4115 ac_save_IFS=$IFS; IFS=$ac_path_separator
4117 for ac_dir in $ac_dummy; do
4119 test -z "$ac_dir" && ac_dir=.
4120 if $as_executable_p "$ac_dir/$ac_word"; then
4121 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4122 echo "$as_me:4122: found $ac_dir/$ac_word" >&5
4127 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4131 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4133 if test -n "$ac_pt_PKG_CONFIG"; then
4134 echo "$as_me:4134: result: $ac_pt_PKG_CONFIG" >&5
4135 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4137 echo "$as_me:4137: result: no" >&5
4138 echo "${ECHO_T}no" >&6
4141 PKG_CONFIG=$ac_pt_PKG_CONFIG
4143 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4152 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4153 if test "$PKG_CONFIG" != none ; then
4155 if test "x$prefix" != xNONE; then
4156 cf_path_syntax="$prefix"
4158 cf_path_syntax="$ac_default_prefix"
4161 case ".$PKG_CONFIG" in
4166 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4168 (.\${*prefix}*|.\${*dir}*)
4169 eval PKG_CONFIG="$PKG_CONFIG"
4170 case ".$PKG_CONFIG" in
4172 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4177 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4180 { { echo "$as_me:4180: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4181 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4182 { (exit 1); exit 1; }; }
4186 elif test "x$cf_pkg_config" != xno ; then
4187 { echo "$as_me:4187: WARNING: pkg-config is not installed" >&5
4188 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4191 echo "$as_me:4191: checking if you want to see long compiling messages" >&5
4192 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4194 # Check whether --enable-echo or --disable-echo was given.
4195 if test "${enable_echo+set}" = set; then
4196 enableval="$enable_echo"
4197 test "$enableval" != no && enableval=yes
4198 if test "$enableval" != "yes" ; then
4201 ECHO_LD='@echo linking $@;'
4202 RULE_CC='@echo compiling $<'
4203 SHOW_CC='@echo compiling $@'
4225 echo "$as_me:4225: result: $enableval" >&5
4226 echo "${ECHO_T}$enableval" >&6
4228 echo "$as_me:4228: checking for ncurses wrap-prefix" >&5
4229 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
4231 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
4232 if test "${with_ncurses_wrap_prefix+set}" = set; then
4233 withval="$with_ncurses_wrap_prefix"
4234 NCURSES_WRAP_PREFIX=$withval
4236 NCURSES_WRAP_PREFIX=_nc_
4238 echo "$as_me:4238: result: $NCURSES_WRAP_PREFIX" >&5
4239 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
4241 echo "$as_me:4241: checking if you want to check for wide-character functions" >&5
4242 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
4244 # Check whether --enable-widec or --disable-widec was given.
4245 if test "${enable_widec+set}" = set; then
4246 enableval="$enable_widec"
4247 test "$enableval" != no && enableval=yes
4248 if test "$enableval" != "yes" ; then
4258 echo "$as_me:4258: result: $cf_enable_widec" >&5
4259 echo "${ECHO_T}$cf_enable_widec" >&6
4261 echo "$as_me:4261: checking for specific curses-directory" >&5
4262 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4264 # Check whether --with-curses-dir or --without-curses-dir was given.
4265 if test "${with_curses_dir+set}" = set; then
4266 withval="$with_curses_dir"
4267 cf_cv_curses_dir=$withval
4271 echo "$as_me:4271: result: $cf_cv_curses_dir" >&5
4272 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4274 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4277 if test "x$prefix" != xNONE; then
4278 cf_path_syntax="$prefix"
4280 cf_path_syntax="$ac_default_prefix"
4288 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4290 (.\${*prefix}*|.\${*dir}*)
4291 eval withval="$withval"
4294 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4299 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4302 { { echo "$as_me:4302: error: expected a pathname, not \"$withval\"" >&5
4303 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4304 { (exit 1); exit 1; }; }
4308 if test -d "$cf_cv_curses_dir"
4311 if test -n "$cf_cv_curses_dir/include" ; then
4312 for cf_add_incdir in $cf_cv_curses_dir/include
4314 while test $cf_add_incdir != /usr/include
4316 if test -d $cf_add_incdir
4319 if test -n "$CFLAGS$CPPFLAGS" ; then
4320 # a loop is needed to ensure we can add subdirs of existing dirs
4321 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4322 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4323 cf_have_incdir=yes; break
4328 if test "$cf_have_incdir" = no ; then
4329 if test "$cf_add_incdir" = /usr/local/include ; then
4330 if test "$GCC" = yes
4332 cf_save_CPPFLAGS=$CPPFLAGS
4333 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4334 cat >conftest.$ac_ext <<_ACEOF
4335 #line 4335 "configure"
4336 #include "confdefs.h"
4346 rm -f conftest.$ac_objext
4347 if { (eval echo "$as_me:4347: \"$ac_compile\"") >&5
4348 (eval $ac_compile) 2>&5
4350 echo "$as_me:4350: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:4353: \"$ac_try\"") >&5
4356 echo "$as_me:4356: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4360 echo "$as_me: failed program was:" >&5
4361 cat conftest.$ac_ext >&5
4364 rm -f conftest.$ac_objext conftest.$ac_ext
4365 CPPFLAGS=$cf_save_CPPFLAGS
4370 if test "$cf_have_incdir" = no ; then
4371 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4373 echo "${as_me:-configure}:4373: testing adding $cf_add_incdir to include-path ..." 1>&5
4375 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4377 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4378 test "$cf_top_incdir" = "$cf_add_incdir" && break
4379 cf_add_incdir="$cf_top_incdir"
4390 if test -n "$cf_cv_curses_dir/lib" ; then
4391 for cf_add_libdir in $cf_cv_curses_dir/lib
4393 if test $cf_add_libdir = /usr/lib ; then
4395 elif test -d $cf_add_libdir
4398 if test -n "$LDFLAGS$LIBS" ; then
4399 # a loop is needed to ensure we can add subdirs of existing dirs
4400 for cf_test_libdir in $LDFLAGS $LIBS ; do
4401 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4402 cf_have_libdir=yes; break
4406 if test "$cf_have_libdir" = no ; then
4407 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4409 echo "${as_me:-configure}:4409: testing adding $cf_add_libdir to library-path ..." 1>&5
4411 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4422 echo "$as_me:4422: checking for specified curses library type" >&5
4423 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
4425 # Check whether --with-screen or --without-screen was given.
4426 if test "${with_screen+set}" = set; then
4427 withval="$with_screen"
4428 cf_cv_screen=$withval
4431 # Check whether --with-ncursesw or --without-ncursesw was given.
4432 if test "${with_ncursesw+set}" = set; then
4433 withval="$with_ncursesw"
4434 cf_cv_screen=ncursesw
4437 # Check whether --with-ncurses or --without-ncurses was given.
4438 if test "${with_ncurses+set}" = set; then
4439 withval="$with_ncurses"
4440 cf_cv_screen=ncurses
4443 # Check whether --with-pdcurses or --without-pdcurses was given.
4444 if test "${with_pdcurses+set}" = set; then
4445 withval="$with_pdcurses"
4446 cf_cv_screen=pdcurses
4449 # Check whether --with-curses-colr or --without-curses-colr was given.
4450 if test "${with_curses_colr+set}" = set; then
4451 withval="$with_curses_colr"
4452 cf_cv_screen=curses_colr
4455 # Check whether --with-curses-5lib or --without-curses-5lib was given.
4456 if test "${with_curses_5lib+set}" = set; then
4457 withval="$with_curses_5lib"
4458 cf_cv_screen=curses_5lib
4466 echo "$as_me:4466: result: $cf_cv_screen" >&5
4467 echo "${ECHO_T}$cf_cv_screen" >&6
4469 case $cf_cv_screen in
4472 echo "$as_me:4472: checking for extra include directories" >&5
4473 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
4474 if test "${cf_cv_curses_incdir+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 cf_cv_curses_incdir=no
4481 if test "x$cf_cv_screen" = "xcurses_colr"
4483 test -d /usr/include/curses_colr && \
4484 cf_cv_curses_incdir="-I/usr/include/curses_colr"
4488 if test "x$cf_cv_screen" = "xcurses_5lib"
4490 test -d /usr/5lib && \
4491 test -d /usr/5include && \
4492 cf_cv_curses_incdir="-I/usr/5include"
4498 echo "$as_me:4498: result: $cf_cv_curses_incdir" >&5
4499 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
4500 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
4502 echo "$as_me:4502: checking if we have identified curses headers" >&5
4503 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4504 if test "${cf_cv_ncurses_header+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 cf_cv_ncurses_header=none
4511 curses.h ncurses/ncurses.h ncurses/curses.h
4513 cat >conftest.$ac_ext <<_ACEOF
4514 #line 4514 "configure"
4515 #include "confdefs.h"
4516 #include <${cf_header}>
4520 initscr(); tgoto("?", 0,0)
4525 rm -f conftest.$ac_objext
4526 if { (eval echo "$as_me:4526: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>&5
4529 echo "$as_me:4529: \$? = $ac_status" >&5
4530 (exit $ac_status); } &&
4531 { ac_try='test -s conftest.$ac_objext'
4532 { (eval echo "$as_me:4532: \"$ac_try\"") >&5
4535 echo "$as_me:4535: \$? = $ac_status" >&5
4536 (exit $ac_status); }; }; then
4537 cf_cv_ncurses_header=$cf_header; break
4539 echo "$as_me: failed program was:" >&5
4540 cat conftest.$ac_ext >&5
4542 rm -f conftest.$ac_objext conftest.$ac_ext
4546 echo "$as_me:4546: result: $cf_cv_ncurses_header" >&5
4547 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4549 if test "$cf_cv_ncurses_header" = none ; then
4550 { { echo "$as_me:4550: error: No curses header-files found" >&5
4551 echo "$as_me: error: No curses header-files found" >&2;}
4552 { (exit 1); exit 1; }; }
4555 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4557 for ac_header in $cf_cv_ncurses_header
4559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4560 echo "$as_me:4560: checking for $ac_header" >&5
4561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4565 cat >conftest.$ac_ext <<_ACEOF
4566 #line 4566 "configure"
4567 #include "confdefs.h"
4568 #include <$ac_header>
4570 if { (eval echo "$as_me:4570: \"$ac_cpp conftest.$ac_ext\"") >&5
4571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4573 egrep -v '^ *\+' conftest.er1 >conftest.err
4575 cat conftest.err >&5
4576 echo "$as_me:4576: \$? = $ac_status" >&5
4577 (exit $ac_status); } >/dev/null; then
4578 if test -s conftest.err; then
4579 ac_cpp_err=$ac_c_preproc_warn_flag
4586 if test -z "$ac_cpp_err"; then
4587 eval "$as_ac_Header=yes"
4589 echo "$as_me: failed program was:" >&5
4590 cat conftest.$ac_ext >&5
4591 eval "$as_ac_Header=no"
4593 rm -f conftest.err conftest.$ac_ext
4595 echo "$as_me:4595: result: `eval echo '${'$as_ac_Header'}'`" >&5
4596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4598 cat >>confdefs.h <<EOF
4599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4605 echo "$as_me:4605: checking for terminfo header" >&5
4606 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4607 if test "${cf_cv_term_header+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 case ${cf_cv_ncurses_header} in
4612 (*/ncurses.h|*/ncursesw.h)
4613 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4616 cf_term_header=term.h
4620 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4622 cat >conftest.$ac_ext <<_ACEOF
4623 #line 4623 "configure"
4624 #include "confdefs.h"
4626 #include <${cf_cv_ncurses_header:-curses.h}>
4632 int x = auto_left_margin
4637 rm -f conftest.$ac_objext
4638 if { (eval echo "$as_me:4638: \"$ac_compile\"") >&5
4639 (eval $ac_compile) 2>&5
4641 echo "$as_me:4641: \$? = $ac_status" >&5
4642 (exit $ac_status); } &&
4643 { ac_try='test -s conftest.$ac_objext'
4644 { (eval echo "$as_me:4644: \"$ac_try\"") >&5
4647 echo "$as_me:4647: \$? = $ac_status" >&5
4648 (exit $ac_status); }; }; then
4650 cf_cv_term_header="$cf_test"
4652 echo "$as_me: failed program was:" >&5
4653 cat conftest.$ac_ext >&5
4655 cf_cv_term_header=unknown
4658 rm -f conftest.$ac_objext conftest.$ac_ext
4659 test "$cf_cv_term_header" != unknown && break
4663 echo "$as_me:4663: result: $cf_cv_term_header" >&5
4664 echo "${ECHO_T}$cf_cv_term_header" >&6
4666 # Set definitions to allow ifdef'ing to accommodate subdirectories
4668 case $cf_cv_term_header in
4671 cat >>confdefs.h <<\EOF
4672 #define HAVE_TERM_H 1
4678 case $cf_cv_term_header in
4681 cat >>confdefs.h <<\EOF
4682 #define HAVE_NCURSES_TERM_H 1
4688 cat >>confdefs.h <<\EOF
4689 #define HAVE_NCURSESW_TERM_H 1
4695 echo "$as_me:4695: checking for ncurses version" >&5
4696 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
4697 if test "${cf_cv_ncurses_version+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 cf_cv_ncurses_version=no
4704 if test "$cross_compiling" = yes; then
4706 # This will not work if the preprocessor splits the line after the
4707 # Autoconf token. The 'unproto' program does that.
4708 cat > conftest.$ac_ext <<EOF
4709 #include <${cf_cv_ncurses_header:-curses.h}>
4711 #ifdef NCURSES_VERSION
4712 Autoconf NCURSES_VERSION
4720 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
4721 { (eval echo "$as_me:4721: \"$cf_try\"") >&5
4724 echo "$as_me:4724: \$? = $ac_status" >&5
4725 (exit $ac_status); }
4726 if test -f conftest.out ; then
4727 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
4728 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
4733 cat >conftest.$ac_ext <<_ACEOF
4734 #line 4734 "configure"
4735 #include "confdefs.h"
4737 #include <${cf_cv_ncurses_header:-curses.h}>
4741 FILE *fp = fopen("$cf_tempfile", "w");
4742 #ifdef NCURSES_VERSION
4743 # ifdef NCURSES_VERSION_PATCH
4744 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
4746 fprintf(fp, "%s\n", NCURSES_VERSION);
4750 fprintf(fp, "old\n");
4755 ${cf_cv_main_return:-return}(0);
4758 rm -f conftest$ac_exeext
4759 if { (eval echo "$as_me:4759: \"$ac_link\"") >&5
4760 (eval $ac_link) 2>&5
4762 echo "$as_me:4762: \$? = $ac_status" >&5
4763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4764 { (eval echo "$as_me:4764: \"$ac_try\"") >&5
4767 echo "$as_me:4767: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4770 cf_cv_ncurses_version=`cat $cf_tempfile`
4772 echo "$as_me: program exited with status $ac_status" >&5
4773 echo "$as_me: failed program was:" >&5
4774 cat conftest.$ac_ext >&5
4776 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4781 echo "$as_me:4781: result: $cf_cv_ncurses_version" >&5
4782 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
4783 test "$cf_cv_ncurses_version" = no ||
4784 cat >>confdefs.h <<\EOF
4788 echo "$as_me:4788: checking if we have identified curses libraries" >&5
4789 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
4790 cat >conftest.$ac_ext <<_ACEOF
4791 #line 4791 "configure"
4792 #include "confdefs.h"
4793 #include <${cf_cv_ncurses_header:-curses.h}>
4797 initscr(); tgoto("?", 0,0)
4802 rm -f conftest.$ac_objext conftest$ac_exeext
4803 if { (eval echo "$as_me:4803: \"$ac_link\"") >&5
4804 (eval $ac_link) 2>&5
4806 echo "$as_me:4806: \$? = $ac_status" >&5
4807 (exit $ac_status); } &&
4808 { ac_try='test -s conftest$ac_exeext'
4809 { (eval echo "$as_me:4809: \"$ac_try\"") >&5
4812 echo "$as_me:4812: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4816 echo "$as_me: failed program was:" >&5
4817 cat conftest.$ac_ext >&5
4820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4821 echo "$as_me:4821: result: $cf_result" >&5
4822 echo "${ECHO_T}$cf_result" >&6
4824 if test "$cf_result" = no ; then
4827 echo "$as_me:4827: checking for tgoto in -lmytinfo" >&5
4828 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
4829 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
4830 echo $ECHO_N "(cached) $ECHO_C" >&6
4832 ac_check_lib_save_LIBS=$LIBS
4833 LIBS="-lmytinfo $LIBS"
4834 cat >conftest.$ac_ext <<_ACEOF
4835 #line 4835 "configure"
4836 #include "confdefs.h"
4838 /* Override any gcc2 internal prototype to avoid an error. */
4842 /* We use char because int might match the return type of a gcc2
4843 builtin and then its argument prototype would still apply. */
4853 rm -f conftest.$ac_objext conftest$ac_exeext
4854 if { (eval echo "$as_me:4854: \"$ac_link\"") >&5
4855 (eval $ac_link) 2>&5
4857 echo "$as_me:4857: \$? = $ac_status" >&5
4858 (exit $ac_status); } &&
4859 { ac_try='test -s conftest$ac_exeext'
4860 { (eval echo "$as_me:4860: \"$ac_try\"") >&5
4863 echo "$as_me:4863: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
4865 ac_cv_lib_mytinfo_tgoto=yes
4867 echo "$as_me: failed program was:" >&5
4868 cat conftest.$ac_ext >&5
4869 ac_cv_lib_mytinfo_tgoto=no
4871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4872 LIBS=$ac_check_lib_save_LIBS
4874 echo "$as_me:4874: result: $ac_cv_lib_mytinfo_tgoto" >&5
4875 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
4876 if test $ac_cv_lib_mytinfo_tgoto = yes; then
4878 cf_add_libs="-lmytinfo"
4879 # Filter out duplicates - this happens with badly-designed ".pc" files...
4880 for cf_add_1lib in $LIBS
4882 for cf_add_2lib in $cf_add_libs
4884 if test "x$cf_add_1lib" = "x$cf_add_2lib"
4890 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
4898 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
4899 # next (1998), and xcurses "newer" (2000). There is no header file for
4900 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
4901 # term.h) for cur_colr
4902 if test "x$cf_cv_screen" = "xcurses_colr"
4904 echo "$as_me:4904: checking for initscr in -lcur_colr" >&5
4905 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
4906 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 ac_check_lib_save_LIBS=$LIBS
4910 LIBS="-lcur_colr $LIBS"
4911 cat >conftest.$ac_ext <<_ACEOF
4912 #line 4912 "configure"
4913 #include "confdefs.h"
4915 /* Override any gcc2 internal prototype to avoid an error. */
4919 /* We use char because int might match the return type of a gcc2
4920 builtin and then its argument prototype would still apply. */
4930 rm -f conftest.$ac_objext conftest$ac_exeext
4931 if { (eval echo "$as_me:4931: \"$ac_link\"") >&5
4932 (eval $ac_link) 2>&5
4934 echo "$as_me:4934: \$? = $ac_status" >&5
4935 (exit $ac_status); } &&
4936 { ac_try='test -s conftest$ac_exeext'
4937 { (eval echo "$as_me:4937: \"$ac_try\"") >&5
4940 echo "$as_me:4940: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4942 ac_cv_lib_cur_colr_initscr=yes
4944 echo "$as_me: failed program was:" >&5
4945 cat conftest.$ac_ext >&5
4946 ac_cv_lib_cur_colr_initscr=no
4948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4949 LIBS=$ac_check_lib_save_LIBS
4951 echo "$as_me:4951: result: $ac_cv_lib_cur_colr_initscr" >&5
4952 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
4953 if test $ac_cv_lib_cur_colr_initscr = yes; then
4955 cf_add_libs="-lcur_colr"
4956 # Filter out duplicates - this happens with badly-designed ".pc" files...
4957 for cf_add_1lib in $LIBS
4959 for cf_add_2lib in $cf_add_libs
4961 if test "x$cf_add_1lib" = "x$cf_add_2lib"
4967 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
4971 ac_cv_func_initscr=yes
4975 echo "$as_me:4975: checking for initscr in -lHcurses" >&5
4976 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
4977 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 ac_check_lib_save_LIBS=$LIBS
4981 LIBS="-lHcurses $LIBS"
4982 cat >conftest.$ac_ext <<_ACEOF
4983 #line 4983 "configure"
4984 #include "confdefs.h"
4986 /* Override any gcc2 internal prototype to avoid an error. */
4990 /* We use char because int might match the return type of a gcc2
4991 builtin and then its argument prototype would still apply. */
5001 rm -f conftest.$ac_objext conftest$ac_exeext
5002 if { (eval echo "$as_me:5002: \"$ac_link\"") >&5
5003 (eval $ac_link) 2>&5
5005 echo "$as_me:5005: \$? = $ac_status" >&5
5006 (exit $ac_status); } &&
5007 { ac_try='test -s conftest$ac_exeext'
5008 { (eval echo "$as_me:5008: \"$ac_try\"") >&5
5011 echo "$as_me:5011: \$? = $ac_status" >&5
5012 (exit $ac_status); }; }; then
5013 ac_cv_lib_Hcurses_initscr=yes
5015 echo "$as_me: failed program was:" >&5
5016 cat conftest.$ac_ext >&5
5017 ac_cv_lib_Hcurses_initscr=no
5019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5020 LIBS=$ac_check_lib_save_LIBS
5022 echo "$as_me:5022: result: $ac_cv_lib_Hcurses_initscr" >&5
5023 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5024 if test $ac_cv_lib_Hcurses_initscr = yes; then
5026 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5028 cf_add_libs="-lHcurses"
5029 # Filter out duplicates - this happens with badly-designed ".pc" files...
5030 for cf_add_1lib in $LIBS
5032 for cf_add_2lib in $cf_add_libs
5034 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5040 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5044 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
5045 ac_cv_func_initscr=yes
5054 case `arch 2>/dev/null` in
5059 if test -n "/lib64" ; then
5060 for cf_add_libdir in /lib64
5062 if test $cf_add_libdir = /usr/lib ; then
5064 elif test -d $cf_add_libdir
5067 if test -n "$LDFLAGS$LIBS" ; then
5068 # a loop is needed to ensure we can add subdirs of existing dirs
5069 for cf_test_libdir in $LDFLAGS $LIBS ; do
5070 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5071 cf_have_libdir=yes; break
5075 if test "$cf_have_libdir" = no ; then
5076 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5078 echo "${as_me:-configure}:5078: testing adding $cf_add_libdir to library-path ..." 1>&5
5080 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5088 if test -n "/lib" ; then
5089 for cf_add_libdir in /lib
5091 if test $cf_add_libdir = /usr/lib ; then
5093 elif test -d $cf_add_libdir
5096 if test -n "$LDFLAGS$LIBS" ; then
5097 # a loop is needed to ensure we can add subdirs of existing dirs
5098 for cf_test_libdir in $LDFLAGS $LIBS ; do
5099 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5100 cf_have_libdir=yes; break
5104 if test "$cf_have_libdir" = no ; then
5105 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5107 echo "${as_me:-configure}:5107: testing adding $cf_add_libdir to library-path ..." 1>&5
5109 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5119 if test -n "/lib" ; then
5120 for cf_add_libdir in /lib
5122 if test $cf_add_libdir = /usr/lib ; then
5124 elif test -d $cf_add_libdir
5127 if test -n "$LDFLAGS$LIBS" ; then
5128 # a loop is needed to ensure we can add subdirs of existing dirs
5129 for cf_test_libdir in $LDFLAGS $LIBS ; do
5130 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5131 cf_have_libdir=yes; break
5135 if test "$cf_have_libdir" = no ; then
5136 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5138 echo "${as_me:-configure}:5138: testing adding $cf_add_libdir to library-path ..." 1>&5
5140 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5150 if test "x$cf_cv_screen" = "xcurses_5lib"
5152 if test -d /usr/5lib ; then
5154 if test -n "/usr/5lib" ; then
5155 for cf_add_libdir in /usr/5lib
5157 if test $cf_add_libdir = /usr/lib ; then
5159 elif test -d $cf_add_libdir
5162 if test -n "$LDFLAGS$LIBS" ; then
5163 # a loop is needed to ensure we can add subdirs of existing dirs
5164 for cf_test_libdir in $LDFLAGS $LIBS ; do
5165 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5166 cf_have_libdir=yes; break
5170 if test "$cf_have_libdir" = no ; then
5171 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5173 echo "${as_me:-configure}:5173: testing adding $cf_add_libdir to library-path ..." 1>&5
5175 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5181 cf_add_libs="-lcurses -ltermcap"
5182 # Filter out duplicates - this happens with badly-designed ".pc" files...
5183 for cf_add_1lib in $LIBS
5185 for cf_add_2lib in $cf_add_libs
5187 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5193 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5199 ac_cv_func_initscr=yes
5203 if test ".$ac_cv_func_initscr" != .yes ; then
5204 cf_save_LIBS="$LIBS"
5206 if test ".${cf_cv_ncurses_version:-no}" != .no
5208 cf_check_list="ncurses curses cursesX"
5210 cf_check_list="cursesX curses ncurses"
5213 # Check for library containing tgoto. Do this before curses library
5214 # because it may be needed to link the test-case for initscr.
5215 if test "x$cf_term_lib" = x
5217 echo "$as_me:5217: checking for tgoto" >&5
5218 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5219 if test "${ac_cv_func_tgoto+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 cat >conftest.$ac_ext <<_ACEOF
5223 #line 5223 "configure"
5224 #include "confdefs.h"
5225 /* System header to define __stub macros and hopefully few prototypes,
5226 which can conflict with char tgoto (); below. */
5228 /* Override any gcc2 internal prototype to avoid an error. */
5232 /* We use char because int might match the return type of a gcc2
5233 builtin and then its argument prototype would still apply. */
5240 /* The GNU C library defines this for functions which it implements
5241 to always fail with ENOSYS. Some functions are actually named
5242 something starting with __ and the normal name is an alias. */
5243 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5246 f = tgoto; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5253 rm -f conftest.$ac_objext conftest$ac_exeext
5254 if { (eval echo "$as_me:5254: \"$ac_link\"") >&5
5255 (eval $ac_link) 2>&5
5257 echo "$as_me:5257: \$? = $ac_status" >&5
5258 (exit $ac_status); } &&
5259 { ac_try='test -s conftest$ac_exeext'
5260 { (eval echo "$as_me:5260: \"$ac_try\"") >&5
5263 echo "$as_me:5263: \$? = $ac_status" >&5
5264 (exit $ac_status); }; }; then
5265 ac_cv_func_tgoto=yes
5267 echo "$as_me: failed program was:" >&5
5268 cat conftest.$ac_ext >&5
5271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5273 echo "$as_me:5273: result: $ac_cv_func_tgoto" >&5
5274 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5275 if test $ac_cv_func_tgoto = yes; then
5276 cf_term_lib=predefined
5279 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
5281 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5282 echo "$as_me:5282: checking for tgoto in -l$cf_term_lib" >&5
5283 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5284 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 ac_check_lib_save_LIBS=$LIBS
5288 LIBS="-l$cf_term_lib $LIBS"
5289 cat >conftest.$ac_ext <<_ACEOF
5290 #line 5290 "configure"
5291 #include "confdefs.h"
5293 /* Override any gcc2 internal prototype to avoid an error. */
5297 /* We use char because int might match the return type of a gcc2
5298 builtin and then its argument prototype would still apply. */
5308 rm -f conftest.$ac_objext conftest$ac_exeext
5309 if { (eval echo "$as_me:5309: \"$ac_link\"") >&5
5310 (eval $ac_link) 2>&5
5312 echo "$as_me:5312: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -s conftest$ac_exeext'
5315 { (eval echo "$as_me:5315: \"$ac_try\"") >&5
5318 echo "$as_me:5318: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 eval "$as_ac_Lib=yes"
5322 echo "$as_me: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5324 eval "$as_ac_Lib=no"
5326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5327 LIBS=$ac_check_lib_save_LIBS
5329 echo "$as_me:5329: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5330 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5331 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5341 # Check for library containing initscr
5342 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5343 if test "x$cf_curs_lib" = x
5345 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
5347 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5348 echo "$as_me:5348: checking for initscr in -l$cf_curs_lib" >&5
5349 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5350 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 ac_check_lib_save_LIBS=$LIBS
5354 LIBS="-l$cf_curs_lib $LIBS"
5355 cat >conftest.$ac_ext <<_ACEOF
5356 #line 5356 "configure"
5357 #include "confdefs.h"
5359 /* Override any gcc2 internal prototype to avoid an error. */
5363 /* We use char because int might match the return type of a gcc2
5364 builtin and then its argument prototype would still apply. */
5374 rm -f conftest.$ac_objext conftest$ac_exeext
5375 if { (eval echo "$as_me:5375: \"$ac_link\"") >&5
5376 (eval $ac_link) 2>&5
5378 echo "$as_me:5378: \$? = $ac_status" >&5
5379 (exit $ac_status); } &&
5380 { ac_try='test -s conftest$ac_exeext'
5381 { (eval echo "$as_me:5381: \"$ac_try\"") >&5
5384 echo "$as_me:5384: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5386 eval "$as_ac_Lib=yes"
5388 echo "$as_me: failed program was:" >&5
5389 cat conftest.$ac_ext >&5
5390 eval "$as_ac_Lib=no"
5392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5393 LIBS=$ac_check_lib_save_LIBS
5395 echo "$as_me:5395: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5396 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5397 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5403 test $cf_curs_lib = unknown && { { echo "$as_me:5403: error: no curses library found" >&5
5404 echo "$as_me: error: no curses library found" >&2;}
5405 { (exit 1); exit 1; }; }
5407 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5408 if test "$cf_term_lib" = unknown ; then
5409 echo "$as_me:5409: checking if we can link with $cf_curs_lib library" >&5
5410 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5411 cat >conftest.$ac_ext <<_ACEOF
5412 #line 5412 "configure"
5413 #include "confdefs.h"
5414 #include <${cf_cv_ncurses_header:-curses.h}>
5423 rm -f conftest.$ac_objext conftest$ac_exeext
5424 if { (eval echo "$as_me:5424: \"$ac_link\"") >&5
5425 (eval $ac_link) 2>&5
5427 echo "$as_me:5427: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -s conftest$ac_exeext'
5430 { (eval echo "$as_me:5430: \"$ac_try\"") >&5
5433 echo "$as_me:5433: \$? = $ac_status" >&5
5434 (exit $ac_status); }; }; then
5437 echo "$as_me: failed program was:" >&5
5438 cat conftest.$ac_ext >&5
5441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5442 echo "$as_me:5442: result: $cf_result" >&5
5443 echo "${ECHO_T}$cf_result" >&6
5444 test $cf_result = no && { { echo "$as_me:5444: error: Cannot link curses library" >&5
5445 echo "$as_me: error: Cannot link curses library" >&2;}
5446 { (exit 1); exit 1; }; }
5447 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
5449 elif test "$cf_term_lib" != predefined ; then
5450 echo "$as_me:5450: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5451 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5452 cat >conftest.$ac_ext <<_ACEOF
5453 #line 5453 "configure"
5454 #include "confdefs.h"
5455 #include <${cf_cv_ncurses_header:-curses.h}>
5459 initscr(); tgoto((char *)0, 0, 0);
5464 rm -f conftest.$ac_objext conftest$ac_exeext
5465 if { (eval echo "$as_me:5465: \"$ac_link\"") >&5
5466 (eval $ac_link) 2>&5
5468 echo "$as_me:5468: \$? = $ac_status" >&5
5469 (exit $ac_status); } &&
5470 { ac_try='test -s conftest$ac_exeext'
5471 { (eval echo "$as_me:5471: \"$ac_try\"") >&5
5474 echo "$as_me:5474: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then
5478 echo "$as_me: failed program was:" >&5
5479 cat conftest.$ac_ext >&5
5481 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5482 cat >conftest.$ac_ext <<_ACEOF
5483 #line 5483 "configure"
5484 #include "confdefs.h"
5485 #include <${cf_cv_ncurses_header:-curses.h}>
5494 rm -f conftest.$ac_objext conftest$ac_exeext
5495 if { (eval echo "$as_me:5495: \"$ac_link\"") >&5
5496 (eval $ac_link) 2>&5
5498 echo "$as_me:5498: \$? = $ac_status" >&5
5499 (exit $ac_status); } &&
5500 { ac_try='test -s conftest$ac_exeext'
5501 { (eval echo "$as_me:5501: \"$ac_try\"") >&5
5504 echo "$as_me:5504: \$? = $ac_status" >&5
5505 (exit $ac_status); }; }; then
5508 echo "$as_me: failed program was:" >&5
5509 cat conftest.$ac_ext >&5
5512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5516 echo "$as_me:5516: result: $cf_result" >&5
5517 echo "${ECHO_T}$cf_result" >&6
5525 echo "$as_me:5525: checking for multibyte character support" >&5
5526 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
5527 if test "${cf_cv_utf8_lib+set}" = set; then
5528 echo $ECHO_N "(cached) $ECHO_C" >&6
5531 cf_save_LIBS="$LIBS"
5532 cat >conftest.$ac_ext <<_ACEOF
5533 #line 5533 "configure"
5534 #include "confdefs.h"
5545 rm -f conftest.$ac_objext conftest$ac_exeext
5546 if { (eval echo "$as_me:5546: \"$ac_link\"") >&5
5547 (eval $ac_link) 2>&5
5549 echo "$as_me:5549: \$? = $ac_status" >&5
5550 (exit $ac_status); } &&
5551 { ac_try='test -s conftest$ac_exeext'
5552 { (eval echo "$as_me:5552: \"$ac_try\"") >&5
5555 echo "$as_me:5555: \$? = $ac_status" >&5
5556 (exit $ac_status); }; }; then
5559 echo "$as_me: failed program was:" >&5
5560 cat conftest.$ac_ext >&5
5562 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
5563 # will be set on completion of the AC_TRY_LINK below.
5564 cf_cv_header_path_utf8=
5565 cf_cv_library_path_utf8=
5567 echo "${as_me:-configure}:5567: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
5569 cf_save_LIBS="$LIBS"
5571 cat >conftest.$ac_ext <<_ACEOF
5572 #line 5572 "configure"
5573 #include "confdefs.h"
5575 #include <libutf8.h>
5584 rm -f conftest.$ac_objext conftest$ac_exeext
5585 if { (eval echo "$as_me:5585: \"$ac_link\"") >&5
5586 (eval $ac_link) 2>&5
5588 echo "$as_me:5588: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 { ac_try='test -s conftest$ac_exeext'
5591 { (eval echo "$as_me:5591: \"$ac_try\"") >&5
5594 echo "$as_me:5594: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5597 cf_cv_find_linkage_utf8=yes
5598 cf_cv_header_path_utf8=/usr/include
5599 cf_cv_library_path_utf8=/usr/lib
5602 echo "$as_me: failed program was:" >&5
5603 cat conftest.$ac_ext >&5
5605 LIBS="-lutf8 $cf_save_LIBS"
5607 cat >conftest.$ac_ext <<_ACEOF
5608 #line 5608 "configure"
5609 #include "confdefs.h"
5611 #include <libutf8.h>
5620 rm -f conftest.$ac_objext conftest$ac_exeext
5621 if { (eval echo "$as_me:5621: \"$ac_link\"") >&5
5622 (eval $ac_link) 2>&5
5624 echo "$as_me:5624: \$? = $ac_status" >&5
5625 (exit $ac_status); } &&
5626 { ac_try='test -s conftest$ac_exeext'
5627 { (eval echo "$as_me:5627: \"$ac_try\"") >&5
5630 echo "$as_me:5630: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5633 cf_cv_find_linkage_utf8=yes
5634 cf_cv_header_path_utf8=/usr/include
5635 cf_cv_library_path_utf8=/usr/lib
5636 cf_cv_library_file_utf8="-lutf8"
5639 echo "$as_me: failed program was:" >&5
5640 cat conftest.$ac_ext >&5
5642 cf_cv_find_linkage_utf8=no
5643 LIBS="$cf_save_LIBS"
5645 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
5647 echo "${as_me:-configure}:5647: testing find linkage for utf8 library ..." 1>&5
5649 echo "${as_me:-configure}:5649: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
5651 cf_save_CPPFLAGS="$CPPFLAGS"
5652 cf_test_CPPFLAGS="$CPPFLAGS"
5656 # collect the current set of include-directories from compiler flags
5657 cf_header_path_list=""
5658 if test -n "${CFLAGS}${CPPFLAGS}" ; then
5659 for cf_header_path in $CPPFLAGS $CFLAGS
5661 case $cf_header_path in
5663 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
5665 test "x$cf_header_path" != "xNONE" && \
5666 test -d "$cf_header_path" && \
5668 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
5669 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
5670 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
5671 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
5672 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
5673 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
5676 cf_header_path_list="$cf_header_path_list $cf_search"
5682 # add the variations for the package we are looking for
5686 test "x$prefix" != "xNONE" && \
5687 test -d "$prefix" && \
5689 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
5690 test -d $prefix/include && cf_search="$cf_search $prefix/include"
5691 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
5692 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
5693 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
5694 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
5697 for cf_subdir_prefix in \
5706 test "x$cf_subdir_prefix" != "x$prefix" && \
5707 test -d "$cf_subdir_prefix" && \
5708 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
5709 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
5710 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
5711 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
5712 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
5713 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
5714 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
5719 test "$includedir" != NONE && \
5720 test "$includedir" != "/usr/include" && \
5721 test -d "$includedir" && {
5722 test -d $includedir && cf_search="$cf_search $includedir"
5723 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
5726 test "$oldincludedir" != NONE && \
5727 test "$oldincludedir" != "/usr/include" && \
5728 test -d "$oldincludedir" && {
5729 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
5730 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
5733 cf_search="$cf_search $cf_header_path_list"
5735 for cf_cv_header_path_utf8 in $cf_search
5737 if test -d $cf_cv_header_path_utf8 ; then
5738 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
5740 echo "${as_me:-configure}:5740: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
5742 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
5743 cat >conftest.$ac_ext <<_ACEOF
5744 #line 5744 "configure"
5745 #include "confdefs.h"
5747 #include <libutf8.h>
5756 rm -f conftest.$ac_objext
5757 if { (eval echo "$as_me:5757: \"$ac_compile\"") >&5
5758 (eval $ac_compile) 2>&5
5760 echo "$as_me:5760: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -s conftest.$ac_objext'
5763 { (eval echo "$as_me:5763: \"$ac_try\"") >&5
5766 echo "$as_me:5766: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5769 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
5771 echo "${as_me:-configure}:5771: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
5773 cf_cv_find_linkage_utf8=maybe
5774 cf_test_CPPFLAGS="$CPPFLAGS"
5777 echo "$as_me: failed program was:" >&5
5778 cat conftest.$ac_ext >&5
5780 CPPFLAGS="$cf_save_CPPFLAGS"
5783 rm -f conftest.$ac_objext conftest.$ac_ext
5787 if test "$cf_cv_find_linkage_utf8" = maybe ; then
5789 echo "${as_me:-configure}:5789: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
5791 cf_save_LIBS="$LIBS"
5792 cf_save_LDFLAGS="$LDFLAGS"
5794 if test "$cf_cv_find_linkage_utf8" != yes ; then
5797 cf_library_path_list=""
5798 if test -n "${LDFLAGS}${LIBS}" ; then
5799 for cf_library_path in $LDFLAGS $LIBS
5801 case $cf_library_path in
5803 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
5805 test "x$cf_library_path" != "xNONE" && \
5806 test -d "$cf_library_path" && \
5808 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
5809 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
5810 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
5811 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
5812 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
5813 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
5816 cf_library_path_list="$cf_library_path_list $cf_search"
5824 test "x$prefix" != "xNONE" && \
5825 test -d "$prefix" && \
5827 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
5828 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
5829 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
5830 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
5831 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
5832 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
5835 for cf_subdir_prefix in \
5844 test "x$cf_subdir_prefix" != "x$prefix" && \
5845 test -d "$cf_subdir_prefix" && \
5846 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
5847 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
5848 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
5849 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
5850 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
5851 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
5852 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
5857 cf_search="$cf_library_path_list $cf_search"
5859 for cf_cv_library_path_utf8 in $cf_search
5861 if test -d $cf_cv_library_path_utf8 ; then
5862 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
5864 echo "${as_me:-configure}:5864: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
5866 CPPFLAGS="$cf_test_CPPFLAGS"
5867 LIBS="-lutf8 $cf_save_LIBS"
5868 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
5869 cat >conftest.$ac_ext <<_ACEOF
5870 #line 5870 "configure"
5871 #include "confdefs.h"
5873 #include <libutf8.h>
5882 rm -f conftest.$ac_objext conftest$ac_exeext
5883 if { (eval echo "$as_me:5883: \"$ac_link\"") >&5
5884 (eval $ac_link) 2>&5
5886 echo "$as_me:5886: \$? = $ac_status" >&5
5887 (exit $ac_status); } &&
5888 { ac_try='test -s conftest$ac_exeext'
5889 { (eval echo "$as_me:5889: \"$ac_try\"") >&5
5892 echo "$as_me:5892: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5895 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
5897 echo "${as_me:-configure}:5897: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
5899 cf_cv_find_linkage_utf8=yes
5900 cf_cv_library_file_utf8="-lutf8"
5903 echo "$as_me: failed program was:" >&5
5904 cat conftest.$ac_ext >&5
5906 CPPFLAGS="$cf_save_CPPFLAGS"
5907 LIBS="$cf_save_LIBS"
5908 LDFLAGS="$cf_save_LDFLAGS"
5911 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5914 CPPFLAGS="$cf_save_CPPFLAGS"
5915 LDFLAGS="$cf_save_LDFLAGS"
5919 cf_cv_find_linkage_utf8=no
5923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5928 LIBS="$cf_save_LIBS"
5930 if test "$cf_cv_find_linkage_utf8" = yes ; then
5931 cf_cv_utf8_lib=add-on
5937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5939 echo "$as_me:5939: result: $cf_cv_utf8_lib" >&5
5940 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
5942 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
5944 if test "$cf_cv_utf8_lib" = "add-on" ; then
5946 cat >>confdefs.h <<\EOF
5947 #define HAVE_LIBUTF8_H 1
5950 if test -n "$cf_cv_header_path_utf8" ; then
5951 for cf_add_incdir in $cf_cv_header_path_utf8
5953 while test $cf_add_incdir != /usr/include
5955 if test -d $cf_add_incdir
5958 if test -n "$CFLAGS$CPPFLAGS" ; then
5959 # a loop is needed to ensure we can add subdirs of existing dirs
5960 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5961 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5962 cf_have_incdir=yes; break
5967 if test "$cf_have_incdir" = no ; then
5968 if test "$cf_add_incdir" = /usr/local/include ; then
5969 if test "$GCC" = yes
5971 cf_save_CPPFLAGS=$CPPFLAGS
5972 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5973 cat >conftest.$ac_ext <<_ACEOF
5974 #line 5974 "configure"
5975 #include "confdefs.h"
5985 rm -f conftest.$ac_objext
5986 if { (eval echo "$as_me:5986: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>&5
5989 echo "$as_me:5989: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -s conftest.$ac_objext'
5992 { (eval echo "$as_me:5992: \"$ac_try\"") >&5
5995 echo "$as_me:5995: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5999 echo "$as_me: failed program was:" >&5
6000 cat conftest.$ac_ext >&5
6003 rm -f conftest.$ac_objext conftest.$ac_ext
6004 CPPFLAGS=$cf_save_CPPFLAGS
6009 if test "$cf_have_incdir" = no ; then
6010 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6012 echo "${as_me:-configure}:6012: testing adding $cf_add_incdir to include-path ..." 1>&5
6014 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6016 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6017 test "$cf_top_incdir" = "$cf_add_incdir" && break
6018 cf_add_incdir="$cf_top_incdir"
6029 if test -n "$cf_cv_library_path_utf8" ; then
6030 for cf_add_libdir in $cf_cv_library_path_utf8
6032 if test $cf_add_libdir = /usr/lib ; then
6034 elif test -d $cf_add_libdir
6037 if test -n "$LDFLAGS$LIBS" ; then
6038 # a loop is needed to ensure we can add subdirs of existing dirs
6039 for cf_test_libdir in $LDFLAGS $LIBS ; do
6040 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6041 cf_have_libdir=yes; break
6045 if test "$cf_have_libdir" = no ; then
6046 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6048 echo "${as_me:-configure}:6048: testing adding $cf_add_libdir to library-path ..." 1>&5
6050 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6056 cf_add_libs="$cf_cv_library_file_utf8"
6057 # Filter out duplicates - this happens with badly-designed ".pc" files...
6058 for cf_add_1lib in $LIBS
6060 for cf_add_2lib in $cf_add_libs
6062 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6068 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6074 cf_ncuconfig_root=$cf_cv_screen
6075 cf_have_ncuconfig=no
6077 if test "x${PKG_CONFIG:=none}" != xnone; then
6078 echo "$as_me:6078: checking pkg-config for $cf_ncuconfig_root" >&5
6079 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
6080 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
6081 echo "$as_me:6081: result: yes" >&5
6082 echo "${ECHO_T}yes" >&6
6084 echo "$as_me:6084: checking if the $cf_ncuconfig_root package files work" >&5
6085 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
6086 cf_have_ncuconfig=unknown
6088 cf_save_CPPFLAGS="$CPPFLAGS"
6089 cf_save_LIBS="$LIBS"
6091 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
6093 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
6094 # Filter out duplicates - this happens with badly-designed ".pc" files...
6095 for cf_add_1lib in $LIBS
6097 for cf_add_2lib in $cf_add_libs
6099 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6105 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6109 cat >conftest.$ac_ext <<_ACEOF
6110 #line 6110 "configure"
6111 #include "confdefs.h"
6112 #include <${cf_cv_ncurses_header:-curses.h}>
6116 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
6121 rm -f conftest.$ac_objext conftest$ac_exeext
6122 if { (eval echo "$as_me:6122: \"$ac_link\"") >&5
6123 (eval $ac_link) 2>&5
6125 echo "$as_me:6125: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -s conftest$ac_exeext'
6128 { (eval echo "$as_me:6128: \"$ac_try\"") >&5
6131 echo "$as_me:6131: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 if test "$cross_compiling" = yes; then
6134 cf_have_ncuconfig=maybe
6136 cat >conftest.$ac_ext <<_ACEOF
6137 #line 6137 "configure"
6138 #include "confdefs.h"
6139 #include <${cf_cv_ncurses_header:-curses.h}>
6141 { char *xx = curses_version(); return (xx == 0); }
6143 rm -f conftest$ac_exeext
6144 if { (eval echo "$as_me:6144: \"$ac_link\"") >&5
6145 (eval $ac_link) 2>&5
6147 echo "$as_me:6147: \$? = $ac_status" >&5
6148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6149 { (eval echo "$as_me:6149: \"$ac_try\"") >&5
6152 echo "$as_me:6152: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 cf_have_ncuconfig=yes
6156 echo "$as_me: program exited with status $ac_status" >&5
6157 echo "$as_me: failed program was:" >&5
6158 cat conftest.$ac_ext >&5
6159 cf_have_ncuconfig=no
6161 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6164 echo "$as_me: failed program was:" >&5
6165 cat conftest.$ac_ext >&5
6166 cf_have_ncuconfig=no
6168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6169 echo "$as_me:6169: result: $cf_have_ncuconfig" >&5
6170 echo "${ECHO_T}$cf_have_ncuconfig" >&6
6171 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
6172 if test "$cf_have_ncuconfig" != "yes"
6174 CPPFLAGS="$cf_save_CPPFLAGS"
6175 LIBS="$cf_save_LIBS"
6176 NCURSES_CONFIG_PKG=none
6179 cat >>confdefs.h <<\EOF
6183 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
6187 echo "$as_me:6187: result: no" >&5
6188 echo "${ECHO_T}no" >&6
6189 NCURSES_CONFIG_PKG=none
6192 NCURSES_CONFIG_PKG=none
6195 if test "x$cf_have_ncuconfig" = "xno"; then
6196 echo "Looking for ${cf_ncuconfig_root}-config"
6198 if test -n "$ac_tool_prefix"; then
6199 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6203 echo "$as_me:6203: checking for $ac_word" >&5
6204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6205 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 if test -n "$NCURSES_CONFIG"; then
6209 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
6211 ac_save_IFS=$IFS; IFS=$ac_path_separator
6213 for ac_dir in $ac_dummy; do
6215 test -z "$ac_dir" && ac_dir=.
6216 $as_executable_p "$ac_dir/$ac_word" || continue
6217 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
6218 echo "$as_me:6218: found $ac_dir/$ac_word" >&5
6224 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
6225 if test -n "$NCURSES_CONFIG"; then
6226 echo "$as_me:6226: result: $NCURSES_CONFIG" >&5
6227 echo "${ECHO_T}$NCURSES_CONFIG" >&6
6229 echo "$as_me:6229: result: no" >&5
6230 echo "${ECHO_T}no" >&6
6233 test -n "$NCURSES_CONFIG" && break
6236 if test -z "$NCURSES_CONFIG"; then
6237 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
6238 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6240 # Extract the first word of "$ac_prog", so it can be a program name with args.
6241 set dummy $ac_prog; ac_word=$2
6242 echo "$as_me:6242: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6244 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 if test -n "$ac_ct_NCURSES_CONFIG"; then
6248 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
6250 ac_save_IFS=$IFS; IFS=$ac_path_separator
6252 for ac_dir in $ac_dummy; do
6254 test -z "$ac_dir" && ac_dir=.
6255 $as_executable_p "$ac_dir/$ac_word" || continue
6256 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
6257 echo "$as_me:6257: found $ac_dir/$ac_word" >&5
6263 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
6264 if test -n "$ac_ct_NCURSES_CONFIG"; then
6265 echo "$as_me:6265: result: $ac_ct_NCURSES_CONFIG" >&5
6266 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
6268 echo "$as_me:6268: result: no" >&5
6269 echo "${ECHO_T}no" >&6
6272 test -n "$ac_ct_NCURSES_CONFIG" && break
6274 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
6276 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
6279 if test "$NCURSES_CONFIG" != none ; then
6281 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
6283 cf_add_libs="`$NCURSES_CONFIG --libs`"
6284 # Filter out duplicates - this happens with badly-designed ".pc" files...
6285 for cf_add_1lib in $LIBS
6287 for cf_add_2lib in $cf_add_libs
6289 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6295 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6299 # even with config script, some packages use no-override for curses.h
6301 echo "$as_me:6301: checking if we have identified curses headers" >&5
6302 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
6303 if test "${cf_cv_ncurses_header+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 cf_cv_ncurses_header=none
6309 ncurses.h $cf_cv_screen/ncurses.h \
6310 curses.h $cf_cv_screen/curses.h
6312 cat >conftest.$ac_ext <<_ACEOF
6313 #line 6313 "configure"
6314 #include "confdefs.h"
6315 #include <${cf_header}>
6319 initscr(); tgoto("?", 0,0)
6324 rm -f conftest.$ac_objext
6325 if { (eval echo "$as_me:6325: \"$ac_compile\"") >&5
6326 (eval $ac_compile) 2>&5
6328 echo "$as_me:6328: \$? = $ac_status" >&5
6329 (exit $ac_status); } &&
6330 { ac_try='test -s conftest.$ac_objext'
6331 { (eval echo "$as_me:6331: \"$ac_try\"") >&5
6334 echo "$as_me:6334: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6336 cf_cv_ncurses_header=$cf_header; break
6338 echo "$as_me: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6341 rm -f conftest.$ac_objext conftest.$ac_ext
6345 echo "$as_me:6345: result: $cf_cv_ncurses_header" >&5
6346 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
6348 if test "$cf_cv_ncurses_header" = none ; then
6349 { { echo "$as_me:6349: error: No curses header-files found" >&5
6350 echo "$as_me: error: No curses header-files found" >&2;}
6351 { (exit 1); exit 1; }; }
6354 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
6356 for ac_header in $cf_cv_ncurses_header
6358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6359 echo "$as_me:6359: checking for $ac_header" >&5
6360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 cat >conftest.$ac_ext <<_ACEOF
6365 #line 6365 "configure"
6366 #include "confdefs.h"
6367 #include <$ac_header>
6369 if { (eval echo "$as_me:6369: \"$ac_cpp conftest.$ac_ext\"") >&5
6370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6372 egrep -v '^ *\+' conftest.er1 >conftest.err
6374 cat conftest.err >&5
6375 echo "$as_me:6375: \$? = $ac_status" >&5
6376 (exit $ac_status); } >/dev/null; then
6377 if test -s conftest.err; then
6378 ac_cpp_err=$ac_c_preproc_warn_flag
6385 if test -z "$ac_cpp_err"; then
6386 eval "$as_ac_Header=yes"
6388 echo "$as_me: failed program was:" >&5
6389 cat conftest.$ac_ext >&5
6390 eval "$as_ac_Header=no"
6392 rm -f conftest.err conftest.$ac_ext
6394 echo "$as_me:6394: result: `eval echo '${'$as_ac_Header'}'`" >&5
6395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6397 cat >>confdefs.h <<EOF
6398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6404 cat >>confdefs.h <<\EOF
6408 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6410 cat >>confdefs.h <<EOF
6411 #define $cf_nculib_ROOT 1
6414 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
6418 cf_ncuhdr_root=$cf_cv_screen
6420 test -n "$cf_cv_curses_dir" && \
6421 test "$cf_cv_curses_dir" != "no" && { \
6423 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
6424 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
6426 while test $cf_add_incdir != /usr/include
6428 if test -d $cf_add_incdir
6431 if test -n "$CFLAGS$CPPFLAGS" ; then
6432 # a loop is needed to ensure we can add subdirs of existing dirs
6433 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6434 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6435 cf_have_incdir=yes; break
6440 if test "$cf_have_incdir" = no ; then
6441 if test "$cf_add_incdir" = /usr/local/include ; then
6442 if test "$GCC" = yes
6444 cf_save_CPPFLAGS=$CPPFLAGS
6445 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6446 cat >conftest.$ac_ext <<_ACEOF
6447 #line 6447 "configure"
6448 #include "confdefs.h"
6458 rm -f conftest.$ac_objext
6459 if { (eval echo "$as_me:6459: \"$ac_compile\"") >&5
6460 (eval $ac_compile) 2>&5
6462 echo "$as_me:6462: \$? = $ac_status" >&5
6463 (exit $ac_status); } &&
6464 { ac_try='test -s conftest.$ac_objext'
6465 { (eval echo "$as_me:6465: \"$ac_try\"") >&5
6468 echo "$as_me:6468: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6472 echo "$as_me: failed program was:" >&5
6473 cat conftest.$ac_ext >&5
6476 rm -f conftest.$ac_objext conftest.$ac_ext
6477 CPPFLAGS=$cf_save_CPPFLAGS
6482 if test "$cf_have_incdir" = no ; then
6483 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6485 echo "${as_me:-configure}:6485: testing adding $cf_add_incdir to include-path ..." 1>&5
6487 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6489 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6490 test "$cf_top_incdir" = "$cf_add_incdir" && break
6491 cf_add_incdir="$cf_top_incdir"
6504 echo "$as_me:6504: checking for $cf_ncuhdr_root header in include-path" >&5
6505 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
6506 if test "${cf_cv_ncurses_h+set}" = set; then
6507 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
6511 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
6512 for cf_header in $cf_header_list
6515 cat >conftest.$ac_ext <<_ACEOF
6516 #line 6516 "configure"
6517 #include "confdefs.h"
6519 #include <$cf_header>
6524 #ifdef NCURSES_VERSION
6526 printf("%s\n", NCURSES_VERSION);
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:6540: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>&5
6543 echo "$as_me:6543: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -s conftest.$ac_objext'
6546 { (eval echo "$as_me:6546: \"$ac_try\"") >&5
6549 echo "$as_me:6549: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 cf_cv_ncurses_h=$cf_header
6554 echo "$as_me: failed program was:" >&5
6555 cat conftest.$ac_ext >&5
6558 rm -f conftest.$ac_objext conftest.$ac_ext
6560 test "$cf_cv_ncurses_h" != no && break
6564 echo "$as_me:6564: result: $cf_cv_ncurses_h" >&5
6565 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
6567 if test "$cf_cv_ncurses_h" != no ; then
6568 cf_cv_ncurses_header=$cf_cv_ncurses_h
6571 echo "$as_me:6571: checking for $cf_ncuhdr_root include-path" >&5
6572 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
6573 if test "${cf_cv_ncurses_h2+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6577 test -n "$verbose" && echo
6581 # collect the current set of include-directories from compiler flags
6582 cf_header_path_list=""
6583 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6584 for cf_header_path in $CPPFLAGS $CFLAGS
6586 case $cf_header_path in
6588 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6590 test "x$cf_header_path" != "xNONE" && \
6591 test -d "$cf_header_path" && \
6593 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6594 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6595 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
6596 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
6597 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
6598 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"
6601 cf_header_path_list="$cf_header_path_list $cf_search"
6607 # add the variations for the package we are looking for
6611 test "x$prefix" != "xNONE" && \
6612 test -d "$prefix" && \
6614 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6615 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6616 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
6617 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
6618 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
6619 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6622 for cf_subdir_prefix in \
6631 test "x$cf_subdir_prefix" != "x$prefix" && \
6632 test -d "$cf_subdir_prefix" && \
6633 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
6634 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
6635 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
6636 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
6637 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
6638 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
6639 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"
6644 test "$includedir" != NONE && \
6645 test "$includedir" != "/usr/include" && \
6646 test -d "$includedir" && {
6647 test -d $includedir && cf_search="$cf_search $includedir"
6648 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
6651 test "$oldincludedir" != NONE && \
6652 test "$oldincludedir" != "/usr/include" && \
6653 test -d "$oldincludedir" && {
6654 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6655 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
6658 cf_search="$cf_search $cf_header_path_list"
6660 test -n "$verbose" && echo search path $cf_search
6661 cf_save2_CPPFLAGS="$CPPFLAGS"
6662 for cf_incdir in $cf_search
6665 if test -n "$cf_incdir" ; then
6666 for cf_add_incdir in $cf_incdir
6668 while test $cf_add_incdir != /usr/include
6670 if test -d $cf_add_incdir
6673 if test -n "$CFLAGS$CPPFLAGS" ; then
6674 # a loop is needed to ensure we can add subdirs of existing dirs
6675 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6676 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6677 cf_have_incdir=yes; break
6682 if test "$cf_have_incdir" = no ; then
6683 if test "$cf_add_incdir" = /usr/local/include ; then
6684 if test "$GCC" = yes
6686 cf_save_CPPFLAGS=$CPPFLAGS
6687 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6688 cat >conftest.$ac_ext <<_ACEOF
6689 #line 6689 "configure"
6690 #include "confdefs.h"
6700 rm -f conftest.$ac_objext
6701 if { (eval echo "$as_me:6701: \"$ac_compile\"") >&5
6702 (eval $ac_compile) 2>&5
6704 echo "$as_me:6704: \$? = $ac_status" >&5
6705 (exit $ac_status); } &&
6706 { ac_try='test -s conftest.$ac_objext'
6707 { (eval echo "$as_me:6707: \"$ac_try\"") >&5
6710 echo "$as_me:6710: \$? = $ac_status" >&5
6711 (exit $ac_status); }; }; then
6714 echo "$as_me: failed program was:" >&5
6715 cat conftest.$ac_ext >&5
6718 rm -f conftest.$ac_objext conftest.$ac_ext
6719 CPPFLAGS=$cf_save_CPPFLAGS
6724 if test "$cf_have_incdir" = no ; then
6725 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6727 echo "${as_me:-configure}:6727: testing adding $cf_add_incdir to include-path ..." 1>&5
6729 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6731 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6732 test "$cf_top_incdir" = "$cf_add_incdir" && break
6733 cf_add_incdir="$cf_top_incdir"
6749 cat >conftest.$ac_ext <<_ACEOF
6750 #line 6750 "configure"
6751 #include "confdefs.h"
6753 #include <$cf_header>
6758 #ifdef NCURSES_VERSION
6760 printf("%s\n", NCURSES_VERSION);
6773 rm -f conftest.$ac_objext
6774 if { (eval echo "$as_me:6774: \"$ac_compile\"") >&5
6775 (eval $ac_compile) 2>&5
6777 echo "$as_me:6777: \$? = $ac_status" >&5
6778 (exit $ac_status); } &&
6779 { ac_try='test -s conftest.$ac_objext'
6780 { (eval echo "$as_me:6780: \"$ac_try\"") >&5
6783 echo "$as_me:6783: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6785 cf_cv_ncurses_h2=$cf_header
6788 echo "$as_me: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6792 rm -f conftest.$ac_objext conftest.$ac_ext
6794 if test "$cf_cv_ncurses_h2" != no ; then
6795 cf_cv_ncurses_h2=$cf_incdir/$cf_header
6796 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
6799 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
6801 CPPFLAGS="$cf_save2_CPPFLAGS"
6802 test "$cf_cv_ncurses_h2" != no && break
6804 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:6804: error: not found" >&5
6805 echo "$as_me: error: not found" >&2;}
6806 { (exit 1); exit 1; }; }
6809 echo "$as_me:6809: result: $cf_cv_ncurses_h2" >&5
6810 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
6812 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
6813 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
6814 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
6815 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
6818 if test -n "$cf_1st_incdir" ; then
6819 for cf_add_incdir in $cf_1st_incdir
6821 while test $cf_add_incdir != /usr/include
6823 if test -d $cf_add_incdir
6826 if test -n "$CFLAGS$CPPFLAGS" ; then
6827 # a loop is needed to ensure we can add subdirs of existing dirs
6828 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6829 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6830 cf_have_incdir=yes; break
6835 if test "$cf_have_incdir" = no ; then
6836 if test "$cf_add_incdir" = /usr/local/include ; then
6837 if test "$GCC" = yes
6839 cf_save_CPPFLAGS=$CPPFLAGS
6840 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6841 cat >conftest.$ac_ext <<_ACEOF
6842 #line 6842 "configure"
6843 #include "confdefs.h"
6853 rm -f conftest.$ac_objext
6854 if { (eval echo "$as_me:6854: \"$ac_compile\"") >&5
6855 (eval $ac_compile) 2>&5
6857 echo "$as_me:6857: \$? = $ac_status" >&5
6858 (exit $ac_status); } &&
6859 { ac_try='test -s conftest.$ac_objext'
6860 { (eval echo "$as_me:6860: \"$ac_try\"") >&5
6863 echo "$as_me:6863: \$? = $ac_status" >&5
6864 (exit $ac_status); }; }; then
6867 echo "$as_me: failed program was:" >&5
6868 cat conftest.$ac_ext >&5
6871 rm -f conftest.$ac_objext conftest.$ac_ext
6872 CPPFLAGS=$cf_save_CPPFLAGS
6877 if test "$cf_have_incdir" = no ; then
6878 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6880 echo "${as_me:-configure}:6880: testing adding $cf_add_incdir to include-path ..." 1>&5
6882 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6884 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6885 test "$cf_top_incdir" = "$cf_add_incdir" && break
6886 cf_add_incdir="$cf_top_incdir"
6899 # Set definitions to allow ifdef'ing for ncurses.h
6901 case $cf_cv_ncurses_header in
6904 cat >>confdefs.h <<\EOF
6905 #define HAVE_NCURSES_H 1
6911 case $cf_cv_ncurses_header in
6912 (ncurses/curses.h|ncurses/ncurses.h)
6914 cat >>confdefs.h <<\EOF
6915 #define HAVE_NCURSES_NCURSES_H 1
6919 (ncursesw/curses.h|ncursesw/ncurses.h)
6921 cat >>confdefs.h <<\EOF
6922 #define HAVE_NCURSESW_NCURSES_H 1
6928 echo "$as_me:6928: checking for terminfo header" >&5
6929 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6930 if test "${cf_cv_term_header+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 case ${cf_cv_ncurses_header} in
6935 (*/ncurses.h|*/ncursesw.h)
6936 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6939 cf_term_header=term.h
6943 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6945 cat >conftest.$ac_ext <<_ACEOF
6946 #line 6946 "configure"
6947 #include "confdefs.h"
6949 #include <${cf_cv_ncurses_header:-curses.h}>
6955 int x = auto_left_margin
6960 rm -f conftest.$ac_objext
6961 if { (eval echo "$as_me:6961: \"$ac_compile\"") >&5
6962 (eval $ac_compile) 2>&5
6964 echo "$as_me:6964: \$? = $ac_status" >&5
6965 (exit $ac_status); } &&
6966 { ac_try='test -s conftest.$ac_objext'
6967 { (eval echo "$as_me:6967: \"$ac_try\"") >&5
6970 echo "$as_me:6970: \$? = $ac_status" >&5
6971 (exit $ac_status); }; }; then
6973 cf_cv_term_header="$cf_test"
6975 echo "$as_me: failed program was:" >&5
6976 cat conftest.$ac_ext >&5
6978 cf_cv_term_header=unknown
6981 rm -f conftest.$ac_objext conftest.$ac_ext
6982 test "$cf_cv_term_header" != unknown && break
6986 echo "$as_me:6986: result: $cf_cv_term_header" >&5
6987 echo "${ECHO_T}$cf_cv_term_header" >&6
6989 # Set definitions to allow ifdef'ing to accommodate subdirectories
6991 case $cf_cv_term_header in
6994 cat >>confdefs.h <<\EOF
6995 #define HAVE_TERM_H 1
7001 case $cf_cv_term_header in
7004 cat >>confdefs.h <<\EOF
7005 #define HAVE_NCURSES_TERM_H 1
7011 cat >>confdefs.h <<\EOF
7012 #define HAVE_NCURSESW_TERM_H 1
7018 # some applications need this, but should check for NCURSES_VERSION
7020 cat >>confdefs.h <<\EOF
7024 echo "$as_me:7024: checking for ncurses version" >&5
7025 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
7026 if test "${cf_cv_ncurses_version+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 cf_cv_ncurses_version=no
7033 if test "$cross_compiling" = yes; then
7035 # This will not work if the preprocessor splits the line after the
7036 # Autoconf token. The 'unproto' program does that.
7037 cat > conftest.$ac_ext <<EOF
7038 #include <${cf_cv_ncurses_header:-curses.h}>
7040 #ifdef NCURSES_VERSION
7041 Autoconf NCURSES_VERSION
7049 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
7050 { (eval echo "$as_me:7050: \"$cf_try\"") >&5
7053 echo "$as_me:7053: \$? = $ac_status" >&5
7054 (exit $ac_status); }
7055 if test -f conftest.out ; then
7056 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
7057 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
7062 cat >conftest.$ac_ext <<_ACEOF
7063 #line 7063 "configure"
7064 #include "confdefs.h"
7066 #include <${cf_cv_ncurses_header:-curses.h}>
7070 FILE *fp = fopen("$cf_tempfile", "w");
7071 #ifdef NCURSES_VERSION
7072 # ifdef NCURSES_VERSION_PATCH
7073 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
7075 fprintf(fp, "%s\n", NCURSES_VERSION);
7079 fprintf(fp, "old\n");
7084 ${cf_cv_main_return:-return}(0);
7087 rm -f conftest$ac_exeext
7088 if { (eval echo "$as_me:7088: \"$ac_link\"") >&5
7089 (eval $ac_link) 2>&5
7091 echo "$as_me:7091: \$? = $ac_status" >&5
7092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7093 { (eval echo "$as_me:7093: \"$ac_try\"") >&5
7096 echo "$as_me:7096: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7099 cf_cv_ncurses_version=`cat $cf_tempfile`
7101 echo "$as_me: program exited with status $ac_status" >&5
7102 echo "$as_me: failed program was:" >&5
7103 cat conftest.$ac_ext >&5
7105 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7110 echo "$as_me:7110: result: $cf_cv_ncurses_version" >&5
7111 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
7112 test "$cf_cv_ncurses_version" = no ||
7113 cat >>confdefs.h <<\EOF
7117 cf_nculib_root=$cf_cv_screen
7118 # This works, except for the special case where we find gpm, but
7119 # ncurses is in a nonstandard location via $LIBS, and we really want
7122 cf_ncurses_SAVE="$LIBS"
7123 echo "$as_me:7123: checking for Gpm_Open in -lgpm" >&5
7124 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7125 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 ac_check_lib_save_LIBS=$LIBS
7130 cat >conftest.$ac_ext <<_ACEOF
7131 #line 7131 "configure"
7132 #include "confdefs.h"
7134 /* Override any gcc2 internal prototype to avoid an error. */
7138 /* We use char because int might match the return type of a gcc2
7139 builtin and then its argument prototype would still apply. */
7149 rm -f conftest.$ac_objext conftest$ac_exeext
7150 if { (eval echo "$as_me:7150: \"$ac_link\"") >&5
7151 (eval $ac_link) 2>&5
7153 echo "$as_me:7153: \$? = $ac_status" >&5
7154 (exit $ac_status); } &&
7155 { ac_try='test -s conftest$ac_exeext'
7156 { (eval echo "$as_me:7156: \"$ac_try\"") >&5
7159 echo "$as_me:7159: \$? = $ac_status" >&5
7160 (exit $ac_status); }; }; then
7161 ac_cv_lib_gpm_Gpm_Open=yes
7163 echo "$as_me: failed program was:" >&5
7164 cat conftest.$ac_ext >&5
7165 ac_cv_lib_gpm_Gpm_Open=no
7167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7168 LIBS=$ac_check_lib_save_LIBS
7170 echo "$as_me:7170: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7171 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7172 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
7173 echo "$as_me:7173: checking for initscr in -lgpm" >&5
7174 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
7175 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 ac_check_lib_save_LIBS=$LIBS
7180 cat >conftest.$ac_ext <<_ACEOF
7181 #line 7181 "configure"
7182 #include "confdefs.h"
7184 /* Override any gcc2 internal prototype to avoid an error. */
7188 /* We use char because int might match the return type of a gcc2
7189 builtin and then its argument prototype would still apply. */
7199 rm -f conftest.$ac_objext conftest$ac_exeext
7200 if { (eval echo "$as_me:7200: \"$ac_link\"") >&5
7201 (eval $ac_link) 2>&5
7203 echo "$as_me:7203: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try='test -s conftest$ac_exeext'
7206 { (eval echo "$as_me:7206: \"$ac_try\"") >&5
7209 echo "$as_me:7209: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7211 ac_cv_lib_gpm_initscr=yes
7213 echo "$as_me: failed program was:" >&5
7214 cat conftest.$ac_ext >&5
7215 ac_cv_lib_gpm_initscr=no
7217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7218 LIBS=$ac_check_lib_save_LIBS
7220 echo "$as_me:7220: result: $ac_cv_lib_gpm_initscr" >&5
7221 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
7222 if test $ac_cv_lib_gpm_initscr = yes; then
7223 LIBS="$cf_ncurses_SAVE"
7225 cf_ncurses_LIBS="-lgpm"
7232 # This is only necessary if you are linking against an obsolete
7233 # version of ncurses (but it should do no harm, since it's static).
7234 if test "$cf_nculib_root" = ncurses ; then
7235 echo "$as_me:7235: checking for tgoto in -lmytinfo" >&5
7236 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7237 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 ac_check_lib_save_LIBS=$LIBS
7241 LIBS="-lmytinfo $LIBS"
7242 cat >conftest.$ac_ext <<_ACEOF
7243 #line 7243 "configure"
7244 #include "confdefs.h"
7246 /* Override any gcc2 internal prototype to avoid an error. */
7250 /* We use char because int might match the return type of a gcc2
7251 builtin and then its argument prototype would still apply. */
7261 rm -f conftest.$ac_objext conftest$ac_exeext
7262 if { (eval echo "$as_me:7262: \"$ac_link\"") >&5
7263 (eval $ac_link) 2>&5
7265 echo "$as_me:7265: \$? = $ac_status" >&5
7266 (exit $ac_status); } &&
7267 { ac_try='test -s conftest$ac_exeext'
7268 { (eval echo "$as_me:7268: \"$ac_try\"") >&5
7271 echo "$as_me:7271: \$? = $ac_status" >&5
7272 (exit $ac_status); }; }; then
7273 ac_cv_lib_mytinfo_tgoto=yes
7275 echo "$as_me: failed program was:" >&5
7276 cat conftest.$ac_ext >&5
7277 ac_cv_lib_mytinfo_tgoto=no
7279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7280 LIBS=$ac_check_lib_save_LIBS
7282 echo "$as_me:7282: result: $ac_cv_lib_mytinfo_tgoto" >&5
7283 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
7284 if test $ac_cv_lib_mytinfo_tgoto = yes; then
7285 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
7292 cf_add_libs="$cf_ncurses_LIBS"
7293 # Filter out duplicates - this happens with badly-designed ".pc" files...
7294 for cf_add_1lib in $LIBS
7296 for cf_add_2lib in $cf_add_libs
7298 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7304 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7308 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
7311 cf_add_libs="-l$cf_nculib_root"
7312 # Filter out duplicates - this happens with badly-designed ".pc" files...
7313 for cf_add_1lib in $LIBS
7315 for cf_add_2lib in $cf_add_libs
7317 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7323 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7329 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
7331 echo "$as_me:7331: checking for initscr" >&5
7332 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7333 if test "${ac_cv_func_initscr+set}" = set; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 cat >conftest.$ac_ext <<_ACEOF
7337 #line 7337 "configure"
7338 #include "confdefs.h"
7339 /* System header to define __stub macros and hopefully few prototypes,
7340 which can conflict with char initscr (); below. */
7342 /* Override any gcc2 internal prototype to avoid an error. */
7346 /* We use char because int might match the return type of a gcc2
7347 builtin and then its argument prototype would still apply. */
7354 /* The GNU C library defines this for functions which it implements
7355 to always fail with ENOSYS. Some functions are actually named
7356 something starting with __ and the normal name is an alias. */
7357 #if defined (__stub_initscr) || defined (__stub___initscr)
7360 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7367 rm -f conftest.$ac_objext conftest$ac_exeext
7368 if { (eval echo "$as_me:7368: \"$ac_link\"") >&5
7369 (eval $ac_link) 2>&5
7371 echo "$as_me:7371: \$? = $ac_status" >&5
7372 (exit $ac_status); } &&
7373 { ac_try='test -s conftest$ac_exeext'
7374 { (eval echo "$as_me:7374: \"$ac_try\"") >&5
7377 echo "$as_me:7377: \$? = $ac_status" >&5
7378 (exit $ac_status); }; }; then
7379 ac_cv_func_initscr=yes
7381 echo "$as_me: failed program was:" >&5
7382 cat conftest.$ac_ext >&5
7383 ac_cv_func_initscr=no
7385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7387 echo "$as_me:7387: result: $ac_cv_func_initscr" >&5
7388 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7389 if test $ac_cv_func_initscr = yes; then
7390 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7393 cf_save_LIBS="$LIBS"
7394 echo "$as_me:7394: checking for initscr in -l$cf_nculib_root" >&5
7395 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
7396 LIBS="-l$cf_nculib_root $LIBS"
7397 cat >conftest.$ac_ext <<_ACEOF
7398 #line 7398 "configure"
7399 #include "confdefs.h"
7400 #include <${cf_cv_ncurses_header:-curses.h}>
7409 rm -f conftest.$ac_objext conftest$ac_exeext
7410 if { (eval echo "$as_me:7410: \"$ac_link\"") >&5
7411 (eval $ac_link) 2>&5
7413 echo "$as_me:7413: \$? = $ac_status" >&5
7414 (exit $ac_status); } &&
7415 { ac_try='test -s conftest$ac_exeext'
7416 { (eval echo "$as_me:7416: \"$ac_try\"") >&5
7419 echo "$as_me:7419: \$? = $ac_status" >&5
7420 (exit $ac_status); }; }; then
7421 echo "$as_me:7421: result: yes" >&5
7422 echo "${ECHO_T}yes" >&6
7423 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7426 echo "$as_me: failed program was:" >&5
7427 cat conftest.$ac_ext >&5
7428 echo "$as_me:7428: result: no" >&5
7429 echo "${ECHO_T}no" >&6
7432 cf_library_path_list=""
7433 if test -n "${LDFLAGS}${LIBS}" ; then
7434 for cf_library_path in $LDFLAGS $LIBS
7436 case $cf_library_path in
7438 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7440 test "x$cf_library_path" != "xNONE" && \
7441 test -d "$cf_library_path" && \
7443 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7444 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7445 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
7446 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
7447 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
7448 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"
7451 cf_library_path_list="$cf_library_path_list $cf_search"
7459 test "x$prefix" != "xNONE" && \
7460 test -d "$prefix" && \
7462 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7463 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7464 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
7465 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
7466 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
7467 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
7470 for cf_subdir_prefix in \
7479 test "x$cf_subdir_prefix" != "x$prefix" && \
7480 test -d "$cf_subdir_prefix" && \
7481 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
7482 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
7483 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
7484 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
7485 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
7486 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
7487 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"
7492 cf_search="$cf_library_path_list $cf_search"
7494 for cf_libdir in $cf_search
7496 echo "$as_me:7496: checking for -l$cf_nculib_root in $cf_libdir" >&5
7497 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
7498 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
7499 cat >conftest.$ac_ext <<_ACEOF
7500 #line 7500 "configure"
7501 #include "confdefs.h"
7502 #include <${cf_cv_ncurses_header:-curses.h}>
7511 rm -f conftest.$ac_objext conftest$ac_exeext
7512 if { (eval echo "$as_me:7512: \"$ac_link\"") >&5
7513 (eval $ac_link) 2>&5
7515 echo "$as_me:7515: \$? = $ac_status" >&5
7516 (exit $ac_status); } &&
7517 { ac_try='test -s conftest$ac_exeext'
7518 { (eval echo "$as_me:7518: \"$ac_try\"") >&5
7521 echo "$as_me:7521: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7523 echo "$as_me:7523: result: yes" >&5
7524 echo "${ECHO_T}yes" >&6
7525 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7528 echo "$as_me: failed program was:" >&5
7529 cat conftest.$ac_ext >&5
7530 echo "$as_me:7530: result: no" >&5
7531 echo "${ECHO_T}no" >&6
7532 LIBS="$cf_save_LIBS"
7534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7542 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
7544 if test $cf_found_library = no ; then
7545 { { echo "$as_me:7545: error: Cannot link $cf_nculib_root library" >&5
7546 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
7547 { (exit 1); exit 1; }; }
7552 if test -n "$cf_ncurses_LIBS" ; then
7553 echo "$as_me:7553: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
7554 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
7555 cf_ncurses_SAVE="$LIBS"
7556 for p in $cf_ncurses_LIBS ; do
7557 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
7558 if test "$q" != "$LIBS" ; then
7562 cat >conftest.$ac_ext <<_ACEOF
7563 #line 7563 "configure"
7564 #include "confdefs.h"
7565 #include <${cf_cv_ncurses_header:-curses.h}>
7569 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7574 rm -f conftest.$ac_objext conftest$ac_exeext
7575 if { (eval echo "$as_me:7575: \"$ac_link\"") >&5
7576 (eval $ac_link) 2>&5
7578 echo "$as_me:7578: \$? = $ac_status" >&5
7579 (exit $ac_status); } &&
7580 { ac_try='test -s conftest$ac_exeext'
7581 { (eval echo "$as_me:7581: \"$ac_try\"") >&5
7584 echo "$as_me:7584: \$? = $ac_status" >&5
7585 (exit $ac_status); }; }; then
7586 echo "$as_me:7586: result: yes" >&5
7587 echo "${ECHO_T}yes" >&6
7589 echo "$as_me: failed program was:" >&5
7590 cat conftest.$ac_ext >&5
7591 echo "$as_me:7591: result: no" >&5
7592 echo "${ECHO_T}no" >&6
7593 LIBS="$cf_ncurses_SAVE"
7595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7598 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7600 cat >>confdefs.h <<EOF
7601 #define $cf_nculib_ROOT 1
7612 cf_ncuconfig_root=$cf_cv_screen
7613 cf_have_ncuconfig=no
7615 if test "x${PKG_CONFIG:=none}" != xnone; then
7616 echo "$as_me:7616: checking pkg-config for $cf_ncuconfig_root" >&5
7617 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
7618 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
7619 echo "$as_me:7619: result: yes" >&5
7620 echo "${ECHO_T}yes" >&6
7622 echo "$as_me:7622: checking if the $cf_ncuconfig_root package files work" >&5
7623 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
7624 cf_have_ncuconfig=unknown
7626 cf_save_CPPFLAGS="$CPPFLAGS"
7627 cf_save_LIBS="$LIBS"
7629 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
7631 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
7632 # Filter out duplicates - this happens with badly-designed ".pc" files...
7633 for cf_add_1lib in $LIBS
7635 for cf_add_2lib in $cf_add_libs
7637 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7643 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7647 cat >conftest.$ac_ext <<_ACEOF
7648 #line 7648 "configure"
7649 #include "confdefs.h"
7650 #include <${cf_cv_ncurses_header:-curses.h}>
7654 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7659 rm -f conftest.$ac_objext conftest$ac_exeext
7660 if { (eval echo "$as_me:7660: \"$ac_link\"") >&5
7661 (eval $ac_link) 2>&5
7663 echo "$as_me:7663: \$? = $ac_status" >&5
7664 (exit $ac_status); } &&
7665 { ac_try='test -s conftest$ac_exeext'
7666 { (eval echo "$as_me:7666: \"$ac_try\"") >&5
7669 echo "$as_me:7669: \$? = $ac_status" >&5
7670 (exit $ac_status); }; }; then
7671 if test "$cross_compiling" = yes; then
7672 cf_have_ncuconfig=maybe
7674 cat >conftest.$ac_ext <<_ACEOF
7675 #line 7675 "configure"
7676 #include "confdefs.h"
7677 #include <${cf_cv_ncurses_header:-curses.h}>
7679 { char *xx = curses_version(); return (xx == 0); }
7681 rm -f conftest$ac_exeext
7682 if { (eval echo "$as_me:7682: \"$ac_link\"") >&5
7683 (eval $ac_link) 2>&5
7685 echo "$as_me:7685: \$? = $ac_status" >&5
7686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7687 { (eval echo "$as_me:7687: \"$ac_try\"") >&5
7690 echo "$as_me:7690: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7692 cf_have_ncuconfig=yes
7694 echo "$as_me: program exited with status $ac_status" >&5
7695 echo "$as_me: failed program was:" >&5
7696 cat conftest.$ac_ext >&5
7697 cf_have_ncuconfig=no
7699 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7702 echo "$as_me: failed program was:" >&5
7703 cat conftest.$ac_ext >&5
7704 cf_have_ncuconfig=no
7706 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7707 echo "$as_me:7707: result: $cf_have_ncuconfig" >&5
7708 echo "${ECHO_T}$cf_have_ncuconfig" >&6
7709 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
7710 if test "$cf_have_ncuconfig" != "yes"
7712 CPPFLAGS="$cf_save_CPPFLAGS"
7713 LIBS="$cf_save_LIBS"
7714 NCURSES_CONFIG_PKG=none
7717 cat >>confdefs.h <<\EOF
7721 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
7725 echo "$as_me:7725: result: no" >&5
7726 echo "${ECHO_T}no" >&6
7727 NCURSES_CONFIG_PKG=none
7730 NCURSES_CONFIG_PKG=none
7733 if test "x$cf_have_ncuconfig" = "xno"; then
7734 echo "Looking for ${cf_ncuconfig_root}-config"
7736 if test -n "$ac_tool_prefix"; then
7737 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
7739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7740 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7741 echo "$as_me:7741: checking for $ac_word" >&5
7742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7743 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 if test -n "$NCURSES_CONFIG"; then
7747 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
7749 ac_save_IFS=$IFS; IFS=$ac_path_separator
7751 for ac_dir in $ac_dummy; do
7753 test -z "$ac_dir" && ac_dir=.
7754 $as_executable_p "$ac_dir/$ac_word" || continue
7755 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
7756 echo "$as_me:7756: found $ac_dir/$ac_word" >&5
7762 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
7763 if test -n "$NCURSES_CONFIG"; then
7764 echo "$as_me:7764: result: $NCURSES_CONFIG" >&5
7765 echo "${ECHO_T}$NCURSES_CONFIG" >&6
7767 echo "$as_me:7767: result: no" >&5
7768 echo "${ECHO_T}no" >&6
7771 test -n "$NCURSES_CONFIG" && break
7774 if test -z "$NCURSES_CONFIG"; then
7775 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
7776 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
7778 # Extract the first word of "$ac_prog", so it can be a program name with args.
7779 set dummy $ac_prog; ac_word=$2
7780 echo "$as_me:7780: checking for $ac_word" >&5
7781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7782 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 if test -n "$ac_ct_NCURSES_CONFIG"; then
7786 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
7788 ac_save_IFS=$IFS; IFS=$ac_path_separator
7790 for ac_dir in $ac_dummy; do
7792 test -z "$ac_dir" && ac_dir=.
7793 $as_executable_p "$ac_dir/$ac_word" || continue
7794 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
7795 echo "$as_me:7795: found $ac_dir/$ac_word" >&5
7801 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
7802 if test -n "$ac_ct_NCURSES_CONFIG"; then
7803 echo "$as_me:7803: result: $ac_ct_NCURSES_CONFIG" >&5
7804 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
7806 echo "$as_me:7806: result: no" >&5
7807 echo "${ECHO_T}no" >&6
7810 test -n "$ac_ct_NCURSES_CONFIG" && break
7812 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
7814 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
7817 if test "$NCURSES_CONFIG" != none ; then
7819 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
7821 cf_add_libs="`$NCURSES_CONFIG --libs`"
7822 # Filter out duplicates - this happens with badly-designed ".pc" files...
7823 for cf_add_1lib in $LIBS
7825 for cf_add_2lib in $cf_add_libs
7827 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7833 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7837 # even with config script, some packages use no-override for curses.h
7839 echo "$as_me:7839: checking if we have identified curses headers" >&5
7840 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
7841 if test "${cf_cv_ncurses_header+set}" = set; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 cf_cv_ncurses_header=none
7847 ncurses.h $cf_cv_screen/ncurses.h \
7848 curses.h $cf_cv_screen/curses.h
7850 cat >conftest.$ac_ext <<_ACEOF
7851 #line 7851 "configure"
7852 #include "confdefs.h"
7853 #include <${cf_header}>
7857 initscr(); tgoto("?", 0,0)
7862 rm -f conftest.$ac_objext
7863 if { (eval echo "$as_me:7863: \"$ac_compile\"") >&5
7864 (eval $ac_compile) 2>&5
7866 echo "$as_me:7866: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try='test -s conftest.$ac_objext'
7869 { (eval echo "$as_me:7869: \"$ac_try\"") >&5
7872 echo "$as_me:7872: \$? = $ac_status" >&5
7873 (exit $ac_status); }; }; then
7874 cf_cv_ncurses_header=$cf_header; break
7876 echo "$as_me: failed program was:" >&5
7877 cat conftest.$ac_ext >&5
7879 rm -f conftest.$ac_objext conftest.$ac_ext
7883 echo "$as_me:7883: result: $cf_cv_ncurses_header" >&5
7884 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
7886 if test "$cf_cv_ncurses_header" = none ; then
7887 { { echo "$as_me:7887: error: No curses header-files found" >&5
7888 echo "$as_me: error: No curses header-files found" >&2;}
7889 { (exit 1); exit 1; }; }
7892 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
7894 for ac_header in $cf_cv_ncurses_header
7896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7897 echo "$as_me:7897: checking for $ac_header" >&5
7898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 cat >conftest.$ac_ext <<_ACEOF
7903 #line 7903 "configure"
7904 #include "confdefs.h"
7905 #include <$ac_header>
7907 if { (eval echo "$as_me:7907: \"$ac_cpp conftest.$ac_ext\"") >&5
7908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7910 egrep -v '^ *\+' conftest.er1 >conftest.err
7912 cat conftest.err >&5
7913 echo "$as_me:7913: \$? = $ac_status" >&5
7914 (exit $ac_status); } >/dev/null; then
7915 if test -s conftest.err; then
7916 ac_cpp_err=$ac_c_preproc_warn_flag
7923 if test -z "$ac_cpp_err"; then
7924 eval "$as_ac_Header=yes"
7926 echo "$as_me: failed program was:" >&5
7927 cat conftest.$ac_ext >&5
7928 eval "$as_ac_Header=no"
7930 rm -f conftest.err conftest.$ac_ext
7932 echo "$as_me:7932: result: `eval echo '${'$as_ac_Header'}'`" >&5
7933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7935 cat >>confdefs.h <<EOF
7936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7942 cat >>confdefs.h <<\EOF
7946 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7948 cat >>confdefs.h <<EOF
7949 #define $cf_nculib_ROOT 1
7952 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
7956 cf_ncuhdr_root=$cf_cv_screen
7958 test -n "$cf_cv_curses_dir" && \
7959 test "$cf_cv_curses_dir" != "no" && { \
7961 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
7962 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
7964 while test $cf_add_incdir != /usr/include
7966 if test -d $cf_add_incdir
7969 if test -n "$CFLAGS$CPPFLAGS" ; then
7970 # a loop is needed to ensure we can add subdirs of existing dirs
7971 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7972 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7973 cf_have_incdir=yes; break
7978 if test "$cf_have_incdir" = no ; then
7979 if test "$cf_add_incdir" = /usr/local/include ; then
7980 if test "$GCC" = yes
7982 cf_save_CPPFLAGS=$CPPFLAGS
7983 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7984 cat >conftest.$ac_ext <<_ACEOF
7985 #line 7985 "configure"
7986 #include "confdefs.h"
7996 rm -f conftest.$ac_objext
7997 if { (eval echo "$as_me:7997: \"$ac_compile\"") >&5
7998 (eval $ac_compile) 2>&5
8000 echo "$as_me:8000: \$? = $ac_status" >&5
8001 (exit $ac_status); } &&
8002 { ac_try='test -s conftest.$ac_objext'
8003 { (eval echo "$as_me:8003: \"$ac_try\"") >&5
8006 echo "$as_me:8006: \$? = $ac_status" >&5
8007 (exit $ac_status); }; }; then
8010 echo "$as_me: failed program was:" >&5
8011 cat conftest.$ac_ext >&5
8014 rm -f conftest.$ac_objext conftest.$ac_ext
8015 CPPFLAGS=$cf_save_CPPFLAGS
8020 if test "$cf_have_incdir" = no ; then
8021 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8023 echo "${as_me:-configure}:8023: testing adding $cf_add_incdir to include-path ..." 1>&5
8025 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8027 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8028 test "$cf_top_incdir" = "$cf_add_incdir" && break
8029 cf_add_incdir="$cf_top_incdir"
8042 echo "$as_me:8042: checking for $cf_ncuhdr_root header in include-path" >&5
8043 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
8044 if test "${cf_cv_ncurses_h+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
8049 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
8050 for cf_header in $cf_header_list
8053 cat >conftest.$ac_ext <<_ACEOF
8054 #line 8054 "configure"
8055 #include "confdefs.h"
8057 #include <$cf_header>
8062 #ifdef NCURSES_VERSION
8064 printf("%s\n", NCURSES_VERSION);
8077 rm -f conftest.$ac_objext
8078 if { (eval echo "$as_me:8078: \"$ac_compile\"") >&5
8079 (eval $ac_compile) 2>&5
8081 echo "$as_me:8081: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -s conftest.$ac_objext'
8084 { (eval echo "$as_me:8084: \"$ac_try\"") >&5
8087 echo "$as_me:8087: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 cf_cv_ncurses_h=$cf_header
8092 echo "$as_me: failed program was:" >&5
8093 cat conftest.$ac_ext >&5
8096 rm -f conftest.$ac_objext conftest.$ac_ext
8098 test "$cf_cv_ncurses_h" != no && break
8102 echo "$as_me:8102: result: $cf_cv_ncurses_h" >&5
8103 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
8105 if test "$cf_cv_ncurses_h" != no ; then
8106 cf_cv_ncurses_header=$cf_cv_ncurses_h
8109 echo "$as_me:8109: checking for $cf_ncuhdr_root include-path" >&5
8110 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
8111 if test "${cf_cv_ncurses_h2+set}" = set; then
8112 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 test -n "$verbose" && echo
8119 # collect the current set of include-directories from compiler flags
8120 cf_header_path_list=""
8121 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8122 for cf_header_path in $CPPFLAGS $CFLAGS
8124 case $cf_header_path in
8126 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8128 test "x$cf_header_path" != "xNONE" && \
8129 test -d "$cf_header_path" && \
8131 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8132 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8133 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
8134 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
8135 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
8136 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"
8139 cf_header_path_list="$cf_header_path_list $cf_search"
8145 # add the variations for the package we are looking for
8149 test "x$prefix" != "xNONE" && \
8150 test -d "$prefix" && \
8152 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8153 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8154 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
8155 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
8156 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
8157 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8160 for cf_subdir_prefix in \
8169 test "x$cf_subdir_prefix" != "x$prefix" && \
8170 test -d "$cf_subdir_prefix" && \
8171 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
8172 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
8173 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
8174 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
8175 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
8176 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
8177 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"
8182 test "$includedir" != NONE && \
8183 test "$includedir" != "/usr/include" && \
8184 test -d "$includedir" && {
8185 test -d $includedir && cf_search="$cf_search $includedir"
8186 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
8189 test "$oldincludedir" != NONE && \
8190 test "$oldincludedir" != "/usr/include" && \
8191 test -d "$oldincludedir" && {
8192 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8193 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
8196 cf_search="$cf_search $cf_header_path_list"
8198 test -n "$verbose" && echo search path $cf_search
8199 cf_save2_CPPFLAGS="$CPPFLAGS"
8200 for cf_incdir in $cf_search
8203 if test -n "$cf_incdir" ; then
8204 for cf_add_incdir in $cf_incdir
8206 while test $cf_add_incdir != /usr/include
8208 if test -d $cf_add_incdir
8211 if test -n "$CFLAGS$CPPFLAGS" ; then
8212 # a loop is needed to ensure we can add subdirs of existing dirs
8213 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8214 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8215 cf_have_incdir=yes; break
8220 if test "$cf_have_incdir" = no ; then
8221 if test "$cf_add_incdir" = /usr/local/include ; then
8222 if test "$GCC" = yes
8224 cf_save_CPPFLAGS=$CPPFLAGS
8225 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8226 cat >conftest.$ac_ext <<_ACEOF
8227 #line 8227 "configure"
8228 #include "confdefs.h"
8238 rm -f conftest.$ac_objext
8239 if { (eval echo "$as_me:8239: \"$ac_compile\"") >&5
8240 (eval $ac_compile) 2>&5
8242 echo "$as_me:8242: \$? = $ac_status" >&5
8243 (exit $ac_status); } &&
8244 { ac_try='test -s conftest.$ac_objext'
8245 { (eval echo "$as_me:8245: \"$ac_try\"") >&5
8248 echo "$as_me:8248: \$? = $ac_status" >&5
8249 (exit $ac_status); }; }; then
8252 echo "$as_me: failed program was:" >&5
8253 cat conftest.$ac_ext >&5
8256 rm -f conftest.$ac_objext conftest.$ac_ext
8257 CPPFLAGS=$cf_save_CPPFLAGS
8262 if test "$cf_have_incdir" = no ; then
8263 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8265 echo "${as_me:-configure}:8265: testing adding $cf_add_incdir to include-path ..." 1>&5
8267 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8269 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8270 test "$cf_top_incdir" = "$cf_add_incdir" && break
8271 cf_add_incdir="$cf_top_incdir"
8287 cat >conftest.$ac_ext <<_ACEOF
8288 #line 8288 "configure"
8289 #include "confdefs.h"
8291 #include <$cf_header>
8296 #ifdef NCURSES_VERSION
8298 printf("%s\n", NCURSES_VERSION);
8311 rm -f conftest.$ac_objext
8312 if { (eval echo "$as_me:8312: \"$ac_compile\"") >&5
8313 (eval $ac_compile) 2>&5
8315 echo "$as_me:8315: \$? = $ac_status" >&5
8316 (exit $ac_status); } &&
8317 { ac_try='test -s conftest.$ac_objext'
8318 { (eval echo "$as_me:8318: \"$ac_try\"") >&5
8321 echo "$as_me:8321: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 cf_cv_ncurses_h2=$cf_header
8326 echo "$as_me: failed program was:" >&5
8327 cat conftest.$ac_ext >&5
8330 rm -f conftest.$ac_objext conftest.$ac_ext
8332 if test "$cf_cv_ncurses_h2" != no ; then
8333 cf_cv_ncurses_h2=$cf_incdir/$cf_header
8334 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
8337 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
8339 CPPFLAGS="$cf_save2_CPPFLAGS"
8340 test "$cf_cv_ncurses_h2" != no && break
8342 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:8342: error: not found" >&5
8343 echo "$as_me: error: not found" >&2;}
8344 { (exit 1); exit 1; }; }
8347 echo "$as_me:8347: result: $cf_cv_ncurses_h2" >&5
8348 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
8350 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
8351 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
8352 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
8353 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
8356 if test -n "$cf_1st_incdir" ; then
8357 for cf_add_incdir in $cf_1st_incdir
8359 while test $cf_add_incdir != /usr/include
8361 if test -d $cf_add_incdir
8364 if test -n "$CFLAGS$CPPFLAGS" ; then
8365 # a loop is needed to ensure we can add subdirs of existing dirs
8366 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8367 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8368 cf_have_incdir=yes; break
8373 if test "$cf_have_incdir" = no ; then
8374 if test "$cf_add_incdir" = /usr/local/include ; then
8375 if test "$GCC" = yes
8377 cf_save_CPPFLAGS=$CPPFLAGS
8378 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8379 cat >conftest.$ac_ext <<_ACEOF
8380 #line 8380 "configure"
8381 #include "confdefs.h"
8391 rm -f conftest.$ac_objext
8392 if { (eval echo "$as_me:8392: \"$ac_compile\"") >&5
8393 (eval $ac_compile) 2>&5
8395 echo "$as_me:8395: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
8397 { ac_try='test -s conftest.$ac_objext'
8398 { (eval echo "$as_me:8398: \"$ac_try\"") >&5
8401 echo "$as_me:8401: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8405 echo "$as_me: failed program was:" >&5
8406 cat conftest.$ac_ext >&5
8409 rm -f conftest.$ac_objext conftest.$ac_ext
8410 CPPFLAGS=$cf_save_CPPFLAGS
8415 if test "$cf_have_incdir" = no ; then
8416 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8418 echo "${as_me:-configure}:8418: testing adding $cf_add_incdir to include-path ..." 1>&5
8420 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8422 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8423 test "$cf_top_incdir" = "$cf_add_incdir" && break
8424 cf_add_incdir="$cf_top_incdir"
8437 # Set definitions to allow ifdef'ing for ncurses.h
8439 case $cf_cv_ncurses_header in
8442 cat >>confdefs.h <<\EOF
8443 #define HAVE_NCURSES_H 1
8449 case $cf_cv_ncurses_header in
8450 (ncurses/curses.h|ncurses/ncurses.h)
8452 cat >>confdefs.h <<\EOF
8453 #define HAVE_NCURSES_NCURSES_H 1
8457 (ncursesw/curses.h|ncursesw/ncurses.h)
8459 cat >>confdefs.h <<\EOF
8460 #define HAVE_NCURSESW_NCURSES_H 1
8466 echo "$as_me:8466: checking for terminfo header" >&5
8467 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
8468 if test "${cf_cv_term_header+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 case ${cf_cv_ncurses_header} in
8473 (*/ncurses.h|*/ncursesw.h)
8474 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8477 cf_term_header=term.h
8481 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
8483 cat >conftest.$ac_ext <<_ACEOF
8484 #line 8484 "configure"
8485 #include "confdefs.h"
8487 #include <${cf_cv_ncurses_header:-curses.h}>
8493 int x = auto_left_margin
8498 rm -f conftest.$ac_objext
8499 if { (eval echo "$as_me:8499: \"$ac_compile\"") >&5
8500 (eval $ac_compile) 2>&5
8502 echo "$as_me:8502: \$? = $ac_status" >&5
8503 (exit $ac_status); } &&
8504 { ac_try='test -s conftest.$ac_objext'
8505 { (eval echo "$as_me:8505: \"$ac_try\"") >&5
8508 echo "$as_me:8508: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8511 cf_cv_term_header="$cf_test"
8513 echo "$as_me: failed program was:" >&5
8514 cat conftest.$ac_ext >&5
8516 cf_cv_term_header=unknown
8519 rm -f conftest.$ac_objext conftest.$ac_ext
8520 test "$cf_cv_term_header" != unknown && break
8524 echo "$as_me:8524: result: $cf_cv_term_header" >&5
8525 echo "${ECHO_T}$cf_cv_term_header" >&6
8527 # Set definitions to allow ifdef'ing to accommodate subdirectories
8529 case $cf_cv_term_header in
8532 cat >>confdefs.h <<\EOF
8533 #define HAVE_TERM_H 1
8539 case $cf_cv_term_header in
8542 cat >>confdefs.h <<\EOF
8543 #define HAVE_NCURSES_TERM_H 1
8549 cat >>confdefs.h <<\EOF
8550 #define HAVE_NCURSESW_TERM_H 1
8556 # some applications need this, but should check for NCURSES_VERSION
8558 cat >>confdefs.h <<\EOF
8562 echo "$as_me:8562: checking for ncurses version" >&5
8563 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
8564 if test "${cf_cv_ncurses_version+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 cf_cv_ncurses_version=no
8571 if test "$cross_compiling" = yes; then
8573 # This will not work if the preprocessor splits the line after the
8574 # Autoconf token. The 'unproto' program does that.
8575 cat > conftest.$ac_ext <<EOF
8576 #include <${cf_cv_ncurses_header:-curses.h}>
8578 #ifdef NCURSES_VERSION
8579 Autoconf NCURSES_VERSION
8587 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
8588 { (eval echo "$as_me:8588: \"$cf_try\"") >&5
8591 echo "$as_me:8591: \$? = $ac_status" >&5
8592 (exit $ac_status); }
8593 if test -f conftest.out ; then
8594 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
8595 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
8600 cat >conftest.$ac_ext <<_ACEOF
8601 #line 8601 "configure"
8602 #include "confdefs.h"
8604 #include <${cf_cv_ncurses_header:-curses.h}>
8608 FILE *fp = fopen("$cf_tempfile", "w");
8609 #ifdef NCURSES_VERSION
8610 # ifdef NCURSES_VERSION_PATCH
8611 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
8613 fprintf(fp, "%s\n", NCURSES_VERSION);
8617 fprintf(fp, "old\n");
8622 ${cf_cv_main_return:-return}(0);
8625 rm -f conftest$ac_exeext
8626 if { (eval echo "$as_me:8626: \"$ac_link\"") >&5
8627 (eval $ac_link) 2>&5
8629 echo "$as_me:8629: \$? = $ac_status" >&5
8630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8631 { (eval echo "$as_me:8631: \"$ac_try\"") >&5
8634 echo "$as_me:8634: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8637 cf_cv_ncurses_version=`cat $cf_tempfile`
8639 echo "$as_me: program exited with status $ac_status" >&5
8640 echo "$as_me: failed program was:" >&5
8641 cat conftest.$ac_ext >&5
8643 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8648 echo "$as_me:8648: result: $cf_cv_ncurses_version" >&5
8649 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
8650 test "$cf_cv_ncurses_version" = no ||
8651 cat >>confdefs.h <<\EOF
8655 cf_nculib_root=$cf_cv_screen
8656 # This works, except for the special case where we find gpm, but
8657 # ncurses is in a nonstandard location via $LIBS, and we really want
8660 cf_ncurses_SAVE="$LIBS"
8661 echo "$as_me:8661: checking for Gpm_Open in -lgpm" >&5
8662 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
8663 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 ac_check_lib_save_LIBS=$LIBS
8668 cat >conftest.$ac_ext <<_ACEOF
8669 #line 8669 "configure"
8670 #include "confdefs.h"
8672 /* Override any gcc2 internal prototype to avoid an error. */
8676 /* We use char because int might match the return type of a gcc2
8677 builtin and then its argument prototype would still apply. */
8687 rm -f conftest.$ac_objext conftest$ac_exeext
8688 if { (eval echo "$as_me:8688: \"$ac_link\"") >&5
8689 (eval $ac_link) 2>&5
8691 echo "$as_me:8691: \$? = $ac_status" >&5
8692 (exit $ac_status); } &&
8693 { ac_try='test -s conftest$ac_exeext'
8694 { (eval echo "$as_me:8694: \"$ac_try\"") >&5
8697 echo "$as_me:8697: \$? = $ac_status" >&5
8698 (exit $ac_status); }; }; then
8699 ac_cv_lib_gpm_Gpm_Open=yes
8701 echo "$as_me: failed program was:" >&5
8702 cat conftest.$ac_ext >&5
8703 ac_cv_lib_gpm_Gpm_Open=no
8705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8706 LIBS=$ac_check_lib_save_LIBS
8708 echo "$as_me:8708: result: $ac_cv_lib_gpm_Gpm_Open" >&5
8709 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
8710 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
8711 echo "$as_me:8711: checking for initscr in -lgpm" >&5
8712 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
8713 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 ac_check_lib_save_LIBS=$LIBS
8718 cat >conftest.$ac_ext <<_ACEOF
8719 #line 8719 "configure"
8720 #include "confdefs.h"
8722 /* Override any gcc2 internal prototype to avoid an error. */
8726 /* We use char because int might match the return type of a gcc2
8727 builtin and then its argument prototype would still apply. */
8737 rm -f conftest.$ac_objext conftest$ac_exeext
8738 if { (eval echo "$as_me:8738: \"$ac_link\"") >&5
8739 (eval $ac_link) 2>&5
8741 echo "$as_me:8741: \$? = $ac_status" >&5
8742 (exit $ac_status); } &&
8743 { ac_try='test -s conftest$ac_exeext'
8744 { (eval echo "$as_me:8744: \"$ac_try\"") >&5
8747 echo "$as_me:8747: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
8749 ac_cv_lib_gpm_initscr=yes
8751 echo "$as_me: failed program was:" >&5
8752 cat conftest.$ac_ext >&5
8753 ac_cv_lib_gpm_initscr=no
8755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8756 LIBS=$ac_check_lib_save_LIBS
8758 echo "$as_me:8758: result: $ac_cv_lib_gpm_initscr" >&5
8759 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
8760 if test $ac_cv_lib_gpm_initscr = yes; then
8761 LIBS="$cf_ncurses_SAVE"
8763 cf_ncurses_LIBS="-lgpm"
8770 # This is only necessary if you are linking against an obsolete
8771 # version of ncurses (but it should do no harm, since it's static).
8772 if test "$cf_nculib_root" = ncurses ; then
8773 echo "$as_me:8773: checking for tgoto in -lmytinfo" >&5
8774 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
8775 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
8776 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 ac_check_lib_save_LIBS=$LIBS
8779 LIBS="-lmytinfo $LIBS"
8780 cat >conftest.$ac_ext <<_ACEOF
8781 #line 8781 "configure"
8782 #include "confdefs.h"
8784 /* Override any gcc2 internal prototype to avoid an error. */
8788 /* We use char because int might match the return type of a gcc2
8789 builtin and then its argument prototype would still apply. */
8799 rm -f conftest.$ac_objext conftest$ac_exeext
8800 if { (eval echo "$as_me:8800: \"$ac_link\"") >&5
8801 (eval $ac_link) 2>&5
8803 echo "$as_me:8803: \$? = $ac_status" >&5
8804 (exit $ac_status); } &&
8805 { ac_try='test -s conftest$ac_exeext'
8806 { (eval echo "$as_me:8806: \"$ac_try\"") >&5
8809 echo "$as_me:8809: \$? = $ac_status" >&5
8810 (exit $ac_status); }; }; then
8811 ac_cv_lib_mytinfo_tgoto=yes
8813 echo "$as_me: failed program was:" >&5
8814 cat conftest.$ac_ext >&5
8815 ac_cv_lib_mytinfo_tgoto=no
8817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8818 LIBS=$ac_check_lib_save_LIBS
8820 echo "$as_me:8820: result: $ac_cv_lib_mytinfo_tgoto" >&5
8821 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
8822 if test $ac_cv_lib_mytinfo_tgoto = yes; then
8823 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
8830 cf_add_libs="$cf_ncurses_LIBS"
8831 # Filter out duplicates - this happens with badly-designed ".pc" files...
8832 for cf_add_1lib in $LIBS
8834 for cf_add_2lib in $cf_add_libs
8836 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8842 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8846 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
8849 cf_add_libs="-l$cf_nculib_root"
8850 # Filter out duplicates - this happens with badly-designed ".pc" files...
8851 for cf_add_1lib in $LIBS
8853 for cf_add_2lib in $cf_add_libs
8855 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8861 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8867 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
8869 echo "$as_me:8869: checking for initscr" >&5
8870 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
8871 if test "${ac_cv_func_initscr+set}" = set; then
8872 echo $ECHO_N "(cached) $ECHO_C" >&6
8874 cat >conftest.$ac_ext <<_ACEOF
8875 #line 8875 "configure"
8876 #include "confdefs.h"
8877 /* System header to define __stub macros and hopefully few prototypes,
8878 which can conflict with char initscr (); below. */
8880 /* Override any gcc2 internal prototype to avoid an error. */
8884 /* We use char because int might match the return type of a gcc2
8885 builtin and then its argument prototype would still apply. */
8892 /* The GNU C library defines this for functions which it implements
8893 to always fail with ENOSYS. Some functions are actually named
8894 something starting with __ and the normal name is an alias. */
8895 #if defined (__stub_initscr) || defined (__stub___initscr)
8898 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8905 rm -f conftest.$ac_objext conftest$ac_exeext
8906 if { (eval echo "$as_me:8906: \"$ac_link\"") >&5
8907 (eval $ac_link) 2>&5
8909 echo "$as_me:8909: \$? = $ac_status" >&5
8910 (exit $ac_status); } &&
8911 { ac_try='test -s conftest$ac_exeext'
8912 { (eval echo "$as_me:8912: \"$ac_try\"") >&5
8915 echo "$as_me:8915: \$? = $ac_status" >&5
8916 (exit $ac_status); }; }; then
8917 ac_cv_func_initscr=yes
8919 echo "$as_me: failed program was:" >&5
8920 cat conftest.$ac_ext >&5
8921 ac_cv_func_initscr=no
8923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8925 echo "$as_me:8925: result: $ac_cv_func_initscr" >&5
8926 echo "${ECHO_T}$ac_cv_func_initscr" >&6
8927 if test $ac_cv_func_initscr = yes; then
8928 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8931 cf_save_LIBS="$LIBS"
8932 echo "$as_me:8932: checking for initscr in -l$cf_nculib_root" >&5
8933 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
8934 LIBS="-l$cf_nculib_root $LIBS"
8935 cat >conftest.$ac_ext <<_ACEOF
8936 #line 8936 "configure"
8937 #include "confdefs.h"
8938 #include <${cf_cv_ncurses_header:-curses.h}>
8947 rm -f conftest.$ac_objext conftest$ac_exeext
8948 if { (eval echo "$as_me:8948: \"$ac_link\"") >&5
8949 (eval $ac_link) 2>&5
8951 echo "$as_me:8951: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -s conftest$ac_exeext'
8954 { (eval echo "$as_me:8954: \"$ac_try\"") >&5
8957 echo "$as_me:8957: \$? = $ac_status" >&5
8958 (exit $ac_status); }; }; then
8959 echo "$as_me:8959: result: yes" >&5
8960 echo "${ECHO_T}yes" >&6
8961 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8964 echo "$as_me: failed program was:" >&5
8965 cat conftest.$ac_ext >&5
8966 echo "$as_me:8966: result: no" >&5
8967 echo "${ECHO_T}no" >&6
8970 cf_library_path_list=""
8971 if test -n "${LDFLAGS}${LIBS}" ; then
8972 for cf_library_path in $LDFLAGS $LIBS
8974 case $cf_library_path in
8976 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8978 test "x$cf_library_path" != "xNONE" && \
8979 test -d "$cf_library_path" && \
8981 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8982 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8983 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
8984 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
8985 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
8986 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"
8989 cf_library_path_list="$cf_library_path_list $cf_search"
8997 test "x$prefix" != "xNONE" && \
8998 test -d "$prefix" && \
9000 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9001 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9002 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
9003 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
9004 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
9005 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
9008 for cf_subdir_prefix in \
9017 test "x$cf_subdir_prefix" != "x$prefix" && \
9018 test -d "$cf_subdir_prefix" && \
9019 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9020 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
9021 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
9022 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
9023 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
9024 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
9025 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"
9030 cf_search="$cf_library_path_list $cf_search"
9032 for cf_libdir in $cf_search
9034 echo "$as_me:9034: checking for -l$cf_nculib_root in $cf_libdir" >&5
9035 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
9036 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
9037 cat >conftest.$ac_ext <<_ACEOF
9038 #line 9038 "configure"
9039 #include "confdefs.h"
9040 #include <${cf_cv_ncurses_header:-curses.h}>
9049 rm -f conftest.$ac_objext conftest$ac_exeext
9050 if { (eval echo "$as_me:9050: \"$ac_link\"") >&5
9051 (eval $ac_link) 2>&5
9053 echo "$as_me:9053: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try='test -s conftest$ac_exeext'
9056 { (eval echo "$as_me:9056: \"$ac_try\"") >&5
9059 echo "$as_me:9059: \$? = $ac_status" >&5
9060 (exit $ac_status); }; }; then
9061 echo "$as_me:9061: result: yes" >&5
9062 echo "${ECHO_T}yes" >&6
9063 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9066 echo "$as_me: failed program was:" >&5
9067 cat conftest.$ac_ext >&5
9068 echo "$as_me:9068: result: no" >&5
9069 echo "${ECHO_T}no" >&6
9070 LIBS="$cf_save_LIBS"
9072 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9080 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
9082 if test $cf_found_library = no ; then
9083 { { echo "$as_me:9083: error: Cannot link $cf_nculib_root library" >&5
9084 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
9085 { (exit 1); exit 1; }; }
9090 if test -n "$cf_ncurses_LIBS" ; then
9091 echo "$as_me:9091: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
9092 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
9093 cf_ncurses_SAVE="$LIBS"
9094 for p in $cf_ncurses_LIBS ; do
9095 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
9096 if test "$q" != "$LIBS" ; then
9100 cat >conftest.$ac_ext <<_ACEOF
9101 #line 9101 "configure"
9102 #include "confdefs.h"
9103 #include <${cf_cv_ncurses_header:-curses.h}>
9107 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
9112 rm -f conftest.$ac_objext conftest$ac_exeext
9113 if { (eval echo "$as_me:9113: \"$ac_link\"") >&5
9114 (eval $ac_link) 2>&5
9116 echo "$as_me:9116: \$? = $ac_status" >&5
9117 (exit $ac_status); } &&
9118 { ac_try='test -s conftest$ac_exeext'
9119 { (eval echo "$as_me:9119: \"$ac_try\"") >&5
9122 echo "$as_me:9122: \$? = $ac_status" >&5
9123 (exit $ac_status); }; }; then
9124 echo "$as_me:9124: result: yes" >&5
9125 echo "${ECHO_T}yes" >&6
9127 echo "$as_me: failed program was:" >&5
9128 cat conftest.$ac_ext >&5
9129 echo "$as_me:9129: result: no" >&5
9130 echo "${ECHO_T}no" >&6
9131 LIBS="$cf_ncurses_SAVE"
9133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9136 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9138 cat >>confdefs.h <<EOF
9139 #define $cf_nculib_ROOT 1
9149 echo "$as_me:9149: checking for X" >&5
9150 echo $ECHO_N "checking for X... $ECHO_C" >&6
9152 # Check whether --with-x or --without-x was given.
9153 if test "${with_x+set}" = set; then
9157 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9158 if test "x$with_x" = xno; then
9159 # The user explicitly disabled X.
9162 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9163 # Both variables are already set.
9166 if test "${ac_cv_have_x+set}" = set; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 # One or both of the vars are not set, and there is no cached value.
9170 ac_x_includes=no ac_x_libraries=no
9172 if mkdir conftest.dir; then
9174 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9175 cat >Imakefile <<'EOF'
9177 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9179 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9180 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9181 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9182 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9183 for ac_extension in a so sl dylib dll; do
9184 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9185 test -f $ac_im_libdir/libX11.$ac_extension; then
9186 ac_im_usrlibdir=$ac_im_libdir; break
9189 # Screen out bogus values from the imake configuration. They are
9190 # bogus both because they are the default anyway, and because
9191 # using them would break gcc on systems where it needs fixed includes.
9192 case $ac_im_incroot in
9194 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9196 case $ac_im_usrlibdir in
9198 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9205 # Standard set of common directories for X headers.
9206 # Check X11 before X11Rn because it is often a symlink to the current release.
9218 /usr/local/X11/include
9219 /usr/local/X11R6/include
9220 /usr/local/X11R5/include
9221 /usr/local/X11R4/include
9223 /usr/local/include/X11
9224 /usr/local/include/X11R6
9225 /usr/local/include/X11R5
9226 /usr/local/include/X11R4
9230 /usr/XFree86/include/X11
9234 /usr/unsupported/include
9236 /usr/local/x11r5/include
9237 /usr/lpp/Xamples/include
9239 /usr/openwin/include
9240 /usr/openwin/share/include'
9242 if test "$ac_x_includes" = no; then
9243 # Guess where to find include files, by looking for Intrinsic.h.
9244 # First, try using that file with no special directory specified.
9245 cat >conftest.$ac_ext <<_ACEOF
9246 #line 9246 "configure"
9247 #include "confdefs.h"
9248 #include <X11/Intrinsic.h>
9250 if { (eval echo "$as_me:9250: \"$ac_cpp conftest.$ac_ext\"") >&5
9251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9253 egrep -v '^ *\+' conftest.er1 >conftest.err
9255 cat conftest.err >&5
9256 echo "$as_me:9256: \$? = $ac_status" >&5
9257 (exit $ac_status); } >/dev/null; then
9258 if test -s conftest.err; then
9259 ac_cpp_err=$ac_c_preproc_warn_flag
9266 if test -z "$ac_cpp_err"; then
9267 # We can compile using X headers with no special include directory.
9270 echo "$as_me: failed program was:" >&5
9271 cat conftest.$ac_ext >&5
9272 for ac_dir in $ac_x_header_dirs; do
9273 if test -r "$ac_dir/X11/Intrinsic.h"; then
9274 ac_x_includes=$ac_dir
9279 rm -f conftest.err conftest.$ac_ext
9280 fi # $ac_x_includes = no
9282 if test "$ac_x_libraries" = no; then
9283 # Check for the libraries.
9284 # See if we find them without any special options.
9285 # Don't add to $LIBS permanently.
9288 cat >conftest.$ac_ext <<_ACEOF
9289 #line 9289 "configure"
9290 #include "confdefs.h"
9291 #include <X11/Intrinsic.h>
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (eval echo "$as_me:9301: \"$ac_link\"") >&5
9302 (eval $ac_link) 2>&5
9304 echo "$as_me:9304: \$? = $ac_status" >&5
9305 (exit $ac_status); } &&
9306 { ac_try='test -s conftest$ac_exeext'
9307 { (eval echo "$as_me:9307: \"$ac_try\"") >&5
9310 echo "$as_me:9310: \$? = $ac_status" >&5
9311 (exit $ac_status); }; }; then
9313 # We can link X programs with no special library path.
9316 echo "$as_me: failed program was:" >&5
9317 cat conftest.$ac_ext >&5
9319 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9321 # Don't even attempt the hair of trying to link an X program!
9322 for ac_extension in a so sl dylib dll; do
9323 if test -r $ac_dir/libXt.$ac_extension; then
9324 ac_x_libraries=$ac_dir
9330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9331 fi # $ac_x_libraries = no
9333 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9334 # Didn't find X anywhere. Cache the known absence of X.
9335 ac_cv_have_x="have_x=no"
9337 # Record where we found X for the cache.
9338 ac_cv_have_x="have_x=yes \
9339 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9344 eval "$ac_cv_have_x"
9347 if test "$have_x" != yes; then
9348 echo "$as_me:9348: result: $have_x" >&5
9349 echo "${ECHO_T}$have_x" >&6
9352 # If each of the values was on the command line, it overrides each guess.
9353 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9354 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9355 # Update the cache value to reflect the command line values.
9356 ac_cv_have_x="have_x=yes \
9357 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9358 echo "$as_me:9358: result: libraries $x_libraries, headers $x_includes" >&5
9359 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9362 if test "$no_x" = yes; then
9363 # Not all programs may use this symbol, but it does not hurt to define it.
9365 cat >>confdefs.h <<\EOF
9366 #define X_DISPLAY_MISSING 1
9369 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9371 if test -n "$x_includes"; then
9372 X_CFLAGS="$X_CFLAGS -I$x_includes"
9375 # It would also be nice to do this for all -L options, not just this one.
9376 if test -n "$x_libraries"; then
9377 X_LIBS="$X_LIBS -L$x_libraries"
9378 # For Solaris; some versions of Sun CC require a space after -R and
9379 # others require no space. Words are not sufficient . . . .
9380 case `(uname -sr) 2>/dev/null` in
9382 echo "$as_me:9382: checking whether -R must be followed by a space" >&5
9383 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9384 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9385 cat >conftest.$ac_ext <<_ACEOF
9386 #line 9386 "configure"
9387 #include "confdefs.h"
9397 rm -f conftest.$ac_objext conftest$ac_exeext
9398 if { (eval echo "$as_me:9398: \"$ac_link\"") >&5
9399 (eval $ac_link) 2>&5
9401 echo "$as_me:9401: \$? = $ac_status" >&5
9402 (exit $ac_status); } &&
9403 { ac_try='test -s conftest$ac_exeext'
9404 { (eval echo "$as_me:9404: \"$ac_try\"") >&5
9407 echo "$as_me:9407: \$? = $ac_status" >&5
9408 (exit $ac_status); }; }; then
9411 echo "$as_me: failed program was:" >&5
9412 cat conftest.$ac_ext >&5
9415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9416 if test $ac_R_nospace = yes; then
9417 echo "$as_me:9417: result: no" >&5
9418 echo "${ECHO_T}no" >&6
9419 X_LIBS="$X_LIBS -R$x_libraries"
9421 LIBS="$ac_xsave_LIBS -R $x_libraries"
9422 cat >conftest.$ac_ext <<_ACEOF
9423 #line 9423 "configure"
9424 #include "confdefs.h"
9434 rm -f conftest.$ac_objext conftest$ac_exeext
9435 if { (eval echo "$as_me:9435: \"$ac_link\"") >&5
9436 (eval $ac_link) 2>&5
9438 echo "$as_me:9438: \$? = $ac_status" >&5
9439 (exit $ac_status); } &&
9440 { ac_try='test -s conftest$ac_exeext'
9441 { (eval echo "$as_me:9441: \"$ac_try\"") >&5
9444 echo "$as_me:9444: \$? = $ac_status" >&5
9445 (exit $ac_status); }; }; then
9448 echo "$as_me: failed program was:" >&5
9449 cat conftest.$ac_ext >&5
9452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9453 if test $ac_R_space = yes; then
9454 echo "$as_me:9454: result: yes" >&5
9455 echo "${ECHO_T}yes" >&6
9456 X_LIBS="$X_LIBS -R $x_libraries"
9458 echo "$as_me:9458: result: neither works" >&5
9459 echo "${ECHO_T}neither works" >&6
9466 # Check for system-dependent libraries X programs must link with.
9467 # Do this before checking for the system-independent R6 libraries
9468 # (-lICE), since we may need -lsocket or whatever for X linking.
9470 if test "$ISC" = yes; then
9471 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9473 # Martyn Johnson says this is needed for Ultrix, if the X
9474 # libraries were built with DECnet support. And Karl Berry says
9475 # the Alpha needs dnet_stub (dnet does not exist).
9476 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9477 cat >conftest.$ac_ext <<_ACEOF
9478 #line 9478 "configure"
9479 #include "confdefs.h"
9481 /* Override any gcc2 internal prototype to avoid an error. */
9485 /* We use char because int might match the return type of a gcc2
9486 builtin and then its argument prototype would still apply. */
9487 char XOpenDisplay ();
9496 rm -f conftest.$ac_objext conftest$ac_exeext
9497 if { (eval echo "$as_me:9497: \"$ac_link\"") >&5
9498 (eval $ac_link) 2>&5
9500 echo "$as_me:9500: \$? = $ac_status" >&5
9501 (exit $ac_status); } &&
9502 { ac_try='test -s conftest$ac_exeext'
9503 { (eval echo "$as_me:9503: \"$ac_try\"") >&5
9506 echo "$as_me:9506: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9510 echo "$as_me: failed program was:" >&5
9511 cat conftest.$ac_ext >&5
9512 echo "$as_me:9512: checking for dnet_ntoa in -ldnet" >&5
9513 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9514 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 ac_check_lib_save_LIBS=$LIBS
9519 cat >conftest.$ac_ext <<_ACEOF
9520 #line 9520 "configure"
9521 #include "confdefs.h"
9523 /* Override any gcc2 internal prototype to avoid an error. */
9527 /* We use char because int might match the return type of a gcc2
9528 builtin and then its argument prototype would still apply. */
9538 rm -f conftest.$ac_objext conftest$ac_exeext
9539 if { (eval echo "$as_me:9539: \"$ac_link\"") >&5
9540 (eval $ac_link) 2>&5
9542 echo "$as_me:9542: \$? = $ac_status" >&5
9543 (exit $ac_status); } &&
9544 { ac_try='test -s conftest$ac_exeext'
9545 { (eval echo "$as_me:9545: \"$ac_try\"") >&5
9548 echo "$as_me:9548: \$? = $ac_status" >&5
9549 (exit $ac_status); }; }; then
9550 ac_cv_lib_dnet_dnet_ntoa=yes
9552 echo "$as_me: failed program was:" >&5
9553 cat conftest.$ac_ext >&5
9554 ac_cv_lib_dnet_dnet_ntoa=no
9556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9557 LIBS=$ac_check_lib_save_LIBS
9559 echo "$as_me:9559: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9560 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9561 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9562 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9565 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9566 echo "$as_me:9566: checking for dnet_ntoa in -ldnet_stub" >&5
9567 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9568 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9569 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 ac_check_lib_save_LIBS=$LIBS
9572 LIBS="-ldnet_stub $LIBS"
9573 cat >conftest.$ac_ext <<_ACEOF
9574 #line 9574 "configure"
9575 #include "confdefs.h"
9577 /* Override any gcc2 internal prototype to avoid an error. */
9581 /* We use char because int might match the return type of a gcc2
9582 builtin and then its argument prototype would still apply. */
9592 rm -f conftest.$ac_objext conftest$ac_exeext
9593 if { (eval echo "$as_me:9593: \"$ac_link\"") >&5
9594 (eval $ac_link) 2>&5
9596 echo "$as_me:9596: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -s conftest$ac_exeext'
9599 { (eval echo "$as_me:9599: \"$ac_try\"") >&5
9602 echo "$as_me:9602: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9604 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9606 echo "$as_me: failed program was:" >&5
9607 cat conftest.$ac_ext >&5
9608 ac_cv_lib_dnet_stub_dnet_ntoa=no
9610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9611 LIBS=$ac_check_lib_save_LIBS
9613 echo "$as_me:9613: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9614 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9615 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9616 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9622 LIBS="$ac_xsave_LIBS"
9624 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9625 # to get the SysV transport functions.
9626 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9628 # The nsl library prevents programs from opening the X display
9629 # on Irix 5.2, according to T.E. Dickey.
9630 # The functions gethostbyname, getservbyname, and inet_addr are
9631 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9632 echo "$as_me:9632: checking for gethostbyname" >&5
9633 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9634 if test "${ac_cv_func_gethostbyname+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 cat >conftest.$ac_ext <<_ACEOF
9638 #line 9638 "configure"
9639 #include "confdefs.h"
9640 /* System header to define __stub macros and hopefully few prototypes,
9641 which can conflict with char gethostbyname (); below. */
9643 /* Override any gcc2 internal prototype to avoid an error. */
9647 /* We use char because int might match the return type of a gcc2
9648 builtin and then its argument prototype would still apply. */
9649 char gethostbyname ();
9655 /* The GNU C library defines this for functions which it implements
9656 to always fail with ENOSYS. Some functions are actually named
9657 something starting with __ and the normal name is an alias. */
9658 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9661 f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9668 rm -f conftest.$ac_objext conftest$ac_exeext
9669 if { (eval echo "$as_me:9669: \"$ac_link\"") >&5
9670 (eval $ac_link) 2>&5
9672 echo "$as_me:9672: \$? = $ac_status" >&5
9673 (exit $ac_status); } &&
9674 { ac_try='test -s conftest$ac_exeext'
9675 { (eval echo "$as_me:9675: \"$ac_try\"") >&5
9678 echo "$as_me:9678: \$? = $ac_status" >&5
9679 (exit $ac_status); }; }; then
9680 ac_cv_func_gethostbyname=yes
9682 echo "$as_me: failed program was:" >&5
9683 cat conftest.$ac_ext >&5
9684 ac_cv_func_gethostbyname=no
9686 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9688 echo "$as_me:9688: result: $ac_cv_func_gethostbyname" >&5
9689 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9691 if test $ac_cv_func_gethostbyname = no; then
9692 echo "$as_me:9692: checking for gethostbyname in -lnsl" >&5
9693 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9694 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 ac_check_lib_save_LIBS=$LIBS
9699 cat >conftest.$ac_ext <<_ACEOF
9700 #line 9700 "configure"
9701 #include "confdefs.h"
9703 /* Override any gcc2 internal prototype to avoid an error. */
9707 /* We use char because int might match the return type of a gcc2
9708 builtin and then its argument prototype would still apply. */
9709 char gethostbyname ();
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (eval echo "$as_me:9719: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>&5
9722 echo "$as_me:9722: \$? = $ac_status" >&5
9723 (exit $ac_status); } &&
9724 { ac_try='test -s conftest$ac_exeext'
9725 { (eval echo "$as_me:9725: \"$ac_try\"") >&5
9728 echo "$as_me:9728: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 ac_cv_lib_nsl_gethostbyname=yes
9732 echo "$as_me: failed program was:" >&5
9733 cat conftest.$ac_ext >&5
9734 ac_cv_lib_nsl_gethostbyname=no
9736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9737 LIBS=$ac_check_lib_save_LIBS
9739 echo "$as_me:9739: result: $ac_cv_lib_nsl_gethostbyname" >&5
9740 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9741 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9745 if test $ac_cv_lib_nsl_gethostbyname = no; then
9746 echo "$as_me:9746: checking for gethostbyname in -lbsd" >&5
9747 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9748 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9751 ac_check_lib_save_LIBS=$LIBS
9753 cat >conftest.$ac_ext <<_ACEOF
9754 #line 9754 "configure"
9755 #include "confdefs.h"
9757 /* Override any gcc2 internal prototype to avoid an error. */
9761 /* We use char because int might match the return type of a gcc2
9762 builtin and then its argument prototype would still apply. */
9763 char gethostbyname ();
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (eval echo "$as_me:9773: \"$ac_link\"") >&5
9774 (eval $ac_link) 2>&5
9776 echo "$as_me:9776: \$? = $ac_status" >&5
9777 (exit $ac_status); } &&
9778 { ac_try='test -s conftest$ac_exeext'
9779 { (eval echo "$as_me:9779: \"$ac_try\"") >&5
9782 echo "$as_me:9782: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_lib_bsd_gethostbyname=yes
9786 echo "$as_me: failed program was:" >&5
9787 cat conftest.$ac_ext >&5
9788 ac_cv_lib_bsd_gethostbyname=no
9790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9791 LIBS=$ac_check_lib_save_LIBS
9793 echo "$as_me:9793: result: $ac_cv_lib_bsd_gethostbyname" >&5
9794 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9795 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9796 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9802 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9803 # socket/setsockopt and other routines are undefined under SCO ODT
9804 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9805 # on later versions), says Simon Leinen: it contains gethostby*
9806 # variants that don't use the nameserver (or something). -lsocket
9807 # must be given before -lnsl if both are needed. We assume that
9808 # if connect needs -lnsl, so does gethostbyname.
9809 echo "$as_me:9809: checking for connect" >&5
9810 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9811 if test "${ac_cv_func_connect+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 cat >conftest.$ac_ext <<_ACEOF
9815 #line 9815 "configure"
9816 #include "confdefs.h"
9817 /* System header to define __stub macros and hopefully few prototypes,
9818 which can conflict with char connect (); below. */
9820 /* Override any gcc2 internal prototype to avoid an error. */
9824 /* We use char because int might match the return type of a gcc2
9825 builtin and then its argument prototype would still apply. */
9832 /* The GNU C library defines this for functions which it implements
9833 to always fail with ENOSYS. Some functions are actually named
9834 something starting with __ and the normal name is an alias. */
9835 #if defined (__stub_connect) || defined (__stub___connect)
9838 f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (eval echo "$as_me:9846: \"$ac_link\"") >&5
9847 (eval $ac_link) 2>&5
9849 echo "$as_me:9849: \$? = $ac_status" >&5
9850 (exit $ac_status); } &&
9851 { ac_try='test -s conftest$ac_exeext'
9852 { (eval echo "$as_me:9852: \"$ac_try\"") >&5
9855 echo "$as_me:9855: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9857 ac_cv_func_connect=yes
9859 echo "$as_me: failed program was:" >&5
9860 cat conftest.$ac_ext >&5
9861 ac_cv_func_connect=no
9863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9865 echo "$as_me:9865: result: $ac_cv_func_connect" >&5
9866 echo "${ECHO_T}$ac_cv_func_connect" >&6
9868 if test $ac_cv_func_connect = no; then
9869 echo "$as_me:9869: checking for connect in -lsocket" >&5
9870 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9871 if test "${ac_cv_lib_socket_connect+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9874 ac_check_lib_save_LIBS=$LIBS
9875 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9876 cat >conftest.$ac_ext <<_ACEOF
9877 #line 9877 "configure"
9878 #include "confdefs.h"
9880 /* Override any gcc2 internal prototype to avoid an error. */
9884 /* We use char because int might match the return type of a gcc2
9885 builtin and then its argument prototype would still apply. */
9895 rm -f conftest.$ac_objext conftest$ac_exeext
9896 if { (eval echo "$as_me:9896: \"$ac_link\"") >&5
9897 (eval $ac_link) 2>&5
9899 echo "$as_me:9899: \$? = $ac_status" >&5
9900 (exit $ac_status); } &&
9901 { ac_try='test -s conftest$ac_exeext'
9902 { (eval echo "$as_me:9902: \"$ac_try\"") >&5
9905 echo "$as_me:9905: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_cv_lib_socket_connect=yes
9909 echo "$as_me: failed program was:" >&5
9910 cat conftest.$ac_ext >&5
9911 ac_cv_lib_socket_connect=no
9913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9914 LIBS=$ac_check_lib_save_LIBS
9916 echo "$as_me:9916: result: $ac_cv_lib_socket_connect" >&5
9917 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9918 if test $ac_cv_lib_socket_connect = yes; then
9919 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9924 # Guillermo Gomez says -lposix is necessary on A/UX.
9925 echo "$as_me:9925: checking for remove" >&5
9926 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9927 if test "${ac_cv_func_remove+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9930 cat >conftest.$ac_ext <<_ACEOF
9931 #line 9931 "configure"
9932 #include "confdefs.h"
9933 /* System header to define __stub macros and hopefully few prototypes,
9934 which can conflict with char remove (); below. */
9936 /* Override any gcc2 internal prototype to avoid an error. */
9940 /* We use char because int might match the return type of a gcc2
9941 builtin and then its argument prototype would still apply. */
9948 /* The GNU C library defines this for functions which it implements
9949 to always fail with ENOSYS. Some functions are actually named
9950 something starting with __ and the normal name is an alias. */
9951 #if defined (__stub_remove) || defined (__stub___remove)
9954 f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9961 rm -f conftest.$ac_objext conftest$ac_exeext
9962 if { (eval echo "$as_me:9962: \"$ac_link\"") >&5
9963 (eval $ac_link) 2>&5
9965 echo "$as_me:9965: \$? = $ac_status" >&5
9966 (exit $ac_status); } &&
9967 { ac_try='test -s conftest$ac_exeext'
9968 { (eval echo "$as_me:9968: \"$ac_try\"") >&5
9971 echo "$as_me:9971: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
9973 ac_cv_func_remove=yes
9975 echo "$as_me: failed program was:" >&5
9976 cat conftest.$ac_ext >&5
9977 ac_cv_func_remove=no
9979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9981 echo "$as_me:9981: result: $ac_cv_func_remove" >&5
9982 echo "${ECHO_T}$ac_cv_func_remove" >&6
9984 if test $ac_cv_func_remove = no; then
9985 echo "$as_me:9985: checking for remove in -lposix" >&5
9986 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9987 if test "${ac_cv_lib_posix_remove+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 ac_check_lib_save_LIBS=$LIBS
9991 LIBS="-lposix $LIBS"
9992 cat >conftest.$ac_ext <<_ACEOF
9993 #line 9993 "configure"
9994 #include "confdefs.h"
9996 /* Override any gcc2 internal prototype to avoid an error. */
10000 /* We use char because int might match the return type of a gcc2
10001 builtin and then its argument prototype would still apply. */
10011 rm -f conftest.$ac_objext conftest$ac_exeext
10012 if { (eval echo "$as_me:10012: \"$ac_link\"") >&5
10013 (eval $ac_link) 2>&5
10015 echo "$as_me:10015: \$? = $ac_status" >&5
10016 (exit $ac_status); } &&
10017 { ac_try='test -s conftest$ac_exeext'
10018 { (eval echo "$as_me:10018: \"$ac_try\"") >&5
10019 (eval $ac_try) 2>&5
10021 echo "$as_me:10021: \$? = $ac_status" >&5
10022 (exit $ac_status); }; }; then
10023 ac_cv_lib_posix_remove=yes
10025 echo "$as_me: failed program was:" >&5
10026 cat conftest.$ac_ext >&5
10027 ac_cv_lib_posix_remove=no
10029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10030 LIBS=$ac_check_lib_save_LIBS
10032 echo "$as_me:10032: result: $ac_cv_lib_posix_remove" >&5
10033 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10034 if test $ac_cv_lib_posix_remove = yes; then
10035 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10040 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10041 echo "$as_me:10041: checking for shmat" >&5
10042 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10043 if test "${ac_cv_func_shmat+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10046 cat >conftest.$ac_ext <<_ACEOF
10047 #line 10047 "configure"
10048 #include "confdefs.h"
10049 /* System header to define __stub macros and hopefully few prototypes,
10050 which can conflict with char shmat (); below. */
10051 #include <assert.h>
10052 /* Override any gcc2 internal prototype to avoid an error. */
10056 /* We use char because int might match the return type of a gcc2
10057 builtin and then its argument prototype would still apply. */
10064 /* The GNU C library defines this for functions which it implements
10065 to always fail with ENOSYS. Some functions are actually named
10066 something starting with __ and the normal name is an alias. */
10067 #if defined (__stub_shmat) || defined (__stub___shmat)
10070 f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10077 rm -f conftest.$ac_objext conftest$ac_exeext
10078 if { (eval echo "$as_me:10078: \"$ac_link\"") >&5
10079 (eval $ac_link) 2>&5
10081 echo "$as_me:10081: \$? = $ac_status" >&5
10082 (exit $ac_status); } &&
10083 { ac_try='test -s conftest$ac_exeext'
10084 { (eval echo "$as_me:10084: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10087 echo "$as_me:10087: \$? = $ac_status" >&5
10088 (exit $ac_status); }; }; then
10089 ac_cv_func_shmat=yes
10091 echo "$as_me: failed program was:" >&5
10092 cat conftest.$ac_ext >&5
10093 ac_cv_func_shmat=no
10095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10097 echo "$as_me:10097: result: $ac_cv_func_shmat" >&5
10098 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10100 if test $ac_cv_func_shmat = no; then
10101 echo "$as_me:10101: checking for shmat in -lipc" >&5
10102 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10103 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 ac_check_lib_save_LIBS=$LIBS
10108 cat >conftest.$ac_ext <<_ACEOF
10109 #line 10109 "configure"
10110 #include "confdefs.h"
10112 /* Override any gcc2 internal prototype to avoid an error. */
10116 /* We use char because int might match the return type of a gcc2
10117 builtin and then its argument prototype would still apply. */
10127 rm -f conftest.$ac_objext conftest$ac_exeext
10128 if { (eval echo "$as_me:10128: \"$ac_link\"") >&5
10129 (eval $ac_link) 2>&5
10131 echo "$as_me:10131: \$? = $ac_status" >&5
10132 (exit $ac_status); } &&
10133 { ac_try='test -s conftest$ac_exeext'
10134 { (eval echo "$as_me:10134: \"$ac_try\"") >&5
10135 (eval $ac_try) 2>&5
10137 echo "$as_me:10137: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10139 ac_cv_lib_ipc_shmat=yes
10141 echo "$as_me: failed program was:" >&5
10142 cat conftest.$ac_ext >&5
10143 ac_cv_lib_ipc_shmat=no
10145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10146 LIBS=$ac_check_lib_save_LIBS
10148 echo "$as_me:10148: result: $ac_cv_lib_ipc_shmat" >&5
10149 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10150 if test $ac_cv_lib_ipc_shmat = yes; then
10151 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10157 # Check for libraries that X11R6 Xt/Xaw programs need.
10158 ac_save_LDFLAGS=$LDFLAGS
10159 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10160 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10161 # check for ICE first), but we must link in the order -lSM -lICE or
10162 # we get undefined symbols. So assume we have SM if we have ICE.
10163 # These have to be linked with before -lX11, unlike the other
10164 # libraries we check for below, so use a different variable.
10165 # John Interrante, Karl Berry
10166 echo "$as_me:10166: checking for IceConnectionNumber in -lICE" >&5
10167 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10168 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 ac_check_lib_save_LIBS=$LIBS
10172 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10173 cat >conftest.$ac_ext <<_ACEOF
10174 #line 10174 "configure"
10175 #include "confdefs.h"
10177 /* Override any gcc2 internal prototype to avoid an error. */
10181 /* We use char because int might match the return type of a gcc2
10182 builtin and then its argument prototype would still apply. */
10183 char IceConnectionNumber ();
10187 IceConnectionNumber ();
10192 rm -f conftest.$ac_objext conftest$ac_exeext
10193 if { (eval echo "$as_me:10193: \"$ac_link\"") >&5
10194 (eval $ac_link) 2>&5
10196 echo "$as_me:10196: \$? = $ac_status" >&5
10197 (exit $ac_status); } &&
10198 { ac_try='test -s conftest$ac_exeext'
10199 { (eval echo "$as_me:10199: \"$ac_try\"") >&5
10200 (eval $ac_try) 2>&5
10202 echo "$as_me:10202: \$? = $ac_status" >&5
10203 (exit $ac_status); }; }; then
10204 ac_cv_lib_ICE_IceConnectionNumber=yes
10206 echo "$as_me: failed program was:" >&5
10207 cat conftest.$ac_ext >&5
10208 ac_cv_lib_ICE_IceConnectionNumber=no
10210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10211 LIBS=$ac_check_lib_save_LIBS
10213 echo "$as_me:10213: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10214 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10215 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10216 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10219 LDFLAGS=$ac_save_LDFLAGS
10223 cf_x_athena=${cf_x_athena:-Xaw}
10225 echo "$as_me:10225: checking if you want to link with Xaw 3d library" >&5
10226 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
10229 # Check whether --with-Xaw3d or --without-Xaw3d was given.
10230 if test "${with_Xaw3d+set}" = set; then
10231 withval="$with_Xaw3d"
10234 if test "$withval" = yes ; then
10236 echo "$as_me:10236: result: yes" >&5
10237 echo "${ECHO_T}yes" >&6
10239 echo "$as_me:10239: result: no" >&5
10240 echo "${ECHO_T}no" >&6
10243 echo "$as_me:10243: checking if you want to link with Xaw 3d xft library" >&5
10244 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
10247 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
10248 if test "${with_Xaw3dxft+set}" = set; then
10249 withval="$with_Xaw3dxft"
10252 if test "$withval" = yes ; then
10253 cf_x_athena=Xaw3dxft
10254 echo "$as_me:10254: result: yes" >&5
10255 echo "${ECHO_T}yes" >&6
10257 echo "$as_me:10257: result: no" >&5
10258 echo "${ECHO_T}no" >&6
10261 echo "$as_me:10261: checking if you want to link with neXT Athena library" >&5
10262 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
10265 # Check whether --with-neXtaw or --without-neXtaw was given.
10266 if test "${with_neXtaw+set}" = set; then
10267 withval="$with_neXtaw"
10270 if test "$withval" = yes ; then
10272 echo "$as_me:10272: result: yes" >&5
10273 echo "${ECHO_T}yes" >&6
10275 echo "$as_me:10275: result: no" >&5
10276 echo "${ECHO_T}no" >&6
10279 echo "$as_me:10279: checking if you want to link with Athena-Plus library" >&5
10280 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
10283 # Check whether --with-XawPlus or --without-XawPlus was given.
10284 if test "${with_XawPlus+set}" = set; then
10285 withval="$with_XawPlus"
10288 if test "$withval" = yes ; then
10289 cf_x_athena=XawPlus
10290 echo "$as_me:10290: result: yes" >&5
10291 echo "${ECHO_T}yes" >&6
10293 echo "$as_me:10293: result: no" >&5
10294 echo "${ECHO_T}no" >&6
10299 if test "$PKG_CONFIG" != none ; then
10301 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
10302 for cf_athena_pkg in \
10305 ${cf_x_athena}-devel \
10306 lib${cf_x_athena} \
10307 lib${cf_x_athena}-devel
10310 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
10311 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
10313 echo "${as_me:-configure}:10313: testing found package $cf_athena_pkg ..." 1>&5
10315 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
10316 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
10317 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
10319 echo "${as_me:-configure}:10319: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10321 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
10323 echo "${as_me:-configure}:10323: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
10328 cf_new_extra_cppflags=
10330 for cf_add_cflags in $cf_pkgconfig_incs
10332 case $cf_fix_cppflags in
10334 case $cf_add_cflags in
10335 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10336 case $cf_add_cflags in
10338 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10340 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10341 && test -z "${cf_tst_cflags}" \
10342 && cf_fix_cppflags=yes
10344 if test $cf_fix_cppflags = yes ; then
10345 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10347 elif test "${cf_tst_cflags}" = "\"'" ; then
10348 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10353 case "$CPPFLAGS" in
10357 case $cf_add_cflags in
10359 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10361 CPPFLAGS=`echo "$CPPFLAGS" | \
10362 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10363 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10367 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10372 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10377 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10379 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10381 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10382 && test -z "${cf_tst_cflags}" \
10383 && cf_fix_cppflags=no
10388 if test -n "$cf_new_cflags" ; then
10390 CFLAGS="$CFLAGS $cf_new_cflags"
10393 if test -n "$cf_new_cppflags" ; then
10395 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10398 if test -n "$cf_new_extra_cppflags" ; then
10400 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10403 cf_add_libs="$cf_pkgconfig_libs"
10404 # Filter out duplicates - this happens with badly-designed ".pc" files...
10405 for cf_add_1lib in $LIBS
10407 for cf_add_2lib in $cf_add_libs
10409 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10415 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10417 LIBS="$cf_add_libs"
10419 cf_x_athena_lib="$cf_pkgconfig_libs"
10421 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10423 cat >>confdefs.h <<EOF
10424 #define $cf_x_athena_LIBS 1
10427 for cf_trim_lib in Xmu Xt X11
10430 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
10431 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
10432 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
10434 echo "${as_me:-configure}:10434: testing ..trimmed $LIBS ..." 1>&5
10440 echo "$as_me:10440: checking for usable $cf_x_athena/Xmu package" >&5
10441 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
10442 if test "${cf_cv_xaw_compat+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10446 cat >conftest.$ac_ext <<_ACEOF
10447 #line 10447 "configure"
10448 #include "confdefs.h"
10450 #include <X11/Xmu/CharSet.h>
10456 int check = XmuCompareISOLatin1("big", "small")
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (eval echo "$as_me:10463: \"$ac_link\"") >&5
10464 (eval $ac_link) 2>&5
10466 echo "$as_me:10466: \$? = $ac_status" >&5
10467 (exit $ac_status); } &&
10468 { ac_try='test -s conftest$ac_exeext'
10469 { (eval echo "$as_me:10469: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10472 echo "$as_me:10472: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
10474 cf_cv_xaw_compat=yes
10476 echo "$as_me: failed program was:" >&5
10477 cat conftest.$ac_ext >&5
10478 cf_cv_xaw_compat=no
10480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10482 echo "$as_me:10482: result: $cf_cv_xaw_compat" >&5
10483 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
10485 if test "$cf_cv_xaw_compat" = no
10487 # workaround for broken ".pc" files...
10488 case "$cf_x_athena_lib" in
10492 test -n "$verbose" && echo " work around broken package" 1>&6
10494 echo "${as_me:-configure}:10494: testing work around broken package ..." 1>&5
10496 cf_save_xmu="$LIBS"
10497 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
10499 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
10500 test -n "$verbose" && echo " found package xmu" 1>&6
10502 echo "${as_me:-configure}:10502: testing found package xmu ..." 1>&5
10504 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
10505 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
10506 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
10508 echo "${as_me:-configure}:10508: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10510 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
10512 echo "${as_me:-configure}:10512: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
10517 cf_new_extra_cppflags=
10519 for cf_add_cflags in $cf_pkgconfig_incs
10521 case $cf_fix_cppflags in
10523 case $cf_add_cflags in
10524 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10525 case $cf_add_cflags in
10527 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10529 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10530 && test -z "${cf_tst_cflags}" \
10531 && cf_fix_cppflags=yes
10533 if test $cf_fix_cppflags = yes ; then
10534 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10536 elif test "${cf_tst_cflags}" = "\"'" ; then
10537 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10542 case "$CPPFLAGS" in
10546 case $cf_add_cflags in
10548 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10550 CPPFLAGS=`echo "$CPPFLAGS" | \
10551 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10552 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10556 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10561 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10566 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10568 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10570 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10571 && test -z "${cf_tst_cflags}" \
10572 && cf_fix_cppflags=no
10577 if test -n "$cf_new_cflags" ; then
10579 CFLAGS="$CFLAGS $cf_new_cflags"
10582 if test -n "$cf_new_cppflags" ; then
10584 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10587 if test -n "$cf_new_extra_cppflags" ; then
10589 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10592 cf_add_libs="$cf_pkgconfig_libs"
10593 # Filter out duplicates - this happens with badly-designed ".pc" files...
10594 for cf_add_1lib in $LIBS
10596 for cf_add_2lib in $cf_add_libs
10598 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10604 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10606 LIBS="$cf_add_libs"
10608 LIBS="$cf_save_xmu"
10610 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10612 echo "${as_me:-configure}:10612: testing ...before $LIBS ..." 1>&5
10614 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
10615 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10617 echo "${as_me:-configure}:10617: testing ...after $LIBS ..." 1>&5
10623 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10625 echo "${as_me:-configure}:10625: testing ...before $LIBS ..." 1>&5
10627 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
10628 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10630 echo "${as_me:-configure}:10630: testing ...after $LIBS ..." 1>&5
10634 for cf_trim_lib in Xmu Xt X11
10637 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
10638 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
10639 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
10641 echo "${as_me:-configure}:10641: testing ..trimmed $LIBS ..." 1>&5
10661 if test -z "$cf_x_athena_lib" ; then
10663 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
10664 test -n "$verbose" && echo " found package Xext" 1>&6
10666 echo "${as_me:-configure}:10666: testing found package Xext ..." 1>&5
10668 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
10669 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
10670 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
10672 echo "${as_me:-configure}:10672: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10674 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
10676 echo "${as_me:-configure}:10676: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
10681 cf_new_extra_cppflags=
10683 for cf_add_cflags in $cf_pkgconfig_incs
10685 case $cf_fix_cppflags in
10687 case $cf_add_cflags in
10688 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10689 case $cf_add_cflags in
10691 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10693 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10694 && test -z "${cf_tst_cflags}" \
10695 && cf_fix_cppflags=yes
10697 if test $cf_fix_cppflags = yes ; then
10698 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10700 elif test "${cf_tst_cflags}" = "\"'" ; then
10701 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10706 case "$CPPFLAGS" in
10710 case $cf_add_cflags in
10712 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10714 CPPFLAGS=`echo "$CPPFLAGS" | \
10715 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10716 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10720 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10725 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10730 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10732 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10734 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10735 && test -z "${cf_tst_cflags}" \
10736 && cf_fix_cppflags=no
10741 if test -n "$cf_new_cflags" ; then
10743 CFLAGS="$CFLAGS $cf_new_cflags"
10746 if test -n "$cf_new_cppflags" ; then
10748 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10751 if test -n "$cf_new_extra_cppflags" ; then
10753 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10756 cf_add_libs="$cf_pkgconfig_libs"
10757 # Filter out duplicates - this happens with badly-designed ".pc" files...
10758 for cf_add_1lib in $LIBS
10760 for cf_add_2lib in $cf_add_libs
10762 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10768 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10770 LIBS="$cf_add_libs"
10777 echo "$as_me:10777: checking for XextCreateExtension in -lXext" >&5
10778 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
10779 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
10780 echo $ECHO_N "(cached) $ECHO_C" >&6
10782 ac_check_lib_save_LIBS=$LIBS
10783 LIBS="-lXext $LIBS"
10784 cat >conftest.$ac_ext <<_ACEOF
10785 #line 10785 "configure"
10786 #include "confdefs.h"
10788 /* Override any gcc2 internal prototype to avoid an error. */
10792 /* We use char because int might match the return type of a gcc2
10793 builtin and then its argument prototype would still apply. */
10794 char XextCreateExtension ();
10798 XextCreateExtension ();
10803 rm -f conftest.$ac_objext conftest$ac_exeext
10804 if { (eval echo "$as_me:10804: \"$ac_link\"") >&5
10805 (eval $ac_link) 2>&5
10807 echo "$as_me:10807: \$? = $ac_status" >&5
10808 (exit $ac_status); } &&
10809 { ac_try='test -s conftest$ac_exeext'
10810 { (eval echo "$as_me:10810: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10813 echo "$as_me:10813: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 ac_cv_lib_Xext_XextCreateExtension=yes
10817 echo "$as_me: failed program was:" >&5
10818 cat conftest.$ac_ext >&5
10819 ac_cv_lib_Xext_XextCreateExtension=no
10821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10822 LIBS=$ac_check_lib_save_LIBS
10824 echo "$as_me:10824: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
10825 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
10826 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
10828 cf_add_libs="-lXext"
10829 # Filter out duplicates - this happens with badly-designed ".pc" files...
10830 for cf_add_1lib in $LIBS
10832 for cf_add_2lib in $cf_add_libs
10834 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10840 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10842 LIBS="$cf_add_libs"
10848 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new), and (and
10849 # in some cases has installed dummy files in the former, other cases replaced
10850 # it with a link to the new location). This complicates the configure script.
10851 # Check for that pitfall, and recover using pkg-config
10853 # If none of these are set, the configuration is almost certainly broken.
10854 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
10857 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
10858 test -n "$verbose" && echo " found package x11" 1>&6
10860 echo "${as_me:-configure}:10860: testing found package x11 ..." 1>&5
10862 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
10863 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
10864 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
10866 echo "${as_me:-configure}:10866: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10868 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
10870 echo "${as_me:-configure}:10870: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
10875 cf_new_extra_cppflags=
10877 for cf_add_cflags in $cf_pkgconfig_incs
10879 case $cf_fix_cppflags in
10881 case $cf_add_cflags in
10882 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10883 case $cf_add_cflags in
10885 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10887 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10888 && test -z "${cf_tst_cflags}" \
10889 && cf_fix_cppflags=yes
10891 if test $cf_fix_cppflags = yes ; then
10892 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10894 elif test "${cf_tst_cflags}" = "\"'" ; then
10895 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10900 case "$CPPFLAGS" in
10904 case $cf_add_cflags in
10906 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10908 CPPFLAGS=`echo "$CPPFLAGS" | \
10909 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10910 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10914 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10919 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10924 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10926 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10928 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10929 && test -z "${cf_tst_cflags}" \
10930 && cf_fix_cppflags=no
10935 if test -n "$cf_new_cflags" ; then
10937 CFLAGS="$CFLAGS $cf_new_cflags"
10940 if test -n "$cf_new_cppflags" ; then
10942 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10945 if test -n "$cf_new_extra_cppflags" ; then
10947 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10950 cf_add_libs="$cf_pkgconfig_libs"
10951 # Filter out duplicates - this happens with badly-designed ".pc" files...
10952 for cf_add_1lib in $LIBS
10954 for cf_add_2lib in $cf_add_libs
10956 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10962 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10964 LIBS="$cf_add_libs"
10970 { echo "$as_me:10970: WARNING: unable to find X11 library" >&5
10971 echo "$as_me: WARNING: unable to find X11 library" >&2;}
10974 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
10975 test -n "$verbose" && echo " found package ice" 1>&6
10977 echo "${as_me:-configure}:10977: testing found package ice ..." 1>&5
10979 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
10980 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
10981 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
10983 echo "${as_me:-configure}:10983: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10985 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
10987 echo "${as_me:-configure}:10987: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
10992 cf_new_extra_cppflags=
10994 for cf_add_cflags in $cf_pkgconfig_incs
10996 case $cf_fix_cppflags in
10998 case $cf_add_cflags in
10999 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11000 case $cf_add_cflags in
11002 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11004 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11005 && test -z "${cf_tst_cflags}" \
11006 && cf_fix_cppflags=yes
11008 if test $cf_fix_cppflags = yes ; then
11009 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11011 elif test "${cf_tst_cflags}" = "\"'" ; then
11012 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11017 case "$CPPFLAGS" in
11021 case $cf_add_cflags in
11023 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11025 CPPFLAGS=`echo "$CPPFLAGS" | \
11026 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11027 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11031 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11036 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11041 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11043 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11045 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11046 && test -z "${cf_tst_cflags}" \
11047 && cf_fix_cppflags=no
11052 if test -n "$cf_new_cflags" ; then
11054 CFLAGS="$CFLAGS $cf_new_cflags"
11057 if test -n "$cf_new_cppflags" ; then
11059 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11062 if test -n "$cf_new_extra_cppflags" ; then
11064 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11067 cf_add_libs="$cf_pkgconfig_libs"
11068 # Filter out duplicates - this happens with badly-designed ".pc" files...
11069 for cf_add_1lib in $LIBS
11071 for cf_add_2lib in $cf_add_libs
11073 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11079 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11081 LIBS="$cf_add_libs"
11087 { echo "$as_me:11087: WARNING: unable to find ICE library" >&5
11088 echo "$as_me: WARNING: unable to find ICE library" >&2;}
11091 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
11092 test -n "$verbose" && echo " found package sm" 1>&6
11094 echo "${as_me:-configure}:11094: testing found package sm ..." 1>&5
11096 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
11097 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
11098 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11100 echo "${as_me:-configure}:11100: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11102 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11104 echo "${as_me:-configure}:11104: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11109 cf_new_extra_cppflags=
11111 for cf_add_cflags in $cf_pkgconfig_incs
11113 case $cf_fix_cppflags in
11115 case $cf_add_cflags in
11116 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11117 case $cf_add_cflags in
11119 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11121 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11122 && test -z "${cf_tst_cflags}" \
11123 && cf_fix_cppflags=yes
11125 if test $cf_fix_cppflags = yes ; then
11126 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11128 elif test "${cf_tst_cflags}" = "\"'" ; then
11129 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11134 case "$CPPFLAGS" in
11138 case $cf_add_cflags in
11140 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11142 CPPFLAGS=`echo "$CPPFLAGS" | \
11143 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11144 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11148 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11153 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11158 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11160 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11162 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11163 && test -z "${cf_tst_cflags}" \
11164 && cf_fix_cppflags=no
11169 if test -n "$cf_new_cflags" ; then
11171 CFLAGS="$CFLAGS $cf_new_cflags"
11174 if test -n "$cf_new_cppflags" ; then
11176 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11179 if test -n "$cf_new_extra_cppflags" ; then
11181 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11184 cf_add_libs="$cf_pkgconfig_libs"
11185 # Filter out duplicates - this happens with badly-designed ".pc" files...
11186 for cf_add_1lib in $LIBS
11188 for cf_add_2lib in $cf_add_libs
11190 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11196 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11198 LIBS="$cf_add_libs"
11204 { echo "$as_me:11204: WARNING: unable to find SM library" >&5
11205 echo "$as_me: WARNING: unable to find SM library" >&2;}
11208 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
11209 test -n "$verbose" && echo " found package xt" 1>&6
11211 echo "${as_me:-configure}:11211: testing found package xt ..." 1>&5
11213 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
11214 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
11215 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
11217 echo "${as_me:-configure}:11217: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11219 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
11221 echo "${as_me:-configure}:11221: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
11226 cf_new_extra_cppflags=
11228 for cf_add_cflags in $cf_pkgconfig_incs
11230 case $cf_fix_cppflags in
11232 case $cf_add_cflags in
11233 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11234 case $cf_add_cflags in
11236 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11238 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11239 && test -z "${cf_tst_cflags}" \
11240 && cf_fix_cppflags=yes
11242 if test $cf_fix_cppflags = yes ; then
11243 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11245 elif test "${cf_tst_cflags}" = "\"'" ; then
11246 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11251 case "$CPPFLAGS" in
11255 case $cf_add_cflags in
11257 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11259 CPPFLAGS=`echo "$CPPFLAGS" | \
11260 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11261 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11265 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11270 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11275 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11277 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11279 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11280 && test -z "${cf_tst_cflags}" \
11281 && cf_fix_cppflags=no
11286 if test -n "$cf_new_cflags" ; then
11288 CFLAGS="$CFLAGS $cf_new_cflags"
11291 if test -n "$cf_new_cppflags" ; then
11293 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11296 if test -n "$cf_new_extra_cppflags" ; then
11298 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11301 cf_add_libs="$cf_pkgconfig_libs"
11302 # Filter out duplicates - this happens with badly-designed ".pc" files...
11303 for cf_add_1lib in $LIBS
11305 for cf_add_2lib in $cf_add_libs
11307 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11313 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11315 LIBS="$cf_add_libs"
11321 { echo "$as_me:11321: WARNING: unable to find Xt library" >&5
11322 echo "$as_me: WARNING: unable to find Xt library" >&2;}
11329 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
11330 test -n "$verbose" && echo " found package xt" 1>&6
11332 echo "${as_me:-configure}:11332: testing found package xt ..." 1>&5
11334 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
11335 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
11336 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
11338 echo "${as_me:-configure}:11338: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11340 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
11342 echo "${as_me:-configure}:11342: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
11347 cf_new_extra_cppflags=
11349 for cf_add_cflags in $cf_pkgconfig_incs
11351 case $cf_fix_cppflags in
11353 case $cf_add_cflags in
11354 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11355 case $cf_add_cflags in
11357 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11359 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11360 && test -z "${cf_tst_cflags}" \
11361 && cf_fix_cppflags=yes
11363 if test $cf_fix_cppflags = yes ; then
11364 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11366 elif test "${cf_tst_cflags}" = "\"'" ; then
11367 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11372 case "$CPPFLAGS" in
11376 case $cf_add_cflags in
11378 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11380 CPPFLAGS=`echo "$CPPFLAGS" | \
11381 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11382 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11386 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11391 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11396 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11398 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11400 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11401 && test -z "${cf_tst_cflags}" \
11402 && cf_fix_cppflags=no
11407 if test -n "$cf_new_cflags" ; then
11409 CFLAGS="$CFLAGS $cf_new_cflags"
11412 if test -n "$cf_new_cppflags" ; then
11414 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11417 if test -n "$cf_new_extra_cppflags" ; then
11419 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11422 cf_add_libs="$cf_pkgconfig_libs"
11423 # Filter out duplicates - this happens with badly-designed ".pc" files...
11424 for cf_add_1lib in $LIBS
11426 for cf_add_2lib in $cf_add_libs
11428 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11434 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11436 LIBS="$cf_add_libs"
11442 # we have an "xt" package, but it may omit Xt's dependency on X11
11443 echo "$as_me:11443: checking for usable X dependency" >&5
11444 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
11445 if test "${cf_cv_xt_x11_compat+set}" = set; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 cat >conftest.$ac_ext <<_ACEOF
11450 #line 11450 "configure"
11451 #include "confdefs.h"
11453 #include <X11/Xlib.h>
11459 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
11460 int rc2 = XClearWindow((Display*) 0, (Window) 0);
11461 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
11462 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
11468 rm -f conftest.$ac_objext conftest$ac_exeext
11469 if { (eval echo "$as_me:11469: \"$ac_link\"") >&5
11470 (eval $ac_link) 2>&5
11472 echo "$as_me:11472: \$? = $ac_status" >&5
11473 (exit $ac_status); } &&
11474 { ac_try='test -s conftest$ac_exeext'
11475 { (eval echo "$as_me:11475: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11478 echo "$as_me:11478: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 cf_cv_xt_x11_compat=yes
11482 echo "$as_me: failed program was:" >&5
11483 cat conftest.$ac_ext >&5
11484 cf_cv_xt_x11_compat=no
11486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11488 echo "$as_me:11488: result: $cf_cv_xt_x11_compat" >&5
11489 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
11490 if test "$cf_cv_xt_x11_compat" = no
11492 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
11494 echo "${as_me:-configure}:11494: testing work around broken X11 dependency ..." 1>&5
11496 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
11498 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
11499 test -n "$verbose" && echo " found package x11" 1>&6
11501 echo "${as_me:-configure}:11501: testing found package x11 ..." 1>&5
11503 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
11504 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
11505 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
11507 echo "${as_me:-configure}:11507: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11509 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
11511 echo "${as_me:-configure}:11511: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
11516 cf_new_extra_cppflags=
11518 for cf_add_cflags in $cf_pkgconfig_incs
11520 case $cf_fix_cppflags in
11522 case $cf_add_cflags in
11523 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11524 case $cf_add_cflags in
11526 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11528 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11529 && test -z "${cf_tst_cflags}" \
11530 && cf_fix_cppflags=yes
11532 if test $cf_fix_cppflags = yes ; then
11533 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11535 elif test "${cf_tst_cflags}" = "\"'" ; then
11536 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11541 case "$CPPFLAGS" in
11545 case $cf_add_cflags in
11547 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11549 CPPFLAGS=`echo "$CPPFLAGS" | \
11550 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11551 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11555 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11560 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11565 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11567 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11569 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11570 && test -z "${cf_tst_cflags}" \
11571 && cf_fix_cppflags=no
11576 if test -n "$cf_new_cflags" ; then
11578 CFLAGS="$CFLAGS $cf_new_cflags"
11581 if test -n "$cf_new_cppflags" ; then
11583 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11586 if test -n "$cf_new_extra_cppflags" ; then
11588 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11591 cf_add_libs="$cf_pkgconfig_libs"
11592 # Filter out duplicates - this happens with badly-designed ".pc" files...
11593 for cf_add_1lib in $LIBS
11595 for cf_add_2lib in $cf_add_libs
11597 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11603 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11605 LIBS="$cf_add_libs"
11612 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11614 echo "${as_me:-configure}:11614: testing ...before $LIBS ..." 1>&5
11616 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
11617 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11619 echo "${as_me:-configure}:11619: testing ...after $LIBS ..." 1>&5
11627 echo "$as_me:11627: checking for usable X Toolkit package" >&5
11628 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
11629 if test "${cf_cv_xt_ice_compat+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 cat >conftest.$ac_ext <<_ACEOF
11634 #line 11634 "configure"
11635 #include "confdefs.h"
11637 #include <X11/Shell.h>
11642 int num = IceConnectionNumber(0)
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (eval echo "$as_me:11649: \"$ac_link\"") >&5
11650 (eval $ac_link) 2>&5
11652 echo "$as_me:11652: \$? = $ac_status" >&5
11653 (exit $ac_status); } &&
11654 { ac_try='test -s conftest$ac_exeext'
11655 { (eval echo "$as_me:11655: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11658 echo "$as_me:11658: \$? = $ac_status" >&5
11659 (exit $ac_status); }; }; then
11660 cf_cv_xt_ice_compat=yes
11662 echo "$as_me: failed program was:" >&5
11663 cat conftest.$ac_ext >&5
11664 cf_cv_xt_ice_compat=no
11666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11668 echo "$as_me:11668: result: $cf_cv_xt_ice_compat" >&5
11669 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
11671 if test "$cf_cv_xt_ice_compat" = no
11673 # workaround for broken ".pc" files used for X Toolkit.
11674 case "x$X_PRE_LIBS" in
11680 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
11682 echo "${as_me:-configure}:11682: testing work around broken ICE dependency ..." 1>&5
11684 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
11685 test -n "$verbose" && echo " found package ice" 1>&6
11687 echo "${as_me:-configure}:11687: testing found package ice ..." 1>&5
11689 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
11690 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
11691 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
11693 echo "${as_me:-configure}:11693: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11695 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
11697 echo "${as_me:-configure}:11697: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
11702 cf_new_extra_cppflags=
11704 for cf_add_cflags in $cf_pkgconfig_incs
11706 case $cf_fix_cppflags in
11708 case $cf_add_cflags in
11709 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11710 case $cf_add_cflags in
11712 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11714 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11715 && test -z "${cf_tst_cflags}" \
11716 && cf_fix_cppflags=yes
11718 if test $cf_fix_cppflags = yes ; then
11719 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11721 elif test "${cf_tst_cflags}" = "\"'" ; then
11722 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11727 case "$CPPFLAGS" in
11731 case $cf_add_cflags in
11733 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11735 CPPFLAGS=`echo "$CPPFLAGS" | \
11736 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11737 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11741 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11746 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11751 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11753 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11755 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11756 && test -z "${cf_tst_cflags}" \
11757 && cf_fix_cppflags=no
11762 if test -n "$cf_new_cflags" ; then
11764 CFLAGS="$CFLAGS $cf_new_cflags"
11767 if test -n "$cf_new_cppflags" ; then
11769 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11772 if test -n "$cf_new_extra_cppflags" ; then
11774 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11777 cf_add_libs="$cf_pkgconfig_libs"
11778 # Filter out duplicates - this happens with badly-designed ".pc" files...
11779 for cf_add_1lib in $LIBS
11781 for cf_add_2lib in $cf_add_libs
11783 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11789 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11791 LIBS="$cf_add_libs"
11793 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
11794 test -n "$verbose" && echo " found package sm" 1>&6
11796 echo "${as_me:-configure}:11796: testing found package sm ..." 1>&5
11798 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
11799 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
11800 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11802 echo "${as_me:-configure}:11802: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11804 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11806 echo "${as_me:-configure}:11806: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11811 cf_new_extra_cppflags=
11813 for cf_add_cflags in $cf_pkgconfig_incs
11815 case $cf_fix_cppflags in
11817 case $cf_add_cflags in
11818 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11819 case $cf_add_cflags in
11821 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11823 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11824 && test -z "${cf_tst_cflags}" \
11825 && cf_fix_cppflags=yes
11827 if test $cf_fix_cppflags = yes ; then
11828 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11830 elif test "${cf_tst_cflags}" = "\"'" ; then
11831 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11836 case "$CPPFLAGS" in
11840 case $cf_add_cflags in
11842 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11844 CPPFLAGS=`echo "$CPPFLAGS" | \
11845 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11846 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11850 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11855 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11860 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11862 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11864 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11865 && test -z "${cf_tst_cflags}" \
11866 && cf_fix_cppflags=no
11871 if test -n "$cf_new_cflags" ; then
11873 CFLAGS="$CFLAGS $cf_new_cflags"
11876 if test -n "$cf_new_cppflags" ; then
11878 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11881 if test -n "$cf_new_extra_cppflags" ; then
11883 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11886 cf_add_libs="$cf_pkgconfig_libs"
11887 # Filter out duplicates - this happens with badly-designed ".pc" files...
11888 for cf_add_1lib in $LIBS
11890 for cf_add_2lib in $cf_add_libs
11892 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11898 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11900 LIBS="$cf_add_libs"
11913 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11915 echo "${as_me:-configure}:11915: testing ...before $LIBS ..." 1>&5
11917 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
11918 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11920 echo "${as_me:-configure}:11920: testing ...after $LIBS ..." 1>&5
11936 LDFLAGS="$X_LIBS $LDFLAGS"
11938 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
11940 echo "${as_me:-configure}:11940: testing checking additions to CFLAGS ..." 1>&5
11942 cf_check_cflags="$CFLAGS"
11943 cf_check_cppflags="$CPPFLAGS"
11948 cf_new_extra_cppflags=
11950 for cf_add_cflags in $X_CFLAGS
11952 case $cf_fix_cppflags in
11954 case $cf_add_cflags in
11955 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11956 case $cf_add_cflags in
11958 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11960 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11961 && test -z "${cf_tst_cflags}" \
11962 && cf_fix_cppflags=yes
11964 if test $cf_fix_cppflags = yes ; then
11965 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11967 elif test "${cf_tst_cflags}" = "\"'" ; then
11968 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11973 case "$CPPFLAGS" in
11977 case $cf_add_cflags in
11979 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11981 CPPFLAGS=`echo "$CPPFLAGS" | \
11982 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11983 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11987 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11992 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11997 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11999 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12001 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12002 && test -z "${cf_tst_cflags}" \
12003 && cf_fix_cppflags=no
12008 if test -n "$cf_new_cflags" ; then
12009 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
12011 echo "${as_me:-configure}:12011: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
12013 CFLAGS="$CFLAGS $cf_new_cflags"
12016 if test -n "$cf_new_cppflags" ; then
12017 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
12019 echo "${as_me:-configure}:12019: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
12021 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12024 if test -n "$cf_new_extra_cppflags" ; then
12025 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
12027 echo "${as_me:-configure}:12027: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
12029 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12032 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
12033 cat >conftest.$ac_ext <<_ACEOF
12034 #line 12034 "configure"
12035 #include "confdefs.h"
12040 printf("Hello world");
12045 rm -f conftest.$ac_objext conftest$ac_exeext
12046 if { (eval echo "$as_me:12046: \"$ac_link\"") >&5
12047 (eval $ac_link) 2>&5
12049 echo "$as_me:12049: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -s conftest$ac_exeext'
12052 { (eval echo "$as_me:12052: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12055 echo "$as_me:12055: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12059 echo "$as_me: failed program was:" >&5
12060 cat conftest.$ac_ext >&5
12061 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
12063 echo "${as_me:-configure}:12063: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
12065 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
12066 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
12068 echo "${as_me:-configure}:12068: testing but keeping change to \$CPPFLAGS ..." 1>&5
12071 CFLAGS="$cf_check_flags"
12073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12076 echo "$as_me:12076: checking for XOpenDisplay" >&5
12077 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
12078 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12081 cat >conftest.$ac_ext <<_ACEOF
12082 #line 12082 "configure"
12083 #include "confdefs.h"
12084 /* System header to define __stub macros and hopefully few prototypes,
12085 which can conflict with char XOpenDisplay (); below. */
12086 #include <assert.h>
12087 /* Override any gcc2 internal prototype to avoid an error. */
12091 /* We use char because int might match the return type of a gcc2
12092 builtin and then its argument prototype would still apply. */
12093 char XOpenDisplay ();
12099 /* The GNU C library defines this for functions which it implements
12100 to always fail with ENOSYS. Some functions are actually named
12101 something starting with __ and the normal name is an alias. */
12102 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
12105 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (eval echo "$as_me:12113: \"$ac_link\"") >&5
12114 (eval $ac_link) 2>&5
12116 echo "$as_me:12116: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
12118 { ac_try='test -s conftest$ac_exeext'
12119 { (eval echo "$as_me:12119: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12122 echo "$as_me:12122: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 ac_cv_func_XOpenDisplay=yes
12126 echo "$as_me: failed program was:" >&5
12127 cat conftest.$ac_ext >&5
12128 ac_cv_func_XOpenDisplay=no
12130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12132 echo "$as_me:12132: result: $ac_cv_func_XOpenDisplay" >&5
12133 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
12134 if test $ac_cv_func_XOpenDisplay = yes; then
12138 echo "$as_me:12138: checking for XOpenDisplay in -lX11" >&5
12139 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
12140 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12143 ac_check_lib_save_LIBS=$LIBS
12144 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12145 cat >conftest.$ac_ext <<_ACEOF
12146 #line 12146 "configure"
12147 #include "confdefs.h"
12149 /* Override any gcc2 internal prototype to avoid an error. */
12153 /* We use char because int might match the return type of a gcc2
12154 builtin and then its argument prototype would still apply. */
12155 char XOpenDisplay ();
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (eval echo "$as_me:12165: \"$ac_link\"") >&5
12166 (eval $ac_link) 2>&5
12168 echo "$as_me:12168: \$? = $ac_status" >&5
12169 (exit $ac_status); } &&
12170 { ac_try='test -s conftest$ac_exeext'
12171 { (eval echo "$as_me:12171: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12174 echo "$as_me:12174: \$? = $ac_status" >&5
12175 (exit $ac_status); }; }; then
12176 ac_cv_lib_X11_XOpenDisplay=yes
12178 echo "$as_me: failed program was:" >&5
12179 cat conftest.$ac_ext >&5
12180 ac_cv_lib_X11_XOpenDisplay=no
12182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12183 LIBS=$ac_check_lib_save_LIBS
12185 echo "$as_me:12185: result: $ac_cv_lib_X11_XOpenDisplay" >&5
12186 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
12187 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
12189 cf_add_libs="-lX11"
12190 # Filter out duplicates - this happens with badly-designed ".pc" files...
12191 for cf_add_1lib in $LIBS
12193 for cf_add_2lib in $cf_add_libs
12195 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12201 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12203 LIBS="$cf_add_libs"
12209 echo "$as_me:12209: checking for XtAppInitialize" >&5
12210 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
12211 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 cat >conftest.$ac_ext <<_ACEOF
12215 #line 12215 "configure"
12216 #include "confdefs.h"
12217 /* System header to define __stub macros and hopefully few prototypes,
12218 which can conflict with char XtAppInitialize (); below. */
12219 #include <assert.h>
12220 /* Override any gcc2 internal prototype to avoid an error. */
12224 /* We use char because int might match the return type of a gcc2
12225 builtin and then its argument prototype would still apply. */
12226 char XtAppInitialize ();
12232 /* The GNU C library defines this for functions which it implements
12233 to always fail with ENOSYS. Some functions are actually named
12234 something starting with __ and the normal name is an alias. */
12235 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
12238 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12245 rm -f conftest.$ac_objext conftest$ac_exeext
12246 if { (eval echo "$as_me:12246: \"$ac_link\"") >&5
12247 (eval $ac_link) 2>&5
12249 echo "$as_me:12249: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
12251 { ac_try='test -s conftest$ac_exeext'
12252 { (eval echo "$as_me:12252: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12255 echo "$as_me:12255: \$? = $ac_status" >&5
12256 (exit $ac_status); }; }; then
12257 ac_cv_func_XtAppInitialize=yes
12259 echo "$as_me: failed program was:" >&5
12260 cat conftest.$ac_ext >&5
12261 ac_cv_func_XtAppInitialize=no
12263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12265 echo "$as_me:12265: result: $ac_cv_func_XtAppInitialize" >&5
12266 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
12267 if test $ac_cv_func_XtAppInitialize = yes; then
12271 echo "$as_me:12271: checking for XtAppInitialize in -lXt" >&5
12272 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
12273 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 ac_check_lib_save_LIBS=$LIBS
12277 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12278 cat >conftest.$ac_ext <<_ACEOF
12279 #line 12279 "configure"
12280 #include "confdefs.h"
12282 /* Override any gcc2 internal prototype to avoid an error. */
12286 /* We use char because int might match the return type of a gcc2
12287 builtin and then its argument prototype would still apply. */
12288 char XtAppInitialize ();
12292 XtAppInitialize ();
12297 rm -f conftest.$ac_objext conftest$ac_exeext
12298 if { (eval echo "$as_me:12298: \"$ac_link\"") >&5
12299 (eval $ac_link) 2>&5
12301 echo "$as_me:12301: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try='test -s conftest$ac_exeext'
12304 { (eval echo "$as_me:12304: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12307 echo "$as_me:12307: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309 ac_cv_lib_Xt_XtAppInitialize=yes
12311 echo "$as_me: failed program was:" >&5
12312 cat conftest.$ac_ext >&5
12313 ac_cv_lib_Xt_XtAppInitialize=no
12315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12316 LIBS=$ac_check_lib_save_LIBS
12318 echo "$as_me:12318: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
12319 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
12320 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
12322 cat >>confdefs.h <<\EOF
12323 #define HAVE_LIBXT 1
12327 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
12334 if test $cf_have_X_LIBS = no ; then
12335 { echo "$as_me:12335: WARNING: Unable to successfully link X Toolkit library (-lXt) with
12336 test program. You will have to check and add the proper libraries by hand
12338 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
12339 test program. You will have to check and add the proper libraries by hand
12340 to makefile." >&2;}
12343 cf_x_athena_root=$cf_x_athena
12346 for cf_path in default \
12347 /usr/contrib/X11R6 \
12348 /usr/contrib/X11R5 \
12352 if test -z "$cf_x_athena_inc" ; then
12353 cf_save="$CPPFLAGS"
12354 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
12355 if test $cf_path != default ; then
12356 CPPFLAGS="$cf_save -I$cf_path/include"
12357 echo "$as_me:12357: checking for $cf_test in $cf_path" >&5
12358 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
12360 echo "$as_me:12360: checking for $cf_test" >&5
12361 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
12363 cat >conftest.$ac_ext <<_ACEOF
12364 #line 12364 "configure"
12365 #include "confdefs.h"
12367 #include <X11/Intrinsic.h>
12368 #include <$cf_test>
12377 rm -f conftest.$ac_objext
12378 if { (eval echo "$as_me:12378: \"$ac_compile\"") >&5
12379 (eval $ac_compile) 2>&5
12381 echo "$as_me:12381: \$? = $ac_status" >&5
12382 (exit $ac_status); } &&
12383 { ac_try='test -s conftest.$ac_objext'
12384 { (eval echo "$as_me:12384: \"$ac_try\"") >&5
12385 (eval $ac_try) 2>&5
12387 echo "$as_me:12387: \$? = $ac_status" >&5
12388 (exit $ac_status); }; }; then
12391 echo "$as_me: failed program was:" >&5
12392 cat conftest.$ac_ext >&5
12395 rm -f conftest.$ac_objext conftest.$ac_ext
12396 echo "$as_me:12396: result: $cf_result" >&5
12397 echo "${ECHO_T}$cf_result" >&6
12398 if test "$cf_result" = yes ; then
12399 cf_x_athena_inc=$cf_path
12402 CPPFLAGS="$cf_save"
12407 if test -z "$cf_x_athena_inc" ; then
12408 { echo "$as_me:12408: WARNING: Unable to successfully find Athena header files with test program" >&5
12409 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
12410 elif test "$cf_x_athena_inc" != default ; then
12411 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
12414 cf_x_athena_root=$cf_x_athena
12417 for cf_path in default \
12418 /usr/contrib/X11R6 \
12419 /usr/contrib/X11R5 \
12424 ${cf_x_athena_root} \
12425 ${cf_x_athena_root}7 \
12426 ${cf_x_athena_root}6
12429 "-l$cf_lib -lXmu" \
12430 "-l$cf_lib -lXpm -lXmu" \
12431 "-l${cf_lib}_s -lXmu_s"
12433 if test -z "$cf_x_athena_lib" ; then
12435 cf_test=XawSimpleMenuAddGlobalActions
12436 if test $cf_path != default ; then
12438 cf_add_libs="-L$cf_path/lib $cf_libs"
12439 # Filter out duplicates - this happens with badly-designed ".pc" files...
12440 for cf_add_1lib in $LIBS
12442 for cf_add_2lib in $cf_add_libs
12444 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12450 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12452 LIBS="$cf_add_libs"
12454 echo "$as_me:12454: checking for $cf_libs in $cf_path" >&5
12455 echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6
12458 cf_add_libs="$cf_libs"
12459 # Filter out duplicates - this happens with badly-designed ".pc" files...
12460 for cf_add_1lib in $LIBS
12462 for cf_add_2lib in $cf_add_libs
12464 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12470 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12472 LIBS="$cf_add_libs"
12474 echo "$as_me:12474: checking for $cf_test in $cf_libs" >&5
12475 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
12477 cat >conftest.$ac_ext <<_ACEOF
12478 #line 12478 "configure"
12479 #include "confdefs.h"
12481 #include <X11/Intrinsic.h>
12482 #include <X11/$cf_x_athena_root/SimpleMenu.h>
12488 $cf_test((XtAppContext) 0)
12493 rm -f conftest.$ac_objext conftest$ac_exeext
12494 if { (eval echo "$as_me:12494: \"$ac_link\"") >&5
12495 (eval $ac_link) 2>&5
12497 echo "$as_me:12497: \$? = $ac_status" >&5
12498 (exit $ac_status); } &&
12499 { ac_try='test -s conftest$ac_exeext'
12500 { (eval echo "$as_me:12500: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12503 echo "$as_me:12503: \$? = $ac_status" >&5
12504 (exit $ac_status); }; }; then
12507 echo "$as_me: failed program was:" >&5
12508 cat conftest.$ac_ext >&5
12511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12512 echo "$as_me:12512: result: $cf_result" >&5
12513 echo "${ECHO_T}$cf_result" >&6
12514 if test "$cf_result" = yes ; then
12515 cf_x_athena_lib="$cf_libs"
12521 test -n "$cf_x_athena_lib" && break
12525 if test -z "$cf_x_athena_lib" ; then
12526 { { echo "$as_me:12526: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
12527 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
12528 { (exit 1); exit 1; }; }
12531 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12533 cat >>confdefs.h <<EOF
12534 #define $cf_x_athena_LIBS 1
12539 if test -n "$ac_tool_prefix"; then
12540 for ac_prog in xcurses-config
12542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12544 echo "$as_me:12544: checking for $ac_word" >&5
12545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12546 if test "${ac_cv_prog_XCURSES_CONFIG+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 if test -n "$XCURSES_CONFIG"; then
12550 ac_cv_prog_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test.
12552 ac_save_IFS=$IFS; IFS=$ac_path_separator
12554 for ac_dir in $ac_dummy; do
12556 test -z "$ac_dir" && ac_dir=.
12557 $as_executable_p "$ac_dir/$ac_word" || continue
12558 ac_cv_prog_XCURSES_CONFIG="$ac_tool_prefix$ac_prog"
12559 echo "$as_me:12559: found $ac_dir/$ac_word" >&5
12565 XCURSES_CONFIG=$ac_cv_prog_XCURSES_CONFIG
12566 if test -n "$XCURSES_CONFIG"; then
12567 echo "$as_me:12567: result: $XCURSES_CONFIG" >&5
12568 echo "${ECHO_T}$XCURSES_CONFIG" >&6
12570 echo "$as_me:12570: result: no" >&5
12571 echo "${ECHO_T}no" >&6
12574 test -n "$XCURSES_CONFIG" && break
12577 if test -z "$XCURSES_CONFIG"; then
12578 ac_ct_XCURSES_CONFIG=$XCURSES_CONFIG
12579 for ac_prog in xcurses-config
12581 # Extract the first word of "$ac_prog", so it can be a program name with args.
12582 set dummy $ac_prog; ac_word=$2
12583 echo "$as_me:12583: checking for $ac_word" >&5
12584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12585 if test "${ac_cv_prog_ac_ct_XCURSES_CONFIG+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 if test -n "$ac_ct_XCURSES_CONFIG"; then
12589 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_ct_XCURSES_CONFIG" # Let the user override the test.
12591 ac_save_IFS=$IFS; IFS=$ac_path_separator
12593 for ac_dir in $ac_dummy; do
12595 test -z "$ac_dir" && ac_dir=.
12596 $as_executable_p "$ac_dir/$ac_word" || continue
12597 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_prog"
12598 echo "$as_me:12598: found $ac_dir/$ac_word" >&5
12604 ac_ct_XCURSES_CONFIG=$ac_cv_prog_ac_ct_XCURSES_CONFIG
12605 if test -n "$ac_ct_XCURSES_CONFIG"; then
12606 echo "$as_me:12606: result: $ac_ct_XCURSES_CONFIG" >&5
12607 echo "${ECHO_T}$ac_ct_XCURSES_CONFIG" >&6
12609 echo "$as_me:12609: result: no" >&5
12610 echo "${ECHO_T}no" >&6
12613 test -n "$ac_ct_XCURSES_CONFIG" && break
12615 test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG="none"
12617 XCURSES_CONFIG=$ac_ct_XCURSES_CONFIG
12620 if test "$XCURSES_CONFIG" != none ; then
12622 CPPFLAGS="$CPPFLAGS `$XCURSES_CONFIG --cflags`"
12624 cf_add_libs="`$XCURSES_CONFIG --libs`"
12625 # Filter out duplicates - this happens with badly-designed ".pc" files...
12626 for cf_add_1lib in $LIBS
12628 for cf_add_2lib in $cf_add_libs
12630 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12636 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12638 LIBS="$cf_add_libs"
12640 cf_cv_lib_XCurses=yes
12644 LDFLAGS="$LDFLAGS $X_LIBS"
12646 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
12648 echo "${as_me:-configure}:12648: testing checking additions to CFLAGS ..." 1>&5
12650 cf_check_cflags="$CFLAGS"
12651 cf_check_cppflags="$CPPFLAGS"
12656 cf_new_extra_cppflags=
12658 for cf_add_cflags in $X_CFLAGS
12660 case $cf_fix_cppflags in
12662 case $cf_add_cflags in
12663 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12664 case $cf_add_cflags in
12666 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12668 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12669 && test -z "${cf_tst_cflags}" \
12670 && cf_fix_cppflags=yes
12672 if test $cf_fix_cppflags = yes ; then
12673 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12675 elif test "${cf_tst_cflags}" = "\"'" ; then
12676 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12681 case "$CPPFLAGS" in
12685 case $cf_add_cflags in
12687 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12689 CPPFLAGS=`echo "$CPPFLAGS" | \
12690 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12691 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12695 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12700 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12705 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12707 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12709 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12710 && test -z "${cf_tst_cflags}" \
12711 && cf_fix_cppflags=no
12716 if test -n "$cf_new_cflags" ; then
12717 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
12719 echo "${as_me:-configure}:12719: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
12721 CFLAGS="$CFLAGS $cf_new_cflags"
12724 if test -n "$cf_new_cppflags" ; then
12725 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
12727 echo "${as_me:-configure}:12727: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
12729 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12732 if test -n "$cf_new_extra_cppflags" ; then
12733 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
12735 echo "${as_me:-configure}:12735: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
12737 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12740 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
12741 cat >conftest.$ac_ext <<_ACEOF
12742 #line 12742 "configure"
12743 #include "confdefs.h"
12748 printf("Hello world");
12753 rm -f conftest.$ac_objext conftest$ac_exeext
12754 if { (eval echo "$as_me:12754: \"$ac_link\"") >&5
12755 (eval $ac_link) 2>&5
12757 echo "$as_me:12757: \$? = $ac_status" >&5
12758 (exit $ac_status); } &&
12759 { ac_try='test -s conftest$ac_exeext'
12760 { (eval echo "$as_me:12760: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12763 echo "$as_me:12763: \$? = $ac_status" >&5
12764 (exit $ac_status); }; }; then
12767 echo "$as_me: failed program was:" >&5
12768 cat conftest.$ac_ext >&5
12769 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
12771 echo "${as_me:-configure}:12771: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
12773 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
12774 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
12776 echo "${as_me:-configure}:12776: testing but keeping change to \$CPPFLAGS ..." 1>&5
12779 CFLAGS="$cf_check_flags"
12781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12784 echo "$as_me:12784: checking for XOpenDisplay in -lX11" >&5
12785 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
12786 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12789 ac_check_lib_save_LIBS=$LIBS
12790 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12791 cat >conftest.$ac_ext <<_ACEOF
12792 #line 12792 "configure"
12793 #include "confdefs.h"
12795 /* Override any gcc2 internal prototype to avoid an error. */
12799 /* We use char because int might match the return type of a gcc2
12800 builtin and then its argument prototype would still apply. */
12801 char XOpenDisplay ();
12810 rm -f conftest.$ac_objext conftest$ac_exeext
12811 if { (eval echo "$as_me:12811: \"$ac_link\"") >&5
12812 (eval $ac_link) 2>&5
12814 echo "$as_me:12814: \$? = $ac_status" >&5
12815 (exit $ac_status); } &&
12816 { ac_try='test -s conftest$ac_exeext'
12817 { (eval echo "$as_me:12817: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12820 echo "$as_me:12820: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_cv_lib_X11_XOpenDisplay=yes
12824 echo "$as_me: failed program was:" >&5
12825 cat conftest.$ac_ext >&5
12826 ac_cv_lib_X11_XOpenDisplay=no
12828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12829 LIBS=$ac_check_lib_save_LIBS
12831 echo "$as_me:12831: result: $ac_cv_lib_X11_XOpenDisplay" >&5
12832 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
12833 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
12835 cf_add_libs="-lX11"
12836 # Filter out duplicates - this happens with badly-designed ".pc" files...
12837 for cf_add_1lib in $LIBS
12839 for cf_add_2lib in $cf_add_libs
12841 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12847 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12849 LIBS="$cf_add_libs"
12853 echo "$as_me:12853: checking for XCurses library" >&5
12854 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
12855 if test "${cf_cv_lib_XCurses+set}" = set; then
12856 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 cf_add_libs="-lXCurses"
12860 # Filter out duplicates - this happens with badly-designed ".pc" files...
12861 for cf_add_1lib in $LIBS
12863 for cf_add_2lib in $cf_add_libs
12865 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12871 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12873 LIBS="$cf_add_libs"
12875 cat >conftest.$ac_ext <<_ACEOF
12876 #line 12876 "configure"
12877 #include "confdefs.h"
12879 #include <xcurses.h>
12880 char *XCursesProgramName = "test";
12890 rm -f conftest.$ac_objext conftest$ac_exeext
12891 if { (eval echo "$as_me:12891: \"$ac_link\"") >&5
12892 (eval $ac_link) 2>&5
12894 echo "$as_me:12894: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
12896 { ac_try='test -s conftest$ac_exeext'
12897 { (eval echo "$as_me:12897: \"$ac_try\"") >&5
12898 (eval $ac_try) 2>&5
12900 echo "$as_me:12900: \$? = $ac_status" >&5
12901 (exit $ac_status); }; }; then
12902 cf_cv_lib_XCurses=yes
12904 echo "$as_me: failed program was:" >&5
12905 cat conftest.$ac_ext >&5
12906 cf_cv_lib_XCurses=no
12908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12911 echo "$as_me:12911: result: $cf_cv_lib_XCurses" >&5
12912 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
12916 if test $cf_cv_lib_XCurses = yes ; then
12918 cat >>confdefs.h <<\EOF
12922 cat >>confdefs.h <<\EOF
12926 echo "$as_me:12926: checking for xcurses.h" >&5
12927 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
12928 if test "${ac_cv_header_xcurses_h+set}" = set; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12931 cat >conftest.$ac_ext <<_ACEOF
12932 #line 12932 "configure"
12933 #include "confdefs.h"
12934 #include <xcurses.h>
12936 if { (eval echo "$as_me:12936: \"$ac_cpp conftest.$ac_ext\"") >&5
12937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12939 egrep -v '^ *\+' conftest.er1 >conftest.err
12941 cat conftest.err >&5
12942 echo "$as_me:12942: \$? = $ac_status" >&5
12943 (exit $ac_status); } >/dev/null; then
12944 if test -s conftest.err; then
12945 ac_cpp_err=$ac_c_preproc_warn_flag
12952 if test -z "$ac_cpp_err"; then
12953 ac_cv_header_xcurses_h=yes
12955 echo "$as_me: failed program was:" >&5
12956 cat conftest.$ac_ext >&5
12957 ac_cv_header_xcurses_h=no
12959 rm -f conftest.err conftest.$ac_ext
12961 echo "$as_me:12961: result: $ac_cv_header_xcurses_h" >&5
12962 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
12963 if test $ac_cv_header_xcurses_h = yes; then
12965 cat >>confdefs.h <<\EOF
12966 #define HAVE_XCURSES 1
12972 { { echo "$as_me:12972: error: Cannot link with XCurses" >&5
12973 echo "$as_me: error: Cannot link with XCurses" >&2;}
12974 { (exit 1); exit 1; }; }
12979 { { echo "$as_me:12979: error: unexpected screen-value: $cf_cv_screen" >&5
12980 echo "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;}
12981 { (exit 1); exit 1; }; }
12985 case $cf_cv_screen in
12987 cf_cv_libtype=`echo "$cf_cv_screen" | sed -e 's/^ncurses//'`
12991 echo "$as_me:12991: checking for NetBSD form.h" >&5
12992 echo $ECHO_N "checking for NetBSD form.h... $ECHO_C" >&6
12993 if test "${cf_cv_netbsd_form_h+set}" = set; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12997 cat >conftest.$ac_ext <<_ACEOF
12998 #line 12998 "configure"
12999 #include "confdefs.h"
13001 #include <${cf_cv_ncurses_header:-curses.h}>
13009 int y = current_field(form)->cursor_ypos;
13010 int x = current_field(form)->cursor_xpos;
13016 rm -f conftest.$ac_objext
13017 if { (eval echo "$as_me:13017: \"$ac_compile\"") >&5
13018 (eval $ac_compile) 2>&5
13020 echo "$as_me:13020: \$? = $ac_status" >&5
13021 (exit $ac_status); } &&
13022 { ac_try='test -s conftest.$ac_objext'
13023 { (eval echo "$as_me:13023: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13026 echo "$as_me:13026: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }; then
13028 cf_cv_netbsd_form_h=yes
13031 echo "$as_me: failed program was:" >&5
13032 cat conftest.$ac_ext >&5
13033 cf_cv_netbsd_form_h=no
13035 rm -f conftest.$ac_objext conftest.$ac_ext
13038 echo "$as_me:13038: result: $cf_cv_netbsd_form_h" >&5
13039 echo "${ECHO_T}$cf_cv_netbsd_form_h" >&6
13041 test "$cf_cv_netbsd_form_h" = yes &&
13042 cat >>confdefs.h <<\EOF
13043 #define HAVE_NETBSD_FORM_H 1
13046 echo "$as_me:13046: checking for NetBSD menu.h" >&5
13047 echo $ECHO_N "checking for NetBSD menu.h... $ECHO_C" >&6
13048 if test "${cf_cv_netbsd_menu_h+set}" = set; then
13049 echo $ECHO_N "(cached) $ECHO_C" >&6
13052 cat >conftest.$ac_ext <<_ACEOF
13053 #line 13053 "configure"
13054 #include "confdefs.h"
13056 #include <${cf_cv_ncurses_header:-curses.h}>
13064 int y = menu->max_item_width;
13070 rm -f conftest.$ac_objext
13071 if { (eval echo "$as_me:13071: \"$ac_compile\"") >&5
13072 (eval $ac_compile) 2>&5
13074 echo "$as_me:13074: \$? = $ac_status" >&5
13075 (exit $ac_status); } &&
13076 { ac_try='test -s conftest.$ac_objext'
13077 { (eval echo "$as_me:13077: \"$ac_try\"") >&5
13078 (eval $ac_try) 2>&5
13080 echo "$as_me:13080: \$? = $ac_status" >&5
13081 (exit $ac_status); }; }; then
13082 cf_cv_netbsd_menu_h=yes
13085 echo "$as_me: failed program was:" >&5
13086 cat conftest.$ac_ext >&5
13087 cf_cv_netbsd_menu_h=no
13089 rm -f conftest.$ac_objext conftest.$ac_ext
13092 echo "$as_me:13092: result: $cf_cv_netbsd_menu_h" >&5
13093 echo "${ECHO_T}$cf_cv_netbsd_menu_h" >&6
13095 test "$cf_cv_netbsd_menu_h" = yes &&
13096 cat >>confdefs.h <<\EOF
13097 #define HAVE_NETBSD_MENU_H 1
13103 case $cf_cv_screen in
13107 # look for curses-related libraries
13109 as_ac_Lib=`echo "ac_cv_lib_panel$cf_cv_libtype''_new_panel" | $as_tr_sh`
13110 echo "$as_me:13110: checking for new_panel in -lpanel$cf_cv_libtype" >&5
13111 echo $ECHO_N "checking for new_panel in -lpanel$cf_cv_libtype... $ECHO_C" >&6
13112 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13115 ac_check_lib_save_LIBS=$LIBS
13116 LIBS="-lpanel$cf_cv_libtype $LIBS"
13117 cat >conftest.$ac_ext <<_ACEOF
13118 #line 13118 "configure"
13119 #include "confdefs.h"
13121 /* Override any gcc2 internal prototype to avoid an error. */
13125 /* We use char because int might match the return type of a gcc2
13126 builtin and then its argument prototype would still apply. */
13136 rm -f conftest.$ac_objext conftest$ac_exeext
13137 if { (eval echo "$as_me:13137: \"$ac_link\"") >&5
13138 (eval $ac_link) 2>&5
13140 echo "$as_me:13140: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -s conftest$ac_exeext'
13143 { (eval echo "$as_me:13143: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13146 echo "$as_me:13146: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 eval "$as_ac_Lib=yes"
13150 echo "$as_me: failed program was:" >&5
13151 cat conftest.$ac_ext >&5
13152 eval "$as_ac_Lib=no"
13154 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13155 LIBS=$ac_check_lib_save_LIBS
13157 echo "$as_me:13157: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13158 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13159 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13161 cf_upper=`echo "have_libpanel" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13163 cf_add_libs="-lpanel$cf_cv_libtype"
13164 # Filter out duplicates - this happens with badly-designed ".pc" files...
13165 for cf_add_1lib in $LIBS
13167 for cf_add_2lib in $cf_add_libs
13169 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13175 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13177 LIBS="$cf_add_libs"
13179 cat >>confdefs.h <<EOF
13180 #define $cf_upper 1
13185 as_ac_Lib=`echo "ac_cv_lib_menu$cf_cv_libtype''_menu_driver" | $as_tr_sh`
13186 echo "$as_me:13186: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
13187 echo $ECHO_N "checking for menu_driver in -lmenu$cf_cv_libtype... $ECHO_C" >&6
13188 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 ac_check_lib_save_LIBS=$LIBS
13192 LIBS="-lmenu$cf_cv_libtype $LIBS"
13193 cat >conftest.$ac_ext <<_ACEOF
13194 #line 13194 "configure"
13195 #include "confdefs.h"
13197 /* Override any gcc2 internal prototype to avoid an error. */
13201 /* We use char because int might match the return type of a gcc2
13202 builtin and then its argument prototype would still apply. */
13203 char menu_driver ();
13212 rm -f conftest.$ac_objext conftest$ac_exeext
13213 if { (eval echo "$as_me:13213: \"$ac_link\"") >&5
13214 (eval $ac_link) 2>&5
13216 echo "$as_me:13216: \$? = $ac_status" >&5
13217 (exit $ac_status); } &&
13218 { ac_try='test -s conftest$ac_exeext'
13219 { (eval echo "$as_me:13219: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13222 echo "$as_me:13222: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }; then
13224 eval "$as_ac_Lib=yes"
13226 echo "$as_me: failed program was:" >&5
13227 cat conftest.$ac_ext >&5
13228 eval "$as_ac_Lib=no"
13230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13231 LIBS=$ac_check_lib_save_LIBS
13233 echo "$as_me:13233: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13234 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13235 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13237 cf_upper=`echo "have_libmenu" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13239 cf_add_libs="-lmenu$cf_cv_libtype"
13240 # Filter out duplicates - this happens with badly-designed ".pc" files...
13241 for cf_add_1lib in $LIBS
13243 for cf_add_2lib in $cf_add_libs
13245 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13251 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13253 LIBS="$cf_add_libs"
13255 cat >>confdefs.h <<EOF
13256 #define $cf_upper 1
13261 as_ac_Lib=`echo "ac_cv_lib_form$cf_cv_libtype''_form_driver" | $as_tr_sh`
13262 echo "$as_me:13262: checking for form_driver in -lform$cf_cv_libtype" >&5
13263 echo $ECHO_N "checking for form_driver in -lform$cf_cv_libtype... $ECHO_C" >&6
13264 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13265 echo $ECHO_N "(cached) $ECHO_C" >&6
13267 ac_check_lib_save_LIBS=$LIBS
13268 LIBS="-lform$cf_cv_libtype $LIBS"
13269 cat >conftest.$ac_ext <<_ACEOF
13270 #line 13270 "configure"
13271 #include "confdefs.h"
13273 /* Override any gcc2 internal prototype to avoid an error. */
13277 /* We use char because int might match the return type of a gcc2
13278 builtin and then its argument prototype would still apply. */
13279 char form_driver ();
13288 rm -f conftest.$ac_objext conftest$ac_exeext
13289 if { (eval echo "$as_me:13289: \"$ac_link\"") >&5
13290 (eval $ac_link) 2>&5
13292 echo "$as_me:13292: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
13294 { ac_try='test -s conftest$ac_exeext'
13295 { (eval echo "$as_me:13295: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13298 echo "$as_me:13298: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13300 eval "$as_ac_Lib=yes"
13302 echo "$as_me: failed program was:" >&5
13303 cat conftest.$ac_ext >&5
13304 eval "$as_ac_Lib=no"
13306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13307 LIBS=$ac_check_lib_save_LIBS
13309 echo "$as_me:13309: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13310 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13311 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13313 cf_upper=`echo "have_libform" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13315 cf_add_libs="-lform$cf_cv_libtype"
13316 # Filter out duplicates - this happens with badly-designed ".pc" files...
13317 for cf_add_1lib in $LIBS
13319 for cf_add_2lib in $cf_add_libs
13321 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13327 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13329 LIBS="$cf_add_libs"
13331 cat >>confdefs.h <<EOF
13332 #define $cf_upper 1
13337 # look for curses-related headers
13348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13349 echo "$as_me:13349: checking for $ac_header" >&5
13350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13354 cat >conftest.$ac_ext <<_ACEOF
13355 #line 13355 "configure"
13356 #include "confdefs.h"
13357 #include <$ac_header>
13359 if { (eval echo "$as_me:13359: \"$ac_cpp conftest.$ac_ext\"") >&5
13360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13362 egrep -v '^ *\+' conftest.er1 >conftest.err
13364 cat conftest.err >&5
13365 echo "$as_me:13365: \$? = $ac_status" >&5
13366 (exit $ac_status); } >/dev/null; then
13367 if test -s conftest.err; then
13368 ac_cpp_err=$ac_c_preproc_warn_flag
13375 if test -z "$ac_cpp_err"; then
13376 eval "$as_ac_Header=yes"
13378 echo "$as_me: failed program was:" >&5
13379 cat conftest.$ac_ext >&5
13380 eval "$as_ac_Header=no"
13382 rm -f conftest.err conftest.$ac_ext
13384 echo "$as_me:13384: result: `eval echo '${'$as_ac_Header'}'`" >&5
13385 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13387 cat >>confdefs.h <<EOF
13388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13397 echo "$as_me:13397: checking for ANSI C header files" >&5
13398 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13399 if test "${ac_cv_header_stdc+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13402 cat >conftest.$ac_ext <<_ACEOF
13403 #line 13403 "configure"
13404 #include "confdefs.h"
13405 #include <stdlib.h>
13406 #include <stdarg.h>
13407 #include <string.h>
13411 if { (eval echo "$as_me:13411: \"$ac_cpp conftest.$ac_ext\"") >&5
13412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13414 egrep -v '^ *\+' conftest.er1 >conftest.err
13416 cat conftest.err >&5
13417 echo "$as_me:13417: \$? = $ac_status" >&5
13418 (exit $ac_status); } >/dev/null; then
13419 if test -s conftest.err; then
13420 ac_cpp_err=$ac_c_preproc_warn_flag
13427 if test -z "$ac_cpp_err"; then
13428 ac_cv_header_stdc=yes
13430 echo "$as_me: failed program was:" >&5
13431 cat conftest.$ac_ext >&5
13432 ac_cv_header_stdc=no
13434 rm -f conftest.err conftest.$ac_ext
13436 if test $ac_cv_header_stdc = yes; then
13437 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13438 cat >conftest.$ac_ext <<_ACEOF
13439 #line 13439 "configure"
13440 #include "confdefs.h"
13441 #include <string.h>
13444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13445 egrep "memchr" >/dev/null 2>&1; then
13448 ac_cv_header_stdc=no
13454 if test $ac_cv_header_stdc = yes; then
13455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13456 cat >conftest.$ac_ext <<_ACEOF
13457 #line 13457 "configure"
13458 #include "confdefs.h"
13459 #include <stdlib.h>
13462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13463 egrep "free" >/dev/null 2>&1; then
13466 ac_cv_header_stdc=no
13472 if test $ac_cv_header_stdc = yes; then
13473 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13474 if test "$cross_compiling" = yes; then
13477 cat >conftest.$ac_ext <<_ACEOF
13478 #line 13478 "configure"
13479 #include "confdefs.h"
13481 #if ((' ' & 0x0FF) == 0x020)
13482 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13483 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13485 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13486 || ('j' <= (c) && (c) <= 'r') \
13487 || ('s' <= (c) && (c) <= 'z'))
13488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13496 for (i = 0; i < 256; i++)
13497 if (XOR (islower (i), ISLOWER (i))
13498 || toupper (i) != TOUPPER (i))
13499 $ac_main_return(2);
13500 $ac_main_return (0);
13503 rm -f conftest$ac_exeext
13504 if { (eval echo "$as_me:13504: \"$ac_link\"") >&5
13505 (eval $ac_link) 2>&5
13507 echo "$as_me:13507: \$? = $ac_status" >&5
13508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13509 { (eval echo "$as_me:13509: \"$ac_try\"") >&5
13510 (eval $ac_try) 2>&5
13512 echo "$as_me:13512: \$? = $ac_status" >&5
13513 (exit $ac_status); }; }; then
13516 echo "$as_me: program exited with status $ac_status" >&5
13517 echo "$as_me: failed program was:" >&5
13518 cat conftest.$ac_ext >&5
13519 ac_cv_header_stdc=no
13521 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13525 echo "$as_me:13525: result: $ac_cv_header_stdc" >&5
13526 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13527 if test $ac_cv_header_stdc = yes; then
13529 cat >>confdefs.h <<\EOF
13530 #define STDC_HEADERS 1
13535 echo "$as_me:13535: checking whether time.h and sys/time.h may both be included" >&5
13536 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13537 if test "${ac_cv_header_time+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 cat >conftest.$ac_ext <<_ACEOF
13541 #line 13541 "configure"
13542 #include "confdefs.h"
13543 #include <sys/types.h>
13544 #include <sys/time.h>
13550 if ((struct tm *) 0)
13556 rm -f conftest.$ac_objext
13557 if { (eval echo "$as_me:13557: \"$ac_compile\"") >&5
13558 (eval $ac_compile) 2>&5
13560 echo "$as_me:13560: \$? = $ac_status" >&5
13561 (exit $ac_status); } &&
13562 { ac_try='test -s conftest.$ac_objext'
13563 { (eval echo "$as_me:13563: \"$ac_try\"") >&5
13564 (eval $ac_try) 2>&5
13566 echo "$as_me:13566: \$? = $ac_status" >&5
13567 (exit $ac_status); }; }; then
13568 ac_cv_header_time=yes
13570 echo "$as_me: failed program was:" >&5
13571 cat conftest.$ac_ext >&5
13572 ac_cv_header_time=no
13574 rm -f conftest.$ac_objext conftest.$ac_ext
13576 echo "$as_me:13576: result: $ac_cv_header_time" >&5
13577 echo "${ECHO_T}$ac_cv_header_time" >&6
13578 if test $ac_cv_header_time = yes; then
13580 cat >>confdefs.h <<\EOF
13581 #define TIME_WITH_SYS_TIME 1
13598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13599 echo "$as_me:13599: checking for $ac_header" >&5
13600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13602 echo $ECHO_N "(cached) $ECHO_C" >&6
13604 cat >conftest.$ac_ext <<_ACEOF
13605 #line 13605 "configure"
13606 #include "confdefs.h"
13607 #include <$ac_header>
13609 if { (eval echo "$as_me:13609: \"$ac_cpp conftest.$ac_ext\"") >&5
13610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13612 egrep -v '^ *\+' conftest.er1 >conftest.err
13614 cat conftest.err >&5
13615 echo "$as_me:13615: \$? = $ac_status" >&5
13616 (exit $ac_status); } >/dev/null; then
13617 if test -s conftest.err; then
13618 ac_cpp_err=$ac_c_preproc_warn_flag
13625 if test -z "$ac_cpp_err"; then
13626 eval "$as_ac_Header=yes"
13628 echo "$as_me: failed program was:" >&5
13629 cat conftest.$ac_ext >&5
13630 eval "$as_ac_Header=no"
13632 rm -f conftest.err conftest.$ac_ext
13634 echo "$as_me:13634: result: `eval echo '${'$as_ac_Header'}'`" >&5
13635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13637 cat >>confdefs.h <<EOF
13638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13644 for ac_header in unistd.h getopt.h
13646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13647 echo "$as_me:13647: checking for $ac_header" >&5
13648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13652 cat >conftest.$ac_ext <<_ACEOF
13653 #line 13653 "configure"
13654 #include "confdefs.h"
13655 #include <$ac_header>
13657 if { (eval echo "$as_me:13657: \"$ac_cpp conftest.$ac_ext\"") >&5
13658 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13660 egrep -v '^ *\+' conftest.er1 >conftest.err
13662 cat conftest.err >&5
13663 echo "$as_me:13663: \$? = $ac_status" >&5
13664 (exit $ac_status); } >/dev/null; then
13665 if test -s conftest.err; then
13666 ac_cpp_err=$ac_c_preproc_warn_flag
13673 if test -z "$ac_cpp_err"; then
13674 eval "$as_ac_Header=yes"
13676 echo "$as_me: failed program was:" >&5
13677 cat conftest.$ac_ext >&5
13678 eval "$as_ac_Header=no"
13680 rm -f conftest.err conftest.$ac_ext
13682 echo "$as_me:13682: result: `eval echo '${'$as_ac_Header'}'`" >&5
13683 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13685 cat >>confdefs.h <<EOF
13686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13692 echo "$as_me:13692: checking for header declaring getopt variables" >&5
13693 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
13694 if test "${cf_cv_getopt_header+set}" = set; then
13695 echo $ECHO_N "(cached) $ECHO_C" >&6
13698 cf_cv_getopt_header=none
13699 for cf_header in stdio.h stdlib.h unistd.h getopt.h
13701 cat >conftest.$ac_ext <<_ACEOF
13702 #line 13702 "configure"
13703 #include "confdefs.h"
13705 #include <$cf_header>
13709 int x = optind; char *y = optarg
13714 rm -f conftest.$ac_objext
13715 if { (eval echo "$as_me:13715: \"$ac_compile\"") >&5
13716 (eval $ac_compile) 2>&5
13718 echo "$as_me:13718: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
13720 { ac_try='test -s conftest.$ac_objext'
13721 { (eval echo "$as_me:13721: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13724 echo "$as_me:13724: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13726 cf_cv_getopt_header=$cf_header
13729 echo "$as_me: failed program was:" >&5
13730 cat conftest.$ac_ext >&5
13732 rm -f conftest.$ac_objext conftest.$ac_ext
13736 echo "$as_me:13736: result: $cf_cv_getopt_header" >&5
13737 echo "${ECHO_T}$cf_cv_getopt_header" >&6
13738 if test $cf_cv_getopt_header != none ; then
13740 cat >>confdefs.h <<\EOF
13741 #define HAVE_GETOPT_HEADER 1
13745 if test $cf_cv_getopt_header = getopt.h ; then
13747 cat >>confdefs.h <<\EOF
13748 #define NEED_GETOPT_H 1
13758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13759 echo "$as_me:13759: checking for $ac_func" >&5
13760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13761 if eval "test \"\${$as_ac_var+set}\" = set"; then
13762 echo $ECHO_N "(cached) $ECHO_C" >&6
13764 cat >conftest.$ac_ext <<_ACEOF
13765 #line 13765 "configure"
13766 #include "confdefs.h"
13767 /* System header to define __stub macros and hopefully few prototypes,
13768 which can conflict with char $ac_func (); below. */
13769 #include <assert.h>
13770 /* Override any gcc2 internal prototype to avoid an error. */
13774 /* We use char because int might match the return type of a gcc2
13775 builtin and then its argument prototype would still apply. */
13782 /* The GNU C library defines this for functions which it implements
13783 to always fail with ENOSYS. Some functions are actually named
13784 something starting with __ and the normal name is an alias. */
13785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13788 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13795 rm -f conftest.$ac_objext conftest$ac_exeext
13796 if { (eval echo "$as_me:13796: \"$ac_link\"") >&5
13797 (eval $ac_link) 2>&5
13799 echo "$as_me:13799: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -s conftest$ac_exeext'
13802 { (eval echo "$as_me:13802: \"$ac_try\"") >&5
13803 (eval $ac_try) 2>&5
13805 echo "$as_me:13805: \$? = $ac_status" >&5
13806 (exit $ac_status); }; }; then
13807 eval "$as_ac_var=yes"
13809 echo "$as_me: failed program was:" >&5
13810 cat conftest.$ac_ext >&5
13811 eval "$as_ac_var=no"
13813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13815 echo "$as_me:13815: result: `eval echo '${'$as_ac_var'}'`" >&5
13816 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13817 if test `eval echo '${'$as_ac_var'}'` = yes; then
13818 cat >>confdefs.h <<EOF
13819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13825 if test "x$ac_cv_func_getopt" = xno; then
13826 { { echo "$as_me:13826: error: getopt is required for building programs" >&5
13827 echo "$as_me: error: getopt is required for building programs" >&2;}
13828 { (exit 1); exit 1; }; }
13831 if test "$cf_enable_widec" = yes; then
13844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13845 echo "$as_me:13845: checking for $ac_func" >&5
13846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13847 if eval "test \"\${$as_ac_var+set}\" = set"; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 cat >conftest.$ac_ext <<_ACEOF
13851 #line 13851 "configure"
13852 #include "confdefs.h"
13853 /* System header to define __stub macros and hopefully few prototypes,
13854 which can conflict with char $ac_func (); below. */
13855 #include <assert.h>
13856 /* Override any gcc2 internal prototype to avoid an error. */
13860 /* We use char because int might match the return type of a gcc2
13861 builtin and then its argument prototype would still apply. */
13868 /* The GNU C library defines this for functions which it implements
13869 to always fail with ENOSYS. Some functions are actually named
13870 something starting with __ and the normal name is an alias. */
13871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13874 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13881 rm -f conftest.$ac_objext conftest$ac_exeext
13882 if { (eval echo "$as_me:13882: \"$ac_link\"") >&5
13883 (eval $ac_link) 2>&5
13885 echo "$as_me:13885: \$? = $ac_status" >&5
13886 (exit $ac_status); } &&
13887 { ac_try='test -s conftest$ac_exeext'
13888 { (eval echo "$as_me:13888: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13891 echo "$as_me:13891: \$? = $ac_status" >&5
13892 (exit $ac_status); }; }; then
13893 eval "$as_ac_var=yes"
13895 echo "$as_me: failed program was:" >&5
13896 cat conftest.$ac_ext >&5
13897 eval "$as_ac_var=no"
13899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13901 echo "$as_me:13901: result: `eval echo '${'$as_ac_var'}'`" >&5
13902 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13903 if test `eval echo '${'$as_ac_var'}'` = yes; then
13904 cat >>confdefs.h <<EOF
13905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13913 echo "$as_me:13913: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
13914 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
13915 if test "${cf_cv_need_xopen_extension+set}" = set; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 cat >conftest.$ac_ext <<_ACEOF
13920 #line 13920 "configure"
13921 #include "confdefs.h"
13923 #include <stdlib.h>
13924 #include <${cf_cv_ncurses_header:-curses.h}>
13929 #if defined(NCURSES_VERSION_PATCH)
13930 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
13934 long x = winnstr(stdscr, "", 0);
13936 getbegyx(stdscr, y1, x1)
13941 rm -f conftest.$ac_objext conftest$ac_exeext
13942 if { (eval echo "$as_me:13942: \"$ac_link\"") >&5
13943 (eval $ac_link) 2>&5
13945 echo "$as_me:13945: \$? = $ac_status" >&5
13946 (exit $ac_status); } &&
13947 { ac_try='test -s conftest$ac_exeext'
13948 { (eval echo "$as_me:13948: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13951 echo "$as_me:13951: \$? = $ac_status" >&5
13952 (exit $ac_status); }; }; then
13953 cf_cv_need_xopen_extension=no
13955 echo "$as_me: failed program was:" >&5
13956 cat conftest.$ac_ext >&5
13957 cat >conftest.$ac_ext <<_ACEOF
13958 #line 13958 "configure"
13959 #include "confdefs.h"
13961 #define _XOPEN_SOURCE_EXTENDED
13962 #include <stdlib.h>
13963 #include <${cf_cv_ncurses_header:-curses.h}>
13968 #ifdef NCURSES_VERSION
13970 int check2 = curs_set((int)sizeof(check));
13972 long x = winnstr(stdscr, "", 0);
13974 getbegyx(stdscr, y1, x1)
13979 rm -f conftest.$ac_objext conftest$ac_exeext
13980 if { (eval echo "$as_me:13980: \"$ac_link\"") >&5
13981 (eval $ac_link) 2>&5
13983 echo "$as_me:13983: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
13985 { ac_try='test -s conftest$ac_exeext'
13986 { (eval echo "$as_me:13986: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13989 echo "$as_me:13989: \$? = $ac_status" >&5
13990 (exit $ac_status); }; }; then
13991 cf_cv_need_xopen_extension=yes
13993 echo "$as_me: failed program was:" >&5
13994 cat conftest.$ac_ext >&5
13995 cf_cv_need_xopen_extension=unknown
13997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13999 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14001 echo "$as_me:14001: result: $cf_cv_need_xopen_extension" >&5
14002 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
14003 test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
14005 echo "$as_me:14005: checking for term.h" >&5
14006 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
14007 if test "${cf_cv_term_header+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14011 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
14012 # for <term.h> if we do not find the variant.
14014 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
14016 case ${cf_cv_ncurses_header:-curses.h} in
14018 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
14019 cf_header_list="$cf_header_item $cf_header_list"
14023 for cf_header in $cf_header_list
14025 cat >conftest.$ac_ext <<_ACEOF
14026 #line 14026 "configure"
14027 #include "confdefs.h"
14029 #include <${cf_cv_ncurses_header:-curses.h}>
14030 #include <${cf_header}>
14039 rm -f conftest.$ac_objext
14040 if { (eval echo "$as_me:14040: \"$ac_compile\"") >&5
14041 (eval $ac_compile) 2>&5
14043 echo "$as_me:14043: \$? = $ac_status" >&5
14044 (exit $ac_status); } &&
14045 { ac_try='test -s conftest.$ac_objext'
14046 { (eval echo "$as_me:14046: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14049 echo "$as_me:14049: \$? = $ac_status" >&5
14050 (exit $ac_status); }; }; then
14051 cf_cv_term_header=$cf_header
14054 echo "$as_me: failed program was:" >&5
14055 cat conftest.$ac_ext >&5
14056 cf_cv_term_header=no
14058 rm -f conftest.$ac_objext conftest.$ac_ext
14061 case $cf_cv_term_header in
14063 # If curses is ncurses, some packagers still mess it up by trying to make
14064 # us use GNU termcap. This handles the most common case.
14065 for cf_header in ncurses/term.h ncursesw/term.h
14067 cat >conftest.$ac_ext <<_ACEOF
14068 #line 14068 "configure"
14069 #include "confdefs.h"
14071 #include <${cf_cv_ncurses_header:-curses.h}>
14072 #ifdef NCURSES_VERSION
14073 #include <${cf_header}>
14085 rm -f conftest.$ac_objext
14086 if { (eval echo "$as_me:14086: \"$ac_compile\"") >&5
14087 (eval $ac_compile) 2>&5
14089 echo "$as_me:14089: \$? = $ac_status" >&5
14090 (exit $ac_status); } &&
14091 { ac_try='test -s conftest.$ac_objext'
14092 { (eval echo "$as_me:14092: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14095 echo "$as_me:14095: \$? = $ac_status" >&5
14096 (exit $ac_status); }; }; then
14097 cf_cv_term_header=$cf_header
14100 echo "$as_me: failed program was:" >&5
14101 cat conftest.$ac_ext >&5
14102 cf_cv_term_header=no
14104 rm -f conftest.$ac_objext conftest.$ac_ext
14110 echo "$as_me:14110: result: $cf_cv_term_header" >&5
14111 echo "${ECHO_T}$cf_cv_term_header" >&6
14113 case $cf_cv_term_header in
14116 cat >>confdefs.h <<\EOF
14117 #define HAVE_TERM_H 1
14123 cat >>confdefs.h <<\EOF
14124 #define HAVE_NCURSES_TERM_H 1
14130 cat >>confdefs.h <<\EOF
14131 #define HAVE_NCURSESW_TERM_H 1
14137 echo "$as_me:14137: checking for unctrl.h" >&5
14138 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
14139 if test "${cf_cv_unctrl_header+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14143 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
14144 # for <unctrl.h> if we do not find the variant.
14146 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
14148 case ${cf_cv_ncurses_header:-curses.h} in
14150 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
14151 cf_header_list="$cf_header_item $cf_header_list"
14155 for cf_header in $cf_header_list
14157 cat >conftest.$ac_ext <<_ACEOF
14158 #line 14158 "configure"
14159 #include "confdefs.h"
14161 #include <${cf_cv_ncurses_header:-curses.h}>
14162 #include <${cf_header}>
14171 rm -f conftest.$ac_objext
14172 if { (eval echo "$as_me:14172: \"$ac_compile\"") >&5
14173 (eval $ac_compile) 2>&5
14175 echo "$as_me:14175: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try='test -s conftest.$ac_objext'
14178 { (eval echo "$as_me:14178: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14181 echo "$as_me:14181: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 cf_cv_unctrl_header=$cf_header
14186 echo "$as_me: failed program was:" >&5
14187 cat conftest.$ac_ext >&5
14188 cf_cv_unctrl_header=no
14190 rm -f conftest.$ac_objext conftest.$ac_ext
14194 echo "$as_me:14194: result: $cf_cv_unctrl_header" >&5
14195 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
14197 case $cf_cv_unctrl_header in
14199 { echo "$as_me:14199: WARNING: unctrl.h header not found" >&5
14200 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
14204 case $cf_cv_unctrl_header in
14207 cat >>confdefs.h <<\EOF
14208 #define HAVE_UNCTRL_H 1
14214 cat >>confdefs.h <<\EOF
14215 #define HAVE_NCURSES_UNCTRL_H 1
14219 (ncursesw/unctrl.h)
14221 cat >>confdefs.h <<\EOF
14222 #define HAVE_NCURSESW_UNCTRL_H 1
14229 assume_default_colors \
14255 use_default_colors \
14257 use_extended_names \
14271 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14273 echo "$as_me:14273: checking for ${cf_func}" >&5
14274 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
14276 echo "${as_me:-configure}:14276: testing ${cf_func} ..." 1>&5
14278 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
14282 eval cf_result='$ac_cv_func_'$cf_func
14283 if test ".$cf_result" != ".no"; then
14284 cat >conftest.$ac_ext <<_ACEOF
14285 #line 14285 "configure"
14286 #include "confdefs.h"
14288 #ifdef HAVE_XCURSES
14289 #include <xcurses.h>
14290 char * XCursesProgramName = "test";
14292 #include <${cf_cv_ncurses_header:-curses.h}>
14293 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14294 #include <ncursesw/term.h>
14295 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14296 #include <ncurses/term.h>
14297 #elif defined(HAVE_TERM_H)
14307 long foo = (long)(&${cf_func});
14308 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
14309 if (foo + 1234 > 5678)
14310 ${cf_cv_main_return:-return}(foo);
14317 rm -f conftest.$ac_objext conftest$ac_exeext
14318 if { (eval echo "$as_me:14318: \"$ac_link\"") >&5
14319 (eval $ac_link) 2>&5
14321 echo "$as_me:14321: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
14323 { ac_try='test -s conftest$ac_exeext'
14324 { (eval echo "$as_me:14324: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14327 echo "$as_me:14327: \$? = $ac_status" >&5
14328 (exit $ac_status); }; }; then
14331 echo "$as_me: failed program was:" >&5
14332 cat conftest.$ac_ext >&5
14335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14337 eval 'cf_cv_func_'$cf_func'=$cf_result'
14341 # use the computed/retrieved cache-value:
14342 eval 'cf_result=$cf_cv_func_'$cf_func
14343 echo "$as_me:14343: result: $cf_result" >&5
14344 echo "${ECHO_T}$cf_result" >&6
14345 if test $cf_result != no; then
14346 cat >>confdefs.h <<EOF
14347 #define HAVE_${cf_tr_func} 1
14353 for cf_func in tputs
14356 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14358 echo "$as_me:14358: checking for ${cf_func}" >&5
14359 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
14361 echo "${as_me:-configure}:14361: testing ${cf_func} ..." 1>&5
14363 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14367 eval cf_result='$ac_cv_func_'$cf_func
14368 if test ".$cf_result" != ".no"; then
14369 cat >conftest.$ac_ext <<_ACEOF
14370 #line 14370 "configure"
14371 #include "confdefs.h"
14373 #ifdef HAVE_XCURSES
14374 #include <xcurses.h>
14375 char * XCursesProgramName = "test";
14377 #include <${cf_cv_ncurses_header:-curses.h}>
14378 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14379 #include <ncursesw/term.h>
14380 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14381 #include <ncurses/term.h>
14382 #elif defined(HAVE_TERM_H)
14392 long foo = (long)(&${cf_func});
14393 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
14394 if (foo + 1234 > 5678)
14395 ${cf_cv_main_return:-return}(foo);
14402 rm -f conftest.$ac_objext conftest$ac_exeext
14403 if { (eval echo "$as_me:14403: \"$ac_link\"") >&5
14404 (eval $ac_link) 2>&5
14406 echo "$as_me:14406: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
14408 { ac_try='test -s conftest$ac_exeext'
14409 { (eval echo "$as_me:14409: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14412 echo "$as_me:14412: \$? = $ac_status" >&5
14413 (exit $ac_status); }; }; then
14416 echo "$as_me: failed program was:" >&5
14417 cat conftest.$ac_ext >&5
14420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14422 eval 'cf_cv_func_'$cf_func'=$cf_result'
14426 # use the computed/retrieved cache-value:
14427 eval 'cf_result=$cf_cv_func_'$cf_func
14428 echo "$as_me:14428: result: $cf_result" >&5
14429 echo "${ECHO_T}$cf_result" >&6
14430 if test $cf_result != no; then
14431 cat >>confdefs.h <<EOF
14432 #define HAVE_${cf_tr_func} 1
14438 if test x$cf_cv_func_tputs = xyes
14441 for cf_arg in int char
14443 for cf_ret in int void
14445 if test $cf_ret = void
14447 cf_return="/* nothing */"
14449 cf_return="return value"
14451 cat >conftest.$ac_ext <<_ACEOF
14452 #line 14452 "configure"
14453 #include "confdefs.h"
14455 #include <${cf_cv_ncurses_header:-curses.h}>
14456 #include <$cf_cv_term_header>
14458 static $cf_ret outc($cf_arg value) { $cf_return; }
14464 tputs("hello", 0, outc);
14465 ${cf_cv_main_return:-return}(0);
14471 rm -f conftest.$ac_objext
14472 if { (eval echo "$as_me:14472: \"$ac_compile\"") >&5
14473 (eval $ac_compile) 2>&5
14475 echo "$as_me:14475: \$? = $ac_status" >&5
14476 (exit $ac_status); } &&
14477 { ac_try='test -s conftest.$ac_objext'
14478 { (eval echo "$as_me:14478: \"$ac_try\"") >&5
14479 (eval $ac_try) 2>&5
14481 echo "$as_me:14481: \$? = $ac_status" >&5
14482 (exit $ac_status); }; }; then
14484 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
14486 echo "${as_me:-configure}:14486: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
14488 cat >>confdefs.h <<EOF
14489 #define TPUTS_ARG $cf_arg
14490 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
14491 #define TPUTS_RETURN(value) $cf_return
14497 echo "$as_me: failed program was:" >&5
14498 cat conftest.$ac_ext >&5
14500 rm -f conftest.$ac_objext conftest.$ac_ext
14502 test $cf_done = yes && break
14506 echo "$as_me:14506: checking for ncurses extended functions" >&5
14507 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
14508 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 cat >conftest.$ac_ext <<_ACEOF
14513 #line 14513 "configure"
14514 #include "confdefs.h"
14516 #include <${cf_cv_ncurses_header:-curses.h}>
14521 int x = NCURSES_EXT_FUNCS
14527 rm -f conftest.$ac_objext
14528 if { (eval echo "$as_me:14528: \"$ac_compile\"") >&5
14529 (eval $ac_compile) 2>&5
14531 echo "$as_me:14531: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try='test -s conftest.$ac_objext'
14534 { (eval echo "$as_me:14534: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14537 echo "$as_me:14537: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 cf_cv_ncurses_ext_funcs=defined
14541 echo "$as_me: failed program was:" >&5
14542 cat conftest.$ac_ext >&5
14544 cat >conftest.$ac_ext <<_ACEOF
14545 #line 14545 "configure"
14546 #include "confdefs.h"
14548 #include <${cf_cv_ncurses_header:-curses.h}>
14553 (void) assume_default_colors (0, 0);
14554 (void) curses_version ();
14555 (void) define_key (0, 0);
14556 (void) is_term_resized (0, 0);
14557 (void) key_defined (0);
14558 (void) keybound (0, 0);
14559 (void) keyok (0, 0);
14560 (void) resize_term (0, 0);
14561 (void) resizeterm (0, 0);
14562 (void) use_default_colors ();
14563 (void) use_extended_names (0);
14564 (void) wresize (0, 0, 0);
14569 rm -f conftest.$ac_objext conftest$ac_exeext
14570 if { (eval echo "$as_me:14570: \"$ac_link\"") >&5
14571 (eval $ac_link) 2>&5
14573 echo "$as_me:14573: \$? = $ac_status" >&5
14574 (exit $ac_status); } &&
14575 { ac_try='test -s conftest$ac_exeext'
14576 { (eval echo "$as_me:14576: \"$ac_try\"") >&5
14577 (eval $ac_try) 2>&5
14579 echo "$as_me:14579: \$? = $ac_status" >&5
14580 (exit $ac_status); }; }; then
14581 cf_cv_ncurses_ext_funcs=yes
14583 echo "$as_me: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14585 cf_cv_ncurses_ext_funcs=no
14587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14590 rm -f conftest.$ac_objext conftest.$ac_ext
14593 echo "$as_me:14593: result: $cf_cv_ncurses_ext_funcs" >&5
14594 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
14595 test "$cf_cv_ncurses_ext_funcs" = yes &&
14596 cat >>confdefs.h <<\EOF
14597 #define NCURSES_EXT_FUNCS 1
14600 if test "$cf_enable_widec" = yes
14602 # workaround for systems with ncurses before 20111029, due to change of
14603 # feature test macro from _XPG5 to _XOPEN_SOURCE
14604 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
14607 echo "$as_me:14607: checking if _XPG5 should be defined to enable wide-characters" >&5
14608 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
14610 cat >conftest.$ac_ext <<_ACEOF
14611 #line 14611 "configure"
14612 #include "confdefs.h"
14614 #include <${cf_cv_ncurses_header:-curses.h}>
14623 rm -f conftest.$ac_objext
14624 if { (eval echo "$as_me:14624: \"$ac_compile\"") >&5
14625 (eval $ac_compile) 2>&5
14627 echo "$as_me:14627: \$? = $ac_status" >&5
14628 (exit $ac_status); } &&
14629 { ac_try='test -s conftest.$ac_objext'
14630 { (eval echo "$as_me:14630: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14633 echo "$as_me:14633: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14637 echo "$as_me: failed program was:" >&5
14638 cat conftest.$ac_ext >&5
14639 cf_save_cppflags="$CPPFLAGS"
14640 CPPFLAGS="$CPPFLAGS -D_XPG5"
14641 cat >conftest.$ac_ext <<_ACEOF
14642 #line 14642 "configure"
14643 #include "confdefs.h"
14645 #include <${cf_cv_ncurses_header:-curses.h}>
14654 rm -f conftest.$ac_objext
14655 if { (eval echo "$as_me:14655: \"$ac_compile\"") >&5
14656 (eval $ac_compile) 2>&5
14658 echo "$as_me:14658: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
14660 { ac_try='test -s conftest.$ac_objext'
14661 { (eval echo "$as_me:14661: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14664 echo "$as_me:14664: \$? = $ac_status" >&5
14665 (exit $ac_status); }; }; then
14668 echo "$as_me: failed program was:" >&5
14669 cat conftest.$ac_ext >&5
14671 rm -f conftest.$ac_objext conftest.$ac_ext
14672 CPPFLAGS="$cf_save_cppflags"
14674 rm -f conftest.$ac_objext conftest.$ac_ext
14675 echo "$as_me:14675: result: $cf_define_xpg5" >&5
14676 echo "${ECHO_T}$cf_define_xpg5" >&6
14678 if test "$cf_define_xpg5" = yes
14680 CPPFLAGS="$CPPFLAGS -D_XPG5"
14684 echo "$as_me:14684: checking for wide-character functions" >&5
14685 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
14686 if test "${cf_cv_widechar_funcs+set}" = set; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14690 cat >conftest.$ac_ext <<_ACEOF
14691 #line 14691 "configure"
14692 #include "confdefs.h"
14694 #include <${cf_cv_ncurses_header:-curses.h}>
14699 static wchar_t src_wchar[2];
14700 static cchar_t dst_cchar;
14701 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
14707 rm -f conftest.$ac_objext conftest$ac_exeext
14708 if { (eval echo "$as_me:14708: \"$ac_link\"") >&5
14709 (eval $ac_link) 2>&5
14711 echo "$as_me:14711: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try='test -s conftest$ac_exeext'
14714 { (eval echo "$as_me:14714: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14717 echo "$as_me:14717: \$? = $ac_status" >&5
14718 (exit $ac_status); }; }; then
14719 cf_cv_widechar_funcs=yes
14721 echo "$as_me: failed program was:" >&5
14722 cat conftest.$ac_ext >&5
14723 cf_cv_widechar_funcs=no
14725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14728 echo "$as_me:14728: result: $cf_cv_widechar_funcs" >&5
14729 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
14730 if test "$cf_cv_widechar_funcs" != no ; then
14732 cat >>confdefs.h <<\EOF
14733 #define USE_WIDEC_SUPPORT 1
14737 cat >>confdefs.h <<\EOF
14738 #define USE_WIDEC_SUPPORT 0
14743 cat >>confdefs.h <<\EOF
14744 #define USE_WIDEC_SUPPORT 0
14749 echo "$as_me:14749: checking if $cf_cv_screen library uses pthreads" >&5
14750 echo $ECHO_N "checking if $cf_cv_screen library uses pthreads... $ECHO_C" >&6
14751 if test "${cf_cv_use_pthreads+set}" = set; then
14752 echo $ECHO_N "(cached) $ECHO_C" >&6
14755 cat >conftest.$ac_ext <<_ACEOF
14756 #line 14756 "configure"
14757 #include "confdefs.h"
14759 #include <${cf_cv_ncurses_header:-curses.h}>
14760 extern void _nc_init_pthreads(void);
14767 _nc_init_pthreads();
14773 rm -f conftest.$ac_objext conftest$ac_exeext
14774 if { (eval echo "$as_me:14774: \"$ac_link\"") >&5
14775 (eval $ac_link) 2>&5
14777 echo "$as_me:14777: \$? = $ac_status" >&5
14778 (exit $ac_status); } &&
14779 { ac_try='test -s conftest$ac_exeext'
14780 { (eval echo "$as_me:14780: \"$ac_try\"") >&5
14781 (eval $ac_try) 2>&5
14783 echo "$as_me:14783: \$? = $ac_status" >&5
14784 (exit $ac_status); }; }; then
14785 cf_cv_use_pthreads=yes
14787 echo "$as_me: failed program was:" >&5
14788 cat conftest.$ac_ext >&5
14789 cf_cv_use_pthreads=no
14791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14794 echo "$as_me:14794: result: $cf_cv_use_pthreads" >&5
14795 echo "${ECHO_T}$cf_cv_use_pthreads" >&6
14796 test $cf_cv_use_pthreads = yes && cat >>confdefs.h <<\EOF
14797 #define USE_PTHREADS 1
14800 echo "$as_me:14800: checking if sys/time.h works with sys/select.h" >&5
14801 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
14802 if test "${cf_cv_sys_time_select+set}" = set; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14806 cat >conftest.$ac_ext <<_ACEOF
14807 #line 14807 "configure"
14808 #include "confdefs.h"
14810 #include <sys/types.h>
14811 #ifdef HAVE_SYS_TIME_H
14812 #include <sys/time.h>
14814 #ifdef HAVE_SYS_SELECT_H
14815 #include <sys/select.h>
14826 rm -f conftest.$ac_objext
14827 if { (eval echo "$as_me:14827: \"$ac_compile\"") >&5
14828 (eval $ac_compile) 2>&5
14830 echo "$as_me:14830: \$? = $ac_status" >&5
14831 (exit $ac_status); } &&
14832 { ac_try='test -s conftest.$ac_objext'
14833 { (eval echo "$as_me:14833: \"$ac_try\"") >&5
14834 (eval $ac_try) 2>&5
14836 echo "$as_me:14836: \$? = $ac_status" >&5
14837 (exit $ac_status); }; }; then
14838 cf_cv_sys_time_select=yes
14840 echo "$as_me: failed program was:" >&5
14841 cat conftest.$ac_ext >&5
14842 cf_cv_sys_time_select=no
14844 rm -f conftest.$ac_objext conftest.$ac_ext
14848 echo "$as_me:14848: result: $cf_cv_sys_time_select" >&5
14849 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
14850 test "$cf_cv_sys_time_select" = yes &&
14851 cat >>confdefs.h <<\EOF
14852 #define HAVE_SYS_TIME_SELECT 1
14855 # special check for test/ditto.c
14857 echo "$as_me:14857: checking for openpty in -lutil" >&5
14858 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
14859 if test "${ac_cv_lib_util_openpty+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 ac_check_lib_save_LIBS=$LIBS
14863 LIBS="-lutil $LIBS"
14864 cat >conftest.$ac_ext <<_ACEOF
14865 #line 14865 "configure"
14866 #include "confdefs.h"
14868 /* Override any gcc2 internal prototype to avoid an error. */
14872 /* We use char because int might match the return type of a gcc2
14873 builtin and then its argument prototype would still apply. */
14883 rm -f conftest.$ac_objext conftest$ac_exeext
14884 if { (eval echo "$as_me:14884: \"$ac_link\"") >&5
14885 (eval $ac_link) 2>&5
14887 echo "$as_me:14887: \$? = $ac_status" >&5
14888 (exit $ac_status); } &&
14889 { ac_try='test -s conftest$ac_exeext'
14890 { (eval echo "$as_me:14890: \"$ac_try\"") >&5
14891 (eval $ac_try) 2>&5
14893 echo "$as_me:14893: \$? = $ac_status" >&5
14894 (exit $ac_status); }; }; then
14895 ac_cv_lib_util_openpty=yes
14897 echo "$as_me: failed program was:" >&5
14898 cat conftest.$ac_ext >&5
14899 ac_cv_lib_util_openpty=no
14901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14902 LIBS=$ac_check_lib_save_LIBS
14904 echo "$as_me:14904: result: $ac_cv_lib_util_openpty" >&5
14905 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
14906 if test $ac_cv_lib_util_openpty = yes; then
14912 echo "$as_me:14912: checking for openpty header" >&5
14913 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
14914 if test "${cf_cv_func_openpty+set}" = set; then
14915 echo $ECHO_N "(cached) $ECHO_C" >&6
14918 cf_save_LIBS="$LIBS"
14919 test $cf_cv_lib_util = yes && {
14920 cf_add_libs="-lutil"
14921 # Filter out duplicates - this happens with badly-designed ".pc" files...
14922 for cf_add_1lib in $LIBS
14924 for cf_add_2lib in $cf_add_libs
14926 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14932 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14934 LIBS="$cf_add_libs"
14936 for cf_header in pty.h libutil.h util.h
14938 cat >conftest.$ac_ext <<_ACEOF
14939 #line 14939 "configure"
14940 #include "confdefs.h"
14942 #include <$cf_header>
14948 int x = openpty((int *)0, (int *)0, (char *)0,
14949 (struct termios *)0, (struct winsize *)0);
14955 rm -f conftest.$ac_objext conftest$ac_exeext
14956 if { (eval echo "$as_me:14956: \"$ac_link\"") >&5
14957 (eval $ac_link) 2>&5
14959 echo "$as_me:14959: \$? = $ac_status" >&5
14960 (exit $ac_status); } &&
14961 { ac_try='test -s conftest$ac_exeext'
14962 { (eval echo "$as_me:14962: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14965 echo "$as_me:14965: \$? = $ac_status" >&5
14966 (exit $ac_status); }; }; then
14968 cf_cv_func_openpty=$cf_header
14972 echo "$as_me: failed program was:" >&5
14973 cat conftest.$ac_ext >&5
14975 cf_cv_func_openpty=no
14978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14980 LIBS="$cf_save_LIBS"
14983 echo "$as_me:14983: result: $cf_cv_func_openpty" >&5
14984 echo "${ECHO_T}$cf_cv_func_openpty" >&6
14986 if test "$cf_cv_func_openpty" != no ; then
14988 cat >>confdefs.h <<EOF
14989 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
14992 cat >>confdefs.h <<\EOF
14993 #define USE_XTERM_PTY 1
14996 if test "x$cf_cv_lib_util" = xyes ; then
14998 cf_add_libs="-lutil"
14999 # Filter out duplicates - this happens with badly-designed ".pc" files...
15000 for cf_add_1lib in $TEST_LIBS
15002 for cf_add_2lib in $cf_add_libs
15004 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15010 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15012 TEST_LIBS="$cf_add_libs"
15017 echo "$as_me:15017: checking for function curses_version" >&5
15018 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
15019 if test "${cf_cv_func_curses_version+set}" = set; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
15023 if test "$cross_compiling" = yes; then
15024 cf_cv_func_curses_version=unknown
15026 cat >conftest.$ac_ext <<_ACEOF
15027 #line 15027 "configure"
15028 #include "confdefs.h"
15030 #include <${cf_cv_ncurses_header:-curses.h}>
15034 sprintf(temp, "%s\n", curses_version());
15035 ${cf_cv_main_return:-return}(0);
15039 rm -f conftest$ac_exeext
15040 if { (eval echo "$as_me:15040: \"$ac_link\"") >&5
15041 (eval $ac_link) 2>&5
15043 echo "$as_me:15043: \$? = $ac_status" >&5
15044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15045 { (eval echo "$as_me:15045: \"$ac_try\"") >&5
15046 (eval $ac_try) 2>&5
15048 echo "$as_me:15048: \$? = $ac_status" >&5
15049 (exit $ac_status); }; }; then
15050 cf_cv_func_curses_version=yes
15053 echo "$as_me: program exited with status $ac_status" >&5
15054 echo "$as_me: failed program was:" >&5
15055 cat conftest.$ac_ext >&5
15056 cf_cv_func_curses_version=no
15059 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15063 echo "$as_me:15063: result: $cf_cv_func_curses_version" >&5
15064 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
15065 test "$cf_cv_func_curses_version" = yes &&
15066 cat >>confdefs.h <<\EOF
15067 #define HAVE_CURSES_VERSION 1
15070 echo "$as_me:15070: checking for alternate character set array" >&5
15071 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
15072 if test "${cf_cv_curses_acs_map+set}" = set; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
15076 cf_cv_curses_acs_map=unknown
15077 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
15079 cat >conftest.$ac_ext <<_ACEOF
15080 #line 15080 "configure"
15081 #include "confdefs.h"
15083 #include <${cf_cv_ncurses_header:-curses.h}>
15089 $name['k'] = ACS_PLUS
15095 rm -f conftest.$ac_objext conftest$ac_exeext
15096 if { (eval echo "$as_me:15096: \"$ac_link\"") >&5
15097 (eval $ac_link) 2>&5
15099 echo "$as_me:15099: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
15101 { ac_try='test -s conftest$ac_exeext'
15102 { (eval echo "$as_me:15102: \"$ac_try\"") >&5
15103 (eval $ac_try) 2>&5
15105 echo "$as_me:15105: \$? = $ac_status" >&5
15106 (exit $ac_status); }; }; then
15107 cf_cv_curses_acs_map=$name; break
15109 echo "$as_me: failed program was:" >&5
15110 cat conftest.$ac_ext >&5
15112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15116 echo "$as_me:15116: result: $cf_cv_curses_acs_map" >&5
15117 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
15119 test "$cf_cv_curses_acs_map" != unknown &&
15120 cat >>confdefs.h <<EOF
15121 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
15124 if test "$cf_enable_widec" = yes; then
15126 echo "$as_me:15126: checking for wide alternate character set array" >&5
15127 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
15128 if test "${cf_cv_curses_wacs_map+set}" = set; then
15129 echo $ECHO_N "(cached) $ECHO_C" >&6
15132 cf_cv_curses_wacs_map=unknown
15133 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
15135 cat >conftest.$ac_ext <<_ACEOF
15136 #line 15136 "configure"
15137 #include "confdefs.h"
15139 #ifndef _XOPEN_SOURCE_EXTENDED
15140 #define _XOPEN_SOURCE_EXTENDED
15142 #include <${cf_cv_ncurses_header:-curses.h}>
15146 void *foo = &($name['k'])
15151 rm -f conftest.$ac_objext conftest$ac_exeext
15152 if { (eval echo "$as_me:15152: \"$ac_link\"") >&5
15153 (eval $ac_link) 2>&5
15155 echo "$as_me:15155: \$? = $ac_status" >&5
15156 (exit $ac_status); } &&
15157 { ac_try='test -s conftest$ac_exeext'
15158 { (eval echo "$as_me:15158: \"$ac_try\"") >&5
15159 (eval $ac_try) 2>&5
15161 echo "$as_me:15161: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }; then
15163 cf_cv_curses_wacs_map=$name
15166 echo "$as_me: failed program was:" >&5
15167 cat conftest.$ac_ext >&5
15169 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15172 echo "$as_me:15172: result: $cf_cv_curses_wacs_map" >&5
15173 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
15175 test "$cf_cv_curses_wacs_map" != unknown &&
15176 cat >>confdefs.h <<EOF
15177 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
15180 echo "$as_me:15180: checking for wide alternate character constants" >&5
15181 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
15182 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 cf_cv_curses_wacs_symbols=no
15187 if test "$cf_cv_curses_wacs_map" != unknown
15189 cat >conftest.$ac_ext <<_ACEOF
15190 #line 15190 "configure"
15191 #include "confdefs.h"
15193 #ifndef _XOPEN_SOURCE_EXTENDED
15194 #define _XOPEN_SOURCE_EXTENDED
15196 #include <${cf_cv_ncurses_header:-curses.h}>
15200 cchar_t *foo = WACS_PLUS;
15201 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
15206 rm -f conftest.$ac_objext conftest$ac_exeext
15207 if { (eval echo "$as_me:15207: \"$ac_link\"") >&5
15208 (eval $ac_link) 2>&5
15210 echo "$as_me:15210: \$? = $ac_status" >&5
15211 (exit $ac_status); } &&
15212 { ac_try='test -s conftest$ac_exeext'
15213 { (eval echo "$as_me:15213: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15216 echo "$as_me:15216: \$? = $ac_status" >&5
15217 (exit $ac_status); }; }; then
15218 cf_cv_curses_wacs_symbols=yes
15220 echo "$as_me: failed program was:" >&5
15221 cat conftest.$ac_ext >&5
15223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15225 cat >conftest.$ac_ext <<_ACEOF
15226 #line 15226 "configure"
15227 #include "confdefs.h"
15229 #ifndef _XOPEN_SOURCE_EXTENDED
15230 #define _XOPEN_SOURCE_EXTENDED
15232 #include <${cf_cv_ncurses_header:-curses.h}>
15236 cchar_t *foo = WACS_PLUS
15241 rm -f conftest.$ac_objext conftest$ac_exeext
15242 if { (eval echo "$as_me:15242: \"$ac_link\"") >&5
15243 (eval $ac_link) 2>&5
15245 echo "$as_me:15245: \$? = $ac_status" >&5
15246 (exit $ac_status); } &&
15247 { ac_try='test -s conftest$ac_exeext'
15248 { (eval echo "$as_me:15248: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15251 echo "$as_me:15251: \$? = $ac_status" >&5
15252 (exit $ac_status); }; }; then
15253 cf_cv_curses_wacs_symbols=yes
15255 echo "$as_me: failed program was:" >&5
15256 cat conftest.$ac_ext >&5
15258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15262 echo "$as_me:15262: result: $cf_cv_curses_wacs_symbols" >&5
15263 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
15265 test "$cf_cv_curses_wacs_symbols" != no &&
15266 cat >>confdefs.h <<\EOF
15267 #define CURSES_WACS_SYMBOLS 1
15272 echo "$as_me:15272: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15273 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15274 cat >conftest.$ac_ext <<_ACEOF
15275 #line 15275 "configure"
15276 #include "confdefs.h"
15278 #ifndef _XOPEN_SOURCE_EXTENDED
15279 #define _XOPEN_SOURCE_EXTENDED
15281 #include <${cf_cv_ncurses_header:-curses.h}>
15292 rm -f conftest.$ac_objext
15293 if { (eval echo "$as_me:15293: \"$ac_compile\"") >&5
15294 (eval $ac_compile) 2>&5
15296 echo "$as_me:15296: \$? = $ac_status" >&5
15297 (exit $ac_status); } &&
15298 { ac_try='test -s conftest.$ac_objext'
15299 { (eval echo "$as_me:15299: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15302 echo "$as_me:15302: \$? = $ac_status" >&5
15303 (exit $ac_status); }; }; then
15306 echo "$as_me: failed program was:" >&5
15307 cat conftest.$ac_ext >&5
15310 rm -f conftest.$ac_objext conftest.$ac_ext
15311 echo "$as_me:15311: result: $cf_result" >&5
15312 echo "${ECHO_T}$cf_result" >&6
15313 if test $cf_result = yes ; then
15315 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15317 cat >>confdefs.h <<EOF
15318 #define $cf_result 1
15323 cat >>confdefs.h <<EOF
15324 #define attr_t long
15329 if test "$cf_enable_widec" = yes; then
15331 # This is needed on Tru64 5.0 to declare mbstate_t
15332 echo "$as_me:15332: checking if we must include wchar.h to declare mbstate_t" >&5
15333 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
15334 if test "${cf_cv_mbstate_t+set}" = set; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6
15338 cat >conftest.$ac_ext <<_ACEOF
15339 #line 15339 "configure"
15340 #include "confdefs.h"
15342 #include <stdlib.h>
15343 #include <stdarg.h>
15345 #ifdef HAVE_LIBUTF8_H
15346 #include <libutf8.h>
15356 rm -f conftest.$ac_objext
15357 if { (eval echo "$as_me:15357: \"$ac_compile\"") >&5
15358 (eval $ac_compile) 2>&5
15360 echo "$as_me:15360: \$? = $ac_status" >&5
15361 (exit $ac_status); } &&
15362 { ac_try='test -s conftest.$ac_objext'
15363 { (eval echo "$as_me:15363: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15366 echo "$as_me:15366: \$? = $ac_status" >&5
15367 (exit $ac_status); }; }; then
15370 echo "$as_me: failed program was:" >&5
15371 cat conftest.$ac_ext >&5
15372 cat >conftest.$ac_ext <<_ACEOF
15373 #line 15373 "configure"
15374 #include "confdefs.h"
15376 #include <stdlib.h>
15377 #include <stdarg.h>
15380 #ifdef HAVE_LIBUTF8_H
15381 #include <libutf8.h>
15391 rm -f conftest.$ac_objext
15392 if { (eval echo "$as_me:15392: \"$ac_compile\"") >&5
15393 (eval $ac_compile) 2>&5
15395 echo "$as_me:15395: \$? = $ac_status" >&5
15396 (exit $ac_status); } &&
15397 { ac_try='test -s conftest.$ac_objext'
15398 { (eval echo "$as_me:15398: \"$ac_try\"") >&5
15399 (eval $ac_try) 2>&5
15401 echo "$as_me:15401: \$? = $ac_status" >&5
15402 (exit $ac_status); }; }; then
15403 cf_cv_mbstate_t=yes
15405 echo "$as_me: failed program was:" >&5
15406 cat conftest.$ac_ext >&5
15407 cf_cv_mbstate_t=unknown
15409 rm -f conftest.$ac_objext conftest.$ac_ext
15411 rm -f conftest.$ac_objext conftest.$ac_ext
15413 echo "$as_me:15413: result: $cf_cv_mbstate_t" >&5
15414 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
15416 if test "$cf_cv_mbstate_t" = yes ; then
15418 cat >>confdefs.h <<\EOF
15419 #define NEED_WCHAR_H 1
15425 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
15426 if test "$cf_cv_mbstate_t" = unknown ; then
15427 NCURSES_MBSTATE_T=1
15430 # if we find mbstate_t in either place, use substitution to provide a fallback.
15431 if test "$cf_cv_mbstate_t" != unknown ; then
15432 NCURSES_OK_MBSTATE_T=1
15435 # This is needed on Tru64 5.0 to declare wchar_t
15436 echo "$as_me:15436: checking if we must include wchar.h to declare wchar_t" >&5
15437 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
15438 if test "${cf_cv_wchar_t+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15442 cat >conftest.$ac_ext <<_ACEOF
15443 #line 15443 "configure"
15444 #include "confdefs.h"
15446 #include <stdlib.h>
15447 #include <stdarg.h>
15449 #ifdef HAVE_LIBUTF8_H
15450 #include <libutf8.h>
15460 rm -f conftest.$ac_objext
15461 if { (eval echo "$as_me:15461: \"$ac_compile\"") >&5
15462 (eval $ac_compile) 2>&5
15464 echo "$as_me:15464: \$? = $ac_status" >&5
15465 (exit $ac_status); } &&
15466 { ac_try='test -s conftest.$ac_objext'
15467 { (eval echo "$as_me:15467: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15470 echo "$as_me:15470: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15474 echo "$as_me: failed program was:" >&5
15475 cat conftest.$ac_ext >&5
15476 cat >conftest.$ac_ext <<_ACEOF
15477 #line 15477 "configure"
15478 #include "confdefs.h"
15480 #include <stdlib.h>
15481 #include <stdarg.h>
15484 #ifdef HAVE_LIBUTF8_H
15485 #include <libutf8.h>
15495 rm -f conftest.$ac_objext
15496 if { (eval echo "$as_me:15496: \"$ac_compile\"") >&5
15497 (eval $ac_compile) 2>&5
15499 echo "$as_me:15499: \$? = $ac_status" >&5
15500 (exit $ac_status); } &&
15501 { ac_try='test -s conftest.$ac_objext'
15502 { (eval echo "$as_me:15502: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15505 echo "$as_me:15505: \$? = $ac_status" >&5
15506 (exit $ac_status); }; }; then
15509 echo "$as_me: failed program was:" >&5
15510 cat conftest.$ac_ext >&5
15511 cf_cv_wchar_t=unknown
15513 rm -f conftest.$ac_objext conftest.$ac_ext
15515 rm -f conftest.$ac_objext conftest.$ac_ext
15517 echo "$as_me:15517: result: $cf_cv_wchar_t" >&5
15518 echo "${ECHO_T}$cf_cv_wchar_t" >&6
15520 if test "$cf_cv_wchar_t" = yes ; then
15522 cat >>confdefs.h <<\EOF
15523 #define NEED_WCHAR_H 1
15529 # if we do not find wchar_t in either place, use substitution to provide a fallback.
15530 if test "$cf_cv_wchar_t" = unknown ; then
15534 # if we find wchar_t in either place, use substitution to provide a fallback.
15535 if test "$cf_cv_wchar_t" != unknown ; then
15536 NCURSES_OK_WCHAR_T=1
15539 # This is needed on Tru64 5.0 to declare wint_t
15540 echo "$as_me:15540: checking if we must include wchar.h to declare wint_t" >&5
15541 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
15542 if test "${cf_cv_wint_t+set}" = set; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15546 cat >conftest.$ac_ext <<_ACEOF
15547 #line 15547 "configure"
15548 #include "confdefs.h"
15550 #include <stdlib.h>
15551 #include <stdarg.h>
15553 #ifdef HAVE_LIBUTF8_H
15554 #include <libutf8.h>
15564 rm -f conftest.$ac_objext
15565 if { (eval echo "$as_me:15565: \"$ac_compile\"") >&5
15566 (eval $ac_compile) 2>&5
15568 echo "$as_me:15568: \$? = $ac_status" >&5
15569 (exit $ac_status); } &&
15570 { ac_try='test -s conftest.$ac_objext'
15571 { (eval echo "$as_me:15571: \"$ac_try\"") >&5
15572 (eval $ac_try) 2>&5
15574 echo "$as_me:15574: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
15578 echo "$as_me: failed program was:" >&5
15579 cat conftest.$ac_ext >&5
15580 cat >conftest.$ac_ext <<_ACEOF
15581 #line 15581 "configure"
15582 #include "confdefs.h"
15584 #include <stdlib.h>
15585 #include <stdarg.h>
15588 #ifdef HAVE_LIBUTF8_H
15589 #include <libutf8.h>
15599 rm -f conftest.$ac_objext
15600 if { (eval echo "$as_me:15600: \"$ac_compile\"") >&5
15601 (eval $ac_compile) 2>&5
15603 echo "$as_me:15603: \$? = $ac_status" >&5
15604 (exit $ac_status); } &&
15605 { ac_try='test -s conftest.$ac_objext'
15606 { (eval echo "$as_me:15606: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15609 echo "$as_me:15609: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15613 echo "$as_me: failed program was:" >&5
15614 cat conftest.$ac_ext >&5
15615 cf_cv_wint_t=unknown
15617 rm -f conftest.$ac_objext conftest.$ac_ext
15619 rm -f conftest.$ac_objext conftest.$ac_ext
15621 echo "$as_me:15621: result: $cf_cv_wint_t" >&5
15622 echo "${ECHO_T}$cf_cv_wint_t" >&6
15624 if test "$cf_cv_wint_t" = yes ; then
15626 cat >>confdefs.h <<\EOF
15627 #define NEED_WCHAR_H 1
15633 # if we do not find wint_t in either place, use substitution to provide a fallback.
15634 if test "$cf_cv_wint_t" = unknown ; then
15638 # if we find wint_t in either place, use substitution to provide a fallback.
15639 if test "$cf_cv_wint_t" != unknown ; then
15640 NCURSES_OK_WINT_T=1
15643 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
15645 echo "$as_me:15645: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15646 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15647 cat >conftest.$ac_ext <<_ACEOF
15648 #line 15648 "configure"
15649 #include "confdefs.h"
15651 #ifndef _XOPEN_SOURCE_EXTENDED
15652 #define _XOPEN_SOURCE_EXTENDED
15654 #include <${cf_cv_ncurses_header:-curses.h}>
15665 rm -f conftest.$ac_objext
15666 if { (eval echo "$as_me:15666: \"$ac_compile\"") >&5
15667 (eval $ac_compile) 2>&5
15669 echo "$as_me:15669: \$? = $ac_status" >&5
15670 (exit $ac_status); } &&
15671 { ac_try='test -s conftest.$ac_objext'
15672 { (eval echo "$as_me:15672: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15675 echo "$as_me:15675: \$? = $ac_status" >&5
15676 (exit $ac_status); }; }; then
15679 echo "$as_me: failed program was:" >&5
15680 cat conftest.$ac_ext >&5
15683 rm -f conftest.$ac_objext conftest.$ac_ext
15684 echo "$as_me:15684: result: $cf_result" >&5
15685 echo "${ECHO_T}$cf_result" >&6
15686 if test $cf_result = yes ; then
15688 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15690 cat >>confdefs.h <<EOF
15691 #define $cf_result 1
15696 cat >>confdefs.h <<EOF
15697 #define mbstate_t long
15704 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
15706 echo "$as_me:15706: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15707 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15708 cat >conftest.$ac_ext <<_ACEOF
15709 #line 15709 "configure"
15710 #include "confdefs.h"
15712 #ifndef _XOPEN_SOURCE_EXTENDED
15713 #define _XOPEN_SOURCE_EXTENDED
15715 #include <${cf_cv_ncurses_header:-curses.h}>
15726 rm -f conftest.$ac_objext
15727 if { (eval echo "$as_me:15727: \"$ac_compile\"") >&5
15728 (eval $ac_compile) 2>&5
15730 echo "$as_me:15730: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
15732 { ac_try='test -s conftest.$ac_objext'
15733 { (eval echo "$as_me:15733: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15736 echo "$as_me:15736: \$? = $ac_status" >&5
15737 (exit $ac_status); }; }; then
15740 echo "$as_me: failed program was:" >&5
15741 cat conftest.$ac_ext >&5
15744 rm -f conftest.$ac_objext conftest.$ac_ext
15745 echo "$as_me:15745: result: $cf_result" >&5
15746 echo "${ECHO_T}$cf_result" >&6
15747 if test $cf_result = yes ; then
15749 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15751 cat >>confdefs.h <<EOF
15752 #define $cf_result 1
15757 cat >>confdefs.h <<EOF
15758 #define wchar_t long
15765 if test "$NCURSES_OK_WINT_T" = 0 ; then
15767 echo "$as_me:15767: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15768 echo $ECHO_N "checking for type wint_t 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 #ifndef _XOPEN_SOURCE_EXTENDED
15774 #define _XOPEN_SOURCE_EXTENDED
15776 #include <${cf_cv_ncurses_header:-curses.h}>
15787 rm -f conftest.$ac_objext
15788 if { (eval echo "$as_me:15788: \"$ac_compile\"") >&5
15789 (eval $ac_compile) 2>&5
15791 echo "$as_me:15791: \$? = $ac_status" >&5
15792 (exit $ac_status); } &&
15793 { ac_try='test -s conftest.$ac_objext'
15794 { (eval echo "$as_me:15794: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15797 echo "$as_me:15797: \$? = $ac_status" >&5
15798 (exit $ac_status); }; }; then
15801 echo "$as_me: failed program was:" >&5
15802 cat conftest.$ac_ext >&5
15805 rm -f conftest.$ac_objext conftest.$ac_ext
15806 echo "$as_me:15806: result: $cf_result" >&5
15807 echo "${ECHO_T}$cf_result" >&6
15808 if test $cf_result = yes ; then
15810 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15812 cat >>confdefs.h <<EOF
15813 #define $cf_result 1
15818 cat >>confdefs.h <<EOF
15819 #define wint_t long
15827 echo "$as_me:15827: checking for data ospeed declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
15828 echo $ECHO_N "checking for data ospeed declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15830 cat >conftest.$ac_ext <<_ACEOF
15831 #line 15831 "configure"
15832 #include "confdefs.h"
15834 #ifdef HAVE_XCURSES
15835 #include <xcurses.h>
15836 char * XCursesProgramName = "test";
15838 #include <${cf_cv_ncurses_header:-curses.h}>
15839 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15840 #include <ncursesw/term.h>
15841 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15842 #include <ncurses/term.h>
15843 #elif defined(HAVE_TERM_H)
15852 void *foo = &(ospeed)
15858 rm -f conftest.$ac_objext
15859 if { (eval echo "$as_me:15859: \"$ac_compile\"") >&5
15860 (eval $ac_compile) 2>&5
15862 echo "$as_me:15862: \$? = $ac_status" >&5
15863 (exit $ac_status); } &&
15864 { ac_try='test -s conftest.$ac_objext'
15865 { (eval echo "$as_me:15865: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15868 echo "$as_me:15868: \$? = $ac_status" >&5
15869 (exit $ac_status); }; }; then
15872 echo "$as_me: failed program was:" >&5
15873 cat conftest.$ac_ext >&5
15876 rm -f conftest.$ac_objext conftest.$ac_ext
15877 echo "$as_me:15877: result: $cf_result" >&5
15878 echo "${ECHO_T}$cf_result" >&6
15880 if test $cf_result = yes ; then
15882 cf_result=`echo "have_curses_data_ospeed" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15884 cat >>confdefs.h <<EOF
15885 #define $cf_result 1
15889 echo "$as_me:15889: checking for data ospeed in library" >&5
15890 echo $ECHO_N "checking for data ospeed in library... $ECHO_C" >&6
15891 # BSD linkers insist on making weak linkage, but resolve at runtime.
15892 if test "$cross_compiling" = yes; then
15895 cat >conftest.$ac_ext <<_ACEOF
15896 #line 15896 "configure"
15897 #include "confdefs.h"
15899 #ifdef HAVE_XCURSES
15900 #include <xcurses.h>
15901 char * XCursesProgramName = "test";
15903 #include <${cf_cv_ncurses_header:-curses.h}>
15904 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15905 #include <ncursesw/term.h>
15906 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15907 #include <ncurses/term.h>
15908 #elif defined(HAVE_TERM_H)
15913 extern char ospeed;
15919 void *foo = &(ospeed);
15920 fprintf(stderr, "testing linkage of ospeed:%p\n", foo);
15921 ${cf_cv_main_return:-return}(foo == 0);
15928 rm -f conftest.$ac_objext conftest$ac_exeext
15929 if { (eval echo "$as_me:15929: \"$ac_link\"") >&5
15930 (eval $ac_link) 2>&5
15932 echo "$as_me:15932: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
15934 { ac_try='test -s conftest$ac_exeext'
15935 { (eval echo "$as_me:15935: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15938 echo "$as_me:15938: \$? = $ac_status" >&5
15939 (exit $ac_status); }; }; then
15942 echo "$as_me: failed program was:" >&5
15943 cat conftest.$ac_ext >&5
15946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15949 cat >conftest.$ac_ext <<_ACEOF
15950 #line 15950 "configure"
15951 #include "confdefs.h"
15953 #ifdef HAVE_XCURSES
15954 #include <xcurses.h>
15955 char * XCursesProgramName = "test";
15957 #include <${cf_cv_ncurses_header:-curses.h}>
15958 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15959 #include <ncursesw/term.h>
15960 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15961 #include <ncurses/term.h>
15962 #elif defined(HAVE_TERM_H)
15967 extern char ospeed;
15970 void *foo = &(ospeed);
15971 fprintf(stderr, "testing linkage of ospeed:%p\n", foo);
15972 ${cf_cv_main_return:-return}(foo == 0);
15975 rm -f conftest$ac_exeext
15976 if { (eval echo "$as_me:15976: \"$ac_link\"") >&5
15977 (eval $ac_link) 2>&5
15979 echo "$as_me:15979: \$? = $ac_status" >&5
15980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15981 { (eval echo "$as_me:15981: \"$ac_try\"") >&5
15982 (eval $ac_try) 2>&5
15984 echo "$as_me:15984: \$? = $ac_status" >&5
15985 (exit $ac_status); }; }; then
15988 echo "$as_me: program exited with status $ac_status" >&5
15989 echo "$as_me: failed program was:" >&5
15990 cat conftest.$ac_ext >&5
15993 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15995 echo "$as_me:15995: result: $cf_result" >&5
15996 echo "${ECHO_T}$cf_result" >&6
15997 if test $cf_result = yes ; then
15999 cf_result=`echo "decl_curses_data_ospeed" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16001 cat >>confdefs.h <<EOF
16002 #define $cf_result 1
16008 echo "$as_me:16008: checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
16009 echo $ECHO_N "checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16011 cat >conftest.$ac_ext <<_ACEOF
16012 #line 16012 "configure"
16013 #include "confdefs.h"
16015 #ifdef HAVE_XCURSES
16016 #include <xcurses.h>
16017 char * XCursesProgramName = "test";
16019 #include <${cf_cv_ncurses_header:-curses.h}>
16020 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16021 #include <ncursesw/term.h>
16022 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16023 #include <ncurses/term.h>
16024 #elif defined(HAVE_TERM_H)
16033 void *foo = &(boolnames)
16039 rm -f conftest.$ac_objext
16040 if { (eval echo "$as_me:16040: \"$ac_compile\"") >&5
16041 (eval $ac_compile) 2>&5
16043 echo "$as_me:16043: \$? = $ac_status" >&5
16044 (exit $ac_status); } &&
16045 { ac_try='test -s conftest.$ac_objext'
16046 { (eval echo "$as_me:16046: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16049 echo "$as_me:16049: \$? = $ac_status" >&5
16050 (exit $ac_status); }; }; then
16053 echo "$as_me: failed program was:" >&5
16054 cat conftest.$ac_ext >&5
16057 rm -f conftest.$ac_objext conftest.$ac_ext
16058 echo "$as_me:16058: result: $cf_result" >&5
16059 echo "${ECHO_T}$cf_result" >&6
16061 if test $cf_result = yes ; then
16063 cf_result=`echo "have_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16065 cat >>confdefs.h <<EOF
16066 #define $cf_result 1
16070 echo "$as_me:16070: checking for data boolnames in library" >&5
16071 echo $ECHO_N "checking for data boolnames in library... $ECHO_C" >&6
16072 # BSD linkers insist on making weak linkage, but resolve at runtime.
16073 if test "$cross_compiling" = yes; then
16076 cat >conftest.$ac_ext <<_ACEOF
16077 #line 16077 "configure"
16078 #include "confdefs.h"
16080 #ifdef HAVE_XCURSES
16081 #include <xcurses.h>
16082 char * XCursesProgramName = "test";
16084 #include <${cf_cv_ncurses_header:-curses.h}>
16085 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16086 #include <ncursesw/term.h>
16087 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16088 #include <ncurses/term.h>
16089 #elif defined(HAVE_TERM_H)
16094 extern char boolnames;
16100 void *foo = &(boolnames);
16101 fprintf(stderr, "testing linkage of boolnames:%p\n", foo);
16102 ${cf_cv_main_return:-return}(foo == 0);
16109 rm -f conftest.$ac_objext conftest$ac_exeext
16110 if { (eval echo "$as_me:16110: \"$ac_link\"") >&5
16111 (eval $ac_link) 2>&5
16113 echo "$as_me:16113: \$? = $ac_status" >&5
16114 (exit $ac_status); } &&
16115 { ac_try='test -s conftest$ac_exeext'
16116 { (eval echo "$as_me:16116: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16119 echo "$as_me:16119: \$? = $ac_status" >&5
16120 (exit $ac_status); }; }; then
16123 echo "$as_me: failed program was:" >&5
16124 cat conftest.$ac_ext >&5
16127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16130 cat >conftest.$ac_ext <<_ACEOF
16131 #line 16131 "configure"
16132 #include "confdefs.h"
16134 #ifdef HAVE_XCURSES
16135 #include <xcurses.h>
16136 char * XCursesProgramName = "test";
16138 #include <${cf_cv_ncurses_header:-curses.h}>
16139 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16140 #include <ncursesw/term.h>
16141 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16142 #include <ncurses/term.h>
16143 #elif defined(HAVE_TERM_H)
16148 extern char boolnames;
16151 void *foo = &(boolnames);
16152 fprintf(stderr, "testing linkage of boolnames:%p\n", foo);
16153 ${cf_cv_main_return:-return}(foo == 0);
16156 rm -f conftest$ac_exeext
16157 if { (eval echo "$as_me:16157: \"$ac_link\"") >&5
16158 (eval $ac_link) 2>&5
16160 echo "$as_me:16160: \$? = $ac_status" >&5
16161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16162 { (eval echo "$as_me:16162: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16165 echo "$as_me:16165: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
16169 echo "$as_me: program exited with status $ac_status" >&5
16170 echo "$as_me: failed program was:" >&5
16171 cat conftest.$ac_ext >&5
16174 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16176 echo "$as_me:16176: result: $cf_result" >&5
16177 echo "${ECHO_T}$cf_result" >&6
16178 if test $cf_result = yes ; then
16180 cf_result=`echo "decl_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16182 cat >>confdefs.h <<EOF
16183 #define $cf_result 1
16189 echo "$as_me:16189: checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
16190 echo $ECHO_N "checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16192 cat >conftest.$ac_ext <<_ACEOF
16193 #line 16193 "configure"
16194 #include "confdefs.h"
16196 #ifdef HAVE_XCURSES
16197 #include <xcurses.h>
16198 char * XCursesProgramName = "test";
16200 #include <${cf_cv_ncurses_header:-curses.h}>
16201 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16202 #include <ncursesw/term.h>
16203 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16204 #include <ncurses/term.h>
16205 #elif defined(HAVE_TERM_H)
16214 void *foo = &(boolfnames)
16220 rm -f conftest.$ac_objext
16221 if { (eval echo "$as_me:16221: \"$ac_compile\"") >&5
16222 (eval $ac_compile) 2>&5
16224 echo "$as_me:16224: \$? = $ac_status" >&5
16225 (exit $ac_status); } &&
16226 { ac_try='test -s conftest.$ac_objext'
16227 { (eval echo "$as_me:16227: \"$ac_try\"") >&5
16228 (eval $ac_try) 2>&5
16230 echo "$as_me:16230: \$? = $ac_status" >&5
16231 (exit $ac_status); }; }; then
16234 echo "$as_me: failed program was:" >&5
16235 cat conftest.$ac_ext >&5
16238 rm -f conftest.$ac_objext conftest.$ac_ext
16239 echo "$as_me:16239: result: $cf_result" >&5
16240 echo "${ECHO_T}$cf_result" >&6
16242 if test $cf_result = yes ; then
16244 cf_result=`echo "have_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16246 cat >>confdefs.h <<EOF
16247 #define $cf_result 1
16251 echo "$as_me:16251: checking for data boolfnames in library" >&5
16252 echo $ECHO_N "checking for data boolfnames in library... $ECHO_C" >&6
16253 # BSD linkers insist on making weak linkage, but resolve at runtime.
16254 if test "$cross_compiling" = yes; then
16257 cat >conftest.$ac_ext <<_ACEOF
16258 #line 16258 "configure"
16259 #include "confdefs.h"
16261 #ifdef HAVE_XCURSES
16262 #include <xcurses.h>
16263 char * XCursesProgramName = "test";
16265 #include <${cf_cv_ncurses_header:-curses.h}>
16266 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16267 #include <ncursesw/term.h>
16268 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16269 #include <ncurses/term.h>
16270 #elif defined(HAVE_TERM_H)
16275 extern char boolfnames;
16281 void *foo = &(boolfnames);
16282 fprintf(stderr, "testing linkage of boolfnames:%p\n", foo);
16283 ${cf_cv_main_return:-return}(foo == 0);
16290 rm -f conftest.$ac_objext conftest$ac_exeext
16291 if { (eval echo "$as_me:16291: \"$ac_link\"") >&5
16292 (eval $ac_link) 2>&5
16294 echo "$as_me:16294: \$? = $ac_status" >&5
16295 (exit $ac_status); } &&
16296 { ac_try='test -s conftest$ac_exeext'
16297 { (eval echo "$as_me:16297: \"$ac_try\"") >&5
16298 (eval $ac_try) 2>&5
16300 echo "$as_me:16300: \$? = $ac_status" >&5
16301 (exit $ac_status); }; }; then
16304 echo "$as_me: failed program was:" >&5
16305 cat conftest.$ac_ext >&5
16308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16311 cat >conftest.$ac_ext <<_ACEOF
16312 #line 16312 "configure"
16313 #include "confdefs.h"
16315 #ifdef HAVE_XCURSES
16316 #include <xcurses.h>
16317 char * XCursesProgramName = "test";
16319 #include <${cf_cv_ncurses_header:-curses.h}>
16320 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16321 #include <ncursesw/term.h>
16322 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16323 #include <ncurses/term.h>
16324 #elif defined(HAVE_TERM_H)
16329 extern char boolfnames;
16332 void *foo = &(boolfnames);
16333 fprintf(stderr, "testing linkage of boolfnames:%p\n", foo);
16334 ${cf_cv_main_return:-return}(foo == 0);
16337 rm -f conftest$ac_exeext
16338 if { (eval echo "$as_me:16338: \"$ac_link\"") >&5
16339 (eval $ac_link) 2>&5
16341 echo "$as_me:16341: \$? = $ac_status" >&5
16342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16343 { (eval echo "$as_me:16343: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16346 echo "$as_me:16346: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16350 echo "$as_me: program exited with status $ac_status" >&5
16351 echo "$as_me: failed program was:" >&5
16352 cat conftest.$ac_ext >&5
16355 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16357 echo "$as_me:16357: result: $cf_result" >&5
16358 echo "${ECHO_T}$cf_result" >&6
16359 if test $cf_result = yes ; then
16361 cf_result=`echo "decl_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16363 cat >>confdefs.h <<EOF
16364 #define $cf_result 1
16370 if ( test "$GCC" = yes || test "$GXX" = yes )
16372 echo "$as_me:16372: checking if you want to turn on gcc warnings" >&5
16373 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
16375 # Check whether --enable-warnings or --disable-warnings was given.
16376 if test "${enable_warnings+set}" = set; then
16377 enableval="$enable_warnings"
16378 test "$enableval" != yes && enableval=no
16379 if test "$enableval" != "no" ; then
16389 echo "$as_me:16389: result: $with_warnings" >&5
16390 echo "${ECHO_T}$with_warnings" >&6
16391 if test "$with_warnings" = "yes"
16394 if test "$GCC" = yes
16396 cat > conftest.i <<EOF
16398 #define GCC_PRINTF 0
16401 #define GCC_SCANF 0
16403 #ifndef GCC_NORETURN
16404 #define GCC_NORETURN /* nothing */
16407 #define GCC_UNUSED /* nothing */
16410 if test "$GCC" = yes
16412 { echo "$as_me:16412: checking for $CC __attribute__ directives..." >&5
16413 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
16414 cat > conftest.$ac_ext <<EOF
16415 #line 16415 "${as_me:-configure}"
16416 #include "confdefs.h"
16417 #include "conftest.h"
16418 #include "conftest.i"
16420 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
16422 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
16425 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
16427 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
16429 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
16430 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
16431 extern void foo(void) GCC_NORETURN;
16432 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
16434 cf_printf_attribute=no
16435 cf_scanf_attribute=no
16436 for cf_attribute in scanf printf unused noreturn
16439 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16441 cf_directive="__attribute__(($cf_attribute))"
16442 echo "checking for $CC $cf_directive" 1>&5
16444 case $cf_attribute in
16446 cf_printf_attribute=yes
16447 cat >conftest.h <<EOF
16448 #define GCC_$cf_ATTRIBUTE 1
16452 cf_scanf_attribute=yes
16453 cat >conftest.h <<EOF
16454 #define GCC_$cf_ATTRIBUTE 1
16458 cat >conftest.h <<EOF
16459 #define GCC_$cf_ATTRIBUTE $cf_directive
16464 if { (eval echo "$as_me:16464: \"$ac_compile\"") >&5
16465 (eval $ac_compile) 2>&5
16467 echo "$as_me:16467: \$? = $ac_status" >&5
16468 (exit $ac_status); }; then
16469 test -n "$verbose" && echo "$as_me:16469: result: ... $cf_attribute" >&5
16470 echo "${ECHO_T}... $cf_attribute" >&6
16471 cat conftest.h >>confdefs.h
16472 case $cf_attribute in
16475 cat >>confdefs.h <<EOF
16476 #define GCC_NORETURN $cf_directive
16481 cf_value='/* nothing */'
16482 if test "$cf_printf_attribute" != no ; then
16483 cf_value='__attribute__((format(printf,fmt,var)))'
16485 cat >>confdefs.h <<\EOF
16486 #define GCC_PRINTF 1
16491 cat >>confdefs.h <<EOF
16492 #define GCC_PRINTFLIKE(fmt,var) $cf_value
16497 cf_value='/* nothing */'
16498 if test "$cf_scanf_attribute" != no ; then
16499 cf_value='__attribute__((format(scanf,fmt,var)))'
16501 cat >>confdefs.h <<\EOF
16502 #define GCC_SCANF 1
16507 cat >>confdefs.h <<EOF
16508 #define GCC_SCANFLIKE(fmt,var) $cf_value
16514 cat >>confdefs.h <<EOF
16515 #define GCC_UNUSED $cf_directive
16523 fgrep define conftest.i >>confdefs.h
16530 if test "$GCC" = yes ; then
16533 echo "$as_me:16533: checking if this is really Intel C compiler" >&5
16534 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
16535 cf_save_CFLAGS="$CFLAGS"
16536 CFLAGS="$CFLAGS -no-gcc"
16537 cat >conftest.$ac_ext <<_ACEOF
16538 #line 16538 "configure"
16539 #include "confdefs.h"
16545 #ifdef __INTEL_COMPILER
16554 rm -f conftest.$ac_objext
16555 if { (eval echo "$as_me:16555: \"$ac_compile\"") >&5
16556 (eval $ac_compile) 2>&5
16558 echo "$as_me:16558: \$? = $ac_status" >&5
16559 (exit $ac_status); } &&
16560 { ac_try='test -s conftest.$ac_objext'
16561 { (eval echo "$as_me:16561: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:16564: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16567 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
16570 echo "$as_me: failed program was:" >&5
16571 cat conftest.$ac_ext >&5
16573 rm -f conftest.$ac_objext conftest.$ac_ext
16574 CFLAGS="$cf_save_CFLAGS"
16575 echo "$as_me:16575: result: $INTEL_COMPILER" >&5
16576 echo "${ECHO_T}$INTEL_COMPILER" >&6
16583 if test "$GCC" = yes ; then
16584 echo "$as_me:16584: checking if this is really Clang C compiler" >&5
16585 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
16586 cf_save_CFLAGS="$CFLAGS"
16587 CFLAGS="$CFLAGS -Qunused-arguments"
16588 cat >conftest.$ac_ext <<_ACEOF
16589 #line 16589 "configure"
16590 #include "confdefs.h"
16605 rm -f conftest.$ac_objext
16606 if { (eval echo "$as_me:16606: \"$ac_compile\"") >&5
16607 (eval $ac_compile) 2>&5
16609 echo "$as_me:16609: \$? = $ac_status" >&5
16610 (exit $ac_status); } &&
16611 { ac_try='test -s conftest.$ac_objext'
16612 { (eval echo "$as_me:16612: \"$ac_try\"") >&5
16613 (eval $ac_try) 2>&5
16615 echo "$as_me:16615: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16618 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
16621 echo "$as_me: failed program was:" >&5
16622 cat conftest.$ac_ext >&5
16624 rm -f conftest.$ac_objext conftest.$ac_ext
16625 CFLAGS="$cf_save_CFLAGS"
16626 echo "$as_me:16626: result: $CLANG_COMPILER" >&5
16627 echo "${ECHO_T}$CLANG_COMPILER" >&6
16630 cat > conftest.$ac_ext <<EOF
16631 #line 16631 "${as_me:-configure}"
16632 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16635 if test "$INTEL_COMPILER" = yes
16637 # The "-wdXXX" options suppress warnings:
16638 # remark #1419: external declaration in primary source file
16639 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16640 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16641 # remark #193: zero used for undefined preprocessing identifier
16642 # remark #593: variable "curs_sb_left_arrow" was set but never used
16643 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16644 # remark #869: parameter "tw" was never referenced
16645 # remark #981: operands are evaluated in unspecified order
16646 # warning #279: controlling expression is constant
16648 { echo "$as_me:16648: checking for $CC warning options..." >&5
16649 echo "$as_me: checking for $CC warning options..." >&6;}
16650 cf_save_CFLAGS="$CFLAGS"
16651 EXTRA_CFLAGS="-Wall"
16663 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16664 if { (eval echo "$as_me:16664: \"$ac_compile\"") >&5
16665 (eval $ac_compile) 2>&5
16667 echo "$as_me:16667: \$? = $ac_status" >&5
16668 (exit $ac_status); }; then
16669 test -n "$verbose" && echo "$as_me:16669: result: ... -$cf_opt" >&5
16670 echo "${ECHO_T}... -$cf_opt" >&6
16671 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16674 CFLAGS="$cf_save_CFLAGS"
16676 elif test "$GCC" = yes
16678 { echo "$as_me:16678: checking for $CC warning options..." >&5
16679 echo "$as_me: checking for $CC warning options..." >&6;}
16680 cf_save_CFLAGS="$CFLAGS"
16683 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
16684 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
16685 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
16686 for cf_opt in W Wall \
16687 Wbad-function-cast \
16690 Wdeclaration-after-statement \
16693 Wmissing-declarations \
16694 Wmissing-prototypes \
16698 Wstrict-prototypes \
16699 Wundef $cf_gcc_warnings $cf_warn_CONST
16701 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16702 if { (eval echo "$as_me:16702: \"$ac_compile\"") >&5
16703 (eval $ac_compile) 2>&5
16705 echo "$as_me:16705: \$? = $ac_status" >&5
16706 (exit $ac_status); }; then
16707 test -n "$verbose" && echo "$as_me:16707: result: ... -$cf_opt" >&5
16708 echo "${ECHO_T}... -$cf_opt" >&6
16711 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
16714 case $GCC_VERSION in
16716 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16718 echo "${as_me:-configure}:16718: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16724 case $GCC_VERSION in
16726 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16728 echo "${as_me:-configure}:16728: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16734 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16737 CFLAGS="$cf_save_CFLAGS"
16744 echo "$as_me:16744: checking if you want to use dmalloc for testing" >&5
16745 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
16747 # Check whether --with-dmalloc or --without-dmalloc was given.
16748 if test "${with_dmalloc+set}" = set; then
16749 withval="$with_dmalloc"
16751 cat >>confdefs.h <<EOF
16752 #define USE_DMALLOC 1
16755 : ${with_cflags:=-g}
16756 : ${with_no_leaks:=yes}
16761 echo "$as_me:16761: result: ${with_dmalloc:-no}" >&5
16762 echo "${ECHO_T}${with_dmalloc:-no}" >&6
16764 case .$with_cflags in
16774 cf_new_extra_cppflags=
16776 for cf_add_cflags in -g
16778 case $cf_fix_cppflags in
16780 case $cf_add_cflags in
16781 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16782 case $cf_add_cflags in
16784 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16786 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16787 && test -z "${cf_tst_cflags}" \
16788 && cf_fix_cppflags=yes
16790 if test $cf_fix_cppflags = yes ; then
16791 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16793 elif test "${cf_tst_cflags}" = "\"'" ; then
16794 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16799 case "$CPPFLAGS" in
16803 case $cf_add_cflags in
16805 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16807 CPPFLAGS=`echo "$CPPFLAGS" | \
16808 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16809 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16813 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
16818 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
16823 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16825 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16827 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16828 && test -z "${cf_tst_cflags}" \
16829 && cf_fix_cppflags=no
16834 if test -n "$cf_new_cflags" ; then
16836 CFLAGS="$CFLAGS $cf_new_cflags"
16839 if test -n "$cf_new_cppflags" ; then
16841 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
16844 if test -n "$cf_new_extra_cppflags" ; then
16846 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16854 if test "$with_dmalloc" = yes ; then
16855 echo "$as_me:16855: checking for dmalloc.h" >&5
16856 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
16857 if test "${ac_cv_header_dmalloc_h+set}" = set; then
16858 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 cat >conftest.$ac_ext <<_ACEOF
16861 #line 16861 "configure"
16862 #include "confdefs.h"
16863 #include <dmalloc.h>
16865 if { (eval echo "$as_me:16865: \"$ac_cpp conftest.$ac_ext\"") >&5
16866 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16868 egrep -v '^ *\+' conftest.er1 >conftest.err
16870 cat conftest.err >&5
16871 echo "$as_me:16871: \$? = $ac_status" >&5
16872 (exit $ac_status); } >/dev/null; then
16873 if test -s conftest.err; then
16874 ac_cpp_err=$ac_c_preproc_warn_flag
16881 if test -z "$ac_cpp_err"; then
16882 ac_cv_header_dmalloc_h=yes
16884 echo "$as_me: failed program was:" >&5
16885 cat conftest.$ac_ext >&5
16886 ac_cv_header_dmalloc_h=no
16888 rm -f conftest.err conftest.$ac_ext
16890 echo "$as_me:16890: result: $ac_cv_header_dmalloc_h" >&5
16891 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
16892 if test $ac_cv_header_dmalloc_h = yes; then
16894 echo "$as_me:16894: checking for dmalloc_debug in -ldmalloc" >&5
16895 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
16896 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
16897 echo $ECHO_N "(cached) $ECHO_C" >&6
16899 ac_check_lib_save_LIBS=$LIBS
16900 LIBS="-ldmalloc $LIBS"
16901 cat >conftest.$ac_ext <<_ACEOF
16902 #line 16902 "configure"
16903 #include "confdefs.h"
16905 /* Override any gcc2 internal prototype to avoid an error. */
16909 /* We use char because int might match the return type of a gcc2
16910 builtin and then its argument prototype would still apply. */
16911 char dmalloc_debug ();
16920 rm -f conftest.$ac_objext conftest$ac_exeext
16921 if { (eval echo "$as_me:16921: \"$ac_link\"") >&5
16922 (eval $ac_link) 2>&5
16924 echo "$as_me:16924: \$? = $ac_status" >&5
16925 (exit $ac_status); } &&
16926 { ac_try='test -s conftest$ac_exeext'
16927 { (eval echo "$as_me:16927: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16930 echo "$as_me:16930: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_cv_lib_dmalloc_dmalloc_debug=yes
16934 echo "$as_me: failed program was:" >&5
16935 cat conftest.$ac_ext >&5
16936 ac_cv_lib_dmalloc_dmalloc_debug=no
16938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16939 LIBS=$ac_check_lib_save_LIBS
16941 echo "$as_me:16941: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
16942 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
16943 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
16944 cat >>confdefs.h <<EOF
16945 #define HAVE_LIBDMALLOC 1
16948 LIBS="-ldmalloc $LIBS"
16956 echo "$as_me:16956: checking if you want to use dbmalloc for testing" >&5
16957 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
16959 # Check whether --with-dbmalloc or --without-dbmalloc was given.
16960 if test "${with_dbmalloc+set}" = set; then
16961 withval="$with_dbmalloc"
16963 cat >>confdefs.h <<EOF
16964 #define USE_DBMALLOC 1
16967 : ${with_cflags:=-g}
16968 : ${with_no_leaks:=yes}
16973 echo "$as_me:16973: result: ${with_dbmalloc:-no}" >&5
16974 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
16976 case .$with_cflags in
16986 cf_new_extra_cppflags=
16988 for cf_add_cflags in -g
16990 case $cf_fix_cppflags in
16992 case $cf_add_cflags in
16993 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16994 case $cf_add_cflags in
16996 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16998 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16999 && test -z "${cf_tst_cflags}" \
17000 && cf_fix_cppflags=yes
17002 if test $cf_fix_cppflags = yes ; then
17003 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17005 elif test "${cf_tst_cflags}" = "\"'" ; then
17006 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17011 case "$CPPFLAGS" in
17015 case $cf_add_cflags in
17017 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17019 CPPFLAGS=`echo "$CPPFLAGS" | \
17020 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17021 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17025 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17030 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17035 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17037 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17039 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17040 && test -z "${cf_tst_cflags}" \
17041 && cf_fix_cppflags=no
17046 if test -n "$cf_new_cflags" ; then
17048 CFLAGS="$CFLAGS $cf_new_cflags"
17051 if test -n "$cf_new_cppflags" ; then
17053 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17056 if test -n "$cf_new_extra_cppflags" ; then
17058 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17066 if test "$with_dbmalloc" = yes ; then
17067 echo "$as_me:17067: checking for dbmalloc.h" >&5
17068 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
17069 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17072 cat >conftest.$ac_ext <<_ACEOF
17073 #line 17073 "configure"
17074 #include "confdefs.h"
17075 #include <dbmalloc.h>
17077 if { (eval echo "$as_me:17077: \"$ac_cpp conftest.$ac_ext\"") >&5
17078 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17080 egrep -v '^ *\+' conftest.er1 >conftest.err
17082 cat conftest.err >&5
17083 echo "$as_me:17083: \$? = $ac_status" >&5
17084 (exit $ac_status); } >/dev/null; then
17085 if test -s conftest.err; then
17086 ac_cpp_err=$ac_c_preproc_warn_flag
17093 if test -z "$ac_cpp_err"; then
17094 ac_cv_header_dbmalloc_h=yes
17096 echo "$as_me: failed program was:" >&5
17097 cat conftest.$ac_ext >&5
17098 ac_cv_header_dbmalloc_h=no
17100 rm -f conftest.err conftest.$ac_ext
17102 echo "$as_me:17102: result: $ac_cv_header_dbmalloc_h" >&5
17103 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
17104 if test $ac_cv_header_dbmalloc_h = yes; then
17106 echo "$as_me:17106: checking for debug_malloc in -ldbmalloc" >&5
17107 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
17108 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17111 ac_check_lib_save_LIBS=$LIBS
17112 LIBS="-ldbmalloc $LIBS"
17113 cat >conftest.$ac_ext <<_ACEOF
17114 #line 17114 "configure"
17115 #include "confdefs.h"
17117 /* Override any gcc2 internal prototype to avoid an error. */
17121 /* We use char because int might match the return type of a gcc2
17122 builtin and then its argument prototype would still apply. */
17123 char debug_malloc ();
17132 rm -f conftest.$ac_objext conftest$ac_exeext
17133 if { (eval echo "$as_me:17133: \"$ac_link\"") >&5
17134 (eval $ac_link) 2>&5
17136 echo "$as_me:17136: \$? = $ac_status" >&5
17137 (exit $ac_status); } &&
17138 { ac_try='test -s conftest$ac_exeext'
17139 { (eval echo "$as_me:17139: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5
17142 echo "$as_me:17142: \$? = $ac_status" >&5
17143 (exit $ac_status); }; }; then
17144 ac_cv_lib_dbmalloc_debug_malloc=yes
17146 echo "$as_me: failed program was:" >&5
17147 cat conftest.$ac_ext >&5
17148 ac_cv_lib_dbmalloc_debug_malloc=no
17150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17151 LIBS=$ac_check_lib_save_LIBS
17153 echo "$as_me:17153: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
17154 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
17155 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
17156 cat >>confdefs.h <<EOF
17157 #define HAVE_LIBDBMALLOC 1
17160 LIBS="-ldbmalloc $LIBS"
17168 echo "$as_me:17168: checking if you want to use valgrind for testing" >&5
17169 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
17171 # Check whether --with-valgrind or --without-valgrind was given.
17172 if test "${with_valgrind+set}" = set; then
17173 withval="$with_valgrind"
17175 cat >>confdefs.h <<EOF
17176 #define USE_VALGRIND 1
17179 : ${with_cflags:=-g}
17180 : ${with_no_leaks:=yes}
17185 echo "$as_me:17185: result: ${with_valgrind:-no}" >&5
17186 echo "${ECHO_T}${with_valgrind:-no}" >&6
17188 case .$with_cflags in
17198 cf_new_extra_cppflags=
17200 for cf_add_cflags in -g
17202 case $cf_fix_cppflags in
17204 case $cf_add_cflags in
17205 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17206 case $cf_add_cflags in
17208 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17210 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17211 && test -z "${cf_tst_cflags}" \
17212 && cf_fix_cppflags=yes
17214 if test $cf_fix_cppflags = yes ; then
17215 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17217 elif test "${cf_tst_cflags}" = "\"'" ; then
17218 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17223 case "$CPPFLAGS" in
17227 case $cf_add_cflags in
17229 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17231 CPPFLAGS=`echo "$CPPFLAGS" | \
17232 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17233 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17237 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17242 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17247 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17249 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17251 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17252 && test -z "${cf_tst_cflags}" \
17253 && cf_fix_cppflags=no
17258 if test -n "$cf_new_cflags" ; then
17260 CFLAGS="$CFLAGS $cf_new_cflags"
17263 if test -n "$cf_new_cppflags" ; then
17265 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17268 if test -n "$cf_new_extra_cppflags" ; then
17270 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17278 echo "$as_me:17278: checking if you want to perform memory-leak testing" >&5
17279 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
17281 # Check whether --enable-leaks or --disable-leaks was given.
17282 if test "${enable_leaks+set}" = set; then
17283 enableval="$enable_leaks"
17284 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
17286 : ${with_no_leaks:=no}
17288 echo "$as_me:17288: result: $with_no_leaks" >&5
17289 echo "${ECHO_T}$with_no_leaks" >&6
17291 if test "$with_no_leaks" = yes ; then
17293 cat >>confdefs.h <<\EOF
17297 cat >>confdefs.h <<\EOF
17298 #define YY_NO_LEAKS 1
17304 echo "$as_me:17304: checking for an rpath option" >&5
17305 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
17306 case $cf_cv_system_name in
17308 if test "$GCC" = yes; then
17309 LD_RPATH_OPT="-Wl,-rpath,"
17311 LD_RPATH_OPT="-rpath "
17314 (linux*|gnu*|k*bsd*-gnu)
17315 LD_RPATH_OPT="-Wl,-rpath,"
17317 (openbsd[2-9].*|mirbsd*)
17318 LD_RPATH_OPT="-Wl,-rpath,"
17320 (dragonfly*|freebsd*)
17321 LD_RPATH_OPT="-rpath "
17324 LD_RPATH_OPT="-Wl,-rpath,"
17327 LD_RPATH_OPT="-rpath "
17335 echo "$as_me:17335: result: $LD_RPATH_OPT" >&5
17336 echo "${ECHO_T}$LD_RPATH_OPT" >&6
17338 case "x$LD_RPATH_OPT" in
17340 echo "$as_me:17340: checking if we need a space after rpath option" >&5
17341 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
17342 cf_save_LIBS="$LIBS"
17344 cf_add_libs="${LD_RPATH_OPT}$libdir"
17345 # Filter out duplicates - this happens with badly-designed ".pc" files...
17346 for cf_add_1lib in $LIBS
17348 for cf_add_2lib in $cf_add_libs
17350 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17356 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17358 LIBS="$cf_add_libs"
17360 cat >conftest.$ac_ext <<_ACEOF
17361 #line 17361 "configure"
17362 #include "confdefs.h"
17372 rm -f conftest.$ac_objext conftest$ac_exeext
17373 if { (eval echo "$as_me:17373: \"$ac_link\"") >&5
17374 (eval $ac_link) 2>&5
17376 echo "$as_me:17376: \$? = $ac_status" >&5
17377 (exit $ac_status); } &&
17378 { ac_try='test -s conftest$ac_exeext'
17379 { (eval echo "$as_me:17379: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17382 echo "$as_me:17382: \$? = $ac_status" >&5
17383 (exit $ac_status); }; }; then
17386 echo "$as_me: failed program was:" >&5
17387 cat conftest.$ac_ext >&5
17390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17391 LIBS="$cf_save_LIBS"
17392 echo "$as_me:17392: result: $cf_rpath_space" >&5
17393 echo "${ECHO_T}$cf_rpath_space" >&6
17394 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
17398 echo "$as_me:17398: checking if rpath-hack should be disabled" >&5
17399 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
17401 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
17402 if test "${enable_rpath_hack+set}" = set; then
17403 enableval="$enable_rpath_hack"
17404 test "$enableval" != no && enableval=yes
17405 if test "$enableval" != "yes" ; then
17406 cf_disable_rpath_hack=yes
17408 cf_disable_rpath_hack=no
17412 cf_disable_rpath_hack=no
17415 echo "$as_me:17415: result: $cf_disable_rpath_hack" >&5
17416 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
17417 if test "$cf_disable_rpath_hack" = no ; then
17419 echo "$as_me:17419: checking for updated LDFLAGS" >&5
17420 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
17421 if test -n "$LD_RPATH_OPT" ; then
17422 echo "$as_me:17422: result: maybe" >&5
17423 echo "${ECHO_T}maybe" >&6
17427 # Extract the first word of "$ac_prog", so it can be a program name with args.
17428 set dummy $ac_prog; ac_word=$2
17429 echo "$as_me:17429: checking for $ac_word" >&5
17430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17431 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
17432 echo $ECHO_N "(cached) $ECHO_C" >&6
17434 if test -n "$cf_ldd_prog"; then
17435 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
17437 ac_save_IFS=$IFS; IFS=$ac_path_separator
17439 for ac_dir in $ac_dummy; do
17441 test -z "$ac_dir" && ac_dir=.
17442 $as_executable_p "$ac_dir/$ac_word" || continue
17443 ac_cv_prog_cf_ldd_prog="$ac_prog"
17444 echo "$as_me:17444: found $ac_dir/$ac_word" >&5
17450 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
17451 if test -n "$cf_ldd_prog"; then
17452 echo "$as_me:17452: result: $cf_ldd_prog" >&5
17453 echo "${ECHO_T}$cf_ldd_prog" >&6
17455 echo "$as_me:17455: result: no" >&5
17456 echo "${ECHO_T}no" >&6
17459 test -n "$cf_ldd_prog" && break
17461 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
17463 cf_rpath_list="/usr/lib /lib"
17464 if test "$cf_ldd_prog" != no
17468 cat >conftest.$ac_ext <<_ACEOF
17469 #line 17469 "configure"
17470 #include "confdefs.h"
17480 rm -f conftest.$ac_objext conftest$ac_exeext
17481 if { (eval echo "$as_me:17481: \"$ac_link\"") >&5
17482 (eval $ac_link) 2>&5
17484 echo "$as_me:17484: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
17486 { ac_try='test -s conftest$ac_exeext'
17487 { (eval echo "$as_me:17487: \"$ac_try\"") >&5
17488 (eval $ac_try) 2>&5
17490 echo "$as_me:17490: \$? = $ac_status" >&5
17491 (exit $ac_status); }; }; then
17492 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
17493 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
17495 echo "$as_me: failed program was:" >&5
17496 cat conftest.$ac_ext >&5
17498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17500 # If we passed the link-test, but get a "not found" on a given library,
17501 # this could be due to inept reconfiguration of gcc to make it only
17502 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
17503 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
17504 # /usr/local libraries.
17505 if test -n "$cf_rpath_oops"
17507 for cf_rpath_src in $cf_rpath_oops
17509 for cf_rpath_dir in \
17514 if test -f $cf_rpath_dir/lib/$cf_rpath_src
17516 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
17518 echo "${as_me:-configure}:17518: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
17520 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
17528 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
17530 echo "${as_me:-configure}:17530: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
17532 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
17534 echo "${as_me:-configure}:17534: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
17537 for cf_rpath_src in $LDFLAGS
17539 case $cf_rpath_src in
17542 # check if this refers to a directory which we will ignore
17544 if test -n "$cf_rpath_list"
17546 for cf_rpath_item in $cf_rpath_list
17548 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
17556 if test "$cf_rpath_skip" = no
17558 # transform the option
17559 if test "$LD_RPATH_OPT" = "-R " ; then
17560 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
17562 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
17565 # if we have not already added this, add it now
17566 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
17567 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
17569 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
17571 echo "${as_me:-configure}:17571: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
17573 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
17578 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
17580 LDFLAGS=$cf_rpath_dst
17582 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
17584 echo "${as_me:-configure}:17584: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
17586 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
17588 echo "${as_me:-configure}:17588: testing ...checking LIBS $LIBS ..." 1>&5
17591 for cf_rpath_src in $LIBS
17593 case $cf_rpath_src in
17596 # check if this refers to a directory which we will ignore
17598 if test -n "$cf_rpath_list"
17600 for cf_rpath_item in $cf_rpath_list
17602 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
17610 if test "$cf_rpath_skip" = no
17612 # transform the option
17613 if test "$LD_RPATH_OPT" = "-R " ; then
17614 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
17616 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
17619 # if we have not already added this, add it now
17620 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
17621 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
17623 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
17625 echo "${as_me:-configure}:17625: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
17627 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
17632 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
17636 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
17638 echo "${as_me:-configure}:17638: testing ...checked LIBS $LIBS ..." 1>&5
17640 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
17642 echo "${as_me:-configure}:17642: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
17645 echo "$as_me:17645: result: no" >&5
17646 echo "${ECHO_T}no" >&6
17654 ac_config_files="$ac_config_files Makefile"
17655 ac_config_commands="$ac_config_commands default"
17656 cat >confcache <<\_ACEOF
17657 # This file is a shell script that caches the results of configure
17658 # tests run on this system so they can be shared between configure
17659 # scripts and configure runs, see configure's option --config-cache.
17660 # It is not useful on other systems. If it contains results you don't
17661 # want to keep, you may remove or edit it.
17663 # config.status only pays attention to the cache file if you give it
17664 # the --recheck option to rerun configure.
17666 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17667 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17668 # following values.
17672 # The following way of writing the cache mishandles newlines in values,
17673 # but we know of no workaround that is simple, portable, and efficient.
17674 # So, don't put newlines in cache variables' values.
17675 # Ultrix sh set writes to stderr and can't be redirected directly,
17676 # and sets the high bit in the cache file unless we assign to the vars.
17679 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17681 # `set' does not quote correctly, so add quotes (double-quote
17682 # substitution turns \\\\ into \\, and sed turns \\ into \).
17685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17688 # `set' quotes correctly as required by POSIX, so do not add quotes.
17690 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17697 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17699 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17701 if cmp -s $cache_file confcache; then :; else
17702 if test -w $cache_file; then
17703 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17704 cat confcache >$cache_file
17706 echo "not updating unwritable cache $cache_file"
17711 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17712 # Let make expand exec_prefix.
17713 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17715 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17716 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17717 # trailing colons and then remove the whole line if VPATH becomes empty
17718 # (actually we leave an empty line to preserve line numbers).
17719 if test "x$srcdir" = x.; then
17720 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17721 s/:*\$(srcdir):*/:/;
17722 s/:*\${srcdir}:*/:/;
17724 s/^\([^=]*=[ ]*\):*/\1/;
17730 DEFS=-DHAVE_CONFIG_H
17732 : ${CONFIG_STATUS=./config.status}
17733 ac_clean_files_save=$ac_clean_files
17734 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17735 { echo "$as_me:17735: creating $CONFIG_STATUS" >&5
17736 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17737 cat >$CONFIG_STATUS <<_ACEOF
17739 # Generated automatically by configure.
17740 # Run this file to recreate the current configuration.
17741 # Compiler output produced by configure, useful for debugging
17742 # configure, is in config.log if it exists.
17745 SHELL=\${CONFIG_SHELL-$SHELL}
17746 ac_cs_invocation="\$0 \$@"
17750 cat >>$CONFIG_STATUS <<\_ACEOF
17751 # Be Bourne compatible
17752 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17755 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17759 # Name of the executable.
17760 as_me=`echo "$0" |sed 's,.*[\\/],,'`
17762 if expr a : '\(a\)' >/dev/null 2>&1; then
17768 rm -f conf$$ conf$$.exe conf$$.file
17770 if ln -s conf$$.file conf$$ 2>/dev/null; then
17771 # We could just check for DJGPP; but this test a) works b) is more generic
17772 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17773 if test -f conf$$.exe; then
17774 # Don't use ln at all; we don't have any links
17779 elif ln conf$$.file conf$$ 2>/dev/null; then
17784 rm -f conf$$ conf$$.exe conf$$.file
17786 as_executable_p="test -f"
17788 # Support unset when possible.
17789 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17796 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
17797 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
17798 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
17799 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
17800 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
17801 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
17802 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
17803 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
17806 # We need space, tab and new line, in precisely that order.
17812 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
17818 # Files that config.status was made for.
17819 if test -n "$ac_config_files"; then
17820 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17823 if test -n "$ac_config_headers"; then
17824 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17827 if test -n "$ac_config_links"; then
17828 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17831 if test -n "$ac_config_commands"; then
17832 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17835 cat >>$CONFIG_STATUS <<\EOF
17838 \`$as_me' instantiates files from templates according to the
17839 current configuration.
17841 Usage: $0 [OPTIONS] [FILE]...
17843 -h, --help print this help, then exit
17844 -V, --version print version number, then exit
17845 -d, --debug don't remove temporary files
17846 --recheck update $as_me by reconfiguring in the same conditions
17847 --file=FILE[:TEMPLATE]
17848 instantiate the configuration file FILE
17849 --header=FILE[:TEMPLATE]
17850 instantiate the configuration header FILE
17852 Configuration files:
17855 Configuration headers:
17858 Configuration commands:
17861 Report bugs to <dickey@invisible-island.net>."
17864 cat >>$CONFIG_STATUS <<EOF
17867 configured by $0, generated by GNU Autoconf 2.52.20150926,
17868 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17870 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17871 Free Software Foundation, Inc.
17872 This config.status script is free software; the Free Software Foundation
17873 gives unlimited permission to copy, distribute and modify it."
17878 cat >>$CONFIG_STATUS <<\EOF
17879 # If no file are specified by the user, then we need to provide default
17880 # value. By we need to know if files were specified by the user.
17886 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17887 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17889 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17893 *) # This is not an option, so the user has probably given explicit
17895 ac_need_defaults=false;;
17899 # Handling of the options.
17901 cat >>$CONFIG_STATUS <<EOF
17902 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17903 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17904 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17906 cat >>$CONFIG_STATUS <<\EOF
17907 --version | --vers* | -V )
17908 echo "$ac_cs_version"; exit 0 ;;
17910 # Conflict between --help and --header
17911 { { echo "$as_me:17911: error: ambiguous option: $1
17912 Try \`$0 --help' for more information." >&5
17913 echo "$as_me: error: ambiguous option: $1
17914 Try \`$0 --help' for more information." >&2;}
17915 { (exit 1); exit 1; }; };;
17916 --help | --hel | -h )
17917 echo "$ac_cs_usage"; exit 0 ;;
17918 --debug | --d* | -d )
17920 --file | --fil | --fi | --f )
17922 CONFIG_FILES="$CONFIG_FILES $1"
17923 ac_need_defaults=false;;
17924 --header | --heade | --head | --hea )
17926 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17927 ac_need_defaults=false;;
17929 # This is an error.
17930 -*) { { echo "$as_me:17930: error: unrecognized option: $1
17931 Try \`$0 --help' for more information." >&5
17932 echo "$as_me: error: unrecognized option: $1
17933 Try \`$0 --help' for more information." >&2;}
17934 { (exit 1); exit 1; }; } ;;
17936 *) ac_config_targets="$ac_config_targets $1" ;;
17945 ## ----------------------- ##
17946 ## Running config.status. ##
17947 ## ----------------------- ##
17949 This file was extended by $as_me 2.52.20150926, executed with
17950 CONFIG_FILES = $CONFIG_FILES
17951 CONFIG_HEADERS = $CONFIG_HEADERS
17952 CONFIG_LINKS = $CONFIG_LINKS
17953 CONFIG_COMMANDS = $CONFIG_COMMANDS
17954 > $ac_cs_invocation
17955 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17960 cat >>$CONFIG_STATUS <<EOF
17962 # INIT-COMMANDS section.
17972 cat >>$CONFIG_STATUS <<\EOF
17973 for ac_config_target in $ac_config_targets
17975 case "$ac_config_target" in
17976 # Handling of arguments.
17977 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17978 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17979 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
17980 *) { { echo "$as_me:17980: error: invalid argument: $ac_config_target" >&5
17981 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17982 { (exit 1); exit 1; }; };;
17986 # If the user did not use the arguments to specify the items to instantiate,
17987 # then the envvar interface is used. Set only those that are not.
17988 # We use the long form for the default assignment because of an extremely
17989 # bizarre bug on SunOS 4.1.3.
17990 if $ac_need_defaults; then
17991 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17992 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17993 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17996 # Create a temporary directory, and hook for its removal unless debugging.
17999 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18000 trap '{ (exit 1); exit 1; }' 1 2 13 15
18003 # Create a (secure) tmp directory for tmp files.
18006 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18007 test -n "$tmp" && test -d "$tmp"
18010 tmp=$TMPDIR/cs$$-$RANDOM
18011 (umask 077 && mkdir $tmp)
18014 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18015 { (exit 1); exit 1; }
18020 cat >>$CONFIG_STATUS <<EOF
18023 # CONFIG_FILES section.
18026 # No need to generate the scripts if there are no CONFIG_FILES.
18027 # This happens for instance when ./config.status config.h
18028 if test -n "\$CONFIG_FILES"; then
18029 # Protect against being on the right side of a sed subst in config.status.
18030 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18031 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18032 s,@SHELL@,$SHELL,;t t
18033 s,@exec_prefix@,$exec_prefix,;t t
18034 s,@prefix@,$prefix,;t t
18035 s,@program_transform_name@,$program_transform_name,;t t
18036 s,@bindir@,$bindir,;t t
18037 s,@sbindir@,$sbindir,;t t
18038 s,@libexecdir@,$libexecdir,;t t
18039 s,@datarootdir@,$datarootdir,;t t
18040 s,@datadir@,$datadir,;t t
18041 s,@sysconfdir@,$sysconfdir,;t t
18042 s,@sharedstatedir@,$sharedstatedir,;t t
18043 s,@localstatedir@,$localstatedir,;t t
18044 s,@libdir@,$libdir,;t t
18045 s,@includedir@,$includedir,;t t
18046 s,@oldincludedir@,$oldincludedir,;t t
18047 s,@infodir@,$infodir,;t t
18048 s,@mandir@,$mandir,;t t
18049 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18050 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18051 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18052 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18053 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18054 s,@build_alias@,$build_alias,;t t
18055 s,@host_alias@,$host_alias,;t t
18056 s,@target_alias@,$target_alias,;t t
18057 s,@ECHO_C@,$ECHO_C,;t t
18058 s,@ECHO_N@,$ECHO_N,;t t
18059 s,@ECHO_T@,$ECHO_T,;t t
18060 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18061 s,@DEFS@,$DEFS,;t t
18062 s,@LIBS@,$LIBS,;t t
18063 s,@build@,$build,;t t
18064 s,@build_cpu@,$build_cpu,;t t
18065 s,@build_vendor@,$build_vendor,;t t
18066 s,@build_os@,$build_os,;t t
18067 s,@host@,$host,;t t
18068 s,@host_cpu@,$host_cpu,;t t
18069 s,@host_vendor@,$host_vendor,;t t
18070 s,@host_os@,$host_os,;t t
18071 s,@SET_MAKE@,$SET_MAKE,;t t
18073 s,@CFLAGS@,$CFLAGS,;t t
18074 s,@LDFLAGS@,$LDFLAGS,;t t
18075 s,@CPPFLAGS@,$CPPFLAGS,;t t
18076 s,@ac_ct_CC@,$ac_ct_CC,;t t
18077 s,@EXEEXT@,$EXEEXT,;t t
18078 s,@OBJEXT@,$OBJEXT,;t t
18079 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
18082 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18083 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18084 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18085 s,@LINT@,$LINT,;t t
18086 s,@LINT_OPTS@,$LINT_OPTS,;t t
18087 s,@CTAGS@,$CTAGS,;t t
18088 s,@ETAGS@,$ETAGS,;t t
18089 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
18090 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
18091 s,@MATH_LIB@,$MATH_LIB,;t t
18092 s,@top_builddir@,$top_builddir,;t t
18093 s,@CC_G_OPT@,$CC_G_OPT,;t t
18094 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
18095 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
18096 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
18097 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
18099 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
18100 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
18101 s,@LD_MODEL@,$LD_MODEL,;t t
18102 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
18103 s,@LIBTOOL@,$LIBTOOL,;t t
18104 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
18105 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
18106 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
18107 s,@LIB_LINK@,$LIB_LINK,;t t
18108 s,@LINK_TESTS@,$LINK_TESTS,;t t
18109 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18110 s,@PACKAGE@,$PACKAGE,;t t
18111 s,@PTHREAD@,$PTHREAD,;t t
18112 s,@TEST_ARGS@,$TEST_ARGS,;t t
18113 s,@TEST_DEPS@,$TEST_DEPS,;t t
18114 s,@TEST_LIBS@,$TEST_LIBS,;t t
18115 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
18116 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
18117 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
18118 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
18119 s,@includesubdir@,$includesubdir,;t t
18120 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18121 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
18122 s,@ECHO_LT@,$ECHO_LT,;t t
18123 s,@ECHO_LD@,$ECHO_LD,;t t
18124 s,@RULE_CC@,$RULE_CC,;t t
18125 s,@SHOW_CC@,$SHOW_CC,;t t
18126 s,@ECHO_CC@,$ECHO_CC,;t t
18127 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
18128 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
18129 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
18130 s,@X_CFLAGS@,$X_CFLAGS,;t t
18131 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18132 s,@X_LIBS@,$X_LIBS,;t t
18133 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18134 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
18135 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
18136 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
18137 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
18138 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
18143 cat >>$CONFIG_STATUS <<\EOF
18144 # Split the substitutions into bite-sized pieces for seds with
18145 # small command number limits, like on Digital OSF/1 and HP-UX.
18146 ac_max_sed_lines=48
18147 ac_sed_frag=1 # Number of current file.
18148 ac_beg=1 # First line for current file.
18149 ac_end=$ac_max_sed_lines # Line after last line for current file.
18152 while $ac_more_lines; do
18153 if test $ac_beg -gt 1; then
18154 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18156 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18158 if test ! -s $tmp/subs.frag; then
18159 ac_more_lines=false
18161 # The purpose of the label and of the branching condition is to
18162 # speed up the sed processing (if there are no `@' at all, there
18163 # is no need to browse any of the substitutions).
18164 # These are the two extra sed commands mentioned above.
18166 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18167 # It is possible to make a multiline substitution using escaped newlines.
18168 # Ensure that we do not split the substitution between script fragments.
18170 ac_END=`expr $ac_end + $ac_max_sed_lines`
18171 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
18172 if test -s $tmp/subs.next; then
18173 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
18174 if test ! -s $tmp/subs.edit; then
18175 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
18176 if test ! -s $tmp/subs.edit; then
18177 if test $ac_beg -gt 1; then
18178 ac_end=`expr $ac_end - 1`
18185 if test -z "$ac_sed_cmds"; then
18186 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18188 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18190 ac_sed_frag=`expr $ac_sed_frag + 1`
18192 ac_end=`expr $ac_end + $ac_max_sed_lines`
18195 if test -z "$ac_sed_cmds"; then
18198 fi # test -n "$CONFIG_FILES"
18201 cat >>$CONFIG_STATUS <<\EOF
18202 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18203 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18205 - | *:- | *:-:* ) # input from stdin
18207 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18208 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18209 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18210 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18211 * ) ac_file_in=$ac_file.in ;;
18214 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18215 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18216 X"$ac_file" : 'X\(//\)[^/]' \| \
18217 X"$ac_file" : 'X\(//\)$' \| \
18218 X"$ac_file" : 'X\(/\)' \| \
18219 . : '\(.\)' 2>/dev/null ||
18221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18223 /^X\(\/\/\)$/{ s//\1/; q; }
18224 /^X\(\/\).*/{ s//\1/; q; }
18226 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18227 { case "$ac_dir" in
18228 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18232 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18233 case $as_mkdir_dir in
18234 # Skip DOS drivespec
18235 ?:) as_incr_dir=$as_mkdir_dir ;;
18237 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18238 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18243 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
18244 # A "../" for each directory in $ac_dir_suffix.
18245 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
18247 ac_dir_suffix= ac_dots=
18252 if test -z "$ac_dots"; then
18255 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
18257 [\\/]* | ?:[\\/]* )
18258 ac_srcdir=$srcdir$ac_dir_suffix;
18259 ac_top_srcdir=$srcdir ;;
18260 *) # Relative path.
18261 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
18262 ac_top_srcdir=$ac_dots$srcdir ;;
18266 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18267 *) ac_INSTALL=$ac_dots$INSTALL ;;
18270 if test x"$ac_file" != x-; then
18271 { echo "$as_me:18271: creating $ac_file" >&5
18272 echo "$as_me: creating $ac_file" >&6;}
18275 # Let's still pretend it is `configure' which instantiates (i.e., don't
18276 # use $as_me), people would be surprised to read:
18277 # /* config.h. Generated automatically by config.status. */
18278 configure_input="Generated automatically from `echo $ac_file_in |
18279 sed 's,.*/,,'` by configure."
18281 # First look for the input files in the build tree, otherwise in the
18283 ac_file_inputs=`IFS=:
18284 for f in $ac_file_in; do
18286 -) echo $tmp/stdin ;;
18288 # Absolute (can't be DOS-style, as IFS=:)
18289 test -f "$f" || { { echo "$as_me:18289: error: cannot find input file: $f" >&5
18290 echo "$as_me: error: cannot find input file: $f" >&2;}
18291 { (exit 1); exit 1; }; }
18294 if test -f "$f"; then
18297 elif test -f "$srcdir/$f"; then
18302 { { echo "$as_me:18302: error: cannot find input file: $f" >&5
18303 echo "$as_me: error: cannot find input file: $f" >&2;}
18304 { (exit 1); exit 1; }; }
18307 done` || { (exit 1); exit 1; }
18309 cat >>$CONFIG_STATUS <<\EOF
18310 ac_warn_datarootdir=no
18311 if test x"$ac_file" != x-; then
18312 for ac_item in $ac_file_inputs
18314 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
18315 if test -n "$ac_seen"; then
18316 ac_used=`grep '@datarootdir@' $ac_item`
18317 if test -z "$ac_used"; then
18318 { echo "$as_me:18318: WARNING: datarootdir was used implicitly but not set:
18320 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
18322 ac_warn_datarootdir=yes
18325 ac_seen=`grep '${datarootdir}' $ac_item`
18326 if test -n "$ac_seen"; then
18327 { echo "$as_me:18327: WARNING: datarootdir was used explicitly but not set:
18329 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
18331 ac_warn_datarootdir=yes
18336 if test "x$ac_warn_datarootdir" = xyes; then
18337 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
18341 cat >>$CONFIG_STATUS <<EOF
18345 cat >>$CONFIG_STATUS <<\EOF
18347 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18348 s,@configure_input@,$configure_input,;t t
18349 s,@srcdir@,$ac_srcdir,;t t
18350 s,@top_srcdir@,$ac_top_srcdir,;t t
18351 s,@INSTALL@,$ac_INSTALL,;t t
18352 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18354 if test x"$ac_file" != x-; then
18355 cp $tmp/out $ac_file
18357 for ac_name in prefix exec_prefix datarootdir
18359 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
18360 if test -n "$ac_seen"; then
18361 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
18362 if test -z "$ac_init"; then
18363 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
18364 { echo "$as_me:18364: WARNING: Variable $ac_name is used but was not set:
18366 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
18371 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
18372 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
18373 if test -s $tmp/out; then
18374 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
18375 { echo "$as_me:18375: WARNING: Some variables may not be substituted:
18377 echo "$as_me: WARNING: Some variables may not be substituted:
18387 cat >>$CONFIG_STATUS <<\EOF
18390 # CONFIG_HEADER section.
18393 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18394 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18396 # ac_d sets the value in "#define NAME VALUE" lines.
18397 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18398 ac_dB='[ ].*$,\1#\2'
18401 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18402 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18403 ac_iB='\([ ]\),\1#\2define\3'
18406 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18407 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18408 ac_uB='$,\1#\2define\3'
18412 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18413 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18415 - | *:- | *:-:* ) # input from stdin
18417 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18418 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18419 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18420 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18421 * ) ac_file_in=$ac_file.in ;;
18424 test x"$ac_file" != x- && { echo "$as_me:18424: creating $ac_file" >&5
18425 echo "$as_me: creating $ac_file" >&6;}
18427 # First look for the input files in the build tree, otherwise in the
18429 ac_file_inputs=`IFS=:
18430 for f in $ac_file_in; do
18432 -) echo $tmp/stdin ;;
18434 # Absolute (can't be DOS-style, as IFS=:)
18435 test -f "$f" || { { echo "$as_me:18435: error: cannot find input file: $f" >&5
18436 echo "$as_me: error: cannot find input file: $f" >&2;}
18437 { (exit 1); exit 1; }; }
18440 if test -f "$f"; then
18443 elif test -f "$srcdir/$f"; then
18448 { { echo "$as_me:18448: error: cannot find input file: $f" >&5
18449 echo "$as_me: error: cannot find input file: $f" >&2;}
18450 { (exit 1); exit 1; }; }
18453 done` || { (exit 1); exit 1; }
18454 # Remove the trailing spaces.
18455 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18459 # Transform confdefs.h into a list of #define's. We won't use it as a sed
18460 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
18461 # be either 'cat' or 'sort'.
18462 cat confdefs.h | uniq >conftest.vals
18464 # Break up conftest.vals because some shells have a limit on
18465 # the size of here documents, and old seds have small limits too.
18467 rm -f conftest.tail
18468 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
18469 while grep . conftest.vals >/dev/null
18471 # Write chunks of a limited-size here document to conftest.frag.
18472 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
18473 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
18474 echo 'CEOF' >> $CONFIG_STATUS
18475 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18476 rm -f conftest.vals
18477 mv conftest.tail conftest.vals
18479 rm -f conftest.vals
18481 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
18483 echo ' cat >> conftest.edit <<CEOF
18484 /@DEFS@/r conftest.frag
18487 sed -f conftest.edit $tmp/in > $tmp/out
18489 mv $tmp/out $tmp/in
18490 rm -f conftest.edit conftest.frag
18491 ' >> $CONFIG_STATUS
18493 cat >>$CONFIG_STATUS <<\EOF
18494 # Let's still pretend it is `configure' which instantiates (i.e., don't
18495 # use $as_me), people would be surprised to read:
18496 # /* config.h. Generated automatically by config.status. */
18497 if test x"$ac_file" = x-; then
18498 echo "/* Generated automatically by configure. */" >$tmp/config.h
18500 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
18502 cat $tmp/in >>$tmp/config.h
18504 if test x"$ac_file" != x-; then
18505 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18506 { echo "$as_me:18506: $ac_file is unchanged" >&5
18507 echo "$as_me: $ac_file is unchanged" >&6;}
18509 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18510 X"$ac_file" : 'X\(//\)[^/]' \| \
18511 X"$ac_file" : 'X\(//\)$' \| \
18512 X"$ac_file" : 'X\(/\)' \| \
18513 . : '\(.\)' 2>/dev/null ||
18515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18517 /^X\(\/\/\)$/{ s//\1/; q; }
18518 /^X\(\/\).*/{ s//\1/; q; }
18520 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18521 { case "$ac_dir" in
18522 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18526 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18527 case $as_mkdir_dir in
18528 # Skip DOS drivespec
18529 ?:) as_incr_dir=$as_mkdir_dir ;;
18531 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18532 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18539 mv $tmp/config.h $ac_file
18543 rm -f $tmp/config.h
18547 cat >>$CONFIG_STATUS <<\EOF
18549 # CONFIG_COMMANDS section.
18551 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18552 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18553 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18560 if test ! -d $srcdir/$cf_dir; then
18562 elif test -f $srcdir/$cf_dir/programs; then
18563 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
18567 cat >>Makefile <<TEST_EOF
18569 # These rules are generated so we do not rely on suffix rules, which do not
18570 # work consistently for different make-programs (the '\$(MODEL)/' confuses
18571 # some, and the '\$x' confuses others).
18574 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
18577 cat >>Makefile <<TEST_EOF
18579 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
18580 \$(srcdir)/test.priv.h \\
18583 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) \$(srcdir)/$N.c
18587 if test -f ../config.guess && test -f ../config.sub
18589 cat >>Makefile <<TEST_EOF
18591 # if we used CF_INHERIT for getting these files, we can remove them
18593 rm -f config.guess config.sub
18601 cat >>$CONFIG_STATUS <<\EOF
18603 { (exit 0); exit 0; }
18605 chmod +x $CONFIG_STATUS
18606 ac_clean_files=$ac_clean_files_save
18608 # configure is writing to config.log, and then calls config.status.
18609 # config.status does its own redirection, appending to config.log.
18610 # Unfortunately, on DOS this fails, as config.log is still kept open
18611 # by configure, so config.status won't be able to write to it; its
18612 # output is simply discarded. So we exec the FD to /dev/null,
18613 # effectively closing config.log, so it can be properly (re)opened and
18614 # appended to by config.status. When coming back to configure, we
18615 # need to make the FD available again.
18616 if test "$no_create" != yes; then
18619 $SHELL $CONFIG_STATUS || ac_cs_success=false
18621 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18622 # would make configure fail if this is the last instruction.
18623 $ac_cs_success || { (exit 1); exit 1; }