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 definition to turn on extended curses functions" >&5
13914 echo $ECHO_N "checking definition to turn on extended curses functions... $ECHO_C" >&6
13915 if test "${cf_cv_need_xopen_extension+set}" = set; then
13916 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 cf_cv_need_xopen_extension=unknown
13920 cat >conftest.$ac_ext <<_ACEOF
13921 #line 13921 "configure"
13922 #include "confdefs.h"
13924 #include <stdlib.h>
13925 #include <${cf_cv_ncurses_header:-curses.h}>
13930 #if defined(NCURSES_VERSION_PATCH)
13931 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
13935 #ifdef NCURSES_VERSION
13937 int check2 = curs_set((int)sizeof(check));
13939 long x = winnstr(stdscr, "", 0);
13941 getbegyx(stdscr, y1, x1)
13946 rm -f conftest.$ac_objext conftest$ac_exeext
13947 if { (eval echo "$as_me:13947: \"$ac_link\"") >&5
13948 (eval $ac_link) 2>&5
13950 echo "$as_me:13950: \$? = $ac_status" >&5
13951 (exit $ac_status); } &&
13952 { ac_try='test -s conftest$ac_exeext'
13953 { (eval echo "$as_me:13953: \"$ac_try\"") >&5
13954 (eval $ac_try) 2>&5
13956 echo "$as_me:13956: \$? = $ac_status" >&5
13957 (exit $ac_status); }; }; then
13958 cf_cv_need_xopen_extension=none
13960 echo "$as_me: failed program was:" >&5
13961 cat conftest.$ac_ext >&5
13963 for cf_try_xopen_extension in _XOPEN_SOURCE_EXTENDED NCURSES_WIDECHAR
13965 cat >conftest.$ac_ext <<_ACEOF
13966 #line 13966 "configure"
13967 #include "confdefs.h"
13969 #define $cf_try_xopen_extension 1
13970 #include <stdlib.h>
13971 #include <${cf_cv_ncurses_header:-curses.h}>
13976 #ifdef NCURSES_VERSION
13978 int check2 = curs_set((int)sizeof(check));
13980 long x = winnstr(stdscr, "", 0);
13982 getbegyx(stdscr, y1, x1)
13987 rm -f conftest.$ac_objext conftest$ac_exeext
13988 if { (eval echo "$as_me:13988: \"$ac_link\"") >&5
13989 (eval $ac_link) 2>&5
13991 echo "$as_me:13991: \$? = $ac_status" >&5
13992 (exit $ac_status); } &&
13993 { ac_try='test -s conftest$ac_exeext'
13994 { (eval echo "$as_me:13994: \"$ac_try\"") >&5
13995 (eval $ac_try) 2>&5
13997 echo "$as_me:13997: \$? = $ac_status" >&5
13998 (exit $ac_status); }; }; then
13999 cf_cv_need_xopen_extension=$cf_try_xopen_extension; break
14001 echo "$as_me: failed program was:" >&5
14002 cat conftest.$ac_ext >&5
14004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14011 echo "$as_me:14011: result: $cf_cv_need_xopen_extension" >&5
14012 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
14014 case $cf_cv_need_xopen_extension in
14016 CPPFLAGS="$CPPFLAGS -D$cf_cv_need_xopen_extension"
14020 echo "$as_me:14020: checking for term.h" >&5
14021 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
14022 if test "${cf_cv_term_header+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
14027 # for <term.h> if we do not find the variant.
14029 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
14031 case ${cf_cv_ncurses_header:-curses.h} in
14033 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
14034 cf_header_list="$cf_header_item $cf_header_list"
14038 for cf_header in $cf_header_list
14040 cat >conftest.$ac_ext <<_ACEOF
14041 #line 14041 "configure"
14042 #include "confdefs.h"
14044 #include <${cf_cv_ncurses_header:-curses.h}>
14045 #include <${cf_header}>
14054 rm -f conftest.$ac_objext
14055 if { (eval echo "$as_me:14055: \"$ac_compile\"") >&5
14056 (eval $ac_compile) 2>&5
14058 echo "$as_me:14058: \$? = $ac_status" >&5
14059 (exit $ac_status); } &&
14060 { ac_try='test -s conftest.$ac_objext'
14061 { (eval echo "$as_me:14061: \"$ac_try\"") >&5
14062 (eval $ac_try) 2>&5
14064 echo "$as_me:14064: \$? = $ac_status" >&5
14065 (exit $ac_status); }; }; then
14066 cf_cv_term_header=$cf_header
14069 echo "$as_me: failed program was:" >&5
14070 cat conftest.$ac_ext >&5
14071 cf_cv_term_header=no
14073 rm -f conftest.$ac_objext conftest.$ac_ext
14076 case $cf_cv_term_header in
14078 # If curses is ncurses, some packagers still mess it up by trying to make
14079 # us use GNU termcap. This handles the most common case.
14080 for cf_header in ncurses/term.h ncursesw/term.h
14082 cat >conftest.$ac_ext <<_ACEOF
14083 #line 14083 "configure"
14084 #include "confdefs.h"
14086 #include <${cf_cv_ncurses_header:-curses.h}>
14087 #ifdef NCURSES_VERSION
14088 #include <${cf_header}>
14100 rm -f conftest.$ac_objext
14101 if { (eval echo "$as_me:14101: \"$ac_compile\"") >&5
14102 (eval $ac_compile) 2>&5
14104 echo "$as_me:14104: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -s conftest.$ac_objext'
14107 { (eval echo "$as_me:14107: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14110 echo "$as_me:14110: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14112 cf_cv_term_header=$cf_header
14115 echo "$as_me: failed program was:" >&5
14116 cat conftest.$ac_ext >&5
14117 cf_cv_term_header=no
14119 rm -f conftest.$ac_objext conftest.$ac_ext
14125 echo "$as_me:14125: result: $cf_cv_term_header" >&5
14126 echo "${ECHO_T}$cf_cv_term_header" >&6
14128 case $cf_cv_term_header in
14131 cat >>confdefs.h <<\EOF
14132 #define HAVE_TERM_H 1
14138 cat >>confdefs.h <<\EOF
14139 #define HAVE_NCURSES_TERM_H 1
14145 cat >>confdefs.h <<\EOF
14146 #define HAVE_NCURSESW_TERM_H 1
14152 echo "$as_me:14152: checking for unctrl.h" >&5
14153 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
14154 if test "${cf_cv_unctrl_header+set}" = set; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14158 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
14159 # for <unctrl.h> if we do not find the variant.
14161 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
14163 case ${cf_cv_ncurses_header:-curses.h} in
14165 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
14166 cf_header_list="$cf_header_item $cf_header_list"
14170 for cf_header in $cf_header_list
14172 cat >conftest.$ac_ext <<_ACEOF
14173 #line 14173 "configure"
14174 #include "confdefs.h"
14176 #include <${cf_cv_ncurses_header:-curses.h}>
14177 #include <${cf_header}>
14186 rm -f conftest.$ac_objext
14187 if { (eval echo "$as_me:14187: \"$ac_compile\"") >&5
14188 (eval $ac_compile) 2>&5
14190 echo "$as_me:14190: \$? = $ac_status" >&5
14191 (exit $ac_status); } &&
14192 { ac_try='test -s conftest.$ac_objext'
14193 { (eval echo "$as_me:14193: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14196 echo "$as_me:14196: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }; then
14198 cf_cv_unctrl_header=$cf_header
14201 echo "$as_me: failed program was:" >&5
14202 cat conftest.$ac_ext >&5
14203 cf_cv_unctrl_header=no
14205 rm -f conftest.$ac_objext conftest.$ac_ext
14209 echo "$as_me:14209: result: $cf_cv_unctrl_header" >&5
14210 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
14212 case $cf_cv_unctrl_header in
14214 { echo "$as_me:14214: WARNING: unctrl.h header not found" >&5
14215 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
14219 case $cf_cv_unctrl_header in
14222 cat >>confdefs.h <<\EOF
14223 #define HAVE_UNCTRL_H 1
14229 cat >>confdefs.h <<\EOF
14230 #define HAVE_NCURSES_UNCTRL_H 1
14234 (ncursesw/unctrl.h)
14236 cat >>confdefs.h <<\EOF
14237 #define HAVE_NCURSESW_UNCTRL_H 1
14244 assume_default_colors \
14270 use_default_colors \
14272 use_extended_names \
14286 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14288 echo "$as_me:14288: checking for ${cf_func}" >&5
14289 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
14291 echo "${as_me:-configure}:14291: testing ${cf_func} ..." 1>&5
14293 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14297 eval cf_result='$ac_cv_func_'$cf_func
14298 if test ".$cf_result" != ".no"; then
14299 cat >conftest.$ac_ext <<_ACEOF
14300 #line 14300 "configure"
14301 #include "confdefs.h"
14303 #ifdef HAVE_XCURSES
14304 #include <xcurses.h>
14305 char * XCursesProgramName = "test";
14307 #include <${cf_cv_ncurses_header:-curses.h}>
14308 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14309 #include <ncursesw/term.h>
14310 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14311 #include <ncurses/term.h>
14312 #elif defined(HAVE_TERM_H)
14322 long foo = (long)(&${cf_func});
14323 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
14324 if (foo + 1234 > 5678)
14325 ${cf_cv_main_return:-return}(foo);
14332 rm -f conftest.$ac_objext conftest$ac_exeext
14333 if { (eval echo "$as_me:14333: \"$ac_link\"") >&5
14334 (eval $ac_link) 2>&5
14336 echo "$as_me:14336: \$? = $ac_status" >&5
14337 (exit $ac_status); } &&
14338 { ac_try='test -s conftest$ac_exeext'
14339 { (eval echo "$as_me:14339: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14342 echo "$as_me:14342: \$? = $ac_status" >&5
14343 (exit $ac_status); }; }; then
14346 echo "$as_me: failed program was:" >&5
14347 cat conftest.$ac_ext >&5
14350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14352 eval 'cf_cv_func_'$cf_func'=$cf_result'
14356 # use the computed/retrieved cache-value:
14357 eval 'cf_result=$cf_cv_func_'$cf_func
14358 echo "$as_me:14358: result: $cf_result" >&5
14359 echo "${ECHO_T}$cf_result" >&6
14360 if test $cf_result != no; then
14361 cat >>confdefs.h <<EOF
14362 #define HAVE_${cf_tr_func} 1
14368 for cf_func in tputs
14371 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14373 echo "$as_me:14373: checking for ${cf_func}" >&5
14374 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
14376 echo "${as_me:-configure}:14376: testing ${cf_func} ..." 1>&5
14378 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14382 eval cf_result='$ac_cv_func_'$cf_func
14383 if test ".$cf_result" != ".no"; then
14384 cat >conftest.$ac_ext <<_ACEOF
14385 #line 14385 "configure"
14386 #include "confdefs.h"
14388 #ifdef HAVE_XCURSES
14389 #include <xcurses.h>
14390 char * XCursesProgramName = "test";
14392 #include <${cf_cv_ncurses_header:-curses.h}>
14393 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14394 #include <ncursesw/term.h>
14395 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14396 #include <ncurses/term.h>
14397 #elif defined(HAVE_TERM_H)
14407 long foo = (long)(&${cf_func});
14408 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
14409 if (foo + 1234 > 5678)
14410 ${cf_cv_main_return:-return}(foo);
14417 rm -f conftest.$ac_objext conftest$ac_exeext
14418 if { (eval echo "$as_me:14418: \"$ac_link\"") >&5
14419 (eval $ac_link) 2>&5
14421 echo "$as_me:14421: \$? = $ac_status" >&5
14422 (exit $ac_status); } &&
14423 { ac_try='test -s conftest$ac_exeext'
14424 { (eval echo "$as_me:14424: \"$ac_try\"") >&5
14425 (eval $ac_try) 2>&5
14427 echo "$as_me:14427: \$? = $ac_status" >&5
14428 (exit $ac_status); }; }; then
14431 echo "$as_me: failed program was:" >&5
14432 cat conftest.$ac_ext >&5
14435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14437 eval 'cf_cv_func_'$cf_func'=$cf_result'
14441 # use the computed/retrieved cache-value:
14442 eval 'cf_result=$cf_cv_func_'$cf_func
14443 echo "$as_me:14443: result: $cf_result" >&5
14444 echo "${ECHO_T}$cf_result" >&6
14445 if test $cf_result != no; then
14446 cat >>confdefs.h <<EOF
14447 #define HAVE_${cf_tr_func} 1
14453 if test x$cf_cv_func_tputs = xyes
14456 for cf_arg in int char
14458 for cf_ret in int void
14460 if test $cf_ret = void
14462 cf_return="/* nothing */"
14464 cf_return="return value"
14466 cat >conftest.$ac_ext <<_ACEOF
14467 #line 14467 "configure"
14468 #include "confdefs.h"
14470 #include <${cf_cv_ncurses_header:-curses.h}>
14471 #include <$cf_cv_term_header>
14473 static $cf_ret outc($cf_arg value) { $cf_return; }
14479 tputs("hello", 0, outc);
14480 ${cf_cv_main_return:-return}(0);
14486 rm -f conftest.$ac_objext
14487 if { (eval echo "$as_me:14487: \"$ac_compile\"") >&5
14488 (eval $ac_compile) 2>&5
14490 echo "$as_me:14490: \$? = $ac_status" >&5
14491 (exit $ac_status); } &&
14492 { ac_try='test -s conftest.$ac_objext'
14493 { (eval echo "$as_me:14493: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14496 echo "$as_me:14496: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14499 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
14501 echo "${as_me:-configure}:14501: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
14503 cat >>confdefs.h <<EOF
14504 #define TPUTS_ARG $cf_arg
14505 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
14506 #define TPUTS_RETURN(value) $cf_return
14512 echo "$as_me: failed program was:" >&5
14513 cat conftest.$ac_ext >&5
14515 rm -f conftest.$ac_objext conftest.$ac_ext
14517 test $cf_done = yes && break
14521 echo "$as_me:14521: checking for ncurses extended functions" >&5
14522 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
14523 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14527 cat >conftest.$ac_ext <<_ACEOF
14528 #line 14528 "configure"
14529 #include "confdefs.h"
14531 #include <${cf_cv_ncurses_header:-curses.h}>
14536 int x = NCURSES_EXT_FUNCS
14542 rm -f conftest.$ac_objext
14543 if { (eval echo "$as_me:14543: \"$ac_compile\"") >&5
14544 (eval $ac_compile) 2>&5
14546 echo "$as_me:14546: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
14548 { ac_try='test -s conftest.$ac_objext'
14549 { (eval echo "$as_me:14549: \"$ac_try\"") >&5
14550 (eval $ac_try) 2>&5
14552 echo "$as_me:14552: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14554 cf_cv_ncurses_ext_funcs=defined
14556 echo "$as_me: failed program was:" >&5
14557 cat conftest.$ac_ext >&5
14559 cat >conftest.$ac_ext <<_ACEOF
14560 #line 14560 "configure"
14561 #include "confdefs.h"
14563 #include <${cf_cv_ncurses_header:-curses.h}>
14568 (void) assume_default_colors (0, 0);
14569 (void) curses_version ();
14570 (void) define_key (0, 0);
14571 (void) is_term_resized (0, 0);
14572 (void) key_defined (0);
14573 (void) keybound (0, 0);
14574 (void) keyok (0, 0);
14575 (void) resize_term (0, 0);
14576 (void) resizeterm (0, 0);
14577 (void) use_default_colors ();
14578 (void) use_extended_names (0);
14579 (void) wresize (0, 0, 0);
14584 rm -f conftest.$ac_objext conftest$ac_exeext
14585 if { (eval echo "$as_me:14585: \"$ac_link\"") >&5
14586 (eval $ac_link) 2>&5
14588 echo "$as_me:14588: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
14590 { ac_try='test -s conftest$ac_exeext'
14591 { (eval echo "$as_me:14591: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14594 echo "$as_me:14594: \$? = $ac_status" >&5
14595 (exit $ac_status); }; }; then
14596 cf_cv_ncurses_ext_funcs=yes
14598 echo "$as_me: failed program was:" >&5
14599 cat conftest.$ac_ext >&5
14600 cf_cv_ncurses_ext_funcs=no
14602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14605 rm -f conftest.$ac_objext conftest.$ac_ext
14608 echo "$as_me:14608: result: $cf_cv_ncurses_ext_funcs" >&5
14609 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
14610 test "$cf_cv_ncurses_ext_funcs" = yes &&
14611 cat >>confdefs.h <<\EOF
14612 #define NCURSES_EXT_FUNCS 1
14615 if test "$cf_enable_widec" = yes
14617 # workaround for systems with ncurses before 20111029, due to change of
14618 # feature test macro from _XPG5 to _XOPEN_SOURCE
14619 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
14622 echo "$as_me:14622: checking if _XPG5 should be defined to enable wide-characters" >&5
14623 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
14625 cat >conftest.$ac_ext <<_ACEOF
14626 #line 14626 "configure"
14627 #include "confdefs.h"
14629 #include <${cf_cv_ncurses_header:-curses.h}>
14638 rm -f conftest.$ac_objext
14639 if { (eval echo "$as_me:14639: \"$ac_compile\"") >&5
14640 (eval $ac_compile) 2>&5
14642 echo "$as_me:14642: \$? = $ac_status" >&5
14643 (exit $ac_status); } &&
14644 { ac_try='test -s conftest.$ac_objext'
14645 { (eval echo "$as_me:14645: \"$ac_try\"") >&5
14646 (eval $ac_try) 2>&5
14648 echo "$as_me:14648: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
14652 echo "$as_me: failed program was:" >&5
14653 cat conftest.$ac_ext >&5
14654 cf_save_cppflags="$CPPFLAGS"
14655 CPPFLAGS="$CPPFLAGS -D_XPG5"
14656 cat >conftest.$ac_ext <<_ACEOF
14657 #line 14657 "configure"
14658 #include "confdefs.h"
14660 #include <${cf_cv_ncurses_header:-curses.h}>
14669 rm -f conftest.$ac_objext
14670 if { (eval echo "$as_me:14670: \"$ac_compile\"") >&5
14671 (eval $ac_compile) 2>&5
14673 echo "$as_me:14673: \$? = $ac_status" >&5
14674 (exit $ac_status); } &&
14675 { ac_try='test -s conftest.$ac_objext'
14676 { (eval echo "$as_me:14676: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14679 echo "$as_me:14679: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
14683 echo "$as_me: failed program was:" >&5
14684 cat conftest.$ac_ext >&5
14686 rm -f conftest.$ac_objext conftest.$ac_ext
14687 CPPFLAGS="$cf_save_cppflags"
14689 rm -f conftest.$ac_objext conftest.$ac_ext
14690 echo "$as_me:14690: result: $cf_define_xpg5" >&5
14691 echo "${ECHO_T}$cf_define_xpg5" >&6
14693 if test "$cf_define_xpg5" = yes
14695 CPPFLAGS="$CPPFLAGS -D_XPG5"
14699 echo "$as_me:14699: checking for wide-character functions" >&5
14700 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
14701 if test "${cf_cv_widechar_funcs+set}" = set; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 cat >conftest.$ac_ext <<_ACEOF
14706 #line 14706 "configure"
14707 #include "confdefs.h"
14709 #include <${cf_cv_ncurses_header:-curses.h}>
14714 static wchar_t src_wchar[2];
14715 static cchar_t dst_cchar;
14716 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
14722 rm -f conftest.$ac_objext conftest$ac_exeext
14723 if { (eval echo "$as_me:14723: \"$ac_link\"") >&5
14724 (eval $ac_link) 2>&5
14726 echo "$as_me:14726: \$? = $ac_status" >&5
14727 (exit $ac_status); } &&
14728 { ac_try='test -s conftest$ac_exeext'
14729 { (eval echo "$as_me:14729: \"$ac_try\"") >&5
14730 (eval $ac_try) 2>&5
14732 echo "$as_me:14732: \$? = $ac_status" >&5
14733 (exit $ac_status); }; }; then
14734 cf_cv_widechar_funcs=yes
14736 echo "$as_me: failed program was:" >&5
14737 cat conftest.$ac_ext >&5
14738 cf_cv_widechar_funcs=no
14740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14743 echo "$as_me:14743: result: $cf_cv_widechar_funcs" >&5
14744 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
14745 if test "$cf_cv_widechar_funcs" != no ; then
14747 cat >>confdefs.h <<\EOF
14748 #define USE_WIDEC_SUPPORT 1
14752 cat >>confdefs.h <<\EOF
14753 #define USE_WIDEC_SUPPORT 0
14758 cat >>confdefs.h <<\EOF
14759 #define USE_WIDEC_SUPPORT 0
14764 echo "$as_me:14764: checking if $cf_cv_screen library uses pthreads" >&5
14765 echo $ECHO_N "checking if $cf_cv_screen library uses pthreads... $ECHO_C" >&6
14766 if test "${cf_cv_use_pthreads+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14770 cat >conftest.$ac_ext <<_ACEOF
14771 #line 14771 "configure"
14772 #include "confdefs.h"
14774 #include <${cf_cv_ncurses_header:-curses.h}>
14775 extern void _nc_init_pthreads(void);
14782 _nc_init_pthreads();
14788 rm -f conftest.$ac_objext conftest$ac_exeext
14789 if { (eval echo "$as_me:14789: \"$ac_link\"") >&5
14790 (eval $ac_link) 2>&5
14792 echo "$as_me:14792: \$? = $ac_status" >&5
14793 (exit $ac_status); } &&
14794 { ac_try='test -s conftest$ac_exeext'
14795 { (eval echo "$as_me:14795: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14798 echo "$as_me:14798: \$? = $ac_status" >&5
14799 (exit $ac_status); }; }; then
14800 cf_cv_use_pthreads=yes
14802 echo "$as_me: failed program was:" >&5
14803 cat conftest.$ac_ext >&5
14804 cf_cv_use_pthreads=no
14806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14809 echo "$as_me:14809: result: $cf_cv_use_pthreads" >&5
14810 echo "${ECHO_T}$cf_cv_use_pthreads" >&6
14811 test $cf_cv_use_pthreads = yes && cat >>confdefs.h <<\EOF
14812 #define USE_PTHREADS 1
14815 echo "$as_me:14815: checking if sys/time.h works with sys/select.h" >&5
14816 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
14817 if test "${cf_cv_sys_time_select+set}" = set; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14821 cat >conftest.$ac_ext <<_ACEOF
14822 #line 14822 "configure"
14823 #include "confdefs.h"
14825 #include <sys/types.h>
14826 #ifdef HAVE_SYS_TIME_H
14827 #include <sys/time.h>
14829 #ifdef HAVE_SYS_SELECT_H
14830 #include <sys/select.h>
14841 rm -f conftest.$ac_objext
14842 if { (eval echo "$as_me:14842: \"$ac_compile\"") >&5
14843 (eval $ac_compile) 2>&5
14845 echo "$as_me:14845: \$? = $ac_status" >&5
14846 (exit $ac_status); } &&
14847 { ac_try='test -s conftest.$ac_objext'
14848 { (eval echo "$as_me:14848: \"$ac_try\"") >&5
14849 (eval $ac_try) 2>&5
14851 echo "$as_me:14851: \$? = $ac_status" >&5
14852 (exit $ac_status); }; }; then
14853 cf_cv_sys_time_select=yes
14855 echo "$as_me: failed program was:" >&5
14856 cat conftest.$ac_ext >&5
14857 cf_cv_sys_time_select=no
14859 rm -f conftest.$ac_objext conftest.$ac_ext
14863 echo "$as_me:14863: result: $cf_cv_sys_time_select" >&5
14864 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
14865 test "$cf_cv_sys_time_select" = yes &&
14866 cat >>confdefs.h <<\EOF
14867 #define HAVE_SYS_TIME_SELECT 1
14870 # special check for test/ditto.c
14872 echo "$as_me:14872: checking for openpty in -lutil" >&5
14873 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
14874 if test "${ac_cv_lib_util_openpty+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14877 ac_check_lib_save_LIBS=$LIBS
14878 LIBS="-lutil $LIBS"
14879 cat >conftest.$ac_ext <<_ACEOF
14880 #line 14880 "configure"
14881 #include "confdefs.h"
14883 /* Override any gcc2 internal prototype to avoid an error. */
14887 /* We use char because int might match the return type of a gcc2
14888 builtin and then its argument prototype would still apply. */
14898 rm -f conftest.$ac_objext conftest$ac_exeext
14899 if { (eval echo "$as_me:14899: \"$ac_link\"") >&5
14900 (eval $ac_link) 2>&5
14902 echo "$as_me:14902: \$? = $ac_status" >&5
14903 (exit $ac_status); } &&
14904 { ac_try='test -s conftest$ac_exeext'
14905 { (eval echo "$as_me:14905: \"$ac_try\"") >&5
14906 (eval $ac_try) 2>&5
14908 echo "$as_me:14908: \$? = $ac_status" >&5
14909 (exit $ac_status); }; }; then
14910 ac_cv_lib_util_openpty=yes
14912 echo "$as_me: failed program was:" >&5
14913 cat conftest.$ac_ext >&5
14914 ac_cv_lib_util_openpty=no
14916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14917 LIBS=$ac_check_lib_save_LIBS
14919 echo "$as_me:14919: result: $ac_cv_lib_util_openpty" >&5
14920 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
14921 if test $ac_cv_lib_util_openpty = yes; then
14927 echo "$as_me:14927: checking for openpty header" >&5
14928 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
14929 if test "${cf_cv_func_openpty+set}" = set; then
14930 echo $ECHO_N "(cached) $ECHO_C" >&6
14933 cf_save_LIBS="$LIBS"
14934 test $cf_cv_lib_util = yes && {
14935 cf_add_libs="-lutil"
14936 # Filter out duplicates - this happens with badly-designed ".pc" files...
14937 for cf_add_1lib in $LIBS
14939 for cf_add_2lib in $cf_add_libs
14941 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14947 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14949 LIBS="$cf_add_libs"
14951 for cf_header in pty.h libutil.h util.h
14953 cat >conftest.$ac_ext <<_ACEOF
14954 #line 14954 "configure"
14955 #include "confdefs.h"
14957 #include <$cf_header>
14963 int x = openpty((int *)0, (int *)0, (char *)0,
14964 (struct termios *)0, (struct winsize *)0);
14970 rm -f conftest.$ac_objext conftest$ac_exeext
14971 if { (eval echo "$as_me:14971: \"$ac_link\"") >&5
14972 (eval $ac_link) 2>&5
14974 echo "$as_me:14974: \$? = $ac_status" >&5
14975 (exit $ac_status); } &&
14976 { ac_try='test -s conftest$ac_exeext'
14977 { (eval echo "$as_me:14977: \"$ac_try\"") >&5
14978 (eval $ac_try) 2>&5
14980 echo "$as_me:14980: \$? = $ac_status" >&5
14981 (exit $ac_status); }; }; then
14983 cf_cv_func_openpty=$cf_header
14987 echo "$as_me: failed program was:" >&5
14988 cat conftest.$ac_ext >&5
14990 cf_cv_func_openpty=no
14993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14995 LIBS="$cf_save_LIBS"
14998 echo "$as_me:14998: result: $cf_cv_func_openpty" >&5
14999 echo "${ECHO_T}$cf_cv_func_openpty" >&6
15001 if test "$cf_cv_func_openpty" != no ; then
15003 cat >>confdefs.h <<EOF
15004 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
15007 cat >>confdefs.h <<\EOF
15008 #define USE_XTERM_PTY 1
15011 if test "x$cf_cv_lib_util" = xyes ; then
15013 cf_add_libs="-lutil"
15014 # Filter out duplicates - this happens with badly-designed ".pc" files...
15015 for cf_add_1lib in $TEST_LIBS
15017 for cf_add_2lib in $cf_add_libs
15019 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15025 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15027 TEST_LIBS="$cf_add_libs"
15032 echo "$as_me:15032: checking for function curses_version" >&5
15033 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
15034 if test "${cf_cv_func_curses_version+set}" = set; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 if test "$cross_compiling" = yes; then
15039 cf_cv_func_curses_version=unknown
15041 cat >conftest.$ac_ext <<_ACEOF
15042 #line 15042 "configure"
15043 #include "confdefs.h"
15045 #include <${cf_cv_ncurses_header:-curses.h}>
15049 sprintf(temp, "%s\n", curses_version());
15050 ${cf_cv_main_return:-return}(0);
15054 rm -f conftest$ac_exeext
15055 if { (eval echo "$as_me:15055: \"$ac_link\"") >&5
15056 (eval $ac_link) 2>&5
15058 echo "$as_me:15058: \$? = $ac_status" >&5
15059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15060 { (eval echo "$as_me:15060: \"$ac_try\"") >&5
15061 (eval $ac_try) 2>&5
15063 echo "$as_me:15063: \$? = $ac_status" >&5
15064 (exit $ac_status); }; }; then
15065 cf_cv_func_curses_version=yes
15068 echo "$as_me: program exited with status $ac_status" >&5
15069 echo "$as_me: failed program was:" >&5
15070 cat conftest.$ac_ext >&5
15071 cf_cv_func_curses_version=no
15074 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15078 echo "$as_me:15078: result: $cf_cv_func_curses_version" >&5
15079 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
15080 test "$cf_cv_func_curses_version" = yes &&
15081 cat >>confdefs.h <<\EOF
15082 #define HAVE_CURSES_VERSION 1
15085 echo "$as_me:15085: checking for alternate character set array" >&5
15086 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
15087 if test "${cf_cv_curses_acs_map+set}" = set; then
15088 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 cf_cv_curses_acs_map=unknown
15092 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
15094 cat >conftest.$ac_ext <<_ACEOF
15095 #line 15095 "configure"
15096 #include "confdefs.h"
15098 #include <${cf_cv_ncurses_header:-curses.h}>
15104 $name['k'] = ACS_PLUS
15110 rm -f conftest.$ac_objext conftest$ac_exeext
15111 if { (eval echo "$as_me:15111: \"$ac_link\"") >&5
15112 (eval $ac_link) 2>&5
15114 echo "$as_me:15114: \$? = $ac_status" >&5
15115 (exit $ac_status); } &&
15116 { ac_try='test -s conftest$ac_exeext'
15117 { (eval echo "$as_me:15117: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15120 echo "$as_me:15120: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }; then
15122 cf_cv_curses_acs_map=$name; break
15124 echo "$as_me: failed program was:" >&5
15125 cat conftest.$ac_ext >&5
15127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15131 echo "$as_me:15131: result: $cf_cv_curses_acs_map" >&5
15132 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
15134 test "$cf_cv_curses_acs_map" != unknown &&
15135 cat >>confdefs.h <<EOF
15136 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
15139 if test "$cf_enable_widec" = yes; then
15141 echo "$as_me:15141: checking for wide alternate character set array" >&5
15142 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
15143 if test "${cf_cv_curses_wacs_map+set}" = set; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15147 cf_cv_curses_wacs_map=unknown
15148 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
15150 cat >conftest.$ac_ext <<_ACEOF
15151 #line 15151 "configure"
15152 #include "confdefs.h"
15154 #ifndef _XOPEN_SOURCE_EXTENDED
15155 #define _XOPEN_SOURCE_EXTENDED
15157 #include <${cf_cv_ncurses_header:-curses.h}>
15161 void *foo = &($name['k'])
15166 rm -f conftest.$ac_objext conftest$ac_exeext
15167 if { (eval echo "$as_me:15167: \"$ac_link\"") >&5
15168 (eval $ac_link) 2>&5
15170 echo "$as_me:15170: \$? = $ac_status" >&5
15171 (exit $ac_status); } &&
15172 { ac_try='test -s conftest$ac_exeext'
15173 { (eval echo "$as_me:15173: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15176 echo "$as_me:15176: \$? = $ac_status" >&5
15177 (exit $ac_status); }; }; then
15178 cf_cv_curses_wacs_map=$name
15181 echo "$as_me: failed program was:" >&5
15182 cat conftest.$ac_ext >&5
15184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15187 echo "$as_me:15187: result: $cf_cv_curses_wacs_map" >&5
15188 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
15190 test "$cf_cv_curses_wacs_map" != unknown &&
15191 cat >>confdefs.h <<EOF
15192 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
15195 echo "$as_me:15195: checking for wide alternate character constants" >&5
15196 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
15197 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 cf_cv_curses_wacs_symbols=no
15202 if test "$cf_cv_curses_wacs_map" != unknown
15204 cat >conftest.$ac_ext <<_ACEOF
15205 #line 15205 "configure"
15206 #include "confdefs.h"
15208 #ifndef _XOPEN_SOURCE_EXTENDED
15209 #define _XOPEN_SOURCE_EXTENDED
15211 #include <${cf_cv_ncurses_header:-curses.h}>
15215 cchar_t *foo = WACS_PLUS;
15216 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
15221 rm -f conftest.$ac_objext conftest$ac_exeext
15222 if { (eval echo "$as_me:15222: \"$ac_link\"") >&5
15223 (eval $ac_link) 2>&5
15225 echo "$as_me:15225: \$? = $ac_status" >&5
15226 (exit $ac_status); } &&
15227 { ac_try='test -s conftest$ac_exeext'
15228 { (eval echo "$as_me:15228: \"$ac_try\"") >&5
15229 (eval $ac_try) 2>&5
15231 echo "$as_me:15231: \$? = $ac_status" >&5
15232 (exit $ac_status); }; }; then
15233 cf_cv_curses_wacs_symbols=yes
15235 echo "$as_me: failed program was:" >&5
15236 cat conftest.$ac_ext >&5
15238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15240 cat >conftest.$ac_ext <<_ACEOF
15241 #line 15241 "configure"
15242 #include "confdefs.h"
15244 #ifndef _XOPEN_SOURCE_EXTENDED
15245 #define _XOPEN_SOURCE_EXTENDED
15247 #include <${cf_cv_ncurses_header:-curses.h}>
15251 cchar_t *foo = WACS_PLUS
15256 rm -f conftest.$ac_objext conftest$ac_exeext
15257 if { (eval echo "$as_me:15257: \"$ac_link\"") >&5
15258 (eval $ac_link) 2>&5
15260 echo "$as_me:15260: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try='test -s conftest$ac_exeext'
15263 { (eval echo "$as_me:15263: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15266 echo "$as_me:15266: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 cf_cv_curses_wacs_symbols=yes
15270 echo "$as_me: failed program was:" >&5
15271 cat conftest.$ac_ext >&5
15273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15277 echo "$as_me:15277: result: $cf_cv_curses_wacs_symbols" >&5
15278 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
15280 test "$cf_cv_curses_wacs_symbols" != no &&
15281 cat >>confdefs.h <<\EOF
15282 #define CURSES_WACS_SYMBOLS 1
15287 echo "$as_me:15287: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15288 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15289 cat >conftest.$ac_ext <<_ACEOF
15290 #line 15290 "configure"
15291 #include "confdefs.h"
15293 #ifndef _XOPEN_SOURCE_EXTENDED
15294 #define _XOPEN_SOURCE_EXTENDED
15296 #include <${cf_cv_ncurses_header:-curses.h}>
15307 rm -f conftest.$ac_objext
15308 if { (eval echo "$as_me:15308: \"$ac_compile\"") >&5
15309 (eval $ac_compile) 2>&5
15311 echo "$as_me:15311: \$? = $ac_status" >&5
15312 (exit $ac_status); } &&
15313 { ac_try='test -s conftest.$ac_objext'
15314 { (eval echo "$as_me:15314: \"$ac_try\"") >&5
15315 (eval $ac_try) 2>&5
15317 echo "$as_me:15317: \$? = $ac_status" >&5
15318 (exit $ac_status); }; }; then
15321 echo "$as_me: failed program was:" >&5
15322 cat conftest.$ac_ext >&5
15325 rm -f conftest.$ac_objext conftest.$ac_ext
15326 echo "$as_me:15326: result: $cf_result" >&5
15327 echo "${ECHO_T}$cf_result" >&6
15328 if test $cf_result = yes ; then
15330 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15332 cat >>confdefs.h <<EOF
15333 #define $cf_result 1
15338 cat >>confdefs.h <<EOF
15339 #define attr_t long
15344 if test "$cf_enable_widec" = yes; then
15346 # This is needed on Tru64 5.0 to declare mbstate_t
15347 echo "$as_me:15347: checking if we must include wchar.h to declare mbstate_t" >&5
15348 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
15349 if test "${cf_cv_mbstate_t+set}" = set; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15353 cat >conftest.$ac_ext <<_ACEOF
15354 #line 15354 "configure"
15355 #include "confdefs.h"
15357 #include <stdlib.h>
15358 #include <stdarg.h>
15360 #ifdef HAVE_LIBUTF8_H
15361 #include <libutf8.h>
15371 rm -f conftest.$ac_objext
15372 if { (eval echo "$as_me:15372: \"$ac_compile\"") >&5
15373 (eval $ac_compile) 2>&5
15375 echo "$as_me:15375: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
15377 { ac_try='test -s conftest.$ac_objext'
15378 { (eval echo "$as_me:15378: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15381 echo "$as_me:15381: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15385 echo "$as_me: failed program was:" >&5
15386 cat conftest.$ac_ext >&5
15387 cat >conftest.$ac_ext <<_ACEOF
15388 #line 15388 "configure"
15389 #include "confdefs.h"
15391 #include <stdlib.h>
15392 #include <stdarg.h>
15395 #ifdef HAVE_LIBUTF8_H
15396 #include <libutf8.h>
15406 rm -f conftest.$ac_objext
15407 if { (eval echo "$as_me:15407: \"$ac_compile\"") >&5
15408 (eval $ac_compile) 2>&5
15410 echo "$as_me:15410: \$? = $ac_status" >&5
15411 (exit $ac_status); } &&
15412 { ac_try='test -s conftest.$ac_objext'
15413 { (eval echo "$as_me:15413: \"$ac_try\"") >&5
15414 (eval $ac_try) 2>&5
15416 echo "$as_me:15416: \$? = $ac_status" >&5
15417 (exit $ac_status); }; }; then
15418 cf_cv_mbstate_t=yes
15420 echo "$as_me: failed program was:" >&5
15421 cat conftest.$ac_ext >&5
15422 cf_cv_mbstate_t=unknown
15424 rm -f conftest.$ac_objext conftest.$ac_ext
15426 rm -f conftest.$ac_objext conftest.$ac_ext
15428 echo "$as_me:15428: result: $cf_cv_mbstate_t" >&5
15429 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
15431 if test "$cf_cv_mbstate_t" = yes ; then
15433 cat >>confdefs.h <<\EOF
15434 #define NEED_WCHAR_H 1
15440 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
15441 if test "$cf_cv_mbstate_t" = unknown ; then
15442 NCURSES_MBSTATE_T=1
15445 # if we find mbstate_t in either place, use substitution to provide a fallback.
15446 if test "$cf_cv_mbstate_t" != unknown ; then
15447 NCURSES_OK_MBSTATE_T=1
15450 # This is needed on Tru64 5.0 to declare wchar_t
15451 echo "$as_me:15451: checking if we must include wchar.h to declare wchar_t" >&5
15452 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
15453 if test "${cf_cv_wchar_t+set}" = set; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
15457 cat >conftest.$ac_ext <<_ACEOF
15458 #line 15458 "configure"
15459 #include "confdefs.h"
15461 #include <stdlib.h>
15462 #include <stdarg.h>
15464 #ifdef HAVE_LIBUTF8_H
15465 #include <libutf8.h>
15475 rm -f conftest.$ac_objext
15476 if { (eval echo "$as_me:15476: \"$ac_compile\"") >&5
15477 (eval $ac_compile) 2>&5
15479 echo "$as_me:15479: \$? = $ac_status" >&5
15480 (exit $ac_status); } &&
15481 { ac_try='test -s conftest.$ac_objext'
15482 { (eval echo "$as_me:15482: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15485 echo "$as_me:15485: \$? = $ac_status" >&5
15486 (exit $ac_status); }; }; then
15489 echo "$as_me: failed program was:" >&5
15490 cat conftest.$ac_ext >&5
15491 cat >conftest.$ac_ext <<_ACEOF
15492 #line 15492 "configure"
15493 #include "confdefs.h"
15495 #include <stdlib.h>
15496 #include <stdarg.h>
15499 #ifdef HAVE_LIBUTF8_H
15500 #include <libutf8.h>
15510 rm -f conftest.$ac_objext
15511 if { (eval echo "$as_me:15511: \"$ac_compile\"") >&5
15512 (eval $ac_compile) 2>&5
15514 echo "$as_me:15514: \$? = $ac_status" >&5
15515 (exit $ac_status); } &&
15516 { ac_try='test -s conftest.$ac_objext'
15517 { (eval echo "$as_me:15517: \"$ac_try\"") >&5
15518 (eval $ac_try) 2>&5
15520 echo "$as_me:15520: \$? = $ac_status" >&5
15521 (exit $ac_status); }; }; then
15524 echo "$as_me: failed program was:" >&5
15525 cat conftest.$ac_ext >&5
15526 cf_cv_wchar_t=unknown
15528 rm -f conftest.$ac_objext conftest.$ac_ext
15530 rm -f conftest.$ac_objext conftest.$ac_ext
15532 echo "$as_me:15532: result: $cf_cv_wchar_t" >&5
15533 echo "${ECHO_T}$cf_cv_wchar_t" >&6
15535 if test "$cf_cv_wchar_t" = yes ; then
15537 cat >>confdefs.h <<\EOF
15538 #define NEED_WCHAR_H 1
15544 # if we do not find wchar_t in either place, use substitution to provide a fallback.
15545 if test "$cf_cv_wchar_t" = unknown ; then
15549 # if we find wchar_t in either place, use substitution to provide a fallback.
15550 if test "$cf_cv_wchar_t" != unknown ; then
15551 NCURSES_OK_WCHAR_T=1
15554 # This is needed on Tru64 5.0 to declare wint_t
15555 echo "$as_me:15555: checking if we must include wchar.h to declare wint_t" >&5
15556 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
15557 if test "${cf_cv_wint_t+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15561 cat >conftest.$ac_ext <<_ACEOF
15562 #line 15562 "configure"
15563 #include "confdefs.h"
15565 #include <stdlib.h>
15566 #include <stdarg.h>
15568 #ifdef HAVE_LIBUTF8_H
15569 #include <libutf8.h>
15579 rm -f conftest.$ac_objext
15580 if { (eval echo "$as_me:15580: \"$ac_compile\"") >&5
15581 (eval $ac_compile) 2>&5
15583 echo "$as_me:15583: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try='test -s conftest.$ac_objext'
15586 { (eval echo "$as_me:15586: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15589 echo "$as_me:15589: \$? = $ac_status" >&5
15590 (exit $ac_status); }; }; then
15593 echo "$as_me: failed program was:" >&5
15594 cat conftest.$ac_ext >&5
15595 cat >conftest.$ac_ext <<_ACEOF
15596 #line 15596 "configure"
15597 #include "confdefs.h"
15599 #include <stdlib.h>
15600 #include <stdarg.h>
15603 #ifdef HAVE_LIBUTF8_H
15604 #include <libutf8.h>
15614 rm -f conftest.$ac_objext
15615 if { (eval echo "$as_me:15615: \"$ac_compile\"") >&5
15616 (eval $ac_compile) 2>&5
15618 echo "$as_me:15618: \$? = $ac_status" >&5
15619 (exit $ac_status); } &&
15620 { ac_try='test -s conftest.$ac_objext'
15621 { (eval echo "$as_me:15621: \"$ac_try\"") >&5
15622 (eval $ac_try) 2>&5
15624 echo "$as_me:15624: \$? = $ac_status" >&5
15625 (exit $ac_status); }; }; then
15628 echo "$as_me: failed program was:" >&5
15629 cat conftest.$ac_ext >&5
15630 cf_cv_wint_t=unknown
15632 rm -f conftest.$ac_objext conftest.$ac_ext
15634 rm -f conftest.$ac_objext conftest.$ac_ext
15636 echo "$as_me:15636: result: $cf_cv_wint_t" >&5
15637 echo "${ECHO_T}$cf_cv_wint_t" >&6
15639 if test "$cf_cv_wint_t" = yes ; then
15641 cat >>confdefs.h <<\EOF
15642 #define NEED_WCHAR_H 1
15648 # if we do not find wint_t in either place, use substitution to provide a fallback.
15649 if test "$cf_cv_wint_t" = unknown ; then
15653 # if we find wint_t in either place, use substitution to provide a fallback.
15654 if test "$cf_cv_wint_t" != unknown ; then
15655 NCURSES_OK_WINT_T=1
15658 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
15660 echo "$as_me:15660: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15661 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15662 cat >conftest.$ac_ext <<_ACEOF
15663 #line 15663 "configure"
15664 #include "confdefs.h"
15666 #ifndef _XOPEN_SOURCE_EXTENDED
15667 #define _XOPEN_SOURCE_EXTENDED
15669 #include <${cf_cv_ncurses_header:-curses.h}>
15680 rm -f conftest.$ac_objext
15681 if { (eval echo "$as_me:15681: \"$ac_compile\"") >&5
15682 (eval $ac_compile) 2>&5
15684 echo "$as_me:15684: \$? = $ac_status" >&5
15685 (exit $ac_status); } &&
15686 { ac_try='test -s conftest.$ac_objext'
15687 { (eval echo "$as_me:15687: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15690 echo "$as_me:15690: \$? = $ac_status" >&5
15691 (exit $ac_status); }; }; then
15694 echo "$as_me: failed program was:" >&5
15695 cat conftest.$ac_ext >&5
15698 rm -f conftest.$ac_objext conftest.$ac_ext
15699 echo "$as_me:15699: result: $cf_result" >&5
15700 echo "${ECHO_T}$cf_result" >&6
15701 if test $cf_result = yes ; then
15703 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15705 cat >>confdefs.h <<EOF
15706 #define $cf_result 1
15711 cat >>confdefs.h <<EOF
15712 #define mbstate_t long
15719 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
15721 echo "$as_me:15721: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15722 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15723 cat >conftest.$ac_ext <<_ACEOF
15724 #line 15724 "configure"
15725 #include "confdefs.h"
15727 #ifndef _XOPEN_SOURCE_EXTENDED
15728 #define _XOPEN_SOURCE_EXTENDED
15730 #include <${cf_cv_ncurses_header:-curses.h}>
15741 rm -f conftest.$ac_objext
15742 if { (eval echo "$as_me:15742: \"$ac_compile\"") >&5
15743 (eval $ac_compile) 2>&5
15745 echo "$as_me:15745: \$? = $ac_status" >&5
15746 (exit $ac_status); } &&
15747 { ac_try='test -s conftest.$ac_objext'
15748 { (eval echo "$as_me:15748: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15751 echo "$as_me:15751: \$? = $ac_status" >&5
15752 (exit $ac_status); }; }; then
15755 echo "$as_me: failed program was:" >&5
15756 cat conftest.$ac_ext >&5
15759 rm -f conftest.$ac_objext conftest.$ac_ext
15760 echo "$as_me:15760: result: $cf_result" >&5
15761 echo "${ECHO_T}$cf_result" >&6
15762 if test $cf_result = yes ; then
15764 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15766 cat >>confdefs.h <<EOF
15767 #define $cf_result 1
15772 cat >>confdefs.h <<EOF
15773 #define wchar_t long
15780 if test "$NCURSES_OK_WINT_T" = 0 ; then
15782 echo "$as_me:15782: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15783 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15784 cat >conftest.$ac_ext <<_ACEOF
15785 #line 15785 "configure"
15786 #include "confdefs.h"
15788 #ifndef _XOPEN_SOURCE_EXTENDED
15789 #define _XOPEN_SOURCE_EXTENDED
15791 #include <${cf_cv_ncurses_header:-curses.h}>
15802 rm -f conftest.$ac_objext
15803 if { (eval echo "$as_me:15803: \"$ac_compile\"") >&5
15804 (eval $ac_compile) 2>&5
15806 echo "$as_me:15806: \$? = $ac_status" >&5
15807 (exit $ac_status); } &&
15808 { ac_try='test -s conftest.$ac_objext'
15809 { (eval echo "$as_me:15809: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15812 echo "$as_me:15812: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
15816 echo "$as_me: failed program was:" >&5
15817 cat conftest.$ac_ext >&5
15820 rm -f conftest.$ac_objext conftest.$ac_ext
15821 echo "$as_me:15821: result: $cf_result" >&5
15822 echo "${ECHO_T}$cf_result" >&6
15823 if test $cf_result = yes ; then
15825 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15827 cat >>confdefs.h <<EOF
15828 #define $cf_result 1
15833 cat >>confdefs.h <<EOF
15834 #define wint_t long
15842 echo "$as_me:15842: checking for data ospeed declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
15843 echo $ECHO_N "checking for data ospeed declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15845 cat >conftest.$ac_ext <<_ACEOF
15846 #line 15846 "configure"
15847 #include "confdefs.h"
15849 #ifdef HAVE_XCURSES
15850 #include <xcurses.h>
15851 char * XCursesProgramName = "test";
15853 #include <${cf_cv_ncurses_header:-curses.h}>
15854 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15855 #include <ncursesw/term.h>
15856 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15857 #include <ncurses/term.h>
15858 #elif defined(HAVE_TERM_H)
15867 void *foo = &(ospeed)
15873 rm -f conftest.$ac_objext
15874 if { (eval echo "$as_me:15874: \"$ac_compile\"") >&5
15875 (eval $ac_compile) 2>&5
15877 echo "$as_me:15877: \$? = $ac_status" >&5
15878 (exit $ac_status); } &&
15879 { ac_try='test -s conftest.$ac_objext'
15880 { (eval echo "$as_me:15880: \"$ac_try\"") >&5
15881 (eval $ac_try) 2>&5
15883 echo "$as_me:15883: \$? = $ac_status" >&5
15884 (exit $ac_status); }; }; then
15887 echo "$as_me: failed program was:" >&5
15888 cat conftest.$ac_ext >&5
15891 rm -f conftest.$ac_objext conftest.$ac_ext
15892 echo "$as_me:15892: result: $cf_result" >&5
15893 echo "${ECHO_T}$cf_result" >&6
15895 if test $cf_result = yes ; then
15897 cf_result=`echo "have_curses_data_ospeed" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15899 cat >>confdefs.h <<EOF
15900 #define $cf_result 1
15904 echo "$as_me:15904: checking for data ospeed in library" >&5
15905 echo $ECHO_N "checking for data ospeed in library... $ECHO_C" >&6
15906 # BSD linkers insist on making weak linkage, but resolve at runtime.
15907 if test "$cross_compiling" = yes; then
15910 cat >conftest.$ac_ext <<_ACEOF
15911 #line 15911 "configure"
15912 #include "confdefs.h"
15914 #ifdef HAVE_XCURSES
15915 #include <xcurses.h>
15916 char * XCursesProgramName = "test";
15918 #include <${cf_cv_ncurses_header:-curses.h}>
15919 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15920 #include <ncursesw/term.h>
15921 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15922 #include <ncurses/term.h>
15923 #elif defined(HAVE_TERM_H)
15928 extern char ospeed;
15934 void *foo = &(ospeed);
15935 fprintf(stderr, "testing linkage of ospeed:%p\n", foo);
15936 ${cf_cv_main_return:-return}(foo == 0);
15943 rm -f conftest.$ac_objext conftest$ac_exeext
15944 if { (eval echo "$as_me:15944: \"$ac_link\"") >&5
15945 (eval $ac_link) 2>&5
15947 echo "$as_me:15947: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
15949 { ac_try='test -s conftest$ac_exeext'
15950 { (eval echo "$as_me:15950: \"$ac_try\"") >&5
15951 (eval $ac_try) 2>&5
15953 echo "$as_me:15953: \$? = $ac_status" >&5
15954 (exit $ac_status); }; }; then
15957 echo "$as_me: failed program was:" >&5
15958 cat conftest.$ac_ext >&5
15961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15964 cat >conftest.$ac_ext <<_ACEOF
15965 #line 15965 "configure"
15966 #include "confdefs.h"
15968 #ifdef HAVE_XCURSES
15969 #include <xcurses.h>
15970 char * XCursesProgramName = "test";
15972 #include <${cf_cv_ncurses_header:-curses.h}>
15973 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15974 #include <ncursesw/term.h>
15975 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15976 #include <ncurses/term.h>
15977 #elif defined(HAVE_TERM_H)
15982 extern char ospeed;
15985 void *foo = &(ospeed);
15986 fprintf(stderr, "testing linkage of ospeed:%p\n", foo);
15987 ${cf_cv_main_return:-return}(foo == 0);
15990 rm -f conftest$ac_exeext
15991 if { (eval echo "$as_me:15991: \"$ac_link\"") >&5
15992 (eval $ac_link) 2>&5
15994 echo "$as_me:15994: \$? = $ac_status" >&5
15995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15996 { (eval echo "$as_me:15996: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15999 echo "$as_me:15999: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16003 echo "$as_me: program exited with status $ac_status" >&5
16004 echo "$as_me: failed program was:" >&5
16005 cat conftest.$ac_ext >&5
16008 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16010 echo "$as_me:16010: result: $cf_result" >&5
16011 echo "${ECHO_T}$cf_result" >&6
16012 if test $cf_result = yes ; then
16014 cf_result=`echo "decl_curses_data_ospeed" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16016 cat >>confdefs.h <<EOF
16017 #define $cf_result 1
16023 echo "$as_me:16023: checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
16024 echo $ECHO_N "checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16026 cat >conftest.$ac_ext <<_ACEOF
16027 #line 16027 "configure"
16028 #include "confdefs.h"
16030 #ifdef HAVE_XCURSES
16031 #include <xcurses.h>
16032 char * XCursesProgramName = "test";
16034 #include <${cf_cv_ncurses_header:-curses.h}>
16035 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16036 #include <ncursesw/term.h>
16037 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16038 #include <ncurses/term.h>
16039 #elif defined(HAVE_TERM_H)
16048 void *foo = &(boolnames)
16054 rm -f conftest.$ac_objext
16055 if { (eval echo "$as_me:16055: \"$ac_compile\"") >&5
16056 (eval $ac_compile) 2>&5
16058 echo "$as_me:16058: \$? = $ac_status" >&5
16059 (exit $ac_status); } &&
16060 { ac_try='test -s conftest.$ac_objext'
16061 { (eval echo "$as_me:16061: \"$ac_try\"") >&5
16062 (eval $ac_try) 2>&5
16064 echo "$as_me:16064: \$? = $ac_status" >&5
16065 (exit $ac_status); }; }; then
16068 echo "$as_me: failed program was:" >&5
16069 cat conftest.$ac_ext >&5
16072 rm -f conftest.$ac_objext conftest.$ac_ext
16073 echo "$as_me:16073: result: $cf_result" >&5
16074 echo "${ECHO_T}$cf_result" >&6
16076 if test $cf_result = yes ; then
16078 cf_result=`echo "have_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16080 cat >>confdefs.h <<EOF
16081 #define $cf_result 1
16085 echo "$as_me:16085: checking for data boolnames in library" >&5
16086 echo $ECHO_N "checking for data boolnames in library... $ECHO_C" >&6
16087 # BSD linkers insist on making weak linkage, but resolve at runtime.
16088 if test "$cross_compiling" = yes; then
16091 cat >conftest.$ac_ext <<_ACEOF
16092 #line 16092 "configure"
16093 #include "confdefs.h"
16095 #ifdef HAVE_XCURSES
16096 #include <xcurses.h>
16097 char * XCursesProgramName = "test";
16099 #include <${cf_cv_ncurses_header:-curses.h}>
16100 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16101 #include <ncursesw/term.h>
16102 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16103 #include <ncurses/term.h>
16104 #elif defined(HAVE_TERM_H)
16109 extern char boolnames;
16115 void *foo = &(boolnames);
16116 fprintf(stderr, "testing linkage of boolnames:%p\n", foo);
16117 ${cf_cv_main_return:-return}(foo == 0);
16124 rm -f conftest.$ac_objext conftest$ac_exeext
16125 if { (eval echo "$as_me:16125: \"$ac_link\"") >&5
16126 (eval $ac_link) 2>&5
16128 echo "$as_me:16128: \$? = $ac_status" >&5
16129 (exit $ac_status); } &&
16130 { ac_try='test -s conftest$ac_exeext'
16131 { (eval echo "$as_me:16131: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16134 echo "$as_me:16134: \$? = $ac_status" >&5
16135 (exit $ac_status); }; }; then
16138 echo "$as_me: failed program was:" >&5
16139 cat conftest.$ac_ext >&5
16142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16145 cat >conftest.$ac_ext <<_ACEOF
16146 #line 16146 "configure"
16147 #include "confdefs.h"
16149 #ifdef HAVE_XCURSES
16150 #include <xcurses.h>
16151 char * XCursesProgramName = "test";
16153 #include <${cf_cv_ncurses_header:-curses.h}>
16154 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16155 #include <ncursesw/term.h>
16156 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16157 #include <ncurses/term.h>
16158 #elif defined(HAVE_TERM_H)
16163 extern char boolnames;
16166 void *foo = &(boolnames);
16167 fprintf(stderr, "testing linkage of boolnames:%p\n", foo);
16168 ${cf_cv_main_return:-return}(foo == 0);
16171 rm -f conftest$ac_exeext
16172 if { (eval echo "$as_me:16172: \"$ac_link\"") >&5
16173 (eval $ac_link) 2>&5
16175 echo "$as_me:16175: \$? = $ac_status" >&5
16176 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16177 { (eval echo "$as_me:16177: \"$ac_try\"") >&5
16178 (eval $ac_try) 2>&5
16180 echo "$as_me:16180: \$? = $ac_status" >&5
16181 (exit $ac_status); }; }; then
16184 echo "$as_me: program exited with status $ac_status" >&5
16185 echo "$as_me: failed program was:" >&5
16186 cat conftest.$ac_ext >&5
16189 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16191 echo "$as_me:16191: result: $cf_result" >&5
16192 echo "${ECHO_T}$cf_result" >&6
16193 if test $cf_result = yes ; then
16195 cf_result=`echo "decl_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16197 cat >>confdefs.h <<EOF
16198 #define $cf_result 1
16204 echo "$as_me:16204: checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
16205 echo $ECHO_N "checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16207 cat >conftest.$ac_ext <<_ACEOF
16208 #line 16208 "configure"
16209 #include "confdefs.h"
16211 #ifdef HAVE_XCURSES
16212 #include <xcurses.h>
16213 char * XCursesProgramName = "test";
16215 #include <${cf_cv_ncurses_header:-curses.h}>
16216 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16217 #include <ncursesw/term.h>
16218 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16219 #include <ncurses/term.h>
16220 #elif defined(HAVE_TERM_H)
16229 void *foo = &(boolfnames)
16235 rm -f conftest.$ac_objext
16236 if { (eval echo "$as_me:16236: \"$ac_compile\"") >&5
16237 (eval $ac_compile) 2>&5
16239 echo "$as_me:16239: \$? = $ac_status" >&5
16240 (exit $ac_status); } &&
16241 { ac_try='test -s conftest.$ac_objext'
16242 { (eval echo "$as_me:16242: \"$ac_try\"") >&5
16243 (eval $ac_try) 2>&5
16245 echo "$as_me:16245: \$? = $ac_status" >&5
16246 (exit $ac_status); }; }; then
16249 echo "$as_me: failed program was:" >&5
16250 cat conftest.$ac_ext >&5
16253 rm -f conftest.$ac_objext conftest.$ac_ext
16254 echo "$as_me:16254: result: $cf_result" >&5
16255 echo "${ECHO_T}$cf_result" >&6
16257 if test $cf_result = yes ; then
16259 cf_result=`echo "have_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16261 cat >>confdefs.h <<EOF
16262 #define $cf_result 1
16266 echo "$as_me:16266: checking for data boolfnames in library" >&5
16267 echo $ECHO_N "checking for data boolfnames in library... $ECHO_C" >&6
16268 # BSD linkers insist on making weak linkage, but resolve at runtime.
16269 if test "$cross_compiling" = yes; then
16272 cat >conftest.$ac_ext <<_ACEOF
16273 #line 16273 "configure"
16274 #include "confdefs.h"
16276 #ifdef HAVE_XCURSES
16277 #include <xcurses.h>
16278 char * XCursesProgramName = "test";
16280 #include <${cf_cv_ncurses_header:-curses.h}>
16281 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16282 #include <ncursesw/term.h>
16283 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16284 #include <ncurses/term.h>
16285 #elif defined(HAVE_TERM_H)
16290 extern char boolfnames;
16296 void *foo = &(boolfnames);
16297 fprintf(stderr, "testing linkage of boolfnames:%p\n", foo);
16298 ${cf_cv_main_return:-return}(foo == 0);
16305 rm -f conftest.$ac_objext conftest$ac_exeext
16306 if { (eval echo "$as_me:16306: \"$ac_link\"") >&5
16307 (eval $ac_link) 2>&5
16309 echo "$as_me:16309: \$? = $ac_status" >&5
16310 (exit $ac_status); } &&
16311 { ac_try='test -s conftest$ac_exeext'
16312 { (eval echo "$as_me:16312: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16315 echo "$as_me:16315: \$? = $ac_status" >&5
16316 (exit $ac_status); }; }; then
16319 echo "$as_me: failed program was:" >&5
16320 cat conftest.$ac_ext >&5
16323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16326 cat >conftest.$ac_ext <<_ACEOF
16327 #line 16327 "configure"
16328 #include "confdefs.h"
16330 #ifdef HAVE_XCURSES
16331 #include <xcurses.h>
16332 char * XCursesProgramName = "test";
16334 #include <${cf_cv_ncurses_header:-curses.h}>
16335 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16336 #include <ncursesw/term.h>
16337 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16338 #include <ncurses/term.h>
16339 #elif defined(HAVE_TERM_H)
16344 extern char boolfnames;
16347 void *foo = &(boolfnames);
16348 fprintf(stderr, "testing linkage of boolfnames:%p\n", foo);
16349 ${cf_cv_main_return:-return}(foo == 0);
16352 rm -f conftest$ac_exeext
16353 if { (eval echo "$as_me:16353: \"$ac_link\"") >&5
16354 (eval $ac_link) 2>&5
16356 echo "$as_me:16356: \$? = $ac_status" >&5
16357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16358 { (eval echo "$as_me:16358: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16361 echo "$as_me:16361: \$? = $ac_status" >&5
16362 (exit $ac_status); }; }; then
16365 echo "$as_me: program exited with status $ac_status" >&5
16366 echo "$as_me: failed program was:" >&5
16367 cat conftest.$ac_ext >&5
16370 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16372 echo "$as_me:16372: result: $cf_result" >&5
16373 echo "${ECHO_T}$cf_result" >&6
16374 if test $cf_result = yes ; then
16376 cf_result=`echo "decl_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16378 cat >>confdefs.h <<EOF
16379 #define $cf_result 1
16385 if ( test "$GCC" = yes || test "$GXX" = yes )
16387 echo "$as_me:16387: checking if you want to turn on gcc warnings" >&5
16388 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
16390 # Check whether --enable-warnings or --disable-warnings was given.
16391 if test "${enable_warnings+set}" = set; then
16392 enableval="$enable_warnings"
16393 test "$enableval" != yes && enableval=no
16394 if test "$enableval" != "no" ; then
16404 echo "$as_me:16404: result: $with_warnings" >&5
16405 echo "${ECHO_T}$with_warnings" >&6
16406 if test "$with_warnings" = "yes"
16409 if test "$GCC" = yes
16411 cat > conftest.i <<EOF
16413 #define GCC_PRINTF 0
16416 #define GCC_SCANF 0
16418 #ifndef GCC_NORETURN
16419 #define GCC_NORETURN /* nothing */
16422 #define GCC_UNUSED /* nothing */
16425 if test "$GCC" = yes
16427 { echo "$as_me:16427: checking for $CC __attribute__ directives..." >&5
16428 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
16429 cat > conftest.$ac_ext <<EOF
16430 #line 16430 "${as_me:-configure}"
16431 #include "confdefs.h"
16432 #include "conftest.h"
16433 #include "conftest.i"
16435 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
16437 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
16440 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
16442 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
16444 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
16445 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
16446 extern void foo(void) GCC_NORETURN;
16447 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
16449 cf_printf_attribute=no
16450 cf_scanf_attribute=no
16451 for cf_attribute in scanf printf unused noreturn
16454 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16456 cf_directive="__attribute__(($cf_attribute))"
16457 echo "checking for $CC $cf_directive" 1>&5
16459 case $cf_attribute in
16461 cf_printf_attribute=yes
16462 cat >conftest.h <<EOF
16463 #define GCC_$cf_ATTRIBUTE 1
16467 cf_scanf_attribute=yes
16468 cat >conftest.h <<EOF
16469 #define GCC_$cf_ATTRIBUTE 1
16473 cat >conftest.h <<EOF
16474 #define GCC_$cf_ATTRIBUTE $cf_directive
16479 if { (eval echo "$as_me:16479: \"$ac_compile\"") >&5
16480 (eval $ac_compile) 2>&5
16482 echo "$as_me:16482: \$? = $ac_status" >&5
16483 (exit $ac_status); }; then
16484 test -n "$verbose" && echo "$as_me:16484: result: ... $cf_attribute" >&5
16485 echo "${ECHO_T}... $cf_attribute" >&6
16486 cat conftest.h >>confdefs.h
16487 case $cf_attribute in
16490 cat >>confdefs.h <<EOF
16491 #define GCC_NORETURN $cf_directive
16496 cf_value='/* nothing */'
16497 if test "$cf_printf_attribute" != no ; then
16498 cf_value='__attribute__((format(printf,fmt,var)))'
16500 cat >>confdefs.h <<\EOF
16501 #define GCC_PRINTF 1
16506 cat >>confdefs.h <<EOF
16507 #define GCC_PRINTFLIKE(fmt,var) $cf_value
16512 cf_value='/* nothing */'
16513 if test "$cf_scanf_attribute" != no ; then
16514 cf_value='__attribute__((format(scanf,fmt,var)))'
16516 cat >>confdefs.h <<\EOF
16517 #define GCC_SCANF 1
16522 cat >>confdefs.h <<EOF
16523 #define GCC_SCANFLIKE(fmt,var) $cf_value
16529 cat >>confdefs.h <<EOF
16530 #define GCC_UNUSED $cf_directive
16538 fgrep define conftest.i >>confdefs.h
16545 if test "$GCC" = yes ; then
16548 echo "$as_me:16548: checking if this is really Intel C compiler" >&5
16549 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
16550 cf_save_CFLAGS="$CFLAGS"
16551 CFLAGS="$CFLAGS -no-gcc"
16552 cat >conftest.$ac_ext <<_ACEOF
16553 #line 16553 "configure"
16554 #include "confdefs.h"
16560 #ifdef __INTEL_COMPILER
16569 rm -f conftest.$ac_objext
16570 if { (eval echo "$as_me:16570: \"$ac_compile\"") >&5
16571 (eval $ac_compile) 2>&5
16573 echo "$as_me:16573: \$? = $ac_status" >&5
16574 (exit $ac_status); } &&
16575 { ac_try='test -s conftest.$ac_objext'
16576 { (eval echo "$as_me:16576: \"$ac_try\"") >&5
16577 (eval $ac_try) 2>&5
16579 echo "$as_me:16579: \$? = $ac_status" >&5
16580 (exit $ac_status); }; }; then
16582 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
16585 echo "$as_me: failed program was:" >&5
16586 cat conftest.$ac_ext >&5
16588 rm -f conftest.$ac_objext conftest.$ac_ext
16589 CFLAGS="$cf_save_CFLAGS"
16590 echo "$as_me:16590: result: $INTEL_COMPILER" >&5
16591 echo "${ECHO_T}$INTEL_COMPILER" >&6
16598 if test "$GCC" = yes ; then
16599 echo "$as_me:16599: checking if this is really Clang C compiler" >&5
16600 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
16601 cf_save_CFLAGS="$CFLAGS"
16602 CFLAGS="$CFLAGS -Qunused-arguments"
16603 cat >conftest.$ac_ext <<_ACEOF
16604 #line 16604 "configure"
16605 #include "confdefs.h"
16620 rm -f conftest.$ac_objext
16621 if { (eval echo "$as_me:16621: \"$ac_compile\"") >&5
16622 (eval $ac_compile) 2>&5
16624 echo "$as_me:16624: \$? = $ac_status" >&5
16625 (exit $ac_status); } &&
16626 { ac_try='test -s conftest.$ac_objext'
16627 { (eval echo "$as_me:16627: \"$ac_try\"") >&5
16628 (eval $ac_try) 2>&5
16630 echo "$as_me:16630: \$? = $ac_status" >&5
16631 (exit $ac_status); }; }; then
16633 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
16636 echo "$as_me: failed program was:" >&5
16637 cat conftest.$ac_ext >&5
16639 rm -f conftest.$ac_objext conftest.$ac_ext
16640 CFLAGS="$cf_save_CFLAGS"
16641 echo "$as_me:16641: result: $CLANG_COMPILER" >&5
16642 echo "${ECHO_T}$CLANG_COMPILER" >&6
16645 cat > conftest.$ac_ext <<EOF
16646 #line 16646 "${as_me:-configure}"
16647 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16650 if test "$INTEL_COMPILER" = yes
16652 # The "-wdXXX" options suppress warnings:
16653 # remark #1419: external declaration in primary source file
16654 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16655 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16656 # remark #193: zero used for undefined preprocessing identifier
16657 # remark #593: variable "curs_sb_left_arrow" was set but never used
16658 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16659 # remark #869: parameter "tw" was never referenced
16660 # remark #981: operands are evaluated in unspecified order
16661 # warning #279: controlling expression is constant
16663 { echo "$as_me:16663: checking for $CC warning options..." >&5
16664 echo "$as_me: checking for $CC warning options..." >&6;}
16665 cf_save_CFLAGS="$CFLAGS"
16666 EXTRA_CFLAGS="-Wall"
16678 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16679 if { (eval echo "$as_me:16679: \"$ac_compile\"") >&5
16680 (eval $ac_compile) 2>&5
16682 echo "$as_me:16682: \$? = $ac_status" >&5
16683 (exit $ac_status); }; then
16684 test -n "$verbose" && echo "$as_me:16684: result: ... -$cf_opt" >&5
16685 echo "${ECHO_T}... -$cf_opt" >&6
16686 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16689 CFLAGS="$cf_save_CFLAGS"
16691 elif test "$GCC" = yes
16693 { echo "$as_me:16693: checking for $CC warning options..." >&5
16694 echo "$as_me: checking for $CC warning options..." >&6;}
16695 cf_save_CFLAGS="$CFLAGS"
16698 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
16699 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
16700 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
16701 for cf_opt in W Wall \
16702 Wbad-function-cast \
16705 Wdeclaration-after-statement \
16708 Wmissing-declarations \
16709 Wmissing-prototypes \
16713 Wstrict-prototypes \
16714 Wundef $cf_gcc_warnings $cf_warn_CONST
16716 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16717 if { (eval echo "$as_me:16717: \"$ac_compile\"") >&5
16718 (eval $ac_compile) 2>&5
16720 echo "$as_me:16720: \$? = $ac_status" >&5
16721 (exit $ac_status); }; then
16722 test -n "$verbose" && echo "$as_me:16722: result: ... -$cf_opt" >&5
16723 echo "${ECHO_T}... -$cf_opt" >&6
16726 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
16729 case $GCC_VERSION in
16731 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16733 echo "${as_me:-configure}:16733: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16739 case $GCC_VERSION in
16741 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16743 echo "${as_me:-configure}:16743: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16749 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16752 CFLAGS="$cf_save_CFLAGS"
16759 echo "$as_me:16759: checking if you want to use dmalloc for testing" >&5
16760 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
16762 # Check whether --with-dmalloc or --without-dmalloc was given.
16763 if test "${with_dmalloc+set}" = set; then
16764 withval="$with_dmalloc"
16766 cat >>confdefs.h <<EOF
16767 #define USE_DMALLOC 1
16770 : ${with_cflags:=-g}
16771 : ${with_no_leaks:=yes}
16776 echo "$as_me:16776: result: ${with_dmalloc:-no}" >&5
16777 echo "${ECHO_T}${with_dmalloc:-no}" >&6
16779 case .$with_cflags in
16789 cf_new_extra_cppflags=
16791 for cf_add_cflags in -g
16793 case $cf_fix_cppflags in
16795 case $cf_add_cflags in
16796 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16797 case $cf_add_cflags in
16799 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16801 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16802 && test -z "${cf_tst_cflags}" \
16803 && cf_fix_cppflags=yes
16805 if test $cf_fix_cppflags = yes ; then
16806 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16808 elif test "${cf_tst_cflags}" = "\"'" ; then
16809 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16814 case "$CPPFLAGS" in
16818 case $cf_add_cflags in
16820 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16822 CPPFLAGS=`echo "$CPPFLAGS" | \
16823 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16824 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16828 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
16833 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
16838 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16840 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16842 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16843 && test -z "${cf_tst_cflags}" \
16844 && cf_fix_cppflags=no
16849 if test -n "$cf_new_cflags" ; then
16851 CFLAGS="$CFLAGS $cf_new_cflags"
16854 if test -n "$cf_new_cppflags" ; then
16856 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
16859 if test -n "$cf_new_extra_cppflags" ; then
16861 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16869 if test "$with_dmalloc" = yes ; then
16870 echo "$as_me:16870: checking for dmalloc.h" >&5
16871 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
16872 if test "${ac_cv_header_dmalloc_h+set}" = set; then
16873 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 cat >conftest.$ac_ext <<_ACEOF
16876 #line 16876 "configure"
16877 #include "confdefs.h"
16878 #include <dmalloc.h>
16880 if { (eval echo "$as_me:16880: \"$ac_cpp conftest.$ac_ext\"") >&5
16881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16883 egrep -v '^ *\+' conftest.er1 >conftest.err
16885 cat conftest.err >&5
16886 echo "$as_me:16886: \$? = $ac_status" >&5
16887 (exit $ac_status); } >/dev/null; then
16888 if test -s conftest.err; then
16889 ac_cpp_err=$ac_c_preproc_warn_flag
16896 if test -z "$ac_cpp_err"; then
16897 ac_cv_header_dmalloc_h=yes
16899 echo "$as_me: failed program was:" >&5
16900 cat conftest.$ac_ext >&5
16901 ac_cv_header_dmalloc_h=no
16903 rm -f conftest.err conftest.$ac_ext
16905 echo "$as_me:16905: result: $ac_cv_header_dmalloc_h" >&5
16906 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
16907 if test $ac_cv_header_dmalloc_h = yes; then
16909 echo "$as_me:16909: checking for dmalloc_debug in -ldmalloc" >&5
16910 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
16911 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
16912 echo $ECHO_N "(cached) $ECHO_C" >&6
16914 ac_check_lib_save_LIBS=$LIBS
16915 LIBS="-ldmalloc $LIBS"
16916 cat >conftest.$ac_ext <<_ACEOF
16917 #line 16917 "configure"
16918 #include "confdefs.h"
16920 /* Override any gcc2 internal prototype to avoid an error. */
16924 /* We use char because int might match the return type of a gcc2
16925 builtin and then its argument prototype would still apply. */
16926 char dmalloc_debug ();
16935 rm -f conftest.$ac_objext conftest$ac_exeext
16936 if { (eval echo "$as_me:16936: \"$ac_link\"") >&5
16937 (eval $ac_link) 2>&5
16939 echo "$as_me:16939: \$? = $ac_status" >&5
16940 (exit $ac_status); } &&
16941 { ac_try='test -s conftest$ac_exeext'
16942 { (eval echo "$as_me:16942: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16945 echo "$as_me:16945: \$? = $ac_status" >&5
16946 (exit $ac_status); }; }; then
16947 ac_cv_lib_dmalloc_dmalloc_debug=yes
16949 echo "$as_me: failed program was:" >&5
16950 cat conftest.$ac_ext >&5
16951 ac_cv_lib_dmalloc_dmalloc_debug=no
16953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16954 LIBS=$ac_check_lib_save_LIBS
16956 echo "$as_me:16956: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
16957 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
16958 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
16959 cat >>confdefs.h <<EOF
16960 #define HAVE_LIBDMALLOC 1
16963 LIBS="-ldmalloc $LIBS"
16971 echo "$as_me:16971: checking if you want to use dbmalloc for testing" >&5
16972 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
16974 # Check whether --with-dbmalloc or --without-dbmalloc was given.
16975 if test "${with_dbmalloc+set}" = set; then
16976 withval="$with_dbmalloc"
16978 cat >>confdefs.h <<EOF
16979 #define USE_DBMALLOC 1
16982 : ${with_cflags:=-g}
16983 : ${with_no_leaks:=yes}
16988 echo "$as_me:16988: result: ${with_dbmalloc:-no}" >&5
16989 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
16991 case .$with_cflags in
17001 cf_new_extra_cppflags=
17003 for cf_add_cflags in -g
17005 case $cf_fix_cppflags in
17007 case $cf_add_cflags in
17008 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17009 case $cf_add_cflags in
17011 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17013 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17014 && test -z "${cf_tst_cflags}" \
17015 && cf_fix_cppflags=yes
17017 if test $cf_fix_cppflags = yes ; then
17018 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17020 elif test "${cf_tst_cflags}" = "\"'" ; then
17021 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17026 case "$CPPFLAGS" in
17030 case $cf_add_cflags in
17032 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17034 CPPFLAGS=`echo "$CPPFLAGS" | \
17035 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17036 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17040 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17045 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17050 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17052 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17054 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17055 && test -z "${cf_tst_cflags}" \
17056 && cf_fix_cppflags=no
17061 if test -n "$cf_new_cflags" ; then
17063 CFLAGS="$CFLAGS $cf_new_cflags"
17066 if test -n "$cf_new_cppflags" ; then
17068 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17071 if test -n "$cf_new_extra_cppflags" ; then
17073 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17081 if test "$with_dbmalloc" = yes ; then
17082 echo "$as_me:17082: checking for dbmalloc.h" >&5
17083 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
17084 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17087 cat >conftest.$ac_ext <<_ACEOF
17088 #line 17088 "configure"
17089 #include "confdefs.h"
17090 #include <dbmalloc.h>
17092 if { (eval echo "$as_me:17092: \"$ac_cpp conftest.$ac_ext\"") >&5
17093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17095 egrep -v '^ *\+' conftest.er1 >conftest.err
17097 cat conftest.err >&5
17098 echo "$as_me:17098: \$? = $ac_status" >&5
17099 (exit $ac_status); } >/dev/null; then
17100 if test -s conftest.err; then
17101 ac_cpp_err=$ac_c_preproc_warn_flag
17108 if test -z "$ac_cpp_err"; then
17109 ac_cv_header_dbmalloc_h=yes
17111 echo "$as_me: failed program was:" >&5
17112 cat conftest.$ac_ext >&5
17113 ac_cv_header_dbmalloc_h=no
17115 rm -f conftest.err conftest.$ac_ext
17117 echo "$as_me:17117: result: $ac_cv_header_dbmalloc_h" >&5
17118 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
17119 if test $ac_cv_header_dbmalloc_h = yes; then
17121 echo "$as_me:17121: checking for debug_malloc in -ldbmalloc" >&5
17122 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
17123 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
17124 echo $ECHO_N "(cached) $ECHO_C" >&6
17126 ac_check_lib_save_LIBS=$LIBS
17127 LIBS="-ldbmalloc $LIBS"
17128 cat >conftest.$ac_ext <<_ACEOF
17129 #line 17129 "configure"
17130 #include "confdefs.h"
17132 /* Override any gcc2 internal prototype to avoid an error. */
17136 /* We use char because int might match the return type of a gcc2
17137 builtin and then its argument prototype would still apply. */
17138 char debug_malloc ();
17147 rm -f conftest.$ac_objext conftest$ac_exeext
17148 if { (eval echo "$as_me:17148: \"$ac_link\"") >&5
17149 (eval $ac_link) 2>&5
17151 echo "$as_me:17151: \$? = $ac_status" >&5
17152 (exit $ac_status); } &&
17153 { ac_try='test -s conftest$ac_exeext'
17154 { (eval echo "$as_me:17154: \"$ac_try\"") >&5
17155 (eval $ac_try) 2>&5
17157 echo "$as_me:17157: \$? = $ac_status" >&5
17158 (exit $ac_status); }; }; then
17159 ac_cv_lib_dbmalloc_debug_malloc=yes
17161 echo "$as_me: failed program was:" >&5
17162 cat conftest.$ac_ext >&5
17163 ac_cv_lib_dbmalloc_debug_malloc=no
17165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17166 LIBS=$ac_check_lib_save_LIBS
17168 echo "$as_me:17168: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
17169 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
17170 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
17171 cat >>confdefs.h <<EOF
17172 #define HAVE_LIBDBMALLOC 1
17175 LIBS="-ldbmalloc $LIBS"
17183 echo "$as_me:17183: checking if you want to use valgrind for testing" >&5
17184 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
17186 # Check whether --with-valgrind or --without-valgrind was given.
17187 if test "${with_valgrind+set}" = set; then
17188 withval="$with_valgrind"
17190 cat >>confdefs.h <<EOF
17191 #define USE_VALGRIND 1
17194 : ${with_cflags:=-g}
17195 : ${with_no_leaks:=yes}
17200 echo "$as_me:17200: result: ${with_valgrind:-no}" >&5
17201 echo "${ECHO_T}${with_valgrind:-no}" >&6
17203 case .$with_cflags in
17213 cf_new_extra_cppflags=
17215 for cf_add_cflags in -g
17217 case $cf_fix_cppflags in
17219 case $cf_add_cflags in
17220 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17221 case $cf_add_cflags in
17223 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17225 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17226 && test -z "${cf_tst_cflags}" \
17227 && cf_fix_cppflags=yes
17229 if test $cf_fix_cppflags = yes ; then
17230 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17232 elif test "${cf_tst_cflags}" = "\"'" ; then
17233 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17238 case "$CPPFLAGS" in
17242 case $cf_add_cflags in
17244 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17246 CPPFLAGS=`echo "$CPPFLAGS" | \
17247 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17248 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17252 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17257 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17262 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17264 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17266 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17267 && test -z "${cf_tst_cflags}" \
17268 && cf_fix_cppflags=no
17273 if test -n "$cf_new_cflags" ; then
17275 CFLAGS="$CFLAGS $cf_new_cflags"
17278 if test -n "$cf_new_cppflags" ; then
17280 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17283 if test -n "$cf_new_extra_cppflags" ; then
17285 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17293 echo "$as_me:17293: checking if you want to perform memory-leak testing" >&5
17294 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
17296 # Check whether --enable-leaks or --disable-leaks was given.
17297 if test "${enable_leaks+set}" = set; then
17298 enableval="$enable_leaks"
17299 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
17301 : ${with_no_leaks:=no}
17303 echo "$as_me:17303: result: $with_no_leaks" >&5
17304 echo "${ECHO_T}$with_no_leaks" >&6
17306 if test "$with_no_leaks" = yes ; then
17308 cat >>confdefs.h <<\EOF
17312 cat >>confdefs.h <<\EOF
17313 #define YY_NO_LEAKS 1
17319 echo "$as_me:17319: checking for an rpath option" >&5
17320 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
17321 case $cf_cv_system_name in
17323 if test "$GCC" = yes; then
17324 LD_RPATH_OPT="-Wl,-rpath,"
17326 LD_RPATH_OPT="-rpath "
17329 (linux*|gnu*|k*bsd*-gnu)
17330 LD_RPATH_OPT="-Wl,-rpath,"
17332 (openbsd[2-9].*|mirbsd*)
17333 LD_RPATH_OPT="-Wl,-rpath,"
17335 (dragonfly*|freebsd*)
17336 LD_RPATH_OPT="-rpath "
17339 LD_RPATH_OPT="-Wl,-rpath,"
17342 LD_RPATH_OPT="-rpath "
17350 echo "$as_me:17350: result: $LD_RPATH_OPT" >&5
17351 echo "${ECHO_T}$LD_RPATH_OPT" >&6
17353 case "x$LD_RPATH_OPT" in
17355 echo "$as_me:17355: checking if we need a space after rpath option" >&5
17356 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
17357 cf_save_LIBS="$LIBS"
17359 cf_add_libs="${LD_RPATH_OPT}$libdir"
17360 # Filter out duplicates - this happens with badly-designed ".pc" files...
17361 for cf_add_1lib in $LIBS
17363 for cf_add_2lib in $cf_add_libs
17365 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17371 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17373 LIBS="$cf_add_libs"
17375 cat >conftest.$ac_ext <<_ACEOF
17376 #line 17376 "configure"
17377 #include "confdefs.h"
17387 rm -f conftest.$ac_objext conftest$ac_exeext
17388 if { (eval echo "$as_me:17388: \"$ac_link\"") >&5
17389 (eval $ac_link) 2>&5
17391 echo "$as_me:17391: \$? = $ac_status" >&5
17392 (exit $ac_status); } &&
17393 { ac_try='test -s conftest$ac_exeext'
17394 { (eval echo "$as_me:17394: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17397 echo "$as_me:17397: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17401 echo "$as_me: failed program was:" >&5
17402 cat conftest.$ac_ext >&5
17405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17406 LIBS="$cf_save_LIBS"
17407 echo "$as_me:17407: result: $cf_rpath_space" >&5
17408 echo "${ECHO_T}$cf_rpath_space" >&6
17409 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
17413 echo "$as_me:17413: checking if rpath-hack should be disabled" >&5
17414 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
17416 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
17417 if test "${enable_rpath_hack+set}" = set; then
17418 enableval="$enable_rpath_hack"
17419 test "$enableval" != no && enableval=yes
17420 if test "$enableval" != "yes" ; then
17421 cf_disable_rpath_hack=yes
17423 cf_disable_rpath_hack=no
17427 cf_disable_rpath_hack=no
17430 echo "$as_me:17430: result: $cf_disable_rpath_hack" >&5
17431 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
17432 if test "$cf_disable_rpath_hack" = no ; then
17434 echo "$as_me:17434: checking for updated LDFLAGS" >&5
17435 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
17436 if test -n "$LD_RPATH_OPT" ; then
17437 echo "$as_me:17437: result: maybe" >&5
17438 echo "${ECHO_T}maybe" >&6
17442 # Extract the first word of "$ac_prog", so it can be a program name with args.
17443 set dummy $ac_prog; ac_word=$2
17444 echo "$as_me:17444: checking for $ac_word" >&5
17445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17446 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
17447 echo $ECHO_N "(cached) $ECHO_C" >&6
17449 if test -n "$cf_ldd_prog"; then
17450 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
17452 ac_save_IFS=$IFS; IFS=$ac_path_separator
17454 for ac_dir in $ac_dummy; do
17456 test -z "$ac_dir" && ac_dir=.
17457 $as_executable_p "$ac_dir/$ac_word" || continue
17458 ac_cv_prog_cf_ldd_prog="$ac_prog"
17459 echo "$as_me:17459: found $ac_dir/$ac_word" >&5
17465 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
17466 if test -n "$cf_ldd_prog"; then
17467 echo "$as_me:17467: result: $cf_ldd_prog" >&5
17468 echo "${ECHO_T}$cf_ldd_prog" >&6
17470 echo "$as_me:17470: result: no" >&5
17471 echo "${ECHO_T}no" >&6
17474 test -n "$cf_ldd_prog" && break
17476 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
17478 cf_rpath_list="/usr/lib /lib"
17479 if test "$cf_ldd_prog" != no
17483 cat >conftest.$ac_ext <<_ACEOF
17484 #line 17484 "configure"
17485 #include "confdefs.h"
17495 rm -f conftest.$ac_objext conftest$ac_exeext
17496 if { (eval echo "$as_me:17496: \"$ac_link\"") >&5
17497 (eval $ac_link) 2>&5
17499 echo "$as_me:17499: \$? = $ac_status" >&5
17500 (exit $ac_status); } &&
17501 { ac_try='test -s conftest$ac_exeext'
17502 { (eval echo "$as_me:17502: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17505 echo "$as_me:17505: \$? = $ac_status" >&5
17506 (exit $ac_status); }; }; then
17507 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
17508 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
17510 echo "$as_me: failed program was:" >&5
17511 cat conftest.$ac_ext >&5
17513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17515 # If we passed the link-test, but get a "not found" on a given library,
17516 # this could be due to inept reconfiguration of gcc to make it only
17517 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
17518 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
17519 # /usr/local libraries.
17520 if test -n "$cf_rpath_oops"
17522 for cf_rpath_src in $cf_rpath_oops
17524 for cf_rpath_dir in \
17529 if test -f $cf_rpath_dir/lib/$cf_rpath_src
17531 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
17533 echo "${as_me:-configure}:17533: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
17535 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
17543 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
17545 echo "${as_me:-configure}:17545: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
17547 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
17549 echo "${as_me:-configure}:17549: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
17552 for cf_rpath_src in $LDFLAGS
17554 case $cf_rpath_src in
17557 # check if this refers to a directory which we will ignore
17559 if test -n "$cf_rpath_list"
17561 for cf_rpath_item in $cf_rpath_list
17563 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
17571 if test "$cf_rpath_skip" = no
17573 # transform the option
17574 if test "$LD_RPATH_OPT" = "-R " ; then
17575 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
17577 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
17580 # if we have not already added this, add it now
17581 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
17582 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
17584 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
17586 echo "${as_me:-configure}:17586: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
17588 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
17593 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
17595 LDFLAGS=$cf_rpath_dst
17597 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
17599 echo "${as_me:-configure}:17599: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
17601 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
17603 echo "${as_me:-configure}:17603: testing ...checking LIBS $LIBS ..." 1>&5
17606 for cf_rpath_src in $LIBS
17608 case $cf_rpath_src in
17611 # check if this refers to a directory which we will ignore
17613 if test -n "$cf_rpath_list"
17615 for cf_rpath_item in $cf_rpath_list
17617 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
17625 if test "$cf_rpath_skip" = no
17627 # transform the option
17628 if test "$LD_RPATH_OPT" = "-R " ; then
17629 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
17631 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
17634 # if we have not already added this, add it now
17635 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
17636 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
17638 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
17640 echo "${as_me:-configure}:17640: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
17642 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
17647 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
17651 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
17653 echo "${as_me:-configure}:17653: testing ...checked LIBS $LIBS ..." 1>&5
17655 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
17657 echo "${as_me:-configure}:17657: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
17660 echo "$as_me:17660: result: no" >&5
17661 echo "${ECHO_T}no" >&6
17669 ac_config_files="$ac_config_files Makefile"
17670 ac_config_commands="$ac_config_commands default"
17671 cat >confcache <<\_ACEOF
17672 # This file is a shell script that caches the results of configure
17673 # tests run on this system so they can be shared between configure
17674 # scripts and configure runs, see configure's option --config-cache.
17675 # It is not useful on other systems. If it contains results you don't
17676 # want to keep, you may remove or edit it.
17678 # config.status only pays attention to the cache file if you give it
17679 # the --recheck option to rerun configure.
17681 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17682 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17683 # following values.
17687 # The following way of writing the cache mishandles newlines in values,
17688 # but we know of no workaround that is simple, portable, and efficient.
17689 # So, don't put newlines in cache variables' values.
17690 # Ultrix sh set writes to stderr and can't be redirected directly,
17691 # and sets the high bit in the cache file unless we assign to the vars.
17694 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17696 # `set' does not quote correctly, so add quotes (double-quote
17697 # substitution turns \\\\ into \\, and sed turns \\ into \).
17700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17703 # `set' quotes correctly as required by POSIX, so do not add quotes.
17705 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17712 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17714 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17716 if cmp -s $cache_file confcache; then :; else
17717 if test -w $cache_file; then
17718 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17719 cat confcache >$cache_file
17721 echo "not updating unwritable cache $cache_file"
17726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17727 # Let make expand exec_prefix.
17728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17730 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17731 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17732 # trailing colons and then remove the whole line if VPATH becomes empty
17733 # (actually we leave an empty line to preserve line numbers).
17734 if test "x$srcdir" = x.; then
17735 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17736 s/:*\$(srcdir):*/:/;
17737 s/:*\${srcdir}:*/:/;
17739 s/^\([^=]*=[ ]*\):*/\1/;
17745 DEFS=-DHAVE_CONFIG_H
17747 : ${CONFIG_STATUS=./config.status}
17748 ac_clean_files_save=$ac_clean_files
17749 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17750 { echo "$as_me:17750: creating $CONFIG_STATUS" >&5
17751 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17752 cat >$CONFIG_STATUS <<_ACEOF
17754 # Generated automatically by configure.
17755 # Run this file to recreate the current configuration.
17756 # Compiler output produced by configure, useful for debugging
17757 # configure, is in config.log if it exists.
17760 SHELL=\${CONFIG_SHELL-$SHELL}
17761 ac_cs_invocation="\$0 \$@"
17765 cat >>$CONFIG_STATUS <<\_ACEOF
17766 # Be Bourne compatible
17767 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17770 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17774 # Name of the executable.
17775 as_me=`echo "$0" |sed 's,.*[\\/],,'`
17777 if expr a : '\(a\)' >/dev/null 2>&1; then
17783 rm -f conf$$ conf$$.exe conf$$.file
17785 if ln -s conf$$.file conf$$ 2>/dev/null; then
17786 # We could just check for DJGPP; but this test a) works b) is more generic
17787 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17788 if test -f conf$$.exe; then
17789 # Don't use ln at all; we don't have any links
17794 elif ln conf$$.file conf$$ 2>/dev/null; then
17799 rm -f conf$$ conf$$.exe conf$$.file
17801 as_executable_p="test -f"
17803 # Support unset when possible.
17804 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17811 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
17812 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
17813 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
17814 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
17815 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
17816 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
17817 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
17818 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
17821 # We need space, tab and new line, in precisely that order.
17827 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
17833 # Files that config.status was made for.
17834 if test -n "$ac_config_files"; then
17835 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17838 if test -n "$ac_config_headers"; then
17839 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17842 if test -n "$ac_config_links"; then
17843 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17846 if test -n "$ac_config_commands"; then
17847 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17850 cat >>$CONFIG_STATUS <<\EOF
17853 \`$as_me' instantiates files from templates according to the
17854 current configuration.
17856 Usage: $0 [OPTIONS] [FILE]...
17858 -h, --help print this help, then exit
17859 -V, --version print version number, then exit
17860 -d, --debug don't remove temporary files
17861 --recheck update $as_me by reconfiguring in the same conditions
17862 --file=FILE[:TEMPLATE]
17863 instantiate the configuration file FILE
17864 --header=FILE[:TEMPLATE]
17865 instantiate the configuration header FILE
17867 Configuration files:
17870 Configuration headers:
17873 Configuration commands:
17876 Report bugs to <dickey@invisible-island.net>."
17879 cat >>$CONFIG_STATUS <<EOF
17882 configured by $0, generated by GNU Autoconf 2.52.20150926,
17883 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17885 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17886 Free Software Foundation, Inc.
17887 This config.status script is free software; the Free Software Foundation
17888 gives unlimited permission to copy, distribute and modify it."
17893 cat >>$CONFIG_STATUS <<\EOF
17894 # If no file are specified by the user, then we need to provide default
17895 # value. By we need to know if files were specified by the user.
17901 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17902 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17904 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17908 *) # This is not an option, so the user has probably given explicit
17910 ac_need_defaults=false;;
17914 # Handling of the options.
17916 cat >>$CONFIG_STATUS <<EOF
17917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17918 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17919 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17921 cat >>$CONFIG_STATUS <<\EOF
17922 --version | --vers* | -V )
17923 echo "$ac_cs_version"; exit 0 ;;
17925 # Conflict between --help and --header
17926 { { echo "$as_me:17926: error: ambiguous option: $1
17927 Try \`$0 --help' for more information." >&5
17928 echo "$as_me: error: ambiguous option: $1
17929 Try \`$0 --help' for more information." >&2;}
17930 { (exit 1); exit 1; }; };;
17931 --help | --hel | -h )
17932 echo "$ac_cs_usage"; exit 0 ;;
17933 --debug | --d* | -d )
17935 --file | --fil | --fi | --f )
17937 CONFIG_FILES="$CONFIG_FILES $1"
17938 ac_need_defaults=false;;
17939 --header | --heade | --head | --hea )
17941 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17942 ac_need_defaults=false;;
17944 # This is an error.
17945 -*) { { echo "$as_me:17945: error: unrecognized option: $1
17946 Try \`$0 --help' for more information." >&5
17947 echo "$as_me: error: unrecognized option: $1
17948 Try \`$0 --help' for more information." >&2;}
17949 { (exit 1); exit 1; }; } ;;
17951 *) ac_config_targets="$ac_config_targets $1" ;;
17960 ## ----------------------- ##
17961 ## Running config.status. ##
17962 ## ----------------------- ##
17964 This file was extended by $as_me 2.52.20150926, executed with
17965 CONFIG_FILES = $CONFIG_FILES
17966 CONFIG_HEADERS = $CONFIG_HEADERS
17967 CONFIG_LINKS = $CONFIG_LINKS
17968 CONFIG_COMMANDS = $CONFIG_COMMANDS
17969 > $ac_cs_invocation
17970 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17975 cat >>$CONFIG_STATUS <<EOF
17977 # INIT-COMMANDS section.
17987 cat >>$CONFIG_STATUS <<\EOF
17988 for ac_config_target in $ac_config_targets
17990 case "$ac_config_target" in
17991 # Handling of arguments.
17992 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17993 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17994 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
17995 *) { { echo "$as_me:17995: error: invalid argument: $ac_config_target" >&5
17996 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17997 { (exit 1); exit 1; }; };;
18001 # If the user did not use the arguments to specify the items to instantiate,
18002 # then the envvar interface is used. Set only those that are not.
18003 # We use the long form for the default assignment because of an extremely
18004 # bizarre bug on SunOS 4.1.3.
18005 if $ac_need_defaults; then
18006 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18007 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18008 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18011 # Create a temporary directory, and hook for its removal unless debugging.
18014 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18015 trap '{ (exit 1); exit 1; }' 1 2 13 15
18018 # Create a (secure) tmp directory for tmp files.
18021 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18022 test -n "$tmp" && test -d "$tmp"
18025 tmp=$TMPDIR/cs$$-$RANDOM
18026 (umask 077 && mkdir $tmp)
18029 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18030 { (exit 1); exit 1; }
18035 cat >>$CONFIG_STATUS <<EOF
18038 # CONFIG_FILES section.
18041 # No need to generate the scripts if there are no CONFIG_FILES.
18042 # This happens for instance when ./config.status config.h
18043 if test -n "\$CONFIG_FILES"; then
18044 # Protect against being on the right side of a sed subst in config.status.
18045 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18046 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18047 s,@SHELL@,$SHELL,;t t
18048 s,@exec_prefix@,$exec_prefix,;t t
18049 s,@prefix@,$prefix,;t t
18050 s,@program_transform_name@,$program_transform_name,;t t
18051 s,@bindir@,$bindir,;t t
18052 s,@sbindir@,$sbindir,;t t
18053 s,@libexecdir@,$libexecdir,;t t
18054 s,@datarootdir@,$datarootdir,;t t
18055 s,@datadir@,$datadir,;t t
18056 s,@sysconfdir@,$sysconfdir,;t t
18057 s,@sharedstatedir@,$sharedstatedir,;t t
18058 s,@localstatedir@,$localstatedir,;t t
18059 s,@libdir@,$libdir,;t t
18060 s,@includedir@,$includedir,;t t
18061 s,@oldincludedir@,$oldincludedir,;t t
18062 s,@infodir@,$infodir,;t t
18063 s,@mandir@,$mandir,;t t
18064 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18065 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18066 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18067 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18068 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18069 s,@build_alias@,$build_alias,;t t
18070 s,@host_alias@,$host_alias,;t t
18071 s,@target_alias@,$target_alias,;t t
18072 s,@ECHO_C@,$ECHO_C,;t t
18073 s,@ECHO_N@,$ECHO_N,;t t
18074 s,@ECHO_T@,$ECHO_T,;t t
18075 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18076 s,@DEFS@,$DEFS,;t t
18077 s,@LIBS@,$LIBS,;t t
18078 s,@build@,$build,;t t
18079 s,@build_cpu@,$build_cpu,;t t
18080 s,@build_vendor@,$build_vendor,;t t
18081 s,@build_os@,$build_os,;t t
18082 s,@host@,$host,;t t
18083 s,@host_cpu@,$host_cpu,;t t
18084 s,@host_vendor@,$host_vendor,;t t
18085 s,@host_os@,$host_os,;t t
18086 s,@SET_MAKE@,$SET_MAKE,;t t
18088 s,@CFLAGS@,$CFLAGS,;t t
18089 s,@LDFLAGS@,$LDFLAGS,;t t
18090 s,@CPPFLAGS@,$CPPFLAGS,;t t
18091 s,@ac_ct_CC@,$ac_ct_CC,;t t
18092 s,@EXEEXT@,$EXEEXT,;t t
18093 s,@OBJEXT@,$OBJEXT,;t t
18094 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
18097 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18098 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18099 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18100 s,@LINT@,$LINT,;t t
18101 s,@LINT_OPTS@,$LINT_OPTS,;t t
18102 s,@CTAGS@,$CTAGS,;t t
18103 s,@ETAGS@,$ETAGS,;t t
18104 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
18105 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
18106 s,@MATH_LIB@,$MATH_LIB,;t t
18107 s,@top_builddir@,$top_builddir,;t t
18108 s,@CC_G_OPT@,$CC_G_OPT,;t t
18109 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
18110 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
18111 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
18112 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
18114 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
18115 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
18116 s,@LD_MODEL@,$LD_MODEL,;t t
18117 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
18118 s,@LIBTOOL@,$LIBTOOL,;t t
18119 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
18120 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
18121 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
18122 s,@LIB_LINK@,$LIB_LINK,;t t
18123 s,@LINK_TESTS@,$LINK_TESTS,;t t
18124 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18125 s,@PACKAGE@,$PACKAGE,;t t
18126 s,@PTHREAD@,$PTHREAD,;t t
18127 s,@TEST_ARGS@,$TEST_ARGS,;t t
18128 s,@TEST_DEPS@,$TEST_DEPS,;t t
18129 s,@TEST_LIBS@,$TEST_LIBS,;t t
18130 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
18131 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
18132 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
18133 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
18134 s,@includesubdir@,$includesubdir,;t t
18135 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18136 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
18137 s,@ECHO_LT@,$ECHO_LT,;t t
18138 s,@ECHO_LD@,$ECHO_LD,;t t
18139 s,@RULE_CC@,$RULE_CC,;t t
18140 s,@SHOW_CC@,$SHOW_CC,;t t
18141 s,@ECHO_CC@,$ECHO_CC,;t t
18142 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
18143 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
18144 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
18145 s,@X_CFLAGS@,$X_CFLAGS,;t t
18146 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18147 s,@X_LIBS@,$X_LIBS,;t t
18148 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18149 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
18150 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
18151 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
18152 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
18153 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
18158 cat >>$CONFIG_STATUS <<\EOF
18159 # Split the substitutions into bite-sized pieces for seds with
18160 # small command number limits, like on Digital OSF/1 and HP-UX.
18161 ac_max_sed_lines=48
18162 ac_sed_frag=1 # Number of current file.
18163 ac_beg=1 # First line for current file.
18164 ac_end=$ac_max_sed_lines # Line after last line for current file.
18167 while $ac_more_lines; do
18168 if test $ac_beg -gt 1; then
18169 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18171 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18173 if test ! -s $tmp/subs.frag; then
18174 ac_more_lines=false
18176 # The purpose of the label and of the branching condition is to
18177 # speed up the sed processing (if there are no `@' at all, there
18178 # is no need to browse any of the substitutions).
18179 # These are the two extra sed commands mentioned above.
18181 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18182 # It is possible to make a multiline substitution using escaped newlines.
18183 # Ensure that we do not split the substitution between script fragments.
18185 ac_END=`expr $ac_end + $ac_max_sed_lines`
18186 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
18187 if test -s $tmp/subs.next; then
18188 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
18189 if test ! -s $tmp/subs.edit; then
18190 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
18191 if test ! -s $tmp/subs.edit; then
18192 if test $ac_beg -gt 1; then
18193 ac_end=`expr $ac_end - 1`
18200 if test -z "$ac_sed_cmds"; then
18201 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18203 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18205 ac_sed_frag=`expr $ac_sed_frag + 1`
18207 ac_end=`expr $ac_end + $ac_max_sed_lines`
18210 if test -z "$ac_sed_cmds"; then
18213 fi # test -n "$CONFIG_FILES"
18216 cat >>$CONFIG_STATUS <<\EOF
18217 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18218 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18220 - | *:- | *:-:* ) # input from stdin
18222 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18223 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18224 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18225 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18226 * ) ac_file_in=$ac_file.in ;;
18229 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18230 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18231 X"$ac_file" : 'X\(//\)[^/]' \| \
18232 X"$ac_file" : 'X\(//\)$' \| \
18233 X"$ac_file" : 'X\(/\)' \| \
18234 . : '\(.\)' 2>/dev/null ||
18236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18237 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18238 /^X\(\/\/\)$/{ s//\1/; q; }
18239 /^X\(\/\).*/{ s//\1/; q; }
18241 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18242 { case "$ac_dir" in
18243 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18247 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18248 case $as_mkdir_dir in
18249 # Skip DOS drivespec
18250 ?:) as_incr_dir=$as_mkdir_dir ;;
18252 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18253 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18258 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
18259 # A "../" for each directory in $ac_dir_suffix.
18260 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
18262 ac_dir_suffix= ac_dots=
18267 if test -z "$ac_dots"; then
18270 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
18272 [\\/]* | ?:[\\/]* )
18273 ac_srcdir=$srcdir$ac_dir_suffix;
18274 ac_top_srcdir=$srcdir ;;
18275 *) # Relative path.
18276 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
18277 ac_top_srcdir=$ac_dots$srcdir ;;
18281 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18282 *) ac_INSTALL=$ac_dots$INSTALL ;;
18285 if test x"$ac_file" != x-; then
18286 { echo "$as_me:18286: creating $ac_file" >&5
18287 echo "$as_me: creating $ac_file" >&6;}
18290 # Let's still pretend it is `configure' which instantiates (i.e., don't
18291 # use $as_me), people would be surprised to read:
18292 # /* config.h. Generated automatically by config.status. */
18293 configure_input="Generated automatically from `echo $ac_file_in |
18294 sed 's,.*/,,'` by configure."
18296 # First look for the input files in the build tree, otherwise in the
18298 ac_file_inputs=`IFS=:
18299 for f in $ac_file_in; do
18301 -) echo $tmp/stdin ;;
18303 # Absolute (can't be DOS-style, as IFS=:)
18304 test -f "$f" || { { echo "$as_me:18304: error: cannot find input file: $f" >&5
18305 echo "$as_me: error: cannot find input file: $f" >&2;}
18306 { (exit 1); exit 1; }; }
18309 if test -f "$f"; then
18312 elif test -f "$srcdir/$f"; then
18317 { { echo "$as_me:18317: error: cannot find input file: $f" >&5
18318 echo "$as_me: error: cannot find input file: $f" >&2;}
18319 { (exit 1); exit 1; }; }
18322 done` || { (exit 1); exit 1; }
18324 cat >>$CONFIG_STATUS <<\EOF
18325 ac_warn_datarootdir=no
18326 if test x"$ac_file" != x-; then
18327 for ac_item in $ac_file_inputs
18329 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
18330 if test -n "$ac_seen"; then
18331 ac_used=`grep '@datarootdir@' $ac_item`
18332 if test -z "$ac_used"; then
18333 { echo "$as_me:18333: WARNING: datarootdir was used implicitly but not set:
18335 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
18337 ac_warn_datarootdir=yes
18340 ac_seen=`grep '${datarootdir}' $ac_item`
18341 if test -n "$ac_seen"; then
18342 { echo "$as_me:18342: WARNING: datarootdir was used explicitly but not set:
18344 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
18346 ac_warn_datarootdir=yes
18351 if test "x$ac_warn_datarootdir" = xyes; then
18352 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
18356 cat >>$CONFIG_STATUS <<EOF
18360 cat >>$CONFIG_STATUS <<\EOF
18362 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18363 s,@configure_input@,$configure_input,;t t
18364 s,@srcdir@,$ac_srcdir,;t t
18365 s,@top_srcdir@,$ac_top_srcdir,;t t
18366 s,@INSTALL@,$ac_INSTALL,;t t
18367 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18369 if test x"$ac_file" != x-; then
18370 cp $tmp/out $ac_file
18372 for ac_name in prefix exec_prefix datarootdir
18374 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
18375 if test -n "$ac_seen"; then
18376 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
18377 if test -z "$ac_init"; then
18378 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
18379 { echo "$as_me:18379: WARNING: Variable $ac_name is used but was not set:
18381 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
18386 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
18387 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
18388 if test -s $tmp/out; then
18389 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
18390 { echo "$as_me:18390: WARNING: Some variables may not be substituted:
18392 echo "$as_me: WARNING: Some variables may not be substituted:
18402 cat >>$CONFIG_STATUS <<\EOF
18405 # CONFIG_HEADER section.
18408 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18409 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18411 # ac_d sets the value in "#define NAME VALUE" lines.
18412 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18413 ac_dB='[ ].*$,\1#\2'
18416 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18417 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18418 ac_iB='\([ ]\),\1#\2define\3'
18421 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18422 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18423 ac_uB='$,\1#\2define\3'
18427 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18428 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18430 - | *:- | *:-:* ) # input from stdin
18432 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18433 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18434 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18435 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18436 * ) ac_file_in=$ac_file.in ;;
18439 test x"$ac_file" != x- && { echo "$as_me:18439: creating $ac_file" >&5
18440 echo "$as_me: creating $ac_file" >&6;}
18442 # First look for the input files in the build tree, otherwise in the
18444 ac_file_inputs=`IFS=:
18445 for f in $ac_file_in; do
18447 -) echo $tmp/stdin ;;
18449 # Absolute (can't be DOS-style, as IFS=:)
18450 test -f "$f" || { { echo "$as_me:18450: error: cannot find input file: $f" >&5
18451 echo "$as_me: error: cannot find input file: $f" >&2;}
18452 { (exit 1); exit 1; }; }
18455 if test -f "$f"; then
18458 elif test -f "$srcdir/$f"; then
18463 { { echo "$as_me:18463: error: cannot find input file: $f" >&5
18464 echo "$as_me: error: cannot find input file: $f" >&2;}
18465 { (exit 1); exit 1; }; }
18468 done` || { (exit 1); exit 1; }
18469 # Remove the trailing spaces.
18470 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18474 # Transform confdefs.h into a list of #define's. We won't use it as a sed
18475 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
18476 # be either 'cat' or 'sort'.
18477 cat confdefs.h | uniq >conftest.vals
18479 # Break up conftest.vals because some shells have a limit on
18480 # the size of here documents, and old seds have small limits too.
18482 rm -f conftest.tail
18483 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
18484 while grep . conftest.vals >/dev/null
18486 # Write chunks of a limited-size here document to conftest.frag.
18487 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
18488 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
18489 echo 'CEOF' >> $CONFIG_STATUS
18490 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18491 rm -f conftest.vals
18492 mv conftest.tail conftest.vals
18494 rm -f conftest.vals
18496 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
18498 echo ' cat >> conftest.edit <<CEOF
18499 /@DEFS@/r conftest.frag
18502 sed -f conftest.edit $tmp/in > $tmp/out
18504 mv $tmp/out $tmp/in
18505 rm -f conftest.edit conftest.frag
18506 ' >> $CONFIG_STATUS
18508 cat >>$CONFIG_STATUS <<\EOF
18509 # Let's still pretend it is `configure' which instantiates (i.e., don't
18510 # use $as_me), people would be surprised to read:
18511 # /* config.h. Generated automatically by config.status. */
18512 if test x"$ac_file" = x-; then
18513 echo "/* Generated automatically by configure. */" >$tmp/config.h
18515 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
18517 cat $tmp/in >>$tmp/config.h
18519 if test x"$ac_file" != x-; then
18520 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18521 { echo "$as_me:18521: $ac_file is unchanged" >&5
18522 echo "$as_me: $ac_file is unchanged" >&6;}
18524 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18525 X"$ac_file" : 'X\(//\)[^/]' \| \
18526 X"$ac_file" : 'X\(//\)$' \| \
18527 X"$ac_file" : 'X\(/\)' \| \
18528 . : '\(.\)' 2>/dev/null ||
18530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18532 /^X\(\/\/\)$/{ s//\1/; q; }
18533 /^X\(\/\).*/{ s//\1/; q; }
18535 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18536 { case "$ac_dir" in
18537 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18541 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18542 case $as_mkdir_dir in
18543 # Skip DOS drivespec
18544 ?:) as_incr_dir=$as_mkdir_dir ;;
18546 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18547 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18554 mv $tmp/config.h $ac_file
18558 rm -f $tmp/config.h
18562 cat >>$CONFIG_STATUS <<\EOF
18564 # CONFIG_COMMANDS section.
18566 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18567 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18568 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18575 if test ! -d $srcdir/$cf_dir; then
18577 elif test -f $srcdir/$cf_dir/programs; then
18578 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
18582 cat >>Makefile <<TEST_EOF
18584 # These rules are generated so we do not rely on suffix rules, which do not
18585 # work consistently for different make-programs (the '\$(MODEL)/' confuses
18586 # some, and the '\$x' confuses others).
18589 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
18592 cat >>Makefile <<TEST_EOF
18594 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
18595 \$(srcdir)/test.priv.h \\
18598 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) \$(srcdir)/$N.c
18602 if test -f ../config.guess && test -f ../config.sub
18604 cat >>Makefile <<TEST_EOF
18606 # if we used CF_INHERIT for getting these files, we can remove them
18608 rm -f config.guess config.sub
18616 cat >>$CONFIG_STATUS <<\EOF
18618 { (exit 0); exit 0; }
18620 chmod +x $CONFIG_STATUS
18621 ac_clean_files=$ac_clean_files_save
18623 # configure is writing to config.log, and then calls config.status.
18624 # config.status does its own redirection, appending to config.log.
18625 # Unfortunately, on DOS this fails, as config.log is still kept open
18626 # by configure, so config.status won't be able to write to it; its
18627 # output is simply discarded. So we exec the FD to /dev/null,
18628 # effectively closing config.log, so it can be properly (re)opened and
18629 # appended to by config.status. When coming back to configure, we
18630 # need to make the FD available again.
18631 if test "$no_create" != yes; then
18634 $SHELL $CONFIG_STATUS || ac_cs_success=false
18636 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18637 # would make configure fail if this is the last instruction.
18638 $ac_cs_success || { (exit 1); exit 1; }