2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20121002.
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-ncursesw use wide ncurses-libraries
665 --with-ncurses use ncurses-libraries
666 --with-pdcurses compile/link with pdcurses X11 library
667 --with-curses-colr compile/link with HPUX 10.x color-curses
668 --with-curses-5lib compile/link with SunOS 5lib curses
669 --with-Xaw3d link with Xaw 3d library
670 --with-neXtaw link with neXT Athena library
671 --with-XawPlus link with Athena-Plus library
672 --with-x use the X Window System
673 Testing/development Options:
674 --enable-warnings test: turn on gcc compiler warnings
675 --with-dmalloc test: use Gray Watson's dmalloc library
676 --with-dbmalloc test: use Conor Cahill's dbmalloc library
677 --with-valgrind test: use valgrind
678 --disable-leaks test: free permanent memory, analyze leaks
679 --disable-rpath-hack don't add rpath options for additional libraries
681 Some influential environment variables:
682 CC C compiler command
683 CFLAGS C compiler flags
684 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
685 nonstandard directory <lib dir>
686 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
687 headers in a nonstandard directory <include dir>
690 Use these variables to override the choices made by `configure' or to help
691 it to find libraries and programs with nonstandard names/locations.
696 if test "$ac_init_help" = "recursive"; then
697 # If there are subdirs, report their specific --help.
699 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
701 # A "../" for each directory in /$ac_subdir.
702 ac_dots=`echo $ac_subdir |
703 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
706 .) # No --srcdir option. We are building in place.
707 ac_sub_srcdir=$srcdir ;;
708 [\\/]* | ?:[\\/]* ) # Absolute path.
709 ac_sub_srcdir=$srcdir/$ac_subdir ;;
711 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
714 # Check for guested configure; otherwise get Cygnus style configure.
715 if test -f $ac_sub_srcdir/configure.gnu; then
717 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
718 elif test -f $ac_sub_srcdir/configure; then
720 $SHELL $ac_sub_srcdir/configure --help=recursive
721 elif test -f $ac_sub_srcdir/configure.ac ||
722 test -f $ac_sub_srcdir/configure.in; then
726 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
732 test -n "$ac_init_help" && exit 0
733 if $ac_init_version; then
736 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
737 Free Software Foundation, Inc.
738 This configure script is free software; the Free Software Foundation
739 gives unlimited permission to copy, distribute and modify it.
745 This file contains any messages produced by compilers while
746 running configure, to aid debugging if configure makes a mistake.
748 It was created by $as_me, which was
749 generated by GNU Autoconf 2.52.20121002. Invocation command line was
760 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
761 uname -m = `(uname -m) 2>/dev/null || echo unknown`
762 uname -r = `(uname -r) 2>/dev/null || echo unknown`
763 uname -s = `(uname -s) 2>/dev/null || echo unknown`
764 uname -v = `(uname -v) 2>/dev/null || echo unknown`
766 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
767 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
769 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
770 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
771 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
772 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
773 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
774 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
775 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
789 # Keep a trace of the command line.
790 # Strip out --no-create and --no-recursion so they do not pile up.
791 # Also quote any args containing shell meta-characters.
797 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
798 | --no-cr | --no-c) ;;
799 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
800 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
801 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
802 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
803 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
805 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
808 # Get rid of the leading space.
811 # When interrupted or exit'd, cleanup temporary files, and complete
812 # config.log. We remove comments because anyway the quotes in there
813 # would cause problems or look ugly.
815 # Save into config.log some information that might help in debugging.
817 echo "## ----------------- ##" >&5
818 echo "## Cache variables. ##" >&5
819 echo "## ----------------- ##" >&5
821 # The following way of writing the cache mishandles newlines in values,
824 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
827 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
832 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
836 sed "/^$/d" confdefs.h >conftest.log
837 if test -s conftest.log; then
839 echo "## ------------ ##" >&5
840 echo "## confdefs.h. ##" >&5
841 echo "## ------------ ##" >&5
846 test "$ac_signal" != 0 &&
847 echo "$as_me: caught signal $ac_signal" >&5
848 echo "$as_me: exit $exit_status" >&5
849 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
852 for ac_signal in 1 2 13 15; do
853 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
857 # confdefs.h avoids OS command line length limits that DEFS can exceed.
858 rm -rf conftest* confdefs.h
859 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
862 # Let the site file select an alternate cache file if it wants to.
863 # Prefer explicitly selected file to automatically selected ones.
864 if test -z "$CONFIG_SITE"; then
865 if test "x$prefix" != xNONE; then
866 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
868 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
871 for ac_site_file in $CONFIG_SITE; do
872 if test -r "$ac_site_file"; then
873 { echo "$as_me:873: loading site script $ac_site_file" >&5
874 echo "$as_me: loading site script $ac_site_file" >&6;}
875 cat "$ac_site_file" >&5
880 if test -r "$cache_file"; then
881 # Some versions of bash will fail to source /dev/null (special
882 # files actually), so we avoid doing that.
883 if test -f "$cache_file"; then
884 { echo "$as_me:884: loading cache $cache_file" >&5
885 echo "$as_me: loading cache $cache_file" >&6;}
887 [\\/]* | ?:[\\/]* ) . $cache_file;;
892 { echo "$as_me:892: creating cache $cache_file" >&5
893 echo "$as_me: creating cache $cache_file" >&6;}
897 # Check that the precious variables saved in the cache have kept the same
899 ac_cache_corrupted=false
900 for ac_var in `(set) 2>&1 |
901 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
902 eval ac_old_set=\$ac_cv_env_${ac_var}_set
903 eval ac_new_set=\$ac_env_${ac_var}_set
904 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
905 eval ac_new_val="\$ac_env_${ac_var}_value"
906 case $ac_old_set,$ac_new_set in
908 { echo "$as_me:908: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
909 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
910 ac_cache_corrupted=: ;;
912 { echo "$as_me:912: error: \`$ac_var' was not set in the previous run" >&5
913 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
914 ac_cache_corrupted=: ;;
917 if test "x$ac_old_val" != "x$ac_new_val"; then
918 { echo "$as_me:918: error: \`$ac_var' has changed since the previous run:" >&5
919 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
920 { echo "$as_me:920: former value: $ac_old_val" >&5
921 echo "$as_me: former value: $ac_old_val" >&2;}
922 { echo "$as_me:922: current value: $ac_new_val" >&5
923 echo "$as_me: current value: $ac_new_val" >&2;}
927 # Pass precious variables to config.status. It doesn't matter if
928 # we pass some twice (in addition to the command line arguments).
929 if test "$ac_new_set" = set; then
931 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
932 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
933 ac_configure_args="$ac_configure_args '$ac_arg'"
935 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
940 if $ac_cache_corrupted; then
941 { echo "$as_me:941: error: changes in the environment can compromise the build" >&5
942 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
943 { { echo "$as_me:943: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
944 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
945 { (exit 1); exit 1; }; }
949 ac_cpp='$CPP $CPPFLAGS'
950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
953 ac_main_return=return
955 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
956 *c*,-n*) ECHO_N= ECHO_C='
958 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
959 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
961 echo "#! $SHELL" >conftest.sh
962 echo "exit 0" >>conftest.sh
964 if { (echo "$as_me:964: PATH=\".;.\"; conftest.sh") >&5
965 (PATH=".;."; conftest.sh) 2>&5
967 echo "$as_me:967: \$? = $ac_status" >&5
968 (exit $ac_status); }; then
969 ac_path_separator=';'
973 PATH_SEPARATOR="$ac_path_separator"
976 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
978 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
980 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
983 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
984 if test -f $ac_dir/install-sh; then
986 ac_install_sh="$ac_aux_dir/install-sh -c"
988 elif test -f $ac_dir/install.sh; then
990 ac_install_sh="$ac_aux_dir/install.sh -c"
992 elif test -f $ac_dir/shtool; then
994 ac_install_sh="$ac_aux_dir/shtool install -c"
998 if test -z "$ac_aux_dir"; then
999 { { echo "$as_me:999: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1000 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1001 { (exit 1); exit 1; }; }
1003 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1004 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1005 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1007 # Make sure we can run config.sub.
1008 $ac_config_sub sun4 >/dev/null 2>&1 ||
1009 { { echo "$as_me:1009: error: cannot run $ac_config_sub" >&5
1010 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1011 { (exit 1); exit 1; }; }
1013 echo "$as_me:1013: checking build system type" >&5
1014 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1015 if test "${ac_cv_build+set}" = set; then
1016 echo $ECHO_N "(cached) $ECHO_C" >&6
1018 ac_cv_build_alias=$build_alias
1019 test -z "$ac_cv_build_alias" &&
1020 ac_cv_build_alias=`$ac_config_guess`
1021 test -z "$ac_cv_build_alias" &&
1022 { { echo "$as_me:1022: error: cannot guess build type; you must specify one" >&5
1023 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1024 { (exit 1); exit 1; }; }
1025 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1026 { { echo "$as_me:1026: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1027 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1028 { (exit 1); exit 1; }; }
1031 echo "$as_me:1031: result: $ac_cv_build" >&5
1032 echo "${ECHO_T}$ac_cv_build" >&6
1034 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1035 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1036 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1038 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1039 echo "$as_me:1039: checking host system type" >&5
1040 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1041 if test "${ac_cv_host+set}" = set; then
1042 echo $ECHO_N "(cached) $ECHO_C" >&6
1044 ac_cv_host_alias=$host_alias
1045 test -z "$ac_cv_host_alias" &&
1046 ac_cv_host_alias=$ac_cv_build_alias
1047 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1048 { { echo "$as_me:1048: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1049 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1050 { (exit 1); exit 1; }; }
1053 echo "$as_me:1053: result: $ac_cv_host" >&5
1054 echo "${ECHO_T}$ac_cv_host" >&6
1056 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1057 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1058 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060 system_name="$host_os"
1062 system_name="`(uname -s -r) 2>/dev/null`"
1063 if test -z "$system_name" ; then
1064 system_name="`(hostname) 2>/dev/null`"
1067 test -n "$system_name" &&
1068 cat >>confdefs.h <<EOF
1069 #define SYSTEM_NAME "$system_name"
1072 if test "${cf_cv_system_name+set}" = set; then
1073 echo $ECHO_N "(cached) $ECHO_C" >&6
1075 cf_cv_system_name="$system_name"
1078 test -z "$system_name" && system_name="$cf_cv_system_name"
1079 test -n "$cf_cv_system_name" && echo "$as_me:1079: result: Configuring for $cf_cv_system_name" >&5
1080 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1082 if test ".$system_name" != ".$cf_cv_system_name" ; then
1083 echo "$as_me:1083: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1084 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1085 { { echo "$as_me:1085: error: \"Please remove config.cache and try again.\"" >&5
1086 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1087 { (exit 1); exit 1; }; }
1090 test "$program_prefix" != NONE &&
1091 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1092 # Use a double $ so make ignores it.
1093 test "$program_suffix" != NONE &&
1094 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1095 # Double any \ or $. echo might interpret backslashes.
1096 # By default was `s,x,x', remove it if useless.
1097 cat <<\_ACEOF >conftest.sed
1098 s/[\\$]/&&/g;s/;s,x,x,$//
1100 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1103 echo "$as_me:1103: checking whether ${MAKE-make} sets \${MAKE}" >&5
1104 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1105 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1106 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1107 echo $ECHO_N "(cached) $ECHO_C" >&6
1109 cat >conftest.make <<\EOF
1111 @echo 'ac_maketemp="${MAKE}"'
1113 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1114 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1115 if test -n "$ac_maketemp"; then
1116 eval ac_cv_prog_make_${ac_make}_set=yes
1118 eval ac_cv_prog_make_${ac_make}_set=no
1122 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1123 echo "$as_me:1123: result: yes" >&5
1124 echo "${ECHO_T}yes" >&6
1127 echo "$as_me:1127: result: no" >&5
1128 echo "${ECHO_T}no" >&6
1129 SET_MAKE="MAKE=${MAKE-make}"
1133 ac_cpp='$CPP $CPPFLAGS'
1134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1137 ac_main_return=return
1138 if test -n "$ac_tool_prefix"; then
1139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1140 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1141 echo "$as_me:1141: checking for $ac_word" >&5
1142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1143 if test "${ac_cv_prog_CC+set}" = set; then
1144 echo $ECHO_N "(cached) $ECHO_C" >&6
1146 if test -n "$CC"; then
1147 ac_cv_prog_CC="$CC" # Let the user override the test.
1149 ac_save_IFS=$IFS; IFS=$ac_path_separator
1151 for ac_dir in $ac_dummy; do
1153 test -z "$ac_dir" && ac_dir=.
1154 $as_executable_p "$ac_dir/$ac_word" || continue
1155 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1156 echo "$as_me:1156: found $ac_dir/$ac_word" >&5
1163 if test -n "$CC"; then
1164 echo "$as_me:1164: result: $CC" >&5
1165 echo "${ECHO_T}$CC" >&6
1167 echo "$as_me:1167: result: no" >&5
1168 echo "${ECHO_T}no" >&6
1172 if test -z "$ac_cv_prog_CC"; then
1174 # Extract the first word of "gcc", so it can be a program name with args.
1175 set dummy gcc; ac_word=$2
1176 echo "$as_me:1176: checking for $ac_word" >&5
1177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1179 echo $ECHO_N "(cached) $ECHO_C" >&6
1181 if test -n "$ac_ct_CC"; then
1182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1184 ac_save_IFS=$IFS; IFS=$ac_path_separator
1186 for ac_dir in $ac_dummy; do
1188 test -z "$ac_dir" && ac_dir=.
1189 $as_executable_p "$ac_dir/$ac_word" || continue
1190 ac_cv_prog_ac_ct_CC="gcc"
1191 echo "$as_me:1191: found $ac_dir/$ac_word" >&5
1197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1198 if test -n "$ac_ct_CC"; then
1199 echo "$as_me:1199: result: $ac_ct_CC" >&5
1200 echo "${ECHO_T}$ac_ct_CC" >&6
1202 echo "$as_me:1202: result: no" >&5
1203 echo "${ECHO_T}no" >&6
1211 if test -z "$CC"; then
1212 if test -n "$ac_tool_prefix"; then
1213 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1214 set dummy ${ac_tool_prefix}cc; ac_word=$2
1215 echo "$as_me:1215: checking for $ac_word" >&5
1216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1217 if test "${ac_cv_prog_CC+set}" = set; then
1218 echo $ECHO_N "(cached) $ECHO_C" >&6
1220 if test -n "$CC"; then
1221 ac_cv_prog_CC="$CC" # Let the user override the test.
1223 ac_save_IFS=$IFS; IFS=$ac_path_separator
1225 for ac_dir in $ac_dummy; do
1227 test -z "$ac_dir" && ac_dir=.
1228 $as_executable_p "$ac_dir/$ac_word" || continue
1229 ac_cv_prog_CC="${ac_tool_prefix}cc"
1230 echo "$as_me:1230: found $ac_dir/$ac_word" >&5
1237 if test -n "$CC"; then
1238 echo "$as_me:1238: result: $CC" >&5
1239 echo "${ECHO_T}$CC" >&6
1241 echo "$as_me:1241: result: no" >&5
1242 echo "${ECHO_T}no" >&6
1246 if test -z "$ac_cv_prog_CC"; then
1248 # Extract the first word of "cc", so it can be a program name with args.
1249 set dummy cc; ac_word=$2
1250 echo "$as_me:1250: checking for $ac_word" >&5
1251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1252 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1253 echo $ECHO_N "(cached) $ECHO_C" >&6
1255 if test -n "$ac_ct_CC"; then
1256 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1258 ac_save_IFS=$IFS; IFS=$ac_path_separator
1260 for ac_dir in $ac_dummy; do
1262 test -z "$ac_dir" && ac_dir=.
1263 $as_executable_p "$ac_dir/$ac_word" || continue
1264 ac_cv_prog_ac_ct_CC="cc"
1265 echo "$as_me:1265: found $ac_dir/$ac_word" >&5
1271 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1272 if test -n "$ac_ct_CC"; then
1273 echo "$as_me:1273: result: $ac_ct_CC" >&5
1274 echo "${ECHO_T}$ac_ct_CC" >&6
1276 echo "$as_me:1276: result: no" >&5
1277 echo "${ECHO_T}no" >&6
1286 if test -z "$CC"; then
1287 # Extract the first word of "cc", so it can be a program name with args.
1288 set dummy cc; ac_word=$2
1289 echo "$as_me:1289: checking for $ac_word" >&5
1290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1291 if test "${ac_cv_prog_CC+set}" = set; then
1292 echo $ECHO_N "(cached) $ECHO_C" >&6
1294 if test -n "$CC"; then
1295 ac_cv_prog_CC="$CC" # Let the user override the test.
1298 ac_save_IFS=$IFS; IFS=$ac_path_separator
1300 for ac_dir in $ac_dummy; do
1302 test -z "$ac_dir" && ac_dir=.
1303 $as_executable_p "$ac_dir/$ac_word" || continue
1304 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1305 ac_prog_rejected=yes
1309 echo "$as_me:1309: found $ac_dir/$ac_word" >&5
1313 if test $ac_prog_rejected = yes; then
1314 # We found a bogon in the path, so make sure we never use it.
1315 set dummy $ac_cv_prog_CC
1317 if test $# != 0; then
1318 # We chose a different compiler from the bogus one.
1319 # However, it has the same basename, so the bogon will be chosen
1320 # first if we set CC to just the basename; use the full file name.
1322 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1330 if test -n "$CC"; then
1331 echo "$as_me:1331: result: $CC" >&5
1332 echo "${ECHO_T}$CC" >&6
1334 echo "$as_me:1334: result: no" >&5
1335 echo "${ECHO_T}no" >&6
1339 if test -z "$CC"; then
1340 if test -n "$ac_tool_prefix"; then
1343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1345 echo "$as_me:1345: checking for $ac_word" >&5
1346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1347 if test "${ac_cv_prog_CC+set}" = set; then
1348 echo $ECHO_N "(cached) $ECHO_C" >&6
1350 if test -n "$CC"; then
1351 ac_cv_prog_CC="$CC" # Let the user override the test.
1353 ac_save_IFS=$IFS; IFS=$ac_path_separator
1355 for ac_dir in $ac_dummy; do
1357 test -z "$ac_dir" && ac_dir=.
1358 $as_executable_p "$ac_dir/$ac_word" || continue
1359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1360 echo "$as_me:1360: found $ac_dir/$ac_word" >&5
1367 if test -n "$CC"; then
1368 echo "$as_me:1368: result: $CC" >&5
1369 echo "${ECHO_T}$CC" >&6
1371 echo "$as_me:1371: result: no" >&5
1372 echo "${ECHO_T}no" >&6
1375 test -n "$CC" && break
1378 if test -z "$CC"; then
1382 # Extract the first word of "$ac_prog", so it can be a program name with args.
1383 set dummy $ac_prog; ac_word=$2
1384 echo "$as_me:1384: checking for $ac_word" >&5
1385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1386 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1387 echo $ECHO_N "(cached) $ECHO_C" >&6
1389 if test -n "$ac_ct_CC"; then
1390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1392 ac_save_IFS=$IFS; IFS=$ac_path_separator
1394 for ac_dir in $ac_dummy; do
1396 test -z "$ac_dir" && ac_dir=.
1397 $as_executable_p "$ac_dir/$ac_word" || continue
1398 ac_cv_prog_ac_ct_CC="$ac_prog"
1399 echo "$as_me:1399: found $ac_dir/$ac_word" >&5
1405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1406 if test -n "$ac_ct_CC"; then
1407 echo "$as_me:1407: result: $ac_ct_CC" >&5
1408 echo "${ECHO_T}$ac_ct_CC" >&6
1410 echo "$as_me:1410: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1414 test -n "$ac_ct_CC" && break
1422 test -z "$CC" && { { echo "$as_me:1422: error: no acceptable cc found in \$PATH" >&5
1423 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1424 { (exit 1); exit 1; }; }
1426 # Provide some information about the compiler.
1427 echo "$as_me:1427:" \
1428 "checking for C compiler version" >&5
1429 ac_compiler=`set X $ac_compile; echo $2`
1430 { (eval echo "$as_me:1430: \"$ac_compiler --version </dev/null >&5\"") >&5
1431 (eval $ac_compiler --version </dev/null >&5) 2>&5
1433 echo "$as_me:1433: \$? = $ac_status" >&5
1434 (exit $ac_status); }
1435 { (eval echo "$as_me:1435: \"$ac_compiler -v </dev/null >&5\"") >&5
1436 (eval $ac_compiler -v </dev/null >&5) 2>&5
1438 echo "$as_me:1438: \$? = $ac_status" >&5
1439 (exit $ac_status); }
1440 { (eval echo "$as_me:1440: \"$ac_compiler -V </dev/null >&5\"") >&5
1441 (eval $ac_compiler -V </dev/null >&5) 2>&5
1443 echo "$as_me:1443: \$? = $ac_status" >&5
1444 (exit $ac_status); }
1446 cat >conftest.$ac_ext <<_ACEOF
1447 #line 1447 "configure"
1448 #include "confdefs.h"
1458 ac_clean_files_save=$ac_clean_files
1459 ac_clean_files="$ac_clean_files a.out a.exe"
1460 # Try to create an executable without -o first, disregard a.out.
1461 # It will help us diagnose broken compilers, and finding out an intuition
1463 echo "$as_me:1463: checking for C compiler default output" >&5
1464 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1465 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1466 if { (eval echo "$as_me:1466: \"$ac_link_default\"") >&5
1467 (eval $ac_link_default) 2>&5
1469 echo "$as_me:1469: \$? = $ac_status" >&5
1470 (exit $ac_status); }; then
1471 # Find the output, starting from the most likely. This scheme is
1472 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1474 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1475 ls a.out conftest 2>/dev/null;
1476 ls a.* conftest.* 2>/dev/null`; do
1478 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1479 a.out ) # We found the default executable, but exeext='' is most
1482 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1483 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1490 echo "$as_me: failed program was:" >&5
1491 cat conftest.$ac_ext >&5
1492 { { echo "$as_me:1492: error: C compiler cannot create executables" >&5
1493 echo "$as_me: error: C compiler cannot create executables" >&2;}
1494 { (exit 77); exit 77; }; }
1497 ac_exeext=$ac_cv_exeext
1498 echo "$as_me:1498: result: $ac_file" >&5
1499 echo "${ECHO_T}$ac_file" >&6
1501 # Check the compiler produces executables we can run. If not, either
1502 # the compiler is broken, or we cross compile.
1503 echo "$as_me:1503: checking whether the C compiler works" >&5
1504 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1505 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1506 # If not cross compiling, check that we can run a simple program.
1507 if test "$cross_compiling" != yes; then
1508 if { ac_try='./$ac_file'
1509 { (eval echo "$as_me:1509: \"$ac_try\"") >&5
1512 echo "$as_me:1512: \$? = $ac_status" >&5
1513 (exit $ac_status); }; }; then
1516 if test "$cross_compiling" = maybe; then
1519 { { echo "$as_me:1519: error: cannot run C compiled programs.
1520 If you meant to cross compile, use \`--host'." >&5
1521 echo "$as_me: error: cannot run C compiled programs.
1522 If you meant to cross compile, use \`--host'." >&2;}
1523 { (exit 1); exit 1; }; }
1527 echo "$as_me:1527: result: yes" >&5
1528 echo "${ECHO_T}yes" >&6
1530 rm -f a.out a.exe conftest$ac_cv_exeext
1531 ac_clean_files=$ac_clean_files_save
1532 # Check the compiler produces executables we can run. If not, either
1533 # the compiler is broken, or we cross compile.
1534 echo "$as_me:1534: checking whether we are cross compiling" >&5
1535 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1536 echo "$as_me:1536: result: $cross_compiling" >&5
1537 echo "${ECHO_T}$cross_compiling" >&6
1539 echo "$as_me:1539: checking for executable suffix" >&5
1540 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1541 if { (eval echo "$as_me:1541: \"$ac_link\"") >&5
1542 (eval $ac_link) 2>&5
1544 echo "$as_me:1544: \$? = $ac_status" >&5
1545 (exit $ac_status); }; then
1546 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1547 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1548 # work properly (i.e., refer to `conftest.exe'), while it won't with
1550 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1552 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1553 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1560 { { echo "$as_me:1560: error: cannot compute EXEEXT: cannot compile and link" >&5
1561 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1562 { (exit 1); exit 1; }; }
1565 rm -f conftest$ac_cv_exeext
1566 echo "$as_me:1566: result: $ac_cv_exeext" >&5
1567 echo "${ECHO_T}$ac_cv_exeext" >&6
1569 rm -f conftest.$ac_ext
1570 EXEEXT=$ac_cv_exeext
1572 echo "$as_me:1572: checking for object suffix" >&5
1573 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1574 if test "${ac_cv_objext+set}" = set; then
1575 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 cat >conftest.$ac_ext <<_ACEOF
1578 #line 1578 "configure"
1579 #include "confdefs.h"
1589 rm -f conftest.o conftest.obj
1590 if { (eval echo "$as_me:1590: \"$ac_compile\"") >&5
1591 (eval $ac_compile) 2>&5
1593 echo "$as_me:1593: \$? = $ac_status" >&5
1594 (exit $ac_status); }; then
1595 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1597 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1598 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1603 echo "$as_me: failed program was:" >&5
1604 cat conftest.$ac_ext >&5
1605 { { echo "$as_me:1605: error: cannot compute OBJEXT: cannot compile" >&5
1606 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1607 { (exit 1); exit 1; }; }
1610 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1612 echo "$as_me:1612: result: $ac_cv_objext" >&5
1613 echo "${ECHO_T}$ac_cv_objext" >&6
1614 OBJEXT=$ac_cv_objext
1616 echo "$as_me:1616: checking whether we are using the GNU C compiler" >&5
1617 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1618 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1621 cat >conftest.$ac_ext <<_ACEOF
1622 #line 1622 "configure"
1623 #include "confdefs.h"
1636 rm -f conftest.$ac_objext
1637 if { (eval echo "$as_me:1637: \"$ac_compile\"") >&5
1638 (eval $ac_compile) 2>&5
1640 echo "$as_me:1640: \$? = $ac_status" >&5
1641 (exit $ac_status); } &&
1642 { ac_try='test -s conftest.$ac_objext'
1643 { (eval echo "$as_me:1643: \"$ac_try\"") >&5
1646 echo "$as_me:1646: \$? = $ac_status" >&5
1647 (exit $ac_status); }; }; then
1650 echo "$as_me: failed program was:" >&5
1651 cat conftest.$ac_ext >&5
1654 rm -f conftest.$ac_objext conftest.$ac_ext
1655 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1658 echo "$as_me:1658: result: $ac_cv_c_compiler_gnu" >&5
1659 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1660 GCC=`test $ac_compiler_gnu = yes && echo yes`
1661 ac_test_CFLAGS=${CFLAGS+set}
1662 ac_save_CFLAGS=$CFLAGS
1664 echo "$as_me:1664: checking whether $CC accepts -g" >&5
1665 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1666 if test "${ac_cv_prog_cc_g+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1669 cat >conftest.$ac_ext <<_ACEOF
1670 #line 1670 "configure"
1671 #include "confdefs.h"
1681 rm -f conftest.$ac_objext
1682 if { (eval echo "$as_me:1682: \"$ac_compile\"") >&5
1683 (eval $ac_compile) 2>&5
1685 echo "$as_me:1685: \$? = $ac_status" >&5
1686 (exit $ac_status); } &&
1687 { ac_try='test -s conftest.$ac_objext'
1688 { (eval echo "$as_me:1688: \"$ac_try\"") >&5
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); }; }; then
1695 echo "$as_me: failed program was:" >&5
1696 cat conftest.$ac_ext >&5
1699 rm -f conftest.$ac_objext conftest.$ac_ext
1701 echo "$as_me:1701: result: $ac_cv_prog_cc_g" >&5
1702 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1703 if test "$ac_test_CFLAGS" = set; then
1704 CFLAGS=$ac_save_CFLAGS
1705 elif test $ac_cv_prog_cc_g = yes; then
1706 if test "$GCC" = yes; then
1712 if test "$GCC" = yes; then
1718 # Some people use a C++ compiler to compile C. Since we use `exit',
1719 # in C++ we need to declare it. In case someone uses the same compiler
1720 # for both compiling C and C++ we need to have the C++ compiler decide
1721 # the declaration of exit, since it's the most demanding environment.
1722 cat >conftest.$ac_ext <<_ACEOF
1727 rm -f conftest.$ac_objext
1728 if { (eval echo "$as_me:1728: \"$ac_compile\"") >&5
1729 (eval $ac_compile) 2>&5
1731 echo "$as_me:1731: \$? = $ac_status" >&5
1732 (exit $ac_status); } &&
1733 { ac_try='test -s conftest.$ac_objext'
1734 { (eval echo "$as_me:1734: \"$ac_try\"") >&5
1737 echo "$as_me:1737: \$? = $ac_status" >&5
1738 (exit $ac_status); }; }; then
1739 for ac_declaration in \
1741 '#include <stdlib.h>' \
1742 'extern "C" void std::exit (int) throw (); using std::exit;' \
1743 'extern "C" void std::exit (int); using std::exit;' \
1744 'extern "C" void exit (int) throw ();' \
1745 'extern "C" void exit (int);' \
1748 cat >conftest.$ac_ext <<_ACEOF
1749 #line 1749 "configure"
1750 #include "confdefs.h"
1761 rm -f conftest.$ac_objext
1762 if { (eval echo "$as_me:1762: \"$ac_compile\"") >&5
1763 (eval $ac_compile) 2>&5
1765 echo "$as_me:1765: \$? = $ac_status" >&5
1766 (exit $ac_status); } &&
1767 { ac_try='test -s conftest.$ac_objext'
1768 { (eval echo "$as_me:1768: \"$ac_try\"") >&5
1771 echo "$as_me:1771: \$? = $ac_status" >&5
1772 (exit $ac_status); }; }; then
1775 echo "$as_me: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1779 rm -f conftest.$ac_objext conftest.$ac_ext
1780 cat >conftest.$ac_ext <<_ACEOF
1781 #line 1781 "configure"
1782 #include "confdefs.h"
1792 rm -f conftest.$ac_objext
1793 if { (eval echo "$as_me:1793: \"$ac_compile\"") >&5
1794 (eval $ac_compile) 2>&5
1796 echo "$as_me:1796: \$? = $ac_status" >&5
1797 (exit $ac_status); } &&
1798 { ac_try='test -s conftest.$ac_objext'
1799 { (eval echo "$as_me:1799: \"$ac_try\"") >&5
1802 echo "$as_me:1802: \$? = $ac_status" >&5
1803 (exit $ac_status); }; }; then
1806 echo "$as_me: failed program was:" >&5
1807 cat conftest.$ac_ext >&5
1809 rm -f conftest.$ac_objext conftest.$ac_ext
1812 if test -n "$ac_declaration"; then
1813 echo '#ifdef __cplusplus' >>confdefs.h
1814 echo $ac_declaration >>confdefs.h
1815 echo '#endif' >>confdefs.h
1819 echo "$as_me: failed program was:" >&5
1820 cat conftest.$ac_ext >&5
1822 rm -f conftest.$ac_objext conftest.$ac_ext
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828 ac_main_return=return
1831 if test "$GCC" = yes ; then
1832 echo "$as_me:1832: checking version of $CC" >&5
1833 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1834 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.].*//'`"
1835 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1836 echo "$as_me:1836: result: $GCC_VERSION" >&5
1837 echo "${ECHO_T}$GCC_VERSION" >&6
1840 echo "$as_me:1840: checking for $CC option to accept ANSI C" >&5
1841 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1842 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 ac_cv_prog_cc_stdc=no
1847 cat >conftest.$ac_ext <<_ACEOF
1848 #line 1848 "configure"
1849 #include "confdefs.h"
1852 #include <sys/types.h>
1853 #include <sys/stat.h>
1854 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1855 struct buf { int x; };
1856 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1857 static char *e (p, i)
1863 static char *f (char * (*g) (char **, int), char **p, ...)
1868 s = g (p, va_arg (v,int));
1872 int test (int i, double x);
1873 struct s1 {int (*f) (int a);};
1874 struct s2 {int (*f) (double a);};
1875 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1881 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1886 # Don't try gcc -ansi; that turns off useful extensions and
1887 # breaks some systems' header files.
1888 # AIX -qlanglvl=ansi
1889 # Ultrix and OSF/1 -std1
1890 # HP-UX 10.20 and later -Ae
1891 # HP-UX older versions -Aa -D_HPUX_SOURCE
1892 # SVR4 -Xc -D__EXTENSIONS__
1893 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1895 CC="$ac_save_CC $ac_arg"
1896 rm -f conftest.$ac_objext
1897 if { (eval echo "$as_me:1897: \"$ac_compile\"") >&5
1898 (eval $ac_compile) 2>&5
1900 echo "$as_me:1900: \$? = $ac_status" >&5
1901 (exit $ac_status); } &&
1902 { ac_try='test -s conftest.$ac_objext'
1903 { (eval echo "$as_me:1903: \"$ac_try\"") >&5
1906 echo "$as_me:1906: \$? = $ac_status" >&5
1907 (exit $ac_status); }; }; then
1908 ac_cv_prog_cc_stdc=$ac_arg
1911 echo "$as_me: failed program was:" >&5
1912 cat conftest.$ac_ext >&5
1914 rm -f conftest.$ac_objext
1916 rm -f conftest.$ac_ext conftest.$ac_objext
1921 case "x$ac_cv_prog_cc_stdc" in
1923 echo "$as_me:1923: result: none needed" >&5
1924 echo "${ECHO_T}none needed" >&6 ;;
1926 echo "$as_me:1926: result: $ac_cv_prog_cc_stdc" >&5
1927 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1928 CC="$CC $ac_cv_prog_cc_stdc" ;;
1931 # This should have been defined by AC_PROG_CC
1934 echo "$as_me:1934: checking \$CC variable" >&5
1935 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1938 echo "$as_me:1938: result: broken" >&5
1939 echo "${ECHO_T}broken" >&6
1940 { echo "$as_me:1940: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1941 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1943 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
1944 CC=`echo "$CC" | sed -e 's/[ ].*//'`
1949 cf_new_extra_cppflags=
1951 for cf_add_cflags in $cf_flags
1953 case $cf_fix_cppflags in
1955 case $cf_add_cflags in #(vi
1956 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
1957 case $cf_add_cflags in
1959 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1961 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
1962 && test -z "${cf_tst_cflags}" \
1963 && cf_fix_cppflags=yes
1965 if test $cf_fix_cppflags = yes ; then
1966 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1968 elif test "${cf_tst_cflags}" = "\"'" ; then
1969 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1975 *$cf_add_cflags) #(vi
1978 case $cf_add_cflags in #(vi
1980 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1982 CPPFLAGS=`echo "$CPPFLAGS" | \
1983 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1984 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1988 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1993 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
1998 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2000 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2002 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2003 && test -z "${cf_tst_cflags}" \
2004 && cf_fix_cppflags=no
2009 if test -n "$cf_new_cflags" ; then
2011 CFLAGS="$CFLAGS $cf_new_cflags"
2014 if test -n "$cf_new_cppflags" ; then
2016 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2019 if test -n "$cf_new_extra_cppflags" ; then
2021 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2026 echo "$as_me:2026: result: ok" >&5
2027 echo "${ECHO_T}ok" >&6
2032 ac_cpp='$CPP $CPPFLAGS'
2033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2036 ac_main_return=return
2037 echo "$as_me:2037: checking how to run the C preprocessor" >&5
2038 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2039 # On Suns, sometimes $CPP names a directory.
2040 if test -n "$CPP" && test -d "$CPP"; then
2043 if test -z "$CPP"; then
2044 if test "${ac_cv_prog_CPP+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 # Double quotes because CPP needs to be expanded
2048 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2051 for ac_c_preproc_warn_flag in '' yes
2053 # Use a header file that comes with gcc, so configuring glibc
2054 # with a fresh cross-compiler works.
2055 # On the NeXT, cc -E runs the code through the compiler's parser,
2056 # not just through cpp. "Syntax error" is here to catch this case.
2057 cat >conftest.$ac_ext <<_ACEOF
2058 #line 2058 "configure"
2059 #include "confdefs.h"
2063 if { (eval echo "$as_me:2063: \"$ac_cpp conftest.$ac_ext\"") >&5
2064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2066 egrep -v '^ *\+' conftest.er1 >conftest.err
2068 cat conftest.err >&5
2069 echo "$as_me:2069: \$? = $ac_status" >&5
2070 (exit $ac_status); } >/dev/null; then
2071 if test -s conftest.err; then
2072 ac_cpp_err=$ac_c_preproc_warn_flag
2079 if test -z "$ac_cpp_err"; then
2082 echo "$as_me: failed program was:" >&5
2083 cat conftest.$ac_ext >&5
2084 # Broken: fails on valid input.
2087 rm -f conftest.err conftest.$ac_ext
2089 # OK, works on sane cases. Now check whether non-existent headers
2090 # can be detected and how.
2091 cat >conftest.$ac_ext <<_ACEOF
2092 #line 2092 "configure"
2093 #include "confdefs.h"
2094 #include <ac_nonexistent.h>
2096 if { (eval echo "$as_me:2096: \"$ac_cpp conftest.$ac_ext\"") >&5
2097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2099 egrep -v '^ *\+' conftest.er1 >conftest.err
2101 cat conftest.err >&5
2102 echo "$as_me:2102: \$? = $ac_status" >&5
2103 (exit $ac_status); } >/dev/null; then
2104 if test -s conftest.err; then
2105 ac_cpp_err=$ac_c_preproc_warn_flag
2112 if test -z "$ac_cpp_err"; then
2113 # Broken: success on invalid input.
2116 echo "$as_me: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2118 # Passes both tests.
2122 rm -f conftest.err conftest.$ac_ext
2125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2126 rm -f conftest.err conftest.$ac_ext
2127 if $ac_preproc_ok; then
2139 echo "$as_me:2139: result: $CPP" >&5
2140 echo "${ECHO_T}$CPP" >&6
2142 for ac_c_preproc_warn_flag in '' yes
2144 # Use a header file that comes with gcc, so configuring glibc
2145 # with a fresh cross-compiler works.
2146 # On the NeXT, cc -E runs the code through the compiler's parser,
2147 # not just through cpp. "Syntax error" is here to catch this case.
2148 cat >conftest.$ac_ext <<_ACEOF
2149 #line 2149 "configure"
2150 #include "confdefs.h"
2154 if { (eval echo "$as_me:2154: \"$ac_cpp conftest.$ac_ext\"") >&5
2155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2157 egrep -v '^ *\+' conftest.er1 >conftest.err
2159 cat conftest.err >&5
2160 echo "$as_me:2160: \$? = $ac_status" >&5
2161 (exit $ac_status); } >/dev/null; then
2162 if test -s conftest.err; then
2163 ac_cpp_err=$ac_c_preproc_warn_flag
2170 if test -z "$ac_cpp_err"; then
2173 echo "$as_me: failed program was:" >&5
2174 cat conftest.$ac_ext >&5
2175 # Broken: fails on valid input.
2178 rm -f conftest.err conftest.$ac_ext
2180 # OK, works on sane cases. Now check whether non-existent headers
2181 # can be detected and how.
2182 cat >conftest.$ac_ext <<_ACEOF
2183 #line 2183 "configure"
2184 #include "confdefs.h"
2185 #include <ac_nonexistent.h>
2187 if { (eval echo "$as_me:2187: \"$ac_cpp conftest.$ac_ext\"") >&5
2188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2190 egrep -v '^ *\+' conftest.er1 >conftest.err
2192 cat conftest.err >&5
2193 echo "$as_me:2193: \$? = $ac_status" >&5
2194 (exit $ac_status); } >/dev/null; then
2195 if test -s conftest.err; then
2196 ac_cpp_err=$ac_c_preproc_warn_flag
2203 if test -z "$ac_cpp_err"; then
2204 # Broken: success on invalid input.
2207 echo "$as_me: failed program was:" >&5
2208 cat conftest.$ac_ext >&5
2209 # Passes both tests.
2213 rm -f conftest.err conftest.$ac_ext
2216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2217 rm -f conftest.err conftest.$ac_ext
2218 if $ac_preproc_ok; then
2221 { { echo "$as_me:2221: error: C preprocessor \"$CPP\" fails sanity check" >&5
2222 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2223 { (exit 1); exit 1; }; }
2227 ac_cpp='$CPP $CPPFLAGS'
2228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2231 ac_main_return=return
2233 for ac_prog in mawk gawk nawk awk
2235 # Extract the first word of "$ac_prog", so it can be a program name with args.
2236 set dummy $ac_prog; ac_word=$2
2237 echo "$as_me:2237: checking for $ac_word" >&5
2238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2239 if test "${ac_cv_prog_AWK+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 if test -n "$AWK"; then
2243 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2245 ac_save_IFS=$IFS; IFS=$ac_path_separator
2247 for ac_dir in $ac_dummy; do
2249 test -z "$ac_dir" && ac_dir=.
2250 $as_executable_p "$ac_dir/$ac_word" || continue
2251 ac_cv_prog_AWK="$ac_prog"
2252 echo "$as_me:2252: found $ac_dir/$ac_word" >&5
2259 if test -n "$AWK"; then
2260 echo "$as_me:2260: result: $AWK" >&5
2261 echo "${ECHO_T}$AWK" >&6
2263 echo "$as_me:2263: result: no" >&5
2264 echo "${ECHO_T}no" >&6
2267 test -n "$AWK" && break
2270 # Find a good install program. We prefer a C program (faster),
2271 # so one script is as good as another. But avoid the broken or
2272 # incompatible versions:
2273 # SysV /etc/install, /usr/sbin/install
2274 # SunOS /usr/etc/install
2275 # IRIX /sbin/install
2277 # AmigaOS /C/install, which installs bootblocks on floppy discs
2278 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2279 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2280 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2281 # ./install, which can be erroneously created by make from ./install.sh.
2282 echo "$as_me:2282: checking for a BSD compatible install" >&5
2283 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2284 if test -z "$INSTALL"; then
2285 if test "${ac_cv_path_install+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 ac_save_IFS=$IFS; IFS=$ac_path_separator
2289 for ac_dir in $PATH; do
2291 # Account for people who put trailing slashes in PATH elements.
2293 / | ./ | .// | /cC/* \
2294 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2297 # OSF1 and SCO ODT 3.0 have their own names for install.
2298 # Don't use installbsd from OSF since it installs stuff as root
2300 for ac_prog in ginstall scoinst install; do
2301 if $as_executable_p "$ac_dir/$ac_prog"; then
2302 if test $ac_prog = install &&
2303 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2304 # AIX install. It has an incompatible calling convention.
2306 elif test $ac_prog = install &&
2307 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2308 # program-specific install script used by HP pwplus--don't use.
2311 ac_cv_path_install="$ac_dir/$ac_prog -c"
2321 if test "${ac_cv_path_install+set}" = set; then
2322 INSTALL=$ac_cv_path_install
2324 # As a last resort, use the slow shell script. We don't cache a
2325 # path for INSTALL within a source directory, because that will
2326 # break other packages using the cache if that directory is
2327 # removed, or if the path is relative.
2328 INSTALL=$ac_install_sh
2331 echo "$as_me:2331: result: $INSTALL" >&5
2332 echo "${ECHO_T}$INSTALL" >&6
2334 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2335 # It thinks the first close brace ends the variable substitution.
2336 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2338 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2340 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2346 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2347 test -z "$cf_dir" && cf_dir=.
2348 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2352 for ac_prog in tdlint lint alint splint lclint
2354 # Extract the first word of "$ac_prog", so it can be a program name with args.
2355 set dummy $ac_prog; ac_word=$2
2356 echo "$as_me:2356: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2358 if test "${ac_cv_prog_LINT+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 if test -n "$LINT"; then
2362 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2364 ac_save_IFS=$IFS; IFS=$ac_path_separator
2366 for ac_dir in $ac_dummy; do
2368 test -z "$ac_dir" && ac_dir=.
2369 $as_executable_p "$ac_dir/$ac_word" || continue
2370 ac_cv_prog_LINT="$ac_prog"
2371 echo "$as_me:2371: found $ac_dir/$ac_word" >&5
2377 LINT=$ac_cv_prog_LINT
2378 if test -n "$LINT"; then
2379 echo "$as_me:2379: result: $LINT" >&5
2380 echo "${ECHO_T}$LINT" >&6
2382 echo "$as_me:2382: result: no" >&5
2383 echo "${ECHO_T}no" >&6
2386 test -n "$LINT" && break
2389 echo "$as_me:2389: checking if filesystem supports mixed-case filenames" >&5
2390 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2391 if test "${cf_cv_mixedcase+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 if test "$cross_compiling" = yes ; then
2396 case $target_alias in #(vi
2397 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*) #(vi
2405 rm -f conftest CONFTEST
2407 if test -f CONFTEST ; then
2412 rm -f conftest CONFTEST
2416 echo "$as_me:2416: result: $cf_cv_mixedcase" >&5
2417 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2418 test "$cf_cv_mixedcase" = yes &&
2419 cat >>confdefs.h <<\EOF
2420 #define MIXEDCASE_FILENAMES 1
2423 for ac_prog in exctags ctags
2425 # Extract the first word of "$ac_prog", so it can be a program name with args.
2426 set dummy $ac_prog; ac_word=$2
2427 echo "$as_me:2427: checking for $ac_word" >&5
2428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2429 if test "${ac_cv_prog_CTAGS+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 if test -n "$CTAGS"; then
2433 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2435 ac_save_IFS=$IFS; IFS=$ac_path_separator
2437 for ac_dir in $ac_dummy; do
2439 test -z "$ac_dir" && ac_dir=.
2440 $as_executable_p "$ac_dir/$ac_word" || continue
2441 ac_cv_prog_CTAGS="$ac_prog"
2442 echo "$as_me:2442: found $ac_dir/$ac_word" >&5
2448 CTAGS=$ac_cv_prog_CTAGS
2449 if test -n "$CTAGS"; then
2450 echo "$as_me:2450: result: $CTAGS" >&5
2451 echo "${ECHO_T}$CTAGS" >&6
2453 echo "$as_me:2453: result: no" >&5
2454 echo "${ECHO_T}no" >&6
2457 test -n "$CTAGS" && break
2460 for ac_prog in exetags etags
2462 # Extract the first word of "$ac_prog", so it can be a program name with args.
2463 set dummy $ac_prog; ac_word=$2
2464 echo "$as_me:2464: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2466 if test "${ac_cv_prog_ETAGS+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 if test -n "$ETAGS"; then
2470 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2472 ac_save_IFS=$IFS; IFS=$ac_path_separator
2474 for ac_dir in $ac_dummy; do
2476 test -z "$ac_dir" && ac_dir=.
2477 $as_executable_p "$ac_dir/$ac_word" || continue
2478 ac_cv_prog_ETAGS="$ac_prog"
2479 echo "$as_me:2479: found $ac_dir/$ac_word" >&5
2485 ETAGS=$ac_cv_prog_ETAGS
2486 if test -n "$ETAGS"; then
2487 echo "$as_me:2487: result: $ETAGS" >&5
2488 echo "${ECHO_T}$ETAGS" >&6
2490 echo "$as_me:2490: result: no" >&5
2491 echo "${ECHO_T}no" >&6
2494 test -n "$ETAGS" && break
2497 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2498 set dummy ${CTAGS:-ctags}; ac_word=$2
2499 echo "$as_me:2499: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2501 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 if test -n "$MAKE_LOWER_TAGS"; then
2505 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2507 ac_save_IFS=$IFS; IFS=$ac_path_separator
2509 for ac_dir in $ac_dummy; do
2511 test -z "$ac_dir" && ac_dir=.
2512 $as_executable_p "$ac_dir/$ac_word" || continue
2513 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2514 echo "$as_me:2514: found $ac_dir/$ac_word" >&5
2518 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2521 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2522 if test -n "$MAKE_LOWER_TAGS"; then
2523 echo "$as_me:2523: result: $MAKE_LOWER_TAGS" >&5
2524 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2526 echo "$as_me:2526: result: no" >&5
2527 echo "${ECHO_T}no" >&6
2530 if test "$cf_cv_mixedcase" = yes ; then
2531 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2532 set dummy ${ETAGS:-etags}; ac_word=$2
2533 echo "$as_me:2533: checking for $ac_word" >&5
2534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2535 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2538 if test -n "$MAKE_UPPER_TAGS"; then
2539 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2541 ac_save_IFS=$IFS; IFS=$ac_path_separator
2543 for ac_dir in $ac_dummy; do
2545 test -z "$ac_dir" && ac_dir=.
2546 $as_executable_p "$ac_dir/$ac_word" || continue
2547 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2548 echo "$as_me:2548: found $ac_dir/$ac_word" >&5
2552 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2555 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2556 if test -n "$MAKE_UPPER_TAGS"; then
2557 echo "$as_me:2557: result: $MAKE_UPPER_TAGS" >&5
2558 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2560 echo "$as_me:2560: result: no" >&5
2561 echo "${ECHO_T}no" >&6
2568 if test "$MAKE_UPPER_TAGS" = yes ; then
2574 if test "$MAKE_LOWER_TAGS" = yes ; then
2580 echo "$as_me:2580: checking if -lm needed for math functions" >&5
2581 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2582 if test "${cf_cv_need_libm+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 cat >conftest.$ac_ext <<_ACEOF
2587 #line 2587 "configure"
2588 #include "confdefs.h"
2596 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2601 rm -f conftest.$ac_objext conftest$ac_exeext
2602 if { (eval echo "$as_me:2602: \"$ac_link\"") >&5
2603 (eval $ac_link) 2>&5
2605 echo "$as_me:2605: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -s conftest$ac_exeext'
2608 { (eval echo "$as_me:2608: \"$ac_try\"") >&5
2611 echo "$as_me:2611: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2615 echo "$as_me: failed program was:" >&5
2616 cat conftest.$ac_ext >&5
2619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2621 echo "$as_me:2621: result: $cf_cv_need_libm" >&5
2622 echo "${ECHO_T}$cf_cv_need_libm" >&6
2623 if test "$cf_cv_need_libm" = yes
2631 CC_SHARED_OPTS=unknown
2632 CPPFLAGS="$CPPFLAGS"
2634 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2635 DFT_UPR_MODEL="NORMAL"
2652 TINFO_LIBS='$(LIBS_CURSES)'
2653 cf_cv_abi_version=""
2654 cf_cv_rel_version=""
2660 if test "$GCC" = yes
2662 cat > conftest.i <<EOF
2664 #define GCC_PRINTF 0
2669 #ifndef GCC_NORETURN
2670 #define GCC_NORETURN /* nothing */
2673 #define GCC_UNUSED /* nothing */
2676 if test "$GCC" = yes
2678 { echo "$as_me:2678: checking for $CC __attribute__ directives..." >&5
2679 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2680 cat > conftest.$ac_ext <<EOF
2681 #line 2681 "${as_me:-configure}"
2682 #include "confdefs.h"
2683 #include "conftest.h"
2684 #include "conftest.i"
2686 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2688 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2691 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2693 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2695 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2696 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2697 extern void foo(void) GCC_NORETURN;
2698 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2700 cf_printf_attribute=no
2701 cf_scanf_attribute=no
2702 for cf_attribute in scanf printf unused noreturn
2705 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2707 cf_directive="__attribute__(($cf_attribute))"
2708 echo "checking for $CC $cf_directive" 1>&5
2710 case $cf_attribute in #(vi
2712 cf_printf_attribute=yes
2713 cat >conftest.h <<EOF
2714 #define GCC_$cf_ATTRIBUTE 1
2718 cf_scanf_attribute=yes
2719 cat >conftest.h <<EOF
2720 #define GCC_$cf_ATTRIBUTE 1
2724 cat >conftest.h <<EOF
2725 #define GCC_$cf_ATTRIBUTE $cf_directive
2730 if { (eval echo "$as_me:2730: \"$ac_compile\"") >&5
2731 (eval $ac_compile) 2>&5
2733 echo "$as_me:2733: \$? = $ac_status" >&5
2734 (exit $ac_status); }; then
2735 test -n "$verbose" && echo "$as_me:2735: result: ... $cf_attribute" >&5
2736 echo "${ECHO_T}... $cf_attribute" >&6
2737 cat conftest.h >>confdefs.h
2738 case $cf_attribute in #(vi
2741 cat >>confdefs.h <<EOF
2742 #define GCC_NORETURN $cf_directive
2747 cf_value='/* nothing */'
2748 if test "$cf_printf_attribute" != no ; then
2749 cf_value='__attribute__((format(printf,fmt,var)))'
2751 cat >>confdefs.h <<\EOF
2752 #define GCC_PRINTF 1
2757 cat >>confdefs.h <<EOF
2758 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2763 cf_value='/* nothing */'
2764 if test "$cf_scanf_attribute" != no ; then
2765 cf_value='__attribute__((format(scanf,fmt,var)))'
2767 cat >>confdefs.h <<\EOF
2773 cat >>confdefs.h <<EOF
2774 #define GCC_SCANFLIKE(fmt,var) $cf_value
2780 cat >>confdefs.h <<EOF
2781 #define GCC_UNUSED $cf_directive
2789 fgrep define conftest.i >>confdefs.h
2795 cf_POSIX_C_SOURCE=199506L
2798 case $host_os in #(vi
2800 cf_xopen_source="-D_ALL_SOURCE"
2806 cf_xopen_source="-D_APPLE_C_SOURCE"
2809 cf_xopen_source="-D_DARWIN_C_SOURCE"
2812 freebsd*|dragonfly*) #(vi
2813 # 5.x headers associate
2814 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2815 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2816 cf_POSIX_C_SOURCE=200112L
2818 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2821 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2824 cf_xopen_source="-D_HPUX_SOURCE"
2827 cf_xopen_source="-D_SGI_SOURCE"
2830 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2832 echo "$as_me:2832: checking if we must define _GNU_SOURCE" >&5
2833 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2834 if test "${cf_cv_gnu_source+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 cat >conftest.$ac_ext <<_ACEOF
2839 #line 2839 "configure"
2840 #include "confdefs.h"
2841 #include <sys/types.h>
2846 #ifndef _XOPEN_SOURCE
2853 rm -f conftest.$ac_objext
2854 if { (eval echo "$as_me:2854: \"$ac_compile\"") >&5
2855 (eval $ac_compile) 2>&5
2857 echo "$as_me:2857: \$? = $ac_status" >&5
2858 (exit $ac_status); } &&
2859 { ac_try='test -s conftest.$ac_objext'
2860 { (eval echo "$as_me:2860: \"$ac_try\"") >&5
2863 echo "$as_me:2863: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2867 echo "$as_me: failed program was:" >&5
2868 cat conftest.$ac_ext >&5
2870 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2871 cat >conftest.$ac_ext <<_ACEOF
2872 #line 2872 "configure"
2873 #include "confdefs.h"
2874 #include <sys/types.h>
2879 #ifdef _XOPEN_SOURCE
2886 rm -f conftest.$ac_objext
2887 if { (eval echo "$as_me:2887: \"$ac_compile\"") >&5
2888 (eval $ac_compile) 2>&5
2890 echo "$as_me:2890: \$? = $ac_status" >&5
2891 (exit $ac_status); } &&
2892 { ac_try='test -s conftest.$ac_objext'
2893 { (eval echo "$as_me:2893: \"$ac_try\"") >&5
2896 echo "$as_me:2896: \$? = $ac_status" >&5
2897 (exit $ac_status); }; }; then
2900 echo "$as_me: failed program was:" >&5
2901 cat conftest.$ac_ext >&5
2902 cf_cv_gnu_source=yes
2904 rm -f conftest.$ac_objext conftest.$ac_ext
2908 rm -f conftest.$ac_objext conftest.$ac_ext
2911 echo "$as_me:2911: result: $cf_cv_gnu_source" >&5
2912 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2913 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2917 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2920 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2922 cf_save_CFLAGS="$CFLAGS"
2923 cf_save_CPPFLAGS="$CPPFLAGS"
2925 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2926 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2927 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2929 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2930 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2931 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2933 echo "$as_me:2933: checking if we should define _POSIX_C_SOURCE" >&5
2934 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2935 if test "${cf_cv_posix_c_source+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2939 echo "${as_me:-configure}:2939: testing if the symbol is already defined go no further ..." 1>&5
2941 cat >conftest.$ac_ext <<_ACEOF
2942 #line 2942 "configure"
2943 #include "confdefs.h"
2944 #include <sys/types.h>
2949 #ifndef _POSIX_C_SOURCE
2956 rm -f conftest.$ac_objext
2957 if { (eval echo "$as_me:2957: \"$ac_compile\"") >&5
2958 (eval $ac_compile) 2>&5
2960 echo "$as_me:2960: \$? = $ac_status" >&5
2961 (exit $ac_status); } &&
2962 { ac_try='test -s conftest.$ac_objext'
2963 { (eval echo "$as_me:2963: \"$ac_try\"") >&5
2966 echo "$as_me:2966: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2968 cf_cv_posix_c_source=no
2970 echo "$as_me: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2972 cf_want_posix_source=no
2973 case .$cf_POSIX_C_SOURCE in #(vi
2975 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2978 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2979 cf_want_posix_source=yes
2982 cf_want_posix_source=yes
2985 if test "$cf_want_posix_source" = yes ; then
2986 cat >conftest.$ac_ext <<_ACEOF
2987 #line 2987 "configure"
2988 #include "confdefs.h"
2989 #include <sys/types.h>
2994 #ifdef _POSIX_SOURCE
3001 rm -f conftest.$ac_objext
3002 if { (eval echo "$as_me:3002: \"$ac_compile\"") >&5
3003 (eval $ac_compile) 2>&5
3005 echo "$as_me:3005: \$? = $ac_status" >&5
3006 (exit $ac_status); } &&
3007 { ac_try='test -s conftest.$ac_objext'
3008 { (eval echo "$as_me:3008: \"$ac_try\"") >&5
3011 echo "$as_me:3011: \$? = $ac_status" >&5
3012 (exit $ac_status); }; }; then
3015 echo "$as_me: failed program was:" >&5
3016 cat conftest.$ac_ext >&5
3017 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3019 rm -f conftest.$ac_objext conftest.$ac_ext
3022 echo "${as_me:-configure}:3022: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3024 CFLAGS="$cf_trim_CFLAGS"
3025 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3027 echo "${as_me:-configure}:3027: testing if the second compile does not leave our definition intact error ..." 1>&5
3029 cat >conftest.$ac_ext <<_ACEOF
3030 #line 3030 "configure"
3031 #include "confdefs.h"
3032 #include <sys/types.h>
3037 #ifndef _POSIX_C_SOURCE
3044 rm -f conftest.$ac_objext
3045 if { (eval echo "$as_me:3045: \"$ac_compile\"") >&5
3046 (eval $ac_compile) 2>&5
3048 echo "$as_me:3048: \$? = $ac_status" >&5
3049 (exit $ac_status); } &&
3050 { ac_try='test -s conftest.$ac_objext'
3051 { (eval echo "$as_me:3051: \"$ac_try\"") >&5
3054 echo "$as_me:3054: \$? = $ac_status" >&5
3055 (exit $ac_status); }; }; then
3058 echo "$as_me: failed program was:" >&5
3059 cat conftest.$ac_ext >&5
3060 cf_cv_posix_c_source=no
3062 rm -f conftest.$ac_objext conftest.$ac_ext
3063 CFLAGS="$cf_save_CFLAGS"
3064 CPPFLAGS="$cf_save_CPPFLAGS"
3067 rm -f conftest.$ac_objext conftest.$ac_ext
3070 echo "$as_me:3070: result: $cf_cv_posix_c_source" >&5
3071 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3073 if test "$cf_cv_posix_c_source" != no ; then
3074 CFLAGS="$cf_trim_CFLAGS"
3075 CPPFLAGS="$cf_trim_CPPFLAGS"
3080 cf_new_extra_cppflags=
3082 for cf_add_cflags in $cf_cv_posix_c_source
3084 case $cf_fix_cppflags in
3086 case $cf_add_cflags in #(vi
3087 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3088 case $cf_add_cflags in
3090 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3092 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3093 && test -z "${cf_tst_cflags}" \
3094 && cf_fix_cppflags=yes
3096 if test $cf_fix_cppflags = yes ; then
3097 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3099 elif test "${cf_tst_cflags}" = "\"'" ; then
3100 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3106 *$cf_add_cflags) #(vi
3109 case $cf_add_cflags in #(vi
3111 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3113 CPPFLAGS=`echo "$CPPFLAGS" | \
3114 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3115 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3119 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3124 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3129 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3131 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3133 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3134 && test -z "${cf_tst_cflags}" \
3135 && cf_fix_cppflags=no
3140 if test -n "$cf_new_cflags" ; then
3142 CFLAGS="$CFLAGS $cf_new_cflags"
3145 if test -n "$cf_new_cppflags" ; then
3147 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3150 if test -n "$cf_new_extra_cppflags" ; then
3152 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3159 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3162 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3163 cf_xopen_source="-D_BSD_SOURCE"
3167 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3170 cf_xopen_source="-D_OSF_SOURCE"
3173 cf_xopen_source="-D_QNX_SOURCE"
3176 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3179 cf_xopen_source="-D__EXTENSIONS__"
3183 echo "$as_me:3183: checking if we should define _XOPEN_SOURCE" >&5
3184 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3185 if test "${cf_cv_xopen_source+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3189 cat >conftest.$ac_ext <<_ACEOF
3190 #line 3190 "configure"
3191 #include "confdefs.h"
3195 #include <sys/types.h>
3201 #ifndef _XOPEN_SOURCE
3208 rm -f conftest.$ac_objext
3209 if { (eval echo "$as_me:3209: \"$ac_compile\"") >&5
3210 (eval $ac_compile) 2>&5
3212 echo "$as_me:3212: \$? = $ac_status" >&5
3213 (exit $ac_status); } &&
3214 { ac_try='test -s conftest.$ac_objext'
3215 { (eval echo "$as_me:3215: \"$ac_try\"") >&5
3218 echo "$as_me:3218: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
3220 cf_cv_xopen_source=no
3222 echo "$as_me: failed program was:" >&5
3223 cat conftest.$ac_ext >&5
3225 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3226 cat >conftest.$ac_ext <<_ACEOF
3227 #line 3227 "configure"
3228 #include "confdefs.h"
3232 #include <sys/types.h>
3238 #ifdef _XOPEN_SOURCE
3245 rm -f conftest.$ac_objext
3246 if { (eval echo "$as_me:3246: \"$ac_compile\"") >&5
3247 (eval $ac_compile) 2>&5
3249 echo "$as_me:3249: \$? = $ac_status" >&5
3250 (exit $ac_status); } &&
3251 { ac_try='test -s conftest.$ac_objext'
3252 { (eval echo "$as_me:3252: \"$ac_try\"") >&5
3255 echo "$as_me:3255: \$? = $ac_status" >&5
3256 (exit $ac_status); }; }; then
3257 cf_cv_xopen_source=no
3259 echo "$as_me: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3261 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3263 rm -f conftest.$ac_objext conftest.$ac_ext
3267 rm -f conftest.$ac_objext conftest.$ac_ext
3270 echo "$as_me:3270: result: $cf_cv_xopen_source" >&5
3271 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3273 if test "$cf_cv_xopen_source" != no ; then
3275 CFLAGS=`echo "$CFLAGS" | \
3276 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3277 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3279 CPPFLAGS=`echo "$CPPFLAGS" | \
3280 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3281 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3283 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3288 cf_new_extra_cppflags=
3290 for cf_add_cflags in $cf_temp_xopen_source
3292 case $cf_fix_cppflags in
3294 case $cf_add_cflags in #(vi
3295 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3296 case $cf_add_cflags in
3298 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3300 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3301 && test -z "${cf_tst_cflags}" \
3302 && cf_fix_cppflags=yes
3304 if test $cf_fix_cppflags = yes ; then
3305 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3307 elif test "${cf_tst_cflags}" = "\"'" ; then
3308 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3314 *$cf_add_cflags) #(vi
3317 case $cf_add_cflags in #(vi
3319 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3321 CPPFLAGS=`echo "$CPPFLAGS" | \
3322 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3323 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3327 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3332 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3337 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3339 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3341 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3342 && test -z "${cf_tst_cflags}" \
3343 && cf_fix_cppflags=no
3348 if test -n "$cf_new_cflags" ; then
3350 CFLAGS="$CFLAGS $cf_new_cflags"
3353 if test -n "$cf_new_cppflags" ; then
3355 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3358 if test -n "$cf_new_extra_cppflags" ; then
3360 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3365 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3367 cf_save_CFLAGS="$CFLAGS"
3368 cf_save_CPPFLAGS="$CPPFLAGS"
3370 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3371 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3372 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3374 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3375 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3376 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3378 echo "$as_me:3378: checking if we should define _POSIX_C_SOURCE" >&5
3379 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3380 if test "${cf_cv_posix_c_source+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 echo "${as_me:-configure}:3384: testing if the symbol is already defined go no further ..." 1>&5
3386 cat >conftest.$ac_ext <<_ACEOF
3387 #line 3387 "configure"
3388 #include "confdefs.h"
3389 #include <sys/types.h>
3394 #ifndef _POSIX_C_SOURCE
3401 rm -f conftest.$ac_objext
3402 if { (eval echo "$as_me:3402: \"$ac_compile\"") >&5
3403 (eval $ac_compile) 2>&5
3405 echo "$as_me:3405: \$? = $ac_status" >&5
3406 (exit $ac_status); } &&
3407 { ac_try='test -s conftest.$ac_objext'
3408 { (eval echo "$as_me:3408: \"$ac_try\"") >&5
3411 echo "$as_me:3411: \$? = $ac_status" >&5
3412 (exit $ac_status); }; }; then
3413 cf_cv_posix_c_source=no
3415 echo "$as_me: failed program was:" >&5
3416 cat conftest.$ac_ext >&5
3417 cf_want_posix_source=no
3418 case .$cf_POSIX_C_SOURCE in #(vi
3420 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3423 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3424 cf_want_posix_source=yes
3427 cf_want_posix_source=yes
3430 if test "$cf_want_posix_source" = yes ; then
3431 cat >conftest.$ac_ext <<_ACEOF
3432 #line 3432 "configure"
3433 #include "confdefs.h"
3434 #include <sys/types.h>
3439 #ifdef _POSIX_SOURCE
3446 rm -f conftest.$ac_objext
3447 if { (eval echo "$as_me:3447: \"$ac_compile\"") >&5
3448 (eval $ac_compile) 2>&5
3450 echo "$as_me:3450: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -s conftest.$ac_objext'
3453 { (eval echo "$as_me:3453: \"$ac_try\"") >&5
3456 echo "$as_me:3456: \$? = $ac_status" >&5
3457 (exit $ac_status); }; }; then
3460 echo "$as_me: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3462 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3464 rm -f conftest.$ac_objext conftest.$ac_ext
3467 echo "${as_me:-configure}:3467: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3469 CFLAGS="$cf_trim_CFLAGS"
3470 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3472 echo "${as_me:-configure}:3472: testing if the second compile does not leave our definition intact error ..." 1>&5
3474 cat >conftest.$ac_ext <<_ACEOF
3475 #line 3475 "configure"
3476 #include "confdefs.h"
3477 #include <sys/types.h>
3482 #ifndef _POSIX_C_SOURCE
3489 rm -f conftest.$ac_objext
3490 if { (eval echo "$as_me:3490: \"$ac_compile\"") >&5
3491 (eval $ac_compile) 2>&5
3493 echo "$as_me:3493: \$? = $ac_status" >&5
3494 (exit $ac_status); } &&
3495 { ac_try='test -s conftest.$ac_objext'
3496 { (eval echo "$as_me:3496: \"$ac_try\"") >&5
3499 echo "$as_me:3499: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3503 echo "$as_me: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3505 cf_cv_posix_c_source=no
3507 rm -f conftest.$ac_objext conftest.$ac_ext
3508 CFLAGS="$cf_save_CFLAGS"
3509 CPPFLAGS="$cf_save_CPPFLAGS"
3512 rm -f conftest.$ac_objext conftest.$ac_ext
3515 echo "$as_me:3515: result: $cf_cv_posix_c_source" >&5
3516 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3518 if test "$cf_cv_posix_c_source" != no ; then
3519 CFLAGS="$cf_trim_CFLAGS"
3520 CPPFLAGS="$cf_trim_CPPFLAGS"
3525 cf_new_extra_cppflags=
3527 for cf_add_cflags in $cf_cv_posix_c_source
3529 case $cf_fix_cppflags in
3531 case $cf_add_cflags in #(vi
3532 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3533 case $cf_add_cflags in
3535 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3537 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3538 && test -z "${cf_tst_cflags}" \
3539 && cf_fix_cppflags=yes
3541 if test $cf_fix_cppflags = yes ; then
3542 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3544 elif test "${cf_tst_cflags}" = "\"'" ; then
3545 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3551 *$cf_add_cflags) #(vi
3554 case $cf_add_cflags in #(vi
3556 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3558 CPPFLAGS=`echo "$CPPFLAGS" | \
3559 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3560 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3564 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3569 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3574 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3576 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3578 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3579 && test -z "${cf_tst_cflags}" \
3580 && cf_fix_cppflags=no
3585 if test -n "$cf_new_cflags" ; then
3587 CFLAGS="$CFLAGS $cf_new_cflags"
3590 if test -n "$cf_new_cppflags" ; then
3592 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3595 if test -n "$cf_new_extra_cppflags" ; then
3597 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3605 if test -n "$cf_xopen_source" ; then
3610 cf_new_extra_cppflags=
3612 for cf_add_cflags in $cf_xopen_source
3614 case $cf_fix_cppflags in
3616 case $cf_add_cflags in #(vi
3617 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3618 case $cf_add_cflags in
3620 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3622 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3623 && test -z "${cf_tst_cflags}" \
3624 && cf_fix_cppflags=yes
3626 if test $cf_fix_cppflags = yes ; then
3627 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3629 elif test "${cf_tst_cflags}" = "\"'" ; then
3630 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3636 *$cf_add_cflags) #(vi
3639 case $cf_add_cflags in #(vi
3641 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3643 CPPFLAGS=`echo "$CPPFLAGS" | \
3644 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3645 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3649 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3654 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3659 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3661 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3663 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3664 && test -z "${cf_tst_cflags}" \
3665 && cf_fix_cppflags=no
3670 if test -n "$cf_new_cflags" ; then
3672 CFLAGS="$CFLAGS $cf_new_cflags"
3675 if test -n "$cf_new_cppflags" ; then
3677 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3680 if test -n "$cf_new_extra_cppflags" ; then
3682 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3687 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3688 echo "$as_me:3688: checking if _XOPEN_SOURCE really is set" >&5
3689 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3690 cat >conftest.$ac_ext <<_ACEOF
3691 #line 3691 "configure"
3692 #include "confdefs.h"
3698 #ifndef _XOPEN_SOURCE
3705 rm -f conftest.$ac_objext
3706 if { (eval echo "$as_me:3706: \"$ac_compile\"") >&5
3707 (eval $ac_compile) 2>&5
3709 echo "$as_me:3709: \$? = $ac_status" >&5
3710 (exit $ac_status); } &&
3711 { ac_try='test -s conftest.$ac_objext'
3712 { (eval echo "$as_me:3712: \"$ac_try\"") >&5
3715 echo "$as_me:3715: \$? = $ac_status" >&5
3716 (exit $ac_status); }; }; then
3717 cf_XOPEN_SOURCE_set=yes
3719 echo "$as_me: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3721 cf_XOPEN_SOURCE_set=no
3723 rm -f conftest.$ac_objext conftest.$ac_ext
3724 echo "$as_me:3724: result: $cf_XOPEN_SOURCE_set" >&5
3725 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3726 if test $cf_XOPEN_SOURCE_set = yes
3728 cat >conftest.$ac_ext <<_ACEOF
3729 #line 3729 "configure"
3730 #include "confdefs.h"
3736 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3743 rm -f conftest.$ac_objext
3744 if { (eval echo "$as_me:3744: \"$ac_compile\"") >&5
3745 (eval $ac_compile) 2>&5
3747 echo "$as_me:3747: \$? = $ac_status" >&5
3748 (exit $ac_status); } &&
3749 { ac_try='test -s conftest.$ac_objext'
3750 { (eval echo "$as_me:3750: \"$ac_try\"") >&5
3753 echo "$as_me:3753: \$? = $ac_status" >&5
3754 (exit $ac_status); }; }; then
3755 cf_XOPEN_SOURCE_set_ok=yes
3757 echo "$as_me: failed program was:" >&5
3758 cat conftest.$ac_ext >&5
3759 cf_XOPEN_SOURCE_set_ok=no
3761 rm -f conftest.$ac_objext conftest.$ac_ext
3762 if test $cf_XOPEN_SOURCE_set_ok = no
3764 { echo "$as_me:3764: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3765 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3769 echo "$as_me:3769: checking if we should define _XOPEN_SOURCE" >&5
3770 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3771 if test "${cf_cv_xopen_source+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 cat >conftest.$ac_ext <<_ACEOF
3776 #line 3776 "configure"
3777 #include "confdefs.h"
3781 #include <sys/types.h>
3787 #ifndef _XOPEN_SOURCE
3794 rm -f conftest.$ac_objext
3795 if { (eval echo "$as_me:3795: \"$ac_compile\"") >&5
3796 (eval $ac_compile) 2>&5
3798 echo "$as_me:3798: \$? = $ac_status" >&5
3799 (exit $ac_status); } &&
3800 { ac_try='test -s conftest.$ac_objext'
3801 { (eval echo "$as_me:3801: \"$ac_try\"") >&5
3804 echo "$as_me:3804: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 cf_cv_xopen_source=no
3808 echo "$as_me: failed program was:" >&5
3809 cat conftest.$ac_ext >&5
3811 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3812 cat >conftest.$ac_ext <<_ACEOF
3813 #line 3813 "configure"
3814 #include "confdefs.h"
3818 #include <sys/types.h>
3824 #ifdef _XOPEN_SOURCE
3831 rm -f conftest.$ac_objext
3832 if { (eval echo "$as_me:3832: \"$ac_compile\"") >&5
3833 (eval $ac_compile) 2>&5
3835 echo "$as_me:3835: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -s conftest.$ac_objext'
3838 { (eval echo "$as_me:3838: \"$ac_try\"") >&5
3841 echo "$as_me:3841: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 cf_cv_xopen_source=no
3845 echo "$as_me: failed program was:" >&5
3846 cat conftest.$ac_ext >&5
3847 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3849 rm -f conftest.$ac_objext conftest.$ac_ext
3853 rm -f conftest.$ac_objext conftest.$ac_ext
3856 echo "$as_me:3856: result: $cf_cv_xopen_source" >&5
3857 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3859 if test "$cf_cv_xopen_source" != no ; then
3861 CFLAGS=`echo "$CFLAGS" | \
3862 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3863 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3865 CPPFLAGS=`echo "$CPPFLAGS" | \
3866 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3867 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3869 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3874 cf_new_extra_cppflags=
3876 for cf_add_cflags in $cf_temp_xopen_source
3878 case $cf_fix_cppflags in
3880 case $cf_add_cflags in #(vi
3881 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3882 case $cf_add_cflags in
3884 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3886 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3887 && test -z "${cf_tst_cflags}" \
3888 && cf_fix_cppflags=yes
3890 if test $cf_fix_cppflags = yes ; then
3891 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3893 elif test "${cf_tst_cflags}" = "\"'" ; then
3894 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3900 *$cf_add_cflags) #(vi
3903 case $cf_add_cflags in #(vi
3905 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3907 CPPFLAGS=`echo "$CPPFLAGS" | \
3908 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3909 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3913 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3918 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3923 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3925 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3927 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3928 && test -z "${cf_tst_cflags}" \
3929 && cf_fix_cppflags=no
3934 if test -n "$cf_new_cflags" ; then
3936 CFLAGS="$CFLAGS $cf_new_cflags"
3939 if test -n "$cf_new_cppflags" ; then
3941 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3944 if test -n "$cf_new_extra_cppflags" ; then
3946 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3954 echo "$as_me:3954: checking for signal global datatype" >&5
3955 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3956 if test "${cf_cv_sig_atomic_t+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 "volatile sig_atomic_t" \
3965 cat >conftest.$ac_ext <<_ACEOF
3966 #line 3966 "configure"
3967 #include "confdefs.h"
3969 #include <sys/types.h>
3975 static void handler(int sig)
3982 signal(SIGINT, handler);
3988 rm -f conftest.$ac_objext
3989 if { (eval echo "$as_me:3989: \"$ac_compile\"") >&5
3990 (eval $ac_compile) 2>&5
3992 echo "$as_me:3992: \$? = $ac_status" >&5
3993 (exit $ac_status); } &&
3994 { ac_try='test -s conftest.$ac_objext'
3995 { (eval echo "$as_me:3995: \"$ac_try\"") >&5
3998 echo "$as_me:3998: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4000 cf_cv_sig_atomic_t=$cf_type
4002 echo "$as_me: failed program was:" >&5
4003 cat conftest.$ac_ext >&5
4004 cf_cv_sig_atomic_t=no
4006 rm -f conftest.$ac_objext conftest.$ac_ext
4007 test "$cf_cv_sig_atomic_t" != no && break
4012 echo "$as_me:4012: result: $cf_cv_sig_atomic_t" >&5
4013 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4014 test "$cf_cv_sig_atomic_t" != no &&
4015 cat >>confdefs.h <<EOF
4016 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4019 echo "$as_me:4019: checking if you want to use pkg-config" >&5
4020 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4022 # Check whether --with-pkg-config or --without-pkg-config was given.
4023 if test "${with_pkg_config+set}" = set; then
4024 withval="$with_pkg_config"
4025 cf_pkg_config=$withval
4029 echo "$as_me:4029: result: $cf_pkg_config" >&5
4030 echo "${ECHO_T}$cf_pkg_config" >&6
4032 case $cf_pkg_config in #(vi
4038 if test -n "$ac_tool_prefix"; then
4039 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4040 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4041 echo "$as_me:4041: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4051 ac_save_IFS=$IFS; IFS=$ac_path_separator
4053 for ac_dir in $ac_dummy; do
4055 test -z "$ac_dir" && ac_dir=.
4056 if $as_executable_p "$ac_dir/$ac_word"; then
4057 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4058 echo "$as_me:4058: found $ac_dir/$ac_word" >&5
4066 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4068 if test -n "$PKG_CONFIG"; then
4069 echo "$as_me:4069: result: $PKG_CONFIG" >&5
4070 echo "${ECHO_T}$PKG_CONFIG" >&6
4072 echo "$as_me:4072: result: no" >&5
4073 echo "${ECHO_T}no" >&6
4077 if test -z "$ac_cv_path_PKG_CONFIG"; then
4078 ac_pt_PKG_CONFIG=$PKG_CONFIG
4079 # Extract the first word of "pkg-config", so it can be a program name with args.
4080 set dummy pkg-config; ac_word=$2
4081 echo "$as_me:4081: checking for $ac_word" >&5
4082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4083 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4084 echo $ECHO_N "(cached) $ECHO_C" >&6
4086 case $ac_pt_PKG_CONFIG in
4088 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4091 ac_save_IFS=$IFS; IFS=$ac_path_separator
4093 for ac_dir in $ac_dummy; do
4095 test -z "$ac_dir" && ac_dir=.
4096 if $as_executable_p "$ac_dir/$ac_word"; then
4097 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4098 echo "$as_me:4098: found $ac_dir/$ac_word" >&5
4103 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4107 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4109 if test -n "$ac_pt_PKG_CONFIG"; then
4110 echo "$as_me:4110: result: $ac_pt_PKG_CONFIG" >&5
4111 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4113 echo "$as_me:4113: result: no" >&5
4114 echo "${ECHO_T}no" >&6
4117 PKG_CONFIG=$ac_pt_PKG_CONFIG
4119 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4128 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4129 if test "$PKG_CONFIG" != none ; then
4131 if test "x$prefix" != xNONE; then
4132 cf_path_syntax="$prefix"
4134 cf_path_syntax="$ac_default_prefix"
4137 case ".$PKG_CONFIG" in #(vi
4138 .\$\(*\)*|.\'*\'*) #(vi
4142 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4144 .\${*prefix}*|.\${*dir}*) #(vi
4145 eval PKG_CONFIG="$PKG_CONFIG"
4146 case ".$PKG_CONFIG" in #(vi
4148 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4153 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4156 { { echo "$as_me:4156: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4157 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4158 { (exit 1); exit 1; }; }
4164 echo "$as_me:4164: checking if you want to see long compiling messages" >&5
4165 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4167 # Check whether --enable-echo or --disable-echo was given.
4168 if test "${enable_echo+set}" = set; then
4169 enableval="$enable_echo"
4170 test "$enableval" != no && enableval=yes
4171 if test "$enableval" != "yes" ; then
4174 ECHO_LD='@echo linking $@;'
4175 RULE_CC='@echo compiling $<'
4176 SHOW_CC='@echo compiling $@'
4198 echo "$as_me:4198: result: $enableval" >&5
4199 echo "${ECHO_T}$enableval" >&6
4201 echo "$as_me:4201: checking for ncurses wrap-prefix" >&5
4202 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
4204 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
4205 if test "${with_ncurses_wrap_prefix+set}" = set; then
4206 withval="$with_ncurses_wrap_prefix"
4207 NCURSES_WRAP_PREFIX=$withval
4209 NCURSES_WRAP_PREFIX=_nc_
4211 echo "$as_me:4211: result: $NCURSES_WRAP_PREFIX" >&5
4212 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
4214 echo "$as_me:4214: checking if you want to check for wide-character functions" >&5
4215 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
4217 # Check whether --enable-widec or --disable-widec was given.
4218 if test "${enable_widec+set}" = set; then
4219 enableval="$enable_widec"
4220 test "$enableval" != no && enableval=yes
4221 if test "$enableval" != "yes" ; then
4231 echo "$as_me:4231: result: $cf_enable_widec" >&5
4232 echo "${ECHO_T}$cf_enable_widec" >&6
4234 echo "$as_me:4234: checking for specific curses-directory" >&5
4235 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4237 # Check whether --with-curses-dir or --without-curses-dir was given.
4238 if test "${with_curses_dir+set}" = set; then
4239 withval="$with_curses_dir"
4240 cf_cv_curses_dir=$withval
4244 echo "$as_me:4244: result: $cf_cv_curses_dir" >&5
4245 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4247 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4250 if test "x$prefix" != xNONE; then
4251 cf_path_syntax="$prefix"
4253 cf_path_syntax="$ac_default_prefix"
4256 case ".$withval" in #(vi
4257 .\$\(*\)*|.\'*\'*) #(vi
4261 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4263 .\${*prefix}*|.\${*dir}*) #(vi
4264 eval withval="$withval"
4265 case ".$withval" in #(vi
4267 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4272 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4275 { { echo "$as_me:4275: error: expected a pathname, not \"$withval\"" >&5
4276 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4277 { (exit 1); exit 1; }; }
4281 if test -d "$cf_cv_curses_dir"
4284 if test -n "$cf_cv_curses_dir/include" ; then
4285 for cf_add_incdir in $cf_cv_curses_dir/include
4287 while test $cf_add_incdir != /usr/include
4289 if test -d $cf_add_incdir
4292 if test -n "$CFLAGS$CPPFLAGS" ; then
4293 # a loop is needed to ensure we can add subdirs of existing dirs
4294 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4295 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4296 cf_have_incdir=yes; break
4301 if test "$cf_have_incdir" = no ; then
4302 if test "$cf_add_incdir" = /usr/local/include ; then
4303 if test "$GCC" = yes
4305 cf_save_CPPFLAGS=$CPPFLAGS
4306 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4307 cat >conftest.$ac_ext <<_ACEOF
4308 #line 4308 "configure"
4309 #include "confdefs.h"
4319 rm -f conftest.$ac_objext
4320 if { (eval echo "$as_me:4320: \"$ac_compile\"") >&5
4321 (eval $ac_compile) 2>&5
4323 echo "$as_me:4323: \$? = $ac_status" >&5
4324 (exit $ac_status); } &&
4325 { ac_try='test -s conftest.$ac_objext'
4326 { (eval echo "$as_me:4326: \"$ac_try\"") >&5
4329 echo "$as_me:4329: \$? = $ac_status" >&5
4330 (exit $ac_status); }; }; then
4333 echo "$as_me: failed program was:" >&5
4334 cat conftest.$ac_ext >&5
4337 rm -f conftest.$ac_objext conftest.$ac_ext
4338 CPPFLAGS=$cf_save_CPPFLAGS
4343 if test "$cf_have_incdir" = no ; then
4344 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4346 echo "${as_me:-configure}:4346: testing adding $cf_add_incdir to include-path ..." 1>&5
4348 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4350 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4351 test "$cf_top_incdir" = "$cf_add_incdir" && break
4352 cf_add_incdir="$cf_top_incdir"
4361 if test -n "$cf_cv_curses_dir/lib" ; then
4362 for cf_add_libdir in $cf_cv_curses_dir/lib
4364 if test $cf_add_libdir = /usr/lib ; then
4366 elif test -d $cf_add_libdir
4369 if test -n "$LDFLAGS$LIBS" ; then
4370 # a loop is needed to ensure we can add subdirs of existing dirs
4371 for cf_test_libdir in $LDFLAGS $LIBS ; do
4372 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4373 cf_have_libdir=yes; break
4377 if test "$cf_have_libdir" = no ; then
4378 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4380 echo "${as_me:-configure}:4380: testing adding $cf_add_libdir to library-path ..." 1>&5
4382 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4393 echo "$as_me:4393: checking for specified curses library type" >&5
4394 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
4396 # Check whether --with-ncursesw or --without-ncursesw was given.
4397 if test "${with_ncursesw+set}" = set; then
4398 withval="$with_ncursesw"
4399 cf_cv_screen=ncursesw
4402 # Check whether --with-ncurses or --without-ncurses was given.
4403 if test "${with_ncurses+set}" = set; then
4404 withval="$with_ncurses"
4405 cf_cv_screen=ncurses
4408 # Check whether --with-pdcurses or --without-pdcurses was given.
4409 if test "${with_pdcurses+set}" = set; then
4410 withval="$with_pdcurses"
4411 cf_cv_screen=pdcurses
4414 # Check whether --with-curses-colr or --without-curses-colr was given.
4415 if test "${with_curses_colr+set}" = set; then
4416 withval="$with_curses_colr"
4417 cf_cv_screen=curses_colr
4420 # Check whether --with-curses-5lib or --without-curses-5lib was given.
4421 if test "${with_curses_5lib+set}" = set; then
4422 withval="$with_curses_5lib"
4423 cf_cv_screen=curses_5lib
4430 echo "$as_me:4430: result: $cf_cv_screen" >&5
4431 echo "${ECHO_T}$cf_cv_screen" >&6
4433 case $cf_cv_screen in #(vi
4434 curses|curses_*) #(vi
4436 echo "$as_me:4436: checking for extra include directories" >&5
4437 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
4438 if test "${cf_cv_curses_incdir+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 cf_cv_curses_incdir=no
4443 case $host_os in #(vi
4445 if test "x$cf_cv_screen" = "xcurses_colr"
4447 test -d /usr/include/curses_colr && \
4448 cf_cv_curses_incdir="-I/usr/include/curses_colr"
4452 if test "x$cf_cv_screen" = "xcurses_5lib"
4454 test -d /usr/5lib && \
4455 test -d /usr/5include && \
4456 cf_cv_curses_incdir="-I/usr/5include"
4462 echo "$as_me:4462: result: $cf_cv_curses_incdir" >&5
4463 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
4464 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
4466 echo "$as_me:4466: checking if we have identified curses headers" >&5
4467 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4468 if test "${cf_cv_ncurses_header+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 cf_cv_ncurses_header=none
4475 curses.h ncurses/ncurses.h ncurses/curses.h
4477 cat >conftest.$ac_ext <<_ACEOF
4478 #line 4478 "configure"
4479 #include "confdefs.h"
4480 #include <${cf_header}>
4484 initscr(); tgoto("?", 0,0)
4489 rm -f conftest.$ac_objext
4490 if { (eval echo "$as_me:4490: \"$ac_compile\"") >&5
4491 (eval $ac_compile) 2>&5
4493 echo "$as_me:4493: \$? = $ac_status" >&5
4494 (exit $ac_status); } &&
4495 { ac_try='test -s conftest.$ac_objext'
4496 { (eval echo "$as_me:4496: \"$ac_try\"") >&5
4499 echo "$as_me:4499: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4501 cf_cv_ncurses_header=$cf_header; break
4503 echo "$as_me: failed program was:" >&5
4504 cat conftest.$ac_ext >&5
4506 rm -f conftest.$ac_objext conftest.$ac_ext
4510 echo "$as_me:4510: result: $cf_cv_ncurses_header" >&5
4511 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4513 if test "$cf_cv_ncurses_header" = none ; then
4514 { { echo "$as_me:4514: error: No curses header-files found" >&5
4515 echo "$as_me: error: No curses header-files found" >&2;}
4516 { (exit 1); exit 1; }; }
4519 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4521 for ac_header in $cf_cv_ncurses_header
4523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4524 echo "$as_me:4524: checking for $ac_header" >&5
4525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 cat >conftest.$ac_ext <<_ACEOF
4530 #line 4530 "configure"
4531 #include "confdefs.h"
4532 #include <$ac_header>
4534 if { (eval echo "$as_me:4534: \"$ac_cpp conftest.$ac_ext\"") >&5
4535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4537 egrep -v '^ *\+' conftest.er1 >conftest.err
4539 cat conftest.err >&5
4540 echo "$as_me:4540: \$? = $ac_status" >&5
4541 (exit $ac_status); } >/dev/null; then
4542 if test -s conftest.err; then
4543 ac_cpp_err=$ac_c_preproc_warn_flag
4550 if test -z "$ac_cpp_err"; then
4551 eval "$as_ac_Header=yes"
4553 echo "$as_me: failed program was:" >&5
4554 cat conftest.$ac_ext >&5
4555 eval "$as_ac_Header=no"
4557 rm -f conftest.err conftest.$ac_ext
4559 echo "$as_me:4559: result: `eval echo '${'$as_ac_Header'}'`" >&5
4560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4562 cat >>confdefs.h <<EOF
4563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4569 echo "$as_me:4569: checking for terminfo header" >&5
4570 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4571 if test "${cf_cv_term_header+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 case ${cf_cv_ncurses_header} in #(vi
4576 */ncurses.h|*/ncursesw.h) #(vi
4577 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4580 cf_term_header=term.h
4584 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4586 cat >conftest.$ac_ext <<_ACEOF
4587 #line 4587 "configure"
4588 #include "confdefs.h"
4590 #include <${cf_cv_ncurses_header:-curses.h}>
4596 int x = auto_left_margin
4601 rm -f conftest.$ac_objext
4602 if { (eval echo "$as_me:4602: \"$ac_compile\"") >&5
4603 (eval $ac_compile) 2>&5
4605 echo "$as_me:4605: \$? = $ac_status" >&5
4606 (exit $ac_status); } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:4608: \"$ac_try\"") >&5
4611 echo "$as_me:4611: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4614 cf_cv_term_header="$cf_test"
4616 echo "$as_me: failed program was:" >&5
4617 cat conftest.$ac_ext >&5
4619 cf_cv_term_header=unknown
4622 rm -f conftest.$ac_objext conftest.$ac_ext
4623 test "$cf_cv_term_header" != unknown && break
4627 echo "$as_me:4627: result: $cf_cv_term_header" >&5
4628 echo "${ECHO_T}$cf_cv_term_header" >&6
4630 # Set definitions to allow ifdef'ing to accommodate subdirectories
4632 case $cf_cv_term_header in # (vi
4635 cat >>confdefs.h <<\EOF
4636 #define HAVE_TERM_H 1
4642 case $cf_cv_term_header in # (vi
4643 ncurses/term.h) #(vi
4645 cat >>confdefs.h <<\EOF
4646 #define HAVE_NCURSES_TERM_H 1
4652 cat >>confdefs.h <<\EOF
4653 #define HAVE_NCURSESW_TERM_H 1
4659 echo "$as_me:4659: checking for ncurses version" >&5
4660 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
4661 if test "${cf_cv_ncurses_version+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 cf_cv_ncurses_version=no
4668 if test "$cross_compiling" = yes; then
4670 # This will not work if the preprocessor splits the line after the
4671 # Autoconf token. The 'unproto' program does that.
4672 cat > conftest.$ac_ext <<EOF
4673 #include <${cf_cv_ncurses_header:-curses.h}>
4675 #ifdef NCURSES_VERSION
4676 Autoconf NCURSES_VERSION
4684 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
4685 { (eval echo "$as_me:4685: \"$cf_try\"") >&5
4688 echo "$as_me:4688: \$? = $ac_status" >&5
4689 (exit $ac_status); }
4690 if test -f conftest.out ; then
4691 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
4692 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
4697 cat >conftest.$ac_ext <<_ACEOF
4698 #line 4698 "configure"
4699 #include "confdefs.h"
4701 #include <${cf_cv_ncurses_header:-curses.h}>
4705 FILE *fp = fopen("$cf_tempfile", "w");
4706 #ifdef NCURSES_VERSION
4707 # ifdef NCURSES_VERSION_PATCH
4708 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
4710 fprintf(fp, "%s\n", NCURSES_VERSION);
4714 fprintf(fp, "old\n");
4719 ${cf_cv_main_return:-return}(0);
4722 rm -f conftest$ac_exeext
4723 if { (eval echo "$as_me:4723: \"$ac_link\"") >&5
4724 (eval $ac_link) 2>&5
4726 echo "$as_me:4726: \$? = $ac_status" >&5
4727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4728 { (eval echo "$as_me:4728: \"$ac_try\"") >&5
4731 echo "$as_me:4731: \$? = $ac_status" >&5
4732 (exit $ac_status); }; }; then
4734 cf_cv_ncurses_version=`cat $cf_tempfile`
4736 echo "$as_me: program exited with status $ac_status" >&5
4737 echo "$as_me: failed program was:" >&5
4738 cat conftest.$ac_ext >&5
4740 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4745 echo "$as_me:4745: result: $cf_cv_ncurses_version" >&5
4746 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
4747 test "$cf_cv_ncurses_version" = no ||
4748 cat >>confdefs.h <<\EOF
4752 echo "$as_me:4752: checking if we have identified curses libraries" >&5
4753 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
4754 cat >conftest.$ac_ext <<_ACEOF
4755 #line 4755 "configure"
4756 #include "confdefs.h"
4757 #include <${cf_cv_ncurses_header:-curses.h}>
4761 initscr(); tgoto("?", 0,0)
4766 rm -f conftest.$ac_objext conftest$ac_exeext
4767 if { (eval echo "$as_me:4767: \"$ac_link\"") >&5
4768 (eval $ac_link) 2>&5
4770 echo "$as_me:4770: \$? = $ac_status" >&5
4771 (exit $ac_status); } &&
4772 { ac_try='test -s conftest$ac_exeext'
4773 { (eval echo "$as_me:4773: \"$ac_try\"") >&5
4776 echo "$as_me:4776: \$? = $ac_status" >&5
4777 (exit $ac_status); }; }; then
4780 echo "$as_me: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
4784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4785 echo "$as_me:4785: result: $cf_result" >&5
4786 echo "${ECHO_T}$cf_result" >&6
4788 if test "$cf_result" = no ; then
4789 case $host_os in #(vi
4791 echo "$as_me:4791: checking for tgoto in -lmytinfo" >&5
4792 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
4793 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 ac_check_lib_save_LIBS=$LIBS
4797 LIBS="-lmytinfo $LIBS"
4798 cat >conftest.$ac_ext <<_ACEOF
4799 #line 4799 "configure"
4800 #include "confdefs.h"
4802 /* Override any gcc2 internal prototype to avoid an error. */
4806 /* We use char because int might match the return type of a gcc2
4807 builtin and then its argument prototype would still apply. */
4817 rm -f conftest.$ac_objext conftest$ac_exeext
4818 if { (eval echo "$as_me:4818: \"$ac_link\"") >&5
4819 (eval $ac_link) 2>&5
4821 echo "$as_me:4821: \$? = $ac_status" >&5
4822 (exit $ac_status); } &&
4823 { ac_try='test -s conftest$ac_exeext'
4824 { (eval echo "$as_me:4824: \"$ac_try\"") >&5
4827 echo "$as_me:4827: \$? = $ac_status" >&5
4828 (exit $ac_status); }; }; then
4829 ac_cv_lib_mytinfo_tgoto=yes
4831 echo "$as_me: failed program was:" >&5
4832 cat conftest.$ac_ext >&5
4833 ac_cv_lib_mytinfo_tgoto=no
4835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4836 LIBS=$ac_check_lib_save_LIBS
4838 echo "$as_me:4838: result: $ac_cv_lib_mytinfo_tgoto" >&5
4839 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
4840 if test $ac_cv_lib_mytinfo_tgoto = yes; then
4841 LIBS="-lmytinfo $LIBS"
4846 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
4847 # next (1998), and xcurses "newer" (2000). There is no header file for
4848 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
4849 # term.h) for cur_colr
4850 if test "x$cf_cv_screen" = "xcurses_colr"
4852 echo "$as_me:4852: checking for initscr in -lcur_colr" >&5
4853 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
4854 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 ac_check_lib_save_LIBS=$LIBS
4858 LIBS="-lcur_colr $LIBS"
4859 cat >conftest.$ac_ext <<_ACEOF
4860 #line 4860 "configure"
4861 #include "confdefs.h"
4863 /* Override any gcc2 internal prototype to avoid an error. */
4867 /* We use char because int might match the return type of a gcc2
4868 builtin and then its argument prototype would still apply. */
4878 rm -f conftest.$ac_objext conftest$ac_exeext
4879 if { (eval echo "$as_me:4879: \"$ac_link\"") >&5
4880 (eval $ac_link) 2>&5
4882 echo "$as_me:4882: \$? = $ac_status" >&5
4883 (exit $ac_status); } &&
4884 { ac_try='test -s conftest$ac_exeext'
4885 { (eval echo "$as_me:4885: \"$ac_try\"") >&5
4888 echo "$as_me:4888: \$? = $ac_status" >&5
4889 (exit $ac_status); }; }; then
4890 ac_cv_lib_cur_colr_initscr=yes
4892 echo "$as_me: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4894 ac_cv_lib_cur_colr_initscr=no
4896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4897 LIBS=$ac_check_lib_save_LIBS
4899 echo "$as_me:4899: result: $ac_cv_lib_cur_colr_initscr" >&5
4900 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
4901 if test $ac_cv_lib_cur_colr_initscr = yes; then
4903 LIBS="-lcur_colr $LIBS"
4904 ac_cv_func_initscr=yes
4908 echo "$as_me:4908: checking for initscr in -lHcurses" >&5
4909 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
4910 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
4911 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 ac_check_lib_save_LIBS=$LIBS
4914 LIBS="-lHcurses $LIBS"
4915 cat >conftest.$ac_ext <<_ACEOF
4916 #line 4916 "configure"
4917 #include "confdefs.h"
4919 /* Override any gcc2 internal prototype to avoid an error. */
4923 /* We use char because int might match the return type of a gcc2
4924 builtin and then its argument prototype would still apply. */
4934 rm -f conftest.$ac_objext conftest$ac_exeext
4935 if { (eval echo "$as_me:4935: \"$ac_link\"") >&5
4936 (eval $ac_link) 2>&5
4938 echo "$as_me:4938: \$? = $ac_status" >&5
4939 (exit $ac_status); } &&
4940 { ac_try='test -s conftest$ac_exeext'
4941 { (eval echo "$as_me:4941: \"$ac_try\"") >&5
4944 echo "$as_me:4944: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4946 ac_cv_lib_Hcurses_initscr=yes
4948 echo "$as_me: failed program was:" >&5
4949 cat conftest.$ac_ext >&5
4950 ac_cv_lib_Hcurses_initscr=no
4952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4953 LIBS=$ac_check_lib_save_LIBS
4955 echo "$as_me:4955: result: $ac_cv_lib_Hcurses_initscr" >&5
4956 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
4957 if test $ac_cv_lib_Hcurses_initscr = yes; then
4959 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
4960 LIBS="-lHcurses $LIBS"
4961 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
4962 ac_cv_func_initscr=yes
4971 case `arch 2>/dev/null` in
4976 if test -n "/lib64" ; then
4977 for cf_add_libdir in /lib64
4979 if test $cf_add_libdir = /usr/lib ; then
4981 elif test -d $cf_add_libdir
4984 if test -n "$LDFLAGS$LIBS" ; then
4985 # a loop is needed to ensure we can add subdirs of existing dirs
4986 for cf_test_libdir in $LDFLAGS $LIBS ; do
4987 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4988 cf_have_libdir=yes; break
4992 if test "$cf_have_libdir" = no ; then
4993 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4995 echo "${as_me:-configure}:4995: testing adding $cf_add_libdir to library-path ..." 1>&5
4997 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5005 if test -n "/lib" ; then
5006 for cf_add_libdir in /lib
5008 if test $cf_add_libdir = /usr/lib ; then
5010 elif test -d $cf_add_libdir
5013 if test -n "$LDFLAGS$LIBS" ; then
5014 # a loop is needed to ensure we can add subdirs of existing dirs
5015 for cf_test_libdir in $LDFLAGS $LIBS ; do
5016 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5017 cf_have_libdir=yes; break
5021 if test "$cf_have_libdir" = no ; then
5022 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5024 echo "${as_me:-configure}:5024: testing adding $cf_add_libdir to library-path ..." 1>&5
5026 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5036 if test -n "/lib" ; then
5037 for cf_add_libdir in /lib
5039 if test $cf_add_libdir = /usr/lib ; then
5041 elif test -d $cf_add_libdir
5044 if test -n "$LDFLAGS$LIBS" ; then
5045 # a loop is needed to ensure we can add subdirs of existing dirs
5046 for cf_test_libdir in $LDFLAGS $LIBS ; do
5047 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5048 cf_have_libdir=yes; break
5052 if test "$cf_have_libdir" = no ; then
5053 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5055 echo "${as_me:-configure}:5055: testing adding $cf_add_libdir to library-path ..." 1>&5
5057 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5067 if test "x$cf_cv_screen" = "xcurses_5lib"
5069 if test -d /usr/5lib ; then
5071 if test -n "/usr/5lib" ; then
5072 for cf_add_libdir in /usr/5lib
5074 if test $cf_add_libdir = /usr/lib ; then
5076 elif test -d $cf_add_libdir
5079 if test -n "$LDFLAGS$LIBS" ; then
5080 # a loop is needed to ensure we can add subdirs of existing dirs
5081 for cf_test_libdir in $LDFLAGS $LIBS ; do
5082 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5083 cf_have_libdir=yes; break
5087 if test "$cf_have_libdir" = no ; then
5088 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5090 echo "${as_me:-configure}:5090: testing adding $cf_add_libdir to library-path ..." 1>&5
5092 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5098 LIBS="-lcurses -ltermcap $LIBS"
5101 ac_cv_func_initscr=yes
5105 if test ".$ac_cv_func_initscr" != .yes ; then
5106 cf_save_LIBS="$LIBS"
5108 if test ".${cf_cv_ncurses_version:-no}" != .no
5110 cf_check_list="ncurses curses cursesX"
5112 cf_check_list="cursesX curses ncurses"
5115 # Check for library containing tgoto. Do this before curses library
5116 # because it may be needed to link the test-case for initscr.
5117 if test "x$cf_term_lib" = x
5119 echo "$as_me:5119: checking for tgoto" >&5
5120 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5121 if test "${ac_cv_func_tgoto+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 cat >conftest.$ac_ext <<_ACEOF
5125 #line 5125 "configure"
5126 #include "confdefs.h"
5127 /* System header to define __stub macros and hopefully few prototypes,
5128 which can conflict with char tgoto (); below. */
5130 /* Override any gcc2 internal prototype to avoid an error. */
5134 /* We use char because int might match the return type of a gcc2
5135 builtin and then its argument prototype would still apply. */
5142 /* The GNU C library defines this for functions which it implements
5143 to always fail with ENOSYS. Some functions are actually named
5144 something starting with __ and the normal name is an alias. */
5145 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5148 f = tgoto; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5155 rm -f conftest.$ac_objext conftest$ac_exeext
5156 if { (eval echo "$as_me:5156: \"$ac_link\"") >&5
5157 (eval $ac_link) 2>&5
5159 echo "$as_me:5159: \$? = $ac_status" >&5
5160 (exit $ac_status); } &&
5161 { ac_try='test -s conftest$ac_exeext'
5162 { (eval echo "$as_me:5162: \"$ac_try\"") >&5
5165 echo "$as_me:5165: \$? = $ac_status" >&5
5166 (exit $ac_status); }; }; then
5167 ac_cv_func_tgoto=yes
5169 echo "$as_me: failed program was:" >&5
5170 cat conftest.$ac_ext >&5
5173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5175 echo "$as_me:5175: result: $ac_cv_func_tgoto" >&5
5176 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5177 if test $ac_cv_func_tgoto = yes; then
5178 cf_term_lib=predefined
5181 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
5183 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5184 echo "$as_me:5184: checking for tgoto in -l$cf_term_lib" >&5
5185 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5186 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 ac_check_lib_save_LIBS=$LIBS
5190 LIBS="-l$cf_term_lib $LIBS"
5191 cat >conftest.$ac_ext <<_ACEOF
5192 #line 5192 "configure"
5193 #include "confdefs.h"
5195 /* Override any gcc2 internal prototype to avoid an error. */
5199 /* We use char because int might match the return type of a gcc2
5200 builtin and then its argument prototype would still apply. */
5210 rm -f conftest.$ac_objext conftest$ac_exeext
5211 if { (eval echo "$as_me:5211: \"$ac_link\"") >&5
5212 (eval $ac_link) 2>&5
5214 echo "$as_me:5214: \$? = $ac_status" >&5
5215 (exit $ac_status); } &&
5216 { ac_try='test -s conftest$ac_exeext'
5217 { (eval echo "$as_me:5217: \"$ac_try\"") >&5
5220 echo "$as_me:5220: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5222 eval "$as_ac_Lib=yes"
5224 echo "$as_me: failed program was:" >&5
5225 cat conftest.$ac_ext >&5
5226 eval "$as_ac_Lib=no"
5228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5229 LIBS=$ac_check_lib_save_LIBS
5231 echo "$as_me:5231: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5232 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5233 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5243 # Check for library containing initscr
5244 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5245 if test "x$cf_curs_lib" = x
5247 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
5249 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5250 echo "$as_me:5250: checking for initscr in -l$cf_curs_lib" >&5
5251 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5252 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 ac_check_lib_save_LIBS=$LIBS
5256 LIBS="-l$cf_curs_lib $LIBS"
5257 cat >conftest.$ac_ext <<_ACEOF
5258 #line 5258 "configure"
5259 #include "confdefs.h"
5261 /* Override any gcc2 internal prototype to avoid an error. */
5265 /* We use char because int might match the return type of a gcc2
5266 builtin and then its argument prototype would still apply. */
5276 rm -f conftest.$ac_objext conftest$ac_exeext
5277 if { (eval echo "$as_me:5277: \"$ac_link\"") >&5
5278 (eval $ac_link) 2>&5
5280 echo "$as_me:5280: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
5282 { ac_try='test -s conftest$ac_exeext'
5283 { (eval echo "$as_me:5283: \"$ac_try\"") >&5
5286 echo "$as_me:5286: \$? = $ac_status" >&5
5287 (exit $ac_status); }; }; then
5288 eval "$as_ac_Lib=yes"
5290 echo "$as_me: failed program was:" >&5
5291 cat conftest.$ac_ext >&5
5292 eval "$as_ac_Lib=no"
5294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5295 LIBS=$ac_check_lib_save_LIBS
5297 echo "$as_me:5297: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5298 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5299 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5305 test $cf_curs_lib = unknown && { { echo "$as_me:5305: error: no curses library found" >&5
5306 echo "$as_me: error: no curses library found" >&2;}
5307 { (exit 1); exit 1; }; }
5309 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5310 if test "$cf_term_lib" = unknown ; then
5311 echo "$as_me:5311: checking if we can link with $cf_curs_lib library" >&5
5312 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5313 cat >conftest.$ac_ext <<_ACEOF
5314 #line 5314 "configure"
5315 #include "confdefs.h"
5316 #include <${cf_cv_ncurses_header:-curses.h}>
5325 rm -f conftest.$ac_objext conftest$ac_exeext
5326 if { (eval echo "$as_me:5326: \"$ac_link\"") >&5
5327 (eval $ac_link) 2>&5
5329 echo "$as_me:5329: \$? = $ac_status" >&5
5330 (exit $ac_status); } &&
5331 { ac_try='test -s conftest$ac_exeext'
5332 { (eval echo "$as_me:5332: \"$ac_try\"") >&5
5335 echo "$as_me:5335: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5339 echo "$as_me: failed program was:" >&5
5340 cat conftest.$ac_ext >&5
5343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5344 echo "$as_me:5344: result: $cf_result" >&5
5345 echo "${ECHO_T}$cf_result" >&6
5346 test $cf_result = no && { { echo "$as_me:5346: error: Cannot link curses library" >&5
5347 echo "$as_me: error: Cannot link curses library" >&2;}
5348 { (exit 1); exit 1; }; }
5349 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
5351 elif test "$cf_term_lib" != predefined ; then
5352 echo "$as_me:5352: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5353 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5354 cat >conftest.$ac_ext <<_ACEOF
5355 #line 5355 "configure"
5356 #include "confdefs.h"
5357 #include <${cf_cv_ncurses_header:-curses.h}>
5361 initscr(); tgoto((char *)0, 0, 0);
5366 rm -f conftest.$ac_objext conftest$ac_exeext
5367 if { (eval echo "$as_me:5367: \"$ac_link\"") >&5
5368 (eval $ac_link) 2>&5
5370 echo "$as_me:5370: \$? = $ac_status" >&5
5371 (exit $ac_status); } &&
5372 { ac_try='test -s conftest$ac_exeext'
5373 { (eval echo "$as_me:5373: \"$ac_try\"") >&5
5376 echo "$as_me:5376: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5380 echo "$as_me: failed program was:" >&5
5381 cat conftest.$ac_ext >&5
5383 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5384 cat >conftest.$ac_ext <<_ACEOF
5385 #line 5385 "configure"
5386 #include "confdefs.h"
5387 #include <${cf_cv_ncurses_header:-curses.h}>
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (eval echo "$as_me:5397: \"$ac_link\"") >&5
5398 (eval $ac_link) 2>&5
5400 echo "$as_me:5400: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try='test -s conftest$ac_exeext'
5403 { (eval echo "$as_me:5403: \"$ac_try\"") >&5
5406 echo "$as_me:5406: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5410 echo "$as_me: failed program was:" >&5
5411 cat conftest.$ac_ext >&5
5414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5418 echo "$as_me:5418: result: $cf_result" >&5
5419 echo "${ECHO_T}$cf_result" >&6
5427 cf_ncuconfig_root=ncurses
5429 echo "Looking for ${cf_ncuconfig_root}-config"
5431 if test -n "$ac_tool_prefix"; then
5432 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
5434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5436 echo "$as_me:5436: checking for $ac_word" >&5
5437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5438 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 if test -n "$NCURSES_CONFIG"; then
5442 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
5444 ac_save_IFS=$IFS; IFS=$ac_path_separator
5446 for ac_dir in $ac_dummy; do
5448 test -z "$ac_dir" && ac_dir=.
5449 $as_executable_p "$ac_dir/$ac_word" || continue
5450 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
5451 echo "$as_me:5451: found $ac_dir/$ac_word" >&5
5457 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
5458 if test -n "$NCURSES_CONFIG"; then
5459 echo "$as_me:5459: result: $NCURSES_CONFIG" >&5
5460 echo "${ECHO_T}$NCURSES_CONFIG" >&6
5462 echo "$as_me:5462: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5466 test -n "$NCURSES_CONFIG" && break
5469 if test -z "$NCURSES_CONFIG"; then
5470 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
5471 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
5473 # Extract the first word of "$ac_prog", so it can be a program name with args.
5474 set dummy $ac_prog; ac_word=$2
5475 echo "$as_me:5475: checking for $ac_word" >&5
5476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5477 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
5478 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 if test -n "$ac_ct_NCURSES_CONFIG"; then
5481 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
5483 ac_save_IFS=$IFS; IFS=$ac_path_separator
5485 for ac_dir in $ac_dummy; do
5487 test -z "$ac_dir" && ac_dir=.
5488 $as_executable_p "$ac_dir/$ac_word" || continue
5489 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
5490 echo "$as_me:5490: found $ac_dir/$ac_word" >&5
5496 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
5497 if test -n "$ac_ct_NCURSES_CONFIG"; then
5498 echo "$as_me:5498: result: $ac_ct_NCURSES_CONFIG" >&5
5499 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
5501 echo "$as_me:5501: result: no" >&5
5502 echo "${ECHO_T}no" >&6
5505 test -n "$ac_ct_NCURSES_CONFIG" && break
5507 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
5509 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
5512 if test "$NCURSES_CONFIG" != none ; then
5514 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
5515 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
5517 # even with config script, some packages use no-override for curses.h
5519 echo "$as_me:5519: checking if we have identified curses headers" >&5
5520 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
5521 if test "${cf_cv_ncurses_header+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5525 cf_cv_ncurses_header=none
5532 cat >conftest.$ac_ext <<_ACEOF
5533 #line 5533 "configure"
5534 #include "confdefs.h"
5535 #include <${cf_header}>
5539 initscr(); tgoto("?", 0,0)
5544 rm -f conftest.$ac_objext
5545 if { (eval echo "$as_me:5545: \"$ac_compile\"") >&5
5546 (eval $ac_compile) 2>&5
5548 echo "$as_me:5548: \$? = $ac_status" >&5
5549 (exit $ac_status); } &&
5550 { ac_try='test -s conftest.$ac_objext'
5551 { (eval echo "$as_me:5551: \"$ac_try\"") >&5
5554 echo "$as_me:5554: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
5556 cf_cv_ncurses_header=$cf_header; break
5558 echo "$as_me: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5561 rm -f conftest.$ac_objext conftest.$ac_ext
5565 echo "$as_me:5565: result: $cf_cv_ncurses_header" >&5
5566 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
5568 if test "$cf_cv_ncurses_header" = none ; then
5569 { { echo "$as_me:5569: error: No curses header-files found" >&5
5570 echo "$as_me: error: No curses header-files found" >&2;}
5571 { (exit 1); exit 1; }; }
5574 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
5576 for ac_header in $cf_cv_ncurses_header
5578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5579 echo "$as_me:5579: checking for $ac_header" >&5
5580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 cat >conftest.$ac_ext <<_ACEOF
5585 #line 5585 "configure"
5586 #include "confdefs.h"
5587 #include <$ac_header>
5589 if { (eval echo "$as_me:5589: \"$ac_cpp conftest.$ac_ext\"") >&5
5590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5592 egrep -v '^ *\+' conftest.er1 >conftest.err
5594 cat conftest.err >&5
5595 echo "$as_me:5595: \$? = $ac_status" >&5
5596 (exit $ac_status); } >/dev/null; then
5597 if test -s conftest.err; then
5598 ac_cpp_err=$ac_c_preproc_warn_flag
5605 if test -z "$ac_cpp_err"; then
5606 eval "$as_ac_Header=yes"
5608 echo "$as_me: failed program was:" >&5
5609 cat conftest.$ac_ext >&5
5610 eval "$as_ac_Header=no"
5612 rm -f conftest.err conftest.$ac_ext
5614 echo "$as_me:5614: result: `eval echo '${'$as_ac_Header'}'`" >&5
5615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5617 cat >>confdefs.h <<EOF
5618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5624 cat >>confdefs.h <<\EOF
5628 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5630 cat >>confdefs.h <<EOF
5631 #define $cf_nculib_ROOT 1
5634 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
5638 cf_ncuhdr_root=ncurses
5640 test -n "$cf_cv_curses_dir" && \
5641 test "$cf_cv_curses_dir" != "no" && { \
5643 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
5644 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
5646 while test $cf_add_incdir != /usr/include
5648 if test -d $cf_add_incdir
5651 if test -n "$CFLAGS$CPPFLAGS" ; then
5652 # a loop is needed to ensure we can add subdirs of existing dirs
5653 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5654 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5655 cf_have_incdir=yes; break
5660 if test "$cf_have_incdir" = no ; then
5661 if test "$cf_add_incdir" = /usr/local/include ; then
5662 if test "$GCC" = yes
5664 cf_save_CPPFLAGS=$CPPFLAGS
5665 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5666 cat >conftest.$ac_ext <<_ACEOF
5667 #line 5667 "configure"
5668 #include "confdefs.h"
5678 rm -f conftest.$ac_objext
5679 if { (eval echo "$as_me:5679: \"$ac_compile\"") >&5
5680 (eval $ac_compile) 2>&5
5682 echo "$as_me:5682: \$? = $ac_status" >&5
5683 (exit $ac_status); } &&
5684 { ac_try='test -s conftest.$ac_objext'
5685 { (eval echo "$as_me:5685: \"$ac_try\"") >&5
5688 echo "$as_me:5688: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5692 echo "$as_me: failed program was:" >&5
5693 cat conftest.$ac_ext >&5
5696 rm -f conftest.$ac_objext conftest.$ac_ext
5697 CPPFLAGS=$cf_save_CPPFLAGS
5702 if test "$cf_have_incdir" = no ; then
5703 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5705 echo "${as_me:-configure}:5705: testing adding $cf_add_incdir to include-path ..." 1>&5
5707 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5709 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5710 test "$cf_top_incdir" = "$cf_add_incdir" && break
5711 cf_add_incdir="$cf_top_incdir"
5722 echo "$as_me:5722: checking for $cf_ncuhdr_root header in include-path" >&5
5723 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
5724 if test "${cf_cv_ncurses_h+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
5729 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
5730 for cf_header in $cf_header_list
5733 cat >conftest.$ac_ext <<_ACEOF
5734 #line 5734 "configure"
5735 #include "confdefs.h"
5737 #include <$cf_header>
5742 #ifdef NCURSES_VERSION
5744 printf("%s\n", NCURSES_VERSION);
5757 rm -f conftest.$ac_objext
5758 if { (eval echo "$as_me:5758: \"$ac_compile\"") >&5
5759 (eval $ac_compile) 2>&5
5761 echo "$as_me:5761: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try='test -s conftest.$ac_objext'
5764 { (eval echo "$as_me:5764: \"$ac_try\"") >&5
5767 echo "$as_me:5767: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 cf_cv_ncurses_h=$cf_header
5772 echo "$as_me: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5776 rm -f conftest.$ac_objext conftest.$ac_ext
5778 test "$cf_cv_ncurses_h" != no && break
5782 echo "$as_me:5782: result: $cf_cv_ncurses_h" >&5
5783 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
5785 if test "$cf_cv_ncurses_h" != no ; then
5786 cf_cv_ncurses_header=$cf_cv_ncurses_h
5789 echo "$as_me:5789: checking for $cf_ncuhdr_root include-path" >&5
5790 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
5791 if test "${cf_cv_ncurses_h2+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 test -n "$verbose" && echo
5799 # collect the current set of include-directories from compiler flags
5800 cf_header_path_list=""
5801 if test -n "${CFLAGS}${CPPFLAGS}" ; then
5802 for cf_header_path in $CPPFLAGS $CFLAGS
5804 case $cf_header_path in #(vi
5806 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
5808 test "x$cf_header_path" != "xNONE" && \
5809 test -d "$cf_header_path" && \
5811 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
5812 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
5813 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
5814 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
5815 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
5816 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"
5819 cf_header_path_list="$cf_header_path_list $cf_search"
5825 # add the variations for the package we are looking for
5829 test "x/usr" != "x$prefix" && \
5831 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
5832 test -n "$verbose" && echo " ... testing for include-directories under /usr"
5833 test -d /usr/include && cf_search="$cf_search /usr/include"
5834 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
5835 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
5836 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
5837 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5840 test "x$prefix" != "xNONE" && \
5841 test -d "$prefix" && \
5843 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
5844 test -d $prefix/include && cf_search="$cf_search $prefix/include"
5845 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
5846 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
5847 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
5848 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5851 test "x/usr/local" != "x$prefix" && \
5852 test -d "/usr/local" && \
5853 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
5854 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
5855 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
5856 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
5857 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
5858 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
5859 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5862 test "x/opt" != "x$prefix" && \
5864 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
5865 test -n "$verbose" && echo " ... testing for include-directories under /opt"
5866 test -d /opt/include && cf_search="$cf_search /opt/include"
5867 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
5868 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
5869 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
5870 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5873 test "x$HOME" != "x$prefix" && \
5874 test -d "$HOME" && \
5875 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
5876 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
5877 test -d $HOME/include && cf_search="$cf_search $HOME/include"
5878 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
5879 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
5880 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
5881 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5884 test "$includedir" != NONE && \
5885 test "$includedir" != "/usr/include" && \
5886 test -d "$includedir" && {
5887 test -d $includedir && cf_search="$cf_search $includedir"
5888 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
5891 test "$oldincludedir" != NONE && \
5892 test "$oldincludedir" != "/usr/include" && \
5893 test -d "$oldincludedir" && {
5894 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
5895 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
5898 cf_search="$cf_search $cf_header_path_list"
5900 test -n "$verbose" && echo search path $cf_search
5901 cf_save2_CPPFLAGS="$CPPFLAGS"
5902 for cf_incdir in $cf_search
5905 if test -n "$cf_incdir" ; then
5906 for cf_add_incdir in $cf_incdir
5908 while test $cf_add_incdir != /usr/include
5910 if test -d $cf_add_incdir
5913 if test -n "$CFLAGS$CPPFLAGS" ; then
5914 # a loop is needed to ensure we can add subdirs of existing dirs
5915 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5916 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5917 cf_have_incdir=yes; break
5922 if test "$cf_have_incdir" = no ; then
5923 if test "$cf_add_incdir" = /usr/local/include ; then
5924 if test "$GCC" = yes
5926 cf_save_CPPFLAGS=$CPPFLAGS
5927 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5928 cat >conftest.$ac_ext <<_ACEOF
5929 #line 5929 "configure"
5930 #include "confdefs.h"
5940 rm -f conftest.$ac_objext
5941 if { (eval echo "$as_me:5941: \"$ac_compile\"") >&5
5942 (eval $ac_compile) 2>&5
5944 echo "$as_me:5944: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try='test -s conftest.$ac_objext'
5947 { (eval echo "$as_me:5947: \"$ac_try\"") >&5
5950 echo "$as_me:5950: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5954 echo "$as_me: failed program was:" >&5
5955 cat conftest.$ac_ext >&5
5958 rm -f conftest.$ac_objext conftest.$ac_ext
5959 CPPFLAGS=$cf_save_CPPFLAGS
5964 if test "$cf_have_incdir" = no ; then
5965 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5967 echo "${as_me:-configure}:5967: testing adding $cf_add_incdir to include-path ..." 1>&5
5969 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5971 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5972 test "$cf_top_incdir" = "$cf_add_incdir" && break
5973 cf_add_incdir="$cf_top_incdir"
5987 cat >conftest.$ac_ext <<_ACEOF
5988 #line 5988 "configure"
5989 #include "confdefs.h"
5991 #include <$cf_header>
5996 #ifdef NCURSES_VERSION
5998 printf("%s\n", NCURSES_VERSION);
6011 rm -f conftest.$ac_objext
6012 if { (eval echo "$as_me:6012: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>&5
6015 echo "$as_me:6015: \$? = $ac_status" >&5
6016 (exit $ac_status); } &&
6017 { ac_try='test -s conftest.$ac_objext'
6018 { (eval echo "$as_me:6018: \"$ac_try\"") >&5
6021 echo "$as_me:6021: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6023 cf_cv_ncurses_h2=$cf_header
6026 echo "$as_me: failed program was:" >&5
6027 cat conftest.$ac_ext >&5
6030 rm -f conftest.$ac_objext conftest.$ac_ext
6032 if test "$cf_cv_ncurses_h2" != no ; then
6033 cf_cv_ncurses_h2=$cf_incdir/$cf_header
6034 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
6037 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
6039 CPPFLAGS="$cf_save2_CPPFLAGS"
6040 test "$cf_cv_ncurses_h2" != no && break
6042 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:6042: error: not found" >&5
6043 echo "$as_me: error: not found" >&2;}
6044 { (exit 1); exit 1; }; }
6047 echo "$as_me:6047: result: $cf_cv_ncurses_h2" >&5
6048 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
6050 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
6051 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
6052 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
6053 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
6056 if test -n "$cf_1st_incdir" ; then
6057 for cf_add_incdir in $cf_1st_incdir
6059 while test $cf_add_incdir != /usr/include
6061 if test -d $cf_add_incdir
6064 if test -n "$CFLAGS$CPPFLAGS" ; then
6065 # a loop is needed to ensure we can add subdirs of existing dirs
6066 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6067 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6068 cf_have_incdir=yes; break
6073 if test "$cf_have_incdir" = no ; then
6074 if test "$cf_add_incdir" = /usr/local/include ; then
6075 if test "$GCC" = yes
6077 cf_save_CPPFLAGS=$CPPFLAGS
6078 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6079 cat >conftest.$ac_ext <<_ACEOF
6080 #line 6080 "configure"
6081 #include "confdefs.h"
6091 rm -f conftest.$ac_objext
6092 if { (eval echo "$as_me:6092: \"$ac_compile\"") >&5
6093 (eval $ac_compile) 2>&5
6095 echo "$as_me:6095: \$? = $ac_status" >&5
6096 (exit $ac_status); } &&
6097 { ac_try='test -s conftest.$ac_objext'
6098 { (eval echo "$as_me:6098: \"$ac_try\"") >&5
6101 echo "$as_me:6101: \$? = $ac_status" >&5
6102 (exit $ac_status); }; }; then
6105 echo "$as_me: failed program was:" >&5
6106 cat conftest.$ac_ext >&5
6109 rm -f conftest.$ac_objext conftest.$ac_ext
6110 CPPFLAGS=$cf_save_CPPFLAGS
6115 if test "$cf_have_incdir" = no ; then
6116 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6118 echo "${as_me:-configure}:6118: testing adding $cf_add_incdir to include-path ..." 1>&5
6120 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6122 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6123 test "$cf_top_incdir" = "$cf_add_incdir" && break
6124 cf_add_incdir="$cf_top_incdir"
6135 # Set definitions to allow ifdef'ing for ncurses.h
6137 case $cf_cv_ncurses_header in # (vi
6140 cat >>confdefs.h <<\EOF
6141 #define HAVE_NCURSES_H 1
6147 case $cf_cv_ncurses_header in # (vi
6148 ncurses/curses.h|ncurses/ncurses.h)
6150 cat >>confdefs.h <<\EOF
6151 #define HAVE_NCURSES_NCURSES_H 1
6155 ncursesw/curses.h|ncursesw/ncurses.h)
6157 cat >>confdefs.h <<\EOF
6158 #define HAVE_NCURSESW_NCURSES_H 1
6164 echo "$as_me:6164: checking for terminfo header" >&5
6165 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6166 if test "${cf_cv_term_header+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6170 case ${cf_cv_ncurses_header} in #(vi
6171 */ncurses.h|*/ncursesw.h) #(vi
6172 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6175 cf_term_header=term.h
6179 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6181 cat >conftest.$ac_ext <<_ACEOF
6182 #line 6182 "configure"
6183 #include "confdefs.h"
6185 #include <${cf_cv_ncurses_header:-curses.h}>
6191 int x = auto_left_margin
6196 rm -f conftest.$ac_objext
6197 if { (eval echo "$as_me:6197: \"$ac_compile\"") >&5
6198 (eval $ac_compile) 2>&5
6200 echo "$as_me:6200: \$? = $ac_status" >&5
6201 (exit $ac_status); } &&
6202 { ac_try='test -s conftest.$ac_objext'
6203 { (eval echo "$as_me:6203: \"$ac_try\"") >&5
6206 echo "$as_me:6206: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6209 cf_cv_term_header="$cf_test"
6211 echo "$as_me: failed program was:" >&5
6212 cat conftest.$ac_ext >&5
6214 cf_cv_term_header=unknown
6217 rm -f conftest.$ac_objext conftest.$ac_ext
6218 test "$cf_cv_term_header" != unknown && break
6222 echo "$as_me:6222: result: $cf_cv_term_header" >&5
6223 echo "${ECHO_T}$cf_cv_term_header" >&6
6225 # Set definitions to allow ifdef'ing to accommodate subdirectories
6227 case $cf_cv_term_header in # (vi
6230 cat >>confdefs.h <<\EOF
6231 #define HAVE_TERM_H 1
6237 case $cf_cv_term_header in # (vi
6238 ncurses/term.h) #(vi
6240 cat >>confdefs.h <<\EOF
6241 #define HAVE_NCURSES_TERM_H 1
6247 cat >>confdefs.h <<\EOF
6248 #define HAVE_NCURSESW_TERM_H 1
6254 # some applications need this, but should check for NCURSES_VERSION
6256 cat >>confdefs.h <<\EOF
6260 echo "$as_me:6260: checking for ncurses version" >&5
6261 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
6262 if test "${cf_cv_ncurses_version+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 cf_cv_ncurses_version=no
6269 if test "$cross_compiling" = yes; then
6271 # This will not work if the preprocessor splits the line after the
6272 # Autoconf token. The 'unproto' program does that.
6273 cat > conftest.$ac_ext <<EOF
6274 #include <${cf_cv_ncurses_header:-curses.h}>
6276 #ifdef NCURSES_VERSION
6277 Autoconf NCURSES_VERSION
6285 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
6286 { (eval echo "$as_me:6286: \"$cf_try\"") >&5
6289 echo "$as_me:6289: \$? = $ac_status" >&5
6290 (exit $ac_status); }
6291 if test -f conftest.out ; then
6292 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
6293 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
6298 cat >conftest.$ac_ext <<_ACEOF
6299 #line 6299 "configure"
6300 #include "confdefs.h"
6302 #include <${cf_cv_ncurses_header:-curses.h}>
6306 FILE *fp = fopen("$cf_tempfile", "w");
6307 #ifdef NCURSES_VERSION
6308 # ifdef NCURSES_VERSION_PATCH
6309 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
6311 fprintf(fp, "%s\n", NCURSES_VERSION);
6315 fprintf(fp, "old\n");
6320 ${cf_cv_main_return:-return}(0);
6323 rm -f conftest$ac_exeext
6324 if { (eval echo "$as_me:6324: \"$ac_link\"") >&5
6325 (eval $ac_link) 2>&5
6327 echo "$as_me:6327: \$? = $ac_status" >&5
6328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6329 { (eval echo "$as_me:6329: \"$ac_try\"") >&5
6332 echo "$as_me:6332: \$? = $ac_status" >&5
6333 (exit $ac_status); }; }; then
6335 cf_cv_ncurses_version=`cat $cf_tempfile`
6337 echo "$as_me: program exited with status $ac_status" >&5
6338 echo "$as_me: failed program was:" >&5
6339 cat conftest.$ac_ext >&5
6341 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6346 echo "$as_me:6346: result: $cf_cv_ncurses_version" >&5
6347 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
6348 test "$cf_cv_ncurses_version" = no ||
6349 cat >>confdefs.h <<\EOF
6353 cf_nculib_root=ncurses
6354 # This works, except for the special case where we find gpm, but
6355 # ncurses is in a nonstandard location via $LIBS, and we really want
6358 cf_ncurses_SAVE="$LIBS"
6359 echo "$as_me:6359: checking for Gpm_Open in -lgpm" >&5
6360 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6361 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 ac_check_lib_save_LIBS=$LIBS
6366 cat >conftest.$ac_ext <<_ACEOF
6367 #line 6367 "configure"
6368 #include "confdefs.h"
6370 /* Override any gcc2 internal prototype to avoid an error. */
6374 /* We use char because int might match the return type of a gcc2
6375 builtin and then its argument prototype would still apply. */
6385 rm -f conftest.$ac_objext conftest$ac_exeext
6386 if { (eval echo "$as_me:6386: \"$ac_link\"") >&5
6387 (eval $ac_link) 2>&5
6389 echo "$as_me:6389: \$? = $ac_status" >&5
6390 (exit $ac_status); } &&
6391 { ac_try='test -s conftest$ac_exeext'
6392 { (eval echo "$as_me:6392: \"$ac_try\"") >&5
6395 echo "$as_me:6395: \$? = $ac_status" >&5
6396 (exit $ac_status); }; }; then
6397 ac_cv_lib_gpm_Gpm_Open=yes
6399 echo "$as_me: failed program was:" >&5
6400 cat conftest.$ac_ext >&5
6401 ac_cv_lib_gpm_Gpm_Open=no
6403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6404 LIBS=$ac_check_lib_save_LIBS
6406 echo "$as_me:6406: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6407 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6408 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6409 echo "$as_me:6409: checking for initscr in -lgpm" >&5
6410 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
6411 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 ac_check_lib_save_LIBS=$LIBS
6416 cat >conftest.$ac_ext <<_ACEOF
6417 #line 6417 "configure"
6418 #include "confdefs.h"
6420 /* Override any gcc2 internal prototype to avoid an error. */
6424 /* We use char because int might match the return type of a gcc2
6425 builtin and then its argument prototype would still apply. */
6435 rm -f conftest.$ac_objext conftest$ac_exeext
6436 if { (eval echo "$as_me:6436: \"$ac_link\"") >&5
6437 (eval $ac_link) 2>&5
6439 echo "$as_me:6439: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -s conftest$ac_exeext'
6442 { (eval echo "$as_me:6442: \"$ac_try\"") >&5
6445 echo "$as_me:6445: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6447 ac_cv_lib_gpm_initscr=yes
6449 echo "$as_me: failed program was:" >&5
6450 cat conftest.$ac_ext >&5
6451 ac_cv_lib_gpm_initscr=no
6453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6454 LIBS=$ac_check_lib_save_LIBS
6456 echo "$as_me:6456: result: $ac_cv_lib_gpm_initscr" >&5
6457 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
6458 if test $ac_cv_lib_gpm_initscr = yes; then
6459 LIBS="$cf_ncurses_SAVE"
6461 cf_ncurses_LIBS="-lgpm"
6466 case $host_os in #(vi
6468 # This is only necessary if you are linking against an obsolete
6469 # version of ncurses (but it should do no harm, since it's static).
6470 if test "$cf_nculib_root" = ncurses ; then
6471 echo "$as_me:6471: checking for tgoto in -lmytinfo" >&5
6472 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6473 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6474 echo $ECHO_N "(cached) $ECHO_C" >&6
6476 ac_check_lib_save_LIBS=$LIBS
6477 LIBS="-lmytinfo $LIBS"
6478 cat >conftest.$ac_ext <<_ACEOF
6479 #line 6479 "configure"
6480 #include "confdefs.h"
6482 /* Override any gcc2 internal prototype to avoid an error. */
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6497 rm -f conftest.$ac_objext conftest$ac_exeext
6498 if { (eval echo "$as_me:6498: \"$ac_link\"") >&5
6499 (eval $ac_link) 2>&5
6501 echo "$as_me:6501: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try='test -s conftest$ac_exeext'
6504 { (eval echo "$as_me:6504: \"$ac_try\"") >&5
6507 echo "$as_me:6507: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 ac_cv_lib_mytinfo_tgoto=yes
6511 echo "$as_me: failed program was:" >&5
6512 cat conftest.$ac_ext >&5
6513 ac_cv_lib_mytinfo_tgoto=no
6515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6516 LIBS=$ac_check_lib_save_LIBS
6518 echo "$as_me:6518: result: $ac_cv_lib_mytinfo_tgoto" >&5
6519 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
6520 if test $ac_cv_lib_mytinfo_tgoto = yes; then
6521 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
6528 LIBS="$cf_ncurses_LIBS $LIBS"
6530 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
6532 LIBS="-l$cf_nculib_root $LIBS"
6535 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
6537 echo "$as_me:6537: checking for initscr" >&5
6538 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6539 if test "${ac_cv_func_initscr+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 cat >conftest.$ac_ext <<_ACEOF
6543 #line 6543 "configure"
6544 #include "confdefs.h"
6545 /* System header to define __stub macros and hopefully few prototypes,
6546 which can conflict with char initscr (); below. */
6548 /* Override any gcc2 internal prototype to avoid an error. */
6552 /* We use char because int might match the return type of a gcc2
6553 builtin and then its argument prototype would still apply. */
6560 /* The GNU C library defines this for functions which it implements
6561 to always fail with ENOSYS. Some functions are actually named
6562 something starting with __ and the normal name is an alias. */
6563 #if defined (__stub_initscr) || defined (__stub___initscr)
6566 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
6573 rm -f conftest.$ac_objext conftest$ac_exeext
6574 if { (eval echo "$as_me:6574: \"$ac_link\"") >&5
6575 (eval $ac_link) 2>&5
6577 echo "$as_me:6577: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -s conftest$ac_exeext'
6580 { (eval echo "$as_me:6580: \"$ac_try\"") >&5
6583 echo "$as_me:6583: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6585 ac_cv_func_initscr=yes
6587 echo "$as_me: failed program was:" >&5
6588 cat conftest.$ac_ext >&5
6589 ac_cv_func_initscr=no
6591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6593 echo "$as_me:6593: result: $ac_cv_func_initscr" >&5
6594 echo "${ECHO_T}$ac_cv_func_initscr" >&6
6595 if test $ac_cv_func_initscr = yes; then
6596 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6599 cf_save_LIBS="$LIBS"
6600 echo "$as_me:6600: checking for initscr in -l$cf_nculib_root" >&5
6601 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
6602 LIBS="-l$cf_nculib_root $LIBS"
6603 cat >conftest.$ac_ext <<_ACEOF
6604 #line 6604 "configure"
6605 #include "confdefs.h"
6606 #include <${cf_cv_ncurses_header:-curses.h}>
6615 rm -f conftest.$ac_objext conftest$ac_exeext
6616 if { (eval echo "$as_me:6616: \"$ac_link\"") >&5
6617 (eval $ac_link) 2>&5
6619 echo "$as_me:6619: \$? = $ac_status" >&5
6620 (exit $ac_status); } &&
6621 { ac_try='test -s conftest$ac_exeext'
6622 { (eval echo "$as_me:6622: \"$ac_try\"") >&5
6625 echo "$as_me:6625: \$? = $ac_status" >&5
6626 (exit $ac_status); }; }; then
6627 echo "$as_me:6627: result: yes" >&5
6628 echo "${ECHO_T}yes" >&6
6629 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6632 echo "$as_me: failed program was:" >&5
6633 cat conftest.$ac_ext >&5
6634 echo "$as_me:6634: result: no" >&5
6635 echo "${ECHO_T}no" >&6
6638 cf_library_path_list=""
6639 if test -n "${LDFLAGS}${LIBS}" ; then
6640 for cf_library_path in $LDFLAGS $LIBS
6642 case $cf_library_path in #(vi
6644 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
6646 test "x$cf_library_path" != "xNONE" && \
6647 test -d "$cf_library_path" && \
6649 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
6650 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
6651 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
6652 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
6653 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
6654 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"
6657 cf_library_path_list="$cf_library_path_list $cf_search"
6665 test "x/usr" != "x$prefix" && \
6667 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
6668 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
6669 test -d /usr/lib && cf_search="$cf_search /usr/lib"
6670 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
6671 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
6672 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
6673 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
6676 test "x$prefix" != "xNONE" && \
6677 test -d "$prefix" && \
6679 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
6680 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
6681 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
6682 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
6683 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
6684 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
6687 test "x/usr/local" != "x$prefix" && \
6688 test -d "/usr/local" && \
6689 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
6690 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
6691 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
6692 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
6693 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
6694 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
6695 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
6698 test "x/opt" != "x$prefix" && \
6700 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
6701 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
6702 test -d /opt/lib && cf_search="$cf_search /opt/lib"
6703 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
6704 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
6705 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
6706 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
6709 test "x$HOME" != "x$prefix" && \
6710 test -d "$HOME" && \
6711 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
6712 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
6713 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
6714 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
6715 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
6716 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
6717 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
6720 cf_search="$cf_library_path_list $cf_search"
6722 for cf_libdir in $cf_search
6724 echo "$as_me:6724: checking for -l$cf_nculib_root in $cf_libdir" >&5
6725 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
6726 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
6727 cat >conftest.$ac_ext <<_ACEOF
6728 #line 6728 "configure"
6729 #include "confdefs.h"
6730 #include <${cf_cv_ncurses_header:-curses.h}>
6739 rm -f conftest.$ac_objext conftest$ac_exeext
6740 if { (eval echo "$as_me:6740: \"$ac_link\"") >&5
6741 (eval $ac_link) 2>&5
6743 echo "$as_me:6743: \$? = $ac_status" >&5
6744 (exit $ac_status); } &&
6745 { ac_try='test -s conftest$ac_exeext'
6746 { (eval echo "$as_me:6746: \"$ac_try\"") >&5
6749 echo "$as_me:6749: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
6751 echo "$as_me:6751: result: yes" >&5
6752 echo "${ECHO_T}yes" >&6
6753 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6756 echo "$as_me: failed program was:" >&5
6757 cat conftest.$ac_ext >&5
6758 echo "$as_me:6758: result: no" >&5
6759 echo "${ECHO_T}no" >&6
6760 LIBS="$cf_save_LIBS"
6762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6770 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
6772 if test $cf_found_library = no ; then
6773 { { echo "$as_me:6773: error: Cannot link $cf_nculib_root library" >&5
6774 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
6775 { (exit 1); exit 1; }; }
6780 if test -n "$cf_ncurses_LIBS" ; then
6781 echo "$as_me:6781: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
6782 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
6783 cf_ncurses_SAVE="$LIBS"
6784 for p in $cf_ncurses_LIBS ; do
6785 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
6786 if test "$q" != "$LIBS" ; then
6790 cat >conftest.$ac_ext <<_ACEOF
6791 #line 6791 "configure"
6792 #include "confdefs.h"
6793 #include <${cf_cv_ncurses_header:-curses.h}>
6797 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
6802 rm -f conftest.$ac_objext conftest$ac_exeext
6803 if { (eval echo "$as_me:6803: \"$ac_link\"") >&5
6804 (eval $ac_link) 2>&5
6806 echo "$as_me:6806: \$? = $ac_status" >&5
6807 (exit $ac_status); } &&
6808 { ac_try='test -s conftest$ac_exeext'
6809 { (eval echo "$as_me:6809: \"$ac_try\"") >&5
6812 echo "$as_me:6812: \$? = $ac_status" >&5
6813 (exit $ac_status); }; }; then
6814 echo "$as_me:6814: result: yes" >&5
6815 echo "${ECHO_T}yes" >&6
6817 echo "$as_me: failed program was:" >&5
6818 cat conftest.$ac_ext >&5
6819 echo "$as_me:6819: result: no" >&5
6820 echo "${ECHO_T}no" >&6
6821 LIBS="$cf_ncurses_SAVE"
6823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6826 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6828 cat >>confdefs.h <<EOF
6829 #define $cf_nculib_ROOT 1
6837 echo "$as_me:6837: checking for multibyte character support" >&5
6838 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
6839 if test "${cf_cv_utf8_lib+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6843 cf_save_LIBS="$LIBS"
6844 cat >conftest.$ac_ext <<_ACEOF
6845 #line 6845 "configure"
6846 #include "confdefs.h"
6857 rm -f conftest.$ac_objext conftest$ac_exeext
6858 if { (eval echo "$as_me:6858: \"$ac_link\"") >&5
6859 (eval $ac_link) 2>&5
6861 echo "$as_me:6861: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try='test -s conftest$ac_exeext'
6864 { (eval echo "$as_me:6864: \"$ac_try\"") >&5
6867 echo "$as_me:6867: \$? = $ac_status" >&5
6868 (exit $ac_status); }; }; then
6871 echo "$as_me: failed program was:" >&5
6872 cat conftest.$ac_ext >&5
6874 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
6875 # will be set on completion of the AC_TRY_LINK below.
6876 cf_cv_header_path_utf8=
6877 cf_cv_library_path_utf8=
6879 echo "${as_me:-configure}:6879: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
6881 cf_save_LIBS="$LIBS"
6883 cat >conftest.$ac_ext <<_ACEOF
6884 #line 6884 "configure"
6885 #include "confdefs.h"
6887 #include <libutf8.h>
6896 rm -f conftest.$ac_objext conftest$ac_exeext
6897 if { (eval echo "$as_me:6897: \"$ac_link\"") >&5
6898 (eval $ac_link) 2>&5
6900 echo "$as_me:6900: \$? = $ac_status" >&5
6901 (exit $ac_status); } &&
6902 { ac_try='test -s conftest$ac_exeext'
6903 { (eval echo "$as_me:6903: \"$ac_try\"") >&5
6906 echo "$as_me:6906: \$? = $ac_status" >&5
6907 (exit $ac_status); }; }; then
6909 cf_cv_find_linkage_utf8=yes
6910 cf_cv_header_path_utf8=/usr/include
6911 cf_cv_library_path_utf8=/usr/lib
6914 echo "$as_me: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6917 LIBS="-lutf8 $cf_save_LIBS"
6919 cat >conftest.$ac_ext <<_ACEOF
6920 #line 6920 "configure"
6921 #include "confdefs.h"
6923 #include <libutf8.h>
6932 rm -f conftest.$ac_objext conftest$ac_exeext
6933 if { (eval echo "$as_me:6933: \"$ac_link\"") >&5
6934 (eval $ac_link) 2>&5
6936 echo "$as_me:6936: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try='test -s conftest$ac_exeext'
6939 { (eval echo "$as_me:6939: \"$ac_try\"") >&5
6942 echo "$as_me:6942: \$? = $ac_status" >&5
6943 (exit $ac_status); }; }; then
6945 cf_cv_find_linkage_utf8=yes
6946 cf_cv_header_path_utf8=/usr/include
6947 cf_cv_library_path_utf8=/usr/lib
6948 cf_cv_library_file_utf8="-lutf8"
6951 echo "$as_me: failed program was:" >&5
6952 cat conftest.$ac_ext >&5
6954 cf_cv_find_linkage_utf8=no
6955 LIBS="$cf_save_LIBS"
6957 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
6959 echo "${as_me:-configure}:6959: testing find linkage for utf8 library ..." 1>&5
6961 echo "${as_me:-configure}:6961: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
6963 cf_save_CPPFLAGS="$CPPFLAGS"
6964 cf_test_CPPFLAGS="$CPPFLAGS"
6968 # collect the current set of include-directories from compiler flags
6969 cf_header_path_list=""
6970 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6971 for cf_header_path in $CPPFLAGS $CFLAGS
6973 case $cf_header_path in #(vi
6975 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6977 test "x$cf_header_path" != "xNONE" && \
6978 test -d "$cf_header_path" && \
6980 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6981 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6982 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
6983 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
6984 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
6985 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
6988 cf_header_path_list="$cf_header_path_list $cf_search"
6994 # add the variations for the package we are looking for
6998 test "x/usr" != "x$prefix" && \
7000 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
7001 test -n "$verbose" && echo " ... testing for include-directories under /usr"
7002 test -d /usr/include && cf_search="$cf_search /usr/include"
7003 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
7004 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
7005 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
7006 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
7009 test "x$prefix" != "xNONE" && \
7010 test -d "$prefix" && \
7012 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7013 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7014 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
7015 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
7016 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
7017 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
7020 test "x/usr/local" != "x$prefix" && \
7021 test -d "/usr/local" && \
7022 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
7023 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
7024 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
7025 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
7026 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
7027 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
7028 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
7031 test "x/opt" != "x$prefix" && \
7033 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
7034 test -n "$verbose" && echo " ... testing for include-directories under /opt"
7035 test -d /opt/include && cf_search="$cf_search /opt/include"
7036 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
7037 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
7038 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
7039 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
7042 test "x$HOME" != "x$prefix" && \
7043 test -d "$HOME" && \
7044 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
7045 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
7046 test -d $HOME/include && cf_search="$cf_search $HOME/include"
7047 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
7048 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
7049 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
7050 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
7053 test "$includedir" != NONE && \
7054 test "$includedir" != "/usr/include" && \
7055 test -d "$includedir" && {
7056 test -d $includedir && cf_search="$cf_search $includedir"
7057 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
7060 test "$oldincludedir" != NONE && \
7061 test "$oldincludedir" != "/usr/include" && \
7062 test -d "$oldincludedir" && {
7063 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7064 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
7067 cf_search="$cf_search $cf_header_path_list"
7069 for cf_cv_header_path_utf8 in $cf_search
7071 if test -d $cf_cv_header_path_utf8 ; then
7072 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
7074 echo "${as_me:-configure}:7074: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
7076 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
7077 cat >conftest.$ac_ext <<_ACEOF
7078 #line 7078 "configure"
7079 #include "confdefs.h"
7081 #include <libutf8.h>
7090 rm -f conftest.$ac_objext
7091 if { (eval echo "$as_me:7091: \"$ac_compile\"") >&5
7092 (eval $ac_compile) 2>&5
7094 echo "$as_me:7094: \$? = $ac_status" >&5
7095 (exit $ac_status); } &&
7096 { ac_try='test -s conftest.$ac_objext'
7097 { (eval echo "$as_me:7097: \"$ac_try\"") >&5
7100 echo "$as_me:7100: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7103 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
7105 echo "${as_me:-configure}:7105: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
7107 cf_cv_find_linkage_utf8=maybe
7108 cf_test_CPPFLAGS="$CPPFLAGS"
7111 echo "$as_me: failed program was:" >&5
7112 cat conftest.$ac_ext >&5
7114 CPPFLAGS="$cf_save_CPPFLAGS"
7117 rm -f conftest.$ac_objext conftest.$ac_ext
7121 if test "$cf_cv_find_linkage_utf8" = maybe ; then
7123 echo "${as_me:-configure}:7123: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
7125 cf_save_LIBS="$LIBS"
7126 cf_save_LDFLAGS="$LDFLAGS"
7128 if test "$cf_cv_find_linkage_utf8" != yes ; then
7131 cf_library_path_list=""
7132 if test -n "${LDFLAGS}${LIBS}" ; then
7133 for cf_library_path in $LDFLAGS $LIBS
7135 case $cf_library_path in #(vi
7137 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7139 test "x$cf_library_path" != "xNONE" && \
7140 test -d "$cf_library_path" && \
7142 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7143 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7144 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
7145 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
7146 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
7147 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
7150 cf_library_path_list="$cf_library_path_list $cf_search"
7158 test "x/usr" != "x$prefix" && \
7160 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
7161 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
7162 test -d /usr/lib && cf_search="$cf_search /usr/lib"
7163 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
7164 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
7165 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
7166 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
7169 test "x$prefix" != "xNONE" && \
7170 test -d "$prefix" && \
7172 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7173 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7174 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
7175 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
7176 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
7177 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
7180 test "x/usr/local" != "x$prefix" && \
7181 test -d "/usr/local" && \
7182 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
7183 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
7184 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
7185 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
7186 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
7187 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
7188 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
7191 test "x/opt" != "x$prefix" && \
7193 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
7194 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
7195 test -d /opt/lib && cf_search="$cf_search /opt/lib"
7196 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
7197 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
7198 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
7199 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
7202 test "x$HOME" != "x$prefix" && \
7203 test -d "$HOME" && \
7204 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
7205 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
7206 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
7207 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
7208 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
7209 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
7210 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
7213 cf_search="$cf_library_path_list $cf_search"
7215 for cf_cv_library_path_utf8 in $cf_search
7217 if test -d $cf_cv_library_path_utf8 ; then
7218 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
7220 echo "${as_me:-configure}:7220: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
7222 CPPFLAGS="$cf_test_CPPFLAGS"
7223 LIBS="-lutf8 $cf_save_LIBS"
7224 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
7225 cat >conftest.$ac_ext <<_ACEOF
7226 #line 7226 "configure"
7227 #include "confdefs.h"
7229 #include <libutf8.h>
7238 rm -f conftest.$ac_objext conftest$ac_exeext
7239 if { (eval echo "$as_me:7239: \"$ac_link\"") >&5
7240 (eval $ac_link) 2>&5
7242 echo "$as_me:7242: \$? = $ac_status" >&5
7243 (exit $ac_status); } &&
7244 { ac_try='test -s conftest$ac_exeext'
7245 { (eval echo "$as_me:7245: \"$ac_try\"") >&5
7248 echo "$as_me:7248: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7251 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
7253 echo "${as_me:-configure}:7253: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
7255 cf_cv_find_linkage_utf8=yes
7256 cf_cv_library_file_utf8="-lutf8"
7259 echo "$as_me: failed program was:" >&5
7260 cat conftest.$ac_ext >&5
7262 CPPFLAGS="$cf_save_CPPFLAGS"
7263 LIBS="$cf_save_LIBS"
7264 LDFLAGS="$cf_save_LDFLAGS"
7267 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7270 CPPFLAGS="$cf_save_CPPFLAGS"
7271 LDFLAGS="$cf_save_LDFLAGS"
7275 cf_cv_find_linkage_utf8=no
7279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7284 LIBS="$cf_save_LIBS"
7286 if test "$cf_cv_find_linkage_utf8" = yes ; then
7287 cf_cv_utf8_lib=add-on
7293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7295 echo "$as_me:7295: result: $cf_cv_utf8_lib" >&5
7296 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
7298 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
7300 if test "$cf_cv_utf8_lib" = "add-on" ; then
7302 cat >>confdefs.h <<\EOF
7303 #define HAVE_LIBUTF8_H 1
7306 if test -n "$cf_cv_header_path_utf8" ; then
7307 for cf_add_incdir in $cf_cv_header_path_utf8
7309 while test $cf_add_incdir != /usr/include
7311 if test -d $cf_add_incdir
7314 if test -n "$CFLAGS$CPPFLAGS" ; then
7315 # a loop is needed to ensure we can add subdirs of existing dirs
7316 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7317 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7318 cf_have_incdir=yes; break
7323 if test "$cf_have_incdir" = no ; then
7324 if test "$cf_add_incdir" = /usr/local/include ; then
7325 if test "$GCC" = yes
7327 cf_save_CPPFLAGS=$CPPFLAGS
7328 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7329 cat >conftest.$ac_ext <<_ACEOF
7330 #line 7330 "configure"
7331 #include "confdefs.h"
7341 rm -f conftest.$ac_objext
7342 if { (eval echo "$as_me:7342: \"$ac_compile\"") >&5
7343 (eval $ac_compile) 2>&5
7345 echo "$as_me:7345: \$? = $ac_status" >&5
7346 (exit $ac_status); } &&
7347 { ac_try='test -s conftest.$ac_objext'
7348 { (eval echo "$as_me:7348: \"$ac_try\"") >&5
7351 echo "$as_me:7351: \$? = $ac_status" >&5
7352 (exit $ac_status); }; }; then
7355 echo "$as_me: failed program was:" >&5
7356 cat conftest.$ac_ext >&5
7359 rm -f conftest.$ac_objext conftest.$ac_ext
7360 CPPFLAGS=$cf_save_CPPFLAGS
7365 if test "$cf_have_incdir" = no ; then
7366 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7368 echo "${as_me:-configure}:7368: testing adding $cf_add_incdir to include-path ..." 1>&5
7370 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7372 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7373 test "$cf_top_incdir" = "$cf_add_incdir" && break
7374 cf_add_incdir="$cf_top_incdir"
7383 if test -n "$cf_cv_library_path_utf8" ; then
7384 for cf_add_libdir in $cf_cv_library_path_utf8
7386 if test $cf_add_libdir = /usr/lib ; then
7388 elif test -d $cf_add_libdir
7391 if test -n "$LDFLAGS$LIBS" ; then
7392 # a loop is needed to ensure we can add subdirs of existing dirs
7393 for cf_test_libdir in $LDFLAGS $LIBS ; do
7394 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7395 cf_have_libdir=yes; break
7399 if test "$cf_have_libdir" = no ; then
7400 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7402 echo "${as_me:-configure}:7402: testing adding $cf_add_libdir to library-path ..." 1>&5
7404 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7410 LIBS="$cf_cv_library_file_utf8 $LIBS"
7413 cf_ncuconfig_root=ncursesw
7415 echo "Looking for ${cf_ncuconfig_root}-config"
7417 if test -n "$ac_tool_prefix"; then
7418 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
7420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7422 echo "$as_me:7422: checking for $ac_word" >&5
7423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7424 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 if test -n "$NCURSES_CONFIG"; then
7428 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
7430 ac_save_IFS=$IFS; IFS=$ac_path_separator
7432 for ac_dir in $ac_dummy; do
7434 test -z "$ac_dir" && ac_dir=.
7435 $as_executable_p "$ac_dir/$ac_word" || continue
7436 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
7437 echo "$as_me:7437: found $ac_dir/$ac_word" >&5
7443 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
7444 if test -n "$NCURSES_CONFIG"; then
7445 echo "$as_me:7445: result: $NCURSES_CONFIG" >&5
7446 echo "${ECHO_T}$NCURSES_CONFIG" >&6
7448 echo "$as_me:7448: result: no" >&5
7449 echo "${ECHO_T}no" >&6
7452 test -n "$NCURSES_CONFIG" && break
7455 if test -z "$NCURSES_CONFIG"; then
7456 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
7457 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
7459 # Extract the first word of "$ac_prog", so it can be a program name with args.
7460 set dummy $ac_prog; ac_word=$2
7461 echo "$as_me:7461: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7463 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 if test -n "$ac_ct_NCURSES_CONFIG"; then
7467 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
7469 ac_save_IFS=$IFS; IFS=$ac_path_separator
7471 for ac_dir in $ac_dummy; do
7473 test -z "$ac_dir" && ac_dir=.
7474 $as_executable_p "$ac_dir/$ac_word" || continue
7475 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
7476 echo "$as_me:7476: found $ac_dir/$ac_word" >&5
7482 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
7483 if test -n "$ac_ct_NCURSES_CONFIG"; then
7484 echo "$as_me:7484: result: $ac_ct_NCURSES_CONFIG" >&5
7485 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
7487 echo "$as_me:7487: result: no" >&5
7488 echo "${ECHO_T}no" >&6
7491 test -n "$ac_ct_NCURSES_CONFIG" && break
7493 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
7495 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
7498 if test "$NCURSES_CONFIG" != none ; then
7500 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
7501 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
7503 # even with config script, some packages use no-override for curses.h
7505 echo "$as_me:7505: checking if we have identified curses headers" >&5
7506 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
7507 if test "${cf_cv_ncurses_header+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 cf_cv_ncurses_header=none
7513 ncursesw/ncurses.h \
7518 cat >conftest.$ac_ext <<_ACEOF
7519 #line 7519 "configure"
7520 #include "confdefs.h"
7521 #include <${cf_header}>
7525 initscr(); tgoto("?", 0,0)
7530 rm -f conftest.$ac_objext
7531 if { (eval echo "$as_me:7531: \"$ac_compile\"") >&5
7532 (eval $ac_compile) 2>&5
7534 echo "$as_me:7534: \$? = $ac_status" >&5
7535 (exit $ac_status); } &&
7536 { ac_try='test -s conftest.$ac_objext'
7537 { (eval echo "$as_me:7537: \"$ac_try\"") >&5
7540 echo "$as_me:7540: \$? = $ac_status" >&5
7541 (exit $ac_status); }; }; then
7542 cf_cv_ncurses_header=$cf_header; break
7544 echo "$as_me: failed program was:" >&5
7545 cat conftest.$ac_ext >&5
7547 rm -f conftest.$ac_objext conftest.$ac_ext
7551 echo "$as_me:7551: result: $cf_cv_ncurses_header" >&5
7552 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
7554 if test "$cf_cv_ncurses_header" = none ; then
7555 { { echo "$as_me:7555: error: No curses header-files found" >&5
7556 echo "$as_me: error: No curses header-files found" >&2;}
7557 { (exit 1); exit 1; }; }
7560 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
7562 for ac_header in $cf_cv_ncurses_header
7564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7565 echo "$as_me:7565: checking for $ac_header" >&5
7566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7567 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 cat >conftest.$ac_ext <<_ACEOF
7571 #line 7571 "configure"
7572 #include "confdefs.h"
7573 #include <$ac_header>
7575 if { (eval echo "$as_me:7575: \"$ac_cpp conftest.$ac_ext\"") >&5
7576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7578 egrep -v '^ *\+' conftest.er1 >conftest.err
7580 cat conftest.err >&5
7581 echo "$as_me:7581: \$? = $ac_status" >&5
7582 (exit $ac_status); } >/dev/null; then
7583 if test -s conftest.err; then
7584 ac_cpp_err=$ac_c_preproc_warn_flag
7591 if test -z "$ac_cpp_err"; then
7592 eval "$as_ac_Header=yes"
7594 echo "$as_me: failed program was:" >&5
7595 cat conftest.$ac_ext >&5
7596 eval "$as_ac_Header=no"
7598 rm -f conftest.err conftest.$ac_ext
7600 echo "$as_me:7600: result: `eval echo '${'$as_ac_Header'}'`" >&5
7601 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7603 cat >>confdefs.h <<EOF
7604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7610 cat >>confdefs.h <<\EOF
7614 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7616 cat >>confdefs.h <<EOF
7617 #define $cf_nculib_ROOT 1
7620 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
7624 cf_ncuhdr_root=ncursesw
7626 test -n "$cf_cv_curses_dir" && \
7627 test "$cf_cv_curses_dir" != "no" && { \
7629 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
7630 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
7632 while test $cf_add_incdir != /usr/include
7634 if test -d $cf_add_incdir
7637 if test -n "$CFLAGS$CPPFLAGS" ; then
7638 # a loop is needed to ensure we can add subdirs of existing dirs
7639 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7640 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7641 cf_have_incdir=yes; break
7646 if test "$cf_have_incdir" = no ; then
7647 if test "$cf_add_incdir" = /usr/local/include ; then
7648 if test "$GCC" = yes
7650 cf_save_CPPFLAGS=$CPPFLAGS
7651 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7652 cat >conftest.$ac_ext <<_ACEOF
7653 #line 7653 "configure"
7654 #include "confdefs.h"
7664 rm -f conftest.$ac_objext
7665 if { (eval echo "$as_me:7665: \"$ac_compile\"") >&5
7666 (eval $ac_compile) 2>&5
7668 echo "$as_me:7668: \$? = $ac_status" >&5
7669 (exit $ac_status); } &&
7670 { ac_try='test -s conftest.$ac_objext'
7671 { (eval echo "$as_me:7671: \"$ac_try\"") >&5
7674 echo "$as_me:7674: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7678 echo "$as_me: failed program was:" >&5
7679 cat conftest.$ac_ext >&5
7682 rm -f conftest.$ac_objext conftest.$ac_ext
7683 CPPFLAGS=$cf_save_CPPFLAGS
7688 if test "$cf_have_incdir" = no ; then
7689 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7691 echo "${as_me:-configure}:7691: testing adding $cf_add_incdir to include-path ..." 1>&5
7693 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7695 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7696 test "$cf_top_incdir" = "$cf_add_incdir" && break
7697 cf_add_incdir="$cf_top_incdir"
7708 echo "$as_me:7708: checking for $cf_ncuhdr_root header in include-path" >&5
7709 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
7710 if test "${cf_cv_ncurses_h+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
7715 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
7716 for cf_header in $cf_header_list
7719 cat >conftest.$ac_ext <<_ACEOF
7720 #line 7720 "configure"
7721 #include "confdefs.h"
7723 #define _XOPEN_SOURCE_EXTENDED
7724 #undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
7725 #define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
7727 #include <$cf_header>
7732 #ifdef NCURSES_VERSION
7738 printf("%s\n", NCURSES_VERSION);
7751 rm -f conftest.$ac_objext
7752 if { (eval echo "$as_me:7752: \"$ac_compile\"") >&5
7753 (eval $ac_compile) 2>&5
7755 echo "$as_me:7755: \$? = $ac_status" >&5
7756 (exit $ac_status); } &&
7757 { ac_try='test -s conftest.$ac_objext'
7758 { (eval echo "$as_me:7758: \"$ac_try\"") >&5
7761 echo "$as_me:7761: \$? = $ac_status" >&5
7762 (exit $ac_status); }; }; then
7763 cf_cv_ncurses_h=$cf_header
7766 echo "$as_me: failed program was:" >&5
7767 cat conftest.$ac_ext >&5
7770 rm -f conftest.$ac_objext conftest.$ac_ext
7772 test "$cf_cv_ncurses_h" != no && break
7776 echo "$as_me:7776: result: $cf_cv_ncurses_h" >&5
7777 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
7779 if test "$cf_cv_ncurses_h" != no ; then
7780 cf_cv_ncurses_header=$cf_cv_ncurses_h
7783 echo "$as_me:7783: checking for $cf_ncuhdr_root include-path" >&5
7784 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
7785 if test "${cf_cv_ncurses_h2+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 test -n "$verbose" && echo
7793 # collect the current set of include-directories from compiler flags
7794 cf_header_path_list=""
7795 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7796 for cf_header_path in $CPPFLAGS $CFLAGS
7798 case $cf_header_path in #(vi
7800 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7802 test "x$cf_header_path" != "xNONE" && \
7803 test -d "$cf_header_path" && \
7805 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7806 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7807 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
7808 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
7809 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
7810 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"
7813 cf_header_path_list="$cf_header_path_list $cf_search"
7819 # add the variations for the package we are looking for
7823 test "x/usr" != "x$prefix" && \
7825 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
7826 test -n "$verbose" && echo " ... testing for include-directories under /usr"
7827 test -d /usr/include && cf_search="$cf_search /usr/include"
7828 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
7829 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
7830 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
7831 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7834 test "x$prefix" != "xNONE" && \
7835 test -d "$prefix" && \
7837 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7838 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7839 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
7840 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
7841 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
7842 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7845 test "x/usr/local" != "x$prefix" && \
7846 test -d "/usr/local" && \
7847 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
7848 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
7849 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
7850 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
7851 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
7852 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
7853 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7856 test "x/opt" != "x$prefix" && \
7858 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
7859 test -n "$verbose" && echo " ... testing for include-directories under /opt"
7860 test -d /opt/include && cf_search="$cf_search /opt/include"
7861 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
7862 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
7863 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
7864 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7867 test "x$HOME" != "x$prefix" && \
7868 test -d "$HOME" && \
7869 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
7870 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
7871 test -d $HOME/include && cf_search="$cf_search $HOME/include"
7872 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
7873 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
7874 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
7875 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7878 test "$includedir" != NONE && \
7879 test "$includedir" != "/usr/include" && \
7880 test -d "$includedir" && {
7881 test -d $includedir && cf_search="$cf_search $includedir"
7882 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
7885 test "$oldincludedir" != NONE && \
7886 test "$oldincludedir" != "/usr/include" && \
7887 test -d "$oldincludedir" && {
7888 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7889 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
7892 cf_search="$cf_search $cf_header_path_list"
7894 test -n "$verbose" && echo search path $cf_search
7895 cf_save2_CPPFLAGS="$CPPFLAGS"
7896 for cf_incdir in $cf_search
7899 if test -n "$cf_incdir" ; then
7900 for cf_add_incdir in $cf_incdir
7902 while test $cf_add_incdir != /usr/include
7904 if test -d $cf_add_incdir
7907 if test -n "$CFLAGS$CPPFLAGS" ; then
7908 # a loop is needed to ensure we can add subdirs of existing dirs
7909 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7910 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7911 cf_have_incdir=yes; break
7916 if test "$cf_have_incdir" = no ; then
7917 if test "$cf_add_incdir" = /usr/local/include ; then
7918 if test "$GCC" = yes
7920 cf_save_CPPFLAGS=$CPPFLAGS
7921 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7922 cat >conftest.$ac_ext <<_ACEOF
7923 #line 7923 "configure"
7924 #include "confdefs.h"
7934 rm -f conftest.$ac_objext
7935 if { (eval echo "$as_me:7935: \"$ac_compile\"") >&5
7936 (eval $ac_compile) 2>&5
7938 echo "$as_me:7938: \$? = $ac_status" >&5
7939 (exit $ac_status); } &&
7940 { ac_try='test -s conftest.$ac_objext'
7941 { (eval echo "$as_me:7941: \"$ac_try\"") >&5
7944 echo "$as_me:7944: \$? = $ac_status" >&5
7945 (exit $ac_status); }; }; then
7948 echo "$as_me: failed program was:" >&5
7949 cat conftest.$ac_ext >&5
7952 rm -f conftest.$ac_objext conftest.$ac_ext
7953 CPPFLAGS=$cf_save_CPPFLAGS
7958 if test "$cf_have_incdir" = no ; then
7959 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7961 echo "${as_me:-configure}:7961: testing adding $cf_add_incdir to include-path ..." 1>&5
7963 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7965 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7966 test "$cf_top_incdir" = "$cf_add_incdir" && break
7967 cf_add_incdir="$cf_top_incdir"
7981 cat >conftest.$ac_ext <<_ACEOF
7982 #line 7982 "configure"
7983 #include "confdefs.h"
7985 #include <$cf_header>
7990 #ifdef NCURSES_VERSION
7992 printf("%s\n", NCURSES_VERSION);
8005 rm -f conftest.$ac_objext
8006 if { (eval echo "$as_me:8006: \"$ac_compile\"") >&5
8007 (eval $ac_compile) 2>&5
8009 echo "$as_me:8009: \$? = $ac_status" >&5
8010 (exit $ac_status); } &&
8011 { ac_try='test -s conftest.$ac_objext'
8012 { (eval echo "$as_me:8012: \"$ac_try\"") >&5
8015 echo "$as_me:8015: \$? = $ac_status" >&5
8016 (exit $ac_status); }; }; then
8017 cf_cv_ncurses_h2=$cf_header
8020 echo "$as_me: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8024 rm -f conftest.$ac_objext conftest.$ac_ext
8026 if test "$cf_cv_ncurses_h2" != no ; then
8027 cf_cv_ncurses_h2=$cf_incdir/$cf_header
8028 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
8031 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
8033 CPPFLAGS="$cf_save2_CPPFLAGS"
8034 test "$cf_cv_ncurses_h2" != no && break
8036 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:8036: error: not found" >&5
8037 echo "$as_me: error: not found" >&2;}
8038 { (exit 1); exit 1; }; }
8041 echo "$as_me:8041: result: $cf_cv_ncurses_h2" >&5
8042 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
8044 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
8045 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
8046 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
8047 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
8050 if test -n "$cf_1st_incdir" ; then
8051 for cf_add_incdir in $cf_1st_incdir
8053 while test $cf_add_incdir != /usr/include
8055 if test -d $cf_add_incdir
8058 if test -n "$CFLAGS$CPPFLAGS" ; then
8059 # a loop is needed to ensure we can add subdirs of existing dirs
8060 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8061 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8062 cf_have_incdir=yes; break
8067 if test "$cf_have_incdir" = no ; then
8068 if test "$cf_add_incdir" = /usr/local/include ; then
8069 if test "$GCC" = yes
8071 cf_save_CPPFLAGS=$CPPFLAGS
8072 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8073 cat >conftest.$ac_ext <<_ACEOF
8074 #line 8074 "configure"
8075 #include "confdefs.h"
8085 rm -f conftest.$ac_objext
8086 if { (eval echo "$as_me:8086: \"$ac_compile\"") >&5
8087 (eval $ac_compile) 2>&5
8089 echo "$as_me:8089: \$? = $ac_status" >&5
8090 (exit $ac_status); } &&
8091 { ac_try='test -s conftest.$ac_objext'
8092 { (eval echo "$as_me:8092: \"$ac_try\"") >&5
8095 echo "$as_me:8095: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8099 echo "$as_me: failed program was:" >&5
8100 cat conftest.$ac_ext >&5
8103 rm -f conftest.$ac_objext conftest.$ac_ext
8104 CPPFLAGS=$cf_save_CPPFLAGS
8109 if test "$cf_have_incdir" = no ; then
8110 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8112 echo "${as_me:-configure}:8112: testing adding $cf_add_incdir to include-path ..." 1>&5
8114 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8116 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8117 test "$cf_top_incdir" = "$cf_add_incdir" && break
8118 cf_add_incdir="$cf_top_incdir"
8129 # Set definitions to allow ifdef'ing for ncurses.h
8131 case $cf_cv_ncurses_header in # (vi
8134 cat >>confdefs.h <<\EOF
8135 #define HAVE_NCURSES_H 1
8141 case $cf_cv_ncurses_header in # (vi
8142 ncurses/curses.h|ncurses/ncurses.h)
8144 cat >>confdefs.h <<\EOF
8145 #define HAVE_NCURSES_NCURSES_H 1
8149 ncursesw/curses.h|ncursesw/ncurses.h)
8151 cat >>confdefs.h <<\EOF
8152 #define HAVE_NCURSESW_NCURSES_H 1
8158 echo "$as_me:8158: checking for terminfo header" >&5
8159 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
8160 if test "${cf_cv_term_header+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 case ${cf_cv_ncurses_header} in #(vi
8165 */ncurses.h|*/ncursesw.h) #(vi
8166 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8169 cf_term_header=term.h
8173 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
8175 cat >conftest.$ac_ext <<_ACEOF
8176 #line 8176 "configure"
8177 #include "confdefs.h"
8179 #include <${cf_cv_ncurses_header:-curses.h}>
8185 int x = auto_left_margin
8190 rm -f conftest.$ac_objext
8191 if { (eval echo "$as_me:8191: \"$ac_compile\"") >&5
8192 (eval $ac_compile) 2>&5
8194 echo "$as_me:8194: \$? = $ac_status" >&5
8195 (exit $ac_status); } &&
8196 { ac_try='test -s conftest.$ac_objext'
8197 { (eval echo "$as_me:8197: \"$ac_try\"") >&5
8200 echo "$as_me:8200: \$? = $ac_status" >&5
8201 (exit $ac_status); }; }; then
8203 cf_cv_term_header="$cf_test"
8205 echo "$as_me: failed program was:" >&5
8206 cat conftest.$ac_ext >&5
8208 cf_cv_term_header=unknown
8211 rm -f conftest.$ac_objext conftest.$ac_ext
8212 test "$cf_cv_term_header" != unknown && break
8216 echo "$as_me:8216: result: $cf_cv_term_header" >&5
8217 echo "${ECHO_T}$cf_cv_term_header" >&6
8219 # Set definitions to allow ifdef'ing to accommodate subdirectories
8221 case $cf_cv_term_header in # (vi
8224 cat >>confdefs.h <<\EOF
8225 #define HAVE_TERM_H 1
8231 case $cf_cv_term_header in # (vi
8232 ncurses/term.h) #(vi
8234 cat >>confdefs.h <<\EOF
8235 #define HAVE_NCURSES_TERM_H 1
8241 cat >>confdefs.h <<\EOF
8242 #define HAVE_NCURSESW_TERM_H 1
8248 # some applications need this, but should check for NCURSES_VERSION
8250 cat >>confdefs.h <<\EOF
8254 echo "$as_me:8254: checking for ncurses version" >&5
8255 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
8256 if test "${cf_cv_ncurses_version+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 cf_cv_ncurses_version=no
8263 if test "$cross_compiling" = yes; then
8265 # This will not work if the preprocessor splits the line after the
8266 # Autoconf token. The 'unproto' program does that.
8267 cat > conftest.$ac_ext <<EOF
8268 #include <${cf_cv_ncurses_header:-curses.h}>
8270 #ifdef NCURSES_VERSION
8271 Autoconf NCURSES_VERSION
8279 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
8280 { (eval echo "$as_me:8280: \"$cf_try\"") >&5
8283 echo "$as_me:8283: \$? = $ac_status" >&5
8284 (exit $ac_status); }
8285 if test -f conftest.out ; then
8286 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
8287 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
8292 cat >conftest.$ac_ext <<_ACEOF
8293 #line 8293 "configure"
8294 #include "confdefs.h"
8296 #include <${cf_cv_ncurses_header:-curses.h}>
8300 FILE *fp = fopen("$cf_tempfile", "w");
8301 #ifdef NCURSES_VERSION
8302 # ifdef NCURSES_VERSION_PATCH
8303 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
8305 fprintf(fp, "%s\n", NCURSES_VERSION);
8309 fprintf(fp, "old\n");
8314 ${cf_cv_main_return:-return}(0);
8317 rm -f conftest$ac_exeext
8318 if { (eval echo "$as_me:8318: \"$ac_link\"") >&5
8319 (eval $ac_link) 2>&5
8321 echo "$as_me:8321: \$? = $ac_status" >&5
8322 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8323 { (eval echo "$as_me:8323: \"$ac_try\"") >&5
8326 echo "$as_me:8326: \$? = $ac_status" >&5
8327 (exit $ac_status); }; }; then
8329 cf_cv_ncurses_version=`cat $cf_tempfile`
8331 echo "$as_me: program exited with status $ac_status" >&5
8332 echo "$as_me: failed program was:" >&5
8333 cat conftest.$ac_ext >&5
8335 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8340 echo "$as_me:8340: result: $cf_cv_ncurses_version" >&5
8341 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
8342 test "$cf_cv_ncurses_version" = no ||
8343 cat >>confdefs.h <<\EOF
8347 cf_nculib_root=ncursesw
8348 # This works, except for the special case where we find gpm, but
8349 # ncurses is in a nonstandard location via $LIBS, and we really want
8352 cf_ncurses_SAVE="$LIBS"
8353 echo "$as_me:8353: checking for Gpm_Open in -lgpm" >&5
8354 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
8355 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8358 ac_check_lib_save_LIBS=$LIBS
8360 cat >conftest.$ac_ext <<_ACEOF
8361 #line 8361 "configure"
8362 #include "confdefs.h"
8364 /* Override any gcc2 internal prototype to avoid an error. */
8368 /* We use char because int might match the return type of a gcc2
8369 builtin and then its argument prototype would still apply. */
8379 rm -f conftest.$ac_objext conftest$ac_exeext
8380 if { (eval echo "$as_me:8380: \"$ac_link\"") >&5
8381 (eval $ac_link) 2>&5
8383 echo "$as_me:8383: \$? = $ac_status" >&5
8384 (exit $ac_status); } &&
8385 { ac_try='test -s conftest$ac_exeext'
8386 { (eval echo "$as_me:8386: \"$ac_try\"") >&5
8389 echo "$as_me:8389: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 ac_cv_lib_gpm_Gpm_Open=yes
8393 echo "$as_me: failed program was:" >&5
8394 cat conftest.$ac_ext >&5
8395 ac_cv_lib_gpm_Gpm_Open=no
8397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8398 LIBS=$ac_check_lib_save_LIBS
8400 echo "$as_me:8400: result: $ac_cv_lib_gpm_Gpm_Open" >&5
8401 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
8402 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
8403 echo "$as_me:8403: checking for initscr in -lgpm" >&5
8404 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
8405 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 ac_check_lib_save_LIBS=$LIBS
8410 cat >conftest.$ac_ext <<_ACEOF
8411 #line 8411 "configure"
8412 #include "confdefs.h"
8414 /* Override any gcc2 internal prototype to avoid an error. */
8418 /* We use char because int might match the return type of a gcc2
8419 builtin and then its argument prototype would still apply. */
8429 rm -f conftest.$ac_objext conftest$ac_exeext
8430 if { (eval echo "$as_me:8430: \"$ac_link\"") >&5
8431 (eval $ac_link) 2>&5
8433 echo "$as_me:8433: \$? = $ac_status" >&5
8434 (exit $ac_status); } &&
8435 { ac_try='test -s conftest$ac_exeext'
8436 { (eval echo "$as_me:8436: \"$ac_try\"") >&5
8439 echo "$as_me:8439: \$? = $ac_status" >&5
8440 (exit $ac_status); }; }; then
8441 ac_cv_lib_gpm_initscr=yes
8443 echo "$as_me: failed program was:" >&5
8444 cat conftest.$ac_ext >&5
8445 ac_cv_lib_gpm_initscr=no
8447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8448 LIBS=$ac_check_lib_save_LIBS
8450 echo "$as_me:8450: result: $ac_cv_lib_gpm_initscr" >&5
8451 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
8452 if test $ac_cv_lib_gpm_initscr = yes; then
8453 LIBS="$cf_ncurses_SAVE"
8455 cf_ncurses_LIBS="-lgpm"
8460 case $host_os in #(vi
8462 # This is only necessary if you are linking against an obsolete
8463 # version of ncurses (but it should do no harm, since it's static).
8464 if test "$cf_nculib_root" = ncurses ; then
8465 echo "$as_me:8465: checking for tgoto in -lmytinfo" >&5
8466 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
8467 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 ac_check_lib_save_LIBS=$LIBS
8471 LIBS="-lmytinfo $LIBS"
8472 cat >conftest.$ac_ext <<_ACEOF
8473 #line 8473 "configure"
8474 #include "confdefs.h"
8476 /* Override any gcc2 internal prototype to avoid an error. */
8480 /* We use char because int might match the return type of a gcc2
8481 builtin and then its argument prototype would still apply. */
8491 rm -f conftest.$ac_objext conftest$ac_exeext
8492 if { (eval echo "$as_me:8492: \"$ac_link\"") >&5
8493 (eval $ac_link) 2>&5
8495 echo "$as_me:8495: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
8497 { ac_try='test -s conftest$ac_exeext'
8498 { (eval echo "$as_me:8498: \"$ac_try\"") >&5
8501 echo "$as_me:8501: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
8503 ac_cv_lib_mytinfo_tgoto=yes
8505 echo "$as_me: failed program was:" >&5
8506 cat conftest.$ac_ext >&5
8507 ac_cv_lib_mytinfo_tgoto=no
8509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8510 LIBS=$ac_check_lib_save_LIBS
8512 echo "$as_me:8512: result: $ac_cv_lib_mytinfo_tgoto" >&5
8513 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
8514 if test $ac_cv_lib_mytinfo_tgoto = yes; then
8515 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
8522 LIBS="$cf_ncurses_LIBS $LIBS"
8524 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
8526 LIBS="-l$cf_nculib_root $LIBS"
8529 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
8531 echo "$as_me:8531: checking for initscr" >&5
8532 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
8533 if test "${ac_cv_func_initscr+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8536 cat >conftest.$ac_ext <<_ACEOF
8537 #line 8537 "configure"
8538 #include "confdefs.h"
8539 /* System header to define __stub macros and hopefully few prototypes,
8540 which can conflict with char initscr (); below. */
8542 /* Override any gcc2 internal prototype to avoid an error. */
8546 /* We use char because int might match the return type of a gcc2
8547 builtin and then its argument prototype would still apply. */
8554 /* The GNU C library defines this for functions which it implements
8555 to always fail with ENOSYS. Some functions are actually named
8556 something starting with __ and the normal name is an alias. */
8557 #if defined (__stub_initscr) || defined (__stub___initscr)
8560 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8567 rm -f conftest.$ac_objext conftest$ac_exeext
8568 if { (eval echo "$as_me:8568: \"$ac_link\"") >&5
8569 (eval $ac_link) 2>&5
8571 echo "$as_me:8571: \$? = $ac_status" >&5
8572 (exit $ac_status); } &&
8573 { ac_try='test -s conftest$ac_exeext'
8574 { (eval echo "$as_me:8574: \"$ac_try\"") >&5
8577 echo "$as_me:8577: \$? = $ac_status" >&5
8578 (exit $ac_status); }; }; then
8579 ac_cv_func_initscr=yes
8581 echo "$as_me: failed program was:" >&5
8582 cat conftest.$ac_ext >&5
8583 ac_cv_func_initscr=no
8585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8587 echo "$as_me:8587: result: $ac_cv_func_initscr" >&5
8588 echo "${ECHO_T}$ac_cv_func_initscr" >&6
8589 if test $ac_cv_func_initscr = yes; then
8590 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8593 cf_save_LIBS="$LIBS"
8594 echo "$as_me:8594: checking for initscr in -l$cf_nculib_root" >&5
8595 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
8596 LIBS="-l$cf_nculib_root $LIBS"
8597 cat >conftest.$ac_ext <<_ACEOF
8598 #line 8598 "configure"
8599 #include "confdefs.h"
8600 #include <${cf_cv_ncurses_header:-curses.h}>
8609 rm -f conftest.$ac_objext conftest$ac_exeext
8610 if { (eval echo "$as_me:8610: \"$ac_link\"") >&5
8611 (eval $ac_link) 2>&5
8613 echo "$as_me:8613: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -s conftest$ac_exeext'
8616 { (eval echo "$as_me:8616: \"$ac_try\"") >&5
8619 echo "$as_me:8619: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 echo "$as_me:8621: result: yes" >&5
8622 echo "${ECHO_T}yes" >&6
8623 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8626 echo "$as_me: failed program was:" >&5
8627 cat conftest.$ac_ext >&5
8628 echo "$as_me:8628: result: no" >&5
8629 echo "${ECHO_T}no" >&6
8632 cf_library_path_list=""
8633 if test -n "${LDFLAGS}${LIBS}" ; then
8634 for cf_library_path in $LDFLAGS $LIBS
8636 case $cf_library_path in #(vi
8638 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8640 test "x$cf_library_path" != "xNONE" && \
8641 test -d "$cf_library_path" && \
8643 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8644 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8645 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
8646 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
8647 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
8648 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"
8651 cf_library_path_list="$cf_library_path_list $cf_search"
8659 test "x/usr" != "x$prefix" && \
8661 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr" != "x$prefix") && {
8662 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
8663 test -d /usr/lib && cf_search="$cf_search /usr/lib"
8664 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
8665 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
8666 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
8667 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
8670 test "x$prefix" != "xNONE" && \
8671 test -d "$prefix" && \
8673 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8674 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8675 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
8676 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
8677 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
8678 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
8681 test "x/usr/local" != "x$prefix" && \
8682 test -d "/usr/local" && \
8683 (test -z "$prefix" || test x$prefix = xNONE || test "x/usr/local" != "x$prefix") && {
8684 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
8685 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
8686 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
8687 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
8688 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
8689 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
8692 test "x/opt" != "x$prefix" && \
8694 (test -z "$prefix" || test x$prefix = xNONE || test "x/opt" != "x$prefix") && {
8695 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
8696 test -d /opt/lib && cf_search="$cf_search /opt/lib"
8697 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
8698 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
8699 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
8700 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
8703 test "x$HOME" != "x$prefix" && \
8704 test -d "$HOME" && \
8705 (test -z "$prefix" || test x$prefix = xNONE || test "x$HOME" != "x$prefix") && {
8706 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
8707 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
8708 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
8709 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
8710 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
8711 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
8714 cf_search="$cf_library_path_list $cf_search"
8716 for cf_libdir in $cf_search
8718 echo "$as_me:8718: checking for -l$cf_nculib_root in $cf_libdir" >&5
8719 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
8720 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
8721 cat >conftest.$ac_ext <<_ACEOF
8722 #line 8722 "configure"
8723 #include "confdefs.h"
8724 #include <${cf_cv_ncurses_header:-curses.h}>
8733 rm -f conftest.$ac_objext conftest$ac_exeext
8734 if { (eval echo "$as_me:8734: \"$ac_link\"") >&5
8735 (eval $ac_link) 2>&5
8737 echo "$as_me:8737: \$? = $ac_status" >&5
8738 (exit $ac_status); } &&
8739 { ac_try='test -s conftest$ac_exeext'
8740 { (eval echo "$as_me:8740: \"$ac_try\"") >&5
8743 echo "$as_me:8743: \$? = $ac_status" >&5
8744 (exit $ac_status); }; }; then
8745 echo "$as_me:8745: result: yes" >&5
8746 echo "${ECHO_T}yes" >&6
8747 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8750 echo "$as_me: failed program was:" >&5
8751 cat conftest.$ac_ext >&5
8752 echo "$as_me:8752: result: no" >&5
8753 echo "${ECHO_T}no" >&6
8754 LIBS="$cf_save_LIBS"
8756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8764 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
8766 if test $cf_found_library = no ; then
8767 { { echo "$as_me:8767: error: Cannot link $cf_nculib_root library" >&5
8768 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
8769 { (exit 1); exit 1; }; }
8774 if test -n "$cf_ncurses_LIBS" ; then
8775 echo "$as_me:8775: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
8776 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
8777 cf_ncurses_SAVE="$LIBS"
8778 for p in $cf_ncurses_LIBS ; do
8779 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
8780 if test "$q" != "$LIBS" ; then
8784 cat >conftest.$ac_ext <<_ACEOF
8785 #line 8785 "configure"
8786 #include "confdefs.h"
8787 #include <${cf_cv_ncurses_header:-curses.h}>
8791 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
8796 rm -f conftest.$ac_objext conftest$ac_exeext
8797 if { (eval echo "$as_me:8797: \"$ac_link\"") >&5
8798 (eval $ac_link) 2>&5
8800 echo "$as_me:8800: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -s conftest$ac_exeext'
8803 { (eval echo "$as_me:8803: \"$ac_try\"") >&5
8806 echo "$as_me:8806: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8808 echo "$as_me:8808: result: yes" >&5
8809 echo "${ECHO_T}yes" >&6
8811 echo "$as_me: failed program was:" >&5
8812 cat conftest.$ac_ext >&5
8813 echo "$as_me:8813: result: no" >&5
8814 echo "${ECHO_T}no" >&6
8815 LIBS="$cf_ncurses_SAVE"
8817 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8820 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8822 cat >>confdefs.h <<EOF
8823 #define $cf_nculib_ROOT 1
8830 echo "$as_me:8830: checking for X" >&5
8831 echo $ECHO_N "checking for X... $ECHO_C" >&6
8833 # Check whether --with-x or --without-x was given.
8834 if test "${with_x+set}" = set; then
8838 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8839 if test "x$with_x" = xno; then
8840 # The user explicitly disabled X.
8843 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8844 # Both variables are already set.
8847 if test "${ac_cv_have_x+set}" = set; then
8848 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 # One or both of the vars are not set, and there is no cached value.
8851 ac_x_includes=no ac_x_libraries=no
8853 if mkdir conftest.dir; then
8855 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8856 cat >Imakefile <<'EOF'
8858 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8860 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8862 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8863 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8864 for ac_extension in a so sl dylib dll; do
8865 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8866 test -f $ac_im_libdir/libX11.$ac_extension; then
8867 ac_im_usrlibdir=$ac_im_libdir; break
8870 # Screen out bogus values from the imake configuration. They are
8871 # bogus both because they are the default anyway, and because
8872 # using them would break gcc on systems where it needs fixed includes.
8873 case $ac_im_incroot in
8875 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8877 case $ac_im_usrlibdir in
8879 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8886 # Standard set of common directories for X headers.
8887 # Check X11 before X11Rn because it is often a symlink to the current release.
8899 /usr/local/X11/include
8900 /usr/local/X11R6/include
8901 /usr/local/X11R5/include
8902 /usr/local/X11R4/include
8904 /usr/local/include/X11
8905 /usr/local/include/X11R6
8906 /usr/local/include/X11R5
8907 /usr/local/include/X11R4
8911 /usr/XFree86/include/X11
8915 /usr/unsupported/include
8917 /usr/local/x11r5/include
8918 /usr/lpp/Xamples/include
8920 /usr/openwin/include
8921 /usr/openwin/share/include'
8923 if test "$ac_x_includes" = no; then
8924 # Guess where to find include files, by looking for Intrinsic.h.
8925 # First, try using that file with no special directory specified.
8926 cat >conftest.$ac_ext <<_ACEOF
8927 #line 8927 "configure"
8928 #include "confdefs.h"
8929 #include <X11/Intrinsic.h>
8931 if { (eval echo "$as_me:8931: \"$ac_cpp conftest.$ac_ext\"") >&5
8932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8934 egrep -v '^ *\+' conftest.er1 >conftest.err
8936 cat conftest.err >&5
8937 echo "$as_me:8937: \$? = $ac_status" >&5
8938 (exit $ac_status); } >/dev/null; then
8939 if test -s conftest.err; then
8940 ac_cpp_err=$ac_c_preproc_warn_flag
8947 if test -z "$ac_cpp_err"; then
8948 # We can compile using X headers with no special include directory.
8951 echo "$as_me: failed program was:" >&5
8952 cat conftest.$ac_ext >&5
8953 for ac_dir in $ac_x_header_dirs; do
8954 if test -r "$ac_dir/X11/Intrinsic.h"; then
8955 ac_x_includes=$ac_dir
8960 rm -f conftest.err conftest.$ac_ext
8961 fi # $ac_x_includes = no
8963 if test "$ac_x_libraries" = no; then
8964 # Check for the libraries.
8965 # See if we find them without any special options.
8966 # Don't add to $LIBS permanently.
8969 cat >conftest.$ac_ext <<_ACEOF
8970 #line 8970 "configure"
8971 #include "confdefs.h"
8972 #include <X11/Intrinsic.h>
8981 rm -f conftest.$ac_objext conftest$ac_exeext
8982 if { (eval echo "$as_me:8982: \"$ac_link\"") >&5
8983 (eval $ac_link) 2>&5
8985 echo "$as_me:8985: \$? = $ac_status" >&5
8986 (exit $ac_status); } &&
8987 { ac_try='test -s conftest$ac_exeext'
8988 { (eval echo "$as_me:8988: \"$ac_try\"") >&5
8991 echo "$as_me:8991: \$? = $ac_status" >&5
8992 (exit $ac_status); }; }; then
8994 # We can link X programs with no special library path.
8997 echo "$as_me: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
9000 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9002 # Don't even attempt the hair of trying to link an X program!
9003 for ac_extension in a so sl dylib dll; do
9004 if test -r $ac_dir/libXt.$ac_extension; then
9005 ac_x_libraries=$ac_dir
9011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9012 fi # $ac_x_libraries = no
9014 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9015 # Didn't find X anywhere. Cache the known absence of X.
9016 ac_cv_have_x="have_x=no"
9018 # Record where we found X for the cache.
9019 ac_cv_have_x="have_x=yes \
9020 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9025 eval "$ac_cv_have_x"
9028 if test "$have_x" != yes; then
9029 echo "$as_me:9029: result: $have_x" >&5
9030 echo "${ECHO_T}$have_x" >&6
9033 # If each of the values was on the command line, it overrides each guess.
9034 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9035 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9036 # Update the cache value to reflect the command line values.
9037 ac_cv_have_x="have_x=yes \
9038 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9039 echo "$as_me:9039: result: libraries $x_libraries, headers $x_includes" >&5
9040 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9043 if test "$no_x" = yes; then
9044 # Not all programs may use this symbol, but it does not hurt to define it.
9046 cat >>confdefs.h <<\EOF
9047 #define X_DISPLAY_MISSING 1
9050 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9052 if test -n "$x_includes"; then
9053 X_CFLAGS="$X_CFLAGS -I$x_includes"
9056 # It would also be nice to do this for all -L options, not just this one.
9057 if test -n "$x_libraries"; then
9058 X_LIBS="$X_LIBS -L$x_libraries"
9059 # For Solaris; some versions of Sun CC require a space after -R and
9060 # others require no space. Words are not sufficient . . . .
9061 case `(uname -sr) 2>/dev/null` in
9063 echo "$as_me:9063: checking whether -R must be followed by a space" >&5
9064 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9065 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9066 cat >conftest.$ac_ext <<_ACEOF
9067 #line 9067 "configure"
9068 #include "confdefs.h"
9078 rm -f conftest.$ac_objext conftest$ac_exeext
9079 if { (eval echo "$as_me:9079: \"$ac_link\"") >&5
9080 (eval $ac_link) 2>&5
9082 echo "$as_me:9082: \$? = $ac_status" >&5
9083 (exit $ac_status); } &&
9084 { ac_try='test -s conftest$ac_exeext'
9085 { (eval echo "$as_me:9085: \"$ac_try\"") >&5
9088 echo "$as_me:9088: \$? = $ac_status" >&5
9089 (exit $ac_status); }; }; then
9092 echo "$as_me: failed program was:" >&5
9093 cat conftest.$ac_ext >&5
9096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9097 if test $ac_R_nospace = yes; then
9098 echo "$as_me:9098: result: no" >&5
9099 echo "${ECHO_T}no" >&6
9100 X_LIBS="$X_LIBS -R$x_libraries"
9102 LIBS="$ac_xsave_LIBS -R $x_libraries"
9103 cat >conftest.$ac_ext <<_ACEOF
9104 #line 9104 "configure"
9105 #include "confdefs.h"
9115 rm -f conftest.$ac_objext conftest$ac_exeext
9116 if { (eval echo "$as_me:9116: \"$ac_link\"") >&5
9117 (eval $ac_link) 2>&5
9119 echo "$as_me:9119: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -s conftest$ac_exeext'
9122 { (eval echo "$as_me:9122: \"$ac_try\"") >&5
9125 echo "$as_me:9125: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9129 echo "$as_me: failed program was:" >&5
9130 cat conftest.$ac_ext >&5
9133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9134 if test $ac_R_space = yes; then
9135 echo "$as_me:9135: result: yes" >&5
9136 echo "${ECHO_T}yes" >&6
9137 X_LIBS="$X_LIBS -R $x_libraries"
9139 echo "$as_me:9139: result: neither works" >&5
9140 echo "${ECHO_T}neither works" >&6
9147 # Check for system-dependent libraries X programs must link with.
9148 # Do this before checking for the system-independent R6 libraries
9149 # (-lICE), since we may need -lsocket or whatever for X linking.
9151 if test "$ISC" = yes; then
9152 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9154 # Martyn Johnson says this is needed for Ultrix, if the X
9155 # libraries were built with DECnet support. And Karl Berry says
9156 # the Alpha needs dnet_stub (dnet does not exist).
9157 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9158 cat >conftest.$ac_ext <<_ACEOF
9159 #line 9159 "configure"
9160 #include "confdefs.h"
9162 /* Override any gcc2 internal prototype to avoid an error. */
9166 /* We use char because int might match the return type of a gcc2
9167 builtin and then its argument prototype would still apply. */
9168 char XOpenDisplay ();
9177 rm -f conftest.$ac_objext conftest$ac_exeext
9178 if { (eval echo "$as_me:9178: \"$ac_link\"") >&5
9179 (eval $ac_link) 2>&5
9181 echo "$as_me:9181: \$? = $ac_status" >&5
9182 (exit $ac_status); } &&
9183 { ac_try='test -s conftest$ac_exeext'
9184 { (eval echo "$as_me:9184: \"$ac_try\"") >&5
9187 echo "$as_me:9187: \$? = $ac_status" >&5
9188 (exit $ac_status); }; }; then
9191 echo "$as_me: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9193 echo "$as_me:9193: checking for dnet_ntoa in -ldnet" >&5
9194 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9195 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 ac_check_lib_save_LIBS=$LIBS
9200 cat >conftest.$ac_ext <<_ACEOF
9201 #line 9201 "configure"
9202 #include "confdefs.h"
9204 /* Override any gcc2 internal prototype to avoid an error. */
9208 /* We use char because int might match the return type of a gcc2
9209 builtin and then its argument prototype would still apply. */
9219 rm -f conftest.$ac_objext conftest$ac_exeext
9220 if { (eval echo "$as_me:9220: \"$ac_link\"") >&5
9221 (eval $ac_link) 2>&5
9223 echo "$as_me:9223: \$? = $ac_status" >&5
9224 (exit $ac_status); } &&
9225 { ac_try='test -s conftest$ac_exeext'
9226 { (eval echo "$as_me:9226: \"$ac_try\"") >&5
9229 echo "$as_me:9229: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 ac_cv_lib_dnet_dnet_ntoa=yes
9233 echo "$as_me: failed program was:" >&5
9234 cat conftest.$ac_ext >&5
9235 ac_cv_lib_dnet_dnet_ntoa=no
9237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9238 LIBS=$ac_check_lib_save_LIBS
9240 echo "$as_me:9240: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9241 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9242 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9243 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9246 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9247 echo "$as_me:9247: checking for dnet_ntoa in -ldnet_stub" >&5
9248 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9249 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 ac_check_lib_save_LIBS=$LIBS
9253 LIBS="-ldnet_stub $LIBS"
9254 cat >conftest.$ac_ext <<_ACEOF
9255 #line 9255 "configure"
9256 #include "confdefs.h"
9258 /* Override any gcc2 internal prototype to avoid an error. */
9262 /* We use char because int might match the return type of a gcc2
9263 builtin and then its argument prototype would still apply. */
9273 rm -f conftest.$ac_objext conftest$ac_exeext
9274 if { (eval echo "$as_me:9274: \"$ac_link\"") >&5
9275 (eval $ac_link) 2>&5
9277 echo "$as_me:9277: \$? = $ac_status" >&5
9278 (exit $ac_status); } &&
9279 { ac_try='test -s conftest$ac_exeext'
9280 { (eval echo "$as_me:9280: \"$ac_try\"") >&5
9283 echo "$as_me:9283: \$? = $ac_status" >&5
9284 (exit $ac_status); }; }; then
9285 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9287 echo "$as_me: failed program was:" >&5
9288 cat conftest.$ac_ext >&5
9289 ac_cv_lib_dnet_stub_dnet_ntoa=no
9291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9292 LIBS=$ac_check_lib_save_LIBS
9294 echo "$as_me:9294: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9295 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9296 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9297 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9303 LIBS="$ac_xsave_LIBS"
9305 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9306 # to get the SysV transport functions.
9307 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9309 # The nsl library prevents programs from opening the X display
9310 # on Irix 5.2, according to T.E. Dickey.
9311 # The functions gethostbyname, getservbyname, and inet_addr are
9312 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9313 echo "$as_me:9313: checking for gethostbyname" >&5
9314 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9315 if test "${ac_cv_func_gethostbyname+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 cat >conftest.$ac_ext <<_ACEOF
9319 #line 9319 "configure"
9320 #include "confdefs.h"
9321 /* System header to define __stub macros and hopefully few prototypes,
9322 which can conflict with char gethostbyname (); below. */
9324 /* Override any gcc2 internal prototype to avoid an error. */
9328 /* We use char because int might match the return type of a gcc2
9329 builtin and then its argument prototype would still apply. */
9330 char gethostbyname ();
9336 /* The GNU C library defines this for functions which it implements
9337 to always fail with ENOSYS. Some functions are actually named
9338 something starting with __ and the normal name is an alias. */
9339 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9342 f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (eval echo "$as_me:9350: \"$ac_link\"") >&5
9351 (eval $ac_link) 2>&5
9353 echo "$as_me:9353: \$? = $ac_status" >&5
9354 (exit $ac_status); } &&
9355 { ac_try='test -s conftest$ac_exeext'
9356 { (eval echo "$as_me:9356: \"$ac_try\"") >&5
9359 echo "$as_me:9359: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361 ac_cv_func_gethostbyname=yes
9363 echo "$as_me: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9365 ac_cv_func_gethostbyname=no
9367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9369 echo "$as_me:9369: result: $ac_cv_func_gethostbyname" >&5
9370 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9372 if test $ac_cv_func_gethostbyname = no; then
9373 echo "$as_me:9373: checking for gethostbyname in -lnsl" >&5
9374 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9375 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 ac_check_lib_save_LIBS=$LIBS
9380 cat >conftest.$ac_ext <<_ACEOF
9381 #line 9381 "configure"
9382 #include "confdefs.h"
9384 /* Override any gcc2 internal prototype to avoid an error. */
9388 /* We use char because int might match the return type of a gcc2
9389 builtin and then its argument prototype would still apply. */
9390 char gethostbyname ();
9399 rm -f conftest.$ac_objext conftest$ac_exeext
9400 if { (eval echo "$as_me:9400: \"$ac_link\"") >&5
9401 (eval $ac_link) 2>&5
9403 echo "$as_me:9403: \$? = $ac_status" >&5
9404 (exit $ac_status); } &&
9405 { ac_try='test -s conftest$ac_exeext'
9406 { (eval echo "$as_me:9406: \"$ac_try\"") >&5
9409 echo "$as_me:9409: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_cv_lib_nsl_gethostbyname=yes
9413 echo "$as_me: failed program was:" >&5
9414 cat conftest.$ac_ext >&5
9415 ac_cv_lib_nsl_gethostbyname=no
9417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9418 LIBS=$ac_check_lib_save_LIBS
9420 echo "$as_me:9420: result: $ac_cv_lib_nsl_gethostbyname" >&5
9421 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9422 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9423 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9426 if test $ac_cv_lib_nsl_gethostbyname = no; then
9427 echo "$as_me:9427: checking for gethostbyname in -lbsd" >&5
9428 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9429 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 ac_check_lib_save_LIBS=$LIBS
9434 cat >conftest.$ac_ext <<_ACEOF
9435 #line 9435 "configure"
9436 #include "confdefs.h"
9438 /* Override any gcc2 internal prototype to avoid an error. */
9442 /* We use char because int might match the return type of a gcc2
9443 builtin and then its argument prototype would still apply. */
9444 char gethostbyname ();
9453 rm -f conftest.$ac_objext conftest$ac_exeext
9454 if { (eval echo "$as_me:9454: \"$ac_link\"") >&5
9455 (eval $ac_link) 2>&5
9457 echo "$as_me:9457: \$? = $ac_status" >&5
9458 (exit $ac_status); } &&
9459 { ac_try='test -s conftest$ac_exeext'
9460 { (eval echo "$as_me:9460: \"$ac_try\"") >&5
9463 echo "$as_me:9463: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_cv_lib_bsd_gethostbyname=yes
9467 echo "$as_me: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9469 ac_cv_lib_bsd_gethostbyname=no
9471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9472 LIBS=$ac_check_lib_save_LIBS
9474 echo "$as_me:9474: result: $ac_cv_lib_bsd_gethostbyname" >&5
9475 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9476 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9477 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9483 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9484 # socket/setsockopt and other routines are undefined under SCO ODT
9485 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9486 # on later versions), says Simon Leinen: it contains gethostby*
9487 # variants that don't use the nameserver (or something). -lsocket
9488 # must be given before -lnsl if both are needed. We assume that
9489 # if connect needs -lnsl, so does gethostbyname.
9490 echo "$as_me:9490: checking for connect" >&5
9491 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9492 if test "${ac_cv_func_connect+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 cat >conftest.$ac_ext <<_ACEOF
9496 #line 9496 "configure"
9497 #include "confdefs.h"
9498 /* System header to define __stub macros and hopefully few prototypes,
9499 which can conflict with char connect (); below. */
9501 /* Override any gcc2 internal prototype to avoid an error. */
9505 /* We use char because int might match the return type of a gcc2
9506 builtin and then its argument prototype would still apply. */
9513 /* The GNU C library defines this for functions which it implements
9514 to always fail with ENOSYS. Some functions are actually named
9515 something starting with __ and the normal name is an alias. */
9516 #if defined (__stub_connect) || defined (__stub___connect)
9519 f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9526 rm -f conftest.$ac_objext conftest$ac_exeext
9527 if { (eval echo "$as_me:9527: \"$ac_link\"") >&5
9528 (eval $ac_link) 2>&5
9530 echo "$as_me:9530: \$? = $ac_status" >&5
9531 (exit $ac_status); } &&
9532 { ac_try='test -s conftest$ac_exeext'
9533 { (eval echo "$as_me:9533: \"$ac_try\"") >&5
9536 echo "$as_me:9536: \$? = $ac_status" >&5
9537 (exit $ac_status); }; }; then
9538 ac_cv_func_connect=yes
9540 echo "$as_me: failed program was:" >&5
9541 cat conftest.$ac_ext >&5
9542 ac_cv_func_connect=no
9544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9546 echo "$as_me:9546: result: $ac_cv_func_connect" >&5
9547 echo "${ECHO_T}$ac_cv_func_connect" >&6
9549 if test $ac_cv_func_connect = no; then
9550 echo "$as_me:9550: checking for connect in -lsocket" >&5
9551 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9552 if test "${ac_cv_lib_socket_connect+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 ac_check_lib_save_LIBS=$LIBS
9556 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9557 cat >conftest.$ac_ext <<_ACEOF
9558 #line 9558 "configure"
9559 #include "confdefs.h"
9561 /* Override any gcc2 internal prototype to avoid an error. */
9565 /* We use char because int might match the return type of a gcc2
9566 builtin and then its argument prototype would still apply. */
9576 rm -f conftest.$ac_objext conftest$ac_exeext
9577 if { (eval echo "$as_me:9577: \"$ac_link\"") >&5
9578 (eval $ac_link) 2>&5
9580 echo "$as_me:9580: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
9582 { ac_try='test -s conftest$ac_exeext'
9583 { (eval echo "$as_me:9583: \"$ac_try\"") >&5
9586 echo "$as_me:9586: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9588 ac_cv_lib_socket_connect=yes
9590 echo "$as_me: failed program was:" >&5
9591 cat conftest.$ac_ext >&5
9592 ac_cv_lib_socket_connect=no
9594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9595 LIBS=$ac_check_lib_save_LIBS
9597 echo "$as_me:9597: result: $ac_cv_lib_socket_connect" >&5
9598 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9599 if test $ac_cv_lib_socket_connect = yes; then
9600 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9605 # Guillermo Gomez says -lposix is necessary on A/UX.
9606 echo "$as_me:9606: checking for remove" >&5
9607 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9608 if test "${ac_cv_func_remove+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 cat >conftest.$ac_ext <<_ACEOF
9612 #line 9612 "configure"
9613 #include "confdefs.h"
9614 /* System header to define __stub macros and hopefully few prototypes,
9615 which can conflict with char remove (); below. */
9617 /* Override any gcc2 internal prototype to avoid an error. */
9621 /* We use char because int might match the return type of a gcc2
9622 builtin and then its argument prototype would still apply. */
9629 /* The GNU C library defines this for functions which it implements
9630 to always fail with ENOSYS. Some functions are actually named
9631 something starting with __ and the normal name is an alias. */
9632 #if defined (__stub_remove) || defined (__stub___remove)
9635 f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9642 rm -f conftest.$ac_objext conftest$ac_exeext
9643 if { (eval echo "$as_me:9643: \"$ac_link\"") >&5
9644 (eval $ac_link) 2>&5
9646 echo "$as_me:9646: \$? = $ac_status" >&5
9647 (exit $ac_status); } &&
9648 { ac_try='test -s conftest$ac_exeext'
9649 { (eval echo "$as_me:9649: \"$ac_try\"") >&5
9652 echo "$as_me:9652: \$? = $ac_status" >&5
9653 (exit $ac_status); }; }; then
9654 ac_cv_func_remove=yes
9656 echo "$as_me: failed program was:" >&5
9657 cat conftest.$ac_ext >&5
9658 ac_cv_func_remove=no
9660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9662 echo "$as_me:9662: result: $ac_cv_func_remove" >&5
9663 echo "${ECHO_T}$ac_cv_func_remove" >&6
9665 if test $ac_cv_func_remove = no; then
9666 echo "$as_me:9666: checking for remove in -lposix" >&5
9667 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9668 if test "${ac_cv_lib_posix_remove+set}" = set; then
9669 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 ac_check_lib_save_LIBS=$LIBS
9672 LIBS="-lposix $LIBS"
9673 cat >conftest.$ac_ext <<_ACEOF
9674 #line 9674 "configure"
9675 #include "confdefs.h"
9677 /* Override any gcc2 internal prototype to avoid an error. */
9681 /* We use char because int might match the return type of a gcc2
9682 builtin and then its argument prototype would still apply. */
9692 rm -f conftest.$ac_objext conftest$ac_exeext
9693 if { (eval echo "$as_me:9693: \"$ac_link\"") >&5
9694 (eval $ac_link) 2>&5
9696 echo "$as_me:9696: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try='test -s conftest$ac_exeext'
9699 { (eval echo "$as_me:9699: \"$ac_try\"") >&5
9702 echo "$as_me:9702: \$? = $ac_status" >&5
9703 (exit $ac_status); }; }; then
9704 ac_cv_lib_posix_remove=yes
9706 echo "$as_me: failed program was:" >&5
9707 cat conftest.$ac_ext >&5
9708 ac_cv_lib_posix_remove=no
9710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9711 LIBS=$ac_check_lib_save_LIBS
9713 echo "$as_me:9713: result: $ac_cv_lib_posix_remove" >&5
9714 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9715 if test $ac_cv_lib_posix_remove = yes; then
9716 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9721 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9722 echo "$as_me:9722: checking for shmat" >&5
9723 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9724 if test "${ac_cv_func_shmat+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 cat >conftest.$ac_ext <<_ACEOF
9728 #line 9728 "configure"
9729 #include "confdefs.h"
9730 /* System header to define __stub macros and hopefully few prototypes,
9731 which can conflict with char shmat (); below. */
9733 /* Override any gcc2 internal prototype to avoid an error. */
9737 /* We use char because int might match the return type of a gcc2
9738 builtin and then its argument prototype would still apply. */
9745 /* The GNU C library defines this for functions which it implements
9746 to always fail with ENOSYS. Some functions are actually named
9747 something starting with __ and the normal name is an alias. */
9748 #if defined (__stub_shmat) || defined (__stub___shmat)
9751 f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9758 rm -f conftest.$ac_objext conftest$ac_exeext
9759 if { (eval echo "$as_me:9759: \"$ac_link\"") >&5
9760 (eval $ac_link) 2>&5
9762 echo "$as_me:9762: \$? = $ac_status" >&5
9763 (exit $ac_status); } &&
9764 { ac_try='test -s conftest$ac_exeext'
9765 { (eval echo "$as_me:9765: \"$ac_try\"") >&5
9768 echo "$as_me:9768: \$? = $ac_status" >&5
9769 (exit $ac_status); }; }; then
9770 ac_cv_func_shmat=yes
9772 echo "$as_me: failed program was:" >&5
9773 cat conftest.$ac_ext >&5
9776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9778 echo "$as_me:9778: result: $ac_cv_func_shmat" >&5
9779 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9781 if test $ac_cv_func_shmat = no; then
9782 echo "$as_me:9782: checking for shmat in -lipc" >&5
9783 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9784 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 ac_check_lib_save_LIBS=$LIBS
9789 cat >conftest.$ac_ext <<_ACEOF
9790 #line 9790 "configure"
9791 #include "confdefs.h"
9793 /* Override any gcc2 internal prototype to avoid an error. */
9797 /* We use char because int might match the return type of a gcc2
9798 builtin and then its argument prototype would still apply. */
9808 rm -f conftest.$ac_objext conftest$ac_exeext
9809 if { (eval echo "$as_me:9809: \"$ac_link\"") >&5
9810 (eval $ac_link) 2>&5
9812 echo "$as_me:9812: \$? = $ac_status" >&5
9813 (exit $ac_status); } &&
9814 { ac_try='test -s conftest$ac_exeext'
9815 { (eval echo "$as_me:9815: \"$ac_try\"") >&5
9818 echo "$as_me:9818: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_lib_ipc_shmat=yes
9822 echo "$as_me: failed program was:" >&5
9823 cat conftest.$ac_ext >&5
9824 ac_cv_lib_ipc_shmat=no
9826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9827 LIBS=$ac_check_lib_save_LIBS
9829 echo "$as_me:9829: result: $ac_cv_lib_ipc_shmat" >&5
9830 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9831 if test $ac_cv_lib_ipc_shmat = yes; then
9832 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9838 # Check for libraries that X11R6 Xt/Xaw programs need.
9839 ac_save_LDFLAGS=$LDFLAGS
9840 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9841 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9842 # check for ICE first), but we must link in the order -lSM -lICE or
9843 # we get undefined symbols. So assume we have SM if we have ICE.
9844 # These have to be linked with before -lX11, unlike the other
9845 # libraries we check for below, so use a different variable.
9846 # John Interrante, Karl Berry
9847 echo "$as_me:9847: checking for IceConnectionNumber in -lICE" >&5
9848 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9849 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 ac_check_lib_save_LIBS=$LIBS
9853 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9854 cat >conftest.$ac_ext <<_ACEOF
9855 #line 9855 "configure"
9856 #include "confdefs.h"
9858 /* Override any gcc2 internal prototype to avoid an error. */
9862 /* We use char because int might match the return type of a gcc2
9863 builtin and then its argument prototype would still apply. */
9864 char IceConnectionNumber ();
9868 IceConnectionNumber ();
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (eval echo "$as_me:9874: \"$ac_link\"") >&5
9875 (eval $ac_link) 2>&5
9877 echo "$as_me:9877: \$? = $ac_status" >&5
9878 (exit $ac_status); } &&
9879 { ac_try='test -s conftest$ac_exeext'
9880 { (eval echo "$as_me:9880: \"$ac_try\"") >&5
9883 echo "$as_me:9883: \$? = $ac_status" >&5
9884 (exit $ac_status); }; }; then
9885 ac_cv_lib_ICE_IceConnectionNumber=yes
9887 echo "$as_me: failed program was:" >&5
9888 cat conftest.$ac_ext >&5
9889 ac_cv_lib_ICE_IceConnectionNumber=no
9891 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9892 LIBS=$ac_check_lib_save_LIBS
9894 echo "$as_me:9894: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9895 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9896 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9897 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9900 LDFLAGS=$ac_save_LDFLAGS
9904 cf_x_athena=${cf_x_athena:-Xaw}
9906 echo "$as_me:9906: checking if you want to link with Xaw 3d library" >&5
9907 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
9910 # Check whether --with-Xaw3d or --without-Xaw3d was given.
9911 if test "${with_Xaw3d+set}" = set; then
9912 withval="$with_Xaw3d"
9915 if test "$withval" = yes ; then
9917 echo "$as_me:9917: result: yes" >&5
9918 echo "${ECHO_T}yes" >&6
9920 echo "$as_me:9920: result: no" >&5
9921 echo "${ECHO_T}no" >&6
9924 echo "$as_me:9924: checking if you want to link with neXT Athena library" >&5
9925 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
9928 # Check whether --with-neXtaw or --without-neXtaw was given.
9929 if test "${with_neXtaw+set}" = set; then
9930 withval="$with_neXtaw"
9933 if test "$withval" = yes ; then
9935 echo "$as_me:9935: result: yes" >&5
9936 echo "${ECHO_T}yes" >&6
9938 echo "$as_me:9938: result: no" >&5
9939 echo "${ECHO_T}no" >&6
9942 echo "$as_me:9942: checking if you want to link with Athena-Plus library" >&5
9943 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
9946 # Check whether --with-XawPlus or --without-XawPlus was given.
9947 if test "${with_XawPlus+set}" = set; then
9948 withval="$with_XawPlus"
9951 if test "$withval" = yes ; then
9953 echo "$as_me:9953: result: yes" >&5
9954 echo "${ECHO_T}yes" >&6
9956 echo "$as_me:9956: result: no" >&5
9957 echo "${ECHO_T}no" >&6
9962 if test "$PKG_CONFIG" != none ; then
9964 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
9965 for cf_athena_pkg in \
9968 ${cf_x_athena}-devel \
9970 lib${cf_x_athena}-devel
9973 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
9974 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
9976 echo "${as_me:-configure}:9976: testing found package $cf_athena_pkg ..." 1>&5
9978 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
9979 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
9980 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
9982 echo "${as_me:-configure}:9982: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9984 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
9986 echo "${as_me:-configure}:9986: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
9991 cf_new_extra_cppflags=
9993 for cf_add_cflags in $cf_pkgconfig_incs
9995 case $cf_fix_cppflags in
9997 case $cf_add_cflags in #(vi
9998 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9999 case $cf_add_cflags in
10001 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10003 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10004 && test -z "${cf_tst_cflags}" \
10005 && cf_fix_cppflags=yes
10007 if test $cf_fix_cppflags = yes ; then
10008 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10010 elif test "${cf_tst_cflags}" = "\"'" ; then
10011 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10016 case "$CPPFLAGS" in
10017 *$cf_add_cflags) #(vi
10020 case $cf_add_cflags in #(vi
10022 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10024 CPPFLAGS=`echo "$CPPFLAGS" | \
10025 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10026 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10030 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10035 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10040 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10042 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10044 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10045 && test -z "${cf_tst_cflags}" \
10046 && cf_fix_cppflags=no
10051 if test -n "$cf_new_cflags" ; then
10053 CFLAGS="$CFLAGS $cf_new_cflags"
10056 if test -n "$cf_new_cppflags" ; then
10058 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10061 if test -n "$cf_new_extra_cppflags" ; then
10063 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10066 LIBS="$cf_pkgconfig_libs $LIBS"
10068 cf_x_athena_lib="$cf_pkgconfig_libs"
10070 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10072 cat >>confdefs.h <<EOF
10073 #define $cf_x_athena_LIBS 1
10076 for cf_trim_lib in Xmu Xt X11
10079 *-l$cf_trim_lib\ *-l$cf_trim_lib*)
10080 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
10081 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
10083 echo "${as_me:-configure}:10083: testing ..trimmed $LIBS ..." 1>&5
10089 echo "$as_me:10089: checking for usable $cf_x_athena/Xmu package" >&5
10090 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
10091 if test "${cf_cv_xaw_compat+set}" = set; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 cat >conftest.$ac_ext <<_ACEOF
10096 #line 10096 "configure"
10097 #include "confdefs.h"
10099 #include <X11/Xmu/CharSet.h>
10105 int check = XmuCompareISOLatin1("big", "small")
10111 rm -f conftest.$ac_objext conftest$ac_exeext
10112 if { (eval echo "$as_me:10112: \"$ac_link\"") >&5
10113 (eval $ac_link) 2>&5
10115 echo "$as_me:10115: \$? = $ac_status" >&5
10116 (exit $ac_status); } &&
10117 { ac_try='test -s conftest$ac_exeext'
10118 { (eval echo "$as_me:10118: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10121 echo "$as_me:10121: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 cf_cv_xaw_compat=yes
10125 echo "$as_me: failed program was:" >&5
10126 cat conftest.$ac_ext >&5
10127 cf_cv_xaw_compat=no
10129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10131 echo "$as_me:10131: result: $cf_cv_xaw_compat" >&5
10132 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
10134 if test "$cf_cv_xaw_compat" = no
10136 # workaround for broken ".pc" files...
10137 case "$cf_x_athena_lib" in #(vi
10141 test -n "$verbose" && echo " work around broken package" 1>&6
10143 echo "${as_me:-configure}:10143: testing work around broken package ..." 1>&5
10145 cf_save_xmu="$LIBS"
10146 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
10148 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
10149 test -n "$verbose" && echo " found package xmu" 1>&6
10151 echo "${as_me:-configure}:10151: testing found package xmu ..." 1>&5
10153 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
10154 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
10155 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
10157 echo "${as_me:-configure}:10157: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10159 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
10161 echo "${as_me:-configure}:10161: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
10166 cf_new_extra_cppflags=
10168 for cf_add_cflags in $cf_pkgconfig_incs
10170 case $cf_fix_cppflags in
10172 case $cf_add_cflags in #(vi
10173 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10174 case $cf_add_cflags in
10176 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10178 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10179 && test -z "${cf_tst_cflags}" \
10180 && cf_fix_cppflags=yes
10182 if test $cf_fix_cppflags = yes ; then
10183 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10185 elif test "${cf_tst_cflags}" = "\"'" ; then
10186 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10191 case "$CPPFLAGS" in
10192 *$cf_add_cflags) #(vi
10195 case $cf_add_cflags in #(vi
10197 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10199 CPPFLAGS=`echo "$CPPFLAGS" | \
10200 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10201 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10205 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10210 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10215 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10217 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10219 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10220 && test -z "${cf_tst_cflags}" \
10221 && cf_fix_cppflags=no
10226 if test -n "$cf_new_cflags" ; then
10228 CFLAGS="$CFLAGS $cf_new_cflags"
10231 if test -n "$cf_new_cppflags" ; then
10233 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10236 if test -n "$cf_new_extra_cppflags" ; then
10238 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10241 LIBS="$cf_pkgconfig_libs $LIBS"
10243 LIBS="$cf_save_xmu"
10245 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10247 echo "${as_me:-configure}:10247: testing ...before $LIBS ..." 1>&5
10249 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
10250 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10252 echo "${as_me:-configure}:10252: testing ...after $LIBS ..." 1>&5
10258 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10260 echo "${as_me:-configure}:10260: testing ...before $LIBS ..." 1>&5
10262 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
10263 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10265 echo "${as_me:-configure}:10265: testing ...after $LIBS ..." 1>&5
10269 for cf_trim_lib in Xmu Xt X11
10272 *-l$cf_trim_lib\ *-l$cf_trim_lib*)
10273 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
10274 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
10276 echo "${as_me:-configure}:10276: testing ..trimmed $LIBS ..." 1>&5
10296 if test -z "$cf_x_athena_lib" ; then
10298 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
10299 test -n "$verbose" && echo " found package Xext" 1>&6
10301 echo "${as_me:-configure}:10301: testing found package Xext ..." 1>&5
10303 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
10304 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
10305 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
10307 echo "${as_me:-configure}:10307: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10309 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
10311 echo "${as_me:-configure}:10311: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
10316 cf_new_extra_cppflags=
10318 for cf_add_cflags in $cf_pkgconfig_incs
10320 case $cf_fix_cppflags in
10322 case $cf_add_cflags in #(vi
10323 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10324 case $cf_add_cflags in
10326 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10328 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10329 && test -z "${cf_tst_cflags}" \
10330 && cf_fix_cppflags=yes
10332 if test $cf_fix_cppflags = yes ; then
10333 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10335 elif test "${cf_tst_cflags}" = "\"'" ; then
10336 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10341 case "$CPPFLAGS" in
10342 *$cf_add_cflags) #(vi
10345 case $cf_add_cflags in #(vi
10347 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10349 CPPFLAGS=`echo "$CPPFLAGS" | \
10350 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10351 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10355 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10360 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10365 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10367 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10369 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10370 && test -z "${cf_tst_cflags}" \
10371 && cf_fix_cppflags=no
10376 if test -n "$cf_new_cflags" ; then
10378 CFLAGS="$CFLAGS $cf_new_cflags"
10381 if test -n "$cf_new_cppflags" ; then
10383 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10386 if test -n "$cf_new_extra_cppflags" ; then
10388 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10391 LIBS="$cf_pkgconfig_libs $LIBS"
10397 echo "$as_me:10397: checking for XextCreateExtension in -lXext" >&5
10398 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
10399 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 ac_check_lib_save_LIBS=$LIBS
10403 LIBS="-lXext $LIBS"
10404 cat >conftest.$ac_ext <<_ACEOF
10405 #line 10405 "configure"
10406 #include "confdefs.h"
10408 /* Override any gcc2 internal prototype to avoid an error. */
10412 /* We use char because int might match the return type of a gcc2
10413 builtin and then its argument prototype would still apply. */
10414 char XextCreateExtension ();
10418 XextCreateExtension ();
10423 rm -f conftest.$ac_objext conftest$ac_exeext
10424 if { (eval echo "$as_me:10424: \"$ac_link\"") >&5
10425 (eval $ac_link) 2>&5
10427 echo "$as_me:10427: \$? = $ac_status" >&5
10428 (exit $ac_status); } &&
10429 { ac_try='test -s conftest$ac_exeext'
10430 { (eval echo "$as_me:10430: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10433 echo "$as_me:10433: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
10435 ac_cv_lib_Xext_XextCreateExtension=yes
10437 echo "$as_me: failed program was:" >&5
10438 cat conftest.$ac_ext >&5
10439 ac_cv_lib_Xext_XextCreateExtension=no
10441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10442 LIBS=$ac_check_lib_save_LIBS
10444 echo "$as_me:10444: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
10445 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
10446 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
10447 LIBS="-lXext $LIBS"
10454 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
10455 test -n "$verbose" && echo " found package xt" 1>&6
10457 echo "${as_me:-configure}:10457: testing found package xt ..." 1>&5
10459 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
10460 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
10461 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
10463 echo "${as_me:-configure}:10463: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10465 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
10467 echo "${as_me:-configure}:10467: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
10472 cf_new_extra_cppflags=
10474 for cf_add_cflags in $cf_pkgconfig_incs
10476 case $cf_fix_cppflags in
10478 case $cf_add_cflags in #(vi
10479 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10480 case $cf_add_cflags in
10482 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10484 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10485 && test -z "${cf_tst_cflags}" \
10486 && cf_fix_cppflags=yes
10488 if test $cf_fix_cppflags = yes ; then
10489 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10491 elif test "${cf_tst_cflags}" = "\"'" ; then
10492 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10497 case "$CPPFLAGS" in
10498 *$cf_add_cflags) #(vi
10501 case $cf_add_cflags in #(vi
10503 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10505 CPPFLAGS=`echo "$CPPFLAGS" | \
10506 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10507 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10511 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10516 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10521 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10523 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10525 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10526 && test -z "${cf_tst_cflags}" \
10527 && cf_fix_cppflags=no
10532 if test -n "$cf_new_cflags" ; then
10534 CFLAGS="$CFLAGS $cf_new_cflags"
10537 if test -n "$cf_new_cppflags" ; then
10539 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10542 if test -n "$cf_new_extra_cppflags" ; then
10544 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10547 LIBS="$cf_pkgconfig_libs $LIBS"
10549 case "x$LIBS" in #(vi
10553 # we have an "xt" package, but it may omit Xt's dependency on X11
10554 echo "$as_me:10554: checking for usable X dependency" >&5
10555 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
10556 if test "${cf_cv_xt_x11_compat+set}" = set; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
10560 cat >conftest.$ac_ext <<_ACEOF
10561 #line 10561 "configure"
10562 #include "confdefs.h"
10564 #include <X11/Xlib.h>
10570 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
10571 int rc2 = XClearWindow((Display*) 0, (Window) 0);
10572 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
10573 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
10579 rm -f conftest.$ac_objext conftest$ac_exeext
10580 if { (eval echo "$as_me:10580: \"$ac_link\"") >&5
10581 (eval $ac_link) 2>&5
10583 echo "$as_me:10583: \$? = $ac_status" >&5
10584 (exit $ac_status); } &&
10585 { ac_try='test -s conftest$ac_exeext'
10586 { (eval echo "$as_me:10586: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10589 echo "$as_me:10589: \$? = $ac_status" >&5
10590 (exit $ac_status); }; }; then
10591 cf_cv_xt_x11_compat=yes
10593 echo "$as_me: failed program was:" >&5
10594 cat conftest.$ac_ext >&5
10595 cf_cv_xt_x11_compat=no
10597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10599 echo "$as_me:10599: result: $cf_cv_xt_x11_compat" >&5
10600 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
10601 if test "$cf_cv_xt_x11_compat" = no
10603 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
10605 echo "${as_me:-configure}:10605: testing work around broken X11 dependency ..." 1>&5
10607 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
10609 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
10610 test -n "$verbose" && echo " found package x11" 1>&6
10612 echo "${as_me:-configure}:10612: testing found package x11 ..." 1>&5
10614 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
10615 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
10616 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
10618 echo "${as_me:-configure}:10618: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10620 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
10622 echo "${as_me:-configure}:10622: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
10627 cf_new_extra_cppflags=
10629 for cf_add_cflags in $cf_pkgconfig_incs
10631 case $cf_fix_cppflags in
10633 case $cf_add_cflags in #(vi
10634 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10635 case $cf_add_cflags in
10637 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10639 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10640 && test -z "${cf_tst_cflags}" \
10641 && cf_fix_cppflags=yes
10643 if test $cf_fix_cppflags = yes ; then
10644 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10646 elif test "${cf_tst_cflags}" = "\"'" ; then
10647 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10652 case "$CPPFLAGS" in
10653 *$cf_add_cflags) #(vi
10656 case $cf_add_cflags in #(vi
10658 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10660 CPPFLAGS=`echo "$CPPFLAGS" | \
10661 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10662 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10666 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10671 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10676 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10678 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10680 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10681 && test -z "${cf_tst_cflags}" \
10682 && cf_fix_cppflags=no
10687 if test -n "$cf_new_cflags" ; then
10689 CFLAGS="$CFLAGS $cf_new_cflags"
10692 if test -n "$cf_new_cppflags" ; then
10694 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10697 if test -n "$cf_new_extra_cppflags" ; then
10699 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10702 LIBS="$cf_pkgconfig_libs $LIBS"
10708 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10710 echo "${as_me:-configure}:10710: testing ...before $LIBS ..." 1>&5
10712 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
10713 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10715 echo "${as_me:-configure}:10715: testing ...after $LIBS ..." 1>&5
10723 echo "$as_me:10723: checking for usable X Toolkit package" >&5
10724 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
10725 if test "${cf_cv_xt_ice_compat+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 cat >conftest.$ac_ext <<_ACEOF
10730 #line 10730 "configure"
10731 #include "confdefs.h"
10733 #include <X11/Shell.h>
10738 int num = IceConnectionNumber(0)
10744 rm -f conftest.$ac_objext conftest$ac_exeext
10745 if { (eval echo "$as_me:10745: \"$ac_link\"") >&5
10746 (eval $ac_link) 2>&5
10748 echo "$as_me:10748: \$? = $ac_status" >&5
10749 (exit $ac_status); } &&
10750 { ac_try='test -s conftest$ac_exeext'
10751 { (eval echo "$as_me:10751: \"$ac_try\"") >&5
10752 (eval $ac_try) 2>&5
10754 echo "$as_me:10754: \$? = $ac_status" >&5
10755 (exit $ac_status); }; }; then
10756 cf_cv_xt_ice_compat=yes
10758 echo "$as_me: failed program was:" >&5
10759 cat conftest.$ac_ext >&5
10760 cf_cv_xt_ice_compat=no
10762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10764 echo "$as_me:10764: result: $cf_cv_xt_ice_compat" >&5
10765 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
10767 if test "$cf_cv_xt_ice_compat" = no
10769 # workaround for broken ".pc" files used for X Toolkit.
10770 case "x$X_PRE_LIBS" in #(vi
10772 case "x$LIBS" in #(vi
10776 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
10778 echo "${as_me:-configure}:10778: testing work around broken ICE dependency ..." 1>&5
10780 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
10781 test -n "$verbose" && echo " found package ice" 1>&6
10783 echo "${as_me:-configure}:10783: testing found package ice ..." 1>&5
10785 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
10786 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
10787 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
10789 echo "${as_me:-configure}:10789: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10791 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
10793 echo "${as_me:-configure}:10793: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
10798 cf_new_extra_cppflags=
10800 for cf_add_cflags in $cf_pkgconfig_incs
10802 case $cf_fix_cppflags in
10804 case $cf_add_cflags in #(vi
10805 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10806 case $cf_add_cflags in
10808 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10810 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10811 && test -z "${cf_tst_cflags}" \
10812 && cf_fix_cppflags=yes
10814 if test $cf_fix_cppflags = yes ; then
10815 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10817 elif test "${cf_tst_cflags}" = "\"'" ; then
10818 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10823 case "$CPPFLAGS" in
10824 *$cf_add_cflags) #(vi
10827 case $cf_add_cflags in #(vi
10829 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10831 CPPFLAGS=`echo "$CPPFLAGS" | \
10832 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10833 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10837 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10842 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10847 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10849 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10851 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10852 && test -z "${cf_tst_cflags}" \
10853 && cf_fix_cppflags=no
10858 if test -n "$cf_new_cflags" ; then
10860 CFLAGS="$CFLAGS $cf_new_cflags"
10863 if test -n "$cf_new_cppflags" ; then
10865 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10868 if test -n "$cf_new_extra_cppflags" ; then
10870 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10873 LIBS="$cf_pkgconfig_libs $LIBS"
10875 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
10876 test -n "$verbose" && echo " found package sm" 1>&6
10878 echo "${as_me:-configure}:10878: testing found package sm ..." 1>&5
10880 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
10881 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
10882 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
10884 echo "${as_me:-configure}:10884: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10886 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
10888 echo "${as_me:-configure}:10888: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
10893 cf_new_extra_cppflags=
10895 for cf_add_cflags in $cf_pkgconfig_incs
10897 case $cf_fix_cppflags in
10899 case $cf_add_cflags in #(vi
10900 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10901 case $cf_add_cflags in
10903 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10905 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10906 && test -z "${cf_tst_cflags}" \
10907 && cf_fix_cppflags=yes
10909 if test $cf_fix_cppflags = yes ; then
10910 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10912 elif test "${cf_tst_cflags}" = "\"'" ; then
10913 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10918 case "$CPPFLAGS" in
10919 *$cf_add_cflags) #(vi
10922 case $cf_add_cflags in #(vi
10924 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10926 CPPFLAGS=`echo "$CPPFLAGS" | \
10927 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10928 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10932 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10937 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10942 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10944 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10946 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10947 && test -z "${cf_tst_cflags}" \
10948 && cf_fix_cppflags=no
10953 if test -n "$cf_new_cflags" ; then
10955 CFLAGS="$CFLAGS $cf_new_cflags"
10958 if test -n "$cf_new_cppflags" ; then
10960 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10963 if test -n "$cf_new_extra_cppflags" ; then
10965 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10968 LIBS="$cf_pkgconfig_libs $LIBS"
10980 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10982 echo "${as_me:-configure}:10982: testing ...before $LIBS ..." 1>&5
10984 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
10985 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10987 echo "${as_me:-configure}:10987: testing ...after $LIBS ..." 1>&5
11003 LDFLAGS="$X_LIBS $LDFLAGS"
11005 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
11007 echo "${as_me:-configure}:11007: testing checking additions to CFLAGS ..." 1>&5
11009 cf_check_cflags="$CFLAGS"
11010 cf_check_cppflags="$CPPFLAGS"
11015 cf_new_extra_cppflags=
11017 for cf_add_cflags in $X_CFLAGS
11019 case $cf_fix_cppflags in
11021 case $cf_add_cflags in #(vi
11022 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11023 case $cf_add_cflags in
11025 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11027 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11028 && test -z "${cf_tst_cflags}" \
11029 && cf_fix_cppflags=yes
11031 if test $cf_fix_cppflags = yes ; then
11032 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11034 elif test "${cf_tst_cflags}" = "\"'" ; then
11035 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11040 case "$CPPFLAGS" in
11041 *$cf_add_cflags) #(vi
11044 case $cf_add_cflags in #(vi
11046 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11048 CPPFLAGS=`echo "$CPPFLAGS" | \
11049 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11050 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11054 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11059 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11064 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11066 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11068 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11069 && test -z "${cf_tst_cflags}" \
11070 && cf_fix_cppflags=no
11075 if test -n "$cf_new_cflags" ; then
11076 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11078 echo "${as_me:-configure}:11078: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11080 CFLAGS="$CFLAGS $cf_new_cflags"
11083 if test -n "$cf_new_cppflags" ; then
11084 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11086 echo "${as_me:-configure}:11086: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11088 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11091 if test -n "$cf_new_extra_cppflags" ; then
11092 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11094 echo "${as_me:-configure}:11094: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11096 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11099 if test "$cf_check_cflags" != "$CFLAGS" ; then
11100 cat >conftest.$ac_ext <<_ACEOF
11101 #line 11101 "configure"
11102 #include "confdefs.h"
11107 printf("Hello world");
11112 rm -f conftest.$ac_objext conftest$ac_exeext
11113 if { (eval echo "$as_me:11113: \"$ac_link\"") >&5
11114 (eval $ac_link) 2>&5
11116 echo "$as_me:11116: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -s conftest$ac_exeext'
11119 { (eval echo "$as_me:11119: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11122 echo "$as_me:11122: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11126 echo "$as_me: failed program was:" >&5
11127 cat conftest.$ac_ext >&5
11128 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
11130 echo "${as_me:-configure}:11130: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
11132 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
11133 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
11135 echo "${as_me:-configure}:11135: testing but keeping change to \$CPPFLAGS ..." 1>&5
11138 CFLAGS="$cf_check_flags"
11140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11143 echo "$as_me:11143: checking for XOpenDisplay" >&5
11144 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
11145 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 cat >conftest.$ac_ext <<_ACEOF
11149 #line 11149 "configure"
11150 #include "confdefs.h"
11151 /* System header to define __stub macros and hopefully few prototypes,
11152 which can conflict with char XOpenDisplay (); below. */
11153 #include <assert.h>
11154 /* Override any gcc2 internal prototype to avoid an error. */
11158 /* We use char because int might match the return type of a gcc2
11159 builtin and then its argument prototype would still apply. */
11160 char XOpenDisplay ();
11166 /* The GNU C library defines this for functions which it implements
11167 to always fail with ENOSYS. Some functions are actually named
11168 something starting with __ and the normal name is an alias. */
11169 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
11172 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
11179 rm -f conftest.$ac_objext conftest$ac_exeext
11180 if { (eval echo "$as_me:11180: \"$ac_link\"") >&5
11181 (eval $ac_link) 2>&5
11183 echo "$as_me:11183: \$? = $ac_status" >&5
11184 (exit $ac_status); } &&
11185 { ac_try='test -s conftest$ac_exeext'
11186 { (eval echo "$as_me:11186: \"$ac_try\"") >&5
11187 (eval $ac_try) 2>&5
11189 echo "$as_me:11189: \$? = $ac_status" >&5
11190 (exit $ac_status); }; }; then
11191 ac_cv_func_XOpenDisplay=yes
11193 echo "$as_me: failed program was:" >&5
11194 cat conftest.$ac_ext >&5
11195 ac_cv_func_XOpenDisplay=no
11197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11199 echo "$as_me:11199: result: $ac_cv_func_XOpenDisplay" >&5
11200 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
11201 if test $ac_cv_func_XOpenDisplay = yes; then
11205 echo "$as_me:11205: checking for XOpenDisplay in -lX11" >&5
11206 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
11207 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11210 ac_check_lib_save_LIBS=$LIBS
11211 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
11212 cat >conftest.$ac_ext <<_ACEOF
11213 #line 11213 "configure"
11214 #include "confdefs.h"
11216 /* Override any gcc2 internal prototype to avoid an error. */
11220 /* We use char because int might match the return type of a gcc2
11221 builtin and then its argument prototype would still apply. */
11222 char XOpenDisplay ();
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (eval echo "$as_me:11232: \"$ac_link\"") >&5
11233 (eval $ac_link) 2>&5
11235 echo "$as_me:11235: \$? = $ac_status" >&5
11236 (exit $ac_status); } &&
11237 { ac_try='test -s conftest$ac_exeext'
11238 { (eval echo "$as_me:11238: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11241 echo "$as_me:11241: \$? = $ac_status" >&5
11242 (exit $ac_status); }; }; then
11243 ac_cv_lib_X11_XOpenDisplay=yes
11245 echo "$as_me: failed program was:" >&5
11246 cat conftest.$ac_ext >&5
11247 ac_cv_lib_X11_XOpenDisplay=no
11249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11250 LIBS=$ac_check_lib_save_LIBS
11252 echo "$as_me:11252: result: $ac_cv_lib_X11_XOpenDisplay" >&5
11253 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
11254 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
11260 echo "$as_me:11260: checking for XtAppInitialize" >&5
11261 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
11262 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 cat >conftest.$ac_ext <<_ACEOF
11266 #line 11266 "configure"
11267 #include "confdefs.h"
11268 /* System header to define __stub macros and hopefully few prototypes,
11269 which can conflict with char XtAppInitialize (); below. */
11270 #include <assert.h>
11271 /* Override any gcc2 internal prototype to avoid an error. */
11275 /* We use char because int might match the return type of a gcc2
11276 builtin and then its argument prototype would still apply. */
11277 char XtAppInitialize ();
11283 /* The GNU C library defines this for functions which it implements
11284 to always fail with ENOSYS. Some functions are actually named
11285 something starting with __ and the normal name is an alias. */
11286 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
11289 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
11296 rm -f conftest.$ac_objext conftest$ac_exeext
11297 if { (eval echo "$as_me:11297: \"$ac_link\"") >&5
11298 (eval $ac_link) 2>&5
11300 echo "$as_me:11300: \$? = $ac_status" >&5
11301 (exit $ac_status); } &&
11302 { ac_try='test -s conftest$ac_exeext'
11303 { (eval echo "$as_me:11303: \"$ac_try\"") >&5
11304 (eval $ac_try) 2>&5
11306 echo "$as_me:11306: \$? = $ac_status" >&5
11307 (exit $ac_status); }; }; then
11308 ac_cv_func_XtAppInitialize=yes
11310 echo "$as_me: failed program was:" >&5
11311 cat conftest.$ac_ext >&5
11312 ac_cv_func_XtAppInitialize=no
11314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11316 echo "$as_me:11316: result: $ac_cv_func_XtAppInitialize" >&5
11317 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
11318 if test $ac_cv_func_XtAppInitialize = yes; then
11322 echo "$as_me:11322: checking for XtAppInitialize in -lXt" >&5
11323 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
11324 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 ac_check_lib_save_LIBS=$LIBS
11328 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
11329 cat >conftest.$ac_ext <<_ACEOF
11330 #line 11330 "configure"
11331 #include "confdefs.h"
11333 /* Override any gcc2 internal prototype to avoid an error. */
11337 /* We use char because int might match the return type of a gcc2
11338 builtin and then its argument prototype would still apply. */
11339 char XtAppInitialize ();
11343 XtAppInitialize ();
11348 rm -f conftest.$ac_objext conftest$ac_exeext
11349 if { (eval echo "$as_me:11349: \"$ac_link\"") >&5
11350 (eval $ac_link) 2>&5
11352 echo "$as_me:11352: \$? = $ac_status" >&5
11353 (exit $ac_status); } &&
11354 { ac_try='test -s conftest$ac_exeext'
11355 { (eval echo "$as_me:11355: \"$ac_try\"") >&5
11356 (eval $ac_try) 2>&5
11358 echo "$as_me:11358: \$? = $ac_status" >&5
11359 (exit $ac_status); }; }; then
11360 ac_cv_lib_Xt_XtAppInitialize=yes
11362 echo "$as_me: failed program was:" >&5
11363 cat conftest.$ac_ext >&5
11364 ac_cv_lib_Xt_XtAppInitialize=no
11366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11367 LIBS=$ac_check_lib_save_LIBS
11369 echo "$as_me:11369: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
11370 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
11371 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
11373 cat >>confdefs.h <<\EOF
11374 #define HAVE_LIBXT 1
11378 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
11385 if test $cf_have_X_LIBS = no ; then
11386 { echo "$as_me:11386: WARNING: Unable to successfully link X Toolkit library (-lXt) with
11387 test program. You will have to check and add the proper libraries by hand
11389 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
11390 test program. You will have to check and add the proper libraries by hand
11391 to makefile." >&2;}
11394 cf_x_athena_root=$cf_x_athena
11397 for cf_path in default \
11398 /usr/contrib/X11R6 \
11399 /usr/contrib/X11R5 \
11403 if test -z "$cf_x_athena_inc" ; then
11404 cf_save="$CPPFLAGS"
11405 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
11406 if test $cf_path != default ; then
11407 CPPFLAGS="$cf_save -I$cf_path/include"
11408 echo "$as_me:11408: checking for $cf_test in $cf_path" >&5
11409 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
11411 echo "$as_me:11411: checking for $cf_test" >&5
11412 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
11414 cat >conftest.$ac_ext <<_ACEOF
11415 #line 11415 "configure"
11416 #include "confdefs.h"
11418 #include <X11/Intrinsic.h>
11419 #include <$cf_test>
11428 rm -f conftest.$ac_objext
11429 if { (eval echo "$as_me:11429: \"$ac_compile\"") >&5
11430 (eval $ac_compile) 2>&5
11432 echo "$as_me:11432: \$? = $ac_status" >&5
11433 (exit $ac_status); } &&
11434 { ac_try='test -s conftest.$ac_objext'
11435 { (eval echo "$as_me:11435: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11438 echo "$as_me:11438: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11442 echo "$as_me: failed program was:" >&5
11443 cat conftest.$ac_ext >&5
11446 rm -f conftest.$ac_objext conftest.$ac_ext
11447 echo "$as_me:11447: result: $cf_result" >&5
11448 echo "${ECHO_T}$cf_result" >&6
11449 if test "$cf_result" = yes ; then
11450 cf_x_athena_inc=$cf_path
11453 CPPFLAGS="$cf_save"
11458 if test -z "$cf_x_athena_inc" ; then
11459 { echo "$as_me:11459: WARNING: Unable to successfully find Athena header files with test program" >&5
11460 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
11461 elif test "$cf_x_athena_inc" != default ; then
11462 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
11465 cf_x_athena_root=$cf_x_athena
11468 for cf_path in default \
11469 /usr/contrib/X11R6 \
11470 /usr/contrib/X11R5 \
11475 ${cf_x_athena_root} \
11476 ${cf_x_athena_root}7 \
11477 ${cf_x_athena_root}6
11480 "-l$cf_lib -lXmu" \
11481 "-l$cf_lib -lXpm -lXmu" \
11482 "-l${cf_lib}_s -lXmu_s"
11484 if test -z "$cf_x_athena_lib" ; then
11486 cf_test=XawSimpleMenuAddGlobalActions
11487 if test $cf_path != default ; then
11488 LIBS="-L$cf_path/lib $cf_libs $LIBS"
11489 echo "$as_me:11489: checking for $cf_libs in $cf_path" >&5
11490 echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6
11492 LIBS="$cf_libs $LIBS"
11493 echo "$as_me:11493: checking for $cf_test in $cf_libs" >&5
11494 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
11496 cat >conftest.$ac_ext <<_ACEOF
11497 #line 11497 "configure"
11498 #include "confdefs.h"
11500 #include <X11/Intrinsic.h>
11501 #include <X11/$cf_x_athena_root/SimpleMenu.h>
11507 $cf_test((XtAppContext) 0)
11512 rm -f conftest.$ac_objext conftest$ac_exeext
11513 if { (eval echo "$as_me:11513: \"$ac_link\"") >&5
11514 (eval $ac_link) 2>&5
11516 echo "$as_me:11516: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
11518 { ac_try='test -s conftest$ac_exeext'
11519 { (eval echo "$as_me:11519: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11522 echo "$as_me:11522: \$? = $ac_status" >&5
11523 (exit $ac_status); }; }; then
11526 echo "$as_me: failed program was:" >&5
11527 cat conftest.$ac_ext >&5
11530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11531 echo "$as_me:11531: result: $cf_result" >&5
11532 echo "${ECHO_T}$cf_result" >&6
11533 if test "$cf_result" = yes ; then
11534 cf_x_athena_lib="$cf_libs"
11540 test -n "$cf_x_athena_lib" && break
11544 if test -z "$cf_x_athena_lib" ; then
11545 { { echo "$as_me:11545: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
11546 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
11547 { (exit 1); exit 1; }; }
11550 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11552 cat >>confdefs.h <<EOF
11553 #define $cf_x_athena_LIBS 1
11558 if test -n "$ac_tool_prefix"; then
11559 for ac_prog in xcurses-config
11561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11563 echo "$as_me:11563: checking for $ac_word" >&5
11564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11565 if test "${ac_cv_prog_XCURSES_CONFIG+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 if test -n "$XCURSES_CONFIG"; then
11569 ac_cv_prog_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test.
11571 ac_save_IFS=$IFS; IFS=$ac_path_separator
11573 for ac_dir in $ac_dummy; do
11575 test -z "$ac_dir" && ac_dir=.
11576 $as_executable_p "$ac_dir/$ac_word" || continue
11577 ac_cv_prog_XCURSES_CONFIG="$ac_tool_prefix$ac_prog"
11578 echo "$as_me:11578: found $ac_dir/$ac_word" >&5
11584 XCURSES_CONFIG=$ac_cv_prog_XCURSES_CONFIG
11585 if test -n "$XCURSES_CONFIG"; then
11586 echo "$as_me:11586: result: $XCURSES_CONFIG" >&5
11587 echo "${ECHO_T}$XCURSES_CONFIG" >&6
11589 echo "$as_me:11589: result: no" >&5
11590 echo "${ECHO_T}no" >&6
11593 test -n "$XCURSES_CONFIG" && break
11596 if test -z "$XCURSES_CONFIG"; then
11597 ac_ct_XCURSES_CONFIG=$XCURSES_CONFIG
11598 for ac_prog in xcurses-config
11600 # Extract the first word of "$ac_prog", so it can be a program name with args.
11601 set dummy $ac_prog; ac_word=$2
11602 echo "$as_me:11602: checking for $ac_word" >&5
11603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11604 if test "${ac_cv_prog_ac_ct_XCURSES_CONFIG+set}" = set; then
11605 echo $ECHO_N "(cached) $ECHO_C" >&6
11607 if test -n "$ac_ct_XCURSES_CONFIG"; then
11608 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_ct_XCURSES_CONFIG" # Let the user override the test.
11610 ac_save_IFS=$IFS; IFS=$ac_path_separator
11612 for ac_dir in $ac_dummy; do
11614 test -z "$ac_dir" && ac_dir=.
11615 $as_executable_p "$ac_dir/$ac_word" || continue
11616 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_prog"
11617 echo "$as_me:11617: found $ac_dir/$ac_word" >&5
11623 ac_ct_XCURSES_CONFIG=$ac_cv_prog_ac_ct_XCURSES_CONFIG
11624 if test -n "$ac_ct_XCURSES_CONFIG"; then
11625 echo "$as_me:11625: result: $ac_ct_XCURSES_CONFIG" >&5
11626 echo "${ECHO_T}$ac_ct_XCURSES_CONFIG" >&6
11628 echo "$as_me:11628: result: no" >&5
11629 echo "${ECHO_T}no" >&6
11632 test -n "$ac_ct_XCURSES_CONFIG" && break
11634 test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG="none"
11636 XCURSES_CONFIG=$ac_ct_XCURSES_CONFIG
11639 if test "$XCURSES_CONFIG" != none ; then
11641 CPPFLAGS="$CPPFLAGS `$XCURSES_CONFIG --cflags`"
11642 LIBS="`$XCURSES_CONFIG --libs` $LIBS"
11644 cf_cv_lib_XCurses=yes
11648 LDFLAGS="$LDFLAGS $X_LIBS"
11650 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
11652 echo "${as_me:-configure}:11652: testing checking additions to CFLAGS ..." 1>&5
11654 cf_check_cflags="$CFLAGS"
11655 cf_check_cppflags="$CPPFLAGS"
11660 cf_new_extra_cppflags=
11662 for cf_add_cflags in $X_CFLAGS
11664 case $cf_fix_cppflags in
11666 case $cf_add_cflags in #(vi
11667 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11668 case $cf_add_cflags in
11670 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11672 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11673 && test -z "${cf_tst_cflags}" \
11674 && cf_fix_cppflags=yes
11676 if test $cf_fix_cppflags = yes ; then
11677 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11679 elif test "${cf_tst_cflags}" = "\"'" ; then
11680 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11685 case "$CPPFLAGS" in
11686 *$cf_add_cflags) #(vi
11689 case $cf_add_cflags in #(vi
11691 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11693 CPPFLAGS=`echo "$CPPFLAGS" | \
11694 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11695 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11699 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11704 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11709 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11711 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11713 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11714 && test -z "${cf_tst_cflags}" \
11715 && cf_fix_cppflags=no
11720 if test -n "$cf_new_cflags" ; then
11721 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11723 echo "${as_me:-configure}:11723: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11725 CFLAGS="$CFLAGS $cf_new_cflags"
11728 if test -n "$cf_new_cppflags" ; then
11729 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11731 echo "${as_me:-configure}:11731: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11733 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11736 if test -n "$cf_new_extra_cppflags" ; then
11737 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11739 echo "${as_me:-configure}:11739: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11741 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11744 if test "$cf_check_cflags" != "$CFLAGS" ; then
11745 cat >conftest.$ac_ext <<_ACEOF
11746 #line 11746 "configure"
11747 #include "confdefs.h"
11752 printf("Hello world");
11757 rm -f conftest.$ac_objext conftest$ac_exeext
11758 if { (eval echo "$as_me:11758: \"$ac_link\"") >&5
11759 (eval $ac_link) 2>&5
11761 echo "$as_me:11761: \$? = $ac_status" >&5
11762 (exit $ac_status); } &&
11763 { ac_try='test -s conftest$ac_exeext'
11764 { (eval echo "$as_me:11764: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11767 echo "$as_me:11767: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11771 echo "$as_me: failed program was:" >&5
11772 cat conftest.$ac_ext >&5
11773 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
11775 echo "${as_me:-configure}:11775: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
11777 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
11778 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
11780 echo "${as_me:-configure}:11780: testing but keeping change to \$CPPFLAGS ..." 1>&5
11783 CFLAGS="$cf_check_flags"
11785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11788 echo "$as_me:11788: checking for XOpenDisplay in -lX11" >&5
11789 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
11790 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11793 ac_check_lib_save_LIBS=$LIBS
11794 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
11795 cat >conftest.$ac_ext <<_ACEOF
11796 #line 11796 "configure"
11797 #include "confdefs.h"
11799 /* Override any gcc2 internal prototype to avoid an error. */
11803 /* We use char because int might match the return type of a gcc2
11804 builtin and then its argument prototype would still apply. */
11805 char XOpenDisplay ();
11814 rm -f conftest.$ac_objext conftest$ac_exeext
11815 if { (eval echo "$as_me:11815: \"$ac_link\"") >&5
11816 (eval $ac_link) 2>&5
11818 echo "$as_me:11818: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
11820 { ac_try='test -s conftest$ac_exeext'
11821 { (eval echo "$as_me:11821: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11824 echo "$as_me:11824: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 ac_cv_lib_X11_XOpenDisplay=yes
11828 echo "$as_me: failed program was:" >&5
11829 cat conftest.$ac_ext >&5
11830 ac_cv_lib_X11_XOpenDisplay=no
11832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11833 LIBS=$ac_check_lib_save_LIBS
11835 echo "$as_me:11835: result: $ac_cv_lib_X11_XOpenDisplay" >&5
11836 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
11837 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
11841 echo "$as_me:11841: checking for XCurses library" >&5
11842 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
11843 if test "${cf_cv_lib_XCurses+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11847 LIBS="-lXCurses $LIBS"
11848 cat >conftest.$ac_ext <<_ACEOF
11849 #line 11849 "configure"
11850 #include "confdefs.h"
11852 #include <xcurses.h>
11853 char *XCursesProgramName = "test";
11863 rm -f conftest.$ac_objext conftest$ac_exeext
11864 if { (eval echo "$as_me:11864: \"$ac_link\"") >&5
11865 (eval $ac_link) 2>&5
11867 echo "$as_me:11867: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
11869 { ac_try='test -s conftest$ac_exeext'
11870 { (eval echo "$as_me:11870: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11873 echo "$as_me:11873: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 cf_cv_lib_XCurses=yes
11877 echo "$as_me: failed program was:" >&5
11878 cat conftest.$ac_ext >&5
11879 cf_cv_lib_XCurses=no
11881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11884 echo "$as_me:11884: result: $cf_cv_lib_XCurses" >&5
11885 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
11889 if test $cf_cv_lib_XCurses = yes ; then
11891 cat >>confdefs.h <<\EOF
11895 cat >>confdefs.h <<\EOF
11899 echo "$as_me:11899: checking for xcurses.h" >&5
11900 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
11901 if test "${ac_cv_header_xcurses_h+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11904 cat >conftest.$ac_ext <<_ACEOF
11905 #line 11905 "configure"
11906 #include "confdefs.h"
11907 #include <xcurses.h>
11909 if { (eval echo "$as_me:11909: \"$ac_cpp conftest.$ac_ext\"") >&5
11910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11912 egrep -v '^ *\+' conftest.er1 >conftest.err
11914 cat conftest.err >&5
11915 echo "$as_me:11915: \$? = $ac_status" >&5
11916 (exit $ac_status); } >/dev/null; then
11917 if test -s conftest.err; then
11918 ac_cpp_err=$ac_c_preproc_warn_flag
11925 if test -z "$ac_cpp_err"; then
11926 ac_cv_header_xcurses_h=yes
11928 echo "$as_me: failed program was:" >&5
11929 cat conftest.$ac_ext >&5
11930 ac_cv_header_xcurses_h=no
11932 rm -f conftest.err conftest.$ac_ext
11934 echo "$as_me:11934: result: $ac_cv_header_xcurses_h" >&5
11935 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
11936 if test $ac_cv_header_xcurses_h = yes; then
11938 cat >>confdefs.h <<\EOF
11939 #define HAVE_XCURSES 1
11945 { { echo "$as_me:11945: error: Cannot link with XCurses" >&5
11946 echo "$as_me: error: Cannot link with XCurses" >&2;}
11947 { (exit 1); exit 1; }; }
11953 case $cf_cv_screen in
11956 echo "$as_me:11956: checking for NetBSD form.h" >&5
11957 echo $ECHO_N "checking for NetBSD form.h... $ECHO_C" >&6
11958 if test "${cf_cv_netbsd_form_h+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 cat >conftest.$ac_ext <<_ACEOF
11963 #line 11963 "configure"
11964 #include "confdefs.h"
11966 #include <${cf_cv_ncurses_header:-curses.h}>
11974 int y = current_field(form)->cursor_ypos;
11975 int x = current_field(form)->cursor_xpos;
11981 rm -f conftest.$ac_objext
11982 if { (eval echo "$as_me:11982: \"$ac_compile\"") >&5
11983 (eval $ac_compile) 2>&5
11985 echo "$as_me:11985: \$? = $ac_status" >&5
11986 (exit $ac_status); } &&
11987 { ac_try='test -s conftest.$ac_objext'
11988 { (eval echo "$as_me:11988: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11991 echo "$as_me:11991: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 cf_cv_netbsd_form_h=yes
11996 echo "$as_me: failed program was:" >&5
11997 cat conftest.$ac_ext >&5
11998 cf_cv_netbsd_form_h=no
12000 rm -f conftest.$ac_objext conftest.$ac_ext
12003 echo "$as_me:12003: result: $cf_cv_netbsd_form_h" >&5
12004 echo "${ECHO_T}$cf_cv_netbsd_form_h" >&6
12006 test "$cf_cv_netbsd_form_h" = yes &&
12007 cat >>confdefs.h <<\EOF
12008 #define HAVE_NETBSD_FORM_H 1
12011 echo "$as_me:12011: checking for NetBSD menu.h" >&5
12012 echo $ECHO_N "checking for NetBSD menu.h... $ECHO_C" >&6
12013 if test "${cf_cv_netbsd_menu_h+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 cat >conftest.$ac_ext <<_ACEOF
12018 #line 12018 "configure"
12019 #include "confdefs.h"
12021 #include <${cf_cv_ncurses_header:-curses.h}>
12029 int y = menu->max_item_width;
12035 rm -f conftest.$ac_objext
12036 if { (eval echo "$as_me:12036: \"$ac_compile\"") >&5
12037 (eval $ac_compile) 2>&5
12039 echo "$as_me:12039: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
12041 { ac_try='test -s conftest.$ac_objext'
12042 { (eval echo "$as_me:12042: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12045 echo "$as_me:12045: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 cf_cv_netbsd_menu_h=yes
12050 echo "$as_me: failed program was:" >&5
12051 cat conftest.$ac_ext >&5
12052 cf_cv_netbsd_menu_h=no
12054 rm -f conftest.$ac_objext conftest.$ac_ext
12057 echo "$as_me:12057: result: $cf_cv_netbsd_menu_h" >&5
12058 echo "${ECHO_T}$cf_cv_netbsd_menu_h" >&6
12060 test "$cf_cv_netbsd_menu_h" = yes &&
12061 cat >>confdefs.h <<\EOF
12062 #define HAVE_NETBSD_MENU_H 1
12071 case $cf_cv_screen in #(vi
12075 # look for curses-related libraries
12076 : ${cf_panel_lib:=panel}
12077 : ${cf_menu_lib:=menu}
12078 : ${cf_form_lib:=form}
12080 as_ac_Lib=`echo "ac_cv_lib_$cf_panel_lib$cf_cv_libtype''_new_panel" | $as_tr_sh`
12081 echo "$as_me:12081: checking for new_panel in -l$cf_panel_lib$cf_cv_libtype" >&5
12082 echo $ECHO_N "checking for new_panel in -l$cf_panel_lib$cf_cv_libtype... $ECHO_C" >&6
12083 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 ac_check_lib_save_LIBS=$LIBS
12087 LIBS="-l$cf_panel_lib$cf_cv_libtype $LIBS"
12088 cat >conftest.$ac_ext <<_ACEOF
12089 #line 12089 "configure"
12090 #include "confdefs.h"
12092 /* Override any gcc2 internal prototype to avoid an error. */
12096 /* We use char because int might match the return type of a gcc2
12097 builtin and then its argument prototype would still apply. */
12107 rm -f conftest.$ac_objext conftest$ac_exeext
12108 if { (eval echo "$as_me:12108: \"$ac_link\"") >&5
12109 (eval $ac_link) 2>&5
12111 echo "$as_me:12111: \$? = $ac_status" >&5
12112 (exit $ac_status); } &&
12113 { ac_try='test -s conftest$ac_exeext'
12114 { (eval echo "$as_me:12114: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12117 echo "$as_me:12117: \$? = $ac_status" >&5
12118 (exit $ac_status); }; }; then
12119 eval "$as_ac_Lib=yes"
12121 echo "$as_me: failed program was:" >&5
12122 cat conftest.$ac_ext >&5
12123 eval "$as_ac_Lib=no"
12125 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12126 LIBS=$ac_check_lib_save_LIBS
12128 echo "$as_me:12128: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12129 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12130 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12131 cat >>confdefs.h <<EOF
12132 #define `echo "HAVE_LIB$cf_panel_lib$cf_cv_libtype" | $as_tr_cpp` 1
12135 LIBS="-l$cf_panel_lib$cf_cv_libtype $LIBS"
12139 as_ac_Lib=`echo "ac_cv_lib_$cf_menu_lib$cf_cv_libtype''_menu_driver" | $as_tr_sh`
12140 echo "$as_me:12140: checking for menu_driver in -l$cf_menu_lib$cf_cv_libtype" >&5
12141 echo $ECHO_N "checking for menu_driver in -l$cf_menu_lib$cf_cv_libtype... $ECHO_C" >&6
12142 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12145 ac_check_lib_save_LIBS=$LIBS
12146 LIBS="-l$cf_menu_lib$cf_cv_libtype $LIBS"
12147 cat >conftest.$ac_ext <<_ACEOF
12148 #line 12148 "configure"
12149 #include "confdefs.h"
12151 /* Override any gcc2 internal prototype to avoid an error. */
12155 /* We use char because int might match the return type of a gcc2
12156 builtin and then its argument prototype would still apply. */
12157 char menu_driver ();
12166 rm -f conftest.$ac_objext conftest$ac_exeext
12167 if { (eval echo "$as_me:12167: \"$ac_link\"") >&5
12168 (eval $ac_link) 2>&5
12170 echo "$as_me:12170: \$? = $ac_status" >&5
12171 (exit $ac_status); } &&
12172 { ac_try='test -s conftest$ac_exeext'
12173 { (eval echo "$as_me:12173: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12176 echo "$as_me:12176: \$? = $ac_status" >&5
12177 (exit $ac_status); }; }; then
12178 eval "$as_ac_Lib=yes"
12180 echo "$as_me: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12182 eval "$as_ac_Lib=no"
12184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_check_lib_save_LIBS
12187 echo "$as_me:12187: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12188 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12189 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12190 cat >>confdefs.h <<EOF
12191 #define `echo "HAVE_LIB$cf_menu_lib$cf_cv_libtype" | $as_tr_cpp` 1
12194 LIBS="-l$cf_menu_lib$cf_cv_libtype $LIBS"
12198 as_ac_Lib=`echo "ac_cv_lib_$cf_form_lib$cf_cv_libtype''_form_driver" | $as_tr_sh`
12199 echo "$as_me:12199: checking for form_driver in -l$cf_form_lib$cf_cv_libtype" >&5
12200 echo $ECHO_N "checking for form_driver in -l$cf_form_lib$cf_cv_libtype... $ECHO_C" >&6
12201 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 ac_check_lib_save_LIBS=$LIBS
12205 LIBS="-l$cf_form_lib$cf_cv_libtype $LIBS"
12206 cat >conftest.$ac_ext <<_ACEOF
12207 #line 12207 "configure"
12208 #include "confdefs.h"
12210 /* Override any gcc2 internal prototype to avoid an error. */
12214 /* We use char because int might match the return type of a gcc2
12215 builtin and then its argument prototype would still apply. */
12216 char form_driver ();
12225 rm -f conftest.$ac_objext conftest$ac_exeext
12226 if { (eval echo "$as_me:12226: \"$ac_link\"") >&5
12227 (eval $ac_link) 2>&5
12229 echo "$as_me:12229: \$? = $ac_status" >&5
12230 (exit $ac_status); } &&
12231 { ac_try='test -s conftest$ac_exeext'
12232 { (eval echo "$as_me:12232: \"$ac_try\"") >&5
12233 (eval $ac_try) 2>&5
12235 echo "$as_me:12235: \$? = $ac_status" >&5
12236 (exit $ac_status); }; }; then
12237 eval "$as_ac_Lib=yes"
12239 echo "$as_me: failed program was:" >&5
12240 cat conftest.$ac_ext >&5
12241 eval "$as_ac_Lib=no"
12243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12244 LIBS=$ac_check_lib_save_LIBS
12246 echo "$as_me:12246: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12247 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12248 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12249 cat >>confdefs.h <<EOF
12250 #define `echo "HAVE_LIB$cf_form_lib$cf_cv_libtype" | $as_tr_cpp` 1
12253 LIBS="-l$cf_form_lib$cf_cv_libtype $LIBS"
12257 # look for curses-related headers
12268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12269 echo "$as_me:12269: checking for $ac_header" >&5
12270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 cat >conftest.$ac_ext <<_ACEOF
12275 #line 12275 "configure"
12276 #include "confdefs.h"
12277 #include <$ac_header>
12279 if { (eval echo "$as_me:12279: \"$ac_cpp conftest.$ac_ext\"") >&5
12280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12282 egrep -v '^ *\+' conftest.er1 >conftest.err
12284 cat conftest.err >&5
12285 echo "$as_me:12285: \$? = $ac_status" >&5
12286 (exit $ac_status); } >/dev/null; then
12287 if test -s conftest.err; then
12288 ac_cpp_err=$ac_c_preproc_warn_flag
12295 if test -z "$ac_cpp_err"; then
12296 eval "$as_ac_Header=yes"
12298 echo "$as_me: failed program was:" >&5
12299 cat conftest.$ac_ext >&5
12300 eval "$as_ac_Header=no"
12302 rm -f conftest.err conftest.$ac_ext
12304 echo "$as_me:12304: result: `eval echo '${'$as_ac_Header'}'`" >&5
12305 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12307 cat >>confdefs.h <<EOF
12308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12317 echo "$as_me:12317: checking for ANSI C header files" >&5
12318 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12319 if test "${ac_cv_header_stdc+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 cat >conftest.$ac_ext <<_ACEOF
12323 #line 12323 "configure"
12324 #include "confdefs.h"
12325 #include <stdlib.h>
12326 #include <stdarg.h>
12327 #include <string.h>
12331 if { (eval echo "$as_me:12331: \"$ac_cpp conftest.$ac_ext\"") >&5
12332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12334 egrep -v '^ *\+' conftest.er1 >conftest.err
12336 cat conftest.err >&5
12337 echo "$as_me:12337: \$? = $ac_status" >&5
12338 (exit $ac_status); } >/dev/null; then
12339 if test -s conftest.err; then
12340 ac_cpp_err=$ac_c_preproc_warn_flag
12347 if test -z "$ac_cpp_err"; then
12348 ac_cv_header_stdc=yes
12350 echo "$as_me: failed program was:" >&5
12351 cat conftest.$ac_ext >&5
12352 ac_cv_header_stdc=no
12354 rm -f conftest.err conftest.$ac_ext
12356 if test $ac_cv_header_stdc = yes; then
12357 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12358 cat >conftest.$ac_ext <<_ACEOF
12359 #line 12359 "configure"
12360 #include "confdefs.h"
12361 #include <string.h>
12364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12365 egrep "memchr" >/dev/null 2>&1; then
12368 ac_cv_header_stdc=no
12374 if test $ac_cv_header_stdc = yes; then
12375 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12376 cat >conftest.$ac_ext <<_ACEOF
12377 #line 12377 "configure"
12378 #include "confdefs.h"
12379 #include <stdlib.h>
12382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12383 egrep "free" >/dev/null 2>&1; then
12386 ac_cv_header_stdc=no
12392 if test $ac_cv_header_stdc = yes; then
12393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12394 if test "$cross_compiling" = yes; then
12397 cat >conftest.$ac_ext <<_ACEOF
12398 #line 12398 "configure"
12399 #include "confdefs.h"
12401 #if ((' ' & 0x0FF) == 0x020)
12402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12405 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12406 || ('j' <= (c) && (c) <= 'r') \
12407 || ('s' <= (c) && (c) <= 'z'))
12408 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12411 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12416 for (i = 0; i < 256; i++)
12417 if (XOR (islower (i), ISLOWER (i))
12418 || toupper (i) != TOUPPER (i))
12419 $ac_main_return(2);
12420 $ac_main_return (0);
12423 rm -f conftest$ac_exeext
12424 if { (eval echo "$as_me:12424: \"$ac_link\"") >&5
12425 (eval $ac_link) 2>&5
12427 echo "$as_me:12427: \$? = $ac_status" >&5
12428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12429 { (eval echo "$as_me:12429: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12432 echo "$as_me:12432: \$? = $ac_status" >&5
12433 (exit $ac_status); }; }; then
12436 echo "$as_me: program exited with status $ac_status" >&5
12437 echo "$as_me: failed program was:" >&5
12438 cat conftest.$ac_ext >&5
12439 ac_cv_header_stdc=no
12441 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12445 echo "$as_me:12445: result: $ac_cv_header_stdc" >&5
12446 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12447 if test $ac_cv_header_stdc = yes; then
12449 cat >>confdefs.h <<\EOF
12450 #define STDC_HEADERS 1
12455 echo "$as_me:12455: checking whether time.h and sys/time.h may both be included" >&5
12456 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12457 if test "${ac_cv_header_time+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 cat >conftest.$ac_ext <<_ACEOF
12461 #line 12461 "configure"
12462 #include "confdefs.h"
12463 #include <sys/types.h>
12464 #include <sys/time.h>
12470 if ((struct tm *) 0)
12476 rm -f conftest.$ac_objext
12477 if { (eval echo "$as_me:12477: \"$ac_compile\"") >&5
12478 (eval $ac_compile) 2>&5
12480 echo "$as_me:12480: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
12482 { ac_try='test -s conftest.$ac_objext'
12483 { (eval echo "$as_me:12483: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12486 echo "$as_me:12486: \$? = $ac_status" >&5
12487 (exit $ac_status); }; }; then
12488 ac_cv_header_time=yes
12490 echo "$as_me: failed program was:" >&5
12491 cat conftest.$ac_ext >&5
12492 ac_cv_header_time=no
12494 rm -f conftest.$ac_objext conftest.$ac_ext
12496 echo "$as_me:12496: result: $ac_cv_header_time" >&5
12497 echo "${ECHO_T}$ac_cv_header_time" >&6
12498 if test $ac_cv_header_time = yes; then
12500 cat >>confdefs.h <<\EOF
12501 #define TIME_WITH_SYS_TIME 1
12518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12519 echo "$as_me:12519: checking for $ac_header" >&5
12520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 cat >conftest.$ac_ext <<_ACEOF
12525 #line 12525 "configure"
12526 #include "confdefs.h"
12527 #include <$ac_header>
12529 if { (eval echo "$as_me:12529: \"$ac_cpp conftest.$ac_ext\"") >&5
12530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12532 egrep -v '^ *\+' conftest.er1 >conftest.err
12534 cat conftest.err >&5
12535 echo "$as_me:12535: \$? = $ac_status" >&5
12536 (exit $ac_status); } >/dev/null; then
12537 if test -s conftest.err; then
12538 ac_cpp_err=$ac_c_preproc_warn_flag
12545 if test -z "$ac_cpp_err"; then
12546 eval "$as_ac_Header=yes"
12548 echo "$as_me: failed program was:" >&5
12549 cat conftest.$ac_ext >&5
12550 eval "$as_ac_Header=no"
12552 rm -f conftest.err conftest.$ac_ext
12554 echo "$as_me:12554: result: `eval echo '${'$as_ac_Header'}'`" >&5
12555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12557 cat >>confdefs.h <<EOF
12558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12564 for ac_header in unistd.h getopt.h
12566 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12567 echo "$as_me:12567: checking for $ac_header" >&5
12568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 cat >conftest.$ac_ext <<_ACEOF
12573 #line 12573 "configure"
12574 #include "confdefs.h"
12575 #include <$ac_header>
12577 if { (eval echo "$as_me:12577: \"$ac_cpp conftest.$ac_ext\"") >&5
12578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12580 egrep -v '^ *\+' conftest.er1 >conftest.err
12582 cat conftest.err >&5
12583 echo "$as_me:12583: \$? = $ac_status" >&5
12584 (exit $ac_status); } >/dev/null; then
12585 if test -s conftest.err; then
12586 ac_cpp_err=$ac_c_preproc_warn_flag
12593 if test -z "$ac_cpp_err"; then
12594 eval "$as_ac_Header=yes"
12596 echo "$as_me: failed program was:" >&5
12597 cat conftest.$ac_ext >&5
12598 eval "$as_ac_Header=no"
12600 rm -f conftest.err conftest.$ac_ext
12602 echo "$as_me:12602: result: `eval echo '${'$as_ac_Header'}'`" >&5
12603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12605 cat >>confdefs.h <<EOF
12606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12612 echo "$as_me:12612: checking for header declaring getopt variables" >&5
12613 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
12614 if test "${cf_cv_getopt_header+set}" = set; then
12615 echo $ECHO_N "(cached) $ECHO_C" >&6
12618 cf_cv_getopt_header=none
12619 for cf_header in stdio.h stdlib.h unistd.h getopt.h
12621 cat >conftest.$ac_ext <<_ACEOF
12622 #line 12622 "configure"
12623 #include "confdefs.h"
12625 #include <$cf_header>
12629 int x = optind; char *y = optarg
12634 rm -f conftest.$ac_objext
12635 if { (eval echo "$as_me:12635: \"$ac_compile\"") >&5
12636 (eval $ac_compile) 2>&5
12638 echo "$as_me:12638: \$? = $ac_status" >&5
12639 (exit $ac_status); } &&
12640 { ac_try='test -s conftest.$ac_objext'
12641 { (eval echo "$as_me:12641: \"$ac_try\"") >&5
12642 (eval $ac_try) 2>&5
12644 echo "$as_me:12644: \$? = $ac_status" >&5
12645 (exit $ac_status); }; }; then
12646 cf_cv_getopt_header=$cf_header
12649 echo "$as_me: failed program was:" >&5
12650 cat conftest.$ac_ext >&5
12652 rm -f conftest.$ac_objext conftest.$ac_ext
12656 echo "$as_me:12656: result: $cf_cv_getopt_header" >&5
12657 echo "${ECHO_T}$cf_cv_getopt_header" >&6
12658 if test $cf_cv_getopt_header != none ; then
12660 cat >>confdefs.h <<\EOF
12661 #define HAVE_GETOPT_HEADER 1
12670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12671 echo "$as_me:12671: checking for $ac_func" >&5
12672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12673 if eval "test \"\${$as_ac_var+set}\" = set"; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 cat >conftest.$ac_ext <<_ACEOF
12677 #line 12677 "configure"
12678 #include "confdefs.h"
12679 /* System header to define __stub macros and hopefully few prototypes,
12680 which can conflict with char $ac_func (); below. */
12681 #include <assert.h>
12682 /* Override any gcc2 internal prototype to avoid an error. */
12686 /* We use char because int might match the return type of a gcc2
12687 builtin and then its argument prototype would still apply. */
12694 /* The GNU C library defines this for functions which it implements
12695 to always fail with ENOSYS. Some functions are actually named
12696 something starting with __ and the normal name is an alias. */
12697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12700 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12707 rm -f conftest.$ac_objext conftest$ac_exeext
12708 if { (eval echo "$as_me:12708: \"$ac_link\"") >&5
12709 (eval $ac_link) 2>&5
12711 echo "$as_me:12711: \$? = $ac_status" >&5
12712 (exit $ac_status); } &&
12713 { ac_try='test -s conftest$ac_exeext'
12714 { (eval echo "$as_me:12714: \"$ac_try\"") >&5
12715 (eval $ac_try) 2>&5
12717 echo "$as_me:12717: \$? = $ac_status" >&5
12718 (exit $ac_status); }; }; then
12719 eval "$as_ac_var=yes"
12721 echo "$as_me: failed program was:" >&5
12722 cat conftest.$ac_ext >&5
12723 eval "$as_ac_var=no"
12725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12727 echo "$as_me:12727: result: `eval echo '${'$as_ac_var'}'`" >&5
12728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12729 if test `eval echo '${'$as_ac_var'}'` = yes; then
12730 cat >>confdefs.h <<EOF
12731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12737 if test "$cf_enable_widec" = yes; then
12750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12751 echo "$as_me:12751: checking for $ac_func" >&5
12752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12753 if eval "test \"\${$as_ac_var+set}\" = set"; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12756 cat >conftest.$ac_ext <<_ACEOF
12757 #line 12757 "configure"
12758 #include "confdefs.h"
12759 /* System header to define __stub macros and hopefully few prototypes,
12760 which can conflict with char $ac_func (); below. */
12761 #include <assert.h>
12762 /* Override any gcc2 internal prototype to avoid an error. */
12766 /* We use char because int might match the return type of a gcc2
12767 builtin and then its argument prototype would still apply. */
12774 /* The GNU C library defines this for functions which it implements
12775 to always fail with ENOSYS. Some functions are actually named
12776 something starting with __ and the normal name is an alias. */
12777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12780 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12787 rm -f conftest.$ac_objext conftest$ac_exeext
12788 if { (eval echo "$as_me:12788: \"$ac_link\"") >&5
12789 (eval $ac_link) 2>&5
12791 echo "$as_me:12791: \$? = $ac_status" >&5
12792 (exit $ac_status); } &&
12793 { ac_try='test -s conftest$ac_exeext'
12794 { (eval echo "$as_me:12794: \"$ac_try\"") >&5
12795 (eval $ac_try) 2>&5
12797 echo "$as_me:12797: \$? = $ac_status" >&5
12798 (exit $ac_status); }; }; then
12799 eval "$as_ac_var=yes"
12801 echo "$as_me: failed program was:" >&5
12802 cat conftest.$ac_ext >&5
12803 eval "$as_ac_var=no"
12805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12807 echo "$as_me:12807: result: `eval echo '${'$as_ac_var'}'`" >&5
12808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12809 if test `eval echo '${'$as_ac_var'}'` = yes; then
12810 cat >>confdefs.h <<EOF
12811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12819 echo "$as_me:12819: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
12820 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
12821 if test "${cf_cv_need_xopen_extension+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12825 cat >conftest.$ac_ext <<_ACEOF
12826 #line 12826 "configure"
12827 #include "confdefs.h"
12829 #include <stdlib.h>
12830 #include <${cf_cv_ncurses_header:-curses.h}>
12835 #if defined(NCURSES_VERSION_PATCH)
12836 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
12840 long x = winnstr(stdscr, "", 0);
12842 getbegyx(stdscr, y1, x1)
12847 rm -f conftest.$ac_objext conftest$ac_exeext
12848 if { (eval echo "$as_me:12848: \"$ac_link\"") >&5
12849 (eval $ac_link) 2>&5
12851 echo "$as_me:12851: \$? = $ac_status" >&5
12852 (exit $ac_status); } &&
12853 { ac_try='test -s conftest$ac_exeext'
12854 { (eval echo "$as_me:12854: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12857 echo "$as_me:12857: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
12859 cf_cv_need_xopen_extension=no
12861 echo "$as_me: failed program was:" >&5
12862 cat conftest.$ac_ext >&5
12863 cat >conftest.$ac_ext <<_ACEOF
12864 #line 12864 "configure"
12865 #include "confdefs.h"
12867 #define _XOPEN_SOURCE_EXTENDED
12868 #include <stdlib.h>
12869 #include <${cf_cv_ncurses_header:-curses.h}>
12874 #ifdef NCURSES_VERSION
12876 int check2 = curs_set((int)sizeof(check));
12878 long x = winnstr(stdscr, "", 0);
12880 getbegyx(stdscr, y1, x1)
12885 rm -f conftest.$ac_objext conftest$ac_exeext
12886 if { (eval echo "$as_me:12886: \"$ac_link\"") >&5
12887 (eval $ac_link) 2>&5
12889 echo "$as_me:12889: \$? = $ac_status" >&5
12890 (exit $ac_status); } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (eval echo "$as_me:12892: \"$ac_try\"") >&5
12893 (eval $ac_try) 2>&5
12895 echo "$as_me:12895: \$? = $ac_status" >&5
12896 (exit $ac_status); }; }; then
12897 cf_cv_need_xopen_extension=yes
12899 echo "$as_me: failed program was:" >&5
12900 cat conftest.$ac_ext >&5
12901 cf_cv_need_xopen_extension=unknown
12903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12907 echo "$as_me:12907: result: $cf_cv_need_xopen_extension" >&5
12908 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
12909 test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12911 echo "$as_me:12911: checking for term.h" >&5
12912 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
12913 if test "${cf_cv_term_header+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
12918 # for <term.h> if we do not find the variant.
12920 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
12922 case ${cf_cv_ncurses_header:-curses.h} in #(vi
12924 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
12925 cf_header_list="$cf_header_item $cf_header_list"
12929 for cf_header in $cf_header_list
12931 cat >conftest.$ac_ext <<_ACEOF
12932 #line 12932 "configure"
12933 #include "confdefs.h"
12935 #include <${cf_cv_ncurses_header:-curses.h}>
12936 #include <${cf_header}>
12945 rm -f conftest.$ac_objext
12946 if { (eval echo "$as_me:12946: \"$ac_compile\"") >&5
12947 (eval $ac_compile) 2>&5
12949 echo "$as_me:12949: \$? = $ac_status" >&5
12950 (exit $ac_status); } &&
12951 { ac_try='test -s conftest.$ac_objext'
12952 { (eval echo "$as_me:12952: \"$ac_try\"") >&5
12953 (eval $ac_try) 2>&5
12955 echo "$as_me:12955: \$? = $ac_status" >&5
12956 (exit $ac_status); }; }; then
12957 cf_cv_term_header=$cf_header
12960 echo "$as_me: failed program was:" >&5
12961 cat conftest.$ac_ext >&5
12962 cf_cv_term_header=no
12964 rm -f conftest.$ac_objext conftest.$ac_ext
12967 case $cf_cv_term_header in #(vi
12969 # If curses is ncurses, some packagers still mess it up by trying to make
12970 # us use GNU termcap. This handles the most common case.
12971 for cf_header in ncurses/term.h ncursesw/term.h
12973 cat >conftest.$ac_ext <<_ACEOF
12974 #line 12974 "configure"
12975 #include "confdefs.h"
12977 #include <${cf_cv_ncurses_header:-curses.h}>
12978 #ifdef NCURSES_VERSION
12979 #include <${cf_header}>
12991 rm -f conftest.$ac_objext
12992 if { (eval echo "$as_me:12992: \"$ac_compile\"") >&5
12993 (eval $ac_compile) 2>&5
12995 echo "$as_me:12995: \$? = $ac_status" >&5
12996 (exit $ac_status); } &&
12997 { ac_try='test -s conftest.$ac_objext'
12998 { (eval echo "$as_me:12998: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13001 echo "$as_me:13001: \$? = $ac_status" >&5
13002 (exit $ac_status); }; }; then
13003 cf_cv_term_header=$cf_header
13006 echo "$as_me: failed program was:" >&5
13007 cat conftest.$ac_ext >&5
13008 cf_cv_term_header=no
13010 rm -f conftest.$ac_objext conftest.$ac_ext
13016 echo "$as_me:13016: result: $cf_cv_term_header" >&5
13017 echo "${ECHO_T}$cf_cv_term_header" >&6
13019 case $cf_cv_term_header in #(vi
13022 cat >>confdefs.h <<\EOF
13023 #define HAVE_TERM_H 1
13027 ncurses/term.h) #(vi
13029 cat >>confdefs.h <<\EOF
13030 #define HAVE_NCURSES_TERM_H 1
13036 cat >>confdefs.h <<\EOF
13037 #define HAVE_NCURSESW_TERM_H 1
13043 echo "$as_me:13043: checking for unctrl.h" >&5
13044 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
13045 if test "${cf_cv_unctrl_header+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13049 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
13050 # for <unctrl.h> if we do not find the variant.
13052 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
13054 case ${cf_cv_ncurses_header:-curses.h} in #(vi
13056 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
13057 cf_header_list="$cf_header_item $cf_header_list"
13061 for cf_header in $cf_header_list
13063 cat >conftest.$ac_ext <<_ACEOF
13064 #line 13064 "configure"
13065 #include "confdefs.h"
13067 #include <${cf_cv_ncurses_header:-curses.h}>
13068 #include <${cf_header}>
13077 rm -f conftest.$ac_objext
13078 if { (eval echo "$as_me:13078: \"$ac_compile\"") >&5
13079 (eval $ac_compile) 2>&5
13081 echo "$as_me:13081: \$? = $ac_status" >&5
13082 (exit $ac_status); } &&
13083 { ac_try='test -s conftest.$ac_objext'
13084 { (eval echo "$as_me:13084: \"$ac_try\"") >&5
13085 (eval $ac_try) 2>&5
13087 echo "$as_me:13087: \$? = $ac_status" >&5
13088 (exit $ac_status); }; }; then
13089 cf_cv_unctrl_header=$cf_header
13092 echo "$as_me: failed program was:" >&5
13093 cat conftest.$ac_ext >&5
13094 cf_cv_unctrl_header=no
13096 rm -f conftest.$ac_objext conftest.$ac_ext
13099 case $cf_cv_unctrl_header in #(vi
13101 { echo "$as_me:13101: WARNING: unctrl.h header not found" >&5
13102 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
13107 echo "$as_me:13107: result: $cf_cv_unctrl_header" >&5
13108 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
13110 case $cf_cv_unctrl_header in #(vi
13113 cat >>confdefs.h <<\EOF
13114 #define HAVE_UNCTRL_H 1
13118 ncurses/unctrl.h) #(vi
13120 cat >>confdefs.h <<\EOF
13121 #define HAVE_NCURSES_UNCTRL_H 1
13127 cat >>confdefs.h <<\EOF
13128 #define HAVE_NCURSESW_UNCTRL_H 1
13135 assume_default_colors \
13161 use_default_colors \
13173 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13175 echo "$as_me:13175: checking for ${cf_func}" >&5
13176 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
13178 echo "${as_me:-configure}:13178: testing ${cf_func} ..." 1>&5
13180 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 eval cf_result='$ac_cv_func_'$cf_func
13185 if test ".$cf_result" != ".no"; then
13186 cat >conftest.$ac_ext <<_ACEOF
13187 #line 13187 "configure"
13188 #include "confdefs.h"
13190 #ifdef HAVE_XCURSES
13191 #include <xcurses.h>
13192 char * XCursesProgramName = "test";
13194 #include <${cf_cv_ncurses_header:-curses.h}>
13195 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
13196 #include <ncursesw/term.h>
13197 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
13198 #include <ncurses/term.h>
13199 #elif defined(HAVE_TERM_H)
13209 long foo = (long)(&${cf_func});
13210 if (foo + 1234 > 5678)
13211 ${cf_cv_main_return:-return}(foo);
13218 rm -f conftest.$ac_objext conftest$ac_exeext
13219 if { (eval echo "$as_me:13219: \"$ac_link\"") >&5
13220 (eval $ac_link) 2>&5
13222 echo "$as_me:13222: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try='test -s conftest$ac_exeext'
13225 { (eval echo "$as_me:13225: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13228 echo "$as_me:13228: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13232 echo "$as_me: failed program was:" >&5
13233 cat conftest.$ac_ext >&5
13236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13238 eval 'cf_cv_func_'$cf_func'=$cf_result'
13242 # use the computed/retrieved cache-value:
13243 eval 'cf_result=$cf_cv_func_'$cf_func
13244 echo "$as_me:13244: result: $cf_result" >&5
13245 echo "${ECHO_T}$cf_result" >&6
13246 if test $cf_result != no; then
13247 cat >>confdefs.h <<EOF
13248 #define HAVE_${cf_tr_func} 1
13254 for cf_func in tputs
13257 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13259 echo "$as_me:13259: checking for ${cf_func}" >&5
13260 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
13262 echo "${as_me:-configure}:13262: testing ${cf_func} ..." 1>&5
13264 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
13265 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 eval cf_result='$ac_cv_func_'$cf_func
13269 if test ".$cf_result" != ".no"; then
13270 cat >conftest.$ac_ext <<_ACEOF
13271 #line 13271 "configure"
13272 #include "confdefs.h"
13274 #ifdef HAVE_XCURSES
13275 #include <xcurses.h>
13276 char * XCursesProgramName = "test";
13278 #include <${cf_cv_ncurses_header:-curses.h}>
13279 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
13280 #include <ncursesw/term.h>
13281 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
13282 #include <ncurses/term.h>
13283 #elif defined(HAVE_TERM_H)
13293 long foo = (long)(&${cf_func});
13294 if (foo + 1234 > 5678)
13295 ${cf_cv_main_return:-return}(foo);
13302 rm -f conftest.$ac_objext conftest$ac_exeext
13303 if { (eval echo "$as_me:13303: \"$ac_link\"") >&5
13304 (eval $ac_link) 2>&5
13306 echo "$as_me:13306: \$? = $ac_status" >&5
13307 (exit $ac_status); } &&
13308 { ac_try='test -s conftest$ac_exeext'
13309 { (eval echo "$as_me:13309: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13312 echo "$as_me:13312: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13316 echo "$as_me: failed program was:" >&5
13317 cat conftest.$ac_ext >&5
13320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13322 eval 'cf_cv_func_'$cf_func'=$cf_result'
13326 # use the computed/retrieved cache-value:
13327 eval 'cf_result=$cf_cv_func_'$cf_func
13328 echo "$as_me:13328: result: $cf_result" >&5
13329 echo "${ECHO_T}$cf_result" >&6
13330 if test $cf_result != no; then
13331 cat >>confdefs.h <<EOF
13332 #define HAVE_${cf_tr_func} 1
13338 if test x$cf_cv_func_tputs = xyes
13341 for cf_arg in int char
13343 for cf_ret in int void
13345 if test $cf_ret = void
13347 cf_return="/* nothing */"
13349 cf_return="return value"
13351 cat >conftest.$ac_ext <<_ACEOF
13352 #line 13352 "configure"
13353 #include "confdefs.h"
13355 #include <${cf_cv_ncurses_header:-curses.h}>
13356 #include <$cf_cv_term_header>
13358 static $cf_ret outc($cf_arg value) { $cf_return; }
13364 tputs("hello", 0, outc);
13365 ${cf_cv_main_return:-return}(0);
13371 rm -f conftest.$ac_objext
13372 if { (eval echo "$as_me:13372: \"$ac_compile\"") >&5
13373 (eval $ac_compile) 2>&5
13375 echo "$as_me:13375: \$? = $ac_status" >&5
13376 (exit $ac_status); } &&
13377 { ac_try='test -s conftest.$ac_objext'
13378 { (eval echo "$as_me:13378: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13381 echo "$as_me:13381: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
13384 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
13386 echo "${as_me:-configure}:13386: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
13388 cat >>confdefs.h <<EOF
13389 #define TPUTS_ARG $cf_arg
13390 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
13391 #define TPUTS_RETURN(value) $cf_return
13397 echo "$as_me: failed program was:" >&5
13398 cat conftest.$ac_ext >&5
13400 rm -f conftest.$ac_objext conftest.$ac_ext
13402 test $cf_done = yes && break
13406 echo "$as_me:13406: checking for ncurses extended functions" >&5
13407 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
13408 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13412 cat >conftest.$ac_ext <<_ACEOF
13413 #line 13413 "configure"
13414 #include "confdefs.h"
13416 #include <${cf_cv_ncurses_header:-curses.h}>
13421 int x = NCURSES_EXT_FUNCS
13427 rm -f conftest.$ac_objext
13428 if { (eval echo "$as_me:13428: \"$ac_compile\"") >&5
13429 (eval $ac_compile) 2>&5
13431 echo "$as_me:13431: \$? = $ac_status" >&5
13432 (exit $ac_status); } &&
13433 { ac_try='test -s conftest.$ac_objext'
13434 { (eval echo "$as_me:13434: \"$ac_try\"") >&5
13435 (eval $ac_try) 2>&5
13437 echo "$as_me:13437: \$? = $ac_status" >&5
13438 (exit $ac_status); }; }; then
13439 cf_cv_ncurses_ext_funcs=defined
13441 echo "$as_me: failed program was:" >&5
13442 cat conftest.$ac_ext >&5
13444 cat >conftest.$ac_ext <<_ACEOF
13445 #line 13445 "configure"
13446 #include "confdefs.h"
13448 #include <${cf_cv_ncurses_header:-curses.h}>
13453 (void) assume_default_colors (0, 0);
13454 (void) curses_version ();
13455 (void) define_key (0, 0);
13456 (void) is_term_resized (0, 0);
13457 (void) key_defined (0);
13458 (void) keybound (0, 0);
13459 (void) keyok (0, 0);
13460 (void) resize_term (0, 0);
13461 (void) resizeterm (0, 0);
13462 (void) use_default_colors ();
13463 (void) use_extended_names (0);
13464 (void) wresize (0, 0, 0);
13469 rm -f conftest.$ac_objext conftest$ac_exeext
13470 if { (eval echo "$as_me:13470: \"$ac_link\"") >&5
13471 (eval $ac_link) 2>&5
13473 echo "$as_me:13473: \$? = $ac_status" >&5
13474 (exit $ac_status); } &&
13475 { ac_try='test -s conftest$ac_exeext'
13476 { (eval echo "$as_me:13476: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13479 echo "$as_me:13479: \$? = $ac_status" >&5
13480 (exit $ac_status); }; }; then
13481 cf_cv_ncurses_ext_funcs=yes
13483 echo "$as_me: failed program was:" >&5
13484 cat conftest.$ac_ext >&5
13485 cf_cv_ncurses_ext_funcs=no
13487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13490 rm -f conftest.$ac_objext conftest.$ac_ext
13493 echo "$as_me:13493: result: $cf_cv_ncurses_ext_funcs" >&5
13494 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
13495 test "$cf_cv_ncurses_ext_funcs" = yes &&
13496 cat >>confdefs.h <<\EOF
13497 #define NCURSES_EXT_FUNCS 1
13500 if test "$cf_enable_widec" = yes
13502 # workaround for systems with ncurses before 20111029, due to change of
13503 # feature test macro from _XPG5 to _XOPEN_SOURCE
13504 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
13507 echo "$as_me:13507: checking if _XPG5 should be defined to enable wide-characters" >&5
13508 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
13510 cat >conftest.$ac_ext <<_ACEOF
13511 #line 13511 "configure"
13512 #include "confdefs.h"
13514 #include <${cf_cv_ncurses_header:-curses.h}>
13523 rm -f conftest.$ac_objext
13524 if { (eval echo "$as_me:13524: \"$ac_compile\"") >&5
13525 (eval $ac_compile) 2>&5
13527 echo "$as_me:13527: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
13529 { ac_try='test -s conftest.$ac_objext'
13530 { (eval echo "$as_me:13530: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13533 echo "$as_me:13533: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13537 echo "$as_me: failed program was:" >&5
13538 cat conftest.$ac_ext >&5
13539 cf_save_cppflags="$CPPFLAGS"
13540 CPPFLAGS="$CPPFLAGS -D_XPG5"
13541 cat >conftest.$ac_ext <<_ACEOF
13542 #line 13542 "configure"
13543 #include "confdefs.h"
13545 #include <${cf_cv_ncurses_header:-curses.h}>
13554 rm -f conftest.$ac_objext
13555 if { (eval echo "$as_me:13555: \"$ac_compile\"") >&5
13556 (eval $ac_compile) 2>&5
13558 echo "$as_me:13558: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -s conftest.$ac_objext'
13561 { (eval echo "$as_me:13561: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13564 echo "$as_me:13564: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13568 echo "$as_me: failed program was:" >&5
13569 cat conftest.$ac_ext >&5
13571 rm -f conftest.$ac_objext conftest.$ac_ext
13572 CPPFLAGS="$cf_save_cppflags"
13574 rm -f conftest.$ac_objext conftest.$ac_ext
13575 echo "$as_me:13575: result: $cf_define_xpg5" >&5
13576 echo "${ECHO_T}$cf_define_xpg5" >&6
13578 if test "$cf_define_xpg5" = yes
13580 CPPFLAGS="$CPPFLAGS -D_XPG5"
13584 echo "$as_me:13584: checking for wide-character functions" >&5
13585 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
13586 if test "${cf_cv_widechar_funcs+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 cat >conftest.$ac_ext <<_ACEOF
13591 #line 13591 "configure"
13592 #include "confdefs.h"
13594 #include <${cf_cv_ncurses_header:-curses.h}>
13599 static wchar_t src_wchar[2];
13600 static cchar_t dst_cchar;
13601 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
13607 rm -f conftest.$ac_objext conftest$ac_exeext
13608 if { (eval echo "$as_me:13608: \"$ac_link\"") >&5
13609 (eval $ac_link) 2>&5
13611 echo "$as_me:13611: \$? = $ac_status" >&5
13612 (exit $ac_status); } &&
13613 { ac_try='test -s conftest$ac_exeext'
13614 { (eval echo "$as_me:13614: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13617 echo "$as_me:13617: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619 cf_cv_widechar_funcs=yes
13621 echo "$as_me: failed program was:" >&5
13622 cat conftest.$ac_ext >&5
13623 cf_cv_widechar_funcs=no
13625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13628 echo "$as_me:13628: result: $cf_cv_widechar_funcs" >&5
13629 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
13630 if test "$cf_cv_widechar_funcs" != no ; then
13632 cat >>confdefs.h <<\EOF
13633 #define USE_WIDEC_SUPPORT 1
13637 cat >>confdefs.h <<\EOF
13638 #define USE_WIDEC_SUPPORT 0
13643 cat >>confdefs.h <<\EOF
13644 #define USE_WIDEC_SUPPORT 0
13649 echo "$as_me:13649: checking if sys/time.h works with sys/select.h" >&5
13650 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
13651 if test "${cf_cv_sys_time_select+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 cat >conftest.$ac_ext <<_ACEOF
13656 #line 13656 "configure"
13657 #include "confdefs.h"
13659 #include <sys/types.h>
13660 #ifdef HAVE_SYS_TIME_H
13661 #include <sys/time.h>
13663 #ifdef HAVE_SYS_SELECT_H
13664 #include <sys/select.h>
13675 rm -f conftest.$ac_objext
13676 if { (eval echo "$as_me:13676: \"$ac_compile\"") >&5
13677 (eval $ac_compile) 2>&5
13679 echo "$as_me:13679: \$? = $ac_status" >&5
13680 (exit $ac_status); } &&
13681 { ac_try='test -s conftest.$ac_objext'
13682 { (eval echo "$as_me:13682: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13685 echo "$as_me:13685: \$? = $ac_status" >&5
13686 (exit $ac_status); }; }; then
13687 cf_cv_sys_time_select=yes
13689 echo "$as_me: failed program was:" >&5
13690 cat conftest.$ac_ext >&5
13691 cf_cv_sys_time_select=no
13693 rm -f conftest.$ac_objext conftest.$ac_ext
13697 echo "$as_me:13697: result: $cf_cv_sys_time_select" >&5
13698 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
13699 test "$cf_cv_sys_time_select" = yes &&
13700 cat >>confdefs.h <<\EOF
13701 #define HAVE_SYS_TIME_SELECT 1
13704 echo "$as_me:13704: checking for function curses_version" >&5
13705 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
13706 if test "${cf_cv_func_curses_version+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13710 if test "$cross_compiling" = yes; then
13711 cf_cv_func_curses_version=unknown
13713 cat >conftest.$ac_ext <<_ACEOF
13714 #line 13714 "configure"
13715 #include "confdefs.h"
13717 #include <${cf_cv_ncurses_header:-curses.h}>
13721 sprintf(temp, "%s\n", curses_version());
13722 ${cf_cv_main_return:-return}(0);
13726 rm -f conftest$ac_exeext
13727 if { (eval echo "$as_me:13727: \"$ac_link\"") >&5
13728 (eval $ac_link) 2>&5
13730 echo "$as_me:13730: \$? = $ac_status" >&5
13731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13732 { (eval echo "$as_me:13732: \"$ac_try\"") >&5
13733 (eval $ac_try) 2>&5
13735 echo "$as_me:13735: \$? = $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 cf_cv_func_curses_version=yes
13740 echo "$as_me: program exited with status $ac_status" >&5
13741 echo "$as_me: failed program was:" >&5
13742 cat conftest.$ac_ext >&5
13743 cf_cv_func_curses_version=no
13746 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13750 echo "$as_me:13750: result: $cf_cv_func_curses_version" >&5
13751 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
13752 test "$cf_cv_func_curses_version" = yes &&
13753 cat >>confdefs.h <<\EOF
13754 #define HAVE_CURSES_VERSION 1
13757 echo "$as_me:13757: checking for alternate character set array" >&5
13758 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
13759 if test "${cf_cv_curses_acs_map+set}" = set; then
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 cf_cv_curses_acs_map=unknown
13764 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
13766 cat >conftest.$ac_ext <<_ACEOF
13767 #line 13767 "configure"
13768 #include "confdefs.h"
13770 #include <${cf_cv_ncurses_header:-curses.h}>
13776 $name['k'] = ACS_PLUS
13782 rm -f conftest.$ac_objext conftest$ac_exeext
13783 if { (eval echo "$as_me:13783: \"$ac_link\"") >&5
13784 (eval $ac_link) 2>&5
13786 echo "$as_me:13786: \$? = $ac_status" >&5
13787 (exit $ac_status); } &&
13788 { ac_try='test -s conftest$ac_exeext'
13789 { (eval echo "$as_me:13789: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13792 echo "$as_me:13792: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 cf_cv_curses_acs_map=$name; break
13796 echo "$as_me: failed program was:" >&5
13797 cat conftest.$ac_ext >&5
13799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13803 echo "$as_me:13803: result: $cf_cv_curses_acs_map" >&5
13804 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
13806 test "$cf_cv_curses_acs_map" != unknown &&
13807 cat >>confdefs.h <<EOF
13808 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
13811 if test "$cf_enable_widec" = yes; then
13813 echo "$as_me:13813: checking for wide alternate character set array" >&5
13814 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
13815 if test "${cf_cv_curses_wacs_map+set}" = set; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 cf_cv_curses_wacs_map=unknown
13820 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
13822 cat >conftest.$ac_ext <<_ACEOF
13823 #line 13823 "configure"
13824 #include "confdefs.h"
13826 #ifndef _XOPEN_SOURCE_EXTENDED
13827 #define _XOPEN_SOURCE_EXTENDED
13829 #include <${cf_cv_ncurses_header:-curses.h}>
13833 void *foo = &($name['k'])
13838 rm -f conftest.$ac_objext conftest$ac_exeext
13839 if { (eval echo "$as_me:13839: \"$ac_link\"") >&5
13840 (eval $ac_link) 2>&5
13842 echo "$as_me:13842: \$? = $ac_status" >&5
13843 (exit $ac_status); } &&
13844 { ac_try='test -s conftest$ac_exeext'
13845 { (eval echo "$as_me:13845: \"$ac_try\"") >&5
13846 (eval $ac_try) 2>&5
13848 echo "$as_me:13848: \$? = $ac_status" >&5
13849 (exit $ac_status); }; }; then
13850 cf_cv_curses_wacs_map=$name
13853 echo "$as_me: failed program was:" >&5
13854 cat conftest.$ac_ext >&5
13856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13859 echo "$as_me:13859: result: $cf_cv_curses_wacs_map" >&5
13860 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
13862 test "$cf_cv_curses_wacs_map" != unknown &&
13863 cat >>confdefs.h <<EOF
13864 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
13867 echo "$as_me:13867: checking for wide alternate character constants" >&5
13868 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
13869 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
13870 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 cf_cv_curses_wacs_symbols=no
13874 if test "$cf_cv_curses_wacs_map" != unknown
13876 cat >conftest.$ac_ext <<_ACEOF
13877 #line 13877 "configure"
13878 #include "confdefs.h"
13880 #ifndef _XOPEN_SOURCE_EXTENDED
13881 #define _XOPEN_SOURCE_EXTENDED
13883 #include <${cf_cv_ncurses_header:-curses.h}>
13887 cchar_t *foo = WACS_PLUS;
13888 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
13893 rm -f conftest.$ac_objext conftest$ac_exeext
13894 if { (eval echo "$as_me:13894: \"$ac_link\"") >&5
13895 (eval $ac_link) 2>&5
13897 echo "$as_me:13897: \$? = $ac_status" >&5
13898 (exit $ac_status); } &&
13899 { ac_try='test -s conftest$ac_exeext'
13900 { (eval echo "$as_me:13900: \"$ac_try\"") >&5
13901 (eval $ac_try) 2>&5
13903 echo "$as_me:13903: \$? = $ac_status" >&5
13904 (exit $ac_status); }; }; then
13905 cf_cv_curses_wacs_symbols=yes
13907 echo "$as_me: failed program was:" >&5
13908 cat conftest.$ac_ext >&5
13910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13912 cat >conftest.$ac_ext <<_ACEOF
13913 #line 13913 "configure"
13914 #include "confdefs.h"
13916 #ifndef _XOPEN_SOURCE_EXTENDED
13917 #define _XOPEN_SOURCE_EXTENDED
13919 #include <${cf_cv_ncurses_header:-curses.h}>
13923 cchar_t *foo = WACS_PLUS
13928 rm -f conftest.$ac_objext conftest$ac_exeext
13929 if { (eval echo "$as_me:13929: \"$ac_link\"") >&5
13930 (eval $ac_link) 2>&5
13932 echo "$as_me:13932: \$? = $ac_status" >&5
13933 (exit $ac_status); } &&
13934 { ac_try='test -s conftest$ac_exeext'
13935 { (eval echo "$as_me:13935: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13938 echo "$as_me:13938: \$? = $ac_status" >&5
13939 (exit $ac_status); }; }; then
13940 cf_cv_curses_wacs_symbols=yes
13942 echo "$as_me: failed program was:" >&5
13943 cat conftest.$ac_ext >&5
13945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13949 echo "$as_me:13949: result: $cf_cv_curses_wacs_symbols" >&5
13950 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
13952 test "$cf_cv_curses_wacs_symbols" != no &&
13953 cat >>confdefs.h <<\EOF
13954 #define CURSES_WACS_SYMBOLS 1
13959 echo "$as_me:13959: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
13960 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
13961 cat >conftest.$ac_ext <<_ACEOF
13962 #line 13962 "configure"
13963 #include "confdefs.h"
13965 #ifndef _XOPEN_SOURCE_EXTENDED
13966 #define _XOPEN_SOURCE_EXTENDED
13968 #include <${cf_cv_ncurses_header:-curses.h}>
13979 rm -f conftest.$ac_objext
13980 if { (eval echo "$as_me:13980: \"$ac_compile\"") >&5
13981 (eval $ac_compile) 2>&5
13983 echo "$as_me:13983: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
13985 { ac_try='test -s conftest.$ac_objext'
13986 { (eval echo "$as_me:13986: \"$ac_try\"") >&5
13987 (eval $ac_try) 2>&5
13989 echo "$as_me:13989: \$? = $ac_status" >&5
13990 (exit $ac_status); }; }; then
13993 echo "$as_me: failed program was:" >&5
13994 cat conftest.$ac_ext >&5
13997 rm -f conftest.$ac_objext conftest.$ac_ext
13998 echo "$as_me:13998: result: $cf_result" >&5
13999 echo "${ECHO_T}$cf_result" >&6
14000 if test $cf_result = yes ; then
14002 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14004 cat >>confdefs.h <<EOF
14005 #define $cf_result 1
14010 cat >>confdefs.h <<EOF
14011 #define attr_t long
14016 if test "$cf_enable_widec" = yes; then
14018 # This is needed on Tru64 5.0 to declare mbstate_t
14019 echo "$as_me:14019: checking if we must include wchar.h to declare mbstate_t" >&5
14020 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
14021 if test "${cf_cv_mbstate_t+set}" = set; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14025 cat >conftest.$ac_ext <<_ACEOF
14026 #line 14026 "configure"
14027 #include "confdefs.h"
14029 #include <stdlib.h>
14030 #include <stdarg.h>
14032 #ifdef HAVE_LIBUTF8_H
14033 #include <libutf8.h>
14043 rm -f conftest.$ac_objext
14044 if { (eval echo "$as_me:14044: \"$ac_compile\"") >&5
14045 (eval $ac_compile) 2>&5
14047 echo "$as_me:14047: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -s conftest.$ac_objext'
14050 { (eval echo "$as_me:14050: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14053 echo "$as_me:14053: \$? = $ac_status" >&5
14054 (exit $ac_status); }; }; then
14057 echo "$as_me: failed program was:" >&5
14058 cat conftest.$ac_ext >&5
14059 cat >conftest.$ac_ext <<_ACEOF
14060 #line 14060 "configure"
14061 #include "confdefs.h"
14063 #include <stdlib.h>
14064 #include <stdarg.h>
14067 #ifdef HAVE_LIBUTF8_H
14068 #include <libutf8.h>
14078 rm -f conftest.$ac_objext
14079 if { (eval echo "$as_me:14079: \"$ac_compile\"") >&5
14080 (eval $ac_compile) 2>&5
14082 echo "$as_me:14082: \$? = $ac_status" >&5
14083 (exit $ac_status); } &&
14084 { ac_try='test -s conftest.$ac_objext'
14085 { (eval echo "$as_me:14085: \"$ac_try\"") >&5
14086 (eval $ac_try) 2>&5
14088 echo "$as_me:14088: \$? = $ac_status" >&5
14089 (exit $ac_status); }; }; then
14090 cf_cv_mbstate_t=yes
14092 echo "$as_me: failed program was:" >&5
14093 cat conftest.$ac_ext >&5
14094 cf_cv_mbstate_t=unknown
14096 rm -f conftest.$ac_objext conftest.$ac_ext
14098 rm -f conftest.$ac_objext conftest.$ac_ext
14100 echo "$as_me:14100: result: $cf_cv_mbstate_t" >&5
14101 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
14103 if test "$cf_cv_mbstate_t" = yes ; then
14105 cat >>confdefs.h <<\EOF
14106 #define NEED_WCHAR_H 1
14112 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
14113 if test "$cf_cv_mbstate_t" = unknown ; then
14114 NCURSES_MBSTATE_T=1
14117 # if we find mbstate_t in either place, use substitution to provide a fallback.
14118 if test "$cf_cv_mbstate_t" != unknown ; then
14119 NCURSES_OK_MBSTATE_T=1
14122 # This is needed on Tru64 5.0 to declare wchar_t
14123 echo "$as_me:14123: checking if we must include wchar.h to declare wchar_t" >&5
14124 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
14125 if test "${cf_cv_wchar_t+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14129 cat >conftest.$ac_ext <<_ACEOF
14130 #line 14130 "configure"
14131 #include "confdefs.h"
14133 #include <stdlib.h>
14134 #include <stdarg.h>
14136 #ifdef HAVE_LIBUTF8_H
14137 #include <libutf8.h>
14147 rm -f conftest.$ac_objext
14148 if { (eval echo "$as_me:14148: \"$ac_compile\"") >&5
14149 (eval $ac_compile) 2>&5
14151 echo "$as_me:14151: \$? = $ac_status" >&5
14152 (exit $ac_status); } &&
14153 { ac_try='test -s conftest.$ac_objext'
14154 { (eval echo "$as_me:14154: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14157 echo "$as_me:14157: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
14161 echo "$as_me: failed program was:" >&5
14162 cat conftest.$ac_ext >&5
14163 cat >conftest.$ac_ext <<_ACEOF
14164 #line 14164 "configure"
14165 #include "confdefs.h"
14167 #include <stdlib.h>
14168 #include <stdarg.h>
14171 #ifdef HAVE_LIBUTF8_H
14172 #include <libutf8.h>
14182 rm -f conftest.$ac_objext
14183 if { (eval echo "$as_me:14183: \"$ac_compile\"") >&5
14184 (eval $ac_compile) 2>&5
14186 echo "$as_me:14186: \$? = $ac_status" >&5
14187 (exit $ac_status); } &&
14188 { ac_try='test -s conftest.$ac_objext'
14189 { (eval echo "$as_me:14189: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14192 echo "$as_me:14192: \$? = $ac_status" >&5
14193 (exit $ac_status); }; }; then
14196 echo "$as_me: failed program was:" >&5
14197 cat conftest.$ac_ext >&5
14198 cf_cv_wchar_t=unknown
14200 rm -f conftest.$ac_objext conftest.$ac_ext
14202 rm -f conftest.$ac_objext conftest.$ac_ext
14204 echo "$as_me:14204: result: $cf_cv_wchar_t" >&5
14205 echo "${ECHO_T}$cf_cv_wchar_t" >&6
14207 if test "$cf_cv_wchar_t" = yes ; then
14209 cat >>confdefs.h <<\EOF
14210 #define NEED_WCHAR_H 1
14216 # if we do not find wchar_t in either place, use substitution to provide a fallback.
14217 if test "$cf_cv_wchar_t" = unknown ; then
14221 # if we find wchar_t in either place, use substitution to provide a fallback.
14222 if test "$cf_cv_wchar_t" != unknown ; then
14223 NCURSES_OK_WCHAR_T=1
14226 # This is needed on Tru64 5.0 to declare wint_t
14227 echo "$as_me:14227: checking if we must include wchar.h to declare wint_t" >&5
14228 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
14229 if test "${cf_cv_wint_t+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14233 cat >conftest.$ac_ext <<_ACEOF
14234 #line 14234 "configure"
14235 #include "confdefs.h"
14237 #include <stdlib.h>
14238 #include <stdarg.h>
14240 #ifdef HAVE_LIBUTF8_H
14241 #include <libutf8.h>
14251 rm -f conftest.$ac_objext
14252 if { (eval echo "$as_me:14252: \"$ac_compile\"") >&5
14253 (eval $ac_compile) 2>&5
14255 echo "$as_me:14255: \$? = $ac_status" >&5
14256 (exit $ac_status); } &&
14257 { ac_try='test -s conftest.$ac_objext'
14258 { (eval echo "$as_me:14258: \"$ac_try\"") >&5
14259 (eval $ac_try) 2>&5
14261 echo "$as_me:14261: \$? = $ac_status" >&5
14262 (exit $ac_status); }; }; then
14265 echo "$as_me: failed program was:" >&5
14266 cat conftest.$ac_ext >&5
14267 cat >conftest.$ac_ext <<_ACEOF
14268 #line 14268 "configure"
14269 #include "confdefs.h"
14271 #include <stdlib.h>
14272 #include <stdarg.h>
14275 #ifdef HAVE_LIBUTF8_H
14276 #include <libutf8.h>
14286 rm -f conftest.$ac_objext
14287 if { (eval echo "$as_me:14287: \"$ac_compile\"") >&5
14288 (eval $ac_compile) 2>&5
14290 echo "$as_me:14290: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
14292 { ac_try='test -s conftest.$ac_objext'
14293 { (eval echo "$as_me:14293: \"$ac_try\"") >&5
14294 (eval $ac_try) 2>&5
14296 echo "$as_me:14296: \$? = $ac_status" >&5
14297 (exit $ac_status); }; }; then
14300 echo "$as_me: failed program was:" >&5
14301 cat conftest.$ac_ext >&5
14302 cf_cv_wint_t=unknown
14304 rm -f conftest.$ac_objext conftest.$ac_ext
14306 rm -f conftest.$ac_objext conftest.$ac_ext
14308 echo "$as_me:14308: result: $cf_cv_wint_t" >&5
14309 echo "${ECHO_T}$cf_cv_wint_t" >&6
14311 if test "$cf_cv_wint_t" = yes ; then
14313 cat >>confdefs.h <<\EOF
14314 #define NEED_WCHAR_H 1
14320 # if we do not find wint_t in either place, use substitution to provide a fallback.
14321 if test "$cf_cv_wint_t" = unknown ; then
14325 # if we find wint_t in either place, use substitution to provide a fallback.
14326 if test "$cf_cv_wint_t" != unknown ; then
14327 NCURSES_OK_WINT_T=1
14330 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
14332 echo "$as_me:14332: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
14333 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14334 cat >conftest.$ac_ext <<_ACEOF
14335 #line 14335 "configure"
14336 #include "confdefs.h"
14338 #ifndef _XOPEN_SOURCE_EXTENDED
14339 #define _XOPEN_SOURCE_EXTENDED
14341 #include <${cf_cv_ncurses_header:-curses.h}>
14352 rm -f conftest.$ac_objext
14353 if { (eval echo "$as_me:14353: \"$ac_compile\"") >&5
14354 (eval $ac_compile) 2>&5
14356 echo "$as_me:14356: \$? = $ac_status" >&5
14357 (exit $ac_status); } &&
14358 { ac_try='test -s conftest.$ac_objext'
14359 { (eval echo "$as_me:14359: \"$ac_try\"") >&5
14360 (eval $ac_try) 2>&5
14362 echo "$as_me:14362: \$? = $ac_status" >&5
14363 (exit $ac_status); }; }; then
14366 echo "$as_me: failed program was:" >&5
14367 cat conftest.$ac_ext >&5
14370 rm -f conftest.$ac_objext conftest.$ac_ext
14371 echo "$as_me:14371: result: $cf_result" >&5
14372 echo "${ECHO_T}$cf_result" >&6
14373 if test $cf_result = yes ; then
14375 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14377 cat >>confdefs.h <<EOF
14378 #define $cf_result 1
14383 cat >>confdefs.h <<EOF
14384 #define mbstate_t long
14391 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
14393 echo "$as_me:14393: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
14394 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14395 cat >conftest.$ac_ext <<_ACEOF
14396 #line 14396 "configure"
14397 #include "confdefs.h"
14399 #ifndef _XOPEN_SOURCE_EXTENDED
14400 #define _XOPEN_SOURCE_EXTENDED
14402 #include <${cf_cv_ncurses_header:-curses.h}>
14413 rm -f conftest.$ac_objext
14414 if { (eval echo "$as_me:14414: \"$ac_compile\"") >&5
14415 (eval $ac_compile) 2>&5
14417 echo "$as_me:14417: \$? = $ac_status" >&5
14418 (exit $ac_status); } &&
14419 { ac_try='test -s conftest.$ac_objext'
14420 { (eval echo "$as_me:14420: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14423 echo "$as_me:14423: \$? = $ac_status" >&5
14424 (exit $ac_status); }; }; then
14427 echo "$as_me: failed program was:" >&5
14428 cat conftest.$ac_ext >&5
14431 rm -f conftest.$ac_objext conftest.$ac_ext
14432 echo "$as_me:14432: result: $cf_result" >&5
14433 echo "${ECHO_T}$cf_result" >&6
14434 if test $cf_result = yes ; then
14436 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14438 cat >>confdefs.h <<EOF
14439 #define $cf_result 1
14444 cat >>confdefs.h <<EOF
14445 #define wchar_t long
14452 if test "$NCURSES_OK_WINT_T" = 0 ; then
14454 echo "$as_me:14454: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
14455 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14456 cat >conftest.$ac_ext <<_ACEOF
14457 #line 14457 "configure"
14458 #include "confdefs.h"
14460 #ifndef _XOPEN_SOURCE_EXTENDED
14461 #define _XOPEN_SOURCE_EXTENDED
14463 #include <${cf_cv_ncurses_header:-curses.h}>
14474 rm -f conftest.$ac_objext
14475 if { (eval echo "$as_me:14475: \"$ac_compile\"") >&5
14476 (eval $ac_compile) 2>&5
14478 echo "$as_me:14478: \$? = $ac_status" >&5
14479 (exit $ac_status); } &&
14480 { ac_try='test -s conftest.$ac_objext'
14481 { (eval echo "$as_me:14481: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14484 echo "$as_me:14484: \$? = $ac_status" >&5
14485 (exit $ac_status); }; }; then
14488 echo "$as_me: failed program was:" >&5
14489 cat conftest.$ac_ext >&5
14492 rm -f conftest.$ac_objext conftest.$ac_ext
14493 echo "$as_me:14493: result: $cf_result" >&5
14494 echo "${ECHO_T}$cf_result" >&6
14495 if test $cf_result = yes ; then
14497 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14499 cat >>confdefs.h <<EOF
14500 #define $cf_result 1
14505 cat >>confdefs.h <<EOF
14506 #define wint_t long
14514 echo "$as_me:14514: checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
14515 echo $ECHO_N "checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14517 cat >conftest.$ac_ext <<_ACEOF
14518 #line 14518 "configure"
14519 #include "confdefs.h"
14521 #ifdef HAVE_XCURSES
14522 #include <xcurses.h>
14523 char * XCursesProgramName = "test";
14525 #include <${cf_cv_ncurses_header:-curses.h}>
14526 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14527 #include <ncursesw/term.h>
14528 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14529 #include <ncurses/term.h>
14530 #elif defined(HAVE_TERM_H)
14539 void *foo = &(boolnames)
14545 rm -f conftest.$ac_objext
14546 if { (eval echo "$as_me:14546: \"$ac_compile\"") >&5
14547 (eval $ac_compile) 2>&5
14549 echo "$as_me:14549: \$? = $ac_status" >&5
14550 (exit $ac_status); } &&
14551 { ac_try='test -s conftest.$ac_objext'
14552 { (eval echo "$as_me:14552: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14555 echo "$as_me:14555: \$? = $ac_status" >&5
14556 (exit $ac_status); }; }; then
14559 echo "$as_me: failed program was:" >&5
14560 cat conftest.$ac_ext >&5
14563 rm -f conftest.$ac_objext conftest.$ac_ext
14564 echo "$as_me:14564: result: $cf_result" >&5
14565 echo "${ECHO_T}$cf_result" >&6
14567 if test $cf_result = yes ; then
14569 cf_result=`echo "have_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14571 cat >>confdefs.h <<EOF
14572 #define $cf_result 1
14576 echo "$as_me:14576: checking for data boolnames in library" >&5
14577 echo $ECHO_N "checking for data boolnames in library... $ECHO_C" >&6
14578 # BSD linkers insist on making weak linkage, but resolve at runtime.
14579 if test "$cross_compiling" = yes; then
14582 cat >conftest.$ac_ext <<_ACEOF
14583 #line 14583 "configure"
14584 #include "confdefs.h"
14586 #ifdef HAVE_XCURSES
14587 #include <xcurses.h>
14588 char * XCursesProgramName = "test";
14590 #include <${cf_cv_ncurses_header:-curses.h}>
14591 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14592 #include <ncursesw/term.h>
14593 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14594 #include <ncurses/term.h>
14595 #elif defined(HAVE_TERM_H)
14600 extern char boolnames;
14606 void *foo = &(boolnames);
14607 ${cf_cv_main_return:-return}(foo == 0);
14614 rm -f conftest.$ac_objext conftest$ac_exeext
14615 if { (eval echo "$as_me:14615: \"$ac_link\"") >&5
14616 (eval $ac_link) 2>&5
14618 echo "$as_me:14618: \$? = $ac_status" >&5
14619 (exit $ac_status); } &&
14620 { ac_try='test -s conftest$ac_exeext'
14621 { (eval echo "$as_me:14621: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14624 echo "$as_me:14624: \$? = $ac_status" >&5
14625 (exit $ac_status); }; }; then
14628 echo "$as_me: failed program was:" >&5
14629 cat conftest.$ac_ext >&5
14632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14635 cat >conftest.$ac_ext <<_ACEOF
14636 #line 14636 "configure"
14637 #include "confdefs.h"
14639 #ifdef HAVE_XCURSES
14640 #include <xcurses.h>
14641 char * XCursesProgramName = "test";
14643 #include <${cf_cv_ncurses_header:-curses.h}>
14644 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14645 #include <ncursesw/term.h>
14646 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14647 #include <ncurses/term.h>
14648 #elif defined(HAVE_TERM_H)
14653 extern char boolnames;
14656 void *foo = &(boolnames);
14657 ${cf_cv_main_return:-return}(foo == 0);
14660 rm -f conftest$ac_exeext
14661 if { (eval echo "$as_me:14661: \"$ac_link\"") >&5
14662 (eval $ac_link) 2>&5
14664 echo "$as_me:14664: \$? = $ac_status" >&5
14665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14666 { (eval echo "$as_me:14666: \"$ac_try\"") >&5
14667 (eval $ac_try) 2>&5
14669 echo "$as_me:14669: \$? = $ac_status" >&5
14670 (exit $ac_status); }; }; then
14673 echo "$as_me: program exited with status $ac_status" >&5
14674 echo "$as_me: failed program was:" >&5
14675 cat conftest.$ac_ext >&5
14678 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14680 echo "$as_me:14680: result: $cf_result" >&5
14681 echo "${ECHO_T}$cf_result" >&6
14682 if test $cf_result = yes ; then
14684 cf_result=`echo "decl_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14686 cat >>confdefs.h <<EOF
14687 #define $cf_result 1
14693 echo "$as_me:14693: checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
14694 echo $ECHO_N "checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14696 cat >conftest.$ac_ext <<_ACEOF
14697 #line 14697 "configure"
14698 #include "confdefs.h"
14700 #ifdef HAVE_XCURSES
14701 #include <xcurses.h>
14702 char * XCursesProgramName = "test";
14704 #include <${cf_cv_ncurses_header:-curses.h}>
14705 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14706 #include <ncursesw/term.h>
14707 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14708 #include <ncurses/term.h>
14709 #elif defined(HAVE_TERM_H)
14718 void *foo = &(boolfnames)
14724 rm -f conftest.$ac_objext
14725 if { (eval echo "$as_me:14725: \"$ac_compile\"") >&5
14726 (eval $ac_compile) 2>&5
14728 echo "$as_me:14728: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
14730 { ac_try='test -s conftest.$ac_objext'
14731 { (eval echo "$as_me:14731: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14734 echo "$as_me:14734: \$? = $ac_status" >&5
14735 (exit $ac_status); }; }; then
14738 echo "$as_me: failed program was:" >&5
14739 cat conftest.$ac_ext >&5
14742 rm -f conftest.$ac_objext conftest.$ac_ext
14743 echo "$as_me:14743: result: $cf_result" >&5
14744 echo "${ECHO_T}$cf_result" >&6
14746 if test $cf_result = yes ; then
14748 cf_result=`echo "have_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14750 cat >>confdefs.h <<EOF
14751 #define $cf_result 1
14755 echo "$as_me:14755: checking for data boolfnames in library" >&5
14756 echo $ECHO_N "checking for data boolfnames in library... $ECHO_C" >&6
14757 # BSD linkers insist on making weak linkage, but resolve at runtime.
14758 if test "$cross_compiling" = yes; then
14761 cat >conftest.$ac_ext <<_ACEOF
14762 #line 14762 "configure"
14763 #include "confdefs.h"
14765 #ifdef HAVE_XCURSES
14766 #include <xcurses.h>
14767 char * XCursesProgramName = "test";
14769 #include <${cf_cv_ncurses_header:-curses.h}>
14770 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14771 #include <ncursesw/term.h>
14772 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14773 #include <ncurses/term.h>
14774 #elif defined(HAVE_TERM_H)
14779 extern char boolfnames;
14785 void *foo = &(boolfnames);
14786 ${cf_cv_main_return:-return}(foo == 0);
14793 rm -f conftest.$ac_objext conftest$ac_exeext
14794 if { (eval echo "$as_me:14794: \"$ac_link\"") >&5
14795 (eval $ac_link) 2>&5
14797 echo "$as_me:14797: \$? = $ac_status" >&5
14798 (exit $ac_status); } &&
14799 { ac_try='test -s conftest$ac_exeext'
14800 { (eval echo "$as_me:14800: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14803 echo "$as_me:14803: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14807 echo "$as_me: failed program was:" >&5
14808 cat conftest.$ac_ext >&5
14811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14814 cat >conftest.$ac_ext <<_ACEOF
14815 #line 14815 "configure"
14816 #include "confdefs.h"
14818 #ifdef HAVE_XCURSES
14819 #include <xcurses.h>
14820 char * XCursesProgramName = "test";
14822 #include <${cf_cv_ncurses_header:-curses.h}>
14823 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14824 #include <ncursesw/term.h>
14825 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14826 #include <ncurses/term.h>
14827 #elif defined(HAVE_TERM_H)
14832 extern char boolfnames;
14835 void *foo = &(boolfnames);
14836 ${cf_cv_main_return:-return}(foo == 0);
14839 rm -f conftest$ac_exeext
14840 if { (eval echo "$as_me:14840: \"$ac_link\"") >&5
14841 (eval $ac_link) 2>&5
14843 echo "$as_me:14843: \$? = $ac_status" >&5
14844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14845 { (eval echo "$as_me:14845: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14848 echo "$as_me:14848: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }; then
14852 echo "$as_me: program exited with status $ac_status" >&5
14853 echo "$as_me: failed program was:" >&5
14854 cat conftest.$ac_ext >&5
14857 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14859 echo "$as_me:14859: result: $cf_result" >&5
14860 echo "${ECHO_T}$cf_result" >&6
14861 if test $cf_result = yes ; then
14863 cf_result=`echo "decl_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14865 cat >>confdefs.h <<EOF
14866 #define $cf_result 1
14872 if ( test "$GCC" = yes || test "$GXX" = yes )
14874 echo "$as_me:14874: checking if you want to turn on gcc warnings" >&5
14875 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
14877 # Check whether --enable-warnings or --disable-warnings was given.
14878 if test "${enable_warnings+set}" = set; then
14879 enableval="$enable_warnings"
14880 test "$enableval" != yes && enableval=no
14881 if test "$enableval" != "no" ; then
14891 echo "$as_me:14891: result: $with_warnings" >&5
14892 echo "${ECHO_T}$with_warnings" >&6
14893 if test "$with_warnings" = "yes"
14896 if test "$GCC" = yes
14898 cat > conftest.i <<EOF
14900 #define GCC_PRINTF 0
14903 #define GCC_SCANF 0
14905 #ifndef GCC_NORETURN
14906 #define GCC_NORETURN /* nothing */
14909 #define GCC_UNUSED /* nothing */
14912 if test "$GCC" = yes
14914 { echo "$as_me:14914: checking for $CC __attribute__ directives..." >&5
14915 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
14916 cat > conftest.$ac_ext <<EOF
14917 #line 14917 "${as_me:-configure}"
14918 #include "confdefs.h"
14919 #include "conftest.h"
14920 #include "conftest.i"
14922 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
14924 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
14927 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
14929 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
14931 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
14932 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
14933 extern void foo(void) GCC_NORETURN;
14934 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
14936 cf_printf_attribute=no
14937 cf_scanf_attribute=no
14938 for cf_attribute in scanf printf unused noreturn
14941 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14943 cf_directive="__attribute__(($cf_attribute))"
14944 echo "checking for $CC $cf_directive" 1>&5
14946 case $cf_attribute in #(vi
14948 cf_printf_attribute=yes
14949 cat >conftest.h <<EOF
14950 #define GCC_$cf_ATTRIBUTE 1
14954 cf_scanf_attribute=yes
14955 cat >conftest.h <<EOF
14956 #define GCC_$cf_ATTRIBUTE 1
14960 cat >conftest.h <<EOF
14961 #define GCC_$cf_ATTRIBUTE $cf_directive
14966 if { (eval echo "$as_me:14966: \"$ac_compile\"") >&5
14967 (eval $ac_compile) 2>&5
14969 echo "$as_me:14969: \$? = $ac_status" >&5
14970 (exit $ac_status); }; then
14971 test -n "$verbose" && echo "$as_me:14971: result: ... $cf_attribute" >&5
14972 echo "${ECHO_T}... $cf_attribute" >&6
14973 cat conftest.h >>confdefs.h
14974 case $cf_attribute in #(vi
14977 cat >>confdefs.h <<EOF
14978 #define GCC_NORETURN $cf_directive
14983 cf_value='/* nothing */'
14984 if test "$cf_printf_attribute" != no ; then
14985 cf_value='__attribute__((format(printf,fmt,var)))'
14987 cat >>confdefs.h <<\EOF
14988 #define GCC_PRINTF 1
14993 cat >>confdefs.h <<EOF
14994 #define GCC_PRINTFLIKE(fmt,var) $cf_value
14999 cf_value='/* nothing */'
15000 if test "$cf_scanf_attribute" != no ; then
15001 cf_value='__attribute__((format(scanf,fmt,var)))'
15003 cat >>confdefs.h <<\EOF
15004 #define GCC_SCANF 1
15009 cat >>confdefs.h <<EOF
15010 #define GCC_SCANFLIKE(fmt,var) $cf_value
15016 cat >>confdefs.h <<EOF
15017 #define GCC_UNUSED $cf_directive
15025 fgrep define conftest.i >>confdefs.h
15032 if test "$GCC" = yes ; then
15035 echo "$as_me:15035: checking if this is really Intel C compiler" >&5
15036 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
15037 cf_save_CFLAGS="$CFLAGS"
15038 CFLAGS="$CFLAGS -no-gcc"
15039 cat >conftest.$ac_ext <<_ACEOF
15040 #line 15040 "configure"
15041 #include "confdefs.h"
15047 #ifdef __INTEL_COMPILER
15056 rm -f conftest.$ac_objext
15057 if { (eval echo "$as_me:15057: \"$ac_compile\"") >&5
15058 (eval $ac_compile) 2>&5
15060 echo "$as_me:15060: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
15062 { ac_try='test -s conftest.$ac_objext'
15063 { (eval echo "$as_me:15063: \"$ac_try\"") >&5
15064 (eval $ac_try) 2>&5
15066 echo "$as_me:15066: \$? = $ac_status" >&5
15067 (exit $ac_status); }; }; then
15069 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
15072 echo "$as_me: failed program was:" >&5
15073 cat conftest.$ac_ext >&5
15075 rm -f conftest.$ac_objext conftest.$ac_ext
15076 CFLAGS="$cf_save_CFLAGS"
15077 echo "$as_me:15077: result: $INTEL_COMPILER" >&5
15078 echo "${ECHO_T}$INTEL_COMPILER" >&6
15085 if test "$GCC" = yes ; then
15086 echo "$as_me:15086: checking if this is really Clang C compiler" >&5
15087 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
15088 cf_save_CFLAGS="$CFLAGS"
15089 CFLAGS="$CFLAGS -Qunused-arguments"
15090 cat >conftest.$ac_ext <<_ACEOF
15091 #line 15091 "configure"
15092 #include "confdefs.h"
15107 rm -f conftest.$ac_objext
15108 if { (eval echo "$as_me:15108: \"$ac_compile\"") >&5
15109 (eval $ac_compile) 2>&5
15111 echo "$as_me:15111: \$? = $ac_status" >&5
15112 (exit $ac_status); } &&
15113 { ac_try='test -s conftest.$ac_objext'
15114 { (eval echo "$as_me:15114: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15117 echo "$as_me:15117: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15120 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
15123 echo "$as_me: failed program was:" >&5
15124 cat conftest.$ac_ext >&5
15126 rm -f conftest.$ac_objext conftest.$ac_ext
15127 CFLAGS="$cf_save_CFLAGS"
15128 echo "$as_me:15128: result: $CLANG_COMPILER" >&5
15129 echo "${ECHO_T}$CLANG_COMPILER" >&6
15132 cat > conftest.$ac_ext <<EOF
15133 #line 15133 "${as_me:-configure}"
15134 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
15137 if test "$INTEL_COMPILER" = yes
15139 # The "-wdXXX" options suppress warnings:
15140 # remark #1419: external declaration in primary source file
15141 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
15142 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
15143 # remark #193: zero used for undefined preprocessing identifier
15144 # remark #593: variable "curs_sb_left_arrow" was set but never used
15145 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
15146 # remark #869: parameter "tw" was never referenced
15147 # remark #981: operands are evaluated in unspecified order
15148 # warning #279: controlling expression is constant
15150 { echo "$as_me:15150: checking for $CC warning options..." >&5
15151 echo "$as_me: checking for $CC warning options..." >&6;}
15152 cf_save_CFLAGS="$CFLAGS"
15153 EXTRA_CFLAGS="-Wall"
15165 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
15166 if { (eval echo "$as_me:15166: \"$ac_compile\"") >&5
15167 (eval $ac_compile) 2>&5
15169 echo "$as_me:15169: \$? = $ac_status" >&5
15170 (exit $ac_status); }; then
15171 test -n "$verbose" && echo "$as_me:15171: result: ... -$cf_opt" >&5
15172 echo "${ECHO_T}... -$cf_opt" >&6
15173 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
15176 CFLAGS="$cf_save_CFLAGS"
15178 elif test "$GCC" = yes
15180 { echo "$as_me:15180: checking for $CC warning options..." >&5
15181 echo "$as_me: checking for $CC warning options..." >&6;}
15182 cf_save_CFLAGS="$CFLAGS"
15185 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
15186 for cf_opt in W Wall \
15187 Wbad-function-cast \
15191 Wmissing-declarations \
15192 Wmissing-prototypes \
15196 Wstrict-prototypes \
15197 Wundef $cf_warn_CONST
15199 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
15200 if { (eval echo "$as_me:15200: \"$ac_compile\"") >&5
15201 (eval $ac_compile) 2>&5
15203 echo "$as_me:15203: \$? = $ac_status" >&5
15204 (exit $ac_status); }; then
15205 test -n "$verbose" && echo "$as_me:15205: result: ... -$cf_opt" >&5
15206 echo "${ECHO_T}... -$cf_opt" >&6
15207 case $cf_opt in #(vi
15209 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
15212 case $GCC_VERSION in
15214 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
15216 echo "${as_me:-configure}:15216: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
15221 Wpointer-arith) #(vi
15222 case $GCC_VERSION in
15224 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
15226 echo "${as_me:-configure}:15226: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
15232 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
15235 CFLAGS="$cf_save_CFLAGS"
15242 echo "$as_me:15242: checking if you want to use dmalloc for testing" >&5
15243 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
15245 # Check whether --with-dmalloc or --without-dmalloc was given.
15246 if test "${with_dmalloc+set}" = set; then
15247 withval="$with_dmalloc"
15249 cat >>confdefs.h <<EOF
15250 #define USE_DMALLOC 1
15253 : ${with_cflags:=-g}
15254 : ${with_no_leaks:=yes}
15259 echo "$as_me:15259: result: ${with_dmalloc:-no}" >&5
15260 echo "${ECHO_T}${with_dmalloc:-no}" >&6
15262 case .$with_cflags in #(vi
15264 case .$CFLAGS in #(vi
15272 cf_new_extra_cppflags=
15274 for cf_add_cflags in -g
15276 case $cf_fix_cppflags in
15278 case $cf_add_cflags in #(vi
15279 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
15280 case $cf_add_cflags in
15282 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15284 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15285 && test -z "${cf_tst_cflags}" \
15286 && cf_fix_cppflags=yes
15288 if test $cf_fix_cppflags = yes ; then
15289 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15291 elif test "${cf_tst_cflags}" = "\"'" ; then
15292 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15297 case "$CPPFLAGS" in
15298 *$cf_add_cflags) #(vi
15301 case $cf_add_cflags in #(vi
15303 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15305 CPPFLAGS=`echo "$CPPFLAGS" | \
15306 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15307 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15311 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15316 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15321 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15323 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15325 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15326 && test -z "${cf_tst_cflags}" \
15327 && cf_fix_cppflags=no
15332 if test -n "$cf_new_cflags" ; then
15334 CFLAGS="$CFLAGS $cf_new_cflags"
15337 if test -n "$cf_new_cppflags" ; then
15339 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15342 if test -n "$cf_new_extra_cppflags" ; then
15344 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15352 if test "$with_dmalloc" = yes ; then
15353 echo "$as_me:15353: checking for dmalloc.h" >&5
15354 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
15355 if test "${ac_cv_header_dmalloc_h+set}" = set; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 cat >conftest.$ac_ext <<_ACEOF
15359 #line 15359 "configure"
15360 #include "confdefs.h"
15361 #include <dmalloc.h>
15363 if { (eval echo "$as_me:15363: \"$ac_cpp conftest.$ac_ext\"") >&5
15364 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15366 egrep -v '^ *\+' conftest.er1 >conftest.err
15368 cat conftest.err >&5
15369 echo "$as_me:15369: \$? = $ac_status" >&5
15370 (exit $ac_status); } >/dev/null; then
15371 if test -s conftest.err; then
15372 ac_cpp_err=$ac_c_preproc_warn_flag
15379 if test -z "$ac_cpp_err"; then
15380 ac_cv_header_dmalloc_h=yes
15382 echo "$as_me: failed program was:" >&5
15383 cat conftest.$ac_ext >&5
15384 ac_cv_header_dmalloc_h=no
15386 rm -f conftest.err conftest.$ac_ext
15388 echo "$as_me:15388: result: $ac_cv_header_dmalloc_h" >&5
15389 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
15390 if test $ac_cv_header_dmalloc_h = yes; then
15392 echo "$as_me:15392: checking for dmalloc_debug in -ldmalloc" >&5
15393 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
15394 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
15395 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 ac_check_lib_save_LIBS=$LIBS
15398 LIBS="-ldmalloc $LIBS"
15399 cat >conftest.$ac_ext <<_ACEOF
15400 #line 15400 "configure"
15401 #include "confdefs.h"
15403 /* Override any gcc2 internal prototype to avoid an error. */
15407 /* We use char because int might match the return type of a gcc2
15408 builtin and then its argument prototype would still apply. */
15409 char dmalloc_debug ();
15418 rm -f conftest.$ac_objext conftest$ac_exeext
15419 if { (eval echo "$as_me:15419: \"$ac_link\"") >&5
15420 (eval $ac_link) 2>&5
15422 echo "$as_me:15422: \$? = $ac_status" >&5
15423 (exit $ac_status); } &&
15424 { ac_try='test -s conftest$ac_exeext'
15425 { (eval echo "$as_me:15425: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15428 echo "$as_me:15428: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 ac_cv_lib_dmalloc_dmalloc_debug=yes
15432 echo "$as_me: failed program was:" >&5
15433 cat conftest.$ac_ext >&5
15434 ac_cv_lib_dmalloc_dmalloc_debug=no
15436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15437 LIBS=$ac_check_lib_save_LIBS
15439 echo "$as_me:15439: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
15440 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
15441 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
15442 cat >>confdefs.h <<EOF
15443 #define HAVE_LIBDMALLOC 1
15446 LIBS="-ldmalloc $LIBS"
15454 echo "$as_me:15454: checking if you want to use dbmalloc for testing" >&5
15455 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
15457 # Check whether --with-dbmalloc or --without-dbmalloc was given.
15458 if test "${with_dbmalloc+set}" = set; then
15459 withval="$with_dbmalloc"
15461 cat >>confdefs.h <<EOF
15462 #define USE_DBMALLOC 1
15465 : ${with_cflags:=-g}
15466 : ${with_no_leaks:=yes}
15471 echo "$as_me:15471: result: ${with_dbmalloc:-no}" >&5
15472 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
15474 case .$with_cflags in #(vi
15476 case .$CFLAGS in #(vi
15484 cf_new_extra_cppflags=
15486 for cf_add_cflags in -g
15488 case $cf_fix_cppflags in
15490 case $cf_add_cflags in #(vi
15491 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
15492 case $cf_add_cflags in
15494 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15496 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15497 && test -z "${cf_tst_cflags}" \
15498 && cf_fix_cppflags=yes
15500 if test $cf_fix_cppflags = yes ; then
15501 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15503 elif test "${cf_tst_cflags}" = "\"'" ; then
15504 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15509 case "$CPPFLAGS" in
15510 *$cf_add_cflags) #(vi
15513 case $cf_add_cflags in #(vi
15515 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15517 CPPFLAGS=`echo "$CPPFLAGS" | \
15518 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15519 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15523 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15528 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15533 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15535 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15537 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15538 && test -z "${cf_tst_cflags}" \
15539 && cf_fix_cppflags=no
15544 if test -n "$cf_new_cflags" ; then
15546 CFLAGS="$CFLAGS $cf_new_cflags"
15549 if test -n "$cf_new_cppflags" ; then
15551 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15554 if test -n "$cf_new_extra_cppflags" ; then
15556 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15564 if test "$with_dbmalloc" = yes ; then
15565 echo "$as_me:15565: checking for dbmalloc.h" >&5
15566 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
15567 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15570 cat >conftest.$ac_ext <<_ACEOF
15571 #line 15571 "configure"
15572 #include "confdefs.h"
15573 #include <dbmalloc.h>
15575 if { (eval echo "$as_me:15575: \"$ac_cpp conftest.$ac_ext\"") >&5
15576 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15578 egrep -v '^ *\+' conftest.er1 >conftest.err
15580 cat conftest.err >&5
15581 echo "$as_me:15581: \$? = $ac_status" >&5
15582 (exit $ac_status); } >/dev/null; then
15583 if test -s conftest.err; then
15584 ac_cpp_err=$ac_c_preproc_warn_flag
15591 if test -z "$ac_cpp_err"; then
15592 ac_cv_header_dbmalloc_h=yes
15594 echo "$as_me: failed program was:" >&5
15595 cat conftest.$ac_ext >&5
15596 ac_cv_header_dbmalloc_h=no
15598 rm -f conftest.err conftest.$ac_ext
15600 echo "$as_me:15600: result: $ac_cv_header_dbmalloc_h" >&5
15601 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
15602 if test $ac_cv_header_dbmalloc_h = yes; then
15604 echo "$as_me:15604: checking for debug_malloc in -ldbmalloc" >&5
15605 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
15606 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
15607 echo $ECHO_N "(cached) $ECHO_C" >&6
15609 ac_check_lib_save_LIBS=$LIBS
15610 LIBS="-ldbmalloc $LIBS"
15611 cat >conftest.$ac_ext <<_ACEOF
15612 #line 15612 "configure"
15613 #include "confdefs.h"
15615 /* Override any gcc2 internal prototype to avoid an error. */
15619 /* We use char because int might match the return type of a gcc2
15620 builtin and then its argument prototype would still apply. */
15621 char debug_malloc ();
15630 rm -f conftest.$ac_objext conftest$ac_exeext
15631 if { (eval echo "$as_me:15631: \"$ac_link\"") >&5
15632 (eval $ac_link) 2>&5
15634 echo "$as_me:15634: \$? = $ac_status" >&5
15635 (exit $ac_status); } &&
15636 { ac_try='test -s conftest$ac_exeext'
15637 { (eval echo "$as_me:15637: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15640 echo "$as_me:15640: \$? = $ac_status" >&5
15641 (exit $ac_status); }; }; then
15642 ac_cv_lib_dbmalloc_debug_malloc=yes
15644 echo "$as_me: failed program was:" >&5
15645 cat conftest.$ac_ext >&5
15646 ac_cv_lib_dbmalloc_debug_malloc=no
15648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15649 LIBS=$ac_check_lib_save_LIBS
15651 echo "$as_me:15651: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
15652 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
15653 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
15654 cat >>confdefs.h <<EOF
15655 #define HAVE_LIBDBMALLOC 1
15658 LIBS="-ldbmalloc $LIBS"
15666 echo "$as_me:15666: checking if you want to use valgrind for testing" >&5
15667 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
15669 # Check whether --with-valgrind or --without-valgrind was given.
15670 if test "${with_valgrind+set}" = set; then
15671 withval="$with_valgrind"
15673 cat >>confdefs.h <<EOF
15674 #define USE_VALGRIND 1
15677 : ${with_cflags:=-g}
15678 : ${with_no_leaks:=yes}
15683 echo "$as_me:15683: result: ${with_valgrind:-no}" >&5
15684 echo "${ECHO_T}${with_valgrind:-no}" >&6
15686 case .$with_cflags in #(vi
15688 case .$CFLAGS in #(vi
15696 cf_new_extra_cppflags=
15698 for cf_add_cflags in -g
15700 case $cf_fix_cppflags in
15702 case $cf_add_cflags in #(vi
15703 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
15704 case $cf_add_cflags in
15706 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15708 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15709 && test -z "${cf_tst_cflags}" \
15710 && cf_fix_cppflags=yes
15712 if test $cf_fix_cppflags = yes ; then
15713 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15715 elif test "${cf_tst_cflags}" = "\"'" ; then
15716 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15721 case "$CPPFLAGS" in
15722 *$cf_add_cflags) #(vi
15725 case $cf_add_cflags in #(vi
15727 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15729 CPPFLAGS=`echo "$CPPFLAGS" | \
15730 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15731 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15735 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
15740 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
15745 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
15747 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15749 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
15750 && test -z "${cf_tst_cflags}" \
15751 && cf_fix_cppflags=no
15756 if test -n "$cf_new_cflags" ; then
15758 CFLAGS="$CFLAGS $cf_new_cflags"
15761 if test -n "$cf_new_cppflags" ; then
15763 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
15766 if test -n "$cf_new_extra_cppflags" ; then
15768 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
15776 echo "$as_me:15776: checking if you want to perform memory-leak testing" >&5
15777 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
15779 # Check whether --enable-leaks or --disable-leaks was given.
15780 if test "${enable_leaks+set}" = set; then
15781 enableval="$enable_leaks"
15782 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
15784 : ${with_no_leaks:=no}
15786 echo "$as_me:15786: result: $with_no_leaks" >&5
15787 echo "${ECHO_T}$with_no_leaks" >&6
15789 if test "$with_no_leaks" = yes ; then
15791 cat >>confdefs.h <<\EOF
15795 cat >>confdefs.h <<\EOF
15796 #define YY_NO_LEAKS 1
15802 echo "$as_me:15802: checking for an rpath option" >&5
15803 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
15804 case $cf_cv_system_name in #(vi
15806 if test "$GCC" = yes; then
15807 LD_RPATH_OPT="-Wl,-rpath,"
15809 LD_RPATH_OPT="-rpath "
15812 linux*|gnu*|k*bsd*-gnu) #(vi
15813 LD_RPATH_OPT="-Wl,-rpath,"
15815 openbsd[2-9].*|mirbsd*) #(vi
15816 LD_RPATH_OPT="-Wl,-rpath,"
15818 dragonfly*|freebsd*) #(vi
15819 LD_RPATH_OPT="-rpath "
15822 LD_RPATH_OPT="-Wl,-rpath,"
15825 LD_RPATH_OPT="-rpath "
15833 echo "$as_me:15833: result: $LD_RPATH_OPT" >&5
15834 echo "${ECHO_T}$LD_RPATH_OPT" >&6
15836 case "x$LD_RPATH_OPT" in #(vi
15838 echo "$as_me:15838: checking if we need a space after rpath option" >&5
15839 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
15840 cf_save_LIBS="$LIBS"
15841 LIBS="${LD_RPATH_OPT}$libdir $LIBS"
15842 cat >conftest.$ac_ext <<_ACEOF
15843 #line 15843 "configure"
15844 #include "confdefs.h"
15854 rm -f conftest.$ac_objext conftest$ac_exeext
15855 if { (eval echo "$as_me:15855: \"$ac_link\"") >&5
15856 (eval $ac_link) 2>&5
15858 echo "$as_me:15858: \$? = $ac_status" >&5
15859 (exit $ac_status); } &&
15860 { ac_try='test -s conftest$ac_exeext'
15861 { (eval echo "$as_me:15861: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15864 echo "$as_me:15864: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15868 echo "$as_me: failed program was:" >&5
15869 cat conftest.$ac_ext >&5
15872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15873 LIBS="$cf_save_LIBS"
15874 echo "$as_me:15874: result: $cf_rpath_space" >&5
15875 echo "${ECHO_T}$cf_rpath_space" >&6
15876 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
15880 echo "$as_me:15880: checking if rpath-hack should be disabled" >&5
15881 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
15883 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
15884 if test "${enable_rpath_hack+set}" = set; then
15885 enableval="$enable_rpath_hack"
15886 test "$enableval" != no && enableval=yes
15887 if test "$enableval" != "yes" ; then
15888 cf_disable_rpath_hack=yes
15890 cf_disable_rpath_hack=no
15894 cf_disable_rpath_hack=no
15897 echo "$as_me:15897: result: $cf_disable_rpath_hack" >&5
15898 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
15899 if test "$cf_disable_rpath_hack" = no ; then
15901 echo "$as_me:15901: checking for updated LDFLAGS" >&5
15902 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
15903 if test -n "$LD_RPATH_OPT" ; then
15904 echo "$as_me:15904: result: maybe" >&5
15905 echo "${ECHO_T}maybe" >&6
15909 # Extract the first word of "$ac_prog", so it can be a program name with args.
15910 set dummy $ac_prog; ac_word=$2
15911 echo "$as_me:15911: checking for $ac_word" >&5
15912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15913 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 if test -n "$cf_ldd_prog"; then
15917 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
15919 ac_save_IFS=$IFS; IFS=$ac_path_separator
15921 for ac_dir in $ac_dummy; do
15923 test -z "$ac_dir" && ac_dir=.
15924 $as_executable_p "$ac_dir/$ac_word" || continue
15925 ac_cv_prog_cf_ldd_prog="$ac_prog"
15926 echo "$as_me:15926: found $ac_dir/$ac_word" >&5
15932 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
15933 if test -n "$cf_ldd_prog"; then
15934 echo "$as_me:15934: result: $cf_ldd_prog" >&5
15935 echo "${ECHO_T}$cf_ldd_prog" >&6
15937 echo "$as_me:15937: result: no" >&5
15938 echo "${ECHO_T}no" >&6
15941 test -n "$cf_ldd_prog" && break
15943 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
15945 cf_rpath_list="/usr/lib /lib"
15946 if test "$cf_ldd_prog" != no
15950 cat >conftest.$ac_ext <<_ACEOF
15951 #line 15951 "configure"
15952 #include "confdefs.h"
15962 rm -f conftest.$ac_objext conftest$ac_exeext
15963 if { (eval echo "$as_me:15963: \"$ac_link\"") >&5
15964 (eval $ac_link) 2>&5
15966 echo "$as_me:15966: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
15968 { ac_try='test -s conftest$ac_exeext'
15969 { (eval echo "$as_me:15969: \"$ac_try\"") >&5
15970 (eval $ac_try) 2>&5
15972 echo "$as_me:15972: \$? = $ac_status" >&5
15973 (exit $ac_status); }; }; then
15974 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
15975 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
15977 echo "$as_me: failed program was:" >&5
15978 cat conftest.$ac_ext >&5
15980 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15982 # If we passed the link-test, but get a "not found" on a given library,
15983 # this could be due to inept reconfiguration of gcc to make it only
15984 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
15985 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
15986 # /usr/local libraries.
15987 if test -n "$cf_rpath_oops"
15989 for cf_rpath_src in $cf_rpath_oops
15991 for cf_rpath_dir in \
15996 if test -f $cf_rpath_dir/lib/$cf_rpath_src
15998 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
16000 echo "${as_me:-configure}:16000: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
16002 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
16010 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
16012 echo "${as_me:-configure}:16012: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
16014 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
16016 echo "${as_me:-configure}:16016: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
16019 for cf_rpath_src in $LDFLAGS
16021 case $cf_rpath_src in #(vi
16024 # check if this refers to a directory which we will ignore
16026 if test -n "$cf_rpath_list"
16028 for cf_rpath_item in $cf_rpath_list
16030 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
16038 if test "$cf_rpath_skip" = no
16040 # transform the option
16041 if test "$LD_RPATH_OPT" = "-R " ; then
16042 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
16044 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
16047 # if we have not already added this, add it now
16048 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
16049 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
16051 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
16053 echo "${as_me:-configure}:16053: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
16055 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
16060 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
16062 LDFLAGS=$cf_rpath_dst
16064 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
16066 echo "${as_me:-configure}:16066: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
16068 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
16070 echo "${as_me:-configure}:16070: testing ...checking LIBS $LIBS ..." 1>&5
16073 for cf_rpath_src in $LIBS
16075 case $cf_rpath_src in #(vi
16078 # check if this refers to a directory which we will ignore
16080 if test -n "$cf_rpath_list"
16082 for cf_rpath_item in $cf_rpath_list
16084 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
16092 if test "$cf_rpath_skip" = no
16094 # transform the option
16095 if test "$LD_RPATH_OPT" = "-R " ; then
16096 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
16098 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
16101 # if we have not already added this, add it now
16102 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
16103 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
16105 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
16107 echo "${as_me:-configure}:16107: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
16109 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
16114 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
16118 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
16120 echo "${as_me:-configure}:16120: testing ...checked LIBS $LIBS ..." 1>&5
16122 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
16124 echo "${as_me:-configure}:16124: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
16127 echo "$as_me:16127: result: no" >&5
16128 echo "${ECHO_T}no" >&6
16136 ac_config_files="$ac_config_files Makefile"
16137 ac_config_commands="$ac_config_commands default"
16138 cat >confcache <<\_ACEOF
16139 # This file is a shell script that caches the results of configure
16140 # tests run on this system so they can be shared between configure
16141 # scripts and configure runs, see configure's option --config-cache.
16142 # It is not useful on other systems. If it contains results you don't
16143 # want to keep, you may remove or edit it.
16145 # config.status only pays attention to the cache file if you give it
16146 # the --recheck option to rerun configure.
16148 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16149 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16150 # following values.
16154 # The following way of writing the cache mishandles newlines in values,
16155 # but we know of no workaround that is simple, portable, and efficient.
16156 # So, don't put newlines in cache variables' values.
16157 # Ultrix sh set writes to stderr and can't be redirected directly,
16158 # and sets the high bit in the cache file unless we assign to the vars.
16161 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16163 # `set' does not quote correctly, so add quotes (double-quote
16164 # substitution turns \\\\ into \\, and sed turns \\ into \).
16167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16170 # `set' quotes correctly as required by POSIX, so do not add quotes.
16172 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16179 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16181 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16183 if cmp -s $cache_file confcache; then :; else
16184 if test -w $cache_file; then
16185 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16186 cat confcache >$cache_file
16188 echo "not updating unwritable cache $cache_file"
16193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16194 # Let make expand exec_prefix.
16195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16197 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16198 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16199 # trailing colons and then remove the whole line if VPATH becomes empty
16200 # (actually we leave an empty line to preserve line numbers).
16201 if test "x$srcdir" = x.; then
16202 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16203 s/:*\$(srcdir):*/:/;
16204 s/:*\${srcdir}:*/:/;
16206 s/^\([^=]*=[ ]*\):*/\1/;
16212 DEFS=-DHAVE_CONFIG_H
16214 : ${CONFIG_STATUS=./config.status}
16215 ac_clean_files_save=$ac_clean_files
16216 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16217 { echo "$as_me:16217: creating $CONFIG_STATUS" >&5
16218 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16219 cat >$CONFIG_STATUS <<_ACEOF
16221 # Generated automatically by configure.
16222 # Run this file to recreate the current configuration.
16223 # Compiler output produced by configure, useful for debugging
16224 # configure, is in config.log if it exists.
16227 SHELL=\${CONFIG_SHELL-$SHELL}
16228 ac_cs_invocation="\$0 \$@"
16232 cat >>$CONFIG_STATUS <<\_ACEOF
16233 # Be Bourne compatible
16234 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16237 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16241 # Name of the executable.
16242 as_me=`echo "$0" |sed 's,.*[\\/],,'`
16244 if expr a : '\(a\)' >/dev/null 2>&1; then
16250 rm -f conf$$ conf$$.exe conf$$.file
16252 if ln -s conf$$.file conf$$ 2>/dev/null; then
16253 # We could just check for DJGPP; but this test a) works b) is more generic
16254 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16255 if test -f conf$$.exe; then
16256 # Don't use ln at all; we don't have any links
16261 elif ln conf$$.file conf$$ 2>/dev/null; then
16266 rm -f conf$$ conf$$.exe conf$$.file
16268 as_executable_p="test -f"
16270 # Support unset when possible.
16271 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16278 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
16279 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
16280 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
16281 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
16282 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
16283 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
16284 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
16285 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
16288 # We need space, tab and new line, in precisely that order.
16294 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
16300 # Files that config.status was made for.
16301 if test -n "$ac_config_files"; then
16302 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16305 if test -n "$ac_config_headers"; then
16306 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16309 if test -n "$ac_config_links"; then
16310 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16313 if test -n "$ac_config_commands"; then
16314 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16317 cat >>$CONFIG_STATUS <<\EOF
16320 \`$as_me' instantiates files from templates according to the
16321 current configuration.
16323 Usage: $0 [OPTIONS] [FILE]...
16325 -h, --help print this help, then exit
16326 -V, --version print version number, then exit
16327 -d, --debug don't remove temporary files
16328 --recheck update $as_me by reconfiguring in the same conditions
16329 --file=FILE[:TEMPLATE]
16330 instantiate the configuration file FILE
16331 --header=FILE[:TEMPLATE]
16332 instantiate the configuration header FILE
16334 Configuration files:
16337 Configuration headers:
16340 Configuration commands:
16343 Report bugs to <dickey@invisible-island.net>."
16346 cat >>$CONFIG_STATUS <<EOF
16349 configured by $0, generated by GNU Autoconf 2.52.20121002,
16350 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16352 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16353 Free Software Foundation, Inc.
16354 This config.status script is free software; the Free Software Foundation
16355 gives unlimited permission to copy, distribute and modify it."
16360 cat >>$CONFIG_STATUS <<\EOF
16361 # If no file are specified by the user, then we need to provide default
16362 # value. By we need to know if files were specified by the user.
16368 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16369 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16371 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16375 *) # This is not an option, so the user has probably given explicit
16377 ac_need_defaults=false;;
16381 # Handling of the options.
16383 cat >>$CONFIG_STATUS <<EOF
16384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16385 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16386 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16388 cat >>$CONFIG_STATUS <<\EOF
16389 --version | --vers* | -V )
16390 echo "$ac_cs_version"; exit 0 ;;
16392 # Conflict between --help and --header
16393 { { echo "$as_me:16393: error: ambiguous option: $1
16394 Try \`$0 --help' for more information." >&5
16395 echo "$as_me: error: ambiguous option: $1
16396 Try \`$0 --help' for more information." >&2;}
16397 { (exit 1); exit 1; }; };;
16398 --help | --hel | -h )
16399 echo "$ac_cs_usage"; exit 0 ;;
16400 --debug | --d* | -d )
16402 --file | --fil | --fi | --f )
16404 CONFIG_FILES="$CONFIG_FILES $1"
16405 ac_need_defaults=false;;
16406 --header | --heade | --head | --hea )
16408 CONFIG_HEADERS="$CONFIG_HEADERS $1"
16409 ac_need_defaults=false;;
16411 # This is an error.
16412 -*) { { echo "$as_me:16412: error: unrecognized option: $1
16413 Try \`$0 --help' for more information." >&5
16414 echo "$as_me: error: unrecognized option: $1
16415 Try \`$0 --help' for more information." >&2;}
16416 { (exit 1); exit 1; }; } ;;
16418 *) ac_config_targets="$ac_config_targets $1" ;;
16427 ## ----------------------- ##
16428 ## Running config.status. ##
16429 ## ----------------------- ##
16431 This file was extended by $as_me 2.52.20121002, executed with
16432 CONFIG_FILES = $CONFIG_FILES
16433 CONFIG_HEADERS = $CONFIG_HEADERS
16434 CONFIG_LINKS = $CONFIG_LINKS
16435 CONFIG_COMMANDS = $CONFIG_COMMANDS
16436 > $ac_cs_invocation
16437 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16442 cat >>$CONFIG_STATUS <<EOF
16444 # INIT-COMMANDS section.
16454 cat >>$CONFIG_STATUS <<\EOF
16455 for ac_config_target in $ac_config_targets
16457 case "$ac_config_target" in
16458 # Handling of arguments.
16459 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16460 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16461 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
16462 *) { { echo "$as_me:16462: error: invalid argument: $ac_config_target" >&5
16463 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16464 { (exit 1); exit 1; }; };;
16468 # If the user did not use the arguments to specify the items to instantiate,
16469 # then the envvar interface is used. Set only those that are not.
16470 # We use the long form for the default assignment because of an extremely
16471 # bizarre bug on SunOS 4.1.3.
16472 if $ac_need_defaults; then
16473 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16474 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16475 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16478 # Create a temporary directory, and hook for its removal unless debugging.
16481 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16482 trap '{ (exit 1); exit 1; }' 1 2 13 15
16485 # Create a (secure) tmp directory for tmp files.
16488 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16489 test -n "$tmp" && test -d "$tmp"
16492 tmp=$TMPDIR/cs$$-$RANDOM
16493 (umask 077 && mkdir $tmp)
16496 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16497 { (exit 1); exit 1; }
16502 cat >>$CONFIG_STATUS <<EOF
16505 # CONFIG_FILES section.
16508 # No need to generate the scripts if there are no CONFIG_FILES.
16509 # This happens for instance when ./config.status config.h
16510 if test -n "\$CONFIG_FILES"; then
16511 # Protect against being on the right side of a sed subst in config.status.
16512 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16513 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16514 s,@SHELL@,$SHELL,;t t
16515 s,@exec_prefix@,$exec_prefix,;t t
16516 s,@prefix@,$prefix,;t t
16517 s,@program_transform_name@,$program_transform_name,;t t
16518 s,@bindir@,$bindir,;t t
16519 s,@sbindir@,$sbindir,;t t
16520 s,@libexecdir@,$libexecdir,;t t
16521 s,@datarootdir@,$datarootdir,;t t
16522 s,@datadir@,$datadir,;t t
16523 s,@sysconfdir@,$sysconfdir,;t t
16524 s,@sharedstatedir@,$sharedstatedir,;t t
16525 s,@localstatedir@,$localstatedir,;t t
16526 s,@libdir@,$libdir,;t t
16527 s,@includedir@,$includedir,;t t
16528 s,@oldincludedir@,$oldincludedir,;t t
16529 s,@infodir@,$infodir,;t t
16530 s,@mandir@,$mandir,;t t
16531 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16532 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16533 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16534 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16535 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16536 s,@build_alias@,$build_alias,;t t
16537 s,@host_alias@,$host_alias,;t t
16538 s,@target_alias@,$target_alias,;t t
16539 s,@ECHO_C@,$ECHO_C,;t t
16540 s,@ECHO_N@,$ECHO_N,;t t
16541 s,@ECHO_T@,$ECHO_T,;t t
16542 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16543 s,@DEFS@,$DEFS,;t t
16544 s,@LIBS@,$LIBS,;t t
16545 s,@build@,$build,;t t
16546 s,@build_cpu@,$build_cpu,;t t
16547 s,@build_vendor@,$build_vendor,;t t
16548 s,@build_os@,$build_os,;t t
16549 s,@host@,$host,;t t
16550 s,@host_cpu@,$host_cpu,;t t
16551 s,@host_vendor@,$host_vendor,;t t
16552 s,@host_os@,$host_os,;t t
16553 s,@SET_MAKE@,$SET_MAKE,;t t
16555 s,@CFLAGS@,$CFLAGS,;t t
16556 s,@LDFLAGS@,$LDFLAGS,;t t
16557 s,@CPPFLAGS@,$CPPFLAGS,;t t
16558 s,@ac_ct_CC@,$ac_ct_CC,;t t
16559 s,@EXEEXT@,$EXEEXT,;t t
16560 s,@OBJEXT@,$OBJEXT,;t t
16561 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
16564 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16565 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16566 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16567 s,@LINT@,$LINT,;t t
16568 s,@LINT_OPTS@,$LINT_OPTS,;t t
16569 s,@CTAGS@,$CTAGS,;t t
16570 s,@ETAGS@,$ETAGS,;t t
16571 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
16572 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
16573 s,@MATH_LIB@,$MATH_LIB,;t t
16574 s,@top_builddir@,$top_builddir,;t t
16575 s,@CC_G_OPT@,$CC_G_OPT,;t t
16576 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
16577 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
16578 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
16579 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
16581 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
16582 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
16583 s,@LD_MODEL@,$LD_MODEL,;t t
16584 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
16585 s,@LIBTOOL@,$LIBTOOL,;t t
16586 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
16587 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
16588 s,@LIB_LINK@,$LIB_LINK,;t t
16589 s,@LINK_TESTS@,$LINK_TESTS,;t t
16590 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
16591 s,@PTHREAD@,$PTHREAD,;t t
16592 s,@TEST_ARGS@,$TEST_ARGS,;t t
16593 s,@TEST_DEPS@,$TEST_DEPS,;t t
16594 s,@TEST_LIBS@,$TEST_LIBS,;t t
16595 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
16596 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
16597 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
16598 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
16599 s,@includesubdir@,$includesubdir,;t t
16600 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16601 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
16602 s,@ECHO_LT@,$ECHO_LT,;t t
16603 s,@ECHO_LD@,$ECHO_LD,;t t
16604 s,@RULE_CC@,$RULE_CC,;t t
16605 s,@SHOW_CC@,$SHOW_CC,;t t
16606 s,@ECHO_CC@,$ECHO_CC,;t t
16607 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
16608 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
16609 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
16610 s,@X_CFLAGS@,$X_CFLAGS,;t t
16611 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16612 s,@X_LIBS@,$X_LIBS,;t t
16613 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16614 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
16615 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
16616 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
16617 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
16618 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
16623 cat >>$CONFIG_STATUS <<\EOF
16624 # Split the substitutions into bite-sized pieces for seds with
16625 # small command number limits, like on Digital OSF/1 and HP-UX.
16626 ac_max_sed_lines=48
16627 ac_sed_frag=1 # Number of current file.
16628 ac_beg=1 # First line for current file.
16629 ac_end=$ac_max_sed_lines # Line after last line for current file.
16632 while $ac_more_lines; do
16633 if test $ac_beg -gt 1; then
16634 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16636 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16638 if test ! -s $tmp/subs.frag; then
16639 ac_more_lines=false
16641 # The purpose of the label and of the branching condition is to
16642 # speed up the sed processing (if there are no `@' at all, there
16643 # is no need to browse any of the substitutions).
16644 # These are the two extra sed commands mentioned above.
16646 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16647 if test -z "$ac_sed_cmds"; then
16648 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16650 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16652 ac_sed_frag=`expr $ac_sed_frag + 1`
16654 ac_end=`expr $ac_end + $ac_max_sed_lines`
16657 if test -z "$ac_sed_cmds"; then
16660 fi # test -n "$CONFIG_FILES"
16663 cat >>$CONFIG_STATUS <<\EOF
16664 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16665 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16667 - | *:- | *:-:* ) # input from stdin
16669 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16670 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16671 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16672 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16673 * ) ac_file_in=$ac_file.in ;;
16676 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16677 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16678 X"$ac_file" : 'X\(//\)[^/]' \| \
16679 X"$ac_file" : 'X\(//\)$' \| \
16680 X"$ac_file" : 'X\(/\)' \| \
16681 . : '\(.\)' 2>/dev/null ||
16683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16685 /^X\(\/\/\)$/{ s//\1/; q; }
16686 /^X\(\/\).*/{ s//\1/; q; }
16688 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16689 { case "$ac_dir" in
16690 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16694 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16695 case $as_mkdir_dir in
16696 # Skip DOS drivespec
16697 ?:) as_incr_dir=$as_mkdir_dir ;;
16699 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16700 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
16705 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
16706 # A "../" for each directory in $ac_dir_suffix.
16707 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
16709 ac_dir_suffix= ac_dots=
16714 if test -z "$ac_dots"; then
16717 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
16719 [\\/]* | ?:[\\/]* )
16720 ac_srcdir=$srcdir$ac_dir_suffix;
16721 ac_top_srcdir=$srcdir ;;
16722 *) # Relative path.
16723 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
16724 ac_top_srcdir=$ac_dots$srcdir ;;
16728 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16729 *) ac_INSTALL=$ac_dots$INSTALL ;;
16732 if test x"$ac_file" != x-; then
16733 { echo "$as_me:16733: creating $ac_file" >&5
16734 echo "$as_me: creating $ac_file" >&6;}
16737 # Let's still pretend it is `configure' which instantiates (i.e., don't
16738 # use $as_me), people would be surprised to read:
16739 # /* config.h. Generated automatically by config.status. */
16740 configure_input="Generated automatically from `echo $ac_file_in |
16741 sed 's,.*/,,'` by configure."
16743 # First look for the input files in the build tree, otherwise in the
16745 ac_file_inputs=`IFS=:
16746 for f in $ac_file_in; do
16748 -) echo $tmp/stdin ;;
16750 # Absolute (can't be DOS-style, as IFS=:)
16751 test -f "$f" || { { echo "$as_me:16751: error: cannot find input file: $f" >&5
16752 echo "$as_me: error: cannot find input file: $f" >&2;}
16753 { (exit 1); exit 1; }; }
16756 if test -f "$f"; then
16759 elif test -f "$srcdir/$f"; then
16764 { { echo "$as_me:16764: error: cannot find input file: $f" >&5
16765 echo "$as_me: error: cannot find input file: $f" >&2;}
16766 { (exit 1); exit 1; }; }
16769 done` || { (exit 1); exit 1; }
16771 cat >>$CONFIG_STATUS <<\EOF
16772 ac_warn_datarootdir=no
16773 if test x"$ac_file" != x-; then
16774 for ac_item in $ac_file_inputs
16776 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
16777 if test -n "$ac_seen"; then
16778 ac_used=`grep '@datarootdir@' $ac_item`
16779 if test -z "$ac_used"; then
16780 { echo "$as_me:16780: WARNING: datarootdir was used implicitly but not set:
16782 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
16784 ac_warn_datarootdir=yes
16787 ac_seen=`grep '${datarootdir}' $ac_item`
16788 if test -n "$ac_seen"; then
16789 { echo "$as_me:16789: WARNING: datarootdir was used explicitly but not set:
16791 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
16793 ac_warn_datarootdir=yes
16798 if test "x$ac_warn_datarootdir" = xyes; then
16799 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
16803 cat >>$CONFIG_STATUS <<EOF
16807 cat >>$CONFIG_STATUS <<\EOF
16809 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16810 s,@configure_input@,$configure_input,;t t
16811 s,@srcdir@,$ac_srcdir,;t t
16812 s,@top_srcdir@,$ac_top_srcdir,;t t
16813 s,@INSTALL@,$ac_INSTALL,;t t
16814 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16816 if test x"$ac_file" != x-; then
16817 cp $tmp/out $ac_file
16819 for ac_name in prefix exec_prefix datarootdir
16821 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
16822 if test -n "$ac_seen"; then
16823 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
16824 if test -z "$ac_init"; then
16825 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
16826 { echo "$as_me:16826: WARNING: Variable $ac_name is used but was not set:
16828 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
16833 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
16834 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
16835 if test -s $tmp/out; then
16836 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
16837 { echo "$as_me:16837: WARNING: Some variables may not be substituted:
16839 echo "$as_me: WARNING: Some variables may not be substituted:
16849 cat >>$CONFIG_STATUS <<\EOF
16852 # CONFIG_HEADER section.
16855 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16856 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16858 # ac_d sets the value in "#define NAME VALUE" lines.
16859 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16860 ac_dB='[ ].*$,\1#\2'
16863 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16864 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16865 ac_iB='\([ ]\),\1#\2define\3'
16868 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16869 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16870 ac_uB='$,\1#\2define\3'
16874 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16875 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16877 - | *:- | *:-:* ) # input from stdin
16879 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16880 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16881 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16882 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16883 * ) ac_file_in=$ac_file.in ;;
16886 test x"$ac_file" != x- && { echo "$as_me:16886: creating $ac_file" >&5
16887 echo "$as_me: creating $ac_file" >&6;}
16889 # First look for the input files in the build tree, otherwise in the
16891 ac_file_inputs=`IFS=:
16892 for f in $ac_file_in; do
16894 -) echo $tmp/stdin ;;
16896 # Absolute (can't be DOS-style, as IFS=:)
16897 test -f "$f" || { { echo "$as_me:16897: error: cannot find input file: $f" >&5
16898 echo "$as_me: error: cannot find input file: $f" >&2;}
16899 { (exit 1); exit 1; }; }
16902 if test -f "$f"; then
16905 elif test -f "$srcdir/$f"; then
16910 { { echo "$as_me:16910: error: cannot find input file: $f" >&5
16911 echo "$as_me: error: cannot find input file: $f" >&2;}
16912 { (exit 1); exit 1; }; }
16915 done` || { (exit 1); exit 1; }
16916 # Remove the trailing spaces.
16917 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16921 # Transform confdefs.h into a list of #define's. We won't use it as a sed
16922 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
16923 # be either 'cat' or 'sort'.
16924 cat confdefs.h | uniq >conftest.vals
16926 # Break up conftest.vals because some shells have a limit on
16927 # the size of here documents, and old seds have small limits too.
16929 rm -f conftest.tail
16930 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
16931 while grep . conftest.vals >/dev/null
16933 # Write chunks of a limited-size here document to conftest.frag.
16934 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
16935 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
16936 echo 'CEOF' >> $CONFIG_STATUS
16937 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16938 rm -f conftest.vals
16939 mv conftest.tail conftest.vals
16941 rm -f conftest.vals
16943 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
16945 echo ' cat >> conftest.edit <<CEOF
16946 /@DEFS@/r conftest.frag
16949 sed -f conftest.edit $tmp/in > $tmp/out
16951 mv $tmp/out $tmp/in
16952 rm -f conftest.edit conftest.frag
16953 ' >> $CONFIG_STATUS
16955 cat >>$CONFIG_STATUS <<\EOF
16956 # Let's still pretend it is `configure' which instantiates (i.e., don't
16957 # use $as_me), people would be surprised to read:
16958 # /* config.h. Generated automatically by config.status. */
16959 if test x"$ac_file" = x-; then
16960 echo "/* Generated automatically by configure. */" >$tmp/config.h
16962 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
16964 cat $tmp/in >>$tmp/config.h
16966 if test x"$ac_file" != x-; then
16967 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
16968 { echo "$as_me:16968: $ac_file is unchanged" >&5
16969 echo "$as_me: $ac_file is unchanged" >&6;}
16971 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16972 X"$ac_file" : 'X\(//\)[^/]' \| \
16973 X"$ac_file" : 'X\(//\)$' \| \
16974 X"$ac_file" : 'X\(/\)' \| \
16975 . : '\(.\)' 2>/dev/null ||
16977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16978 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16979 /^X\(\/\/\)$/{ s//\1/; q; }
16980 /^X\(\/\).*/{ s//\1/; q; }
16982 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16983 { case "$ac_dir" in
16984 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
16988 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16989 case $as_mkdir_dir in
16990 # Skip DOS drivespec
16991 ?:) as_incr_dir=$as_mkdir_dir ;;
16993 as_incr_dir=$as_incr_dir/$as_mkdir_dir
16994 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
17001 mv $tmp/config.h $ac_file
17005 rm -f $tmp/config.h
17009 cat >>$CONFIG_STATUS <<\EOF
17011 # CONFIG_COMMANDS section.
17013 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17014 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17015 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17022 if test ! -d $srcdir/$cf_dir; then
17024 elif test -f $srcdir/$cf_dir/programs; then
17025 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
17029 cat >>Makefile <<TEST_EOF
17031 # These rules are generated so we do not rely on suffix rules, which do not
17032 # work consistently for different make-programs (the '\$(MODEL)/' confuses
17033 # some, and the '\$x' confuses others).
17036 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
17039 cat >>Makefile <<TEST_EOF
17041 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
17042 \$(srcdir)/test.priv.h \\
17045 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) \$(srcdir)/$N.c
17049 if test -f ../config.guess && test -f ../config.sub
17051 cat >>Makefile <<TEST_EOF
17053 # if we used CF_INHERIT for getting these files, we can remove them
17055 rm -f config.guess config.sub
17063 cat >>$CONFIG_STATUS <<\EOF
17065 { (exit 0); exit 0; }
17067 chmod +x $CONFIG_STATUS
17068 ac_clean_files=$ac_clean_files_save
17070 # configure is writing to config.log, and then calls config.status.
17071 # config.status does its own redirection, appending to config.log.
17072 # Unfortunately, on DOS this fails, as config.log is still kept open
17073 # by configure, so config.status won't be able to write to it; its
17074 # output is simply discarded. So we exec the FD to /dev/null,
17075 # effectively closing config.log, so it can be properly (re)opened and
17076 # appended to by config.status. When coming back to configure, we
17077 # need to make the FD available again.
17078 if test "$no_create" != yes; then
17081 $SHELL $CONFIG_STATUS || ac_cs_success=false
17083 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17084 # would make configure fail if this is the last instruction.
17085 $ac_cs_success || { (exit 1); exit 1; }