2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20200111.
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 runstatedir='${localstatedir}/run'
143 libdir='${exec_prefix}/lib'
144 includedir='${prefix}/include'
145 oldincludedir='/usr/include'
146 infodir='${datarootdir}/info'
147 mandir='${datarootdir}/man'
149 # Identity of this package.
159 # If the previous option needs an argument, assign it.
160 if test -n "$ac_prev"; then
161 eval "$ac_prev=\$ac_option"
166 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
168 # Accept the important Cygnus configure options, so we can diagnose typos.
172 -bindir | --bindir | --bindi | --bind | --bin | --bi)
174 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
177 -build | --build | --buil | --bui | --bu)
178 ac_prev=build_alias ;;
179 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
180 build_alias=$ac_optarg ;;
182 -cache-file | --cache-file | --cache-fil | --cache-fi \
183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
184 ac_prev=cache_file ;;
185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
187 cache_file=$ac_optarg ;;
190 cache_file=config.cache ;;
192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196 datadir=$ac_optarg ;;
198 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
199 | --dataroo | --dataro | --datar)
200 ac_prev=datarootdir ;;
201 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
202 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
203 datarootdir=$ac_optarg ;;
205 -disable-* | --disable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212 eval "enable_$ac_feature=no" ;;
214 -enable-* | --enable-*)
215 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
216 # Reject names that are not valid shell variable names.
217 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
218 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
219 { (exit 1); exit 1; }; }
220 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
222 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
225 eval "enable_$ac_feature='$ac_optarg'" ;;
227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
229 | --exec | --exe | --ex)
230 ac_prev=exec_prefix ;;
231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
233 | --exec=* | --exe=* | --ex=*)
234 exec_prefix=$ac_optarg ;;
236 -gas | --gas | --ga | --g)
237 # Obsolete; use --with-gas.
240 -help | --help | --hel | --he | -h)
242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
243 ac_init_help=recursive ;;
244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
245 ac_init_help=short ;;
247 -host | --host | --hos | --ho)
248 ac_prev=host_alias ;;
249 -host=* | --host=* | --hos=* | --ho=*)
250 host_alias=$ac_optarg ;;
252 -includedir | --includedir | --includedi | --included | --include \
253 | --includ | --inclu | --incl | --inc)
254 ac_prev=includedir ;;
255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256 | --includ=* | --inclu=* | --incl=* | --inc=*)
257 includedir=$ac_optarg ;;
259 -infodir | --infodir | --infodi | --infod | --info | --inf)
261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262 infodir=$ac_optarg ;;
264 -libdir | --libdir | --libdi | --libd)
266 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270 | --libexe | --libex | --libe)
271 ac_prev=libexecdir ;;
272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273 | --libexe=* | --libex=* | --libe=*)
274 libexecdir=$ac_optarg ;;
276 -localstatedir | --localstatedir | --localstatedi | --localstated \
277 | --localstate | --localstat | --localsta | --localst \
278 | --locals | --local | --loca | --loc | --lo)
279 ac_prev=localstatedir ;;
280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283 localstatedir=$ac_optarg ;;
285 -runstatedir | --runstatedir | --runstatedi | --runstated \
286 | --runstate | --runstat | --runsta | --runst \
287 | --runs | --run | --ru)
288 ac_prev=runstatedir ;;
289 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
290 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
291 | --runs=* | --run=* | --ru=*)
292 runstatedir=$ac_optarg ;;
294 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
296 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
300 # Obsolete; use --without-fp.
303 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
307 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
308 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
311 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
312 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
313 | --oldin | --oldi | --old | --ol | --o)
314 ac_prev=oldincludedir ;;
315 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
316 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
317 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
318 oldincludedir=$ac_optarg ;;
320 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
322 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
325 -program-prefix | --program-prefix | --program-prefi | --program-pref \
326 | --program-pre | --program-pr | --program-p)
327 ac_prev=program_prefix ;;
328 -program-prefix=* | --program-prefix=* | --program-prefi=* \
329 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
330 program_prefix=$ac_optarg ;;
332 -program-suffix | --program-suffix | --program-suffi | --program-suff \
333 | --program-suf | --program-su | --program-s)
334 ac_prev=program_suffix ;;
335 -program-suffix=* | --program-suffix=* | --program-suffi=* \
336 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
337 program_suffix=$ac_optarg ;;
339 -program-transform-name | --program-transform-name \
340 | --program-transform-nam | --program-transform-na \
341 | --program-transform-n | --program-transform- \
342 | --program-transform | --program-transfor \
343 | --program-transfo | --program-transf \
344 | --program-trans | --program-tran \
345 | --progr-tra | --program-tr | --program-t)
346 ac_prev=program_transform_name ;;
347 -program-transform-name=* | --program-transform-name=* \
348 | --program-transform-nam=* | --program-transform-na=* \
349 | --program-transform-n=* | --program-transform-=* \
350 | --program-transform=* | --program-transfor=* \
351 | --program-transfo=* | --program-transf=* \
352 | --program-trans=* | --program-tran=* \
353 | --progr-tra=* | --program-tr=* | --program-t=*)
354 program_transform_name=$ac_optarg ;;
356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
357 | -silent | --silent | --silen | --sile | --sil)
360 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
362 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
364 sbindir=$ac_optarg ;;
366 -sharedstatedir | --sharedstatedir | --sharedstatedi \
367 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
368 | --sharedst | --shareds | --shared | --share | --shar \
370 ac_prev=sharedstatedir ;;
371 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
372 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
373 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
375 sharedstatedir=$ac_optarg ;;
377 -site | --site | --sit)
379 -site=* | --site=* | --sit=*)
382 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
384 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
387 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
388 | --syscon | --sysco | --sysc | --sys | --sy)
389 ac_prev=sysconfdir ;;
390 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
391 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
392 sysconfdir=$ac_optarg ;;
394 -target | --target | --targe | --targ | --tar | --ta | --t)
395 ac_prev=target_alias ;;
396 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
397 target_alias=$ac_optarg ;;
399 -v | -verbose | --verbose | --verbos | --verbo | --verb)
402 -version | --version | --versio | --versi | --vers | -V)
406 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid package name: $ac_package" >&2
410 { (exit 1); exit 1; }; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "with_$ac_package='$ac_optarg'" ;;
418 -without-* | --without-*)
419 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
420 # Reject names that are not valid shell variable names.
421 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
422 { echo "$as_me: error: invalid package name: $ac_package" >&2
423 { (exit 1); exit 1; }; }
424 ac_package=`echo $ac_package | sed 's/-/_/g'`
425 eval "with_$ac_package=no" ;;
428 # Obsolete; use --with-x.
431 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
432 | --x-incl | --x-inc | --x-in | --x-i)
433 ac_prev=x_includes ;;
434 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436 x_includes=$ac_optarg ;;
438 -x-libraries | --x-libraries | --x-librarie | --x-librari \
439 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440 ac_prev=x_libraries ;;
441 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443 x_libraries=$ac_optarg ;;
445 -*) { echo "$as_me: error: unrecognized option: $ac_option
446 Try \`$0 --help' for more information." >&2
447 { (exit 1); exit 1; }; }
451 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
452 # Reject names that are not valid shell variable names.
453 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
454 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
455 { (exit 1); exit 1; }; }
456 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
457 eval "$ac_envvar='$ac_optarg'"
461 # FIXME: should be removed in autoconf 3.0.
462 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
463 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
464 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
465 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
471 if test -n "$ac_prev"; then
472 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
473 { echo "$as_me: error: missing argument to $ac_option" >&2
474 { (exit 1); exit 1; }; }
477 # Be sure to have absolute paths.
478 for ac_var in exec_prefix prefix
480 eval ac_val=$`echo $ac_var`
482 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
483 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
484 { (exit 1); exit 1; }; };;
488 # Be sure to have absolute paths.
489 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
490 localstatedir libdir includedir oldincludedir infodir mandir
492 eval ac_val=$`echo $ac_var`
494 [\\/$]* | ?:[\\/]* ) ;;
495 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
496 { (exit 1); exit 1; }; };;
500 # There might be people who depend on the old broken behavior: `$host'
501 # used to hold the argument of --host etc.
506 # FIXME: should be removed in autoconf 3.0.
507 if test "x$host_alias" != x; then
508 if test "x$build_alias" = x; then
509 cross_compiling=maybe
510 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
511 If a cross compiler is detected then cross compile mode will be used." >&2
512 elif test "x$build_alias" != "x$host_alias"; then
518 test -n "$host_alias" && ac_tool_prefix=$host_alias-
520 test "$silent" = yes && exec 6>/dev/null
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted=yes
525 # Try the directory containing this script, then its parent.
527 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
530 if test ! -r $srcdir/$ac_unique_file; then
534 ac_srcdir_defaulted=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
539 { (exit 1); exit 1; }; }
541 { echo "$as_me: error: cannot find sources in $srcdir" >&2
542 { (exit 1); exit 1; }; }
545 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
546 ac_env_build_alias_set=${build_alias+set}
547 ac_env_build_alias_value=$build_alias
548 ac_cv_env_build_alias_set=${build_alias+set}
549 ac_cv_env_build_alias_value=$build_alias
550 ac_env_host_alias_set=${host_alias+set}
551 ac_env_host_alias_value=$host_alias
552 ac_cv_env_host_alias_set=${host_alias+set}
553 ac_cv_env_host_alias_value=$host_alias
554 ac_env_target_alias_set=${target_alias+set}
555 ac_env_target_alias_value=$target_alias
556 ac_cv_env_target_alias_set=${target_alias+set}
557 ac_cv_env_target_alias_value=$target_alias
558 ac_env_CC_set=${CC+set}
560 ac_cv_env_CC_set=${CC+set}
561 ac_cv_env_CC_value=$CC
562 ac_env_CFLAGS_set=${CFLAGS+set}
563 ac_env_CFLAGS_value=$CFLAGS
564 ac_cv_env_CFLAGS_set=${CFLAGS+set}
565 ac_cv_env_CFLAGS_value=$CFLAGS
566 ac_env_LDFLAGS_set=${LDFLAGS+set}
567 ac_env_LDFLAGS_value=$LDFLAGS
568 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
569 ac_cv_env_LDFLAGS_value=$LDFLAGS
570 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
571 ac_env_CPPFLAGS_value=$CPPFLAGS
572 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
573 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
574 ac_env_CPP_set=${CPP+set}
575 ac_env_CPP_value=$CPP
576 ac_cv_env_CPP_set=${CPP+set}
577 ac_cv_env_CPP_value=$CPP
580 # Report the --help message.
582 if test "$ac_init_help" = "long"; then
583 # Omit some internal or obsolete options to make the list less imposing.
584 # This message is too long to be a string in the A/UX 3.1 sh.
586 \`configure' configures this package to adapt to many kinds of systems.
588 Usage: $0 [OPTION]... [VAR=VALUE]...
590 To assign environment variables (e.g., CC, CFLAGS...), specify them as
591 VAR=VALUE. See below for descriptions of some of the useful variables.
593 Defaults for the options are specified in brackets.
596 -h, --help display this help and exit
597 --help=short display options specific to this package
598 --help=recursive display the short help of all the included packages
599 -V, --version display version information and exit
600 -q, --quiet, --silent do not print \`checking...' messages
601 --cache-file=FILE cache test results in FILE [disabled]
602 -C, --config-cache alias for \`--cache-file=config.cache'
603 -n, --no-create do not create output files
604 --srcdir=DIR find the sources in DIR [configure dir or \`..']
609 Installation directories:
610 --prefix=PREFIX install architecture-independent files in PREFIX
612 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
615 By default, \`make install' will install all the files in
616 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
617 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
618 for instance \`--prefix=\$HOME'.
620 For better control, use the options below.
622 Fine tuning of the installation directories:
623 --bindir=DIR user executables [EPREFIX/bin]
624 --sbindir=DIR system admin executables [EPREFIX/sbin]
625 --libexecdir=DIR program executables [EPREFIX/libexec]
626 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
627 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
628 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
629 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
630 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
631 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
632 --libdir=DIR object code libraries [EPREFIX/lib]
633 --includedir=DIR C header files [PREFIX/include]
634 --oldincludedir=DIR C header files for non-gcc [/usr/include]
635 --infodir=DIR info documentation [DATAROOTDIR/info]
636 --mandir=DIR man documentation [DATAROOTDIR/man]
642 --program-prefix=PREFIX prepend PREFIX to installed program names
643 --program-suffix=SUFFIX append SUFFIX to installed program names
644 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
647 --x-includes=DIR X include files are in DIR
648 --x-libraries=DIR X library files are in DIR
651 --build=BUILD configure for building on BUILD [guessed]
652 --host=HOST build programs to run on HOST [BUILD]
656 if test -n "$ac_init_help"; then
661 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
662 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
665 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
666 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
669 --disable-stripping do not strip (debug info) installed executables
670 --enable-string-hacks work around bogus compiler/loader warnings
671 --with-pkg-config{=path} enable/disable use of pkg-config
672 --disable-echo do not display "compiling" commands
673 Curses Version-dependent Options:
674 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
675 --disable-widec disable checks for wide-character functions
676 --with-curses-dir=DIR directory in which (n)curses is installed
677 --with-screen=XXX use specified curses-libraries
678 --with-ncursesw use wide ncurses-libraries
679 --with-ncurses use ncurses-libraries
680 --with-pdcurses compile/link with pdcurses X11 library
681 --with-curses-colr compile/link with HPUX 10.x color-curses
682 --with-curses-5lib compile/link with SunOS 5lib curses
683 --with-Xaw3d link with Xaw 3d library
684 --with-Xaw3dxft link with Xaw 3d xft library
685 --with-neXtaw link with neXT Athena library
686 --with-XawPlus link with Athena-Plus library
687 --with-x use the X Window System
688 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
689 --with-form-libname=XXX override form basename of library
690 --with-menu-libname=XXX override menu basename of library
691 --with-panel-libname=XXX override panel basename of library
692 --disable-panel disable checks for panel functions
693 --disable-menu disable checks for menu functions
694 --disable-form disable checks for form functions
695 Testing/development Options:
696 --enable-warnings test: turn on gcc compiler warnings
697 --with-dmalloc test: use Gray Watson's dmalloc library
698 --with-dbmalloc test: use Conor Cahill's dbmalloc library
699 --with-valgrind test: use valgrind
700 --disable-leaks test: free permanent memory, analyze leaks
701 --disable-rpath-hack don't add rpath options for additional libraries
703 Some influential environment variables:
704 CC C compiler command
705 CFLAGS C compiler flags
706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
707 nonstandard directory <lib dir>
708 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
709 headers in a nonstandard directory <include dir>
712 Use these variables to override the choices made by `configure' or to help
713 it to find libraries and programs with nonstandard names/locations.
718 if test "$ac_init_help" = "recursive"; then
719 # If there are subdirs, report their specific --help.
721 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
723 # A "../" for each directory in /$ac_subdir.
724 ac_dots=`echo $ac_subdir |
725 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
728 .) # No --srcdir option. We are building in place.
729 ac_sub_srcdir=$srcdir ;;
730 [\\/]* | ?:[\\/]* ) # Absolute path.
731 ac_sub_srcdir=$srcdir/$ac_subdir ;;
733 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
736 # Check for guested configure; otherwise get Cygnus style configure.
737 if test -f $ac_sub_srcdir/configure.gnu; then
739 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
740 elif test -f $ac_sub_srcdir/configure; then
742 $SHELL $ac_sub_srcdir/configure --help=recursive
743 elif test -f $ac_sub_srcdir/configure.ac ||
744 test -f $ac_sub_srcdir/configure.in; then
748 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
754 test -n "$ac_init_help" && exit 0
755 if $ac_init_version; then
758 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
759 Free Software Foundation, Inc.
760 This configure script is free software; the Free Software Foundation
761 gives unlimited permission to copy, distribute and modify it.
767 This file contains any messages produced by compilers while
768 running configure, to aid debugging if configure makes a mistake.
770 It was created by $as_me, which was
771 generated by GNU Autoconf 2.52.20200111. Invocation command line was
782 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
783 uname -m = `(uname -m) 2>/dev/null || echo unknown`
784 uname -r = `(uname -r) 2>/dev/null || echo unknown`
785 uname -s = `(uname -s) 2>/dev/null || echo unknown`
786 uname -v = `(uname -v) 2>/dev/null || echo unknown`
788 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
789 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
791 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
792 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
793 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
794 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
795 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
796 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
797 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
811 # Keep a trace of the command line.
812 # Strip out --no-create and --no-recursion so they do not pile up.
813 # Also quote any args containing shell meta-characters.
819 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
820 | --no-cr | --no-c) ;;
821 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
822 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
823 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
824 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
825 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
827 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
830 # Get rid of the leading space.
833 # When interrupted or exit'd, cleanup temporary files, and complete
834 # config.log. We remove comments because anyway the quotes in there
835 # would cause problems or look ugly.
837 # Save into config.log some information that might help in debugging.
839 echo "## ----------------- ##" >&5
840 echo "## Cache variables. ##" >&5
841 echo "## ----------------- ##" >&5
843 # The following way of writing the cache mishandles newlines in values,
846 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
849 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
854 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
858 sed "/^$/d" confdefs.h >conftest.log
859 if test -s conftest.log; then
861 echo "## ------------ ##" >&5
862 echo "## confdefs.h. ##" >&5
863 echo "## ------------ ##" >&5
868 test "$ac_signal" != 0 &&
869 echo "$as_me: caught signal $ac_signal" >&5
870 echo "$as_me: exit $exit_status" >&5
871 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
874 for ac_signal in 1 2 13 15; do
875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
880 rm -rf conftest* confdefs.h
881 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
884 # Let the site file select an alternate cache file if it wants to.
885 # Prefer explicitly selected file to automatically selected ones.
886 if test -z "$CONFIG_SITE"; then
887 if test "x$prefix" != xNONE; then
888 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
890 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
893 for ac_site_file in $CONFIG_SITE; do
894 if test -r "$ac_site_file"; then
895 { echo "$as_me:895: loading site script $ac_site_file" >&5
896 echo "$as_me: loading site script $ac_site_file" >&6;}
897 cat "$ac_site_file" >&5
902 if test -r "$cache_file"; then
903 # Some versions of bash will fail to source /dev/null (special
904 # files actually), so we avoid doing that.
905 if test -f "$cache_file"; then
906 { echo "$as_me:906: loading cache $cache_file" >&5
907 echo "$as_me: loading cache $cache_file" >&6;}
909 [\\/]* | ?:[\\/]* ) . $cache_file;;
914 { echo "$as_me:914: creating cache $cache_file" >&5
915 echo "$as_me: creating cache $cache_file" >&6;}
919 # Check that the precious variables saved in the cache have kept the same
921 ac_cache_corrupted=false
922 for ac_var in `(set) 2>&1 |
923 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
924 eval ac_old_set=\$ac_cv_env_${ac_var}_set
925 eval ac_new_set=\$ac_env_${ac_var}_set
926 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
927 eval ac_new_val="\$ac_env_${ac_var}_value"
928 case $ac_old_set,$ac_new_set in
930 { echo "$as_me:930: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
931 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
932 ac_cache_corrupted=: ;;
934 { echo "$as_me:934: error: \`$ac_var' was not set in the previous run" >&5
935 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
936 ac_cache_corrupted=: ;;
939 if test "x$ac_old_val" != "x$ac_new_val"; then
940 { echo "$as_me:940: error: \`$ac_var' has changed since the previous run:" >&5
941 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
942 { echo "$as_me:942: former value: $ac_old_val" >&5
943 echo "$as_me: former value: $ac_old_val" >&2;}
944 { echo "$as_me:944: current value: $ac_new_val" >&5
945 echo "$as_me: current value: $ac_new_val" >&2;}
949 # Pass precious variables to config.status. It doesn't matter if
950 # we pass some twice (in addition to the command line arguments).
951 if test "$ac_new_set" = set; then
953 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
954 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
955 ac_configure_args="$ac_configure_args '$ac_arg'"
957 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
962 if $ac_cache_corrupted; then
963 { echo "$as_me:963: error: changes in the environment can compromise the build" >&5
964 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
965 { { echo "$as_me:965: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
967 { (exit 1); exit 1; }; }
971 ac_cpp='$CPP $CPPFLAGS'
972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
975 ac_main_return=return
977 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
978 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
983 echo "#! $SHELL" >conftest.sh
984 echo "exit 0" >>conftest.sh
986 if { (echo "$as_me:986: PATH=\".;.\"; conftest.sh") >&5
987 (PATH=".;."; conftest.sh) 2>&5
989 echo "$as_me:989: \$? = $ac_status" >&5
990 (exit $ac_status); }; then
991 ac_path_separator=';'
995 PATH_SEPARATOR="$ac_path_separator"
998 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
1000 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
1002 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
1005 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1006 if test -f $ac_dir/install-sh; then
1008 ac_install_sh="$ac_aux_dir/install-sh -c"
1010 elif test -f $ac_dir/install.sh; then
1012 ac_install_sh="$ac_aux_dir/install.sh -c"
1014 elif test -f $ac_dir/shtool; then
1016 ac_install_sh="$ac_aux_dir/shtool install -c"
1020 if test -z "$ac_aux_dir"; then
1021 { { echo "$as_me:1021: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1022 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1023 { (exit 1); exit 1; }; }
1025 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1026 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1027 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1029 # Make sure we can run config.sub.
1030 $ac_config_sub sun4 >/dev/null 2>&1 ||
1031 { { echo "$as_me:1031: error: cannot run $ac_config_sub" >&5
1032 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1033 { (exit 1); exit 1; }; }
1035 echo "$as_me:1035: checking build system type" >&5
1036 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1037 if test "${ac_cv_build+set}" = set; then
1038 echo $ECHO_N "(cached) $ECHO_C" >&6
1040 ac_cv_build_alias=$build_alias
1041 test -z "$ac_cv_build_alias" &&
1042 ac_cv_build_alias=`$ac_config_guess`
1043 test -z "$ac_cv_build_alias" &&
1044 { { echo "$as_me:1044: error: cannot guess build type; you must specify one" >&5
1045 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1046 { (exit 1); exit 1; }; }
1047 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1048 { { echo "$as_me:1048: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1049 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1050 { (exit 1); exit 1; }; }
1053 echo "$as_me:1053: result: $ac_cv_build" >&5
1054 echo "${ECHO_T}$ac_cv_build" >&6
1056 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1057 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1058 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1061 echo "$as_me:1061: checking host system type" >&5
1062 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1063 if test "${ac_cv_host+set}" = set; then
1064 echo $ECHO_N "(cached) $ECHO_C" >&6
1066 ac_cv_host_alias=$host_alias
1067 test -z "$ac_cv_host_alias" &&
1068 ac_cv_host_alias=$ac_cv_build_alias
1069 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1070 { { echo "$as_me:1070: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1071 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1072 { (exit 1); exit 1; }; }
1075 echo "$as_me:1075: result: $ac_cv_host" >&5
1076 echo "${ECHO_T}$ac_cv_host" >&6
1078 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1079 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1080 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1082 system_name="$host_os"
1084 system_name="`(uname -s -r) 2>/dev/null`"
1085 if test -z "$system_name" ; then
1086 system_name="`(hostname) 2>/dev/null`"
1089 test -n "$system_name" &&
1090 cat >>confdefs.h <<EOF
1091 #define SYSTEM_NAME "$system_name"
1094 if test "${cf_cv_system_name+set}" = set; then
1095 echo $ECHO_N "(cached) $ECHO_C" >&6
1097 cf_cv_system_name="$system_name"
1100 test -z "$system_name" && system_name="$cf_cv_system_name"
1101 test -n "$cf_cv_system_name" && echo "$as_me:1101: result: Configuring for $cf_cv_system_name" >&5
1102 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1104 if test ".$system_name" != ".$cf_cv_system_name" ; then
1105 echo "$as_me:1105: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1106 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1107 { { echo "$as_me:1107: error: \"Please remove config.cache and try again.\"" >&5
1108 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1109 { (exit 1); exit 1; }; }
1112 test "$program_prefix" != NONE &&
1113 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1114 # Use a double $ so make ignores it.
1115 test "$program_suffix" != NONE &&
1116 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1117 # Double any \ or $. echo might interpret backslashes.
1118 # By default was `s,x,x', remove it if useless.
1119 cat <<\_ACEOF >conftest.sed
1120 s/[\\$]/&&/g;s/;s,x,x,$//
1122 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1125 echo "$as_me:1125: checking whether ${MAKE-make} sets \${MAKE}" >&5
1126 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1127 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1128 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1129 echo $ECHO_N "(cached) $ECHO_C" >&6
1131 cat >conftest.make <<\EOF
1133 @echo 'ac_maketemp="${MAKE}"'
1135 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1136 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1137 if test -n "$ac_maketemp"; then
1138 eval ac_cv_prog_make_${ac_make}_set=yes
1140 eval ac_cv_prog_make_${ac_make}_set=no
1144 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1145 echo "$as_me:1145: result: yes" >&5
1146 echo "${ECHO_T}yes" >&6
1149 echo "$as_me:1149: result: no" >&5
1150 echo "${ECHO_T}no" >&6
1151 SET_MAKE="MAKE=${MAKE-make}"
1155 ac_cpp='$CPP $CPPFLAGS'
1156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1159 ac_main_return=return
1160 if test -n "$ac_tool_prefix"; then
1161 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1162 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1163 echo "$as_me:1163: checking for $ac_word" >&5
1164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1165 if test "${ac_cv_prog_CC+set}" = set; then
1166 echo $ECHO_N "(cached) $ECHO_C" >&6
1168 if test -n "$CC"; then
1169 ac_cv_prog_CC="$CC" # Let the user override the test.
1171 ac_save_IFS=$IFS; IFS=$ac_path_separator
1173 for ac_dir in $ac_dummy; do
1175 test -z "$ac_dir" && ac_dir=.
1176 $as_executable_p "$ac_dir/$ac_word" || continue
1177 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1178 echo "$as_me:1178: found $ac_dir/$ac_word" >&5
1185 if test -n "$CC"; then
1186 echo "$as_me:1186: result: $CC" >&5
1187 echo "${ECHO_T}$CC" >&6
1189 echo "$as_me:1189: result: no" >&5
1190 echo "${ECHO_T}no" >&6
1194 if test -z "$ac_cv_prog_CC"; then
1196 # Extract the first word of "gcc", so it can be a program name with args.
1197 set dummy gcc; ac_word=$2
1198 echo "$as_me:1198: checking for $ac_word" >&5
1199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1201 echo $ECHO_N "(cached) $ECHO_C" >&6
1203 if test -n "$ac_ct_CC"; then
1204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1206 ac_save_IFS=$IFS; IFS=$ac_path_separator
1208 for ac_dir in $ac_dummy; do
1210 test -z "$ac_dir" && ac_dir=.
1211 $as_executable_p "$ac_dir/$ac_word" || continue
1212 ac_cv_prog_ac_ct_CC="gcc"
1213 echo "$as_me:1213: found $ac_dir/$ac_word" >&5
1219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1220 if test -n "$ac_ct_CC"; then
1221 echo "$as_me:1221: result: $ac_ct_CC" >&5
1222 echo "${ECHO_T}$ac_ct_CC" >&6
1224 echo "$as_me:1224: result: no" >&5
1225 echo "${ECHO_T}no" >&6
1233 if test -z "$CC"; then
1234 if test -n "$ac_tool_prefix"; then
1235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1236 set dummy ${ac_tool_prefix}cc; ac_word=$2
1237 echo "$as_me:1237: checking for $ac_word" >&5
1238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1239 if test "${ac_cv_prog_CC+set}" = set; then
1240 echo $ECHO_N "(cached) $ECHO_C" >&6
1242 if test -n "$CC"; then
1243 ac_cv_prog_CC="$CC" # Let the user override the test.
1245 ac_save_IFS=$IFS; IFS=$ac_path_separator
1247 for ac_dir in $ac_dummy; do
1249 test -z "$ac_dir" && ac_dir=.
1250 $as_executable_p "$ac_dir/$ac_word" || continue
1251 ac_cv_prog_CC="${ac_tool_prefix}cc"
1252 echo "$as_me:1252: found $ac_dir/$ac_word" >&5
1259 if test -n "$CC"; then
1260 echo "$as_me:1260: result: $CC" >&5
1261 echo "${ECHO_T}$CC" >&6
1263 echo "$as_me:1263: result: no" >&5
1264 echo "${ECHO_T}no" >&6
1268 if test -z "$ac_cv_prog_CC"; then
1270 # Extract the first word of "cc", so it can be a program name with args.
1271 set dummy cc; ac_word=$2
1272 echo "$as_me:1272: checking for $ac_word" >&5
1273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1275 echo $ECHO_N "(cached) $ECHO_C" >&6
1277 if test -n "$ac_ct_CC"; then
1278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1280 ac_save_IFS=$IFS; IFS=$ac_path_separator
1282 for ac_dir in $ac_dummy; do
1284 test -z "$ac_dir" && ac_dir=.
1285 $as_executable_p "$ac_dir/$ac_word" || continue
1286 ac_cv_prog_ac_ct_CC="cc"
1287 echo "$as_me:1287: found $ac_dir/$ac_word" >&5
1293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1294 if test -n "$ac_ct_CC"; then
1295 echo "$as_me:1295: result: $ac_ct_CC" >&5
1296 echo "${ECHO_T}$ac_ct_CC" >&6
1298 echo "$as_me:1298: result: no" >&5
1299 echo "${ECHO_T}no" >&6
1308 if test -z "$CC"; then
1309 # Extract the first word of "cc", so it can be a program name with args.
1310 set dummy cc; ac_word=$2
1311 echo "$as_me:1311: checking for $ac_word" >&5
1312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1313 if test "${ac_cv_prog_CC+set}" = set; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1316 if test -n "$CC"; then
1317 ac_cv_prog_CC="$CC" # Let the user override the test.
1320 ac_save_IFS=$IFS; IFS=$ac_path_separator
1322 for ac_dir in $ac_dummy; do
1324 test -z "$ac_dir" && ac_dir=.
1325 $as_executable_p "$ac_dir/$ac_word" || continue
1326 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1327 ac_prog_rejected=yes
1331 echo "$as_me:1331: found $ac_dir/$ac_word" >&5
1335 if test $ac_prog_rejected = yes; then
1336 # We found a bogon in the path, so make sure we never use it.
1337 set dummy $ac_cv_prog_CC
1339 if test $# != 0; then
1340 # We chose a different compiler from the bogus one.
1341 # However, it has the same basename, so the bogon will be chosen
1342 # first if we set CC to just the basename; use the full file name.
1344 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1352 if test -n "$CC"; then
1353 echo "$as_me:1353: result: $CC" >&5
1354 echo "${ECHO_T}$CC" >&6
1356 echo "$as_me:1356: result: no" >&5
1357 echo "${ECHO_T}no" >&6
1361 if test -z "$CC"; then
1362 if test -n "$ac_tool_prefix"; then
1365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1367 echo "$as_me:1367: checking for $ac_word" >&5
1368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1369 if test "${ac_cv_prog_CC+set}" = set; then
1370 echo $ECHO_N "(cached) $ECHO_C" >&6
1372 if test -n "$CC"; then
1373 ac_cv_prog_CC="$CC" # Let the user override the test.
1375 ac_save_IFS=$IFS; IFS=$ac_path_separator
1377 for ac_dir in $ac_dummy; do
1379 test -z "$ac_dir" && ac_dir=.
1380 $as_executable_p "$ac_dir/$ac_word" || continue
1381 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1382 echo "$as_me:1382: found $ac_dir/$ac_word" >&5
1389 if test -n "$CC"; then
1390 echo "$as_me:1390: result: $CC" >&5
1391 echo "${ECHO_T}$CC" >&6
1393 echo "$as_me:1393: result: no" >&5
1394 echo "${ECHO_T}no" >&6
1397 test -n "$CC" && break
1400 if test -z "$CC"; then
1404 # Extract the first word of "$ac_prog", so it can be a program name with args.
1405 set dummy $ac_prog; ac_word=$2
1406 echo "$as_me:1406: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 if test -n "$ac_ct_CC"; then
1412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1414 ac_save_IFS=$IFS; IFS=$ac_path_separator
1416 for ac_dir in $ac_dummy; do
1418 test -z "$ac_dir" && ac_dir=.
1419 $as_executable_p "$ac_dir/$ac_word" || continue
1420 ac_cv_prog_ac_ct_CC="$ac_prog"
1421 echo "$as_me:1421: found $ac_dir/$ac_word" >&5
1427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1428 if test -n "$ac_ct_CC"; then
1429 echo "$as_me:1429: result: $ac_ct_CC" >&5
1430 echo "${ECHO_T}$ac_ct_CC" >&6
1432 echo "$as_me:1432: result: no" >&5
1433 echo "${ECHO_T}no" >&6
1436 test -n "$ac_ct_CC" && break
1444 test -z "$CC" && { { echo "$as_me:1444: error: no acceptable cc found in \$PATH" >&5
1445 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1446 { (exit 1); exit 1; }; }
1448 # Provide some information about the compiler.
1449 echo "$as_me:1449:" \
1450 "checking for C compiler version" >&5
1451 ac_compiler=`set X $ac_compile; echo $2`
1452 { (eval echo "$as_me:1452: \"$ac_compiler --version </dev/null >&5\"") >&5
1453 (eval $ac_compiler --version </dev/null >&5) 2>&5
1455 echo "$as_me:1455: \$? = $ac_status" >&5
1456 (exit $ac_status); }
1457 { (eval echo "$as_me:1457: \"$ac_compiler -v </dev/null >&5\"") >&5
1458 (eval $ac_compiler -v </dev/null >&5) 2>&5
1460 echo "$as_me:1460: \$? = $ac_status" >&5
1461 (exit $ac_status); }
1462 { (eval echo "$as_me:1462: \"$ac_compiler -V </dev/null >&5\"") >&5
1463 (eval $ac_compiler -V </dev/null >&5) 2>&5
1465 echo "$as_me:1465: \$? = $ac_status" >&5
1466 (exit $ac_status); }
1468 cat >conftest.$ac_ext <<_ACEOF
1469 #line 1469 "configure"
1470 #include "confdefs.h"
1480 ac_clean_files_save=$ac_clean_files
1481 ac_clean_files="$ac_clean_files a.out a.exe"
1482 # Try to create an executable without -o first, disregard a.out.
1483 # It will help us diagnose broken compilers, and finding out an intuition
1485 echo "$as_me:1485: checking for C compiler default output" >&5
1486 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1487 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1488 if { (eval echo "$as_me:1488: \"$ac_link_default\"") >&5
1489 (eval $ac_link_default) 2>&5
1491 echo "$as_me:1491: \$? = $ac_status" >&5
1492 (exit $ac_status); }; then
1493 # Find the output, starting from the most likely. This scheme is
1494 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1496 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1497 ls a.out conftest 2>/dev/null;
1498 ls a.* conftest.* 2>/dev/null`; do
1500 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1501 a.out ) # We found the default executable, but exeext='' is most
1504 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1505 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1512 echo "$as_me: failed program was:" >&5
1513 cat conftest.$ac_ext >&5
1514 { { echo "$as_me:1514: error: C compiler cannot create executables" >&5
1515 echo "$as_me: error: C compiler cannot create executables" >&2;}
1516 { (exit 77); exit 77; }; }
1519 ac_exeext=$ac_cv_exeext
1520 echo "$as_me:1520: result: $ac_file" >&5
1521 echo "${ECHO_T}$ac_file" >&6
1523 # Check the compiler produces executables we can run. If not, either
1524 # the compiler is broken, or we cross compile.
1525 echo "$as_me:1525: checking whether the C compiler works" >&5
1526 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1527 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1528 # If not cross compiling, check that we can run a simple program.
1529 if test "$cross_compiling" != yes; then
1530 if { ac_try='./$ac_file'
1531 { (eval echo "$as_me:1531: \"$ac_try\"") >&5
1534 echo "$as_me:1534: \$? = $ac_status" >&5
1535 (exit $ac_status); }; }; then
1538 if test "$cross_compiling" = maybe; then
1541 { { echo "$as_me:1541: error: cannot run C compiled programs.
1542 If you meant to cross compile, use \`--host'." >&5
1543 echo "$as_me: error: cannot run C compiled programs.
1544 If you meant to cross compile, use \`--host'." >&2;}
1545 { (exit 1); exit 1; }; }
1549 echo "$as_me:1549: result: yes" >&5
1550 echo "${ECHO_T}yes" >&6
1552 rm -f a.out a.exe conftest$ac_cv_exeext
1553 ac_clean_files=$ac_clean_files_save
1554 # Check the compiler produces executables we can run. If not, either
1555 # the compiler is broken, or we cross compile.
1556 echo "$as_me:1556: checking whether we are cross compiling" >&5
1557 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1558 echo "$as_me:1558: result: $cross_compiling" >&5
1559 echo "${ECHO_T}$cross_compiling" >&6
1561 echo "$as_me:1561: checking for executable suffix" >&5
1562 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1563 if { (eval echo "$as_me:1563: \"$ac_link\"") >&5
1564 (eval $ac_link) 2>&5
1566 echo "$as_me:1566: \$? = $ac_status" >&5
1567 (exit $ac_status); }; then
1568 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1569 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1570 # work properly (i.e., refer to `conftest.exe'), while it won't with
1572 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1574 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1575 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1582 { { echo "$as_me:1582: error: cannot compute EXEEXT: cannot compile and link" >&5
1583 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1584 { (exit 1); exit 1; }; }
1587 rm -f conftest$ac_cv_exeext
1588 echo "$as_me:1588: result: $ac_cv_exeext" >&5
1589 echo "${ECHO_T}$ac_cv_exeext" >&6
1591 rm -f conftest.$ac_ext
1592 EXEEXT=$ac_cv_exeext
1594 echo "$as_me:1594: checking for object suffix" >&5
1595 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1596 if test "${ac_cv_objext+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 cat >conftest.$ac_ext <<_ACEOF
1600 #line 1600 "configure"
1601 #include "confdefs.h"
1611 rm -f conftest.o conftest.obj
1612 if { (eval echo "$as_me:1612: \"$ac_compile\"") >&5
1613 (eval $ac_compile) 2>&5
1615 echo "$as_me:1615: \$? = $ac_status" >&5
1616 (exit $ac_status); }; then
1617 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1619 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1620 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1625 echo "$as_me: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1627 { { echo "$as_me:1627: error: cannot compute OBJEXT: cannot compile" >&5
1628 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1629 { (exit 1); exit 1; }; }
1632 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1634 echo "$as_me:1634: result: $ac_cv_objext" >&5
1635 echo "${ECHO_T}$ac_cv_objext" >&6
1636 OBJEXT=$ac_cv_objext
1638 echo "$as_me:1638: checking whether we are using the GNU C compiler" >&5
1639 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1640 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 cat >conftest.$ac_ext <<_ACEOF
1644 #line 1644 "configure"
1645 #include "confdefs.h"
1658 rm -f conftest.$ac_objext
1659 if { (eval echo "$as_me:1659: \"$ac_compile\"") >&5
1660 (eval $ac_compile) 2>&5
1662 echo "$as_me:1662: \$? = $ac_status" >&5
1663 (exit $ac_status); } &&
1664 { ac_try='test -s conftest.$ac_objext'
1665 { (eval echo "$as_me:1665: \"$ac_try\"") >&5
1668 echo "$as_me:1668: \$? = $ac_status" >&5
1669 (exit $ac_status); }; }; then
1672 echo "$as_me: failed program was:" >&5
1673 cat conftest.$ac_ext >&5
1676 rm -f conftest.$ac_objext conftest.$ac_ext
1677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1680 echo "$as_me:1680: result: $ac_cv_c_compiler_gnu" >&5
1681 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1682 GCC=`test $ac_compiler_gnu = yes && echo yes`
1683 ac_test_CFLAGS=${CFLAGS+set}
1684 ac_save_CFLAGS=$CFLAGS
1686 echo "$as_me:1686: checking whether $CC accepts -g" >&5
1687 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1688 if test "${ac_cv_prog_cc_g+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 cat >conftest.$ac_ext <<_ACEOF
1692 #line 1692 "configure"
1693 #include "confdefs.h"
1703 rm -f conftest.$ac_objext
1704 if { (eval echo "$as_me:1704: \"$ac_compile\"") >&5
1705 (eval $ac_compile) 2>&5
1707 echo "$as_me:1707: \$? = $ac_status" >&5
1708 (exit $ac_status); } &&
1709 { ac_try='test -s conftest.$ac_objext'
1710 { (eval echo "$as_me:1710: \"$ac_try\"") >&5
1713 echo "$as_me:1713: \$? = $ac_status" >&5
1714 (exit $ac_status); }; }; then
1717 echo "$as_me: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1721 rm -f conftest.$ac_objext conftest.$ac_ext
1723 echo "$as_me:1723: result: $ac_cv_prog_cc_g" >&5
1724 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1725 if test "$ac_test_CFLAGS" = set; then
1726 CFLAGS=$ac_save_CFLAGS
1727 elif test $ac_cv_prog_cc_g = yes; then
1728 if test "$GCC" = yes; then
1734 if test "$GCC" = yes; then
1740 # Some people use a C++ compiler to compile C. Since we use `exit',
1741 # in C++ we need to declare it. In case someone uses the same compiler
1742 # for both compiling C and C++ we need to have the C++ compiler decide
1743 # the declaration of exit, since it's the most demanding environment.
1744 cat >conftest.$ac_ext <<_ACEOF
1749 rm -f conftest.$ac_objext
1750 if { (eval echo "$as_me:1750: \"$ac_compile\"") >&5
1751 (eval $ac_compile) 2>&5
1753 echo "$as_me:1753: \$? = $ac_status" >&5
1754 (exit $ac_status); } &&
1755 { ac_try='test -s conftest.$ac_objext'
1756 { (eval echo "$as_me:1756: \"$ac_try\"") >&5
1759 echo "$as_me:1759: \$? = $ac_status" >&5
1760 (exit $ac_status); }; }; then
1761 for ac_declaration in \
1763 '#include <stdlib.h>' \
1764 'extern "C" void std::exit (int) throw (); using std::exit;' \
1765 'extern "C" void std::exit (int); using std::exit;' \
1766 'extern "C" void exit (int) throw ();' \
1767 'extern "C" void exit (int);' \
1770 cat >conftest.$ac_ext <<_ACEOF
1771 #line 1771 "configure"
1772 #include "confdefs.h"
1783 rm -f conftest.$ac_objext
1784 if { (eval echo "$as_me:1784: \"$ac_compile\"") >&5
1785 (eval $ac_compile) 2>&5
1787 echo "$as_me:1787: \$? = $ac_status" >&5
1788 (exit $ac_status); } &&
1789 { ac_try='test -s conftest.$ac_objext'
1790 { (eval echo "$as_me:1790: \"$ac_try\"") >&5
1793 echo "$as_me:1793: \$? = $ac_status" >&5
1794 (exit $ac_status); }; }; then
1797 echo "$as_me: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1801 rm -f conftest.$ac_objext conftest.$ac_ext
1802 cat >conftest.$ac_ext <<_ACEOF
1803 #line 1803 "configure"
1804 #include "confdefs.h"
1814 rm -f conftest.$ac_objext
1815 if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5
1816 (eval $ac_compile) 2>&5
1818 echo "$as_me:1818: \$? = $ac_status" >&5
1819 (exit $ac_status); } &&
1820 { ac_try='test -s conftest.$ac_objext'
1821 { (eval echo "$as_me:1821: \"$ac_try\"") >&5
1824 echo "$as_me:1824: \$? = $ac_status" >&5
1825 (exit $ac_status); }; }; then
1828 echo "$as_me: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1831 rm -f conftest.$ac_objext conftest.$ac_ext
1834 if test -n "$ac_declaration"; then
1835 echo '#ifdef __cplusplus' >>confdefs.h
1836 echo $ac_declaration >>confdefs.h
1837 echo '#endif' >>confdefs.h
1841 echo "$as_me: failed program was:" >&5
1842 cat conftest.$ac_ext >&5
1844 rm -f conftest.$ac_objext conftest.$ac_ext
1846 ac_cpp='$CPP $CPPFLAGS'
1847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1850 ac_main_return=return
1853 if test "$GCC" = yes ; then
1854 echo "$as_me:1854: checking version of $CC" >&5
1855 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1856 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.].*//'`"
1857 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1858 echo "$as_me:1858: result: $GCC_VERSION" >&5
1859 echo "${ECHO_T}$GCC_VERSION" >&6
1864 if test "$GCC" = yes ; then
1867 echo "$as_me:1867: checking if this is really Intel C compiler" >&5
1868 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
1869 cf_save_CFLAGS="$CFLAGS"
1870 CFLAGS="$CFLAGS -no-gcc"
1871 cat >conftest.$ac_ext <<_ACEOF
1872 #line 1872 "configure"
1873 #include "confdefs.h"
1879 #ifdef __INTEL_COMPILER
1888 rm -f conftest.$ac_objext
1889 if { (eval echo "$as_me:1889: \"$ac_compile\"") >&5
1890 (eval $ac_compile) 2>&5
1892 echo "$as_me:1892: \$? = $ac_status" >&5
1893 (exit $ac_status); } &&
1894 { ac_try='test -s conftest.$ac_objext'
1895 { (eval echo "$as_me:1895: \"$ac_try\"") >&5
1898 echo "$as_me:1898: \$? = $ac_status" >&5
1899 (exit $ac_status); }; }; then
1901 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
1904 echo "$as_me: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1907 rm -f conftest.$ac_objext conftest.$ac_ext
1908 CFLAGS="$cf_save_CFLAGS"
1909 echo "$as_me:1909: result: $INTEL_COMPILER" >&5
1910 echo "${ECHO_T}$INTEL_COMPILER" >&6
1917 if test "$GCC" = yes ; then
1918 echo "$as_me:1918: checking if this is really Clang C compiler" >&5
1919 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
1920 cf_save_CFLAGS="$CFLAGS"
1921 CFLAGS="$CFLAGS -Qunused-arguments"
1922 cat >conftest.$ac_ext <<_ACEOF
1923 #line 1923 "configure"
1924 #include "confdefs.h"
1939 rm -f conftest.$ac_objext
1940 if { (eval echo "$as_me:1940: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>&5
1943 echo "$as_me:1943: \$? = $ac_status" >&5
1944 (exit $ac_status); } &&
1945 { ac_try='test -s conftest.$ac_objext'
1946 { (eval echo "$as_me:1946: \"$ac_try\"") >&5
1949 echo "$as_me:1949: \$? = $ac_status" >&5
1950 (exit $ac_status); }; }; then
1952 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
1955 echo "$as_me: failed program was:" >&5
1956 cat conftest.$ac_ext >&5
1958 rm -f conftest.$ac_objext conftest.$ac_ext
1959 CFLAGS="$cf_save_CFLAGS"
1960 echo "$as_me:1960: result: $CLANG_COMPILER" >&5
1961 echo "${ECHO_T}$CLANG_COMPILER" >&6
1964 echo "$as_me:1964: checking for $CC option to accept ANSI C" >&5
1965 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1966 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 ac_cv_prog_cc_stdc=no
1971 cat >conftest.$ac_ext <<_ACEOF
1972 #line 1972 "configure"
1973 #include "confdefs.h"
1976 #include <sys/types.h>
1977 #include <sys/stat.h>
1978 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1979 struct buf { int x; };
1980 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1981 static char *e (p, i)
1987 static char *f (char * (*g) (char **, int), char **p, ...)
1992 s = g (p, va_arg (v,int));
1996 int test (int i, double x);
1997 struct s1 {int (*f) (int a);};
1998 struct s2 {int (*f) (double a);};
1999 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2005 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2010 # Don't try gcc -ansi; that turns off useful extensions and
2011 # breaks some systems' header files.
2012 # AIX -qlanglvl=ansi
2013 # Ultrix and OSF/1 -std1
2014 # HP-UX 10.20 and later -Ae
2015 # HP-UX older versions -Aa -D_HPUX_SOURCE
2016 # SVR4 -Xc -D__EXTENSIONS__
2017 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2019 CC="$ac_save_CC $ac_arg"
2020 rm -f conftest.$ac_objext
2021 if { (eval echo "$as_me:2021: \"$ac_compile\"") >&5
2022 (eval $ac_compile) 2>&5
2024 echo "$as_me:2024: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
2026 { ac_try='test -s conftest.$ac_objext'
2027 { (eval echo "$as_me:2027: \"$ac_try\"") >&5
2030 echo "$as_me:2030: \$? = $ac_status" >&5
2031 (exit $ac_status); }; }; then
2032 ac_cv_prog_cc_stdc=$ac_arg
2035 echo "$as_me: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2038 rm -f conftest.$ac_objext
2040 rm -f conftest.$ac_ext conftest.$ac_objext
2045 case "x$ac_cv_prog_cc_stdc" in
2047 echo "$as_me:2047: result: none needed" >&5
2048 echo "${ECHO_T}none needed" >&6 ;;
2050 echo "$as_me:2050: result: $ac_cv_prog_cc_stdc" >&5
2051 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2052 CC="$CC $ac_cv_prog_cc_stdc" ;;
2055 # This should have been defined by AC_PROG_CC
2058 echo "$as_me:2058: checking \$CFLAGS variable" >&5
2059 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2062 echo "$as_me:2062: result: broken" >&5
2063 echo "${ECHO_T}broken" >&6
2064 { echo "$as_me:2064: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2065 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2068 for cf_arg in $cf_flags
2074 cf_new_extra_cppflags=
2076 for cf_add_cflags in $cf_arg
2078 case $cf_fix_cppflags in
2080 case $cf_add_cflags in
2081 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2082 case $cf_add_cflags in
2084 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2086 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2087 && test -z "${cf_tst_cflags}" \
2088 && cf_fix_cppflags=yes
2090 if test $cf_fix_cppflags = yes ; then
2092 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2093 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2096 elif test "${cf_tst_cflags}" = "\"'" ; then
2098 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2099 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2109 case $cf_add_cflags in
2111 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2113 CPPFLAGS=`echo "$CPPFLAGS" | \
2114 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2115 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2120 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2121 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2128 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2129 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2136 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2137 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2139 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2141 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2142 && test -z "${cf_tst_cflags}" \
2143 && cf_fix_cppflags=no
2148 if test -n "$cf_new_cflags" ; then
2150 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2151 CFLAGS="${CFLAGS}$cf_new_cflags"
2155 if test -n "$cf_new_cppflags" ; then
2157 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2158 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2162 if test -n "$cf_new_extra_cppflags" ; then
2164 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2165 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2172 echo "$as_me:2172: result: ok" >&5
2173 echo "${ECHO_T}ok" >&6
2177 echo "$as_me:2177: checking \$CC variable" >&5
2178 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2181 echo "$as_me:2181: result: broken" >&5
2182 echo "${ECHO_T}broken" >&6
2183 { echo "$as_me:2183: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2184 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2186 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2187 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2189 for cf_arg in $cf_flags
2197 cf_new_extra_cppflags=
2199 for cf_add_cflags in $cf_arg
2201 case $cf_fix_cppflags in
2203 case $cf_add_cflags in
2204 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2205 case $cf_add_cflags in
2207 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2210 && test -z "${cf_tst_cflags}" \
2211 && cf_fix_cppflags=yes
2213 if test $cf_fix_cppflags = yes ; then
2215 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2216 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2219 elif test "${cf_tst_cflags}" = "\"'" ; then
2221 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2222 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2232 case $cf_add_cflags in
2234 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2236 CPPFLAGS=`echo "$CPPFLAGS" | \
2237 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2238 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2243 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2244 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2251 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2252 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2259 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2260 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2262 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2264 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2265 && test -z "${cf_tst_cflags}" \
2266 && cf_fix_cppflags=no
2271 if test -n "$cf_new_cflags" ; then
2273 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2274 CFLAGS="${CFLAGS}$cf_new_cflags"
2278 if test -n "$cf_new_cppflags" ; then
2280 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2281 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2285 if test -n "$cf_new_extra_cppflags" ; then
2287 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2288 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2298 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2300 echo "${as_me:-configure}:2300: testing resulting CC: '$CC' ..." 1>&5
2302 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2304 echo "${as_me:-configure}:2304: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2306 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2308 echo "${as_me:-configure}:2308: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2312 echo "$as_me:2312: result: ok" >&5
2313 echo "${ECHO_T}ok" >&6
2317 echo "$as_me:2317: checking for inline" >&5
2318 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2319 if test "${ac_cv_c_inline+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 for ac_kw in inline __inline__ __inline; do
2324 cat >conftest.$ac_ext <<_ACEOF
2325 #line 2325 "configure"
2326 #include "confdefs.h"
2328 static $ac_kw int static_foo () {return 0; }
2329 $ac_kw int foo () {return 0; }
2333 rm -f conftest.$ac_objext
2334 if { (eval echo "$as_me:2334: \"$ac_compile\"") >&5
2335 (eval $ac_compile) 2>&5
2337 echo "$as_me:2337: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:2340: \"$ac_try\"") >&5
2343 echo "$as_me:2343: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2345 ac_cv_c_inline=$ac_kw; break
2347 echo "$as_me: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2350 rm -f conftest.$ac_objext conftest.$ac_ext
2354 echo "$as_me:2354: result: $ac_cv_c_inline" >&5
2355 echo "${ECHO_T}$ac_cv_c_inline" >&6
2356 case $ac_cv_c_inline in
2359 cat >>confdefs.h <<\EOF
2363 *) cat >>confdefs.h <<EOF
2364 #define inline $ac_cv_c_inline
2370 ac_cpp='$CPP $CPPFLAGS'
2371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2374 ac_main_return=return
2375 echo "$as_me:2375: checking how to run the C preprocessor" >&5
2376 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2377 # On Suns, sometimes $CPP names a directory.
2378 if test -n "$CPP" && test -d "$CPP"; then
2381 if test -z "$CPP"; then
2382 if test "${ac_cv_prog_CPP+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 # Double quotes because CPP needs to be expanded
2386 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2389 for ac_c_preproc_warn_flag in '' yes
2391 # Use a header file that comes with gcc, so configuring glibc
2392 # with a fresh cross-compiler works.
2393 # On the NeXT, cc -E runs the code through the compiler's parser,
2394 # not just through cpp. "Syntax error" is here to catch this case.
2395 cat >conftest.$ac_ext <<_ACEOF
2396 #line 2396 "configure"
2397 #include "confdefs.h"
2401 if { (eval echo "$as_me:2401: \"$ac_cpp conftest.$ac_ext\"") >&5
2402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2404 egrep -v '^ *\+' conftest.er1 >conftest.err
2406 cat conftest.err >&5
2407 echo "$as_me:2407: \$? = $ac_status" >&5
2408 (exit $ac_status); } >/dev/null; then
2409 if test -s conftest.err; then
2410 ac_cpp_err=$ac_c_preproc_warn_flag
2417 if test -z "$ac_cpp_err"; then
2420 echo "$as_me: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2422 # Broken: fails on valid input.
2425 rm -f conftest.err conftest.$ac_ext
2427 # OK, works on sane cases. Now check whether non-existent headers
2428 # can be detected and how.
2429 cat >conftest.$ac_ext <<_ACEOF
2430 #line 2430 "configure"
2431 #include "confdefs.h"
2432 #include <ac_nonexistent.h>
2434 if { (eval echo "$as_me:2434: \"$ac_cpp conftest.$ac_ext\"") >&5
2435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2437 egrep -v '^ *\+' conftest.er1 >conftest.err
2439 cat conftest.err >&5
2440 echo "$as_me:2440: \$? = $ac_status" >&5
2441 (exit $ac_status); } >/dev/null; then
2442 if test -s conftest.err; then
2443 ac_cpp_err=$ac_c_preproc_warn_flag
2450 if test -z "$ac_cpp_err"; then
2451 # Broken: success on invalid input.
2454 echo "$as_me: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2456 # Passes both tests.
2460 rm -f conftest.err conftest.$ac_ext
2463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2464 rm -f conftest.err conftest.$ac_ext
2465 if $ac_preproc_ok; then
2477 echo "$as_me:2477: result: $CPP" >&5
2478 echo "${ECHO_T}$CPP" >&6
2480 for ac_c_preproc_warn_flag in '' yes
2482 # Use a header file that comes with gcc, so configuring glibc
2483 # with a fresh cross-compiler works.
2484 # On the NeXT, cc -E runs the code through the compiler's parser,
2485 # not just through cpp. "Syntax error" is here to catch this case.
2486 cat >conftest.$ac_ext <<_ACEOF
2487 #line 2487 "configure"
2488 #include "confdefs.h"
2492 if { (eval echo "$as_me:2492: \"$ac_cpp conftest.$ac_ext\"") >&5
2493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2495 egrep -v '^ *\+' conftest.er1 >conftest.err
2497 cat conftest.err >&5
2498 echo "$as_me:2498: \$? = $ac_status" >&5
2499 (exit $ac_status); } >/dev/null; then
2500 if test -s conftest.err; then
2501 ac_cpp_err=$ac_c_preproc_warn_flag
2508 if test -z "$ac_cpp_err"; then
2511 echo "$as_me: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2513 # Broken: fails on valid input.
2516 rm -f conftest.err conftest.$ac_ext
2518 # OK, works on sane cases. Now check whether non-existent headers
2519 # can be detected and how.
2520 cat >conftest.$ac_ext <<_ACEOF
2521 #line 2521 "configure"
2522 #include "confdefs.h"
2523 #include <ac_nonexistent.h>
2525 if { (eval echo "$as_me:2525: \"$ac_cpp conftest.$ac_ext\"") >&5
2526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528 egrep -v '^ *\+' conftest.er1 >conftest.err
2530 cat conftest.err >&5
2531 echo "$as_me:2531: \$? = $ac_status" >&5
2532 (exit $ac_status); } >/dev/null; then
2533 if test -s conftest.err; then
2534 ac_cpp_err=$ac_c_preproc_warn_flag
2541 if test -z "$ac_cpp_err"; then
2542 # Broken: success on invalid input.
2545 echo "$as_me: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2547 # Passes both tests.
2551 rm -f conftest.err conftest.$ac_ext
2554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2555 rm -f conftest.err conftest.$ac_ext
2556 if $ac_preproc_ok; then
2559 { { echo "$as_me:2559: error: C preprocessor \"$CPP\" fails sanity check" >&5
2560 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2561 { (exit 1); exit 1; }; }
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569 ac_main_return=return
2571 for ac_prog in mawk gawk nawk awk
2573 # Extract the first word of "$ac_prog", so it can be a program name with args.
2574 set dummy $ac_prog; ac_word=$2
2575 echo "$as_me:2575: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2577 if test "${ac_cv_prog_AWK+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 if test -n "$AWK"; then
2581 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2583 ac_save_IFS=$IFS; IFS=$ac_path_separator
2585 for ac_dir in $ac_dummy; do
2587 test -z "$ac_dir" && ac_dir=.
2588 $as_executable_p "$ac_dir/$ac_word" || continue
2589 ac_cv_prog_AWK="$ac_prog"
2590 echo "$as_me:2590: found $ac_dir/$ac_word" >&5
2597 if test -n "$AWK"; then
2598 echo "$as_me:2598: result: $AWK" >&5
2599 echo "${ECHO_T}$AWK" >&6
2601 echo "$as_me:2601: result: no" >&5
2602 echo "${ECHO_T}no" >&6
2605 test -n "$AWK" && break
2608 # Find a good install program. We prefer a C program (faster),
2609 # so one script is as good as another. But avoid the broken or
2610 # incompatible versions:
2611 # SysV /etc/install, /usr/sbin/install
2612 # SunOS /usr/etc/install
2613 # IRIX /sbin/install
2615 # AmigaOS /C/install, which installs bootblocks on floppy discs
2616 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2617 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2618 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2619 # ./install, which can be erroneously created by make from ./install.sh.
2620 echo "$as_me:2620: checking for a BSD compatible install" >&5
2621 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2622 if test -z "$INSTALL"; then
2623 if test "${ac_cv_path_install+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 ac_save_IFS=$IFS; IFS=$ac_path_separator
2627 for ac_dir in $PATH; do
2629 # Account for people who put trailing slashes in PATH elements.
2631 / | ./ | .// | /cC/* \
2632 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2635 # OSF1 and SCO ODT 3.0 have their own names for install.
2636 # Don't use installbsd from OSF since it installs stuff as root
2638 for ac_prog in ginstall scoinst install; do
2639 if $as_executable_p "$ac_dir/$ac_prog"; then
2640 if test $ac_prog = install &&
2641 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2642 # AIX install. It has an incompatible calling convention.
2644 elif test $ac_prog = install &&
2645 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2646 # program-specific install script used by HP pwplus--don't use.
2649 ac_cv_path_install="$ac_dir/$ac_prog -c"
2659 if test "${ac_cv_path_install+set}" = set; then
2660 INSTALL=$ac_cv_path_install
2662 # As a last resort, use the slow shell script. We don't cache a
2663 # path for INSTALL within a source directory, because that will
2664 # break other packages using the cache if that directory is
2665 # removed, or if the path is relative.
2666 INSTALL=$ac_install_sh
2669 echo "$as_me:2669: result: $INSTALL" >&5
2670 echo "${ECHO_T}$INSTALL" >&6
2672 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2673 # It thinks the first close brace ends the variable substitution.
2674 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2676 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2678 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2684 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2685 test -z "$cf_dir" && cf_dir=.
2686 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2690 echo "$as_me:2690: checking if you want to install stripped executables" >&5
2691 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
2693 # Check whether --enable-stripping or --disable-stripping was given.
2694 if test "${enable_stripping+set}" = set; then
2695 enableval="$enable_stripping"
2696 test "$enableval" != no && enableval=yes
2697 if test "$enableval" != "yes" ; then
2707 echo "$as_me:2707: result: $with_stripping" >&5
2708 echo "${ECHO_T}$with_stripping" >&6
2710 if test "$with_stripping" = yes
2717 : ${INSTALL:=install}
2718 echo "$as_me:2718: checking if install accepts -p option" >&5
2719 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
2720 if test "${cf_cv_install_p+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 if $INSTALL -p conftest.in conftest.out 2>/dev/null
2730 if test -f conftest.out/conftest.in
2732 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
2733 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
2734 if test -s conftest.err
2749 echo "$as_me:2749: result: $cf_cv_install_p" >&5
2750 echo "${ECHO_T}$cf_cv_install_p" >&6
2752 echo "$as_me:2752: checking if install needs to be told about ownership" >&5
2753 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
2754 case `$ac_config_guess` in
2763 echo "$as_me:2763: result: $with_install_o" >&5
2764 echo "${ECHO_T}$with_install_o" >&6
2765 if test "x$with_install_o" = xyes
2767 INSTALL_OPT_O=`id root|sed -e 's/uid=[0-9]*(/ -o /' -e 's/gid=[0-9]*(/ -g /' -e 's/ [^=[:space:]][^=[:space:]]*=.*/ /' -e 's/)//g'`
2772 for ac_prog in lint cppcheck splint
2774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2775 set dummy $ac_prog; ac_word=$2
2776 echo "$as_me:2776: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2778 if test "${ac_cv_prog_LINT+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 if test -n "$LINT"; then
2782 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2784 ac_save_IFS=$IFS; IFS=$ac_path_separator
2786 for ac_dir in $ac_dummy; do
2788 test -z "$ac_dir" && ac_dir=.
2789 $as_executable_p "$ac_dir/$ac_word" || continue
2790 ac_cv_prog_LINT="$ac_prog"
2791 echo "$as_me:2791: found $ac_dir/$ac_word" >&5
2797 LINT=$ac_cv_prog_LINT
2798 if test -n "$LINT"; then
2799 echo "$as_me:2799: result: $LINT" >&5
2800 echo "${ECHO_T}$LINT" >&6
2802 echo "$as_me:2802: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2806 test -n "$LINT" && break
2810 (xcppcheck|x*/cppcheck)
2811 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
2815 echo "$as_me:2815: checking if filesystem supports mixed-case filenames" >&5
2816 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2817 if test "${cf_cv_mixedcase+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 if test "$cross_compiling" = yes ; then
2822 case $target_alias in
2823 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2831 rm -f conftest CONFTEST
2833 if test -f CONFTEST ; then
2838 rm -f conftest CONFTEST
2842 echo "$as_me:2842: result: $cf_cv_mixedcase" >&5
2843 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2844 test "$cf_cv_mixedcase" = yes &&
2845 cat >>confdefs.h <<\EOF
2846 #define MIXEDCASE_FILENAMES 1
2849 for ac_prog in exctags ctags
2851 # Extract the first word of "$ac_prog", so it can be a program name with args.
2852 set dummy $ac_prog; ac_word=$2
2853 echo "$as_me:2853: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_prog_CTAGS+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 if test -n "$CTAGS"; then
2859 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2861 ac_save_IFS=$IFS; IFS=$ac_path_separator
2863 for ac_dir in $ac_dummy; do
2865 test -z "$ac_dir" && ac_dir=.
2866 $as_executable_p "$ac_dir/$ac_word" || continue
2867 ac_cv_prog_CTAGS="$ac_prog"
2868 echo "$as_me:2868: found $ac_dir/$ac_word" >&5
2874 CTAGS=$ac_cv_prog_CTAGS
2875 if test -n "$CTAGS"; then
2876 echo "$as_me:2876: result: $CTAGS" >&5
2877 echo "${ECHO_T}$CTAGS" >&6
2879 echo "$as_me:2879: result: no" >&5
2880 echo "${ECHO_T}no" >&6
2883 test -n "$CTAGS" && break
2886 for ac_prog in exetags etags
2888 # Extract the first word of "$ac_prog", so it can be a program name with args.
2889 set dummy $ac_prog; ac_word=$2
2890 echo "$as_me:2890: checking for $ac_word" >&5
2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892 if test "${ac_cv_prog_ETAGS+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 if test -n "$ETAGS"; then
2896 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2898 ac_save_IFS=$IFS; IFS=$ac_path_separator
2900 for ac_dir in $ac_dummy; do
2902 test -z "$ac_dir" && ac_dir=.
2903 $as_executable_p "$ac_dir/$ac_word" || continue
2904 ac_cv_prog_ETAGS="$ac_prog"
2905 echo "$as_me:2905: found $ac_dir/$ac_word" >&5
2911 ETAGS=$ac_cv_prog_ETAGS
2912 if test -n "$ETAGS"; then
2913 echo "$as_me:2913: result: $ETAGS" >&5
2914 echo "${ECHO_T}$ETAGS" >&6
2916 echo "$as_me:2916: result: no" >&5
2917 echo "${ECHO_T}no" >&6
2920 test -n "$ETAGS" && break
2923 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2924 set dummy ${CTAGS:-ctags}; ac_word=$2
2925 echo "$as_me:2925: checking for $ac_word" >&5
2926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2927 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 if test -n "$MAKE_LOWER_TAGS"; then
2931 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2933 ac_save_IFS=$IFS; IFS=$ac_path_separator
2935 for ac_dir in $ac_dummy; do
2937 test -z "$ac_dir" && ac_dir=.
2938 $as_executable_p "$ac_dir/$ac_word" || continue
2939 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2940 echo "$as_me:2940: found $ac_dir/$ac_word" >&5
2944 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2947 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2948 if test -n "$MAKE_LOWER_TAGS"; then
2949 echo "$as_me:2949: result: $MAKE_LOWER_TAGS" >&5
2950 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2952 echo "$as_me:2952: result: no" >&5
2953 echo "${ECHO_T}no" >&6
2956 if test "$cf_cv_mixedcase" = yes ; then
2957 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2958 set dummy ${ETAGS:-etags}; ac_word=$2
2959 echo "$as_me:2959: checking for $ac_word" >&5
2960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2961 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 if test -n "$MAKE_UPPER_TAGS"; then
2965 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2967 ac_save_IFS=$IFS; IFS=$ac_path_separator
2969 for ac_dir in $ac_dummy; do
2971 test -z "$ac_dir" && ac_dir=.
2972 $as_executable_p "$ac_dir/$ac_word" || continue
2973 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2974 echo "$as_me:2974: found $ac_dir/$ac_word" >&5
2978 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2981 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2982 if test -n "$MAKE_UPPER_TAGS"; then
2983 echo "$as_me:2983: result: $MAKE_UPPER_TAGS" >&5
2984 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2986 echo "$as_me:2986: result: no" >&5
2987 echo "${ECHO_T}no" >&6
2994 if test "$MAKE_UPPER_TAGS" = yes ; then
3000 if test "$MAKE_LOWER_TAGS" = yes ; then
3006 echo "$as_me:3006: checking if -lm needed for math functions" >&5
3007 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
3008 if test "${cf_cv_need_libm+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 cat >conftest.$ac_ext <<_ACEOF
3013 #line 3013 "configure"
3014 #include "confdefs.h"
3023 double x = rand(); printf("result = %g\n", pow(sin(x),x))
3028 rm -f conftest.$ac_objext conftest$ac_exeext
3029 if { (eval echo "$as_me:3029: \"$ac_link\"") >&5
3030 (eval $ac_link) 2>&5
3032 echo "$as_me:3032: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -s conftest$ac_exeext'
3035 { (eval echo "$as_me:3035: \"$ac_try\"") >&5
3038 echo "$as_me:3038: \$? = $ac_status" >&5
3039 (exit $ac_status); }; }; then
3042 echo "$as_me: failed program was:" >&5
3043 cat conftest.$ac_ext >&5
3046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3048 echo "$as_me:3048: result: $cf_cv_need_libm" >&5
3049 echo "${ECHO_T}$cf_cv_need_libm" >&6
3050 if test "$cf_cv_need_libm" = yes
3058 CC_SHARED_OPTS=unknown
3059 CPPFLAGS="$CPPFLAGS"
3061 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
3062 DFT_UPR_MODEL="NORMAL"
3075 PACKAGE="ncurses-examples"
3081 TINFO_LIBS='$(LIBS_CURSES)'
3082 cf_cv_abi_version=""
3083 cf_cv_rel_version=""
3089 if test "$GCC" = yes
3091 cat > conftest.i <<EOF
3093 #define GCC_PRINTF 0
3098 #ifndef GCC_NORETURN
3099 #define GCC_NORETURN /* nothing */
3102 #define GCC_UNUSED /* nothing */
3105 if test "$GCC" = yes
3107 { echo "$as_me:3107: checking for $CC __attribute__ directives..." >&5
3108 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3109 cat > conftest.$ac_ext <<EOF
3110 #line 3110 "${as_me:-configure}"
3111 #include "confdefs.h"
3112 #include "conftest.h"
3113 #include "conftest.i"
3115 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3117 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3120 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3122 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3124 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3125 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3126 extern void foo(void) GCC_NORETURN;
3127 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
3129 cf_printf_attribute=no
3130 cf_scanf_attribute=no
3131 for cf_attribute in scanf printf unused noreturn
3134 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3136 cf_directive="__attribute__(($cf_attribute))"
3137 echo "checking for $CC $cf_directive" 1>&5
3139 case $cf_attribute in
3141 cf_printf_attribute=yes
3142 cat >conftest.h <<EOF
3143 #define GCC_$cf_ATTRIBUTE 1
3147 cf_scanf_attribute=yes
3148 cat >conftest.h <<EOF
3149 #define GCC_$cf_ATTRIBUTE 1
3153 cat >conftest.h <<EOF
3154 #define GCC_$cf_ATTRIBUTE $cf_directive
3159 if { (eval echo "$as_me:3159: \"$ac_compile\"") >&5
3160 (eval $ac_compile) 2>&5
3162 echo "$as_me:3162: \$? = $ac_status" >&5
3163 (exit $ac_status); }; then
3164 test -n "$verbose" && echo "$as_me:3164: result: ... $cf_attribute" >&5
3165 echo "${ECHO_T}... $cf_attribute" >&6
3166 cat conftest.h >>confdefs.h
3167 case $cf_attribute in
3170 cat >>confdefs.h <<EOF
3171 #define GCC_NORETURN $cf_directive
3176 cf_value='/* nothing */'
3177 if test "$cf_printf_attribute" != no ; then
3178 cf_value='__attribute__((format(printf,fmt,var)))'
3180 cat >>confdefs.h <<\EOF
3181 #define GCC_PRINTF 1
3186 cat >>confdefs.h <<EOF
3187 #define GCC_PRINTFLIKE(fmt,var) $cf_value
3192 cf_value='/* nothing */'
3193 if test "$cf_scanf_attribute" != no ; then
3194 cf_value='__attribute__((format(scanf,fmt,var)))'
3196 cat >>confdefs.h <<\EOF
3202 cat >>confdefs.h <<EOF
3203 #define GCC_SCANFLIKE(fmt,var) $cf_value
3209 cat >>confdefs.h <<EOF
3210 #define GCC_UNUSED $cf_directive
3218 fgrep define conftest.i >>confdefs.h
3223 echo "$as_me:3223: checking if you want to work around bogus compiler/loader warnings" >&5
3224 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
3226 # Check whether --enable-string-hacks or --disable-string-hacks was given.
3227 if test "${enable_string_hacks+set}" = set; then
3228 enableval="$enable_string_hacks"
3229 with_string_hacks=$enableval
3231 with_string_hacks=no
3233 echo "$as_me:3233: result: $with_string_hacks" >&5
3234 echo "${ECHO_T}$with_string_hacks" >&6
3236 if test "x$with_string_hacks" = "xyes"; then
3238 cat >>confdefs.h <<\EOF
3239 #define USE_STRING_HACKS 1
3242 { echo "$as_me:3242: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
3243 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
3244 echo "$as_me:3244: checking for strlcat" >&5
3245 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
3246 if test "${ac_cv_func_strlcat+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 cat >conftest.$ac_ext <<_ACEOF
3250 #line 3250 "configure"
3251 #include "confdefs.h"
3252 #define strlcat autoconf_temporary
3253 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3260 /* We use char because int might match the return type of a gcc2
3261 builtin and then its argument prototype would still apply. */
3262 char strlcat (void);
3268 /* The GNU C library defines stubs for functions which it implements
3269 to always fail with ENOSYS. Some functions are actually named
3270 something starting with __ and the normal name is an alias. */
3271 #if defined (__stub_strlcat) || defined (__stub___strlcat)
3272 #error found stub for strlcat
3280 rm -f conftest.$ac_objext conftest$ac_exeext
3281 if { (eval echo "$as_me:3281: \"$ac_link\"") >&5
3282 (eval $ac_link) 2>&5
3284 echo "$as_me:3284: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -s conftest$ac_exeext'
3287 { (eval echo "$as_me:3287: \"$ac_try\"") >&5
3290 echo "$as_me:3290: \$? = $ac_status" >&5
3291 (exit $ac_status); }; }; then
3292 ac_cv_func_strlcat=yes
3294 echo "$as_me: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3296 ac_cv_func_strlcat=no
3298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3300 echo "$as_me:3300: result: $ac_cv_func_strlcat" >&5
3301 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
3302 if test $ac_cv_func_strlcat = yes; then
3304 cat >>confdefs.h <<\EOF
3305 #define HAVE_STRLCAT 1
3310 echo "$as_me:3310: checking for strlcat in -lbsd" >&5
3311 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
3312 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 ac_check_lib_save_LIBS=$LIBS
3317 cat >conftest.$ac_ext <<_ACEOF
3318 #line 3318 "configure"
3319 #include "confdefs.h"
3321 /* Override any gcc2 internal prototype to avoid an error. */
3325 /* We use char because int might match the return type of a gcc2
3326 builtin and then its argument prototype would still apply. */
3336 rm -f conftest.$ac_objext conftest$ac_exeext
3337 if { (eval echo "$as_me:3337: \"$ac_link\"") >&5
3338 (eval $ac_link) 2>&5
3340 echo "$as_me:3340: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
3342 { ac_try='test -s conftest$ac_exeext'
3343 { (eval echo "$as_me:3343: \"$ac_try\"") >&5
3346 echo "$as_me:3346: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 ac_cv_lib_bsd_strlcat=yes
3350 echo "$as_me: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3352 ac_cv_lib_bsd_strlcat=no
3354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3355 LIBS=$ac_check_lib_save_LIBS
3357 echo "$as_me:3357: result: $ac_cv_lib_bsd_strlcat" >&5
3358 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
3359 if test $ac_cv_lib_bsd_strlcat = yes; then
3364 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
3366 for cf_add_1lib in $cf_add_0lib; do
3367 for cf_add_2lib in $cf_add_libs; do
3368 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
3373 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
3377 for ac_header in bsd/string.h
3379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3380 echo "$as_me:3380: checking for $ac_header" >&5
3381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 cat >conftest.$ac_ext <<_ACEOF
3386 #line 3386 "configure"
3387 #include "confdefs.h"
3388 #include <$ac_header>
3390 if { (eval echo "$as_me:3390: \"$ac_cpp conftest.$ac_ext\"") >&5
3391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3393 egrep -v '^ *\+' conftest.er1 >conftest.err
3395 cat conftest.err >&5
3396 echo "$as_me:3396: \$? = $ac_status" >&5
3397 (exit $ac_status); } >/dev/null; then
3398 if test -s conftest.err; then
3399 ac_cpp_err=$ac_c_preproc_warn_flag
3406 if test -z "$ac_cpp_err"; then
3407 eval "$as_ac_Header=yes"
3409 echo "$as_me: failed program was:" >&5
3410 cat conftest.$ac_ext >&5
3411 eval "$as_ac_Header=no"
3413 rm -f conftest.err conftest.$ac_ext
3415 echo "$as_me:3415: result: `eval echo '${'$as_ac_Header'}'`" >&5
3416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3418 cat >>confdefs.h <<EOF
3419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3425 cat >>confdefs.h <<\EOF
3426 #define HAVE_STRLCAT 1
3433 for ac_func in strlcpy snprintf
3435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3436 echo "$as_me:3436: checking for $ac_func" >&5
3437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3438 if eval "test \"\${$as_ac_var+set}\" = set"; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 cat >conftest.$ac_ext <<_ACEOF
3442 #line 3442 "configure"
3443 #include "confdefs.h"
3444 #define $ac_func autoconf_temporary
3445 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3452 /* We use char because int might match the return type of a gcc2
3453 builtin and then its argument prototype would still apply. */
3454 char $ac_func (void);
3460 /* The GNU C library defines stubs for functions which it implements
3461 to always fail with ENOSYS. Some functions are actually named
3462 something starting with __ and the normal name is an alias. */
3463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3464 #error found stub for $ac_func
3472 rm -f conftest.$ac_objext conftest$ac_exeext
3473 if { (eval echo "$as_me:3473: \"$ac_link\"") >&5
3474 (eval $ac_link) 2>&5
3476 echo "$as_me:3476: \$? = $ac_status" >&5
3477 (exit $ac_status); } &&
3478 { ac_try='test -s conftest$ac_exeext'
3479 { (eval echo "$as_me:3479: \"$ac_try\"") >&5
3482 echo "$as_me:3482: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
3484 eval "$as_ac_var=yes"
3486 echo "$as_me: failed program was:" >&5
3487 cat conftest.$ac_ext >&5
3488 eval "$as_ac_var=no"
3490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3492 echo "$as_me:3492: result: `eval echo '${'$as_ac_var'}'`" >&5
3493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3494 if test `eval echo '${'$as_ac_var'}'` = yes; then
3495 cat >>confdefs.h <<EOF
3496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3504 echo "$as_me:3504: checking if the POSIX test-macros are already defined" >&5
3505 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
3506 if test "${cf_cv_posix_visible+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 cat >conftest.$ac_ext <<_ACEOF
3511 #line 3511 "configure"
3512 #include "confdefs.h"
3518 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
3519 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
3520 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
3521 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
3522 #error conflicting symbols found
3529 rm -f conftest.$ac_objext
3530 if { (eval echo "$as_me:3530: \"$ac_compile\"") >&5
3531 (eval $ac_compile) 2>&5
3533 echo "$as_me:3533: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -s conftest.$ac_objext'
3536 { (eval echo "$as_me:3536: \"$ac_try\"") >&5
3539 echo "$as_me:3539: \$? = $ac_status" >&5
3540 (exit $ac_status); }; }; then
3541 cf_cv_posix_visible=no
3543 echo "$as_me: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3545 cf_cv_posix_visible=yes
3547 rm -f conftest.$ac_objext conftest.$ac_ext
3550 echo "$as_me:3550: result: $cf_cv_posix_visible" >&5
3551 echo "${ECHO_T}$cf_cv_posix_visible" >&6
3553 if test "$cf_cv_posix_visible" = no; then
3556 cf_POSIX_C_SOURCE=199506L
3561 cf_xopen_source="-D_ALL_SOURCE"
3567 cf_xopen_source="-D_APPLE_C_SOURCE"
3570 cf_xopen_source="-D_DARWIN_C_SOURCE"
3573 (freebsd*|dragonfly*|midnightbsd*)
3574 # 5.x headers associate
3575 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3576 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3577 cf_POSIX_C_SOURCE=200112L
3579 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3582 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3585 cf_xopen_source="-D_HPUX_SOURCE"
3588 cf_xopen_source="-D_SGI_SOURCE"
3591 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3593 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
3595 echo "$as_me:3595: checking if this is the GNU C library" >&5
3596 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
3597 if test "${cf_cv_gnu_library+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 cat >conftest.$ac_ext <<_ACEOF
3602 #line 3602 "configure"
3603 #include "confdefs.h"
3604 #include <sys/types.h>
3609 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
3611 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
3614 # error not GNU C library
3620 rm -f conftest.$ac_objext
3621 if { (eval echo "$as_me:3621: \"$ac_compile\"") >&5
3622 (eval $ac_compile) 2>&5
3624 echo "$as_me:3624: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try='test -s conftest.$ac_objext'
3627 { (eval echo "$as_me:3627: \"$ac_try\"") >&5
3630 echo "$as_me:3630: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 cf_cv_gnu_library=yes
3634 echo "$as_me: failed program was:" >&5
3635 cat conftest.$ac_ext >&5
3636 cf_cv_gnu_library=no
3638 rm -f conftest.$ac_objext conftest.$ac_ext
3641 echo "$as_me:3641: result: $cf_cv_gnu_library" >&5
3642 echo "${ECHO_T}$cf_cv_gnu_library" >&6
3644 if test x$cf_cv_gnu_library = xyes; then
3646 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
3647 # was changed to help a little. newlib incorporated the change about 4
3649 echo "$as_me:3649: checking if _DEFAULT_SOURCE can be used as a basis" >&5
3650 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
3651 if test "${cf_cv_gnu_library_219+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3658 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3660 cat >conftest.$ac_ext <<_ACEOF
3661 #line 3661 "configure"
3662 #include "confdefs.h"
3663 #include <sys/types.h>
3668 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
3670 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
3673 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:3680: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>&5
3683 echo "$as_me:3683: \$? = $ac_status" >&5
3684 (exit $ac_status); } &&
3685 { ac_try='test -s conftest.$ac_objext'
3686 { (eval echo "$as_me:3686: \"$ac_try\"") >&5
3689 echo "$as_me:3689: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3691 cf_cv_gnu_library_219=yes
3693 echo "$as_me: failed program was:" >&5
3694 cat conftest.$ac_ext >&5
3695 cf_cv_gnu_library_219=no
3697 rm -f conftest.$ac_objext conftest.$ac_ext
3701 echo "$as_me:3701: result: $cf_cv_gnu_library_219" >&5
3702 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
3704 if test "x$cf_cv_gnu_library_219" = xyes; then
3706 echo "$as_me:3706: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
3707 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
3708 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 cf_new_extra_cppflags=
3717 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
3719 case $cf_fix_cppflags in
3721 case $cf_add_cflags in
3722 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3723 case $cf_add_cflags in
3725 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3727 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3728 && test -z "${cf_tst_cflags}" \
3729 && cf_fix_cppflags=yes
3731 if test $cf_fix_cppflags = yes ; then
3733 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3734 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3737 elif test "${cf_tst_cflags}" = "\"'" ; then
3739 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3740 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3750 case $cf_add_cflags in
3752 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3754 CPPFLAGS=`echo "$CPPFLAGS" | \
3755 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3756 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3761 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3762 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3769 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3770 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3777 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3778 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3780 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3782 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3783 && test -z "${cf_tst_cflags}" \
3784 && cf_fix_cppflags=no
3789 if test -n "$cf_new_cflags" ; then
3791 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3792 CFLAGS="${CFLAGS}$cf_new_cflags"
3796 if test -n "$cf_new_cppflags" ; then
3798 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3799 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3803 if test -n "$cf_new_extra_cppflags" ; then
3805 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3806 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3810 cat >conftest.$ac_ext <<_ACEOF
3811 #line 3811 "configure"
3812 #include "confdefs.h"
3815 #include <sys/types.h>
3821 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
3824 # error GNU C library is too old
3830 rm -f conftest.$ac_objext
3831 if { (eval echo "$as_me:3831: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>&5
3834 echo "$as_me:3834: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:3837: \"$ac_try\"") >&5
3840 echo "$as_me:3840: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 cf_cv_gnu_dftsrc_219=yes
3844 echo "$as_me: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3846 cf_cv_gnu_dftsrc_219=no
3848 rm -f conftest.$ac_objext conftest.$ac_ext
3851 echo "$as_me:3851: result: $cf_cv_gnu_dftsrc_219" >&5
3852 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
3853 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
3855 cf_cv_gnu_dftsrc_219=maybe
3858 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
3860 echo "$as_me:3860: checking if we must define _GNU_SOURCE" >&5
3861 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3862 if test "${cf_cv_gnu_source+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 cat >conftest.$ac_ext <<_ACEOF
3867 #line 3867 "configure"
3868 #include "confdefs.h"
3869 #include <sys/types.h>
3874 #ifndef _XOPEN_SOURCE
3875 #error expected _XOPEN_SOURCE to be defined
3881 rm -f conftest.$ac_objext
3882 if { (eval echo "$as_me:3882: \"$ac_compile\"") >&5
3883 (eval $ac_compile) 2>&5
3885 echo "$as_me:3885: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try='test -s conftest.$ac_objext'
3888 { (eval echo "$as_me:3888: \"$ac_try\"") >&5
3891 echo "$as_me:3891: \$? = $ac_status" >&5
3892 (exit $ac_status); }; }; then
3895 echo "$as_me: failed program was:" >&5
3896 cat conftest.$ac_ext >&5
3902 cf_new_extra_cppflags=
3904 for cf_add_cflags in -D_GNU_SOURCE
3906 case $cf_fix_cppflags in
3908 case $cf_add_cflags in
3909 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3910 case $cf_add_cflags in
3912 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3914 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3915 && test -z "${cf_tst_cflags}" \
3916 && cf_fix_cppflags=yes
3918 if test $cf_fix_cppflags = yes ; then
3920 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3921 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3924 elif test "${cf_tst_cflags}" = "\"'" ; then
3926 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3927 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3937 case $cf_add_cflags in
3939 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3941 CPPFLAGS=`echo "$CPPFLAGS" | \
3942 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3943 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3948 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3949 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3956 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3957 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3964 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3965 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3967 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3969 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3970 && test -z "${cf_tst_cflags}" \
3971 && cf_fix_cppflags=no
3976 if test -n "$cf_new_cflags" ; then
3978 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3979 CFLAGS="${CFLAGS}$cf_new_cflags"
3983 if test -n "$cf_new_cppflags" ; then
3985 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3986 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3990 if test -n "$cf_new_extra_cppflags" ; then
3992 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3993 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3997 cat >conftest.$ac_ext <<_ACEOF
3998 #line 3998 "configure"
3999 #include "confdefs.h"
4000 #include <sys/types.h>
4005 #ifdef _XOPEN_SOURCE
4006 #error expected _XOPEN_SOURCE to be undefined
4012 rm -f conftest.$ac_objext
4013 if { (eval echo "$as_me:4013: \"$ac_compile\"") >&5
4014 (eval $ac_compile) 2>&5
4016 echo "$as_me:4016: \$? = $ac_status" >&5
4017 (exit $ac_status); } &&
4018 { ac_try='test -s conftest.$ac_objext'
4019 { (eval echo "$as_me:4019: \"$ac_try\"") >&5
4022 echo "$as_me:4022: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4026 echo "$as_me: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4028 cf_cv_gnu_source=yes
4030 rm -f conftest.$ac_objext conftest.$ac_ext
4034 rm -f conftest.$ac_objext conftest.$ac_ext
4037 echo "$as_me:4037: result: $cf_cv_gnu_source" >&5
4038 echo "${ECHO_T}$cf_cv_gnu_source" >&6
4040 if test "$cf_cv_gnu_source" = yes
4042 echo "$as_me:4042: checking if we should also define _DEFAULT_SOURCE" >&5
4043 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
4044 if test "${cf_cv_default_source+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4049 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
4051 cat >conftest.$ac_ext <<_ACEOF
4052 #line 4052 "configure"
4053 #include "confdefs.h"
4054 #include <sys/types.h>
4059 #ifdef _DEFAULT_SOURCE
4060 #error expected _DEFAULT_SOURCE to be undefined
4066 rm -f conftest.$ac_objext
4067 if { (eval echo "$as_me:4067: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>&5
4070 echo "$as_me:4070: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:4073: \"$ac_try\"") >&5
4076 echo "$as_me:4076: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 cf_cv_default_source=no
4080 echo "$as_me: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4082 cf_cv_default_source=yes
4084 rm -f conftest.$ac_objext conftest.$ac_ext
4087 echo "$as_me:4087: result: $cf_cv_default_source" >&5
4088 echo "${ECHO_T}$cf_cv_default_source" >&6
4089 if test "$cf_cv_default_source" = yes
4092 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4093 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
4103 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
4106 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
4109 if test "$cf_cv_posix_visible" = no; then
4111 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
4113 cf_save_CFLAGS="$CFLAGS"
4114 cf_save_CPPFLAGS="$CPPFLAGS"
4116 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
4117 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4118 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4120 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
4121 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4122 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4124 echo "$as_me:4124: checking if we should define _POSIX_C_SOURCE" >&5
4125 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4126 if test "${cf_cv_posix_c_source+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 echo "${as_me:-configure}:4130: testing if the symbol is already defined go no further ..." 1>&5
4132 cat >conftest.$ac_ext <<_ACEOF
4133 #line 4133 "configure"
4134 #include "confdefs.h"
4135 #include <sys/types.h>
4140 #ifndef _POSIX_C_SOURCE
4147 rm -f conftest.$ac_objext
4148 if { (eval echo "$as_me:4148: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>&5
4151 echo "$as_me:4151: \$? = $ac_status" >&5
4152 (exit $ac_status); } &&
4153 { ac_try='test -s conftest.$ac_objext'
4154 { (eval echo "$as_me:4154: \"$ac_try\"") >&5
4157 echo "$as_me:4157: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4159 cf_cv_posix_c_source=no
4161 echo "$as_me: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4163 cf_want_posix_source=no
4164 case .$cf_POSIX_C_SOURCE in
4166 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4169 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4170 cf_want_posix_source=yes
4173 cf_want_posix_source=yes
4176 if test "$cf_want_posix_source" = yes ; then
4177 cat >conftest.$ac_ext <<_ACEOF
4178 #line 4178 "configure"
4179 #include "confdefs.h"
4180 #include <sys/types.h>
4185 #ifdef _POSIX_SOURCE
4192 rm -f conftest.$ac_objext
4193 if { (eval echo "$as_me:4193: \"$ac_compile\"") >&5
4194 (eval $ac_compile) 2>&5
4196 echo "$as_me:4196: \$? = $ac_status" >&5
4197 (exit $ac_status); } &&
4198 { ac_try='test -s conftest.$ac_objext'
4199 { (eval echo "$as_me:4199: \"$ac_try\"") >&5
4202 echo "$as_me:4202: \$? = $ac_status" >&5
4203 (exit $ac_status); }; }; then
4206 echo "$as_me: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4208 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4210 rm -f conftest.$ac_objext conftest.$ac_ext
4213 echo "${as_me:-configure}:4213: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4215 CFLAGS="$cf_trim_CFLAGS"
4216 CPPFLAGS="$cf_trim_CPPFLAGS"
4218 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4219 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
4221 echo "${as_me:-configure}:4221: testing if the second compile does not leave our definition intact error ..." 1>&5
4223 cat >conftest.$ac_ext <<_ACEOF
4224 #line 4224 "configure"
4225 #include "confdefs.h"
4226 #include <sys/types.h>
4231 #ifndef _POSIX_C_SOURCE
4238 rm -f conftest.$ac_objext
4239 if { (eval echo "$as_me:4239: \"$ac_compile\"") >&5
4240 (eval $ac_compile) 2>&5
4242 echo "$as_me:4242: \$? = $ac_status" >&5
4243 (exit $ac_status); } &&
4244 { ac_try='test -s conftest.$ac_objext'
4245 { (eval echo "$as_me:4245: \"$ac_try\"") >&5
4248 echo "$as_me:4248: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4252 echo "$as_me: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4254 cf_cv_posix_c_source=no
4256 rm -f conftest.$ac_objext conftest.$ac_ext
4257 CFLAGS="$cf_save_CFLAGS"
4258 CPPFLAGS="$cf_save_CPPFLAGS"
4261 rm -f conftest.$ac_objext conftest.$ac_ext
4264 echo "$as_me:4264: result: $cf_cv_posix_c_source" >&5
4265 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4267 if test "$cf_cv_posix_c_source" != no ; then
4268 CFLAGS="$cf_trim_CFLAGS"
4269 CPPFLAGS="$cf_trim_CPPFLAGS"
4274 cf_new_extra_cppflags=
4276 for cf_add_cflags in $cf_cv_posix_c_source
4278 case $cf_fix_cppflags in
4280 case $cf_add_cflags in
4281 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4282 case $cf_add_cflags in
4284 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4286 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4287 && test -z "${cf_tst_cflags}" \
4288 && cf_fix_cppflags=yes
4290 if test $cf_fix_cppflags = yes ; then
4292 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4293 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4296 elif test "${cf_tst_cflags}" = "\"'" ; then
4298 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4299 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4309 case $cf_add_cflags in
4311 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4313 CPPFLAGS=`echo "$CPPFLAGS" | \
4314 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4315 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4320 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4321 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4328 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4329 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4336 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4337 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4339 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4341 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4342 && test -z "${cf_tst_cflags}" \
4343 && cf_fix_cppflags=no
4348 if test -n "$cf_new_cflags" ; then
4350 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4351 CFLAGS="${CFLAGS}$cf_new_cflags"
4355 if test -n "$cf_new_cppflags" ; then
4357 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4358 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4362 if test -n "$cf_new_extra_cppflags" ; then
4364 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4365 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4371 fi # cf_cv_posix_visible
4375 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
4378 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
4379 cf_xopen_source="-D_BSD_SOURCE"
4383 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
4386 cf_xopen_source="-D_OSF_SOURCE"
4389 cf_xopen_source="-D_QNX_SOURCE"
4392 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
4395 cf_xopen_source="-D__EXTENSIONS__"
4396 cf_cv_xopen_source=broken
4398 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
4404 echo "$as_me:4404: checking if we should define _XOPEN_SOURCE" >&5
4405 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4406 if test "${cf_cv_xopen_source+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 cat >conftest.$ac_ext <<_ACEOF
4411 #line 4411 "configure"
4412 #include "confdefs.h"
4416 #include <sys/types.h>
4422 #ifndef _XOPEN_SOURCE
4429 rm -f conftest.$ac_objext
4430 if { (eval echo "$as_me:4430: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>&5
4433 echo "$as_me:4433: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try='test -s conftest.$ac_objext'
4436 { (eval echo "$as_me:4436: \"$ac_try\"") >&5
4439 echo "$as_me:4439: \$? = $ac_status" >&5
4440 (exit $ac_status); }; }; then
4441 cf_cv_xopen_source=no
4443 echo "$as_me: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4447 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4448 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4450 cat >conftest.$ac_ext <<_ACEOF
4451 #line 4451 "configure"
4452 #include "confdefs.h"
4456 #include <sys/types.h>
4462 #ifdef _XOPEN_SOURCE
4469 rm -f conftest.$ac_objext
4470 if { (eval echo "$as_me:4470: \"$ac_compile\"") >&5
4471 (eval $ac_compile) 2>&5
4473 echo "$as_me:4473: \$? = $ac_status" >&5
4474 (exit $ac_status); } &&
4475 { ac_try='test -s conftest.$ac_objext'
4476 { (eval echo "$as_me:4476: \"$ac_try\"") >&5
4479 echo "$as_me:4479: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 cf_cv_xopen_source=no
4483 echo "$as_me: failed program was:" >&5
4484 cat conftest.$ac_ext >&5
4485 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4487 rm -f conftest.$ac_objext conftest.$ac_ext
4491 rm -f conftest.$ac_objext conftest.$ac_ext
4494 echo "$as_me:4494: result: $cf_cv_xopen_source" >&5
4495 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4497 if test "$cf_cv_xopen_source" != no ; then
4499 CFLAGS=`echo "$CFLAGS" | \
4500 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4501 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4503 CPPFLAGS=`echo "$CPPFLAGS" | \
4504 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4505 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4507 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4512 cf_new_extra_cppflags=
4514 for cf_add_cflags in $cf_temp_xopen_source
4516 case $cf_fix_cppflags in
4518 case $cf_add_cflags in
4519 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4520 case $cf_add_cflags in
4522 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4524 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4525 && test -z "${cf_tst_cflags}" \
4526 && cf_fix_cppflags=yes
4528 if test $cf_fix_cppflags = yes ; then
4530 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4531 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4534 elif test "${cf_tst_cflags}" = "\"'" ; then
4536 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4537 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4547 case $cf_add_cflags in
4549 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4551 CPPFLAGS=`echo "$CPPFLAGS" | \
4552 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4553 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4558 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4559 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4566 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4567 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4574 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4575 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4577 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4579 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4580 && test -z "${cf_tst_cflags}" \
4581 && cf_fix_cppflags=no
4586 if test -n "$cf_new_cflags" ; then
4588 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4589 CFLAGS="${CFLAGS}$cf_new_cflags"
4593 if test -n "$cf_new_cppflags" ; then
4595 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4596 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4600 if test -n "$cf_new_extra_cppflags" ; then
4602 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4603 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4609 if test "$cf_cv_posix_visible" = no; then
4611 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
4613 cf_save_CFLAGS="$CFLAGS"
4614 cf_save_CPPFLAGS="$CPPFLAGS"
4616 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
4617 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4618 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4620 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
4621 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4622 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4624 echo "$as_me:4624: checking if we should define _POSIX_C_SOURCE" >&5
4625 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4626 if test "${cf_cv_posix_c_source+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 echo "${as_me:-configure}:4630: testing if the symbol is already defined go no further ..." 1>&5
4632 cat >conftest.$ac_ext <<_ACEOF
4633 #line 4633 "configure"
4634 #include "confdefs.h"
4635 #include <sys/types.h>
4640 #ifndef _POSIX_C_SOURCE
4647 rm -f conftest.$ac_objext
4648 if { (eval echo "$as_me:4648: \"$ac_compile\"") >&5
4649 (eval $ac_compile) 2>&5
4651 echo "$as_me:4651: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try='test -s conftest.$ac_objext'
4654 { (eval echo "$as_me:4654: \"$ac_try\"") >&5
4657 echo "$as_me:4657: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 cf_cv_posix_c_source=no
4661 echo "$as_me: failed program was:" >&5
4662 cat conftest.$ac_ext >&5
4663 cf_want_posix_source=no
4664 case .$cf_POSIX_C_SOURCE in
4666 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4669 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4670 cf_want_posix_source=yes
4673 cf_want_posix_source=yes
4676 if test "$cf_want_posix_source" = yes ; then
4677 cat >conftest.$ac_ext <<_ACEOF
4678 #line 4678 "configure"
4679 #include "confdefs.h"
4680 #include <sys/types.h>
4685 #ifdef _POSIX_SOURCE
4692 rm -f conftest.$ac_objext
4693 if { (eval echo "$as_me:4693: \"$ac_compile\"") >&5
4694 (eval $ac_compile) 2>&5
4696 echo "$as_me:4696: \$? = $ac_status" >&5
4697 (exit $ac_status); } &&
4698 { ac_try='test -s conftest.$ac_objext'
4699 { (eval echo "$as_me:4699: \"$ac_try\"") >&5
4702 echo "$as_me:4702: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4706 echo "$as_me: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4708 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4710 rm -f conftest.$ac_objext conftest.$ac_ext
4713 echo "${as_me:-configure}:4713: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4715 CFLAGS="$cf_trim_CFLAGS"
4716 CPPFLAGS="$cf_trim_CPPFLAGS"
4718 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4719 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
4721 echo "${as_me:-configure}:4721: testing if the second compile does not leave our definition intact error ..." 1>&5
4723 cat >conftest.$ac_ext <<_ACEOF
4724 #line 4724 "configure"
4725 #include "confdefs.h"
4726 #include <sys/types.h>
4731 #ifndef _POSIX_C_SOURCE
4738 rm -f conftest.$ac_objext
4739 if { (eval echo "$as_me:4739: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>&5
4742 echo "$as_me:4742: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
4744 { ac_try='test -s conftest.$ac_objext'
4745 { (eval echo "$as_me:4745: \"$ac_try\"") >&5
4748 echo "$as_me:4748: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
4752 echo "$as_me: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4754 cf_cv_posix_c_source=no
4756 rm -f conftest.$ac_objext conftest.$ac_ext
4757 CFLAGS="$cf_save_CFLAGS"
4758 CPPFLAGS="$cf_save_CPPFLAGS"
4761 rm -f conftest.$ac_objext conftest.$ac_ext
4764 echo "$as_me:4764: result: $cf_cv_posix_c_source" >&5
4765 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4767 if test "$cf_cv_posix_c_source" != no ; then
4768 CFLAGS="$cf_trim_CFLAGS"
4769 CPPFLAGS="$cf_trim_CPPFLAGS"
4774 cf_new_extra_cppflags=
4776 for cf_add_cflags in $cf_cv_posix_c_source
4778 case $cf_fix_cppflags in
4780 case $cf_add_cflags in
4781 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4782 case $cf_add_cflags in
4784 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4786 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4787 && test -z "${cf_tst_cflags}" \
4788 && cf_fix_cppflags=yes
4790 if test $cf_fix_cppflags = yes ; then
4792 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4793 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4796 elif test "${cf_tst_cflags}" = "\"'" ; then
4798 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4799 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4809 case $cf_add_cflags in
4811 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4813 CPPFLAGS=`echo "$CPPFLAGS" | \
4814 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4815 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4820 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4821 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4828 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4829 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4836 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4837 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4839 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4841 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4842 && test -z "${cf_tst_cflags}" \
4843 && cf_fix_cppflags=no
4848 if test -n "$cf_new_cflags" ; then
4850 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4851 CFLAGS="${CFLAGS}$cf_new_cflags"
4855 if test -n "$cf_new_cppflags" ; then
4857 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4858 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4862 if test -n "$cf_new_extra_cppflags" ; then
4864 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4865 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4871 fi # cf_cv_posix_visible
4876 if test -n "$cf_xopen_source" ; then
4881 cf_new_extra_cppflags=
4883 for cf_add_cflags in $cf_xopen_source
4885 case $cf_fix_cppflags in
4887 case $cf_add_cflags in
4888 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4889 case $cf_add_cflags in
4891 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4893 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4894 && test -z "${cf_tst_cflags}" \
4895 && cf_fix_cppflags=yes
4897 if test $cf_fix_cppflags = yes ; then
4899 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4900 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4903 elif test "${cf_tst_cflags}" = "\"'" ; then
4905 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4906 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4916 case $cf_add_cflags in
4918 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4920 CPPFLAGS=`echo "$CPPFLAGS" | \
4921 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4922 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4927 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4928 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4935 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4936 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4943 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4944 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4946 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4948 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4949 && test -z "${cf_tst_cflags}" \
4950 && cf_fix_cppflags=no
4955 if test -n "$cf_new_cflags" ; then
4956 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
4958 echo "${as_me:-configure}:4958: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
4960 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4961 CFLAGS="${CFLAGS}$cf_new_cflags"
4965 if test -n "$cf_new_cppflags" ; then
4966 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
4968 echo "${as_me:-configure}:4968: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
4970 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4971 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4975 if test -n "$cf_new_extra_cppflags" ; then
4976 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
4978 echo "${as_me:-configure}:4978: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
4980 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4981 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4987 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4988 echo "$as_me:4988: checking if _XOPEN_SOURCE really is set" >&5
4989 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4990 cat >conftest.$ac_ext <<_ACEOF
4991 #line 4991 "configure"
4992 #include "confdefs.h"
4998 #ifndef _XOPEN_SOURCE
5005 rm -f conftest.$ac_objext
5006 if { (eval echo "$as_me:5006: \"$ac_compile\"") >&5
5007 (eval $ac_compile) 2>&5
5009 echo "$as_me:5009: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -s conftest.$ac_objext'
5012 { (eval echo "$as_me:5012: \"$ac_try\"") >&5
5015 echo "$as_me:5015: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5017 cf_XOPEN_SOURCE_set=yes
5019 echo "$as_me: failed program was:" >&5
5020 cat conftest.$ac_ext >&5
5021 cf_XOPEN_SOURCE_set=no
5023 rm -f conftest.$ac_objext conftest.$ac_ext
5024 echo "$as_me:5024: result: $cf_XOPEN_SOURCE_set" >&5
5025 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
5026 if test $cf_XOPEN_SOURCE_set = yes
5028 cat >conftest.$ac_ext <<_ACEOF
5029 #line 5029 "configure"
5030 #include "confdefs.h"
5036 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
5043 rm -f conftest.$ac_objext
5044 if { (eval echo "$as_me:5044: \"$ac_compile\"") >&5
5045 (eval $ac_compile) 2>&5
5047 echo "$as_me:5047: \$? = $ac_status" >&5
5048 (exit $ac_status); } &&
5049 { ac_try='test -s conftest.$ac_objext'
5050 { (eval echo "$as_me:5050: \"$ac_try\"") >&5
5053 echo "$as_me:5053: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5055 cf_XOPEN_SOURCE_set_ok=yes
5057 echo "$as_me: failed program was:" >&5
5058 cat conftest.$ac_ext >&5
5059 cf_XOPEN_SOURCE_set_ok=no
5061 rm -f conftest.$ac_objext conftest.$ac_ext
5062 if test $cf_XOPEN_SOURCE_set_ok = no
5064 { echo "$as_me:5064: WARNING: _XOPEN_SOURCE is lower than requested" >&5
5065 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
5069 echo "$as_me:5069: checking if we should define _XOPEN_SOURCE" >&5
5070 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
5071 if test "${cf_cv_xopen_source+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 cat >conftest.$ac_ext <<_ACEOF
5076 #line 5076 "configure"
5077 #include "confdefs.h"
5081 #include <sys/types.h>
5087 #ifndef _XOPEN_SOURCE
5094 rm -f conftest.$ac_objext
5095 if { (eval echo "$as_me:5095: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>&5
5098 echo "$as_me:5098: \$? = $ac_status" >&5
5099 (exit $ac_status); } &&
5100 { ac_try='test -s conftest.$ac_objext'
5101 { (eval echo "$as_me:5101: \"$ac_try\"") >&5
5104 echo "$as_me:5104: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5106 cf_cv_xopen_source=no
5108 echo "$as_me: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5112 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5113 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
5115 cat >conftest.$ac_ext <<_ACEOF
5116 #line 5116 "configure"
5117 #include "confdefs.h"
5121 #include <sys/types.h>
5127 #ifdef _XOPEN_SOURCE
5134 rm -f conftest.$ac_objext
5135 if { (eval echo "$as_me:5135: \"$ac_compile\"") >&5
5136 (eval $ac_compile) 2>&5
5138 echo "$as_me:5138: \$? = $ac_status" >&5
5139 (exit $ac_status); } &&
5140 { ac_try='test -s conftest.$ac_objext'
5141 { (eval echo "$as_me:5141: \"$ac_try\"") >&5
5144 echo "$as_me:5144: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 cf_cv_xopen_source=no
5148 echo "$as_me: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5150 cf_cv_xopen_source=$cf_XOPEN_SOURCE
5152 rm -f conftest.$ac_objext conftest.$ac_ext
5156 rm -f conftest.$ac_objext conftest.$ac_ext
5159 echo "$as_me:5159: result: $cf_cv_xopen_source" >&5
5160 echo "${ECHO_T}$cf_cv_xopen_source" >&6
5162 if test "$cf_cv_xopen_source" != no ; then
5164 CFLAGS=`echo "$CFLAGS" | \
5165 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5166 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
5168 CPPFLAGS=`echo "$CPPFLAGS" | \
5169 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5170 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
5172 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
5177 cf_new_extra_cppflags=
5179 for cf_add_cflags in $cf_temp_xopen_source
5181 case $cf_fix_cppflags in
5183 case $cf_add_cflags in
5184 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5185 case $cf_add_cflags in
5187 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5189 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5190 && test -z "${cf_tst_cflags}" \
5191 && cf_fix_cppflags=yes
5193 if test $cf_fix_cppflags = yes ; then
5195 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5196 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5199 elif test "${cf_tst_cflags}" = "\"'" ; then
5201 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5202 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5212 case $cf_add_cflags in
5214 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5216 CPPFLAGS=`echo "$CPPFLAGS" | \
5217 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5218 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5223 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5224 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
5231 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5232 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
5239 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5240 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5242 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
5244 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5245 && test -z "${cf_tst_cflags}" \
5246 && cf_fix_cppflags=no
5251 if test -n "$cf_new_cflags" ; then
5253 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5254 CFLAGS="${CFLAGS}$cf_new_cflags"
5258 if test -n "$cf_new_cppflags" ; then
5260 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5261 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
5265 if test -n "$cf_new_extra_cppflags" ; then
5267 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5268 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
5276 fi # cf_cv_posix_visible
5278 echo "$as_me:5278: checking for signal global datatype" >&5
5279 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
5280 if test "${cf_cv_sig_atomic_t+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 "volatile sig_atomic_t" \
5289 cat >conftest.$ac_ext <<_ACEOF
5290 #line 5290 "configure"
5291 #include "confdefs.h"
5293 #include <sys/types.h>
5299 static void handler(int sig)
5306 signal(SIGINT, handler);
5312 rm -f conftest.$ac_objext
5313 if { (eval echo "$as_me:5313: \"$ac_compile\"") >&5
5314 (eval $ac_compile) 2>&5
5316 echo "$as_me:5316: \$? = $ac_status" >&5
5317 (exit $ac_status); } &&
5318 { ac_try='test -s conftest.$ac_objext'
5319 { (eval echo "$as_me:5319: \"$ac_try\"") >&5
5322 echo "$as_me:5322: \$? = $ac_status" >&5
5323 (exit $ac_status); }; }; then
5324 cf_cv_sig_atomic_t=$cf_type
5326 echo "$as_me: failed program was:" >&5
5327 cat conftest.$ac_ext >&5
5328 cf_cv_sig_atomic_t=no
5330 rm -f conftest.$ac_objext conftest.$ac_ext
5331 test "$cf_cv_sig_atomic_t" != no && break
5336 echo "$as_me:5336: result: $cf_cv_sig_atomic_t" >&5
5337 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
5338 test "$cf_cv_sig_atomic_t" != no &&
5339 cat >>confdefs.h <<EOF
5340 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
5343 # Work around breakage on OS X
5345 echo "$as_me:5345: checking if SIGWINCH is defined" >&5
5346 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
5347 if test "${cf_cv_define_sigwinch+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 cat >conftest.$ac_ext <<_ACEOF
5352 #line 5352 "configure"
5353 #include "confdefs.h"
5355 #include <sys/types.h>
5356 #include <sys/signal.h>
5366 rm -f conftest.$ac_objext
5367 if { (eval echo "$as_me:5367: \"$ac_compile\"") >&5
5368 (eval $ac_compile) 2>&5
5370 echo "$as_me:5370: \$? = $ac_status" >&5
5371 (exit $ac_status); } &&
5372 { ac_try='test -s conftest.$ac_objext'
5373 { (eval echo "$as_me:5373: \"$ac_try\"") >&5
5376 echo "$as_me:5376: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 cf_cv_define_sigwinch=yes
5380 echo "$as_me: failed program was:" >&5
5381 cat conftest.$ac_ext >&5
5382 cat >conftest.$ac_ext <<_ACEOF
5383 #line 5383 "configure"
5384 #include "confdefs.h"
5386 #undef _XOPEN_SOURCE
5387 #undef _POSIX_SOURCE
5388 #undef _POSIX_C_SOURCE
5389 #include <sys/types.h>
5390 #include <sys/signal.h>
5400 rm -f conftest.$ac_objext
5401 if { (eval echo "$as_me:5401: \"$ac_compile\"") >&5
5402 (eval $ac_compile) 2>&5
5404 echo "$as_me:5404: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try='test -s conftest.$ac_objext'
5407 { (eval echo "$as_me:5407: \"$ac_try\"") >&5
5410 echo "$as_me:5410: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5412 cf_cv_define_sigwinch=maybe
5414 echo "$as_me: failed program was:" >&5
5415 cat conftest.$ac_ext >&5
5416 cf_cv_define_sigwinch=no
5418 rm -f conftest.$ac_objext conftest.$ac_ext
5421 rm -f conftest.$ac_objext conftest.$ac_ext
5424 echo "$as_me:5424: result: $cf_cv_define_sigwinch" >&5
5425 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
5427 if test "$cf_cv_define_sigwinch" = maybe ; then
5428 echo "$as_me:5428: checking for actual SIGWINCH definition" >&5
5429 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
5430 if test "${cf_cv_fixup_sigwinch+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 cf_cv_fixup_sigwinch=unknown
5436 while test $cf_sigwinch != 1
5438 cat >conftest.$ac_ext <<_ACEOF
5439 #line 5439 "configure"
5440 #include "confdefs.h"
5442 #undef _XOPEN_SOURCE
5443 #undef _POSIX_SOURCE
5444 #undef _POSIX_C_SOURCE
5445 #include <sys/types.h>
5446 #include <sys/signal.h>
5452 #if SIGWINCH != $cf_sigwinch
5460 rm -f conftest.$ac_objext
5461 if { (eval echo "$as_me:5461: \"$ac_compile\"") >&5
5462 (eval $ac_compile) 2>&5
5464 echo "$as_me:5464: \$? = $ac_status" >&5
5465 (exit $ac_status); } &&
5466 { ac_try='test -s conftest.$ac_objext'
5467 { (eval echo "$as_me:5467: \"$ac_try\"") >&5
5470 echo "$as_me:5470: \$? = $ac_status" >&5
5471 (exit $ac_status); }; }; then
5472 cf_cv_fixup_sigwinch=$cf_sigwinch
5475 echo "$as_me: failed program was:" >&5
5476 cat conftest.$ac_ext >&5
5478 rm -f conftest.$ac_objext conftest.$ac_ext
5480 cf_sigwinch=`expr $cf_sigwinch - 1`
5484 echo "$as_me:5484: result: $cf_cv_fixup_sigwinch" >&5
5485 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
5487 if test "$cf_cv_fixup_sigwinch" != unknown ; then
5488 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
5492 # Checks for CODESET support.
5494 echo "$as_me:5494: checking for nl_langinfo and CODESET" >&5
5495 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
5496 if test "${am_cv_langinfo_codeset+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 cat >conftest.$ac_ext <<_ACEOF
5500 #line 5500 "configure"
5501 #include "confdefs.h"
5502 #include <langinfo.h>
5506 char* cs = nl_langinfo(CODESET);
5511 rm -f conftest.$ac_objext conftest$ac_exeext
5512 if { (eval echo "$as_me:5512: \"$ac_link\"") >&5
5513 (eval $ac_link) 2>&5
5515 echo "$as_me:5515: \$? = $ac_status" >&5
5516 (exit $ac_status); } &&
5517 { ac_try='test -s conftest$ac_exeext'
5518 { (eval echo "$as_me:5518: \"$ac_try\"") >&5
5521 echo "$as_me:5521: \$? = $ac_status" >&5
5522 (exit $ac_status); }; }; then
5523 am_cv_langinfo_codeset=yes
5525 echo "$as_me: failed program was:" >&5
5526 cat conftest.$ac_ext >&5
5527 am_cv_langinfo_codeset=no
5529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5532 echo "$as_me:5532: result: $am_cv_langinfo_codeset" >&5
5533 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
5534 if test $am_cv_langinfo_codeset = yes; then
5536 cat >>confdefs.h <<\EOF
5537 #define HAVE_LANGINFO_CODESET 1
5542 echo "$as_me:5542: checking if you want to use pkg-config" >&5
5543 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
5545 # Check whether --with-pkg-config or --without-pkg-config was given.
5546 if test "${with_pkg_config+set}" = set; then
5547 withval="$with_pkg_config"
5548 cf_pkg_config=$withval
5552 echo "$as_me:5552: result: $cf_pkg_config" >&5
5553 echo "${ECHO_T}$cf_pkg_config" >&6
5555 case $cf_pkg_config in
5561 if test -n "$ac_tool_prefix"; then
5562 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5563 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5564 echo "$as_me:5564: checking for $ac_word" >&5
5565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5566 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5574 ac_save_IFS=$IFS; IFS=$ac_path_separator
5576 for ac_dir in $ac_dummy; do
5578 test -z "$ac_dir" && ac_dir=.
5579 if $as_executable_p "$ac_dir/$ac_word"; then
5580 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
5581 echo "$as_me:5581: found $ac_dir/$ac_word" >&5
5589 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5591 if test -n "$PKG_CONFIG"; then
5592 echo "$as_me:5592: result: $PKG_CONFIG" >&5
5593 echo "${ECHO_T}$PKG_CONFIG" >&6
5595 echo "$as_me:5595: result: no" >&5
5596 echo "${ECHO_T}no" >&6
5600 if test -z "$ac_cv_path_PKG_CONFIG"; then
5601 ac_pt_PKG_CONFIG=$PKG_CONFIG
5602 # Extract the first word of "pkg-config", so it can be a program name with args.
5603 set dummy pkg-config; ac_word=$2
5604 echo "$as_me:5604: checking for $ac_word" >&5
5605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5606 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 case $ac_pt_PKG_CONFIG in
5611 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5614 ac_save_IFS=$IFS; IFS=$ac_path_separator
5616 for ac_dir in $ac_dummy; do
5618 test -z "$ac_dir" && ac_dir=.
5619 if $as_executable_p "$ac_dir/$ac_word"; then
5620 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
5621 echo "$as_me:5621: found $ac_dir/$ac_word" >&5
5626 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
5630 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5632 if test -n "$ac_pt_PKG_CONFIG"; then
5633 echo "$as_me:5633: result: $ac_pt_PKG_CONFIG" >&5
5634 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
5636 echo "$as_me:5636: result: no" >&5
5637 echo "${ECHO_T}no" >&6
5640 PKG_CONFIG=$ac_pt_PKG_CONFIG
5642 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5651 test -z "$PKG_CONFIG" && PKG_CONFIG=none
5652 if test "$PKG_CONFIG" != none ; then
5654 if test "x$prefix" != xNONE; then
5655 cf_path_syntax="$prefix"
5657 cf_path_syntax="$ac_default_prefix"
5660 case ".$PKG_CONFIG" in
5665 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5667 (.\${*prefix}*|.\${*dir}*)
5668 eval PKG_CONFIG="$PKG_CONFIG"
5669 case ".$PKG_CONFIG" in
5671 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
5676 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
5679 { { echo "$as_me:5679: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
5680 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
5681 { (exit 1); exit 1; }; }
5685 elif test "x$cf_pkg_config" != xno ; then
5686 { echo "$as_me:5686: WARNING: pkg-config is not installed" >&5
5687 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
5690 echo "$as_me:5690: checking if you want to see long compiling messages" >&5
5691 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
5693 # Check whether --enable-echo or --disable-echo was given.
5694 if test "${enable_echo+set}" = set; then
5695 enableval="$enable_echo"
5696 test "$enableval" != no && enableval=yes
5697 if test "$enableval" != "yes" ; then
5700 ECHO_LD='@echo linking $@;'
5701 RULE_CC='@echo compiling $<'
5702 SHOW_CC='@echo compiling $@'
5724 echo "$as_me:5724: result: $enableval" >&5
5725 echo "${ECHO_T}$enableval" >&6
5727 echo "$as_me:5727: checking for ncurses wrap-prefix" >&5
5728 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
5730 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
5731 if test "${with_ncurses_wrap_prefix+set}" = set; then
5732 withval="$with_ncurses_wrap_prefix"
5733 NCURSES_WRAP_PREFIX=$withval
5735 NCURSES_WRAP_PREFIX=_nc_
5737 echo "$as_me:5737: result: $NCURSES_WRAP_PREFIX" >&5
5738 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
5740 echo "$as_me:5740: checking if you want to check for wide-character functions" >&5
5741 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
5743 # Check whether --enable-widec or --disable-widec was given.
5744 if test "${enable_widec+set}" = set; then
5745 enableval="$enable_widec"
5746 test "$enableval" != no && enableval=yes
5747 if test "$enableval" != "yes" ; then
5757 echo "$as_me:5757: result: $cf_enable_widec" >&5
5758 echo "${ECHO_T}$cf_enable_widec" >&6
5760 echo "$as_me:5760: checking for specific curses-directory" >&5
5761 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
5763 # Check whether --with-curses-dir or --without-curses-dir was given.
5764 if test "${with_curses_dir+set}" = set; then
5765 withval="$with_curses_dir"
5766 cf_cv_curses_dir=$withval
5770 echo "$as_me:5770: result: $cf_cv_curses_dir" >&5
5771 echo "${ECHO_T}$cf_cv_curses_dir" >&6
5773 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
5776 if test "x$prefix" != xNONE; then
5777 cf_path_syntax="$prefix"
5779 cf_path_syntax="$ac_default_prefix"
5787 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5789 (.\${*prefix}*|.\${*dir}*)
5790 eval withval="$withval"
5793 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5798 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5801 { { echo "$as_me:5801: error: expected a pathname, not \"$withval\"" >&5
5802 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
5803 { (exit 1); exit 1; }; }
5807 if test -d "$cf_cv_curses_dir"
5810 if test -n "$cf_cv_curses_dir/include" ; then
5811 for cf_add_incdir in $cf_cv_curses_dir/include
5813 while test $cf_add_incdir != /usr/include
5815 if test -d $cf_add_incdir
5818 if test -n "$CFLAGS$CPPFLAGS" ; then
5819 # a loop is needed to ensure we can add subdirs of existing dirs
5820 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5821 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5822 cf_have_incdir=yes; break
5827 if test "$cf_have_incdir" = no ; then
5828 if test "$cf_add_incdir" = /usr/local/include ; then
5829 if test "$GCC" = yes
5831 cf_save_CPPFLAGS=$CPPFLAGS
5833 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5834 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
5836 cat >conftest.$ac_ext <<_ACEOF
5837 #line 5837 "configure"
5838 #include "confdefs.h"
5848 rm -f conftest.$ac_objext
5849 if { (eval echo "$as_me:5849: \"$ac_compile\"") >&5
5850 (eval $ac_compile) 2>&5
5852 echo "$as_me:5852: \$? = $ac_status" >&5
5853 (exit $ac_status); } &&
5854 { ac_try='test -s conftest.$ac_objext'
5855 { (eval echo "$as_me:5855: \"$ac_try\"") >&5
5858 echo "$as_me:5858: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5862 echo "$as_me: failed program was:" >&5
5863 cat conftest.$ac_ext >&5
5866 rm -f conftest.$ac_objext conftest.$ac_ext
5867 CPPFLAGS=$cf_save_CPPFLAGS
5872 if test "$cf_have_incdir" = no ; then
5873 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5875 echo "${as_me:-configure}:5875: testing adding $cf_add_incdir to include-path ..." 1>&5
5877 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5879 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5880 test "$cf_top_incdir" = "$cf_add_incdir" && break
5881 cf_add_incdir="$cf_top_incdir"
5892 if test -n "$cf_cv_curses_dir/lib" ; then
5893 for cf_add_libdir in $cf_cv_curses_dir/lib
5895 if test $cf_add_libdir = /usr/lib ; then
5897 elif test -d $cf_add_libdir
5900 if test -n "$LDFLAGS$LIBS" ; then
5901 # a loop is needed to ensure we can add subdirs of existing dirs
5902 for cf_test_libdir in $LDFLAGS $LIBS ; do
5903 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5904 cf_have_libdir=yes; break
5908 if test "$cf_have_libdir" = no ; then
5909 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5911 echo "${as_me:-configure}:5911: testing adding $cf_add_libdir to library-path ..." 1>&5
5913 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5924 echo "$as_me:5924: checking for specified curses library type" >&5
5925 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
5927 # Check whether --with-screen or --without-screen was given.
5928 if test "${with_screen+set}" = set; then
5929 withval="$with_screen"
5930 cf_cv_screen=$withval
5933 # Check whether --with-ncursesw or --without-ncursesw was given.
5934 if test "${with_ncursesw+set}" = set; then
5935 withval="$with_ncursesw"
5936 cf_cv_screen=ncursesw
5939 # Check whether --with-ncurses or --without-ncurses was given.
5940 if test "${with_ncurses+set}" = set; then
5941 withval="$with_ncurses"
5942 cf_cv_screen=ncurses
5945 # Check whether --with-pdcurses or --without-pdcurses was given.
5946 if test "${with_pdcurses+set}" = set; then
5947 withval="$with_pdcurses"
5948 cf_cv_screen=pdcurses
5951 # Check whether --with-curses-colr or --without-curses-colr was given.
5952 if test "${with_curses_colr+set}" = set; then
5953 withval="$with_curses_colr"
5954 cf_cv_screen=curses_colr
5957 # Check whether --with-curses-5lib or --without-curses-5lib was given.
5958 if test "${with_curses_5lib+set}" = set; then
5959 withval="$with_curses_5lib"
5960 cf_cv_screen=curses_5lib
5968 echo "$as_me:5968: result: $cf_cv_screen" >&5
5969 echo "${ECHO_T}$cf_cv_screen" >&6
5971 case $cf_cv_screen in
5974 echo "$as_me:5974: checking for extra include directories" >&5
5975 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
5976 if test "${cf_cv_curses_incdir+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 cf_cv_curses_incdir=no
5983 if test "x$cf_cv_screen" = "xcurses_colr"
5985 test -d /usr/include/curses_colr && \
5986 cf_cv_curses_incdir="-I/usr/include/curses_colr"
5990 if test "x$cf_cv_screen" = "xcurses_5lib"
5992 test -d /usr/5lib && \
5993 test -d /usr/5include && \
5994 cf_cv_curses_incdir="-I/usr/5include"
6000 echo "$as_me:6000: result: $cf_cv_curses_incdir" >&5
6001 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
6002 if test "$cf_cv_curses_incdir" != no
6005 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6006 CPPFLAGS="${CPPFLAGS}$cf_cv_curses_incdir"
6010 echo "$as_me:6010: checking if we have identified curses headers" >&5
6011 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
6012 if test "${cf_cv_ncurses_header+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 cf_cv_ncurses_header=none
6019 curses.h ncurses/ncurses.h ncurses/curses.h
6021 cat >conftest.$ac_ext <<_ACEOF
6022 #line 6022 "configure"
6023 #include "confdefs.h"
6024 #include <${cf_header}>
6028 initscr(); tgoto("?", 0,0)
6033 rm -f conftest.$ac_objext
6034 if { (eval echo "$as_me:6034: \"$ac_compile\"") >&5
6035 (eval $ac_compile) 2>&5
6037 echo "$as_me:6037: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
6039 { ac_try='test -s conftest.$ac_objext'
6040 { (eval echo "$as_me:6040: \"$ac_try\"") >&5
6043 echo "$as_me:6043: \$? = $ac_status" >&5
6044 (exit $ac_status); }; }; then
6045 cf_cv_ncurses_header=$cf_header; break
6047 echo "$as_me: failed program was:" >&5
6048 cat conftest.$ac_ext >&5
6050 rm -f conftest.$ac_objext conftest.$ac_ext
6054 echo "$as_me:6054: result: $cf_cv_ncurses_header" >&5
6055 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
6057 if test "$cf_cv_ncurses_header" = none ; then
6058 { { echo "$as_me:6058: error: No curses header-files found" >&5
6059 echo "$as_me: error: No curses header-files found" >&2;}
6060 { (exit 1); exit 1; }; }
6063 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
6065 for ac_header in $cf_cv_ncurses_header
6067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6068 echo "$as_me:6068: checking for $ac_header" >&5
6069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 cat >conftest.$ac_ext <<_ACEOF
6074 #line 6074 "configure"
6075 #include "confdefs.h"
6076 #include <$ac_header>
6078 if { (eval echo "$as_me:6078: \"$ac_cpp conftest.$ac_ext\"") >&5
6079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6081 egrep -v '^ *\+' conftest.er1 >conftest.err
6083 cat conftest.err >&5
6084 echo "$as_me:6084: \$? = $ac_status" >&5
6085 (exit $ac_status); } >/dev/null; then
6086 if test -s conftest.err; then
6087 ac_cpp_err=$ac_c_preproc_warn_flag
6094 if test -z "$ac_cpp_err"; then
6095 eval "$as_ac_Header=yes"
6097 echo "$as_me: failed program was:" >&5
6098 cat conftest.$ac_ext >&5
6099 eval "$as_ac_Header=no"
6101 rm -f conftest.err conftest.$ac_ext
6103 echo "$as_me:6103: result: `eval echo '${'$as_ac_Header'}'`" >&5
6104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6106 cat >>confdefs.h <<EOF
6107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6113 echo "$as_me:6113: checking for terminfo header" >&5
6114 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6115 if test "${cf_cv_term_header+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 case ${cf_cv_ncurses_header} in
6120 (*/ncurses.h|*/ncursesw.h)
6121 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6124 cf_term_header=term.h
6128 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6130 cat >conftest.$ac_ext <<_ACEOF
6131 #line 6131 "configure"
6132 #include "confdefs.h"
6134 #include <${cf_cv_ncurses_header:-curses.h}>
6140 int x = auto_left_margin
6145 rm -f conftest.$ac_objext
6146 if { (eval echo "$as_me:6146: \"$ac_compile\"") >&5
6147 (eval $ac_compile) 2>&5
6149 echo "$as_me:6149: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -s conftest.$ac_objext'
6152 { (eval echo "$as_me:6152: \"$ac_try\"") >&5
6155 echo "$as_me:6155: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6158 cf_cv_term_header="$cf_test"
6160 echo "$as_me: failed program was:" >&5
6161 cat conftest.$ac_ext >&5
6163 cf_cv_term_header=unknown
6166 rm -f conftest.$ac_objext conftest.$ac_ext
6167 test "$cf_cv_term_header" != unknown && break
6171 echo "$as_me:6171: result: $cf_cv_term_header" >&5
6172 echo "${ECHO_T}$cf_cv_term_header" >&6
6174 # Set definitions to allow ifdef'ing to accommodate subdirectories
6176 case $cf_cv_term_header in
6179 cat >>confdefs.h <<\EOF
6180 #define HAVE_TERM_H 1
6186 case $cf_cv_term_header in
6189 cat >>confdefs.h <<\EOF
6190 #define HAVE_NCURSES_TERM_H 1
6196 cat >>confdefs.h <<\EOF
6197 #define HAVE_NCURSESW_TERM_H 1
6203 echo "$as_me:6203: checking for ncurses version" >&5
6204 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
6205 if test "${cf_cv_ncurses_version+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 cf_cv_ncurses_version=no
6212 if test "$cross_compiling" = yes; then
6214 # This will not work if the preprocessor splits the line after the
6215 # Autoconf token. The 'unproto' program does that.
6216 cat > conftest.$ac_ext <<EOF
6217 #include <${cf_cv_ncurses_header:-curses.h}>
6219 #ifdef NCURSES_VERSION
6220 Autoconf NCURSES_VERSION
6228 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
6229 { (eval echo "$as_me:6229: \"$cf_try\"") >&5
6232 echo "$as_me:6232: \$? = $ac_status" >&5
6233 (exit $ac_status); }
6234 if test -f conftest.out ; then
6235 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
6236 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
6241 cat >conftest.$ac_ext <<_ACEOF
6242 #line 6242 "configure"
6243 #include "confdefs.h"
6245 #include <${cf_cv_ncurses_header:-curses.h}>
6249 FILE *fp = fopen("$cf_tempfile", "w");
6250 #ifdef NCURSES_VERSION
6251 # ifdef NCURSES_VERSION_PATCH
6252 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
6254 fprintf(fp, "%s\n", NCURSES_VERSION);
6258 fprintf(fp, "old\n");
6263 ${cf_cv_main_return:-return}(0);
6266 rm -f conftest$ac_exeext
6267 if { (eval echo "$as_me:6267: \"$ac_link\"") >&5
6268 (eval $ac_link) 2>&5
6270 echo "$as_me:6270: \$? = $ac_status" >&5
6271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6272 { (eval echo "$as_me:6272: \"$ac_try\"") >&5
6275 echo "$as_me:6275: \$? = $ac_status" >&5
6276 (exit $ac_status); }; }; then
6278 cf_cv_ncurses_version=`cat $cf_tempfile`
6280 echo "$as_me: program exited with status $ac_status" >&5
6281 echo "$as_me: failed program was:" >&5
6282 cat conftest.$ac_ext >&5
6284 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6289 echo "$as_me:6289: result: $cf_cv_ncurses_version" >&5
6290 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
6291 test "$cf_cv_ncurses_version" = no ||
6292 cat >>confdefs.h <<\EOF
6296 echo "$as_me:6296: checking if we have identified curses libraries" >&5
6297 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
6298 cat >conftest.$ac_ext <<_ACEOF
6299 #line 6299 "configure"
6300 #include "confdefs.h"
6301 #include <${cf_cv_ncurses_header:-curses.h}>
6305 initscr(); tgoto("?", 0,0)
6310 rm -f conftest.$ac_objext conftest$ac_exeext
6311 if { (eval echo "$as_me:6311: \"$ac_link\"") >&5
6312 (eval $ac_link) 2>&5
6314 echo "$as_me:6314: \$? = $ac_status" >&5
6315 (exit $ac_status); } &&
6316 { ac_try='test -s conftest$ac_exeext'
6317 { (eval echo "$as_me:6317: \"$ac_try\"") >&5
6320 echo "$as_me:6320: \$? = $ac_status" >&5
6321 (exit $ac_status); }; }; then
6324 echo "$as_me: failed program was:" >&5
6325 cat conftest.$ac_ext >&5
6328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6329 echo "$as_me:6329: result: $cf_result" >&5
6330 echo "${ECHO_T}$cf_result" >&6
6332 if test "$cf_result" = no ; then
6335 echo "$as_me:6335: checking for tgoto in -lmytinfo" >&5
6336 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6337 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 ac_check_lib_save_LIBS=$LIBS
6341 LIBS="-lmytinfo $LIBS"
6342 cat >conftest.$ac_ext <<_ACEOF
6343 #line 6343 "configure"
6344 #include "confdefs.h"
6346 /* Override any gcc2 internal prototype to avoid an error. */
6350 /* We use char because int might match the return type of a gcc2
6351 builtin and then its argument prototype would still apply. */
6361 rm -f conftest.$ac_objext conftest$ac_exeext
6362 if { (eval echo "$as_me:6362: \"$ac_link\"") >&5
6363 (eval $ac_link) 2>&5
6365 echo "$as_me:6365: \$? = $ac_status" >&5
6366 (exit $ac_status); } &&
6367 { ac_try='test -s conftest$ac_exeext'
6368 { (eval echo "$as_me:6368: \"$ac_try\"") >&5
6371 echo "$as_me:6371: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 ac_cv_lib_mytinfo_tgoto=yes
6375 echo "$as_me: failed program was:" >&5
6376 cat conftest.$ac_ext >&5
6377 ac_cv_lib_mytinfo_tgoto=no
6379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6380 LIBS=$ac_check_lib_save_LIBS
6382 echo "$as_me:6382: result: $ac_cv_lib_mytinfo_tgoto" >&5
6383 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
6384 if test $ac_cv_lib_mytinfo_tgoto = yes; then
6389 for cf_add_1lib in -lmytinfo; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6391 for cf_add_1lib in $cf_add_0lib; do
6392 for cf_add_2lib in $cf_add_libs; do
6393 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6398 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6406 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
6407 # next (1998), and xcurses "newer" (2000). There is no header file for
6408 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
6409 # term.h) for cur_colr
6410 if test "x$cf_cv_screen" = "xcurses_colr"
6412 echo "$as_me:6412: checking for initscr in -lcur_colr" >&5
6413 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
6414 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 ac_check_lib_save_LIBS=$LIBS
6418 LIBS="-lcur_colr $LIBS"
6419 cat >conftest.$ac_ext <<_ACEOF
6420 #line 6420 "configure"
6421 #include "confdefs.h"
6423 /* Override any gcc2 internal prototype to avoid an error. */
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6438 rm -f conftest.$ac_objext conftest$ac_exeext
6439 if { (eval echo "$as_me:6439: \"$ac_link\"") >&5
6440 (eval $ac_link) 2>&5
6442 echo "$as_me:6442: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
6444 { ac_try='test -s conftest$ac_exeext'
6445 { (eval echo "$as_me:6445: \"$ac_try\"") >&5
6448 echo "$as_me:6448: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_cv_lib_cur_colr_initscr=yes
6452 echo "$as_me: failed program was:" >&5
6453 cat conftest.$ac_ext >&5
6454 ac_cv_lib_cur_colr_initscr=no
6456 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6457 LIBS=$ac_check_lib_save_LIBS
6459 echo "$as_me:6459: result: $ac_cv_lib_cur_colr_initscr" >&5
6460 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
6461 if test $ac_cv_lib_cur_colr_initscr = yes; then
6466 for cf_add_1lib in -lcur_colr; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6468 for cf_add_1lib in $cf_add_0lib; do
6469 for cf_add_2lib in $cf_add_libs; do
6470 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6475 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6479 ac_cv_func_initscr=yes
6483 echo "$as_me:6483: checking for initscr in -lHcurses" >&5
6484 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
6485 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 ac_check_lib_save_LIBS=$LIBS
6489 LIBS="-lHcurses $LIBS"
6490 cat >conftest.$ac_ext <<_ACEOF
6491 #line 6491 "configure"
6492 #include "confdefs.h"
6494 /* Override any gcc2 internal prototype to avoid an error. */
6498 /* We use char because int might match the return type of a gcc2
6499 builtin and then its argument prototype would still apply. */
6509 rm -f conftest.$ac_objext conftest$ac_exeext
6510 if { (eval echo "$as_me:6510: \"$ac_link\"") >&5
6511 (eval $ac_link) 2>&5
6513 echo "$as_me:6513: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -s conftest$ac_exeext'
6516 { (eval echo "$as_me:6516: \"$ac_try\"") >&5
6519 echo "$as_me:6519: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 ac_cv_lib_Hcurses_initscr=yes
6523 echo "$as_me: failed program was:" >&5
6524 cat conftest.$ac_ext >&5
6525 ac_cv_lib_Hcurses_initscr=no
6527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6528 LIBS=$ac_check_lib_save_LIBS
6530 echo "$as_me:6530: result: $ac_cv_lib_Hcurses_initscr" >&5
6531 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
6532 if test $ac_cv_lib_Hcurses_initscr = yes; then
6534 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
6539 for cf_add_1lib in -lHcurses; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6541 for cf_add_1lib in $cf_add_0lib; do
6542 for cf_add_2lib in $cf_add_libs; do
6543 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6548 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6552 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6553 CPPFLAGS="${CPPFLAGS}-D__HP_CURSES -D_HP_CURSES"
6555 ac_cv_func_initscr=yes
6564 case `arch 2>/dev/null` in
6569 if test -n "/lib64" ; then
6570 for cf_add_libdir in /lib64
6572 if test $cf_add_libdir = /usr/lib ; then
6574 elif test -d $cf_add_libdir
6577 if test -n "$LDFLAGS$LIBS" ; then
6578 # a loop is needed to ensure we can add subdirs of existing dirs
6579 for cf_test_libdir in $LDFLAGS $LIBS ; do
6580 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6581 cf_have_libdir=yes; break
6585 if test "$cf_have_libdir" = no ; then
6586 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6588 echo "${as_me:-configure}:6588: testing adding $cf_add_libdir to library-path ..." 1>&5
6590 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6598 if test -n "/lib" ; then
6599 for cf_add_libdir in /lib
6601 if test $cf_add_libdir = /usr/lib ; then
6603 elif test -d $cf_add_libdir
6606 if test -n "$LDFLAGS$LIBS" ; then
6607 # a loop is needed to ensure we can add subdirs of existing dirs
6608 for cf_test_libdir in $LDFLAGS $LIBS ; do
6609 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6610 cf_have_libdir=yes; break
6614 if test "$cf_have_libdir" = no ; then
6615 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6617 echo "${as_me:-configure}:6617: testing adding $cf_add_libdir to library-path ..." 1>&5
6619 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6629 if test -n "/lib" ; then
6630 for cf_add_libdir in /lib
6632 if test $cf_add_libdir = /usr/lib ; then
6634 elif test -d $cf_add_libdir
6637 if test -n "$LDFLAGS$LIBS" ; then
6638 # a loop is needed to ensure we can add subdirs of existing dirs
6639 for cf_test_libdir in $LDFLAGS $LIBS ; do
6640 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6641 cf_have_libdir=yes; break
6645 if test "$cf_have_libdir" = no ; then
6646 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6648 echo "${as_me:-configure}:6648: testing adding $cf_add_libdir to library-path ..." 1>&5
6650 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6660 if test "x$cf_cv_screen" = "xcurses_5lib"
6662 if test -d /usr/5lib ; then
6664 if test -n "/usr/5lib" ; then
6665 for cf_add_libdir in /usr/5lib
6667 if test $cf_add_libdir = /usr/lib ; then
6669 elif test -d $cf_add_libdir
6672 if test -n "$LDFLAGS$LIBS" ; then
6673 # a loop is needed to ensure we can add subdirs of existing dirs
6674 for cf_test_libdir in $LDFLAGS $LIBS ; do
6675 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6676 cf_have_libdir=yes; break
6680 if test "$cf_have_libdir" = no ; then
6681 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6683 echo "${as_me:-configure}:6683: testing adding $cf_add_libdir to library-path ..." 1>&5
6685 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6694 for cf_add_1lib in -lcurses -ltermcap; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6696 for cf_add_1lib in $cf_add_0lib; do
6697 for cf_add_2lib in $cf_add_libs; do
6698 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6703 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6709 ac_cv_func_initscr=yes
6713 if test ".$ac_cv_func_initscr" != .yes ; then
6714 cf_save_LIBS="$LIBS"
6716 if test ".${cf_cv_ncurses_version:-no}" != .no
6718 cf_check_list="ncurses curses cursesX"
6720 cf_check_list="cursesX curses ncurses"
6723 # Check for library containing tgoto. Do this before curses library
6724 # because it may be needed to link the test-case for initscr.
6725 if test "x$cf_term_lib" = x
6727 echo "$as_me:6727: checking for tgoto" >&5
6728 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
6729 if test "${ac_cv_func_tgoto+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 cat >conftest.$ac_ext <<_ACEOF
6733 #line 6733 "configure"
6734 #include "confdefs.h"
6735 #define tgoto autoconf_temporary
6736 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
6743 /* We use char because int might match the return type of a gcc2
6744 builtin and then its argument prototype would still apply. */
6751 /* The GNU C library defines stubs for functions which it implements
6752 to always fail with ENOSYS. Some functions are actually named
6753 something starting with __ and the normal name is an alias. */
6754 #if defined (__stub_tgoto) || defined (__stub___tgoto)
6755 #error found stub for tgoto
6763 rm -f conftest.$ac_objext conftest$ac_exeext
6764 if { (eval echo "$as_me:6764: \"$ac_link\"") >&5
6765 (eval $ac_link) 2>&5
6767 echo "$as_me:6767: \$? = $ac_status" >&5
6768 (exit $ac_status); } &&
6769 { ac_try='test -s conftest$ac_exeext'
6770 { (eval echo "$as_me:6770: \"$ac_try\"") >&5
6773 echo "$as_me:6773: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 ac_cv_func_tgoto=yes
6777 echo "$as_me: failed program was:" >&5
6778 cat conftest.$ac_ext >&5
6781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6783 echo "$as_me:6783: result: $ac_cv_func_tgoto" >&5
6784 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
6785 if test $ac_cv_func_tgoto = yes; then
6786 cf_term_lib=predefined
6789 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
6791 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
6792 echo "$as_me:6792: checking for tgoto in -l$cf_term_lib" >&5
6793 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
6794 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6795 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 ac_check_lib_save_LIBS=$LIBS
6798 LIBS="-l$cf_term_lib $LIBS"
6799 cat >conftest.$ac_ext <<_ACEOF
6800 #line 6800 "configure"
6801 #include "confdefs.h"
6803 /* Override any gcc2 internal prototype to avoid an error. */
6807 /* We use char because int might match the return type of a gcc2
6808 builtin and then its argument prototype would still apply. */
6818 rm -f conftest.$ac_objext conftest$ac_exeext
6819 if { (eval echo "$as_me:6819: \"$ac_link\"") >&5
6820 (eval $ac_link) 2>&5
6822 echo "$as_me:6822: \$? = $ac_status" >&5
6823 (exit $ac_status); } &&
6824 { ac_try='test -s conftest$ac_exeext'
6825 { (eval echo "$as_me:6825: \"$ac_try\"") >&5
6828 echo "$as_me:6828: \$? = $ac_status" >&5
6829 (exit $ac_status); }; }; then
6830 eval "$as_ac_Lib=yes"
6832 echo "$as_me: failed program was:" >&5
6833 cat conftest.$ac_ext >&5
6834 eval "$as_ac_Lib=no"
6836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6837 LIBS=$ac_check_lib_save_LIBS
6839 echo "$as_me:6839: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6840 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6841 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6843 : ${cf_nculib_root:=$cf_term_lib}
6854 # Check for library containing initscr
6855 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
6856 if test "x$cf_curs_lib" = x
6858 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
6860 LIBS="-l$cf_curs_lib $cf_save_LIBS"
6861 if test "$cf_term_lib" = unknown || test "$cf_term_lib" = "$cf_curs_lib" ; then
6862 echo "$as_me:6862: checking if we can link with $cf_curs_lib library" >&5
6863 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
6864 cat >conftest.$ac_ext <<_ACEOF
6865 #line 6865 "configure"
6866 #include "confdefs.h"
6867 #include <${cf_cv_ncurses_header:-curses.h}>
6876 rm -f conftest.$ac_objext conftest$ac_exeext
6877 if { (eval echo "$as_me:6877: \"$ac_link\"") >&5
6878 (eval $ac_link) 2>&5
6880 echo "$as_me:6880: \$? = $ac_status" >&5
6881 (exit $ac_status); } &&
6882 { ac_try='test -s conftest$ac_exeext'
6883 { (eval echo "$as_me:6883: \"$ac_try\"") >&5
6886 echo "$as_me:6886: \$? = $ac_status" >&5
6887 (exit $ac_status); }; }; then
6890 echo "$as_me: failed program was:" >&5
6891 cat conftest.$ac_ext >&5
6894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6895 echo "$as_me:6895: result: $cf_result" >&5
6896 echo "${ECHO_T}$cf_result" >&6
6897 test $cf_result = yes && break
6898 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
6900 elif test "$cf_term_lib" != predefined ; then
6901 echo "$as_me:6901: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
6902 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
6903 cat >conftest.$ac_ext <<_ACEOF
6904 #line 6904 "configure"
6905 #include "confdefs.h"
6906 #include <${cf_cv_ncurses_header:-curses.h}>
6910 initscr(); tgoto((char *)0, 0, 0);
6915 rm -f conftest.$ac_objext conftest$ac_exeext
6916 if { (eval echo "$as_me:6916: \"$ac_link\"") >&5
6917 (eval $ac_link) 2>&5
6919 echo "$as_me:6919: \$? = $ac_status" >&5
6920 (exit $ac_status); } &&
6921 { ac_try='test -s conftest$ac_exeext'
6922 { (eval echo "$as_me:6922: \"$ac_try\"") >&5
6925 echo "$as_me:6925: \$? = $ac_status" >&5
6926 (exit $ac_status); }; }; then
6929 echo "$as_me: failed program was:" >&5
6930 cat conftest.$ac_ext >&5
6932 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
6933 cat >conftest.$ac_ext <<_ACEOF
6934 #line 6934 "configure"
6935 #include "confdefs.h"
6936 #include <${cf_cv_ncurses_header:-curses.h}>
6945 rm -f conftest.$ac_objext conftest$ac_exeext
6946 if { (eval echo "$as_me:6946: \"$ac_link\"") >&5
6947 (eval $ac_link) 2>&5
6949 echo "$as_me:6949: \$? = $ac_status" >&5
6950 (exit $ac_status); } &&
6951 { ac_try='test -s conftest$ac_exeext'
6952 { (eval echo "$as_me:6952: \"$ac_try\"") >&5
6955 echo "$as_me:6955: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6959 echo "$as_me: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6966 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6967 echo "$as_me:6967: result: $cf_result" >&5
6968 echo "${ECHO_T}$cf_result" >&6
6969 test $cf_result != error && break
6973 test $cf_curs_lib = unknown && { { echo "$as_me:6973: error: no curses library found" >&5
6974 echo "$as_me: error: no curses library found" >&2;}
6975 { (exit 1); exit 1; }; }
6982 echo "$as_me:6982: checking for multibyte character support" >&5
6983 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
6984 if test "${cf_cv_utf8_lib+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 cf_save_LIBS="$LIBS"
6989 cat >conftest.$ac_ext <<_ACEOF
6990 #line 6990 "configure"
6991 #include "confdefs.h"
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (eval echo "$as_me:7003: \"$ac_link\"") >&5
7004 (eval $ac_link) 2>&5
7006 echo "$as_me:7006: \$? = $ac_status" >&5
7007 (exit $ac_status); } &&
7008 { ac_try='test -s conftest$ac_exeext'
7009 { (eval echo "$as_me:7009: \"$ac_try\"") >&5
7012 echo "$as_me:7012: \$? = $ac_status" >&5
7013 (exit $ac_status); }; }; then
7016 echo "$as_me: failed program was:" >&5
7017 cat conftest.$ac_ext >&5
7019 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
7020 # will be set on completion of the AC_TRY_LINK below.
7021 cf_cv_header_path_utf8=
7022 cf_cv_library_path_utf8=
7024 echo "${as_me:-configure}:7024: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
7026 cf_save_LIBS="$LIBS"
7028 cat >conftest.$ac_ext <<_ACEOF
7029 #line 7029 "configure"
7030 #include "confdefs.h"
7032 #include <libutf8.h>
7041 rm -f conftest.$ac_objext conftest$ac_exeext
7042 if { (eval echo "$as_me:7042: \"$ac_link\"") >&5
7043 (eval $ac_link) 2>&5
7045 echo "$as_me:7045: \$? = $ac_status" >&5
7046 (exit $ac_status); } &&
7047 { ac_try='test -s conftest$ac_exeext'
7048 { (eval echo "$as_me:7048: \"$ac_try\"") >&5
7051 echo "$as_me:7051: \$? = $ac_status" >&5
7052 (exit $ac_status); }; }; then
7054 cf_cv_find_linkage_utf8=yes
7055 cf_cv_header_path_utf8=/usr/include
7056 cf_cv_library_path_utf8=/usr/lib
7059 echo "$as_me: failed program was:" >&5
7060 cat conftest.$ac_ext >&5
7062 LIBS="-lutf8 $cf_save_LIBS"
7064 cat >conftest.$ac_ext <<_ACEOF
7065 #line 7065 "configure"
7066 #include "confdefs.h"
7068 #include <libutf8.h>
7077 rm -f conftest.$ac_objext conftest$ac_exeext
7078 if { (eval echo "$as_me:7078: \"$ac_link\"") >&5
7079 (eval $ac_link) 2>&5
7081 echo "$as_me:7081: \$? = $ac_status" >&5
7082 (exit $ac_status); } &&
7083 { ac_try='test -s conftest$ac_exeext'
7084 { (eval echo "$as_me:7084: \"$ac_try\"") >&5
7087 echo "$as_me:7087: \$? = $ac_status" >&5
7088 (exit $ac_status); }; }; then
7090 cf_cv_find_linkage_utf8=yes
7091 cf_cv_header_path_utf8=/usr/include
7092 cf_cv_library_path_utf8=/usr/lib
7093 cf_cv_library_file_utf8="-lutf8"
7096 echo "$as_me: failed program was:" >&5
7097 cat conftest.$ac_ext >&5
7099 cf_cv_find_linkage_utf8=no
7100 LIBS="$cf_save_LIBS"
7102 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
7104 echo "${as_me:-configure}:7104: testing find linkage for utf8 library ..." 1>&5
7106 echo "${as_me:-configure}:7106: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
7108 cf_save_CPPFLAGS="$CPPFLAGS"
7109 cf_test_CPPFLAGS="$CPPFLAGS"
7113 # collect the current set of include-directories from compiler flags
7114 cf_header_path_list=""
7115 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7116 for cf_header_path in $CPPFLAGS $CFLAGS
7118 case $cf_header_path in
7120 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7122 test "x$cf_header_path" != "xNONE" && \
7123 test -d "$cf_header_path" && \
7125 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7126 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7127 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
7128 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
7129 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
7130 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
7133 cf_header_path_list="$cf_header_path_list $cf_search"
7139 # add the variations for the package we are looking for
7143 test "x$prefix" != "xNONE" && \
7144 test -d "$prefix" && \
7146 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7147 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7148 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
7149 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
7150 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
7151 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
7154 for cf_subdir_prefix in \
7163 test "x$cf_subdir_prefix" != "x$prefix" && \
7164 test -d "$cf_subdir_prefix" && \
7165 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
7166 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
7167 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
7168 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
7169 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
7170 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
7171 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
7176 test "$includedir" != NONE && \
7177 test "$includedir" != "/usr/include" && \
7178 test -d "$includedir" && {
7179 test -d $includedir && cf_search="$cf_search $includedir"
7180 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
7183 test "$oldincludedir" != NONE && \
7184 test "$oldincludedir" != "/usr/include" && \
7185 test -d "$oldincludedir" && {
7186 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7187 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
7190 cf_search="$cf_search $cf_header_path_list"
7192 for cf_cv_header_path_utf8 in $cf_search
7194 if test -d $cf_cv_header_path_utf8 ; then
7195 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
7197 echo "${as_me:-configure}:7197: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
7199 CPPFLAGS="$cf_save_CPPFLAGS"
7201 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7202 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
7204 cat >conftest.$ac_ext <<_ACEOF
7205 #line 7205 "configure"
7206 #include "confdefs.h"
7208 #include <libutf8.h>
7217 rm -f conftest.$ac_objext
7218 if { (eval echo "$as_me:7218: \"$ac_compile\"") >&5
7219 (eval $ac_compile) 2>&5
7221 echo "$as_me:7221: \$? = $ac_status" >&5
7222 (exit $ac_status); } &&
7223 { ac_try='test -s conftest.$ac_objext'
7224 { (eval echo "$as_me:7224: \"$ac_try\"") >&5
7227 echo "$as_me:7227: \$? = $ac_status" >&5
7228 (exit $ac_status); }; }; then
7230 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
7232 echo "${as_me:-configure}:7232: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
7234 cf_cv_find_linkage_utf8=maybe
7235 cf_test_CPPFLAGS="$CPPFLAGS"
7238 echo "$as_me: failed program was:" >&5
7239 cat conftest.$ac_ext >&5
7241 CPPFLAGS="$cf_save_CPPFLAGS"
7244 rm -f conftest.$ac_objext conftest.$ac_ext
7248 if test "$cf_cv_find_linkage_utf8" = maybe ; then
7250 echo "${as_me:-configure}:7250: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
7252 cf_save_LIBS="$LIBS"
7253 cf_save_LDFLAGS="$LDFLAGS"
7255 if test "$cf_cv_find_linkage_utf8" != yes ; then
7258 cf_library_path_list=""
7259 if test -n "${LDFLAGS}${LIBS}" ; then
7260 for cf_library_path in $LDFLAGS $LIBS
7262 case $cf_library_path in
7264 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7266 test "x$cf_library_path" != "xNONE" && \
7267 test -d "$cf_library_path" && \
7269 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7270 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7271 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
7272 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
7273 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
7274 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
7277 cf_library_path_list="$cf_library_path_list $cf_search"
7285 test "x$prefix" != "xNONE" && \
7286 test -d "$prefix" && \
7288 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7289 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7290 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
7291 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
7292 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
7293 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
7296 for cf_subdir_prefix in \
7305 test "x$cf_subdir_prefix" != "x$prefix" && \
7306 test -d "$cf_subdir_prefix" && \
7307 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
7308 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
7309 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
7310 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
7311 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
7312 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
7313 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
7318 cf_search="$cf_library_path_list $cf_search"
7320 for cf_cv_library_path_utf8 in $cf_search
7322 if test -d $cf_cv_library_path_utf8 ; then
7323 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
7325 echo "${as_me:-configure}:7325: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
7327 CPPFLAGS="$cf_test_CPPFLAGS"
7328 LIBS="-lutf8 $cf_save_LIBS"
7329 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
7330 cat >conftest.$ac_ext <<_ACEOF
7331 #line 7331 "configure"
7332 #include "confdefs.h"
7334 #include <libutf8.h>
7343 rm -f conftest.$ac_objext conftest$ac_exeext
7344 if { (eval echo "$as_me:7344: \"$ac_link\"") >&5
7345 (eval $ac_link) 2>&5
7347 echo "$as_me:7347: \$? = $ac_status" >&5
7348 (exit $ac_status); } &&
7349 { ac_try='test -s conftest$ac_exeext'
7350 { (eval echo "$as_me:7350: \"$ac_try\"") >&5
7353 echo "$as_me:7353: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7356 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
7358 echo "${as_me:-configure}:7358: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
7360 cf_cv_find_linkage_utf8=yes
7361 cf_cv_library_file_utf8="-lutf8"
7364 echo "$as_me: failed program was:" >&5
7365 cat conftest.$ac_ext >&5
7367 CPPFLAGS="$cf_save_CPPFLAGS"
7368 LIBS="$cf_save_LIBS"
7369 LDFLAGS="$cf_save_LDFLAGS"
7372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7375 CPPFLAGS="$cf_save_CPPFLAGS"
7376 LDFLAGS="$cf_save_LDFLAGS"
7380 cf_cv_find_linkage_utf8=no
7384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7389 LIBS="$cf_save_LIBS"
7391 if test "$cf_cv_find_linkage_utf8" = yes ; then
7392 cf_cv_utf8_lib=add-on
7398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7400 echo "$as_me:7400: result: $cf_cv_utf8_lib" >&5
7401 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
7403 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
7405 if test "$cf_cv_utf8_lib" = "add-on" ; then
7407 cat >>confdefs.h <<\EOF
7408 #define HAVE_LIBUTF8_H 1
7411 if test -n "$cf_cv_header_path_utf8" ; then
7412 for cf_add_incdir in $cf_cv_header_path_utf8
7414 while test $cf_add_incdir != /usr/include
7416 if test -d $cf_add_incdir
7419 if test -n "$CFLAGS$CPPFLAGS" ; then
7420 # a loop is needed to ensure we can add subdirs of existing dirs
7421 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7422 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7423 cf_have_incdir=yes; break
7428 if test "$cf_have_incdir" = no ; then
7429 if test "$cf_add_incdir" = /usr/local/include ; then
7430 if test "$GCC" = yes
7432 cf_save_CPPFLAGS=$CPPFLAGS
7434 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7435 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
7437 cat >conftest.$ac_ext <<_ACEOF
7438 #line 7438 "configure"
7439 #include "confdefs.h"
7449 rm -f conftest.$ac_objext
7450 if { (eval echo "$as_me:7450: \"$ac_compile\"") >&5
7451 (eval $ac_compile) 2>&5
7453 echo "$as_me:7453: \$? = $ac_status" >&5
7454 (exit $ac_status); } &&
7455 { ac_try='test -s conftest.$ac_objext'
7456 { (eval echo "$as_me:7456: \"$ac_try\"") >&5
7459 echo "$as_me:7459: \$? = $ac_status" >&5
7460 (exit $ac_status); }; }; then
7463 echo "$as_me: failed program was:" >&5
7464 cat conftest.$ac_ext >&5
7467 rm -f conftest.$ac_objext conftest.$ac_ext
7468 CPPFLAGS=$cf_save_CPPFLAGS
7473 if test "$cf_have_incdir" = no ; then
7474 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7476 echo "${as_me:-configure}:7476: testing adding $cf_add_incdir to include-path ..." 1>&5
7478 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7480 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7481 test "$cf_top_incdir" = "$cf_add_incdir" && break
7482 cf_add_incdir="$cf_top_incdir"
7493 if test -n "$cf_cv_library_path_utf8" ; then
7494 for cf_add_libdir in $cf_cv_library_path_utf8
7496 if test $cf_add_libdir = /usr/lib ; then
7498 elif test -d $cf_add_libdir
7501 if test -n "$LDFLAGS$LIBS" ; then
7502 # a loop is needed to ensure we can add subdirs of existing dirs
7503 for cf_test_libdir in $LDFLAGS $LIBS ; do
7504 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7505 cf_have_libdir=yes; break
7509 if test "$cf_have_libdir" = no ; then
7510 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7512 echo "${as_me:-configure}:7512: testing adding $cf_add_libdir to library-path ..." 1>&5
7514 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7523 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7525 for cf_add_1lib in $cf_add_0lib; do
7526 for cf_add_2lib in $cf_add_libs; do
7527 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7532 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7538 cf_ncuconfig_root=$cf_cv_screen
7539 cf_have_ncuconfig=no
7541 if test "x${PKG_CONFIG:=none}" != xnone; then
7542 echo "$as_me:7542: checking pkg-config for $cf_ncuconfig_root" >&5
7543 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
7544 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
7545 echo "$as_me:7545: result: yes" >&5
7546 echo "${ECHO_T}yes" >&6
7548 echo "$as_me:7548: checking if the $cf_ncuconfig_root package files work" >&5
7549 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
7550 cf_have_ncuconfig=unknown
7552 cf_save_CFLAGS="$CFLAGS"
7553 cf_save_CPPFLAGS="$CPPFLAGS"
7554 cf_save_LIBS="$LIBS"
7556 cf_pkg_cflags=`$PKG_CONFIG --cflags $cf_ncuconfig_root`
7557 cf_pkg_libs=`$PKG_CONFIG --libs $cf_ncuconfig_root`
7559 # while -W for passing linker flags is prevalent, it is not "standard".
7560 # At least one wrapper for c89/c99 (in Apple's xcode) has its own
7561 # incompatible _and_ non-standard -W option which gives an error. Work
7562 # around that pitfall.
7563 case "x${CC}@@${cf_pkg_libs}@${cf_pkg_cflags}" in
7569 cf_new_extra_cppflags=
7571 for cf_add_cflags in $cf_pkg_cflags
7573 case $cf_fix_cppflags in
7575 case $cf_add_cflags in
7576 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7577 case $cf_add_cflags in
7579 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7581 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7582 && test -z "${cf_tst_cflags}" \
7583 && cf_fix_cppflags=yes
7585 if test $cf_fix_cppflags = yes ; then
7587 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7588 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7591 elif test "${cf_tst_cflags}" = "\"'" ; then
7593 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7594 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7604 case $cf_add_cflags in
7606 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7608 CPPFLAGS=`echo "$CPPFLAGS" | \
7609 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7610 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7615 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7616 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7623 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7624 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7631 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7632 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7634 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7636 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7637 && test -z "${cf_tst_cflags}" \
7638 && cf_fix_cppflags=no
7643 if test -n "$cf_new_cflags" ; then
7645 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7646 CFLAGS="${CFLAGS}$cf_new_cflags"
7650 if test -n "$cf_new_cppflags" ; then
7652 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7653 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7657 if test -n "$cf_new_extra_cppflags" ; then
7659 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7660 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7667 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7669 for cf_add_1lib in $cf_add_0lib; do
7670 for cf_add_2lib in $cf_add_libs; do
7671 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7676 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7680 cat >conftest.$ac_ext <<_ACEOF
7681 #line 7681 "configure"
7682 #include "confdefs.h"
7683 #include <${cf_cv_ncurses_header:-curses.h}>
7687 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7692 rm -f conftest.$ac_objext conftest$ac_exeext
7693 if { (eval echo "$as_me:7693: \"$ac_link\"") >&5
7694 (eval $ac_link) 2>&5
7696 echo "$as_me:7696: \$? = $ac_status" >&5
7697 (exit $ac_status); } &&
7698 { ac_try='test -s conftest$ac_exeext'
7699 { (eval echo "$as_me:7699: \"$ac_try\"") >&5
7702 echo "$as_me:7702: \$? = $ac_status" >&5
7703 (exit $ac_status); }; }; then
7704 if test "$cross_compiling" = yes; then
7705 cf_test_ncuconfig=maybe
7707 cat >conftest.$ac_ext <<_ACEOF
7708 #line 7708 "configure"
7709 #include "confdefs.h"
7710 #include <${cf_cv_ncurses_header:-curses.h}>
7712 { char *xx = curses_version(); return (xx == 0); }
7714 rm -f conftest$ac_exeext
7715 if { (eval echo "$as_me:7715: \"$ac_link\"") >&5
7716 (eval $ac_link) 2>&5
7718 echo "$as_me:7718: \$? = $ac_status" >&5
7719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7720 { (eval echo "$as_me:7720: \"$ac_try\"") >&5
7723 echo "$as_me:7723: \$? = $ac_status" >&5
7724 (exit $ac_status); }; }; then
7725 cf_test_ncuconfig=yes
7727 echo "$as_me: program exited with status $ac_status" >&5
7728 echo "$as_me: failed program was:" >&5
7729 cat conftest.$ac_ext >&5
7730 cf_test_ncuconfig=no
7732 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7735 echo "$as_me: failed program was:" >&5
7736 cat conftest.$ac_ext >&5
7737 cf_test_ncuconfig=no
7739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7741 CFLAGS="$cf_save_CFLAGS"
7742 CPPFLAGS="$cf_save_CPPFLAGS"
7743 LIBS="$cf_save_LIBS"
7745 if test "x$cf_test_ncuconfig" != xyes; then
7746 cf_temp=`echo "x$cf_pkg_cflags" | sed -e s/^x// -e 's/-W[^ ]*//g'`
7747 cf_pkg_cflags="$cf_temp"
7748 cf_temp=`echo "x$cf_pkg_libs" | sed -e s/^x// -e 's/-W[^ ]*//g'`
7749 cf_pkg_libs="$cf_temp"
7757 cf_new_extra_cppflags=
7759 for cf_add_cflags in $cf_pkg_cflags
7761 case $cf_fix_cppflags in
7763 case $cf_add_cflags in
7764 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7765 case $cf_add_cflags in
7767 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7769 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7770 && test -z "${cf_tst_cflags}" \
7771 && cf_fix_cppflags=yes
7773 if test $cf_fix_cppflags = yes ; then
7775 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7776 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7779 elif test "${cf_tst_cflags}" = "\"'" ; then
7781 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7782 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7792 case $cf_add_cflags in
7794 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7796 CPPFLAGS=`echo "$CPPFLAGS" | \
7797 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7798 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7803 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7804 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7811 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7812 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7819 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7820 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7822 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7824 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7825 && test -z "${cf_tst_cflags}" \
7826 && cf_fix_cppflags=no
7831 if test -n "$cf_new_cflags" ; then
7833 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7834 CFLAGS="${CFLAGS}$cf_new_cflags"
7838 if test -n "$cf_new_cppflags" ; then
7840 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7841 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7845 if test -n "$cf_new_extra_cppflags" ; then
7847 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7848 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7855 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7857 for cf_add_1lib in $cf_add_0lib; do
7858 for cf_add_2lib in $cf_add_libs; do
7859 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7864 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7868 cat >conftest.$ac_ext <<_ACEOF
7869 #line 7869 "configure"
7870 #include "confdefs.h"
7871 #include <${cf_cv_ncurses_header:-curses.h}>
7875 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7880 rm -f conftest.$ac_objext conftest$ac_exeext
7881 if { (eval echo "$as_me:7881: \"$ac_link\"") >&5
7882 (eval $ac_link) 2>&5
7884 echo "$as_me:7884: \$? = $ac_status" >&5
7885 (exit $ac_status); } &&
7886 { ac_try='test -s conftest$ac_exeext'
7887 { (eval echo "$as_me:7887: \"$ac_try\"") >&5
7890 echo "$as_me:7890: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 if test "$cross_compiling" = yes; then
7893 cf_have_ncuconfig=maybe
7895 cat >conftest.$ac_ext <<_ACEOF
7896 #line 7896 "configure"
7897 #include "confdefs.h"
7898 #include <${cf_cv_ncurses_header:-curses.h}>
7900 { char *xx = curses_version(); return (xx == 0); }
7902 rm -f conftest$ac_exeext
7903 if { (eval echo "$as_me:7903: \"$ac_link\"") >&5
7904 (eval $ac_link) 2>&5
7906 echo "$as_me:7906: \$? = $ac_status" >&5
7907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7908 { (eval echo "$as_me:7908: \"$ac_try\"") >&5
7911 echo "$as_me:7911: \$? = $ac_status" >&5
7912 (exit $ac_status); }; }; then
7913 cf_have_ncuconfig=yes
7915 echo "$as_me: program exited with status $ac_status" >&5
7916 echo "$as_me: failed program was:" >&5
7917 cat conftest.$ac_ext >&5
7918 cf_have_ncuconfig=no
7920 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7923 echo "$as_me: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7925 cf_have_ncuconfig=no
7927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7928 echo "$as_me:7928: result: $cf_have_ncuconfig" >&5
7929 echo "${ECHO_T}$cf_have_ncuconfig" >&6
7930 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
7931 if test "$cf_have_ncuconfig" != "yes"
7933 CPPFLAGS="$cf_save_CPPFLAGS"
7934 LIBS="$cf_save_LIBS"
7935 NCURSES_CONFIG_PKG=none
7938 cat >>confdefs.h <<\EOF
7942 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
7944 echo "$as_me:7944: checking for terminfo header" >&5
7945 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
7946 if test "${cf_cv_term_header+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7950 case ${cf_cv_ncurses_header} in
7951 (*/ncurses.h|*/ncursesw.h)
7952 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
7955 cf_term_header=term.h
7959 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
7961 cat >conftest.$ac_ext <<_ACEOF
7962 #line 7962 "configure"
7963 #include "confdefs.h"
7965 #include <${cf_cv_ncurses_header:-curses.h}>
7971 int x = auto_left_margin
7976 rm -f conftest.$ac_objext
7977 if { (eval echo "$as_me:7977: \"$ac_compile\"") >&5
7978 (eval $ac_compile) 2>&5
7980 echo "$as_me:7980: \$? = $ac_status" >&5
7981 (exit $ac_status); } &&
7982 { ac_try='test -s conftest.$ac_objext'
7983 { (eval echo "$as_me:7983: \"$ac_try\"") >&5
7986 echo "$as_me:7986: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7989 cf_cv_term_header="$cf_test"
7991 echo "$as_me: failed program was:" >&5
7992 cat conftest.$ac_ext >&5
7994 cf_cv_term_header=unknown
7997 rm -f conftest.$ac_objext conftest.$ac_ext
7998 test "$cf_cv_term_header" != unknown && break
8002 echo "$as_me:8002: result: $cf_cv_term_header" >&5
8003 echo "${ECHO_T}$cf_cv_term_header" >&6
8005 # Set definitions to allow ifdef'ing to accommodate subdirectories
8007 case $cf_cv_term_header in
8010 cat >>confdefs.h <<\EOF
8011 #define HAVE_TERM_H 1
8017 case $cf_cv_term_header in
8020 cat >>confdefs.h <<\EOF
8021 #define HAVE_NCURSES_TERM_H 1
8027 cat >>confdefs.h <<\EOF
8028 #define HAVE_NCURSESW_TERM_H 1
8037 echo "$as_me:8037: result: no" >&5
8038 echo "${ECHO_T}no" >&6
8039 NCURSES_CONFIG_PKG=none
8042 NCURSES_CONFIG_PKG=none
8045 if test "x$cf_have_ncuconfig" = "xno"; then
8046 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_ncurses_config}"
8048 if test -n "$ac_tool_prefix"; then
8049 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8051 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8053 echo "$as_me:8053: checking for $ac_word" >&5
8054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8055 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 if test -n "$NCURSES_CONFIG"; then
8059 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
8061 ac_save_IFS=$IFS; IFS=$ac_path_separator
8063 for ac_dir in $ac_dummy; do
8065 test -z "$ac_dir" && ac_dir=.
8066 $as_executable_p "$ac_dir/$ac_word" || continue
8067 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
8068 echo "$as_me:8068: found $ac_dir/$ac_word" >&5
8074 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
8075 if test -n "$NCURSES_CONFIG"; then
8076 echo "$as_me:8076: result: $NCURSES_CONFIG" >&5
8077 echo "${ECHO_T}$NCURSES_CONFIG" >&6
8079 echo "$as_me:8079: result: no" >&5
8080 echo "${ECHO_T}no" >&6
8083 test -n "$NCURSES_CONFIG" && break
8086 if test -z "$NCURSES_CONFIG"; then
8087 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
8088 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8090 # Extract the first word of "$ac_prog", so it can be a program name with args.
8091 set dummy $ac_prog; ac_word=$2
8092 echo "$as_me:8092: checking for $ac_word" >&5
8093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8094 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 if test -n "$ac_ct_NCURSES_CONFIG"; then
8098 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
8100 ac_save_IFS=$IFS; IFS=$ac_path_separator
8102 for ac_dir in $ac_dummy; do
8104 test -z "$ac_dir" && ac_dir=.
8105 $as_executable_p "$ac_dir/$ac_word" || continue
8106 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
8107 echo "$as_me:8107: found $ac_dir/$ac_word" >&5
8113 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
8114 if test -n "$ac_ct_NCURSES_CONFIG"; then
8115 echo "$as_me:8115: result: $ac_ct_NCURSES_CONFIG" >&5
8116 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
8118 echo "$as_me:8118: result: no" >&5
8119 echo "${ECHO_T}no" >&6
8122 test -n "$ac_ct_NCURSES_CONFIG" && break
8124 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
8126 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
8129 if test "$NCURSES_CONFIG" != none ; then
8134 cf_new_extra_cppflags=
8136 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
8138 case $cf_fix_cppflags in
8140 case $cf_add_cflags in
8141 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8142 case $cf_add_cflags in
8144 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8146 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8147 && test -z "${cf_tst_cflags}" \
8148 && cf_fix_cppflags=yes
8150 if test $cf_fix_cppflags = yes ; then
8152 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8153 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8156 elif test "${cf_tst_cflags}" = "\"'" ; then
8158 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8159 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8169 case $cf_add_cflags in
8171 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8173 CPPFLAGS=`echo "$CPPFLAGS" | \
8174 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8175 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8180 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8181 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8188 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8189 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8196 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8197 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8199 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8201 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8202 && test -z "${cf_tst_cflags}" \
8203 && cf_fix_cppflags=no
8208 if test -n "$cf_new_cflags" ; then
8210 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8211 CFLAGS="${CFLAGS}$cf_new_cflags"
8215 if test -n "$cf_new_cppflags" ; then
8217 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8218 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8222 if test -n "$cf_new_extra_cppflags" ; then
8224 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8225 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8232 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8234 for cf_add_1lib in $cf_add_0lib; do
8235 for cf_add_2lib in $cf_add_libs; do
8236 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8241 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8245 # even with config script, some packages use no-override for curses.h
8247 echo "$as_me:8247: checking if we have identified curses headers" >&5
8248 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
8249 if test "${cf_cv_ncurses_header+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 cf_cv_ncurses_header=none
8255 ncurses.h $cf_cv_screen/ncurses.h \
8256 curses.h $cf_cv_screen/curses.h
8258 cat >conftest.$ac_ext <<_ACEOF
8259 #line 8259 "configure"
8260 #include "confdefs.h"
8261 #include <${cf_header}>
8265 initscr(); tgoto("?", 0,0)
8270 rm -f conftest.$ac_objext
8271 if { (eval echo "$as_me:8271: \"$ac_compile\"") >&5
8272 (eval $ac_compile) 2>&5
8274 echo "$as_me:8274: \$? = $ac_status" >&5
8275 (exit $ac_status); } &&
8276 { ac_try='test -s conftest.$ac_objext'
8277 { (eval echo "$as_me:8277: \"$ac_try\"") >&5
8280 echo "$as_me:8280: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
8282 cf_cv_ncurses_header=$cf_header; break
8284 echo "$as_me: failed program was:" >&5
8285 cat conftest.$ac_ext >&5
8287 rm -f conftest.$ac_objext conftest.$ac_ext
8291 echo "$as_me:8291: result: $cf_cv_ncurses_header" >&5
8292 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
8294 if test "$cf_cv_ncurses_header" = none ; then
8295 { { echo "$as_me:8295: error: No curses header-files found" >&5
8296 echo "$as_me: error: No curses header-files found" >&2;}
8297 { (exit 1); exit 1; }; }
8300 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
8302 for ac_header in $cf_cv_ncurses_header
8304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8305 echo "$as_me:8305: checking for $ac_header" >&5
8306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 cat >conftest.$ac_ext <<_ACEOF
8311 #line 8311 "configure"
8312 #include "confdefs.h"
8313 #include <$ac_header>
8315 if { (eval echo "$as_me:8315: \"$ac_cpp conftest.$ac_ext\"") >&5
8316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8318 egrep -v '^ *\+' conftest.er1 >conftest.err
8320 cat conftest.err >&5
8321 echo "$as_me:8321: \$? = $ac_status" >&5
8322 (exit $ac_status); } >/dev/null; then
8323 if test -s conftest.err; then
8324 ac_cpp_err=$ac_c_preproc_warn_flag
8331 if test -z "$ac_cpp_err"; then
8332 eval "$as_ac_Header=yes"
8334 echo "$as_me: failed program was:" >&5
8335 cat conftest.$ac_ext >&5
8336 eval "$as_ac_Header=no"
8338 rm -f conftest.err conftest.$ac_ext
8340 echo "$as_me:8340: result: `eval echo '${'$as_ac_Header'}'`" >&5
8341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8343 cat >>confdefs.h <<EOF
8344 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8350 cat >>confdefs.h <<\EOF
8354 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8356 cat >>confdefs.h <<EOF
8357 #define $cf_nculib_ROOT 1
8360 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
8364 cf_ncuhdr_root=$cf_cv_screen
8366 test -n "$cf_cv_curses_dir" && \
8367 test "$cf_cv_curses_dir" != "no" && { \
8369 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
8370 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
8372 while test $cf_add_incdir != /usr/include
8374 if test -d $cf_add_incdir
8377 if test -n "$CFLAGS$CPPFLAGS" ; then
8378 # a loop is needed to ensure we can add subdirs of existing dirs
8379 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8380 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8381 cf_have_incdir=yes; break
8386 if test "$cf_have_incdir" = no ; then
8387 if test "$cf_add_incdir" = /usr/local/include ; then
8388 if test "$GCC" = yes
8390 cf_save_CPPFLAGS=$CPPFLAGS
8392 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8393 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
8395 cat >conftest.$ac_ext <<_ACEOF
8396 #line 8396 "configure"
8397 #include "confdefs.h"
8407 rm -f conftest.$ac_objext
8408 if { (eval echo "$as_me:8408: \"$ac_compile\"") >&5
8409 (eval $ac_compile) 2>&5
8411 echo "$as_me:8411: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -s conftest.$ac_objext'
8414 { (eval echo "$as_me:8414: \"$ac_try\"") >&5
8417 echo "$as_me:8417: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8421 echo "$as_me: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8425 rm -f conftest.$ac_objext conftest.$ac_ext
8426 CPPFLAGS=$cf_save_CPPFLAGS
8431 if test "$cf_have_incdir" = no ; then
8432 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8434 echo "${as_me:-configure}:8434: testing adding $cf_add_incdir to include-path ..." 1>&5
8436 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8438 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8439 test "$cf_top_incdir" = "$cf_add_incdir" && break
8440 cf_add_incdir="$cf_top_incdir"
8453 echo "$as_me:8453: checking for $cf_ncuhdr_root header in include-path" >&5
8454 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
8455 if test "${cf_cv_ncurses_h+set}" = set; then
8456 echo $ECHO_N "(cached) $ECHO_C" >&6
8459 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
8460 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
8461 for cf_header in $cf_header_list
8464 cat >conftest.$ac_ext <<_ACEOF
8465 #line 8465 "configure"
8466 #include "confdefs.h"
8468 #include <$cf_header>
8473 #ifdef NCURSES_VERSION
8475 printf("%s\n", NCURSES_VERSION);
8488 rm -f conftest.$ac_objext
8489 if { (eval echo "$as_me:8489: \"$ac_compile\"") >&5
8490 (eval $ac_compile) 2>&5
8492 echo "$as_me:8492: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -s conftest.$ac_objext'
8495 { (eval echo "$as_me:8495: \"$ac_try\"") >&5
8498 echo "$as_me:8498: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 cf_cv_ncurses_h=$cf_header
8503 echo "$as_me: failed program was:" >&5
8504 cat conftest.$ac_ext >&5
8507 rm -f conftest.$ac_objext conftest.$ac_ext
8509 test "$cf_cv_ncurses_h" != no && break
8513 echo "$as_me:8513: result: $cf_cv_ncurses_h" >&5
8514 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
8516 if test "$cf_cv_ncurses_h" != no ; then
8517 cf_cv_ncurses_header=$cf_cv_ncurses_h
8520 echo "$as_me:8520: checking for $cf_ncuhdr_root include-path" >&5
8521 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
8522 if test "${cf_cv_ncurses_h2+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 test -n "$verbose" && echo
8530 # collect the current set of include-directories from compiler flags
8531 cf_header_path_list=""
8532 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8533 for cf_header_path in $CPPFLAGS $CFLAGS
8535 case $cf_header_path in
8537 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8539 test "x$cf_header_path" != "xNONE" && \
8540 test -d "$cf_header_path" && \
8542 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8543 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8544 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
8545 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
8546 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
8547 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"
8550 cf_header_path_list="$cf_header_path_list $cf_search"
8556 # add the variations for the package we are looking for
8560 test "x$prefix" != "xNONE" && \
8561 test -d "$prefix" && \
8563 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8564 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8565 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
8566 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
8567 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
8568 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8571 for cf_subdir_prefix in \
8580 test "x$cf_subdir_prefix" != "x$prefix" && \
8581 test -d "$cf_subdir_prefix" && \
8582 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
8583 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
8584 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
8585 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
8586 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
8587 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
8588 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8593 test "$includedir" != NONE && \
8594 test "$includedir" != "/usr/include" && \
8595 test -d "$includedir" && {
8596 test -d $includedir && cf_search="$cf_search $includedir"
8597 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
8600 test "$oldincludedir" != NONE && \
8601 test "$oldincludedir" != "/usr/include" && \
8602 test -d "$oldincludedir" && {
8603 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8604 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
8607 cf_search="$cf_search $cf_header_path_list"
8609 test -n "$verbose" && echo search path $cf_search
8610 cf_save2_CPPFLAGS="$CPPFLAGS"
8611 for cf_incdir in $cf_search
8614 if test -n "$cf_incdir" ; then
8615 for cf_add_incdir in $cf_incdir
8617 while test $cf_add_incdir != /usr/include
8619 if test -d $cf_add_incdir
8622 if test -n "$CFLAGS$CPPFLAGS" ; then
8623 # a loop is needed to ensure we can add subdirs of existing dirs
8624 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8625 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8626 cf_have_incdir=yes; break
8631 if test "$cf_have_incdir" = no ; then
8632 if test "$cf_add_incdir" = /usr/local/include ; then
8633 if test "$GCC" = yes
8635 cf_save_CPPFLAGS=$CPPFLAGS
8637 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8638 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
8640 cat >conftest.$ac_ext <<_ACEOF
8641 #line 8641 "configure"
8642 #include "confdefs.h"
8652 rm -f conftest.$ac_objext
8653 if { (eval echo "$as_me:8653: \"$ac_compile\"") >&5
8654 (eval $ac_compile) 2>&5
8656 echo "$as_me:8656: \$? = $ac_status" >&5
8657 (exit $ac_status); } &&
8658 { ac_try='test -s conftest.$ac_objext'
8659 { (eval echo "$as_me:8659: \"$ac_try\"") >&5
8662 echo "$as_me:8662: \$? = $ac_status" >&5
8663 (exit $ac_status); }; }; then
8666 echo "$as_me: failed program was:" >&5
8667 cat conftest.$ac_ext >&5
8670 rm -f conftest.$ac_objext conftest.$ac_ext
8671 CPPFLAGS=$cf_save_CPPFLAGS
8676 if test "$cf_have_incdir" = no ; then
8677 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8679 echo "${as_me:-configure}:8679: testing adding $cf_add_incdir to include-path ..." 1>&5
8681 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8683 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8684 test "$cf_top_incdir" = "$cf_add_incdir" && break
8685 cf_add_incdir="$cf_top_incdir"
8701 cat >conftest.$ac_ext <<_ACEOF
8702 #line 8702 "configure"
8703 #include "confdefs.h"
8705 #include <$cf_header>
8710 #ifdef NCURSES_VERSION
8712 printf("%s\n", NCURSES_VERSION);
8725 rm -f conftest.$ac_objext
8726 if { (eval echo "$as_me:8726: \"$ac_compile\"") >&5
8727 (eval $ac_compile) 2>&5
8729 echo "$as_me:8729: \$? = $ac_status" >&5
8730 (exit $ac_status); } &&
8731 { ac_try='test -s conftest.$ac_objext'
8732 { (eval echo "$as_me:8732: \"$ac_try\"") >&5
8735 echo "$as_me:8735: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 cf_cv_ncurses_h2=$cf_header
8740 echo "$as_me: failed program was:" >&5
8741 cat conftest.$ac_ext >&5
8744 rm -f conftest.$ac_objext conftest.$ac_ext
8746 if test "$cf_cv_ncurses_h2" != no ; then
8747 cf_cv_ncurses_h2=$cf_incdir/$cf_header
8748 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
8751 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
8753 CPPFLAGS="$cf_save2_CPPFLAGS"
8754 test "$cf_cv_ncurses_h2" != no && break
8756 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:8756: error: not found" >&5
8757 echo "$as_me: error: not found" >&2;}
8758 { (exit 1); exit 1; }; }
8761 echo "$as_me:8761: result: $cf_cv_ncurses_h2" >&5
8762 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
8764 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
8765 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
8766 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
8767 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
8770 if test -n "$cf_1st_incdir" ; then
8771 for cf_add_incdir in $cf_1st_incdir
8773 while test $cf_add_incdir != /usr/include
8775 if test -d $cf_add_incdir
8778 if test -n "$CFLAGS$CPPFLAGS" ; then
8779 # a loop is needed to ensure we can add subdirs of existing dirs
8780 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8781 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8782 cf_have_incdir=yes; break
8787 if test "$cf_have_incdir" = no ; then
8788 if test "$cf_add_incdir" = /usr/local/include ; then
8789 if test "$GCC" = yes
8791 cf_save_CPPFLAGS=$CPPFLAGS
8793 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8794 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
8796 cat >conftest.$ac_ext <<_ACEOF
8797 #line 8797 "configure"
8798 #include "confdefs.h"
8808 rm -f conftest.$ac_objext
8809 if { (eval echo "$as_me:8809: \"$ac_compile\"") >&5
8810 (eval $ac_compile) 2>&5
8812 echo "$as_me:8812: \$? = $ac_status" >&5
8813 (exit $ac_status); } &&
8814 { ac_try='test -s conftest.$ac_objext'
8815 { (eval echo "$as_me:8815: \"$ac_try\"") >&5
8818 echo "$as_me:8818: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8822 echo "$as_me: failed program was:" >&5
8823 cat conftest.$ac_ext >&5
8826 rm -f conftest.$ac_objext conftest.$ac_ext
8827 CPPFLAGS=$cf_save_CPPFLAGS
8832 if test "$cf_have_incdir" = no ; then
8833 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8835 echo "${as_me:-configure}:8835: testing adding $cf_add_incdir to include-path ..." 1>&5
8837 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8839 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8840 test "$cf_top_incdir" = "$cf_add_incdir" && break
8841 cf_add_incdir="$cf_top_incdir"
8854 # Set definitions to allow ifdef'ing for ncurses.h
8856 case $cf_cv_ncurses_header in
8859 cat >>confdefs.h <<\EOF
8860 #define HAVE_NCURSES_H 1
8866 case $cf_cv_ncurses_header in
8867 (ncurses/curses.h|ncurses/ncurses.h)
8869 cat >>confdefs.h <<\EOF
8870 #define HAVE_NCURSES_NCURSES_H 1
8874 (ncursesw/curses.h|ncursesw/ncurses.h)
8876 cat >>confdefs.h <<\EOF
8877 #define HAVE_NCURSESW_NCURSES_H 1
8883 echo "$as_me:8883: checking for terminfo header" >&5
8884 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
8885 if test "${cf_cv_term_header+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 case ${cf_cv_ncurses_header} in
8890 (*/ncurses.h|*/ncursesw.h)
8891 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8894 cf_term_header=term.h
8898 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
8900 cat >conftest.$ac_ext <<_ACEOF
8901 #line 8901 "configure"
8902 #include "confdefs.h"
8904 #include <${cf_cv_ncurses_header:-curses.h}>
8910 int x = auto_left_margin
8915 rm -f conftest.$ac_objext
8916 if { (eval echo "$as_me:8916: \"$ac_compile\"") >&5
8917 (eval $ac_compile) 2>&5
8919 echo "$as_me:8919: \$? = $ac_status" >&5
8920 (exit $ac_status); } &&
8921 { ac_try='test -s conftest.$ac_objext'
8922 { (eval echo "$as_me:8922: \"$ac_try\"") >&5
8925 echo "$as_me:8925: \$? = $ac_status" >&5
8926 (exit $ac_status); }; }; then
8928 cf_cv_term_header="$cf_test"
8930 echo "$as_me: failed program was:" >&5
8931 cat conftest.$ac_ext >&5
8933 cf_cv_term_header=unknown
8936 rm -f conftest.$ac_objext conftest.$ac_ext
8937 test "$cf_cv_term_header" != unknown && break
8941 echo "$as_me:8941: result: $cf_cv_term_header" >&5
8942 echo "${ECHO_T}$cf_cv_term_header" >&6
8944 # Set definitions to allow ifdef'ing to accommodate subdirectories
8946 case $cf_cv_term_header in
8949 cat >>confdefs.h <<\EOF
8950 #define HAVE_TERM_H 1
8956 case $cf_cv_term_header in
8959 cat >>confdefs.h <<\EOF
8960 #define HAVE_NCURSES_TERM_H 1
8966 cat >>confdefs.h <<\EOF
8967 #define HAVE_NCURSESW_TERM_H 1
8973 # some applications need this, but should check for NCURSES_VERSION
8975 cat >>confdefs.h <<\EOF
8979 echo "$as_me:8979: checking for ncurses version" >&5
8980 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
8981 if test "${cf_cv_ncurses_version+set}" = set; then
8982 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 cf_cv_ncurses_version=no
8988 if test "$cross_compiling" = yes; then
8990 # This will not work if the preprocessor splits the line after the
8991 # Autoconf token. The 'unproto' program does that.
8992 cat > conftest.$ac_ext <<EOF
8993 #include <${cf_cv_ncurses_header:-curses.h}>
8995 #ifdef NCURSES_VERSION
8996 Autoconf NCURSES_VERSION
9004 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
9005 { (eval echo "$as_me:9005: \"$cf_try\"") >&5
9008 echo "$as_me:9008: \$? = $ac_status" >&5
9009 (exit $ac_status); }
9010 if test -f conftest.out ; then
9011 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
9012 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
9017 cat >conftest.$ac_ext <<_ACEOF
9018 #line 9018 "configure"
9019 #include "confdefs.h"
9021 #include <${cf_cv_ncurses_header:-curses.h}>
9025 FILE *fp = fopen("$cf_tempfile", "w");
9026 #ifdef NCURSES_VERSION
9027 # ifdef NCURSES_VERSION_PATCH
9028 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
9030 fprintf(fp, "%s\n", NCURSES_VERSION);
9034 fprintf(fp, "old\n");
9039 ${cf_cv_main_return:-return}(0);
9042 rm -f conftest$ac_exeext
9043 if { (eval echo "$as_me:9043: \"$ac_link\"") >&5
9044 (eval $ac_link) 2>&5
9046 echo "$as_me:9046: \$? = $ac_status" >&5
9047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9048 { (eval echo "$as_me:9048: \"$ac_try\"") >&5
9051 echo "$as_me:9051: \$? = $ac_status" >&5
9052 (exit $ac_status); }; }; then
9054 cf_cv_ncurses_version=`cat $cf_tempfile`
9056 echo "$as_me: program exited with status $ac_status" >&5
9057 echo "$as_me: failed program was:" >&5
9058 cat conftest.$ac_ext >&5
9060 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9065 echo "$as_me:9065: result: $cf_cv_ncurses_version" >&5
9066 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
9067 test "$cf_cv_ncurses_version" = no ||
9068 cat >>confdefs.h <<\EOF
9072 cf_nculib_root=$cf_cv_screen
9073 # This works, except for the special case where we find gpm, but
9074 # ncurses is in a nonstandard location via $LIBS, and we really want
9077 cf_ncurses_SAVE="$LIBS"
9078 echo "$as_me:9078: checking for Gpm_Open in -lgpm" >&5
9079 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
9080 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9083 ac_check_lib_save_LIBS=$LIBS
9085 cat >conftest.$ac_ext <<_ACEOF
9086 #line 9086 "configure"
9087 #include "confdefs.h"
9089 /* Override any gcc2 internal prototype to avoid an error. */
9093 /* We use char because int might match the return type of a gcc2
9094 builtin and then its argument prototype would still apply. */
9104 rm -f conftest.$ac_objext conftest$ac_exeext
9105 if { (eval echo "$as_me:9105: \"$ac_link\"") >&5
9106 (eval $ac_link) 2>&5
9108 echo "$as_me:9108: \$? = $ac_status" >&5
9109 (exit $ac_status); } &&
9110 { ac_try='test -s conftest$ac_exeext'
9111 { (eval echo "$as_me:9111: \"$ac_try\"") >&5
9114 echo "$as_me:9114: \$? = $ac_status" >&5
9115 (exit $ac_status); }; }; then
9116 ac_cv_lib_gpm_Gpm_Open=yes
9118 echo "$as_me: failed program was:" >&5
9119 cat conftest.$ac_ext >&5
9120 ac_cv_lib_gpm_Gpm_Open=no
9122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9123 LIBS=$ac_check_lib_save_LIBS
9125 echo "$as_me:9125: result: $ac_cv_lib_gpm_Gpm_Open" >&5
9126 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
9127 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
9128 echo "$as_me:9128: checking for initscr in -lgpm" >&5
9129 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
9130 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
9131 echo $ECHO_N "(cached) $ECHO_C" >&6
9133 ac_check_lib_save_LIBS=$LIBS
9135 cat >conftest.$ac_ext <<_ACEOF
9136 #line 9136 "configure"
9137 #include "confdefs.h"
9139 /* Override any gcc2 internal prototype to avoid an error. */
9143 /* We use char because int might match the return type of a gcc2
9144 builtin and then its argument prototype would still apply. */
9154 rm -f conftest.$ac_objext conftest$ac_exeext
9155 if { (eval echo "$as_me:9155: \"$ac_link\"") >&5
9156 (eval $ac_link) 2>&5
9158 echo "$as_me:9158: \$? = $ac_status" >&5
9159 (exit $ac_status); } &&
9160 { ac_try='test -s conftest$ac_exeext'
9161 { (eval echo "$as_me:9161: \"$ac_try\"") >&5
9164 echo "$as_me:9164: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 ac_cv_lib_gpm_initscr=yes
9168 echo "$as_me: failed program was:" >&5
9169 cat conftest.$ac_ext >&5
9170 ac_cv_lib_gpm_initscr=no
9172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9173 LIBS=$ac_check_lib_save_LIBS
9175 echo "$as_me:9175: result: $ac_cv_lib_gpm_initscr" >&5
9176 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
9177 if test $ac_cv_lib_gpm_initscr = yes; then
9178 LIBS="$cf_ncurses_SAVE"
9180 cf_ncurses_LIBS="-lgpm"
9187 # This is only necessary if you are linking against an obsolete
9188 # version of ncurses (but it should do no harm, since it's static).
9189 if test "$cf_nculib_root" = ncurses ; then
9190 echo "$as_me:9190: checking for tgoto in -lmytinfo" >&5
9191 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
9192 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 ac_check_lib_save_LIBS=$LIBS
9196 LIBS="-lmytinfo $LIBS"
9197 cat >conftest.$ac_ext <<_ACEOF
9198 #line 9198 "configure"
9199 #include "confdefs.h"
9201 /* Override any gcc2 internal prototype to avoid an error. */
9205 /* We use char because int might match the return type of a gcc2
9206 builtin and then its argument prototype would still apply. */
9216 rm -f conftest.$ac_objext conftest$ac_exeext
9217 if { (eval echo "$as_me:9217: \"$ac_link\"") >&5
9218 (eval $ac_link) 2>&5
9220 echo "$as_me:9220: \$? = $ac_status" >&5
9221 (exit $ac_status); } &&
9222 { ac_try='test -s conftest$ac_exeext'
9223 { (eval echo "$as_me:9223: \"$ac_try\"") >&5
9226 echo "$as_me:9226: \$? = $ac_status" >&5
9227 (exit $ac_status); }; }; then
9228 ac_cv_lib_mytinfo_tgoto=yes
9230 echo "$as_me: failed program was:" >&5
9231 cat conftest.$ac_ext >&5
9232 ac_cv_lib_mytinfo_tgoto=no
9234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9235 LIBS=$ac_check_lib_save_LIBS
9237 echo "$as_me:9237: result: $ac_cv_lib_mytinfo_tgoto" >&5
9238 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
9239 if test $ac_cv_lib_mytinfo_tgoto = yes; then
9240 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
9250 for cf_add_1lib in $cf_ncurses_LIBS; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9252 for cf_add_1lib in $cf_add_0lib; do
9253 for cf_add_2lib in $cf_add_libs; do
9254 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
9259 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9263 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
9269 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9271 for cf_add_1lib in $cf_add_0lib; do
9272 for cf_add_2lib in $cf_add_libs; do
9273 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
9278 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9284 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
9286 echo "$as_me:9286: checking for initscr" >&5
9287 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
9288 if test "${ac_cv_func_initscr+set}" = set; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 cat >conftest.$ac_ext <<_ACEOF
9292 #line 9292 "configure"
9293 #include "confdefs.h"
9294 #define initscr autoconf_temporary
9295 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9302 /* We use char because int might match the return type of a gcc2
9303 builtin and then its argument prototype would still apply. */
9304 char initscr (void);
9310 /* The GNU C library defines stubs for functions which it implements
9311 to always fail with ENOSYS. Some functions are actually named
9312 something starting with __ and the normal name is an alias. */
9313 #if defined (__stub_initscr) || defined (__stub___initscr)
9314 #error found stub for initscr
9322 rm -f conftest.$ac_objext conftest$ac_exeext
9323 if { (eval echo "$as_me:9323: \"$ac_link\"") >&5
9324 (eval $ac_link) 2>&5
9326 echo "$as_me:9326: \$? = $ac_status" >&5
9327 (exit $ac_status); } &&
9328 { ac_try='test -s conftest$ac_exeext'
9329 { (eval echo "$as_me:9329: \"$ac_try\"") >&5
9332 echo "$as_me:9332: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334 ac_cv_func_initscr=yes
9336 echo "$as_me: failed program was:" >&5
9337 cat conftest.$ac_ext >&5
9338 ac_cv_func_initscr=no
9340 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9342 echo "$as_me:9342: result: $ac_cv_func_initscr" >&5
9343 echo "${ECHO_T}$ac_cv_func_initscr" >&6
9344 if test $ac_cv_func_initscr = yes; then
9345 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9348 cf_save_LIBS="$LIBS"
9349 echo "$as_me:9349: checking for initscr in -l$cf_nculib_root" >&5
9350 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
9351 LIBS="-l$cf_nculib_root $LIBS"
9352 cat >conftest.$ac_ext <<_ACEOF
9353 #line 9353 "configure"
9354 #include "confdefs.h"
9355 #include <${cf_cv_ncurses_header:-curses.h}>
9364 rm -f conftest.$ac_objext conftest$ac_exeext
9365 if { (eval echo "$as_me:9365: \"$ac_link\"") >&5
9366 (eval $ac_link) 2>&5
9368 echo "$as_me:9368: \$? = $ac_status" >&5
9369 (exit $ac_status); } &&
9370 { ac_try='test -s conftest$ac_exeext'
9371 { (eval echo "$as_me:9371: \"$ac_try\"") >&5
9374 echo "$as_me:9374: \$? = $ac_status" >&5
9375 (exit $ac_status); }; }; then
9376 echo "$as_me:9376: result: yes" >&5
9377 echo "${ECHO_T}yes" >&6
9378 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9381 echo "$as_me: failed program was:" >&5
9382 cat conftest.$ac_ext >&5
9383 echo "$as_me:9383: result: no" >&5
9384 echo "${ECHO_T}no" >&6
9387 cf_library_path_list=""
9388 if test -n "${LDFLAGS}${LIBS}" ; then
9389 for cf_library_path in $LDFLAGS $LIBS
9391 case $cf_library_path in
9393 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9395 test "x$cf_library_path" != "xNONE" && \
9396 test -d "$cf_library_path" && \
9398 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9399 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9400 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
9401 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
9402 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
9403 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"
9406 cf_library_path_list="$cf_library_path_list $cf_search"
9414 test "x$prefix" != "xNONE" && \
9415 test -d "$prefix" && \
9417 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9418 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9419 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
9420 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
9421 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
9422 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
9425 for cf_subdir_prefix in \
9434 test "x$cf_subdir_prefix" != "x$prefix" && \
9435 test -d "$cf_subdir_prefix" && \
9436 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9437 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
9438 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
9439 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
9440 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
9441 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
9442 test -d $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root"
9447 cf_search="$cf_library_path_list $cf_search"
9449 for cf_libdir in $cf_search
9451 echo "$as_me:9451: checking for -l$cf_nculib_root in $cf_libdir" >&5
9452 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
9453 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
9454 cat >conftest.$ac_ext <<_ACEOF
9455 #line 9455 "configure"
9456 #include "confdefs.h"
9457 #include <${cf_cv_ncurses_header:-curses.h}>
9466 rm -f conftest.$ac_objext conftest$ac_exeext
9467 if { (eval echo "$as_me:9467: \"$ac_link\"") >&5
9468 (eval $ac_link) 2>&5
9470 echo "$as_me:9470: \$? = $ac_status" >&5
9471 (exit $ac_status); } &&
9472 { ac_try='test -s conftest$ac_exeext'
9473 { (eval echo "$as_me:9473: \"$ac_try\"") >&5
9476 echo "$as_me:9476: \$? = $ac_status" >&5
9477 (exit $ac_status); }; }; then
9478 echo "$as_me:9478: result: yes" >&5
9479 echo "${ECHO_T}yes" >&6
9480 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9483 echo "$as_me: failed program was:" >&5
9484 cat conftest.$ac_ext >&5
9485 echo "$as_me:9485: result: no" >&5
9486 echo "${ECHO_T}no" >&6
9487 LIBS="$cf_save_LIBS"
9489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9497 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
9499 if test $cf_found_library = no ; then
9500 { { echo "$as_me:9500: error: Cannot link $cf_nculib_root library" >&5
9501 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
9502 { (exit 1); exit 1; }; }
9507 if test -n "$cf_ncurses_LIBS" ; then
9508 echo "$as_me:9508: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
9509 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
9510 cf_ncurses_SAVE="$LIBS"
9511 for p in $cf_ncurses_LIBS ; do
9512 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
9513 if test "$q" != "$LIBS" ; then
9517 cat >conftest.$ac_ext <<_ACEOF
9518 #line 9518 "configure"
9519 #include "confdefs.h"
9520 #include <${cf_cv_ncurses_header:-curses.h}>
9524 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
9529 rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (eval echo "$as_me:9530: \"$ac_link\"") >&5
9531 (eval $ac_link) 2>&5
9533 echo "$as_me:9533: \$? = $ac_status" >&5
9534 (exit $ac_status); } &&
9535 { ac_try='test -s conftest$ac_exeext'
9536 { (eval echo "$as_me:9536: \"$ac_try\"") >&5
9539 echo "$as_me:9539: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 echo "$as_me:9541: result: yes" >&5
9542 echo "${ECHO_T}yes" >&6
9544 echo "$as_me: failed program was:" >&5
9545 cat conftest.$ac_ext >&5
9546 echo "$as_me:9546: result: no" >&5
9547 echo "${ECHO_T}no" >&6
9548 LIBS="$cf_ncurses_SAVE"
9550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9553 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9555 cat >>confdefs.h <<EOF
9556 #define $cf_nculib_ROOT 1
9567 cf_ncuconfig_root=$cf_cv_screen
9568 cf_have_ncuconfig=no
9570 if test "x${PKG_CONFIG:=none}" != xnone; then
9571 echo "$as_me:9571: checking pkg-config for $cf_ncuconfig_root" >&5
9572 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
9573 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
9574 echo "$as_me:9574: result: yes" >&5
9575 echo "${ECHO_T}yes" >&6
9577 echo "$as_me:9577: checking if the $cf_ncuconfig_root package files work" >&5
9578 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
9579 cf_have_ncuconfig=unknown
9581 cf_save_CFLAGS="$CFLAGS"
9582 cf_save_CPPFLAGS="$CPPFLAGS"
9583 cf_save_LIBS="$LIBS"
9585 cf_pkg_cflags=`$PKG_CONFIG --cflags $cf_ncuconfig_root`
9586 cf_pkg_libs=`$PKG_CONFIG --libs $cf_ncuconfig_root`
9588 # while -W for passing linker flags is prevalent, it is not "standard".
9589 # At least one wrapper for c89/c99 (in Apple's xcode) has its own
9590 # incompatible _and_ non-standard -W option which gives an error. Work
9591 # around that pitfall.
9592 case "x${CC}@@${cf_pkg_libs}@${cf_pkg_cflags}" in
9598 cf_new_extra_cppflags=
9600 for cf_add_cflags in $cf_pkg_cflags
9602 case $cf_fix_cppflags in
9604 case $cf_add_cflags in
9605 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9606 case $cf_add_cflags in
9608 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9610 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9611 && test -z "${cf_tst_cflags}" \
9612 && cf_fix_cppflags=yes
9614 if test $cf_fix_cppflags = yes ; then
9616 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9617 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9620 elif test "${cf_tst_cflags}" = "\"'" ; then
9622 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9623 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9633 case $cf_add_cflags in
9635 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9637 CPPFLAGS=`echo "$CPPFLAGS" | \
9638 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9639 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9644 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9645 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9652 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9653 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9660 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9661 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9663 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9665 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9666 && test -z "${cf_tst_cflags}" \
9667 && cf_fix_cppflags=no
9672 if test -n "$cf_new_cflags" ; then
9674 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9675 CFLAGS="${CFLAGS}$cf_new_cflags"
9679 if test -n "$cf_new_cppflags" ; then
9681 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9682 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9686 if test -n "$cf_new_extra_cppflags" ; then
9688 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9689 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9696 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9698 for cf_add_1lib in $cf_add_0lib; do
9699 for cf_add_2lib in $cf_add_libs; do
9700 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
9705 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9709 cat >conftest.$ac_ext <<_ACEOF
9710 #line 9710 "configure"
9711 #include "confdefs.h"
9712 #include <${cf_cv_ncurses_header:-curses.h}>
9716 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (eval echo "$as_me:9722: \"$ac_link\"") >&5
9723 (eval $ac_link) 2>&5
9725 echo "$as_me:9725: \$? = $ac_status" >&5
9726 (exit $ac_status); } &&
9727 { ac_try='test -s conftest$ac_exeext'
9728 { (eval echo "$as_me:9728: \"$ac_try\"") >&5
9731 echo "$as_me:9731: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 if test "$cross_compiling" = yes; then
9734 cf_test_ncuconfig=maybe
9736 cat >conftest.$ac_ext <<_ACEOF
9737 #line 9737 "configure"
9738 #include "confdefs.h"
9739 #include <${cf_cv_ncurses_header:-curses.h}>
9741 { char *xx = curses_version(); return (xx == 0); }
9743 rm -f conftest$ac_exeext
9744 if { (eval echo "$as_me:9744: \"$ac_link\"") >&5
9745 (eval $ac_link) 2>&5
9747 echo "$as_me:9747: \$? = $ac_status" >&5
9748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9749 { (eval echo "$as_me:9749: \"$ac_try\"") >&5
9752 echo "$as_me:9752: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 cf_test_ncuconfig=yes
9756 echo "$as_me: program exited with status $ac_status" >&5
9757 echo "$as_me: failed program was:" >&5
9758 cat conftest.$ac_ext >&5
9759 cf_test_ncuconfig=no
9761 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9764 echo "$as_me: failed program was:" >&5
9765 cat conftest.$ac_ext >&5
9766 cf_test_ncuconfig=no
9768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9770 CFLAGS="$cf_save_CFLAGS"
9771 CPPFLAGS="$cf_save_CPPFLAGS"
9772 LIBS="$cf_save_LIBS"
9774 if test "x$cf_test_ncuconfig" != xyes; then
9775 cf_temp=`echo "x$cf_pkg_cflags" | sed -e s/^x// -e 's/-W[^ ]*//g'`
9776 cf_pkg_cflags="$cf_temp"
9777 cf_temp=`echo "x$cf_pkg_libs" | sed -e s/^x// -e 's/-W[^ ]*//g'`
9778 cf_pkg_libs="$cf_temp"
9786 cf_new_extra_cppflags=
9788 for cf_add_cflags in $cf_pkg_cflags
9790 case $cf_fix_cppflags in
9792 case $cf_add_cflags in
9793 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9794 case $cf_add_cflags in
9796 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9798 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9799 && test -z "${cf_tst_cflags}" \
9800 && cf_fix_cppflags=yes
9802 if test $cf_fix_cppflags = yes ; then
9804 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9805 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9808 elif test "${cf_tst_cflags}" = "\"'" ; then
9810 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9811 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9821 case $cf_add_cflags in
9823 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9825 CPPFLAGS=`echo "$CPPFLAGS" | \
9826 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9827 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9832 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9833 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9840 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9841 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9848 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9849 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9851 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9853 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9854 && test -z "${cf_tst_cflags}" \
9855 && cf_fix_cppflags=no
9860 if test -n "$cf_new_cflags" ; then
9862 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9863 CFLAGS="${CFLAGS}$cf_new_cflags"
9867 if test -n "$cf_new_cppflags" ; then
9869 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9870 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9874 if test -n "$cf_new_extra_cppflags" ; then
9876 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9877 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9884 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9886 for cf_add_1lib in $cf_add_0lib; do
9887 for cf_add_2lib in $cf_add_libs; do
9888 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
9893 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9897 cat >conftest.$ac_ext <<_ACEOF
9898 #line 9898 "configure"
9899 #include "confdefs.h"
9900 #include <${cf_cv_ncurses_header:-curses.h}>
9904 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
9909 rm -f conftest.$ac_objext conftest$ac_exeext
9910 if { (eval echo "$as_me:9910: \"$ac_link\"") >&5
9911 (eval $ac_link) 2>&5
9913 echo "$as_me:9913: \$? = $ac_status" >&5
9914 (exit $ac_status); } &&
9915 { ac_try='test -s conftest$ac_exeext'
9916 { (eval echo "$as_me:9916: \"$ac_try\"") >&5
9919 echo "$as_me:9919: \$? = $ac_status" >&5
9920 (exit $ac_status); }; }; then
9921 if test "$cross_compiling" = yes; then
9922 cf_have_ncuconfig=maybe
9924 cat >conftest.$ac_ext <<_ACEOF
9925 #line 9925 "configure"
9926 #include "confdefs.h"
9927 #include <${cf_cv_ncurses_header:-curses.h}>
9929 { char *xx = curses_version(); return (xx == 0); }
9931 rm -f conftest$ac_exeext
9932 if { (eval echo "$as_me:9932: \"$ac_link\"") >&5
9933 (eval $ac_link) 2>&5
9935 echo "$as_me:9935: \$? = $ac_status" >&5
9936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9937 { (eval echo "$as_me:9937: \"$ac_try\"") >&5
9940 echo "$as_me:9940: \$? = $ac_status" >&5
9941 (exit $ac_status); }; }; then
9942 cf_have_ncuconfig=yes
9944 echo "$as_me: program exited with status $ac_status" >&5
9945 echo "$as_me: failed program was:" >&5
9946 cat conftest.$ac_ext >&5
9947 cf_have_ncuconfig=no
9949 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9952 echo "$as_me: failed program was:" >&5
9953 cat conftest.$ac_ext >&5
9954 cf_have_ncuconfig=no
9956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9957 echo "$as_me:9957: result: $cf_have_ncuconfig" >&5
9958 echo "${ECHO_T}$cf_have_ncuconfig" >&6
9959 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
9960 if test "$cf_have_ncuconfig" != "yes"
9962 CPPFLAGS="$cf_save_CPPFLAGS"
9963 LIBS="$cf_save_LIBS"
9964 NCURSES_CONFIG_PKG=none
9967 cat >>confdefs.h <<\EOF
9971 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
9973 echo "$as_me:9973: checking for terminfo header" >&5
9974 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
9975 if test "${cf_cv_term_header+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 case ${cf_cv_ncurses_header} in
9980 (*/ncurses.h|*/ncursesw.h)
9981 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
9984 cf_term_header=term.h
9988 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
9990 cat >conftest.$ac_ext <<_ACEOF
9991 #line 9991 "configure"
9992 #include "confdefs.h"
9994 #include <${cf_cv_ncurses_header:-curses.h}>
10000 int x = auto_left_margin
10005 rm -f conftest.$ac_objext
10006 if { (eval echo "$as_me:10006: \"$ac_compile\"") >&5
10007 (eval $ac_compile) 2>&5
10009 echo "$as_me:10009: \$? = $ac_status" >&5
10010 (exit $ac_status); } &&
10011 { ac_try='test -s conftest.$ac_objext'
10012 { (eval echo "$as_me:10012: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10015 echo "$as_me:10015: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10018 cf_cv_term_header="$cf_test"
10020 echo "$as_me: failed program was:" >&5
10021 cat conftest.$ac_ext >&5
10023 cf_cv_term_header=unknown
10026 rm -f conftest.$ac_objext conftest.$ac_ext
10027 test "$cf_cv_term_header" != unknown && break
10031 echo "$as_me:10031: result: $cf_cv_term_header" >&5
10032 echo "${ECHO_T}$cf_cv_term_header" >&6
10034 # Set definitions to allow ifdef'ing to accommodate subdirectories
10036 case $cf_cv_term_header in
10039 cat >>confdefs.h <<\EOF
10040 #define HAVE_TERM_H 1
10046 case $cf_cv_term_header in
10049 cat >>confdefs.h <<\EOF
10050 #define HAVE_NCURSES_TERM_H 1
10056 cat >>confdefs.h <<\EOF
10057 #define HAVE_NCURSESW_TERM_H 1
10066 echo "$as_me:10066: result: no" >&5
10067 echo "${ECHO_T}no" >&6
10068 NCURSES_CONFIG_PKG=none
10071 NCURSES_CONFIG_PKG=none
10074 if test "x$cf_have_ncuconfig" = "xno"; then
10075 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_ncurses_config}"
10077 if test -n "$ac_tool_prefix"; then
10078 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
10080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10082 echo "$as_me:10082: checking for $ac_word" >&5
10083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10084 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 if test -n "$NCURSES_CONFIG"; then
10088 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
10090 ac_save_IFS=$IFS; IFS=$ac_path_separator
10092 for ac_dir in $ac_dummy; do
10094 test -z "$ac_dir" && ac_dir=.
10095 $as_executable_p "$ac_dir/$ac_word" || continue
10096 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
10097 echo "$as_me:10097: found $ac_dir/$ac_word" >&5
10103 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
10104 if test -n "$NCURSES_CONFIG"; then
10105 echo "$as_me:10105: result: $NCURSES_CONFIG" >&5
10106 echo "${ECHO_T}$NCURSES_CONFIG" >&6
10108 echo "$as_me:10108: result: no" >&5
10109 echo "${ECHO_T}no" >&6
10112 test -n "$NCURSES_CONFIG" && break
10115 if test -z "$NCURSES_CONFIG"; then
10116 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
10117 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
10119 # Extract the first word of "$ac_prog", so it can be a program name with args.
10120 set dummy $ac_prog; ac_word=$2
10121 echo "$as_me:10121: checking for $ac_word" >&5
10122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10123 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10126 if test -n "$ac_ct_NCURSES_CONFIG"; then
10127 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
10129 ac_save_IFS=$IFS; IFS=$ac_path_separator
10131 for ac_dir in $ac_dummy; do
10133 test -z "$ac_dir" && ac_dir=.
10134 $as_executable_p "$ac_dir/$ac_word" || continue
10135 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
10136 echo "$as_me:10136: found $ac_dir/$ac_word" >&5
10142 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
10143 if test -n "$ac_ct_NCURSES_CONFIG"; then
10144 echo "$as_me:10144: result: $ac_ct_NCURSES_CONFIG" >&5
10145 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
10147 echo "$as_me:10147: result: no" >&5
10148 echo "${ECHO_T}no" >&6
10151 test -n "$ac_ct_NCURSES_CONFIG" && break
10153 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
10155 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
10158 if test "$NCURSES_CONFIG" != none ; then
10163 cf_new_extra_cppflags=
10165 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
10167 case $cf_fix_cppflags in
10169 case $cf_add_cflags in
10170 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10171 case $cf_add_cflags in
10173 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10175 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10176 && test -z "${cf_tst_cflags}" \
10177 && cf_fix_cppflags=yes
10179 if test $cf_fix_cppflags = yes ; then
10181 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10182 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10185 elif test "${cf_tst_cflags}" = "\"'" ; then
10187 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10188 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10194 case "$CPPFLAGS" in
10198 case $cf_add_cflags in
10200 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10202 CPPFLAGS=`echo "$CPPFLAGS" | \
10203 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10204 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10209 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10210 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10217 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10218 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10225 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10226 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10228 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10230 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10231 && test -z "${cf_tst_cflags}" \
10232 && cf_fix_cppflags=no
10237 if test -n "$cf_new_cflags" ; then
10239 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10240 CFLAGS="${CFLAGS}$cf_new_cflags"
10244 if test -n "$cf_new_cppflags" ; then
10246 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10247 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10251 if test -n "$cf_new_extra_cppflags" ; then
10253 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10254 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10258 cf_add_libs="$LIBS"
10261 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10262 # filter duplicates
10263 for cf_add_1lib in $cf_add_0lib; do
10264 for cf_add_2lib in $cf_add_libs; do
10265 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10270 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10272 LIBS="$cf_add_libs"
10274 # even with config script, some packages use no-override for curses.h
10276 echo "$as_me:10276: checking if we have identified curses headers" >&5
10277 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
10278 if test "${cf_cv_ncurses_header+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 cf_cv_ncurses_header=none
10284 ncurses.h $cf_cv_screen/ncurses.h \
10285 curses.h $cf_cv_screen/curses.h
10287 cat >conftest.$ac_ext <<_ACEOF
10288 #line 10288 "configure"
10289 #include "confdefs.h"
10290 #include <${cf_header}>
10294 initscr(); tgoto("?", 0,0)
10299 rm -f conftest.$ac_objext
10300 if { (eval echo "$as_me:10300: \"$ac_compile\"") >&5
10301 (eval $ac_compile) 2>&5
10303 echo "$as_me:10303: \$? = $ac_status" >&5
10304 (exit $ac_status); } &&
10305 { ac_try='test -s conftest.$ac_objext'
10306 { (eval echo "$as_me:10306: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10309 echo "$as_me:10309: \$? = $ac_status" >&5
10310 (exit $ac_status); }; }; then
10311 cf_cv_ncurses_header=$cf_header; break
10313 echo "$as_me: failed program was:" >&5
10314 cat conftest.$ac_ext >&5
10316 rm -f conftest.$ac_objext conftest.$ac_ext
10320 echo "$as_me:10320: result: $cf_cv_ncurses_header" >&5
10321 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
10323 if test "$cf_cv_ncurses_header" = none ; then
10324 { { echo "$as_me:10324: error: No curses header-files found" >&5
10325 echo "$as_me: error: No curses header-files found" >&2;}
10326 { (exit 1); exit 1; }; }
10329 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
10331 for ac_header in $cf_cv_ncurses_header
10333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10334 echo "$as_me:10334: checking for $ac_header" >&5
10335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 cat >conftest.$ac_ext <<_ACEOF
10340 #line 10340 "configure"
10341 #include "confdefs.h"
10342 #include <$ac_header>
10344 if { (eval echo "$as_me:10344: \"$ac_cpp conftest.$ac_ext\"") >&5
10345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10347 egrep -v '^ *\+' conftest.er1 >conftest.err
10349 cat conftest.err >&5
10350 echo "$as_me:10350: \$? = $ac_status" >&5
10351 (exit $ac_status); } >/dev/null; then
10352 if test -s conftest.err; then
10353 ac_cpp_err=$ac_c_preproc_warn_flag
10360 if test -z "$ac_cpp_err"; then
10361 eval "$as_ac_Header=yes"
10363 echo "$as_me: failed program was:" >&5
10364 cat conftest.$ac_ext >&5
10365 eval "$as_ac_Header=no"
10367 rm -f conftest.err conftest.$ac_ext
10369 echo "$as_me:10369: result: `eval echo '${'$as_ac_Header'}'`" >&5
10370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10372 cat >>confdefs.h <<EOF
10373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10379 cat >>confdefs.h <<\EOF
10383 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10385 cat >>confdefs.h <<EOF
10386 #define $cf_nculib_ROOT 1
10389 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
10393 cf_ncuhdr_root=$cf_cv_screen
10395 test -n "$cf_cv_curses_dir" && \
10396 test "$cf_cv_curses_dir" != "no" && { \
10398 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
10399 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
10401 while test $cf_add_incdir != /usr/include
10403 if test -d $cf_add_incdir
10406 if test -n "$CFLAGS$CPPFLAGS" ; then
10407 # a loop is needed to ensure we can add subdirs of existing dirs
10408 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
10409 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10410 cf_have_incdir=yes; break
10415 if test "$cf_have_incdir" = no ; then
10416 if test "$cf_add_incdir" = /usr/local/include ; then
10417 if test "$GCC" = yes
10419 cf_save_CPPFLAGS=$CPPFLAGS
10421 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10422 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
10424 cat >conftest.$ac_ext <<_ACEOF
10425 #line 10425 "configure"
10426 #include "confdefs.h"
10436 rm -f conftest.$ac_objext
10437 if { (eval echo "$as_me:10437: \"$ac_compile\"") >&5
10438 (eval $ac_compile) 2>&5
10440 echo "$as_me:10440: \$? = $ac_status" >&5
10441 (exit $ac_status); } &&
10442 { ac_try='test -s conftest.$ac_objext'
10443 { (eval echo "$as_me:10443: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10446 echo "$as_me:10446: \$? = $ac_status" >&5
10447 (exit $ac_status); }; }; then
10450 echo "$as_me: failed program was:" >&5
10451 cat conftest.$ac_ext >&5
10454 rm -f conftest.$ac_objext conftest.$ac_ext
10455 CPPFLAGS=$cf_save_CPPFLAGS
10460 if test "$cf_have_incdir" = no ; then
10461 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
10463 echo "${as_me:-configure}:10463: testing adding $cf_add_incdir to include-path ..." 1>&5
10465 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10467 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
10468 test "$cf_top_incdir" = "$cf_add_incdir" && break
10469 cf_add_incdir="$cf_top_incdir"
10482 echo "$as_me:10482: checking for $cf_ncuhdr_root header in include-path" >&5
10483 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
10484 if test "${cf_cv_ncurses_h+set}" = set; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
10489 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
10490 for cf_header in $cf_header_list
10493 cat >conftest.$ac_ext <<_ACEOF
10494 #line 10494 "configure"
10495 #include "confdefs.h"
10497 #include <$cf_header>
10502 #ifdef NCURSES_VERSION
10504 printf("%s\n", NCURSES_VERSION);
10517 rm -f conftest.$ac_objext
10518 if { (eval echo "$as_me:10518: \"$ac_compile\"") >&5
10519 (eval $ac_compile) 2>&5
10521 echo "$as_me:10521: \$? = $ac_status" >&5
10522 (exit $ac_status); } &&
10523 { ac_try='test -s conftest.$ac_objext'
10524 { (eval echo "$as_me:10524: \"$ac_try\"") >&5
10525 (eval $ac_try) 2>&5
10527 echo "$as_me:10527: \$? = $ac_status" >&5
10528 (exit $ac_status); }; }; then
10529 cf_cv_ncurses_h=$cf_header
10532 echo "$as_me: failed program was:" >&5
10533 cat conftest.$ac_ext >&5
10536 rm -f conftest.$ac_objext conftest.$ac_ext
10538 test "$cf_cv_ncurses_h" != no && break
10542 echo "$as_me:10542: result: $cf_cv_ncurses_h" >&5
10543 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
10545 if test "$cf_cv_ncurses_h" != no ; then
10546 cf_cv_ncurses_header=$cf_cv_ncurses_h
10549 echo "$as_me:10549: checking for $cf_ncuhdr_root include-path" >&5
10550 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
10551 if test "${cf_cv_ncurses_h2+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 test -n "$verbose" && echo
10559 # collect the current set of include-directories from compiler flags
10560 cf_header_path_list=""
10561 if test -n "${CFLAGS}${CPPFLAGS}" ; then
10562 for cf_header_path in $CPPFLAGS $CFLAGS
10564 case $cf_header_path in
10566 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
10568 test "x$cf_header_path" != "xNONE" && \
10569 test -d "$cf_header_path" && \
10571 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
10572 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
10573 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
10574 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
10575 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
10576 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"
10579 cf_header_path_list="$cf_header_path_list $cf_search"
10585 # add the variations for the package we are looking for
10589 test "x$prefix" != "xNONE" && \
10590 test -d "$prefix" && \
10592 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
10593 test -d $prefix/include && cf_search="$cf_search $prefix/include"
10594 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
10595 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
10596 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
10597 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
10600 for cf_subdir_prefix in \
10609 test "x$cf_subdir_prefix" != "x$prefix" && \
10610 test -d "$cf_subdir_prefix" && \
10611 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
10612 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
10613 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
10614 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
10615 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
10616 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
10617 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
10622 test "$includedir" != NONE && \
10623 test "$includedir" != "/usr/include" && \
10624 test -d "$includedir" && {
10625 test -d $includedir && cf_search="$cf_search $includedir"
10626 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
10629 test "$oldincludedir" != NONE && \
10630 test "$oldincludedir" != "/usr/include" && \
10631 test -d "$oldincludedir" && {
10632 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
10633 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
10636 cf_search="$cf_search $cf_header_path_list"
10638 test -n "$verbose" && echo search path $cf_search
10639 cf_save2_CPPFLAGS="$CPPFLAGS"
10640 for cf_incdir in $cf_search
10643 if test -n "$cf_incdir" ; then
10644 for cf_add_incdir in $cf_incdir
10646 while test $cf_add_incdir != /usr/include
10648 if test -d $cf_add_incdir
10651 if test -n "$CFLAGS$CPPFLAGS" ; then
10652 # a loop is needed to ensure we can add subdirs of existing dirs
10653 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
10654 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10655 cf_have_incdir=yes; break
10660 if test "$cf_have_incdir" = no ; then
10661 if test "$cf_add_incdir" = /usr/local/include ; then
10662 if test "$GCC" = yes
10664 cf_save_CPPFLAGS=$CPPFLAGS
10666 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10667 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
10669 cat >conftest.$ac_ext <<_ACEOF
10670 #line 10670 "configure"
10671 #include "confdefs.h"
10681 rm -f conftest.$ac_objext
10682 if { (eval echo "$as_me:10682: \"$ac_compile\"") >&5
10683 (eval $ac_compile) 2>&5
10685 echo "$as_me:10685: \$? = $ac_status" >&5
10686 (exit $ac_status); } &&
10687 { ac_try='test -s conftest.$ac_objext'
10688 { (eval echo "$as_me:10688: \"$ac_try\"") >&5
10689 (eval $ac_try) 2>&5
10691 echo "$as_me:10691: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10695 echo "$as_me: failed program was:" >&5
10696 cat conftest.$ac_ext >&5
10699 rm -f conftest.$ac_objext conftest.$ac_ext
10700 CPPFLAGS=$cf_save_CPPFLAGS
10705 if test "$cf_have_incdir" = no ; then
10706 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
10708 echo "${as_me:-configure}:10708: testing adding $cf_add_incdir to include-path ..." 1>&5
10710 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10712 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
10713 test "$cf_top_incdir" = "$cf_add_incdir" && break
10714 cf_add_incdir="$cf_top_incdir"
10730 cat >conftest.$ac_ext <<_ACEOF
10731 #line 10731 "configure"
10732 #include "confdefs.h"
10734 #include <$cf_header>
10739 #ifdef NCURSES_VERSION
10741 printf("%s\n", NCURSES_VERSION);
10754 rm -f conftest.$ac_objext
10755 if { (eval echo "$as_me:10755: \"$ac_compile\"") >&5
10756 (eval $ac_compile) 2>&5
10758 echo "$as_me:10758: \$? = $ac_status" >&5
10759 (exit $ac_status); } &&
10760 { ac_try='test -s conftest.$ac_objext'
10761 { (eval echo "$as_me:10761: \"$ac_try\"") >&5
10762 (eval $ac_try) 2>&5
10764 echo "$as_me:10764: \$? = $ac_status" >&5
10765 (exit $ac_status); }; }; then
10766 cf_cv_ncurses_h2=$cf_header
10769 echo "$as_me: failed program was:" >&5
10770 cat conftest.$ac_ext >&5
10771 cf_cv_ncurses_h2=no
10773 rm -f conftest.$ac_objext conftest.$ac_ext
10775 if test "$cf_cv_ncurses_h2" != no ; then
10776 cf_cv_ncurses_h2=$cf_incdir/$cf_header
10777 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
10780 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
10782 CPPFLAGS="$cf_save2_CPPFLAGS"
10783 test "$cf_cv_ncurses_h2" != no && break
10785 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:10785: error: not found" >&5
10786 echo "$as_me: error: not found" >&2;}
10787 { (exit 1); exit 1; }; }
10790 echo "$as_me:10790: result: $cf_cv_ncurses_h2" >&5
10791 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
10793 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
10794 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
10795 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
10796 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
10799 if test -n "$cf_1st_incdir" ; then
10800 for cf_add_incdir in $cf_1st_incdir
10802 while test $cf_add_incdir != /usr/include
10804 if test -d $cf_add_incdir
10807 if test -n "$CFLAGS$CPPFLAGS" ; then
10808 # a loop is needed to ensure we can add subdirs of existing dirs
10809 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
10810 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10811 cf_have_incdir=yes; break
10816 if test "$cf_have_incdir" = no ; then
10817 if test "$cf_add_incdir" = /usr/local/include ; then
10818 if test "$GCC" = yes
10820 cf_save_CPPFLAGS=$CPPFLAGS
10822 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10823 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
10825 cat >conftest.$ac_ext <<_ACEOF
10826 #line 10826 "configure"
10827 #include "confdefs.h"
10837 rm -f conftest.$ac_objext
10838 if { (eval echo "$as_me:10838: \"$ac_compile\"") >&5
10839 (eval $ac_compile) 2>&5
10841 echo "$as_me:10841: \$? = $ac_status" >&5
10842 (exit $ac_status); } &&
10843 { ac_try='test -s conftest.$ac_objext'
10844 { (eval echo "$as_me:10844: \"$ac_try\"") >&5
10845 (eval $ac_try) 2>&5
10847 echo "$as_me:10847: \$? = $ac_status" >&5
10848 (exit $ac_status); }; }; then
10851 echo "$as_me: failed program was:" >&5
10852 cat conftest.$ac_ext >&5
10855 rm -f conftest.$ac_objext conftest.$ac_ext
10856 CPPFLAGS=$cf_save_CPPFLAGS
10861 if test "$cf_have_incdir" = no ; then
10862 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
10864 echo "${as_me:-configure}:10864: testing adding $cf_add_incdir to include-path ..." 1>&5
10866 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10868 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
10869 test "$cf_top_incdir" = "$cf_add_incdir" && break
10870 cf_add_incdir="$cf_top_incdir"
10883 # Set definitions to allow ifdef'ing for ncurses.h
10885 case $cf_cv_ncurses_header in
10888 cat >>confdefs.h <<\EOF
10889 #define HAVE_NCURSES_H 1
10895 case $cf_cv_ncurses_header in
10896 (ncurses/curses.h|ncurses/ncurses.h)
10898 cat >>confdefs.h <<\EOF
10899 #define HAVE_NCURSES_NCURSES_H 1
10903 (ncursesw/curses.h|ncursesw/ncurses.h)
10905 cat >>confdefs.h <<\EOF
10906 #define HAVE_NCURSESW_NCURSES_H 1
10912 echo "$as_me:10912: checking for terminfo header" >&5
10913 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
10914 if test "${cf_cv_term_header+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10918 case ${cf_cv_ncurses_header} in
10919 (*/ncurses.h|*/ncursesw.h)
10920 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
10923 cf_term_header=term.h
10927 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
10929 cat >conftest.$ac_ext <<_ACEOF
10930 #line 10930 "configure"
10931 #include "confdefs.h"
10933 #include <${cf_cv_ncurses_header:-curses.h}>
10934 #include <$cf_test>
10939 int x = auto_left_margin
10944 rm -f conftest.$ac_objext
10945 if { (eval echo "$as_me:10945: \"$ac_compile\"") >&5
10946 (eval $ac_compile) 2>&5
10948 echo "$as_me:10948: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
10950 { ac_try='test -s conftest.$ac_objext'
10951 { (eval echo "$as_me:10951: \"$ac_try\"") >&5
10952 (eval $ac_try) 2>&5
10954 echo "$as_me:10954: \$? = $ac_status" >&5
10955 (exit $ac_status); }; }; then
10957 cf_cv_term_header="$cf_test"
10959 echo "$as_me: failed program was:" >&5
10960 cat conftest.$ac_ext >&5
10962 cf_cv_term_header=unknown
10965 rm -f conftest.$ac_objext conftest.$ac_ext
10966 test "$cf_cv_term_header" != unknown && break
10970 echo "$as_me:10970: result: $cf_cv_term_header" >&5
10971 echo "${ECHO_T}$cf_cv_term_header" >&6
10973 # Set definitions to allow ifdef'ing to accommodate subdirectories
10975 case $cf_cv_term_header in
10978 cat >>confdefs.h <<\EOF
10979 #define HAVE_TERM_H 1
10985 case $cf_cv_term_header in
10988 cat >>confdefs.h <<\EOF
10989 #define HAVE_NCURSES_TERM_H 1
10995 cat >>confdefs.h <<\EOF
10996 #define HAVE_NCURSESW_TERM_H 1
11002 # some applications need this, but should check for NCURSES_VERSION
11004 cat >>confdefs.h <<\EOF
11008 echo "$as_me:11008: checking for ncurses version" >&5
11009 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
11010 if test "${cf_cv_ncurses_version+set}" = set; then
11011 echo $ECHO_N "(cached) $ECHO_C" >&6
11014 cf_cv_ncurses_version=no
11017 if test "$cross_compiling" = yes; then
11019 # This will not work if the preprocessor splits the line after the
11020 # Autoconf token. The 'unproto' program does that.
11021 cat > conftest.$ac_ext <<EOF
11022 #include <${cf_cv_ncurses_header:-curses.h}>
11024 #ifdef NCURSES_VERSION
11025 Autoconf NCURSES_VERSION
11033 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
11034 { (eval echo "$as_me:11034: \"$cf_try\"") >&5
11035 (eval $cf_try) 2>&5
11037 echo "$as_me:11037: \$? = $ac_status" >&5
11038 (exit $ac_status); }
11039 if test -f conftest.out ; then
11040 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
11041 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
11046 cat >conftest.$ac_ext <<_ACEOF
11047 #line 11047 "configure"
11048 #include "confdefs.h"
11050 #include <${cf_cv_ncurses_header:-curses.h}>
11054 FILE *fp = fopen("$cf_tempfile", "w");
11055 #ifdef NCURSES_VERSION
11056 # ifdef NCURSES_VERSION_PATCH
11057 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
11059 fprintf(fp, "%s\n", NCURSES_VERSION);
11062 # ifdef __NCURSES_H
11063 fprintf(fp, "old\n");
11068 ${cf_cv_main_return:-return}(0);
11071 rm -f conftest$ac_exeext
11072 if { (eval echo "$as_me:11072: \"$ac_link\"") >&5
11073 (eval $ac_link) 2>&5
11075 echo "$as_me:11075: \$? = $ac_status" >&5
11076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11077 { (eval echo "$as_me:11077: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11080 echo "$as_me:11080: \$? = $ac_status" >&5
11081 (exit $ac_status); }; }; then
11083 cf_cv_ncurses_version=`cat $cf_tempfile`
11085 echo "$as_me: program exited with status $ac_status" >&5
11086 echo "$as_me: failed program was:" >&5
11087 cat conftest.$ac_ext >&5
11089 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11094 echo "$as_me:11094: result: $cf_cv_ncurses_version" >&5
11095 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
11096 test "$cf_cv_ncurses_version" = no ||
11097 cat >>confdefs.h <<\EOF
11101 cf_nculib_root=$cf_cv_screen
11102 # This works, except for the special case where we find gpm, but
11103 # ncurses is in a nonstandard location via $LIBS, and we really want
11106 cf_ncurses_SAVE="$LIBS"
11107 echo "$as_me:11107: checking for Gpm_Open in -lgpm" >&5
11108 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
11109 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 ac_check_lib_save_LIBS=$LIBS
11114 cat >conftest.$ac_ext <<_ACEOF
11115 #line 11115 "configure"
11116 #include "confdefs.h"
11118 /* Override any gcc2 internal prototype to avoid an error. */
11122 /* We use char because int might match the return type of a gcc2
11123 builtin and then its argument prototype would still apply. */
11133 rm -f conftest.$ac_objext conftest$ac_exeext
11134 if { (eval echo "$as_me:11134: \"$ac_link\"") >&5
11135 (eval $ac_link) 2>&5
11137 echo "$as_me:11137: \$? = $ac_status" >&5
11138 (exit $ac_status); } &&
11139 { ac_try='test -s conftest$ac_exeext'
11140 { (eval echo "$as_me:11140: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11143 echo "$as_me:11143: \$? = $ac_status" >&5
11144 (exit $ac_status); }; }; then
11145 ac_cv_lib_gpm_Gpm_Open=yes
11147 echo "$as_me: failed program was:" >&5
11148 cat conftest.$ac_ext >&5
11149 ac_cv_lib_gpm_Gpm_Open=no
11151 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11152 LIBS=$ac_check_lib_save_LIBS
11154 echo "$as_me:11154: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11155 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
11156 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
11157 echo "$as_me:11157: checking for initscr in -lgpm" >&5
11158 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
11159 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 ac_check_lib_save_LIBS=$LIBS
11164 cat >conftest.$ac_ext <<_ACEOF
11165 #line 11165 "configure"
11166 #include "confdefs.h"
11168 /* Override any gcc2 internal prototype to avoid an error. */
11172 /* We use char because int might match the return type of a gcc2
11173 builtin and then its argument prototype would still apply. */
11183 rm -f conftest.$ac_objext conftest$ac_exeext
11184 if { (eval echo "$as_me:11184: \"$ac_link\"") >&5
11185 (eval $ac_link) 2>&5
11187 echo "$as_me:11187: \$? = $ac_status" >&5
11188 (exit $ac_status); } &&
11189 { ac_try='test -s conftest$ac_exeext'
11190 { (eval echo "$as_me:11190: \"$ac_try\"") >&5
11191 (eval $ac_try) 2>&5
11193 echo "$as_me:11193: \$? = $ac_status" >&5
11194 (exit $ac_status); }; }; then
11195 ac_cv_lib_gpm_initscr=yes
11197 echo "$as_me: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11199 ac_cv_lib_gpm_initscr=no
11201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11202 LIBS=$ac_check_lib_save_LIBS
11204 echo "$as_me:11204: result: $ac_cv_lib_gpm_initscr" >&5
11205 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
11206 if test $ac_cv_lib_gpm_initscr = yes; then
11207 LIBS="$cf_ncurses_SAVE"
11209 cf_ncurses_LIBS="-lgpm"
11216 # This is only necessary if you are linking against an obsolete
11217 # version of ncurses (but it should do no harm, since it's static).
11218 if test "$cf_nculib_root" = ncurses ; then
11219 echo "$as_me:11219: checking for tgoto in -lmytinfo" >&5
11220 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
11221 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 ac_check_lib_save_LIBS=$LIBS
11225 LIBS="-lmytinfo $LIBS"
11226 cat >conftest.$ac_ext <<_ACEOF
11227 #line 11227 "configure"
11228 #include "confdefs.h"
11230 /* Override any gcc2 internal prototype to avoid an error. */
11234 /* We use char because int might match the return type of a gcc2
11235 builtin and then its argument prototype would still apply. */
11245 rm -f conftest.$ac_objext conftest$ac_exeext
11246 if { (eval echo "$as_me:11246: \"$ac_link\"") >&5
11247 (eval $ac_link) 2>&5
11249 echo "$as_me:11249: \$? = $ac_status" >&5
11250 (exit $ac_status); } &&
11251 { ac_try='test -s conftest$ac_exeext'
11252 { (eval echo "$as_me:11252: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11255 echo "$as_me:11255: \$? = $ac_status" >&5
11256 (exit $ac_status); }; }; then
11257 ac_cv_lib_mytinfo_tgoto=yes
11259 echo "$as_me: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11261 ac_cv_lib_mytinfo_tgoto=no
11263 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11264 LIBS=$ac_check_lib_save_LIBS
11266 echo "$as_me:11266: result: $ac_cv_lib_mytinfo_tgoto" >&5
11267 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
11268 if test $ac_cv_lib_mytinfo_tgoto = yes; then
11269 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
11276 cf_add_libs="$LIBS"
11279 for cf_add_1lib in $cf_ncurses_LIBS; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11280 # filter duplicates
11281 for cf_add_1lib in $cf_add_0lib; do
11282 for cf_add_2lib in $cf_add_libs; do
11283 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
11288 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11290 LIBS="$cf_add_libs"
11292 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
11295 cf_add_libs="$LIBS"
11298 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11299 # filter duplicates
11300 for cf_add_1lib in $cf_add_0lib; do
11301 for cf_add_2lib in $cf_add_libs; do
11302 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
11307 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11309 LIBS="$cf_add_libs"
11313 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
11315 echo "$as_me:11315: checking for initscr" >&5
11316 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
11317 if test "${ac_cv_func_initscr+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 cat >conftest.$ac_ext <<_ACEOF
11321 #line 11321 "configure"
11322 #include "confdefs.h"
11323 #define initscr autoconf_temporary
11324 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
11331 /* We use char because int might match the return type of a gcc2
11332 builtin and then its argument prototype would still apply. */
11333 char initscr (void);
11339 /* The GNU C library defines stubs for functions which it implements
11340 to always fail with ENOSYS. Some functions are actually named
11341 something starting with __ and the normal name is an alias. */
11342 #if defined (__stub_initscr) || defined (__stub___initscr)
11343 #error found stub for initscr
11351 rm -f conftest.$ac_objext conftest$ac_exeext
11352 if { (eval echo "$as_me:11352: \"$ac_link\"") >&5
11353 (eval $ac_link) 2>&5
11355 echo "$as_me:11355: \$? = $ac_status" >&5
11356 (exit $ac_status); } &&
11357 { ac_try='test -s conftest$ac_exeext'
11358 { (eval echo "$as_me:11358: \"$ac_try\"") >&5
11359 (eval $ac_try) 2>&5
11361 echo "$as_me:11361: \$? = $ac_status" >&5
11362 (exit $ac_status); }; }; then
11363 ac_cv_func_initscr=yes
11365 echo "$as_me: failed program was:" >&5
11366 cat conftest.$ac_ext >&5
11367 ac_cv_func_initscr=no
11369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11371 echo "$as_me:11371: result: $ac_cv_func_initscr" >&5
11372 echo "${ECHO_T}$ac_cv_func_initscr" >&6
11373 if test $ac_cv_func_initscr = yes; then
11374 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
11377 cf_save_LIBS="$LIBS"
11378 echo "$as_me:11378: checking for initscr in -l$cf_nculib_root" >&5
11379 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
11380 LIBS="-l$cf_nculib_root $LIBS"
11381 cat >conftest.$ac_ext <<_ACEOF
11382 #line 11382 "configure"
11383 #include "confdefs.h"
11384 #include <${cf_cv_ncurses_header:-curses.h}>
11393 rm -f conftest.$ac_objext conftest$ac_exeext
11394 if { (eval echo "$as_me:11394: \"$ac_link\"") >&5
11395 (eval $ac_link) 2>&5
11397 echo "$as_me:11397: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
11399 { ac_try='test -s conftest$ac_exeext'
11400 { (eval echo "$as_me:11400: \"$ac_try\"") >&5
11401 (eval $ac_try) 2>&5
11403 echo "$as_me:11403: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
11405 echo "$as_me:11405: result: yes" >&5
11406 echo "${ECHO_T}yes" >&6
11407 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
11410 echo "$as_me: failed program was:" >&5
11411 cat conftest.$ac_ext >&5
11412 echo "$as_me:11412: result: no" >&5
11413 echo "${ECHO_T}no" >&6
11416 cf_library_path_list=""
11417 if test -n "${LDFLAGS}${LIBS}" ; then
11418 for cf_library_path in $LDFLAGS $LIBS
11420 case $cf_library_path in
11422 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
11424 test "x$cf_library_path" != "xNONE" && \
11425 test -d "$cf_library_path" && \
11427 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
11428 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
11429 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
11430 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
11431 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
11432 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"
11435 cf_library_path_list="$cf_library_path_list $cf_search"
11443 test "x$prefix" != "xNONE" && \
11444 test -d "$prefix" && \
11446 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
11447 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
11448 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
11449 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
11450 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
11451 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
11454 for cf_subdir_prefix in \
11463 test "x$cf_subdir_prefix" != "x$prefix" && \
11464 test -d "$cf_subdir_prefix" && \
11465 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
11466 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
11467 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
11468 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
11469 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
11470 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
11471 test -d $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root"
11476 cf_search="$cf_library_path_list $cf_search"
11478 for cf_libdir in $cf_search
11480 echo "$as_me:11480: checking for -l$cf_nculib_root in $cf_libdir" >&5
11481 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
11482 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
11483 cat >conftest.$ac_ext <<_ACEOF
11484 #line 11484 "configure"
11485 #include "confdefs.h"
11486 #include <${cf_cv_ncurses_header:-curses.h}>
11495 rm -f conftest.$ac_objext conftest$ac_exeext
11496 if { (eval echo "$as_me:11496: \"$ac_link\"") >&5
11497 (eval $ac_link) 2>&5
11499 echo "$as_me:11499: \$? = $ac_status" >&5
11500 (exit $ac_status); } &&
11501 { ac_try='test -s conftest$ac_exeext'
11502 { (eval echo "$as_me:11502: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11505 echo "$as_me:11505: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 echo "$as_me:11507: result: yes" >&5
11508 echo "${ECHO_T}yes" >&6
11509 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
11512 echo "$as_me: failed program was:" >&5
11513 cat conftest.$ac_ext >&5
11514 echo "$as_me:11514: result: no" >&5
11515 echo "${ECHO_T}no" >&6
11516 LIBS="$cf_save_LIBS"
11518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11526 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
11528 if test $cf_found_library = no ; then
11529 { { echo "$as_me:11529: error: Cannot link $cf_nculib_root library" >&5
11530 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
11531 { (exit 1); exit 1; }; }
11536 if test -n "$cf_ncurses_LIBS" ; then
11537 echo "$as_me:11537: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
11538 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
11539 cf_ncurses_SAVE="$LIBS"
11540 for p in $cf_ncurses_LIBS ; do
11541 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
11542 if test "$q" != "$LIBS" ; then
11546 cat >conftest.$ac_ext <<_ACEOF
11547 #line 11547 "configure"
11548 #include "confdefs.h"
11549 #include <${cf_cv_ncurses_header:-curses.h}>
11553 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
11558 rm -f conftest.$ac_objext conftest$ac_exeext
11559 if { (eval echo "$as_me:11559: \"$ac_link\"") >&5
11560 (eval $ac_link) 2>&5
11562 echo "$as_me:11562: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
11564 { ac_try='test -s conftest$ac_exeext'
11565 { (eval echo "$as_me:11565: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11568 echo "$as_me:11568: \$? = $ac_status" >&5
11569 (exit $ac_status); }; }; then
11570 echo "$as_me:11570: result: yes" >&5
11571 echo "${ECHO_T}yes" >&6
11573 echo "$as_me: failed program was:" >&5
11574 cat conftest.$ac_ext >&5
11575 echo "$as_me:11575: result: no" >&5
11576 echo "${ECHO_T}no" >&6
11577 LIBS="$cf_ncurses_SAVE"
11579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11582 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11584 cat >>confdefs.h <<EOF
11585 #define $cf_nculib_ROOT 1
11590 NCURSES_CONFIG=none
11595 echo "$as_me:11595: checking for X" >&5
11596 echo $ECHO_N "checking for X... $ECHO_C" >&6
11598 # Check whether --with-x or --without-x was given.
11599 if test "${with_x+set}" = set; then
11603 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11604 if test "x$with_x" = xno; then
11605 # The user explicitly disabled X.
11608 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11609 # Both variables are already set.
11612 if test "${ac_cv_have_x+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11615 # One or both of the vars are not set, and there is no cached value.
11616 ac_x_includes=no ac_x_libraries=no
11617 rm -fr conftest.dir
11618 if mkdir conftest.dir; then
11620 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11621 cat >Imakefile <<'EOF'
11623 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11625 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11626 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11627 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11628 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11629 for ac_extension in a so sl dylib dll; do
11630 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11631 test -f $ac_im_libdir/libX11.$ac_extension; then
11632 ac_im_usrlibdir=$ac_im_libdir; break
11635 # Screen out bogus values from the imake configuration. They are
11636 # bogus both because they are the default anyway, and because
11637 # using them would break gcc on systems where it needs fixed includes.
11638 case $ac_im_incroot in
11640 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11642 case $ac_im_usrlibdir in
11643 /usr/lib | /lib) ;;
11644 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11648 rm -fr conftest.dir
11651 # Standard set of common directories for X headers.
11652 # Check X11 before X11Rn because it is often a symlink to the current release.
11669 /usr/local/X11/include
11670 /usr/local/X11R7/include
11671 /usr/local/X11R6/include
11672 /usr/local/X11R5/include
11673 /usr/local/X11R4/include
11675 /usr/local/include/X11
11676 /usr/local/include/X11R7
11677 /usr/local/include/X11R6
11678 /usr/local/include/X11R5
11679 /usr/local/include/X11R4
11683 /usr/XFree86/include/X11
11687 /usr/unsupported/include
11688 /usr/athena/include
11689 /usr/local/x11r5/include
11690 /usr/lpp/Xamples/include
11692 /usr/openwin/include
11693 /usr/openwin/share/include'
11695 if test "$ac_x_includes" = no; then
11696 # Guess where to find include files, by looking for Intrinsic.h.
11697 # First, try using that file with no special directory specified.
11698 cat >conftest.$ac_ext <<_ACEOF
11699 #line 11699 "configure"
11700 #include "confdefs.h"
11701 #include <X11/Intrinsic.h>
11703 if { (eval echo "$as_me:11703: \"$ac_cpp conftest.$ac_ext\"") >&5
11704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11706 egrep -v '^ *\+' conftest.er1 >conftest.err
11708 cat conftest.err >&5
11709 echo "$as_me:11709: \$? = $ac_status" >&5
11710 (exit $ac_status); } >/dev/null; then
11711 if test -s conftest.err; then
11712 ac_cpp_err=$ac_c_preproc_warn_flag
11719 if test -z "$ac_cpp_err"; then
11720 # We can compile using X headers with no special include directory.
11723 echo "$as_me: failed program was:" >&5
11724 cat conftest.$ac_ext >&5
11725 for ac_dir in $ac_x_header_dirs; do
11726 if test -r "$ac_dir/X11/Intrinsic.h"; then
11727 ac_x_includes=$ac_dir
11732 rm -f conftest.err conftest.$ac_ext
11733 fi # $ac_x_includes = no
11735 if test "$ac_x_libraries" = no; then
11736 # Check for the libraries.
11737 # See if we find them without any special options.
11738 # Don't add to $LIBS permanently.
11741 cat >conftest.$ac_ext <<_ACEOF
11742 #line 11742 "configure"
11743 #include "confdefs.h"
11744 #include <X11/Intrinsic.h>
11753 rm -f conftest.$ac_objext conftest$ac_exeext
11754 if { (eval echo "$as_me:11754: \"$ac_link\"") >&5
11755 (eval $ac_link) 2>&5
11757 echo "$as_me:11757: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
11759 { ac_try='test -s conftest$ac_exeext'
11760 { (eval echo "$as_me:11760: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11763 echo "$as_me:11763: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11766 # We can link X programs with no special library path.
11769 echo "$as_me: failed program was:" >&5
11770 cat conftest.$ac_ext >&5
11772 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11774 # Don't even attempt the hair of trying to link an X program!
11775 for ac_extension in a so sl dylib dll; do
11776 if test -r $ac_dir/libXt.$ac_extension; then
11777 ac_x_libraries=$ac_dir
11783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11784 fi # $ac_x_libraries = no
11786 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
11787 # Didn't find X anywhere. Cache the known absence of X.
11788 ac_cv_have_x="have_x=no"
11790 # Record where we found X for the cache.
11791 ac_cv_have_x="have_x=yes \
11792 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11797 eval "$ac_cv_have_x"
11800 if test "$have_x" != yes; then
11801 echo "$as_me:11801: result: $have_x" >&5
11802 echo "${ECHO_T}$have_x" >&6
11805 # If each of the values was on the command line, it overrides each guess.
11806 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11807 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11808 # Update the cache value to reflect the command line values.
11809 ac_cv_have_x="have_x=yes \
11810 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11811 echo "$as_me:11811: result: libraries $x_libraries, headers $x_includes" >&5
11812 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
11815 if test "$no_x" = yes; then
11816 # Not all programs may use this symbol, but it does not hurt to define it.
11818 cat >>confdefs.h <<\EOF
11819 #define X_DISPLAY_MISSING 1
11822 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11824 if test -n "$x_includes"; then
11825 X_CFLAGS="$X_CFLAGS -I$x_includes"
11828 # It would also be nice to do this for all -L options, not just this one.
11829 if test -n "$x_libraries"; then
11830 X_LIBS="$X_LIBS -L$x_libraries"
11831 # For Solaris; some versions of Sun CC require a space after -R and
11832 # others require no space. Words are not sufficient . . . .
11833 case `(uname -sr) 2>/dev/null` in
11835 echo "$as_me:11835: checking whether -R must be followed by a space" >&5
11836 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
11837 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11838 cat >conftest.$ac_ext <<_ACEOF
11839 #line 11839 "configure"
11840 #include "confdefs.h"
11850 rm -f conftest.$ac_objext conftest$ac_exeext
11851 if { (eval echo "$as_me:11851: \"$ac_link\"") >&5
11852 (eval $ac_link) 2>&5
11854 echo "$as_me:11854: \$? = $ac_status" >&5
11855 (exit $ac_status); } &&
11856 { ac_try='test -s conftest$ac_exeext'
11857 { (eval echo "$as_me:11857: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11860 echo "$as_me:11860: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }; then
11864 echo "$as_me: failed program was:" >&5
11865 cat conftest.$ac_ext >&5
11868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11869 if test $ac_R_nospace = yes; then
11870 echo "$as_me:11870: result: no" >&5
11871 echo "${ECHO_T}no" >&6
11872 X_LIBS="$X_LIBS -R$x_libraries"
11874 LIBS="$ac_xsave_LIBS -R $x_libraries"
11875 cat >conftest.$ac_ext <<_ACEOF
11876 #line 11876 "configure"
11877 #include "confdefs.h"
11887 rm -f conftest.$ac_objext conftest$ac_exeext
11888 if { (eval echo "$as_me:11888: \"$ac_link\"") >&5
11889 (eval $ac_link) 2>&5
11891 echo "$as_me:11891: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -s conftest$ac_exeext'
11894 { (eval echo "$as_me:11894: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11897 echo "$as_me:11897: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11901 echo "$as_me: failed program was:" >&5
11902 cat conftest.$ac_ext >&5
11905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11906 if test $ac_R_space = yes; then
11907 echo "$as_me:11907: result: yes" >&5
11908 echo "${ECHO_T}yes" >&6
11909 X_LIBS="$X_LIBS -R $x_libraries"
11911 echo "$as_me:11911: result: neither works" >&5
11912 echo "${ECHO_T}neither works" >&6
11915 LIBS=$ac_xsave_LIBS
11919 # Check for system-dependent libraries X programs must link with.
11920 # Do this before checking for the system-independent R6 libraries
11921 # (-lICE), since we may need -lsocket or whatever for X linking.
11923 if test "$ISC" = yes; then
11924 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11926 # Martyn Johnson says this is needed for Ultrix, if the X
11927 # libraries were built with DECnet support. And Karl Berry says
11928 # the Alpha needs dnet_stub (dnet does not exist).
11929 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11930 cat >conftest.$ac_ext <<_ACEOF
11931 #line 11931 "configure"
11932 #include "confdefs.h"
11934 /* Override any gcc2 internal prototype to avoid an error. */
11938 /* We use char because int might match the return type of a gcc2
11939 builtin and then its argument prototype would still apply. */
11940 char XOpenDisplay ();
11949 rm -f conftest.$ac_objext conftest$ac_exeext
11950 if { (eval echo "$as_me:11950: \"$ac_link\"") >&5
11951 (eval $ac_link) 2>&5
11953 echo "$as_me:11953: \$? = $ac_status" >&5
11954 (exit $ac_status); } &&
11955 { ac_try='test -s conftest$ac_exeext'
11956 { (eval echo "$as_me:11956: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11959 echo "$as_me:11959: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11963 echo "$as_me: failed program was:" >&5
11964 cat conftest.$ac_ext >&5
11965 echo "$as_me:11965: checking for dnet_ntoa in -ldnet" >&5
11966 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
11967 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11970 ac_check_lib_save_LIBS=$LIBS
11971 LIBS="-ldnet $LIBS"
11972 cat >conftest.$ac_ext <<_ACEOF
11973 #line 11973 "configure"
11974 #include "confdefs.h"
11976 /* Override any gcc2 internal prototype to avoid an error. */
11980 /* We use char because int might match the return type of a gcc2
11981 builtin and then its argument prototype would still apply. */
11991 rm -f conftest.$ac_objext conftest$ac_exeext
11992 if { (eval echo "$as_me:11992: \"$ac_link\"") >&5
11993 (eval $ac_link) 2>&5
11995 echo "$as_me:11995: \$? = $ac_status" >&5
11996 (exit $ac_status); } &&
11997 { ac_try='test -s conftest$ac_exeext'
11998 { (eval echo "$as_me:11998: \"$ac_try\"") >&5
11999 (eval $ac_try) 2>&5
12001 echo "$as_me:12001: \$? = $ac_status" >&5
12002 (exit $ac_status); }; }; then
12003 ac_cv_lib_dnet_dnet_ntoa=yes
12005 echo "$as_me: failed program was:" >&5
12006 cat conftest.$ac_ext >&5
12007 ac_cv_lib_dnet_dnet_ntoa=no
12009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12010 LIBS=$ac_check_lib_save_LIBS
12012 echo "$as_me:12012: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12013 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
12014 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
12015 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12018 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12019 echo "$as_me:12019: checking for dnet_ntoa in -ldnet_stub" >&5
12020 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
12021 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 ac_check_lib_save_LIBS=$LIBS
12025 LIBS="-ldnet_stub $LIBS"
12026 cat >conftest.$ac_ext <<_ACEOF
12027 #line 12027 "configure"
12028 #include "confdefs.h"
12030 /* Override any gcc2 internal prototype to avoid an error. */
12034 /* We use char because int might match the return type of a gcc2
12035 builtin and then its argument prototype would still apply. */
12045 rm -f conftest.$ac_objext conftest$ac_exeext
12046 if { (eval echo "$as_me:12046: \"$ac_link\"") >&5
12047 (eval $ac_link) 2>&5
12049 echo "$as_me:12049: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -s conftest$ac_exeext'
12052 { (eval echo "$as_me:12052: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12055 echo "$as_me:12055: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 ac_cv_lib_dnet_stub_dnet_ntoa=yes
12059 echo "$as_me: failed program was:" >&5
12060 cat conftest.$ac_ext >&5
12061 ac_cv_lib_dnet_stub_dnet_ntoa=no
12063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12064 LIBS=$ac_check_lib_save_LIBS
12066 echo "$as_me:12066: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12067 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
12068 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
12069 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12075 LIBS="$ac_xsave_LIBS"
12077 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12078 # to get the SysV transport functions.
12079 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12081 # The nsl library prevents programs from opening the X display
12082 # on Irix 5.2, according to T.E. Dickey.
12083 # The functions gethostbyname, getservbyname, and inet_addr are
12084 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12085 echo "$as_me:12085: checking for gethostbyname" >&5
12086 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12087 if test "${ac_cv_func_gethostbyname+set}" = set; then
12088 echo $ECHO_N "(cached) $ECHO_C" >&6
12090 cat >conftest.$ac_ext <<_ACEOF
12091 #line 12091 "configure"
12092 #include "confdefs.h"
12093 #define gethostbyname autoconf_temporary
12094 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12095 #undef gethostbyname
12101 /* We use char because int might match the return type of a gcc2
12102 builtin and then its argument prototype would still apply. */
12103 char gethostbyname (void);
12109 /* The GNU C library defines stubs for functions which it implements
12110 to always fail with ENOSYS. Some functions are actually named
12111 something starting with __ and the normal name is an alias. */
12112 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12113 #error found stub for gethostbyname
12116 return gethostbyname ();
12121 rm -f conftest.$ac_objext conftest$ac_exeext
12122 if { (eval echo "$as_me:12122: \"$ac_link\"") >&5
12123 (eval $ac_link) 2>&5
12125 echo "$as_me:12125: \$? = $ac_status" >&5
12126 (exit $ac_status); } &&
12127 { ac_try='test -s conftest$ac_exeext'
12128 { (eval echo "$as_me:12128: \"$ac_try\"") >&5
12129 (eval $ac_try) 2>&5
12131 echo "$as_me:12131: \$? = $ac_status" >&5
12132 (exit $ac_status); }; }; then
12133 ac_cv_func_gethostbyname=yes
12135 echo "$as_me: failed program was:" >&5
12136 cat conftest.$ac_ext >&5
12137 ac_cv_func_gethostbyname=no
12139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12141 echo "$as_me:12141: result: $ac_cv_func_gethostbyname" >&5
12142 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12144 if test $ac_cv_func_gethostbyname = no; then
12145 echo "$as_me:12145: checking for gethostbyname in -lnsl" >&5
12146 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12147 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12150 ac_check_lib_save_LIBS=$LIBS
12152 cat >conftest.$ac_ext <<_ACEOF
12153 #line 12153 "configure"
12154 #include "confdefs.h"
12156 /* Override any gcc2 internal prototype to avoid an error. */
12160 /* We use char because int might match the return type of a gcc2
12161 builtin and then its argument prototype would still apply. */
12162 char gethostbyname ();
12171 rm -f conftest.$ac_objext conftest$ac_exeext
12172 if { (eval echo "$as_me:12172: \"$ac_link\"") >&5
12173 (eval $ac_link) 2>&5
12175 echo "$as_me:12175: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -s conftest$ac_exeext'
12178 { (eval echo "$as_me:12178: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12181 echo "$as_me:12181: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
12183 ac_cv_lib_nsl_gethostbyname=yes
12185 echo "$as_me: failed program was:" >&5
12186 cat conftest.$ac_ext >&5
12187 ac_cv_lib_nsl_gethostbyname=no
12189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12190 LIBS=$ac_check_lib_save_LIBS
12192 echo "$as_me:12192: result: $ac_cv_lib_nsl_gethostbyname" >&5
12193 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12194 if test $ac_cv_lib_nsl_gethostbyname = yes; then
12195 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12198 if test $ac_cv_lib_nsl_gethostbyname = no; then
12199 echo "$as_me:12199: checking for gethostbyname in -lbsd" >&5
12200 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
12201 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
12202 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 ac_check_lib_save_LIBS=$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 gethostbyname ();
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 ac_cv_lib_bsd_gethostbyname=yes
12239 echo "$as_me: failed program was:" >&5
12240 cat conftest.$ac_ext >&5
12241 ac_cv_lib_bsd_gethostbyname=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: $ac_cv_lib_bsd_gethostbyname" >&5
12247 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
12248 if test $ac_cv_lib_bsd_gethostbyname = yes; then
12249 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12255 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12256 # socket/setsockopt and other routines are undefined under SCO ODT
12257 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12258 # on later versions), says Simon Leinen: it contains gethostby*
12259 # variants that don't use the nameserver (or something). -lsocket
12260 # must be given before -lnsl if both are needed. We assume that
12261 # if connect needs -lnsl, so does gethostbyname.
12262 echo "$as_me:12262: checking for connect" >&5
12263 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12264 if test "${ac_cv_func_connect+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 cat >conftest.$ac_ext <<_ACEOF
12268 #line 12268 "configure"
12269 #include "confdefs.h"
12270 #define connect autoconf_temporary
12271 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12278 /* We use char because int might match the return type of a gcc2
12279 builtin and then its argument prototype would still apply. */
12280 char connect (void);
12286 /* The GNU C library defines stubs for functions which it implements
12287 to always fail with ENOSYS. Some functions are actually named
12288 something starting with __ and the normal name is an alias. */
12289 #if defined (__stub_connect) || defined (__stub___connect)
12290 #error found stub for connect
12298 rm -f conftest.$ac_objext conftest$ac_exeext
12299 if { (eval echo "$as_me:12299: \"$ac_link\"") >&5
12300 (eval $ac_link) 2>&5
12302 echo "$as_me:12302: \$? = $ac_status" >&5
12303 (exit $ac_status); } &&
12304 { ac_try='test -s conftest$ac_exeext'
12305 { (eval echo "$as_me:12305: \"$ac_try\"") >&5
12306 (eval $ac_try) 2>&5
12308 echo "$as_me:12308: \$? = $ac_status" >&5
12309 (exit $ac_status); }; }; then
12310 ac_cv_func_connect=yes
12312 echo "$as_me: failed program was:" >&5
12313 cat conftest.$ac_ext >&5
12314 ac_cv_func_connect=no
12316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12318 echo "$as_me:12318: result: $ac_cv_func_connect" >&5
12319 echo "${ECHO_T}$ac_cv_func_connect" >&6
12321 if test $ac_cv_func_connect = no; then
12322 echo "$as_me:12322: checking for connect in -lsocket" >&5
12323 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
12324 if test "${ac_cv_lib_socket_connect+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12327 ac_check_lib_save_LIBS=$LIBS
12328 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12329 cat >conftest.$ac_ext <<_ACEOF
12330 #line 12330 "configure"
12331 #include "confdefs.h"
12333 /* Override any gcc2 internal prototype to avoid an error. */
12337 /* We use char because int might match the return type of a gcc2
12338 builtin and then its argument prototype would still apply. */
12348 rm -f conftest.$ac_objext conftest$ac_exeext
12349 if { (eval echo "$as_me:12349: \"$ac_link\"") >&5
12350 (eval $ac_link) 2>&5
12352 echo "$as_me:12352: \$? = $ac_status" >&5
12353 (exit $ac_status); } &&
12354 { ac_try='test -s conftest$ac_exeext'
12355 { (eval echo "$as_me:12355: \"$ac_try\"") >&5
12356 (eval $ac_try) 2>&5
12358 echo "$as_me:12358: \$? = $ac_status" >&5
12359 (exit $ac_status); }; }; then
12360 ac_cv_lib_socket_connect=yes
12362 echo "$as_me: failed program was:" >&5
12363 cat conftest.$ac_ext >&5
12364 ac_cv_lib_socket_connect=no
12366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12367 LIBS=$ac_check_lib_save_LIBS
12369 echo "$as_me:12369: result: $ac_cv_lib_socket_connect" >&5
12370 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
12371 if test $ac_cv_lib_socket_connect = yes; then
12372 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12377 # Guillermo Gomez says -lposix is necessary on A/UX.
12378 echo "$as_me:12378: checking for remove" >&5
12379 echo $ECHO_N "checking for remove... $ECHO_C" >&6
12380 if test "${ac_cv_func_remove+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 cat >conftest.$ac_ext <<_ACEOF
12384 #line 12384 "configure"
12385 #include "confdefs.h"
12386 #define remove autoconf_temporary
12387 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12394 /* We use char because int might match the return type of a gcc2
12395 builtin and then its argument prototype would still apply. */
12396 char remove (void);
12402 /* The GNU C library defines stubs for functions which it implements
12403 to always fail with ENOSYS. Some functions are actually named
12404 something starting with __ and the normal name is an alias. */
12405 #if defined (__stub_remove) || defined (__stub___remove)
12406 #error found stub for remove
12414 rm -f conftest.$ac_objext conftest$ac_exeext
12415 if { (eval echo "$as_me:12415: \"$ac_link\"") >&5
12416 (eval $ac_link) 2>&5
12418 echo "$as_me:12418: \$? = $ac_status" >&5
12419 (exit $ac_status); } &&
12420 { ac_try='test -s conftest$ac_exeext'
12421 { (eval echo "$as_me:12421: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12424 echo "$as_me:12424: \$? = $ac_status" >&5
12425 (exit $ac_status); }; }; then
12426 ac_cv_func_remove=yes
12428 echo "$as_me: failed program was:" >&5
12429 cat conftest.$ac_ext >&5
12430 ac_cv_func_remove=no
12432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12434 echo "$as_me:12434: result: $ac_cv_func_remove" >&5
12435 echo "${ECHO_T}$ac_cv_func_remove" >&6
12437 if test $ac_cv_func_remove = no; then
12438 echo "$as_me:12438: checking for remove in -lposix" >&5
12439 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
12440 if test "${ac_cv_lib_posix_remove+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 ac_check_lib_save_LIBS=$LIBS
12444 LIBS="-lposix $LIBS"
12445 cat >conftest.$ac_ext <<_ACEOF
12446 #line 12446 "configure"
12447 #include "confdefs.h"
12449 /* Override any gcc2 internal prototype to avoid an error. */
12453 /* We use char because int might match the return type of a gcc2
12454 builtin and then its argument prototype would still apply. */
12464 rm -f conftest.$ac_objext conftest$ac_exeext
12465 if { (eval echo "$as_me:12465: \"$ac_link\"") >&5
12466 (eval $ac_link) 2>&5
12468 echo "$as_me:12468: \$? = $ac_status" >&5
12469 (exit $ac_status); } &&
12470 { ac_try='test -s conftest$ac_exeext'
12471 { (eval echo "$as_me:12471: \"$ac_try\"") >&5
12472 (eval $ac_try) 2>&5
12474 echo "$as_me:12474: \$? = $ac_status" >&5
12475 (exit $ac_status); }; }; then
12476 ac_cv_lib_posix_remove=yes
12478 echo "$as_me: failed program was:" >&5
12479 cat conftest.$ac_ext >&5
12480 ac_cv_lib_posix_remove=no
12482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12483 LIBS=$ac_check_lib_save_LIBS
12485 echo "$as_me:12485: result: $ac_cv_lib_posix_remove" >&5
12486 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
12487 if test $ac_cv_lib_posix_remove = yes; then
12488 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12493 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12494 echo "$as_me:12494: checking for shmat" >&5
12495 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
12496 if test "${ac_cv_func_shmat+set}" = set; then
12497 echo $ECHO_N "(cached) $ECHO_C" >&6
12499 cat >conftest.$ac_ext <<_ACEOF
12500 #line 12500 "configure"
12501 #include "confdefs.h"
12502 #define shmat autoconf_temporary
12503 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12510 /* We use char because int might match the return type of a gcc2
12511 builtin and then its argument prototype would still apply. */
12518 /* The GNU C library defines stubs for functions which it implements
12519 to always fail with ENOSYS. Some functions are actually named
12520 something starting with __ and the normal name is an alias. */
12521 #if defined (__stub_shmat) || defined (__stub___shmat)
12522 #error found stub for shmat
12530 rm -f conftest.$ac_objext conftest$ac_exeext
12531 if { (eval echo "$as_me:12531: \"$ac_link\"") >&5
12532 (eval $ac_link) 2>&5
12534 echo "$as_me:12534: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
12536 { ac_try='test -s conftest$ac_exeext'
12537 { (eval echo "$as_me:12537: \"$ac_try\"") >&5
12538 (eval $ac_try) 2>&5
12540 echo "$as_me:12540: \$? = $ac_status" >&5
12541 (exit $ac_status); }; }; then
12542 ac_cv_func_shmat=yes
12544 echo "$as_me: failed program was:" >&5
12545 cat conftest.$ac_ext >&5
12546 ac_cv_func_shmat=no
12548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12550 echo "$as_me:12550: result: $ac_cv_func_shmat" >&5
12551 echo "${ECHO_T}$ac_cv_func_shmat" >&6
12553 if test $ac_cv_func_shmat = no; then
12554 echo "$as_me:12554: checking for shmat in -lipc" >&5
12555 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
12556 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 ac_check_lib_save_LIBS=$LIBS
12561 cat >conftest.$ac_ext <<_ACEOF
12562 #line 12562 "configure"
12563 #include "confdefs.h"
12565 /* Override any gcc2 internal prototype to avoid an error. */
12569 /* We use char because int might match the return type of a gcc2
12570 builtin and then its argument prototype would still apply. */
12580 rm -f conftest.$ac_objext conftest$ac_exeext
12581 if { (eval echo "$as_me:12581: \"$ac_link\"") >&5
12582 (eval $ac_link) 2>&5
12584 echo "$as_me:12584: \$? = $ac_status" >&5
12585 (exit $ac_status); } &&
12586 { ac_try='test -s conftest$ac_exeext'
12587 { (eval echo "$as_me:12587: \"$ac_try\"") >&5
12588 (eval $ac_try) 2>&5
12590 echo "$as_me:12590: \$? = $ac_status" >&5
12591 (exit $ac_status); }; }; then
12592 ac_cv_lib_ipc_shmat=yes
12594 echo "$as_me: failed program was:" >&5
12595 cat conftest.$ac_ext >&5
12596 ac_cv_lib_ipc_shmat=no
12598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12599 LIBS=$ac_check_lib_save_LIBS
12601 echo "$as_me:12601: result: $ac_cv_lib_ipc_shmat" >&5
12602 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
12603 if test $ac_cv_lib_ipc_shmat = yes; then
12604 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12610 # Check for libraries that X11R6 Xt/Xaw programs need.
12611 ac_save_LDFLAGS=$LDFLAGS
12612 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12613 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12614 # check for ICE first), but we must link in the order -lSM -lICE or
12615 # we get undefined symbols. So assume we have SM if we have ICE.
12616 # These have to be linked with before -lX11, unlike the other
12617 # libraries we check for below, so use a different variable.
12618 # John Interrante, Karl Berry
12619 echo "$as_me:12619: checking for IceConnectionNumber in -lICE" >&5
12620 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
12621 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12622 echo $ECHO_N "(cached) $ECHO_C" >&6
12624 ac_check_lib_save_LIBS=$LIBS
12625 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12626 cat >conftest.$ac_ext <<_ACEOF
12627 #line 12627 "configure"
12628 #include "confdefs.h"
12630 /* Override any gcc2 internal prototype to avoid an error. */
12634 /* We use char because int might match the return type of a gcc2
12635 builtin and then its argument prototype would still apply. */
12636 char IceConnectionNumber ();
12640 IceConnectionNumber ();
12645 rm -f conftest.$ac_objext conftest$ac_exeext
12646 if { (eval echo "$as_me:12646: \"$ac_link\"") >&5
12647 (eval $ac_link) 2>&5
12649 echo "$as_me:12649: \$? = $ac_status" >&5
12650 (exit $ac_status); } &&
12651 { ac_try='test -s conftest$ac_exeext'
12652 { (eval echo "$as_me:12652: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12655 echo "$as_me:12655: \$? = $ac_status" >&5
12656 (exit $ac_status); }; }; then
12657 ac_cv_lib_ICE_IceConnectionNumber=yes
12659 echo "$as_me: failed program was:" >&5
12660 cat conftest.$ac_ext >&5
12661 ac_cv_lib_ICE_IceConnectionNumber=no
12663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12664 LIBS=$ac_check_lib_save_LIBS
12666 echo "$as_me:12666: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12667 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
12668 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12669 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12672 LDFLAGS=$ac_save_LDFLAGS
12676 cf_x_athena=${cf_x_athena:-Xaw}
12678 echo "$as_me:12678: checking if you want to link with Xaw 3d library" >&5
12679 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
12682 # Check whether --with-Xaw3d or --without-Xaw3d was given.
12683 if test "${with_Xaw3d+set}" = set; then
12684 withval="$with_Xaw3d"
12687 if test "$withval" = yes ; then
12689 echo "$as_me:12689: result: yes" >&5
12690 echo "${ECHO_T}yes" >&6
12692 echo "$as_me:12692: result: no" >&5
12693 echo "${ECHO_T}no" >&6
12696 echo "$as_me:12696: checking if you want to link with Xaw 3d xft library" >&5
12697 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
12700 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
12701 if test "${with_Xaw3dxft+set}" = set; then
12702 withval="$with_Xaw3dxft"
12705 if test "$withval" = yes ; then
12706 cf_x_athena=Xaw3dxft
12707 echo "$as_me:12707: result: yes" >&5
12708 echo "${ECHO_T}yes" >&6
12710 echo "$as_me:12710: result: no" >&5
12711 echo "${ECHO_T}no" >&6
12714 echo "$as_me:12714: checking if you want to link with neXT Athena library" >&5
12715 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
12718 # Check whether --with-neXtaw or --without-neXtaw was given.
12719 if test "${with_neXtaw+set}" = set; then
12720 withval="$with_neXtaw"
12723 if test "$withval" = yes ; then
12725 echo "$as_me:12725: result: yes" >&5
12726 echo "${ECHO_T}yes" >&6
12728 echo "$as_me:12728: result: no" >&5
12729 echo "${ECHO_T}no" >&6
12732 echo "$as_me:12732: checking if you want to link with Athena-Plus library" >&5
12733 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
12736 # Check whether --with-XawPlus or --without-XawPlus was given.
12737 if test "${with_XawPlus+set}" = set; then
12738 withval="$with_XawPlus"
12741 if test "$withval" = yes ; then
12742 cf_x_athena=XawPlus
12743 echo "$as_me:12743: result: yes" >&5
12744 echo "${ECHO_T}yes" >&6
12746 echo "$as_me:12746: result: no" >&5
12747 echo "${ECHO_T}no" >&6
12752 if test "$PKG_CONFIG" != none ; then
12754 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
12755 for cf_athena_pkg in \
12758 ${cf_x_athena}-devel \
12759 lib${cf_x_athena} \
12760 lib${cf_x_athena}-devel
12763 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
12764 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
12766 echo "${as_me:-configure}:12766: testing found package $cf_athena_pkg ..." 1>&5
12768 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
12769 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
12770 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
12772 echo "${as_me:-configure}:12772: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12774 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
12776 echo "${as_me:-configure}:12776: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
12781 cf_new_extra_cppflags=
12783 for cf_add_cflags in $cf_pkgconfig_incs
12785 case $cf_fix_cppflags in
12787 case $cf_add_cflags in
12788 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12789 case $cf_add_cflags in
12791 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12793 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12794 && test -z "${cf_tst_cflags}" \
12795 && cf_fix_cppflags=yes
12797 if test $cf_fix_cppflags = yes ; then
12799 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12800 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12803 elif test "${cf_tst_cflags}" = "\"'" ; then
12805 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12806 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12812 case "$CPPFLAGS" in
12816 case $cf_add_cflags in
12818 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12820 CPPFLAGS=`echo "$CPPFLAGS" | \
12821 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12822 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12827 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12828 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12835 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12836 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12843 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12844 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12846 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12848 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12849 && test -z "${cf_tst_cflags}" \
12850 && cf_fix_cppflags=no
12855 if test -n "$cf_new_cflags" ; then
12857 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12858 CFLAGS="${CFLAGS}$cf_new_cflags"
12862 if test -n "$cf_new_cppflags" ; then
12864 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12865 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12869 if test -n "$cf_new_extra_cppflags" ; then
12871 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12872 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12876 cf_add_libs="$LIBS"
12879 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12880 # filter duplicates
12881 for cf_add_1lib in $cf_add_0lib; do
12882 for cf_add_2lib in $cf_add_libs; do
12883 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12888 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12890 LIBS="$cf_add_libs"
12892 cf_x_athena_lib="$cf_pkgconfig_libs"
12894 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12896 cat >>confdefs.h <<EOF
12897 #define $cf_x_athena_LIBS 1
12900 for cf_trim_lib in Xmu Xt X11
12903 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
12904 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
12905 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
12907 echo "${as_me:-configure}:12907: testing ..trimmed $LIBS ..." 1>&5
12913 echo "$as_me:12913: checking for usable $cf_x_athena/Xmu package" >&5
12914 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
12915 if test "${cf_cv_xaw_compat+set}" = set; then
12916 echo $ECHO_N "(cached) $ECHO_C" >&6
12919 cat >conftest.$ac_ext <<_ACEOF
12920 #line 12920 "configure"
12921 #include "confdefs.h"
12923 #include <X11/Xmu/CharSet.h>
12929 int check = XmuCompareISOLatin1("big", "small")
12935 rm -f conftest.$ac_objext conftest$ac_exeext
12936 if { (eval echo "$as_me:12936: \"$ac_link\"") >&5
12937 (eval $ac_link) 2>&5
12939 echo "$as_me:12939: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try='test -s conftest$ac_exeext'
12942 { (eval echo "$as_me:12942: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12945 echo "$as_me:12945: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12947 cf_cv_xaw_compat=yes
12949 echo "$as_me: failed program was:" >&5
12950 cat conftest.$ac_ext >&5
12951 cf_cv_xaw_compat=no
12953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12955 echo "$as_me:12955: result: $cf_cv_xaw_compat" >&5
12956 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
12958 if test "$cf_cv_xaw_compat" = no
12960 # workaround for broken ".pc" files...
12961 case "$cf_x_athena_lib" in
12965 test -n "$verbose" && echo " work around broken package" 1>&6
12967 echo "${as_me:-configure}:12967: testing work around broken package ..." 1>&5
12969 cf_save_xmu="$LIBS"
12970 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
12972 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
12973 test -n "$verbose" && echo " found package xmu" 1>&6
12975 echo "${as_me:-configure}:12975: testing found package xmu ..." 1>&5
12977 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
12978 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
12979 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
12981 echo "${as_me:-configure}:12981: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12983 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
12985 echo "${as_me:-configure}:12985: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
12990 cf_new_extra_cppflags=
12992 for cf_add_cflags in $cf_pkgconfig_incs
12994 case $cf_fix_cppflags in
12996 case $cf_add_cflags in
12997 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12998 case $cf_add_cflags in
13000 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13002 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13003 && test -z "${cf_tst_cflags}" \
13004 && cf_fix_cppflags=yes
13006 if test $cf_fix_cppflags = yes ; then
13008 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13009 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13012 elif test "${cf_tst_cflags}" = "\"'" ; then
13014 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13015 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13021 case "$CPPFLAGS" in
13025 case $cf_add_cflags in
13027 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13029 CPPFLAGS=`echo "$CPPFLAGS" | \
13030 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13031 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13036 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13037 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13044 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13045 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13052 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13053 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13055 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13057 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13058 && test -z "${cf_tst_cflags}" \
13059 && cf_fix_cppflags=no
13064 if test -n "$cf_new_cflags" ; then
13066 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13067 CFLAGS="${CFLAGS}$cf_new_cflags"
13071 if test -n "$cf_new_cppflags" ; then
13073 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13074 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13078 if test -n "$cf_new_extra_cppflags" ; then
13080 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13081 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13085 cf_add_libs="$LIBS"
13088 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13089 # filter duplicates
13090 for cf_add_1lib in $cf_add_0lib; do
13091 for cf_add_2lib in $cf_add_libs; do
13092 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13097 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13099 LIBS="$cf_add_libs"
13101 LIBS="$cf_save_xmu"
13103 test -n "$verbose" && echo " ...before $LIBS" 1>&6
13105 echo "${as_me:-configure}:13105: testing ...before $LIBS ..." 1>&5
13107 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
13108 test -n "$verbose" && echo " ...after $LIBS" 1>&6
13110 echo "${as_me:-configure}:13110: testing ...after $LIBS ..." 1>&5
13116 test -n "$verbose" && echo " ...before $LIBS" 1>&6
13118 echo "${as_me:-configure}:13118: testing ...before $LIBS ..." 1>&5
13120 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
13121 test -n "$verbose" && echo " ...after $LIBS" 1>&6
13123 echo "${as_me:-configure}:13123: testing ...after $LIBS ..." 1>&5
13127 for cf_trim_lib in Xmu Xt X11
13130 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
13131 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
13132 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
13134 echo "${as_me:-configure}:13134: testing ..trimmed $LIBS ..." 1>&5
13154 if test -z "$cf_x_athena_lib" ; then
13156 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
13157 test -n "$verbose" && echo " found package Xext" 1>&6
13159 echo "${as_me:-configure}:13159: testing found package Xext ..." 1>&5
13161 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
13162 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
13163 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
13165 echo "${as_me:-configure}:13165: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13167 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
13169 echo "${as_me:-configure}:13169: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
13174 cf_new_extra_cppflags=
13176 for cf_add_cflags in $cf_pkgconfig_incs
13178 case $cf_fix_cppflags in
13180 case $cf_add_cflags in
13181 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13182 case $cf_add_cflags in
13184 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13186 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13187 && test -z "${cf_tst_cflags}" \
13188 && cf_fix_cppflags=yes
13190 if test $cf_fix_cppflags = yes ; then
13192 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13193 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13196 elif test "${cf_tst_cflags}" = "\"'" ; then
13198 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13199 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13205 case "$CPPFLAGS" in
13209 case $cf_add_cflags in
13211 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13213 CPPFLAGS=`echo "$CPPFLAGS" | \
13214 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13215 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13220 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13221 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13228 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13229 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13236 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13237 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13239 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13241 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13242 && test -z "${cf_tst_cflags}" \
13243 && cf_fix_cppflags=no
13248 if test -n "$cf_new_cflags" ; then
13250 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13251 CFLAGS="${CFLAGS}$cf_new_cflags"
13255 if test -n "$cf_new_cppflags" ; then
13257 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13258 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13262 if test -n "$cf_new_extra_cppflags" ; then
13264 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13265 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13269 cf_add_libs="$LIBS"
13272 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13273 # filter duplicates
13274 for cf_add_1lib in $cf_add_0lib; do
13275 for cf_add_2lib in $cf_add_libs; do
13276 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13281 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13283 LIBS="$cf_add_libs"
13290 echo "$as_me:13290: checking for XextCreateExtension in -lXext" >&5
13291 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
13292 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 ac_check_lib_save_LIBS=$LIBS
13296 LIBS="-lXext $LIBS"
13297 cat >conftest.$ac_ext <<_ACEOF
13298 #line 13298 "configure"
13299 #include "confdefs.h"
13301 /* Override any gcc2 internal prototype to avoid an error. */
13305 /* We use char because int might match the return type of a gcc2
13306 builtin and then its argument prototype would still apply. */
13307 char XextCreateExtension ();
13311 XextCreateExtension ();
13316 rm -f conftest.$ac_objext conftest$ac_exeext
13317 if { (eval echo "$as_me:13317: \"$ac_link\"") >&5
13318 (eval $ac_link) 2>&5
13320 echo "$as_me:13320: \$? = $ac_status" >&5
13321 (exit $ac_status); } &&
13322 { ac_try='test -s conftest$ac_exeext'
13323 { (eval echo "$as_me:13323: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13326 echo "$as_me:13326: \$? = $ac_status" >&5
13327 (exit $ac_status); }; }; then
13328 ac_cv_lib_Xext_XextCreateExtension=yes
13330 echo "$as_me: failed program was:" >&5
13331 cat conftest.$ac_ext >&5
13332 ac_cv_lib_Xext_XextCreateExtension=no
13334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13335 LIBS=$ac_check_lib_save_LIBS
13337 echo "$as_me:13337: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
13338 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
13339 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
13341 cf_add_libs="$LIBS"
13344 for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13345 # filter duplicates
13346 for cf_add_1lib in $cf_add_0lib; do
13347 for cf_add_2lib in $cf_add_libs; do
13348 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13353 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13355 LIBS="$cf_add_libs"
13361 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and
13362 # in some cases has installed dummy files in the former, other cases replaced
13363 # it with a link to the new location). This complicates the configure script.
13364 # Check for that pitfall, and recover using pkg-config
13366 # If none of these are set, the configuration is almost certainly broken.
13367 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
13370 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
13371 test -n "$verbose" && echo " found package x11" 1>&6
13373 echo "${as_me:-configure}:13373: testing found package x11 ..." 1>&5
13375 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
13376 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
13377 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
13379 echo "${as_me:-configure}:13379: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13381 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
13383 echo "${as_me:-configure}:13383: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
13388 cf_new_extra_cppflags=
13390 for cf_add_cflags in $cf_pkgconfig_incs
13392 case $cf_fix_cppflags in
13394 case $cf_add_cflags in
13395 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13396 case $cf_add_cflags in
13398 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13400 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13401 && test -z "${cf_tst_cflags}" \
13402 && cf_fix_cppflags=yes
13404 if test $cf_fix_cppflags = yes ; then
13406 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13407 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13410 elif test "${cf_tst_cflags}" = "\"'" ; then
13412 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13413 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13419 case "$CPPFLAGS" in
13423 case $cf_add_cflags in
13425 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13427 CPPFLAGS=`echo "$CPPFLAGS" | \
13428 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13429 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13434 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13435 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13442 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13443 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13450 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13451 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13453 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13455 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13456 && test -z "${cf_tst_cflags}" \
13457 && cf_fix_cppflags=no
13462 if test -n "$cf_new_cflags" ; then
13464 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13465 CFLAGS="${CFLAGS}$cf_new_cflags"
13469 if test -n "$cf_new_cppflags" ; then
13471 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13472 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13476 if test -n "$cf_new_extra_cppflags" ; then
13478 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13479 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13483 cf_add_libs="$LIBS"
13486 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13487 # filter duplicates
13488 for cf_add_1lib in $cf_add_0lib; do
13489 for cf_add_2lib in $cf_add_libs; do
13490 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13495 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13497 LIBS="$cf_add_libs"
13503 { echo "$as_me:13503: WARNING: unable to find X11 library" >&5
13504 echo "$as_me: WARNING: unable to find X11 library" >&2;}
13507 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
13508 test -n "$verbose" && echo " found package ice" 1>&6
13510 echo "${as_me:-configure}:13510: testing found package ice ..." 1>&5
13512 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
13513 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
13514 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
13516 echo "${as_me:-configure}:13516: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13518 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
13520 echo "${as_me:-configure}:13520: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
13525 cf_new_extra_cppflags=
13527 for cf_add_cflags in $cf_pkgconfig_incs
13529 case $cf_fix_cppflags in
13531 case $cf_add_cflags in
13532 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13533 case $cf_add_cflags in
13535 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13537 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13538 && test -z "${cf_tst_cflags}" \
13539 && cf_fix_cppflags=yes
13541 if test $cf_fix_cppflags = yes ; then
13543 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13544 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13547 elif test "${cf_tst_cflags}" = "\"'" ; then
13549 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13550 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13556 case "$CPPFLAGS" in
13560 case $cf_add_cflags in
13562 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13564 CPPFLAGS=`echo "$CPPFLAGS" | \
13565 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13566 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13571 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13572 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13579 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13580 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13587 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13588 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13590 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13592 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13593 && test -z "${cf_tst_cflags}" \
13594 && cf_fix_cppflags=no
13599 if test -n "$cf_new_cflags" ; then
13601 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13602 CFLAGS="${CFLAGS}$cf_new_cflags"
13606 if test -n "$cf_new_cppflags" ; then
13608 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13609 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13613 if test -n "$cf_new_extra_cppflags" ; then
13615 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13616 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13620 cf_add_libs="$LIBS"
13623 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13624 # filter duplicates
13625 for cf_add_1lib in $cf_add_0lib; do
13626 for cf_add_2lib in $cf_add_libs; do
13627 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13632 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13634 LIBS="$cf_add_libs"
13640 { echo "$as_me:13640: WARNING: unable to find ICE library" >&5
13641 echo "$as_me: WARNING: unable to find ICE library" >&2;}
13644 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
13645 test -n "$verbose" && echo " found package sm" 1>&6
13647 echo "${as_me:-configure}:13647: testing found package sm ..." 1>&5
13649 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
13650 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
13651 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
13653 echo "${as_me:-configure}:13653: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13655 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
13657 echo "${as_me:-configure}:13657: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
13662 cf_new_extra_cppflags=
13664 for cf_add_cflags in $cf_pkgconfig_incs
13666 case $cf_fix_cppflags in
13668 case $cf_add_cflags in
13669 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13670 case $cf_add_cflags in
13672 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13674 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13675 && test -z "${cf_tst_cflags}" \
13676 && cf_fix_cppflags=yes
13678 if test $cf_fix_cppflags = yes ; then
13680 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13681 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13684 elif test "${cf_tst_cflags}" = "\"'" ; then
13686 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13687 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13693 case "$CPPFLAGS" in
13697 case $cf_add_cflags in
13699 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13701 CPPFLAGS=`echo "$CPPFLAGS" | \
13702 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13703 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13708 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13709 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13716 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13717 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13724 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13725 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13727 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13729 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13730 && test -z "${cf_tst_cflags}" \
13731 && cf_fix_cppflags=no
13736 if test -n "$cf_new_cflags" ; then
13738 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13739 CFLAGS="${CFLAGS}$cf_new_cflags"
13743 if test -n "$cf_new_cppflags" ; then
13745 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13746 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13750 if test -n "$cf_new_extra_cppflags" ; then
13752 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13753 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13757 cf_add_libs="$LIBS"
13760 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13761 # filter duplicates
13762 for cf_add_1lib in $cf_add_0lib; do
13763 for cf_add_2lib in $cf_add_libs; do
13764 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13769 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13771 LIBS="$cf_add_libs"
13777 { echo "$as_me:13777: WARNING: unable to find SM library" >&5
13778 echo "$as_me: WARNING: unable to find SM library" >&2;}
13781 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
13782 test -n "$verbose" && echo " found package xt" 1>&6
13784 echo "${as_me:-configure}:13784: testing found package xt ..." 1>&5
13786 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
13787 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
13788 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
13790 echo "${as_me:-configure}:13790: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13792 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
13794 echo "${as_me:-configure}:13794: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
13799 cf_new_extra_cppflags=
13801 for cf_add_cflags in $cf_pkgconfig_incs
13803 case $cf_fix_cppflags in
13805 case $cf_add_cflags in
13806 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13807 case $cf_add_cflags in
13809 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13811 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13812 && test -z "${cf_tst_cflags}" \
13813 && cf_fix_cppflags=yes
13815 if test $cf_fix_cppflags = yes ; then
13817 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13818 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13821 elif test "${cf_tst_cflags}" = "\"'" ; then
13823 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13824 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13830 case "$CPPFLAGS" in
13834 case $cf_add_cflags in
13836 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13838 CPPFLAGS=`echo "$CPPFLAGS" | \
13839 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13840 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13845 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13846 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13853 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13854 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13861 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13862 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13864 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13866 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13867 && test -z "${cf_tst_cflags}" \
13868 && cf_fix_cppflags=no
13873 if test -n "$cf_new_cflags" ; then
13875 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13876 CFLAGS="${CFLAGS}$cf_new_cflags"
13880 if test -n "$cf_new_cppflags" ; then
13882 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13883 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13887 if test -n "$cf_new_extra_cppflags" ; then
13889 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13890 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13894 cf_add_libs="$LIBS"
13897 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13898 # filter duplicates
13899 for cf_add_1lib in $cf_add_0lib; do
13900 for cf_add_2lib in $cf_add_libs; do
13901 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13906 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13908 LIBS="$cf_add_libs"
13914 { echo "$as_me:13914: WARNING: unable to find Xt library" >&5
13915 echo "$as_me: WARNING: unable to find Xt library" >&2;}
13922 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
13923 test -n "$verbose" && echo " found package xt" 1>&6
13925 echo "${as_me:-configure}:13925: testing found package xt ..." 1>&5
13927 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
13928 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
13929 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
13931 echo "${as_me:-configure}:13931: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13933 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
13935 echo "${as_me:-configure}:13935: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
13940 cf_new_extra_cppflags=
13942 for cf_add_cflags in $cf_pkgconfig_incs
13944 case $cf_fix_cppflags in
13946 case $cf_add_cflags in
13947 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13948 case $cf_add_cflags in
13950 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13952 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13953 && test -z "${cf_tst_cflags}" \
13954 && cf_fix_cppflags=yes
13956 if test $cf_fix_cppflags = yes ; then
13958 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13959 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13962 elif test "${cf_tst_cflags}" = "\"'" ; then
13964 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13965 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13971 case "$CPPFLAGS" in
13975 case $cf_add_cflags in
13977 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13979 CPPFLAGS=`echo "$CPPFLAGS" | \
13980 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13981 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13986 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13987 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13994 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13995 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14002 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14003 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14005 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14007 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14008 && test -z "${cf_tst_cflags}" \
14009 && cf_fix_cppflags=no
14014 if test -n "$cf_new_cflags" ; then
14016 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14017 CFLAGS="${CFLAGS}$cf_new_cflags"
14021 if test -n "$cf_new_cppflags" ; then
14023 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14024 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14028 if test -n "$cf_new_extra_cppflags" ; then
14030 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14031 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14035 cf_add_libs="$LIBS"
14038 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14039 # filter duplicates
14040 for cf_add_1lib in $cf_add_0lib; do
14041 for cf_add_2lib in $cf_add_libs; do
14042 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14047 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14049 LIBS="$cf_add_libs"
14055 # we have an "xt" package, but it may omit Xt's dependency on X11
14056 echo "$as_me:14056: checking for usable X dependency" >&5
14057 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
14058 if test "${cf_cv_xt_x11_compat+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 cat >conftest.$ac_ext <<_ACEOF
14063 #line 14063 "configure"
14064 #include "confdefs.h"
14066 #include <X11/Xlib.h>
14072 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
14073 int rc2 = XClearWindow((Display*) 0, (Window) 0);
14074 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
14075 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (eval echo "$as_me:14082: \"$ac_link\"") >&5
14083 (eval $ac_link) 2>&5
14085 echo "$as_me:14085: \$? = $ac_status" >&5
14086 (exit $ac_status); } &&
14087 { ac_try='test -s conftest$ac_exeext'
14088 { (eval echo "$as_me:14088: \"$ac_try\"") >&5
14089 (eval $ac_try) 2>&5
14091 echo "$as_me:14091: \$? = $ac_status" >&5
14092 (exit $ac_status); }; }; then
14093 cf_cv_xt_x11_compat=yes
14095 echo "$as_me: failed program was:" >&5
14096 cat conftest.$ac_ext >&5
14097 cf_cv_xt_x11_compat=no
14099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14101 echo "$as_me:14101: result: $cf_cv_xt_x11_compat" >&5
14102 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
14103 if test "$cf_cv_xt_x11_compat" = no
14105 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
14107 echo "${as_me:-configure}:14107: testing work around broken X11 dependency ..." 1>&5
14109 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
14111 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
14112 test -n "$verbose" && echo " found package x11" 1>&6
14114 echo "${as_me:-configure}:14114: testing found package x11 ..." 1>&5
14116 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
14117 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
14118 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
14120 echo "${as_me:-configure}:14120: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14122 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
14124 echo "${as_me:-configure}:14124: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
14129 cf_new_extra_cppflags=
14131 for cf_add_cflags in $cf_pkgconfig_incs
14133 case $cf_fix_cppflags in
14135 case $cf_add_cflags in
14136 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14137 case $cf_add_cflags in
14139 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14141 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14142 && test -z "${cf_tst_cflags}" \
14143 && cf_fix_cppflags=yes
14145 if test $cf_fix_cppflags = yes ; then
14147 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14148 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14151 elif test "${cf_tst_cflags}" = "\"'" ; then
14153 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14154 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14160 case "$CPPFLAGS" in
14164 case $cf_add_cflags in
14166 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14168 CPPFLAGS=`echo "$CPPFLAGS" | \
14169 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14170 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14175 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14176 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14183 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14184 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14191 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14192 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14194 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14196 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14197 && test -z "${cf_tst_cflags}" \
14198 && cf_fix_cppflags=no
14203 if test -n "$cf_new_cflags" ; then
14205 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14206 CFLAGS="${CFLAGS}$cf_new_cflags"
14210 if test -n "$cf_new_cppflags" ; then
14212 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14213 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14217 if test -n "$cf_new_extra_cppflags" ; then
14219 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14220 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14224 cf_add_libs="$LIBS"
14227 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14228 # filter duplicates
14229 for cf_add_1lib in $cf_add_0lib; do
14230 for cf_add_2lib in $cf_add_libs; do
14231 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14236 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14238 LIBS="$cf_add_libs"
14245 test -n "$verbose" && echo " ...before $LIBS" 1>&6
14247 echo "${as_me:-configure}:14247: testing ...before $LIBS ..." 1>&5
14249 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
14250 test -n "$verbose" && echo " ...after $LIBS" 1>&6
14252 echo "${as_me:-configure}:14252: testing ...after $LIBS ..." 1>&5
14260 echo "$as_me:14260: checking for usable X Toolkit package" >&5
14261 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
14262 if test "${cf_cv_xt_ice_compat+set}" = set; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14266 cat >conftest.$ac_ext <<_ACEOF
14267 #line 14267 "configure"
14268 #include "confdefs.h"
14270 #include <X11/Shell.h>
14275 int num = IceConnectionNumber(0)
14281 rm -f conftest.$ac_objext conftest$ac_exeext
14282 if { (eval echo "$as_me:14282: \"$ac_link\"") >&5
14283 (eval $ac_link) 2>&5
14285 echo "$as_me:14285: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
14287 { ac_try='test -s conftest$ac_exeext'
14288 { (eval echo "$as_me:14288: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14291 echo "$as_me:14291: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 cf_cv_xt_ice_compat=yes
14295 echo "$as_me: failed program was:" >&5
14296 cat conftest.$ac_ext >&5
14297 cf_cv_xt_ice_compat=no
14299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14301 echo "$as_me:14301: result: $cf_cv_xt_ice_compat" >&5
14302 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
14304 if test "$cf_cv_xt_ice_compat" = no
14306 # workaround for broken ".pc" files used for X Toolkit.
14307 case "x$X_PRE_LIBS" in
14313 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
14315 echo "${as_me:-configure}:14315: testing work around broken ICE dependency ..." 1>&5
14317 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
14318 test -n "$verbose" && echo " found package ice" 1>&6
14320 echo "${as_me:-configure}:14320: testing found package ice ..." 1>&5
14322 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
14323 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
14324 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
14326 echo "${as_me:-configure}:14326: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14328 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
14330 echo "${as_me:-configure}:14330: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
14335 cf_new_extra_cppflags=
14337 for cf_add_cflags in $cf_pkgconfig_incs
14339 case $cf_fix_cppflags in
14341 case $cf_add_cflags in
14342 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14343 case $cf_add_cflags in
14345 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14347 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14348 && test -z "${cf_tst_cflags}" \
14349 && cf_fix_cppflags=yes
14351 if test $cf_fix_cppflags = yes ; then
14353 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14354 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14357 elif test "${cf_tst_cflags}" = "\"'" ; then
14359 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14360 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14366 case "$CPPFLAGS" in
14370 case $cf_add_cflags in
14372 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14374 CPPFLAGS=`echo "$CPPFLAGS" | \
14375 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14376 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14381 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14382 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14389 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14390 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14397 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14398 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14400 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14402 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14403 && test -z "${cf_tst_cflags}" \
14404 && cf_fix_cppflags=no
14409 if test -n "$cf_new_cflags" ; then
14411 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14412 CFLAGS="${CFLAGS}$cf_new_cflags"
14416 if test -n "$cf_new_cppflags" ; then
14418 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14419 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14423 if test -n "$cf_new_extra_cppflags" ; then
14425 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14426 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14430 cf_add_libs="$LIBS"
14433 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14434 # filter duplicates
14435 for cf_add_1lib in $cf_add_0lib; do
14436 for cf_add_2lib in $cf_add_libs; do
14437 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14442 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14444 LIBS="$cf_add_libs"
14446 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
14447 test -n "$verbose" && echo " found package sm" 1>&6
14449 echo "${as_me:-configure}:14449: testing found package sm ..." 1>&5
14451 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
14452 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
14453 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
14455 echo "${as_me:-configure}:14455: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14457 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
14459 echo "${as_me:-configure}:14459: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
14464 cf_new_extra_cppflags=
14466 for cf_add_cflags in $cf_pkgconfig_incs
14468 case $cf_fix_cppflags in
14470 case $cf_add_cflags in
14471 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14472 case $cf_add_cflags in
14474 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14476 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14477 && test -z "${cf_tst_cflags}" \
14478 && cf_fix_cppflags=yes
14480 if test $cf_fix_cppflags = yes ; then
14482 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14483 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14486 elif test "${cf_tst_cflags}" = "\"'" ; then
14488 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14489 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14495 case "$CPPFLAGS" in
14499 case $cf_add_cflags in
14501 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14503 CPPFLAGS=`echo "$CPPFLAGS" | \
14504 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14505 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14510 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14511 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14518 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14519 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14526 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14527 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14529 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14531 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14532 && test -z "${cf_tst_cflags}" \
14533 && cf_fix_cppflags=no
14538 if test -n "$cf_new_cflags" ; then
14540 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14541 CFLAGS="${CFLAGS}$cf_new_cflags"
14545 if test -n "$cf_new_cppflags" ; then
14547 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14548 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14552 if test -n "$cf_new_extra_cppflags" ; then
14554 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14555 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14559 cf_add_libs="$LIBS"
14562 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14563 # filter duplicates
14564 for cf_add_1lib in $cf_add_0lib; do
14565 for cf_add_2lib in $cf_add_libs; do
14566 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14571 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14573 LIBS="$cf_add_libs"
14586 test -n "$verbose" && echo " ...before $LIBS" 1>&6
14588 echo "${as_me:-configure}:14588: testing ...before $LIBS ..." 1>&5
14590 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
14591 test -n "$verbose" && echo " ...after $LIBS" 1>&6
14593 echo "${as_me:-configure}:14593: testing ...after $LIBS ..." 1>&5
14609 LDFLAGS="$X_LIBS $LDFLAGS"
14611 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
14613 echo "${as_me:-configure}:14613: testing checking additions to CFLAGS ..." 1>&5
14615 cf_check_cflags="$CFLAGS"
14616 cf_check_cppflags="$CPPFLAGS"
14621 cf_new_extra_cppflags=
14623 for cf_add_cflags in $X_CFLAGS
14625 case $cf_fix_cppflags in
14627 case $cf_add_cflags in
14628 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14629 case $cf_add_cflags in
14631 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14633 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14634 && test -z "${cf_tst_cflags}" \
14635 && cf_fix_cppflags=yes
14637 if test $cf_fix_cppflags = yes ; then
14639 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14640 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14643 elif test "${cf_tst_cflags}" = "\"'" ; then
14645 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14646 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14652 case "$CPPFLAGS" in
14656 case $cf_add_cflags in
14658 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14660 CPPFLAGS=`echo "$CPPFLAGS" | \
14661 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14662 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14667 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14668 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14675 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14676 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14683 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14684 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14686 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14688 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14689 && test -z "${cf_tst_cflags}" \
14690 && cf_fix_cppflags=no
14695 if test -n "$cf_new_cflags" ; then
14696 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
14698 echo "${as_me:-configure}:14698: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
14700 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14701 CFLAGS="${CFLAGS}$cf_new_cflags"
14705 if test -n "$cf_new_cppflags" ; then
14706 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
14708 echo "${as_me:-configure}:14708: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
14710 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14711 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14715 if test -n "$cf_new_extra_cppflags" ; then
14716 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
14718 echo "${as_me:-configure}:14718: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
14720 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14721 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14725 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
14726 cat >conftest.$ac_ext <<_ACEOF
14727 #line 14727 "configure"
14728 #include "confdefs.h"
14733 printf("Hello world");
14738 rm -f conftest.$ac_objext conftest$ac_exeext
14739 if { (eval echo "$as_me:14739: \"$ac_link\"") >&5
14740 (eval $ac_link) 2>&5
14742 echo "$as_me:14742: \$? = $ac_status" >&5
14743 (exit $ac_status); } &&
14744 { ac_try='test -s conftest$ac_exeext'
14745 { (eval echo "$as_me:14745: \"$ac_try\"") >&5
14746 (eval $ac_try) 2>&5
14748 echo "$as_me:14748: \$? = $ac_status" >&5
14749 (exit $ac_status); }; }; then
14752 echo "$as_me: failed program was:" >&5
14753 cat conftest.$ac_ext >&5
14754 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
14756 echo "${as_me:-configure}:14756: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
14758 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
14759 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
14761 echo "${as_me:-configure}:14761: testing but keeping change to \$CPPFLAGS ..." 1>&5
14764 CFLAGS="$cf_check_flags"
14766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14769 echo "$as_me:14769: checking for XOpenDisplay" >&5
14770 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
14771 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 cat >conftest.$ac_ext <<_ACEOF
14775 #line 14775 "configure"
14776 #include "confdefs.h"
14777 #define XOpenDisplay autoconf_temporary
14778 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
14779 #undef XOpenDisplay
14785 /* We use char because int might match the return type of a gcc2
14786 builtin and then its argument prototype would still apply. */
14787 char XOpenDisplay (void);
14793 /* The GNU C library defines stubs for functions which it implements
14794 to always fail with ENOSYS. Some functions are actually named
14795 something starting with __ and the normal name is an alias. */
14796 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
14797 #error found stub for XOpenDisplay
14800 return XOpenDisplay ();
14805 rm -f conftest.$ac_objext conftest$ac_exeext
14806 if { (eval echo "$as_me:14806: \"$ac_link\"") >&5
14807 (eval $ac_link) 2>&5
14809 echo "$as_me:14809: \$? = $ac_status" >&5
14810 (exit $ac_status); } &&
14811 { ac_try='test -s conftest$ac_exeext'
14812 { (eval echo "$as_me:14812: \"$ac_try\"") >&5
14813 (eval $ac_try) 2>&5
14815 echo "$as_me:14815: \$? = $ac_status" >&5
14816 (exit $ac_status); }; }; then
14817 ac_cv_func_XOpenDisplay=yes
14819 echo "$as_me: failed program was:" >&5
14820 cat conftest.$ac_ext >&5
14821 ac_cv_func_XOpenDisplay=no
14823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14825 echo "$as_me:14825: result: $ac_cv_func_XOpenDisplay" >&5
14826 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
14827 if test $ac_cv_func_XOpenDisplay = yes; then
14831 echo "$as_me:14831: checking for XOpenDisplay in -lX11" >&5
14832 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
14833 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
14834 echo $ECHO_N "(cached) $ECHO_C" >&6
14836 ac_check_lib_save_LIBS=$LIBS
14837 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
14838 cat >conftest.$ac_ext <<_ACEOF
14839 #line 14839 "configure"
14840 #include "confdefs.h"
14842 /* Override any gcc2 internal prototype to avoid an error. */
14846 /* We use char because int might match the return type of a gcc2
14847 builtin and then its argument prototype would still apply. */
14848 char XOpenDisplay ();
14857 rm -f conftest.$ac_objext conftest$ac_exeext
14858 if { (eval echo "$as_me:14858: \"$ac_link\"") >&5
14859 (eval $ac_link) 2>&5
14861 echo "$as_me:14861: \$? = $ac_status" >&5
14862 (exit $ac_status); } &&
14863 { ac_try='test -s conftest$ac_exeext'
14864 { (eval echo "$as_me:14864: \"$ac_try\"") >&5
14865 (eval $ac_try) 2>&5
14867 echo "$as_me:14867: \$? = $ac_status" >&5
14868 (exit $ac_status); }; }; then
14869 ac_cv_lib_X11_XOpenDisplay=yes
14871 echo "$as_me: failed program was:" >&5
14872 cat conftest.$ac_ext >&5
14873 ac_cv_lib_X11_XOpenDisplay=no
14875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14876 LIBS=$ac_check_lib_save_LIBS
14878 echo "$as_me:14878: result: $ac_cv_lib_X11_XOpenDisplay" >&5
14879 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
14880 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
14882 cf_add_libs="$LIBS"
14885 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14886 # filter duplicates
14887 for cf_add_1lib in $cf_add_0lib; do
14888 for cf_add_2lib in $cf_add_libs; do
14889 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14894 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14896 LIBS="$cf_add_libs"
14902 echo "$as_me:14902: checking for XtAppInitialize" >&5
14903 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
14904 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14907 cat >conftest.$ac_ext <<_ACEOF
14908 #line 14908 "configure"
14909 #include "confdefs.h"
14910 #define XtAppInitialize autoconf_temporary
14911 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
14912 #undef XtAppInitialize
14918 /* We use char because int might match the return type of a gcc2
14919 builtin and then its argument prototype would still apply. */
14920 char XtAppInitialize (void);
14926 /* The GNU C library defines stubs for functions which it implements
14927 to always fail with ENOSYS. Some functions are actually named
14928 something starting with __ and the normal name is an alias. */
14929 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
14930 #error found stub for XtAppInitialize
14933 return XtAppInitialize ();
14938 rm -f conftest.$ac_objext conftest$ac_exeext
14939 if { (eval echo "$as_me:14939: \"$ac_link\"") >&5
14940 (eval $ac_link) 2>&5
14942 echo "$as_me:14942: \$? = $ac_status" >&5
14943 (exit $ac_status); } &&
14944 { ac_try='test -s conftest$ac_exeext'
14945 { (eval echo "$as_me:14945: \"$ac_try\"") >&5
14946 (eval $ac_try) 2>&5
14948 echo "$as_me:14948: \$? = $ac_status" >&5
14949 (exit $ac_status); }; }; then
14950 ac_cv_func_XtAppInitialize=yes
14952 echo "$as_me: failed program was:" >&5
14953 cat conftest.$ac_ext >&5
14954 ac_cv_func_XtAppInitialize=no
14956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14958 echo "$as_me:14958: result: $ac_cv_func_XtAppInitialize" >&5
14959 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
14960 if test $ac_cv_func_XtAppInitialize = yes; then
14964 echo "$as_me:14964: checking for XtAppInitialize in -lXt" >&5
14965 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
14966 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14969 ac_check_lib_save_LIBS=$LIBS
14970 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
14971 cat >conftest.$ac_ext <<_ACEOF
14972 #line 14972 "configure"
14973 #include "confdefs.h"
14975 /* Override any gcc2 internal prototype to avoid an error. */
14979 /* We use char because int might match the return type of a gcc2
14980 builtin and then its argument prototype would still apply. */
14981 char XtAppInitialize ();
14985 XtAppInitialize ();
14990 rm -f conftest.$ac_objext conftest$ac_exeext
14991 if { (eval echo "$as_me:14991: \"$ac_link\"") >&5
14992 (eval $ac_link) 2>&5
14994 echo "$as_me:14994: \$? = $ac_status" >&5
14995 (exit $ac_status); } &&
14996 { ac_try='test -s conftest$ac_exeext'
14997 { (eval echo "$as_me:14997: \"$ac_try\"") >&5
14998 (eval $ac_try) 2>&5
15000 echo "$as_me:15000: \$? = $ac_status" >&5
15001 (exit $ac_status); }; }; then
15002 ac_cv_lib_Xt_XtAppInitialize=yes
15004 echo "$as_me: failed program was:" >&5
15005 cat conftest.$ac_ext >&5
15006 ac_cv_lib_Xt_XtAppInitialize=no
15008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15009 LIBS=$ac_check_lib_save_LIBS
15011 echo "$as_me:15011: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
15012 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
15013 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
15015 cat >>confdefs.h <<\EOF
15016 #define HAVE_LIBXT 1
15020 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
15027 if test $cf_have_X_LIBS = no ; then
15028 { echo "$as_me:15028: WARNING: Unable to successfully link X Toolkit library (-lXt) with
15029 test program. You will have to check and add the proper libraries by hand
15031 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
15032 test program. You will have to check and add the proper libraries by hand
15033 to makefile." >&2;}
15036 cf_x_athena_root=$cf_x_athena
15039 for cf_path in default \
15040 /usr/contrib/X11R6 \
15041 /usr/contrib/X11R5 \
15045 if test -z "$cf_x_athena_inc" ; then
15047 cf_save_LIBS_CF_X_ATHENA_CPPFLAGS="$LIBS"
15048 cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS="$CFLAGS"
15049 cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS="$CPPFLAGS"
15050 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
15051 for cf_X_CFLAGS in $X_CFLAGS
15053 case "x$cf_X_CFLAGS" in
15055 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
15058 CFLAGS="$CFLAGS $cf_X_CFLAGS"
15063 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
15064 if test $cf_path != default ; then
15066 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15067 CPPFLAGS="${CPPFLAGS}-I$cf_path/include"
15069 echo "$as_me:15069: checking for $cf_test in $cf_path" >&5
15070 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
15072 echo "$as_me:15072: checking for $cf_test" >&5
15073 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
15075 cat >conftest.$ac_ext <<_ACEOF
15076 #line 15076 "configure"
15077 #include "confdefs.h"
15079 #include <X11/Intrinsic.h>
15080 #include <$cf_test>
15089 rm -f conftest.$ac_objext
15090 if { (eval echo "$as_me:15090: \"$ac_compile\"") >&5
15091 (eval $ac_compile) 2>&5
15093 echo "$as_me:15093: \$? = $ac_status" >&5
15094 (exit $ac_status); } &&
15095 { ac_try='test -s conftest.$ac_objext'
15096 { (eval echo "$as_me:15096: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15099 echo "$as_me:15099: \$? = $ac_status" >&5
15100 (exit $ac_status); }; }; then
15103 echo "$as_me: failed program was:" >&5
15104 cat conftest.$ac_ext >&5
15107 rm -f conftest.$ac_objext conftest.$ac_ext
15108 echo "$as_me:15108: result: $cf_result" >&5
15109 echo "${ECHO_T}$cf_result" >&6
15111 LIBS="$cf_save_LIBS_CF_X_ATHENA_CPPFLAGS"
15112 CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS"
15113 CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS"
15115 if test "$cf_result" = yes ; then
15116 test "$cf_path" = default && cf_x_athena_inc=default
15117 test "$cf_path" != default && cf_x_athena_inc=$cf_path/include
15123 if test -z "$cf_x_athena_inc" ; then
15124 { echo "$as_me:15124: WARNING: Unable to find Athena header files" >&5
15125 echo "$as_me: WARNING: Unable to find Athena header files" >&2;}
15126 elif test "$cf_x_athena_inc" != default ; then
15128 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15129 CPPFLAGS="${CPPFLAGS}-I$cf_x_athena_inc"
15133 cf_x_athena_root=$cf_x_athena
15136 for cf_path in default \
15137 /usr/contrib/X11R6 \
15138 /usr/contrib/X11R5 \
15143 ${cf_x_athena_root} \
15144 ${cf_x_athena_root}7 \
15145 ${cf_x_athena_root}6
15148 "-l$cf_lib -lXmu" \
15149 "-l$cf_lib -lXpm -lXmu" \
15150 "-l${cf_lib}_s -lXmu_s"
15152 test -n "$cf_x_athena_lib" && break
15154 cf_save_LIBS_CF_X_ATHENA_LIBS="$LIBS"
15155 cf_save_CFLAGS_CF_X_ATHENA_LIBS="$CFLAGS"
15156 cf_save_CPPFLAGS_CF_X_ATHENA_LIBS="$CPPFLAGS"
15157 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
15158 for cf_X_CFLAGS in $X_CFLAGS
15160 case "x$cf_X_CFLAGS" in
15162 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
15165 CFLAGS="$CFLAGS $cf_X_CFLAGS"
15170 cf_test=XawSimpleMenuAddGlobalActions
15171 test "$cf_path" != default && cf_libs="-L$cf_path/lib $cf_libs"
15173 cf_add_libs="$LIBS"
15176 for cf_add_1lib in $cf_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15177 # filter duplicates
15178 for cf_add_1lib in $cf_add_0lib; do
15179 for cf_add_2lib in $cf_add_libs; do
15180 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15185 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15187 LIBS="$cf_add_libs"
15189 echo "$as_me:15189: checking for $cf_test in $cf_libs" >&5
15190 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
15191 cat >conftest.$ac_ext <<_ACEOF
15192 #line 15192 "configure"
15193 #include "confdefs.h"
15195 #include <X11/Intrinsic.h>
15196 #include <X11/$cf_x_athena_root/SimpleMenu.h>
15202 $cf_test((XtAppContext) 0)
15207 rm -f conftest.$ac_objext conftest$ac_exeext
15208 if { (eval echo "$as_me:15208: \"$ac_link\"") >&5
15209 (eval $ac_link) 2>&5
15211 echo "$as_me:15211: \$? = $ac_status" >&5
15212 (exit $ac_status); } &&
15213 { ac_try='test -s conftest$ac_exeext'
15214 { (eval echo "$as_me:15214: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15217 echo "$as_me:15217: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15221 echo "$as_me: failed program was:" >&5
15222 cat conftest.$ac_ext >&5
15225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15226 echo "$as_me:15226: result: $cf_result" >&5
15227 echo "${ECHO_T}$cf_result" >&6
15229 LIBS="$cf_save_LIBS_CF_X_ATHENA_LIBS"
15230 CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_LIBS"
15231 CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_LIBS"
15233 if test "$cf_result" = yes ; then
15234 cf_x_athena_lib="$cf_libs"
15238 test -n "$cf_x_athena_lib" && break
15242 if test -z "$cf_x_athena_lib" ; then
15243 { { echo "$as_me:15243: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
15244 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
15245 { (exit 1); exit 1; }; }
15248 cf_add_libs="$LIBS"
15251 for cf_add_1lib in $cf_x_athena_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15252 # filter duplicates
15253 for cf_add_1lib in $cf_add_0lib; do
15254 for cf_add_2lib in $cf_add_libs; do
15255 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15260 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15262 LIBS="$cf_add_libs"
15264 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15266 cat >>confdefs.h <<EOF
15267 #define $cf_x_athena_LIBS 1
15272 if test -n "$ac_tool_prefix"; then
15273 for ac_prog in xcurses-config
15275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15277 echo "$as_me:15277: checking for $ac_word" >&5
15278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15279 if test "${ac_cv_prog_XCURSES_CONFIG+set}" = set; then
15280 echo $ECHO_N "(cached) $ECHO_C" >&6
15282 if test -n "$XCURSES_CONFIG"; then
15283 ac_cv_prog_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test.
15285 ac_save_IFS=$IFS; IFS=$ac_path_separator
15287 for ac_dir in $ac_dummy; do
15289 test -z "$ac_dir" && ac_dir=.
15290 $as_executable_p "$ac_dir/$ac_word" || continue
15291 ac_cv_prog_XCURSES_CONFIG="$ac_tool_prefix$ac_prog"
15292 echo "$as_me:15292: found $ac_dir/$ac_word" >&5
15298 XCURSES_CONFIG=$ac_cv_prog_XCURSES_CONFIG
15299 if test -n "$XCURSES_CONFIG"; then
15300 echo "$as_me:15300: result: $XCURSES_CONFIG" >&5
15301 echo "${ECHO_T}$XCURSES_CONFIG" >&6
15303 echo "$as_me:15303: result: no" >&5
15304 echo "${ECHO_T}no" >&6
15307 test -n "$XCURSES_CONFIG" && break
15310 if test -z "$XCURSES_CONFIG"; then
15311 ac_ct_XCURSES_CONFIG=$XCURSES_CONFIG
15312 for ac_prog in xcurses-config
15314 # Extract the first word of "$ac_prog", so it can be a program name with args.
15315 set dummy $ac_prog; ac_word=$2
15316 echo "$as_me:15316: checking for $ac_word" >&5
15317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15318 if test "${ac_cv_prog_ac_ct_XCURSES_CONFIG+set}" = set; then
15319 echo $ECHO_N "(cached) $ECHO_C" >&6
15321 if test -n "$ac_ct_XCURSES_CONFIG"; then
15322 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_ct_XCURSES_CONFIG" # Let the user override the test.
15324 ac_save_IFS=$IFS; IFS=$ac_path_separator
15326 for ac_dir in $ac_dummy; do
15328 test -z "$ac_dir" && ac_dir=.
15329 $as_executable_p "$ac_dir/$ac_word" || continue
15330 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_prog"
15331 echo "$as_me:15331: found $ac_dir/$ac_word" >&5
15337 ac_ct_XCURSES_CONFIG=$ac_cv_prog_ac_ct_XCURSES_CONFIG
15338 if test -n "$ac_ct_XCURSES_CONFIG"; then
15339 echo "$as_me:15339: result: $ac_ct_XCURSES_CONFIG" >&5
15340 echo "${ECHO_T}$ac_ct_XCURSES_CONFIG" >&6
15342 echo "$as_me:15342: result: no" >&5
15343 echo "${ECHO_T}no" >&6
15346 test -n "$ac_ct_XCURSES_CONFIG" && break
15348 test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG="none"
15350 XCURSES_CONFIG=$ac_ct_XCURSES_CONFIG
15353 if test "$XCURSES_CONFIG" != none ; then
15358 cf_new_extra_cppflags=
15360 for cf_add_cflags in `$XCURSES_CONFIG --cflags`
15362 case $cf_fix_cppflags in
15364 case $cf_add_cflags in
15365 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15366 case $cf_add_cflags in
15368 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15370 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15371 && test -z "${cf_tst_cflags}" \
15372 && cf_fix_cppflags=yes
15374 if test $cf_fix_cppflags = yes ; then
15376 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15377 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15380 elif test "${cf_tst_cflags}" = "\"'" ; then
15382 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15383 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15389 case "$CPPFLAGS" in
15393 case $cf_add_cflags in
15395 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15397 CPPFLAGS=`echo "$CPPFLAGS" | \
15398 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15399 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15404 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15405 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15412 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15413 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15420 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15421 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15423 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15425 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15426 && test -z "${cf_tst_cflags}" \
15427 && cf_fix_cppflags=no
15432 if test -n "$cf_new_cflags" ; then
15434 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15435 CFLAGS="${CFLAGS}$cf_new_cflags"
15439 if test -n "$cf_new_cppflags" ; then
15441 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15442 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15446 if test -n "$cf_new_extra_cppflags" ; then
15448 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15449 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15453 cf_add_libs="$LIBS"
15456 for cf_add_1lib in `$XCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15457 # filter duplicates
15458 for cf_add_1lib in $cf_add_0lib; do
15459 for cf_add_2lib in $cf_add_libs; do
15460 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15465 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15467 LIBS="$cf_add_libs"
15469 cf_cv_lib_XCurses=yes
15473 LDFLAGS="$LDFLAGS $X_LIBS"
15475 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
15477 echo "${as_me:-configure}:15477: testing checking additions to CFLAGS ..." 1>&5
15479 cf_check_cflags="$CFLAGS"
15480 cf_check_cppflags="$CPPFLAGS"
15485 cf_new_extra_cppflags=
15487 for cf_add_cflags in $X_CFLAGS
15489 case $cf_fix_cppflags in
15491 case $cf_add_cflags in
15492 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15493 case $cf_add_cflags in
15495 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15497 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15498 && test -z "${cf_tst_cflags}" \
15499 && cf_fix_cppflags=yes
15501 if test $cf_fix_cppflags = yes ; then
15503 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15504 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15507 elif test "${cf_tst_cflags}" = "\"'" ; then
15509 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15510 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15516 case "$CPPFLAGS" in
15520 case $cf_add_cflags in
15522 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15524 CPPFLAGS=`echo "$CPPFLAGS" | \
15525 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15526 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15531 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15532 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15539 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15540 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15547 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15548 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15550 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15552 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15553 && test -z "${cf_tst_cflags}" \
15554 && cf_fix_cppflags=no
15559 if test -n "$cf_new_cflags" ; then
15560 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
15562 echo "${as_me:-configure}:15562: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
15564 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15565 CFLAGS="${CFLAGS}$cf_new_cflags"
15569 if test -n "$cf_new_cppflags" ; then
15570 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
15572 echo "${as_me:-configure}:15572: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
15574 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15575 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15579 if test -n "$cf_new_extra_cppflags" ; then
15580 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
15582 echo "${as_me:-configure}:15582: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
15584 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15585 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15589 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
15590 cat >conftest.$ac_ext <<_ACEOF
15591 #line 15591 "configure"
15592 #include "confdefs.h"
15597 printf("Hello world");
15602 rm -f conftest.$ac_objext conftest$ac_exeext
15603 if { (eval echo "$as_me:15603: \"$ac_link\"") >&5
15604 (eval $ac_link) 2>&5
15606 echo "$as_me:15606: \$? = $ac_status" >&5
15607 (exit $ac_status); } &&
15608 { ac_try='test -s conftest$ac_exeext'
15609 { (eval echo "$as_me:15609: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15612 echo "$as_me:15612: \$? = $ac_status" >&5
15613 (exit $ac_status); }; }; then
15616 echo "$as_me: failed program was:" >&5
15617 cat conftest.$ac_ext >&5
15618 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
15620 echo "${as_me:-configure}:15620: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
15622 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
15623 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
15625 echo "${as_me:-configure}:15625: testing but keeping change to \$CPPFLAGS ..." 1>&5
15628 CFLAGS="$cf_check_flags"
15630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15633 echo "$as_me:15633: checking for XOpenDisplay in -lX11" >&5
15634 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
15635 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
15636 echo $ECHO_N "(cached) $ECHO_C" >&6
15638 ac_check_lib_save_LIBS=$LIBS
15639 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
15640 cat >conftest.$ac_ext <<_ACEOF
15641 #line 15641 "configure"
15642 #include "confdefs.h"
15644 /* Override any gcc2 internal prototype to avoid an error. */
15648 /* We use char because int might match the return type of a gcc2
15649 builtin and then its argument prototype would still apply. */
15650 char XOpenDisplay ();
15659 rm -f conftest.$ac_objext conftest$ac_exeext
15660 if { (eval echo "$as_me:15660: \"$ac_link\"") >&5
15661 (eval $ac_link) 2>&5
15663 echo "$as_me:15663: \$? = $ac_status" >&5
15664 (exit $ac_status); } &&
15665 { ac_try='test -s conftest$ac_exeext'
15666 { (eval echo "$as_me:15666: \"$ac_try\"") >&5
15667 (eval $ac_try) 2>&5
15669 echo "$as_me:15669: \$? = $ac_status" >&5
15670 (exit $ac_status); }; }; then
15671 ac_cv_lib_X11_XOpenDisplay=yes
15673 echo "$as_me: failed program was:" >&5
15674 cat conftest.$ac_ext >&5
15675 ac_cv_lib_X11_XOpenDisplay=no
15677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15678 LIBS=$ac_check_lib_save_LIBS
15680 echo "$as_me:15680: result: $ac_cv_lib_X11_XOpenDisplay" >&5
15681 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
15682 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
15684 cf_add_libs="$LIBS"
15687 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15688 # filter duplicates
15689 for cf_add_1lib in $cf_add_0lib; do
15690 for cf_add_2lib in $cf_add_libs; do
15691 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15696 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15698 LIBS="$cf_add_libs"
15702 echo "$as_me:15702: checking for XCurses library" >&5
15703 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
15704 if test "${cf_cv_lib_XCurses+set}" = set; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15708 cf_add_libs="$LIBS"
15711 for cf_add_1lib in -lXCurses; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15712 # filter duplicates
15713 for cf_add_1lib in $cf_add_0lib; do
15714 for cf_add_2lib in $cf_add_libs; do
15715 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15720 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15722 LIBS="$cf_add_libs"
15724 cat >conftest.$ac_ext <<_ACEOF
15725 #line 15725 "configure"
15726 #include "confdefs.h"
15728 #include <xcurses.h>
15729 char *XCursesProgramName = "test";
15739 rm -f conftest.$ac_objext conftest$ac_exeext
15740 if { (eval echo "$as_me:15740: \"$ac_link\"") >&5
15741 (eval $ac_link) 2>&5
15743 echo "$as_me:15743: \$? = $ac_status" >&5
15744 (exit $ac_status); } &&
15745 { ac_try='test -s conftest$ac_exeext'
15746 { (eval echo "$as_me:15746: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15749 echo "$as_me:15749: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 cf_cv_lib_XCurses=yes
15753 echo "$as_me: failed program was:" >&5
15754 cat conftest.$ac_ext >&5
15755 cf_cv_lib_XCurses=no
15757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15760 echo "$as_me:15760: result: $cf_cv_lib_XCurses" >&5
15761 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
15765 if test $cf_cv_lib_XCurses = yes ; then
15767 cat >>confdefs.h <<\EOF
15771 cat >>confdefs.h <<\EOF
15775 echo "$as_me:15775: checking for xcurses.h" >&5
15776 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
15777 if test "${ac_cv_header_xcurses_h+set}" = set; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15780 cat >conftest.$ac_ext <<_ACEOF
15781 #line 15781 "configure"
15782 #include "confdefs.h"
15783 #include <xcurses.h>
15785 if { (eval echo "$as_me:15785: \"$ac_cpp conftest.$ac_ext\"") >&5
15786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15788 egrep -v '^ *\+' conftest.er1 >conftest.err
15790 cat conftest.err >&5
15791 echo "$as_me:15791: \$? = $ac_status" >&5
15792 (exit $ac_status); } >/dev/null; then
15793 if test -s conftest.err; then
15794 ac_cpp_err=$ac_c_preproc_warn_flag
15801 if test -z "$ac_cpp_err"; then
15802 ac_cv_header_xcurses_h=yes
15804 echo "$as_me: failed program was:" >&5
15805 cat conftest.$ac_ext >&5
15806 ac_cv_header_xcurses_h=no
15808 rm -f conftest.err conftest.$ac_ext
15810 echo "$as_me:15810: result: $ac_cv_header_xcurses_h" >&5
15811 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
15812 if test $ac_cv_header_xcurses_h = yes; then
15814 cat >>confdefs.h <<\EOF
15815 #define HAVE_XCURSES 1
15821 { { echo "$as_me:15821: error: Cannot link with XCurses" >&5
15822 echo "$as_me: error: Cannot link with XCurses" >&2;}
15823 { (exit 1); exit 1; }; }
15828 { { echo "$as_me:15828: error: unexpected screen-value: $cf_cv_screen" >&5
15829 echo "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;}
15830 { (exit 1); exit 1; }; }
15834 : ${cf_nculib_root:=$cf_cv_screen}
15835 as_ac_Lib=`echo "ac_cv_lib_$cf_nculib_root''__nc_init_pthreads" | $as_tr_sh`
15836 echo "$as_me:15836: checking for _nc_init_pthreads in -l$cf_nculib_root" >&5
15837 echo $ECHO_N "checking for _nc_init_pthreads in -l$cf_nculib_root... $ECHO_C" >&6
15838 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15839 echo $ECHO_N "(cached) $ECHO_C" >&6
15841 ac_check_lib_save_LIBS=$LIBS
15842 LIBS="-l$cf_nculib_root $LIBS"
15843 cat >conftest.$ac_ext <<_ACEOF
15844 #line 15844 "configure"
15845 #include "confdefs.h"
15847 /* Override any gcc2 internal prototype to avoid an error. */
15851 /* We use char because int might match the return type of a gcc2
15852 builtin and then its argument prototype would still apply. */
15853 char _nc_init_pthreads ();
15857 _nc_init_pthreads ();
15862 rm -f conftest.$ac_objext conftest$ac_exeext
15863 if { (eval echo "$as_me:15863: \"$ac_link\"") >&5
15864 (eval $ac_link) 2>&5
15866 echo "$as_me:15866: \$? = $ac_status" >&5
15867 (exit $ac_status); } &&
15868 { ac_try='test -s conftest$ac_exeext'
15869 { (eval echo "$as_me:15869: \"$ac_try\"") >&5
15870 (eval $ac_try) 2>&5
15872 echo "$as_me:15872: \$? = $ac_status" >&5
15873 (exit $ac_status); }; }; then
15874 eval "$as_ac_Lib=yes"
15876 echo "$as_me: failed program was:" >&5
15877 cat conftest.$ac_ext >&5
15878 eval "$as_ac_Lib=no"
15880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15881 LIBS=$ac_check_lib_save_LIBS
15883 echo "$as_me:15883: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15884 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15885 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15886 cf_cv_ncurses_pthreads=yes
15888 cf_cv_ncurses_pthreads=no
15891 if test "$cf_cv_ncurses_pthreads" = yes
15894 cf_add_libs="$LIBS"
15897 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15898 # filter duplicates
15899 for cf_add_1lib in $cf_add_0lib; do
15900 for cf_add_2lib in $cf_add_libs; do
15901 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15906 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15908 LIBS="$cf_add_libs"
15912 case $cf_cv_screen in
15914 cf_cv_libtype=`echo "$cf_cv_screen" | sed -e 's/^ncurses//'`
15918 echo "$as_me:15918: checking for X11 rgb file" >&5
15919 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
15921 # Check whether --with-x11-rgb or --without-x11-rgb was given.
15922 if test "${with_x11_rgb+set}" = set; then
15923 withval="$with_x11_rgb"
15929 if test "x$RGB_PATH" = xauto
15931 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
15933 /opt/local/share/X11/rgb.txt \
15934 /opt/X11/share/X11/rgb.txt \
15935 /usr/share/X11/rgb.txt \
15936 /usr/X11/share/X11/rgb.txt \
15937 /usr/X11/lib/X11/rgb.txt \
15938 /usr/lib/X11/rgb.txt \
15940 /usr/pkg/lib/X11/rgb.txt \
15941 /usr/X11R7/lib/X11/rgb.txt \
15942 /usr/X11R6/lib/X11/rgb.txt \
15943 /usr/X11R5/lib/X11/rgb.txt \
15944 /usr/X11R4/lib/X11/rgb.txt \
15945 /usr/local/lib/X11/rgb.txt \
15946 /usr/local/share/X11/rgb.txt \
15947 /usr/lib64/X11/rgb.txt
15949 if test -f "$cf_path" ; then
15950 RGB_PATH="$cf_path"
15957 if test "x$prefix" != xNONE; then
15958 cf_path_syntax="$prefix"
15960 cf_path_syntax="$ac_default_prefix"
15963 case ".$cf_path" in
15964 (.\$\(*\)*|.\'*\'*)
15968 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
15970 (.\${*prefix}*|.\${*dir}*)
15971 eval cf_path="$cf_path"
15972 case ".$cf_path" in
15974 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
15979 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
15982 { { echo "$as_me:15982: error: expected a pathname, not \"$cf_path\"" >&5
15983 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
15984 { (exit 1); exit 1; }; }
15990 echo "$as_me:15990: result: $RGB_PATH" >&5
15991 echo "${ECHO_T}$RGB_PATH" >&6
15993 cat >>confdefs.h <<EOF
15994 #define RGB_PATH "$cf_path"
15998 if test "$RGB_PATH" = no
16005 case $cf_cv_screen in
16007 cf_default_panel=no
16010 cf_default_tinfo=no
16012 (xcurses|bsdcurses)
16013 cf_default_panel=no
16016 cf_default_tinfo=yes
16019 cf_default_panel=yes
16020 cf_default_form=yes
16021 cf_default_menu=yes
16022 cf_default_tinfo=yes
16023 case $cf_cv_screen in
16025 cf_curses_headers="nc_alloc.h nomacros.h term_entry.h"
16031 echo "$as_me:16031: checking for desired basename for form library" >&5
16032 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
16034 # Check whether --with-form-libname or --without-form-libname was given.
16035 if test "${with_form_libname+set}" = set; then
16036 withval="$with_form_libname"
16037 with_lib_basename=$withval
16039 with_lib_basename=form
16041 FORM_NAME="$with_lib_basename"
16043 case "x$FORM_NAME" in
16051 echo "$as_me:16051: result: $FORM_NAME" >&5
16052 echo "${ECHO_T}$FORM_NAME" >&6
16054 echo "$as_me:16054: checking for desired basename for menu library" >&5
16055 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
16057 # Check whether --with-menu-libname or --without-menu-libname was given.
16058 if test "${with_menu_libname+set}" = set; then
16059 withval="$with_menu_libname"
16060 with_lib_basename=$withval
16062 with_lib_basename=menu
16064 MENU_NAME="$with_lib_basename"
16066 case "x$MENU_NAME" in
16074 echo "$as_me:16074: result: $MENU_NAME" >&5
16075 echo "${ECHO_T}$MENU_NAME" >&6
16077 echo "$as_me:16077: checking for desired basename for panel library" >&5
16078 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
16080 # Check whether --with-panel-libname or --without-panel-libname was given.
16081 if test "${with_panel_libname+set}" = set; then
16082 withval="$with_panel_libname"
16083 with_lib_basename=$withval
16085 with_lib_basename=panel
16087 PANEL_NAME="$with_lib_basename"
16089 case "x$PANEL_NAME" in
16097 echo "$as_me:16097: result: $PANEL_NAME" >&5
16098 echo "${ECHO_T}$PANEL_NAME" >&6
16100 echo "$as_me:16100: checking if you want to check for panel functions" >&5
16101 echo $ECHO_N "checking if you want to check for panel functions... $ECHO_C" >&6
16103 # Check whether --enable-panel or --disable-panel was given.
16104 if test "${enable_panel+set}" = set; then
16105 enableval="$enable_panel"
16106 test "$enableval" != no && enableval=yes
16107 if test "$enableval" != "yes" ; then
16110 cf_enable_panel=$cf_default_panel
16114 cf_enable_panel=$cf_default_panel
16117 echo "$as_me:16117: result: $cf_enable_panel" >&5
16118 echo "${ECHO_T}$cf_enable_panel" >&6
16119 if test $cf_enable_panel = yes
16122 cf_have_curses_lib=no
16124 : ${NCURSES_CONFIG_PKG:=none}
16125 if test "x${NCURSES_CONFIG_PKG}" = xnone; then
16127 elif test "x${PKG_CONFIG:=none}" != xnone; then
16128 echo "$as_me:16128: checking pkg-config for $PANEL_NAME$cf_cv_libtype" >&5
16129 echo $ECHO_N "checking pkg-config for $PANEL_NAME$cf_cv_libtype... $ECHO_C" >&6
16130 if "$PKG_CONFIG" --exists $PANEL_NAME$cf_cv_libtype ; then
16131 echo "$as_me:16131: result: yes" >&5
16132 echo "${ECHO_T}yes" >&6
16134 echo "$as_me:16134: checking if the $PANEL_NAME$cf_cv_libtype package files work" >&5
16135 echo $ECHO_N "checking if the $PANEL_NAME$cf_cv_libtype package files work... $ECHO_C" >&6
16137 cf_save_CPPFLAGS="$CPPFLAGS"
16138 cf_save_LIBS="$LIBS"
16143 cf_new_extra_cppflags=
16145 for cf_add_cflags in `$PKG_CONFIG --cflags $PANEL_NAME$cf_cv_libtype`
16147 case $cf_fix_cppflags in
16149 case $cf_add_cflags in
16150 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16151 case $cf_add_cflags in
16153 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16155 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16156 && test -z "${cf_tst_cflags}" \
16157 && cf_fix_cppflags=yes
16159 if test $cf_fix_cppflags = yes ; then
16161 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16162 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16165 elif test "${cf_tst_cflags}" = "\"'" ; then
16167 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16168 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16174 case "$CPPFLAGS" in
16178 case $cf_add_cflags in
16180 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16182 CPPFLAGS=`echo "$CPPFLAGS" | \
16183 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16184 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16189 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16190 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16197 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16198 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16205 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16206 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16208 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16210 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16211 && test -z "${cf_tst_cflags}" \
16212 && cf_fix_cppflags=no
16217 if test -n "$cf_new_cflags" ; then
16219 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16220 CFLAGS="${CFLAGS}$cf_new_cflags"
16224 if test -n "$cf_new_cppflags" ; then
16226 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16227 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16231 if test -n "$cf_new_extra_cppflags" ; then
16233 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16234 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16238 cf_add_libs="$LIBS"
16241 for cf_add_1lib in `$PKG_CONFIG --libs $PANEL_NAME$cf_cv_libtype`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16242 # filter duplicates
16243 for cf_add_1lib in $cf_add_0lib; do
16244 for cf_add_2lib in $cf_add_libs; do
16245 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16250 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16252 LIBS="$cf_add_libs"
16254 cat >conftest.$ac_ext <<_ACEOF
16255 #line 16255 "configure"
16256 #include "confdefs.h"
16257 #include <$PANEL_NAME.h>
16261 (void) new_panel ( 0 );
16266 rm -f conftest.$ac_objext conftest$ac_exeext
16267 if { (eval echo "$as_me:16267: \"$ac_link\"") >&5
16268 (eval $ac_link) 2>&5
16270 echo "$as_me:16270: \$? = $ac_status" >&5
16271 (exit $ac_status); } &&
16272 { ac_try='test -s conftest$ac_exeext'
16273 { (eval echo "$as_me:16273: \"$ac_try\"") >&5
16274 (eval $ac_try) 2>&5
16276 echo "$as_me:16276: \$? = $ac_status" >&5
16277 (exit $ac_status); }; }; then
16278 if test "$cross_compiling" = yes; then
16279 cf_have_curses_lib=maybe
16281 cat >conftest.$ac_ext <<_ACEOF
16282 #line 16282 "configure"
16283 #include "confdefs.h"
16284 #include <$PANEL_NAME.h>
16286 { (void) new_panel ( 0 ); return 0; }
16288 rm -f conftest$ac_exeext
16289 if { (eval echo "$as_me:16289: \"$ac_link\"") >&5
16290 (eval $ac_link) 2>&5
16292 echo "$as_me:16292: \$? = $ac_status" >&5
16293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16294 { (eval echo "$as_me:16294: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16297 echo "$as_me:16297: \$? = $ac_status" >&5
16298 (exit $ac_status); }; }; then
16299 cf_have_curses_lib=yes
16301 echo "$as_me: program exited with status $ac_status" >&5
16302 echo "$as_me: failed program was:" >&5
16303 cat conftest.$ac_ext >&5
16304 cf_have_curses_lib=no
16306 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16309 echo "$as_me: failed program was:" >&5
16310 cat conftest.$ac_ext >&5
16311 cf_have_curses_lib=no
16313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16314 echo "$as_me:16314: result: $cf_have_curses_lib" >&5
16315 echo "${ECHO_T}$cf_have_curses_lib" >&6
16316 test "$cf_have_curses_lib" = maybe && cf_have_curses_lib=yes
16317 if test "$cf_have_curses_lib" != "yes"
16319 CPPFLAGS="$cf_save_CPPFLAGS"
16320 LIBS="$cf_save_LIBS"
16323 cf_upper=`echo "have_lib$PANEL_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16325 cat >>confdefs.h <<EOF
16326 #define $cf_upper 1
16332 if test "$cf_have_curses_lib" = no; then
16333 as_ac_Lib=`echo "ac_cv_lib_$PANEL_NAME$cf_cv_libtype''_new_panel" | $as_tr_sh`
16334 echo "$as_me:16334: checking for new_panel in -l$PANEL_NAME$cf_cv_libtype" >&5
16335 echo $ECHO_N "checking for new_panel in -l$PANEL_NAME$cf_cv_libtype... $ECHO_C" >&6
16336 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16339 ac_check_lib_save_LIBS=$LIBS
16340 LIBS="-l$PANEL_NAME$cf_cv_libtype $LIBS"
16341 cat >conftest.$ac_ext <<_ACEOF
16342 #line 16342 "configure"
16343 #include "confdefs.h"
16345 /* Override any gcc2 internal prototype to avoid an error. */
16349 /* We use char because int might match the return type of a gcc2
16350 builtin and then its argument prototype would still apply. */
16360 rm -f conftest.$ac_objext conftest$ac_exeext
16361 if { (eval echo "$as_me:16361: \"$ac_link\"") >&5
16362 (eval $ac_link) 2>&5
16364 echo "$as_me:16364: \$? = $ac_status" >&5
16365 (exit $ac_status); } &&
16366 { ac_try='test -s conftest$ac_exeext'
16367 { (eval echo "$as_me:16367: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16370 echo "$as_me:16370: \$? = $ac_status" >&5
16371 (exit $ac_status); }; }; then
16372 eval "$as_ac_Lib=yes"
16374 echo "$as_me: failed program was:" >&5
16375 cat conftest.$ac_ext >&5
16376 eval "$as_ac_Lib=no"
16378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16379 LIBS=$ac_check_lib_save_LIBS
16381 echo "$as_me:16381: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16382 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16383 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16385 cf_upper=`echo "have_lib$PANEL_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16387 cf_add_libs="$LIBS"
16390 for cf_add_1lib in -l$PANEL_NAME$cf_cv_libtype; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16391 # filter duplicates
16392 for cf_add_1lib in $cf_add_0lib; do
16393 for cf_add_2lib in $cf_add_libs; do
16394 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16399 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16401 LIBS="$cf_add_libs"
16403 cat >>confdefs.h <<EOF
16404 #define $cf_upper 1
16411 cf_curses_headers="$cf_curses_headers panel.h"
16414 echo "$as_me:16414: checking if you want to check for menu functions" >&5
16415 echo $ECHO_N "checking if you want to check for menu functions... $ECHO_C" >&6
16417 # Check whether --enable-menu or --disable-menu was given.
16418 if test "${enable_menu+set}" = set; then
16419 enableval="$enable_menu"
16420 test "$enableval" != no && enableval=yes
16421 if test "$enableval" != "yes" ; then
16424 cf_enable_menu=$cf_default_menu
16428 cf_enable_menu=$cf_default_menu
16431 echo "$as_me:16431: result: $cf_enable_menu" >&5
16432 echo "${ECHO_T}$cf_enable_menu" >&6
16433 if test $cf_enable_menu = yes
16435 case $cf_cv_screen in
16440 echo "$as_me:16440: checking for NetBSD menu.h" >&5
16441 echo $ECHO_N "checking for NetBSD menu.h... $ECHO_C" >&6
16442 if test "${cf_cv_netbsd_menu_h+set}" = set; then
16443 echo $ECHO_N "(cached) $ECHO_C" >&6
16446 cat >conftest.$ac_ext <<_ACEOF
16447 #line 16447 "configure"
16448 #include "confdefs.h"
16450 #include <${cf_cv_ncurses_header:-curses.h}>
16458 int y = menu->max_item_width;
16464 rm -f conftest.$ac_objext
16465 if { (eval echo "$as_me:16465: \"$ac_compile\"") >&5
16466 (eval $ac_compile) 2>&5
16468 echo "$as_me:16468: \$? = $ac_status" >&5
16469 (exit $ac_status); } &&
16470 { ac_try='test -s conftest.$ac_objext'
16471 { (eval echo "$as_me:16471: \"$ac_try\"") >&5
16472 (eval $ac_try) 2>&5
16474 echo "$as_me:16474: \$? = $ac_status" >&5
16475 (exit $ac_status); }; }; then
16476 cf_cv_netbsd_menu_h=yes
16479 echo "$as_me: failed program was:" >&5
16480 cat conftest.$ac_ext >&5
16481 cf_cv_netbsd_menu_h=no
16483 rm -f conftest.$ac_objext conftest.$ac_ext
16486 echo "$as_me:16486: result: $cf_cv_netbsd_menu_h" >&5
16487 echo "${ECHO_T}$cf_cv_netbsd_menu_h" >&6
16489 test "$cf_cv_netbsd_menu_h" = yes &&
16490 cat >>confdefs.h <<\EOF
16491 #define HAVE_NETBSD_MENU_H 1
16497 cf_have_curses_lib=no
16499 : ${NCURSES_CONFIG_PKG:=none}
16500 if test "x${NCURSES_CONFIG_PKG}" = xnone; then
16502 elif test "x${PKG_CONFIG:=none}" != xnone; then
16503 echo "$as_me:16503: checking pkg-config for $MENU_NAME$cf_cv_libtype" >&5
16504 echo $ECHO_N "checking pkg-config for $MENU_NAME$cf_cv_libtype... $ECHO_C" >&6
16505 if "$PKG_CONFIG" --exists $MENU_NAME$cf_cv_libtype ; then
16506 echo "$as_me:16506: result: yes" >&5
16507 echo "${ECHO_T}yes" >&6
16509 echo "$as_me:16509: checking if the $MENU_NAME$cf_cv_libtype package files work" >&5
16510 echo $ECHO_N "checking if the $MENU_NAME$cf_cv_libtype package files work... $ECHO_C" >&6
16512 cf_save_CPPFLAGS="$CPPFLAGS"
16513 cf_save_LIBS="$LIBS"
16518 cf_new_extra_cppflags=
16520 for cf_add_cflags in `$PKG_CONFIG --cflags $MENU_NAME$cf_cv_libtype`
16522 case $cf_fix_cppflags in
16524 case $cf_add_cflags in
16525 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16526 case $cf_add_cflags in
16528 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16530 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16531 && test -z "${cf_tst_cflags}" \
16532 && cf_fix_cppflags=yes
16534 if test $cf_fix_cppflags = yes ; then
16536 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16537 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16540 elif test "${cf_tst_cflags}" = "\"'" ; then
16542 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16543 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16549 case "$CPPFLAGS" in
16553 case $cf_add_cflags in
16555 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16557 CPPFLAGS=`echo "$CPPFLAGS" | \
16558 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16559 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16564 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16565 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16572 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16573 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16580 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16581 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16583 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16585 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16586 && test -z "${cf_tst_cflags}" \
16587 && cf_fix_cppflags=no
16592 if test -n "$cf_new_cflags" ; then
16594 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16595 CFLAGS="${CFLAGS}$cf_new_cflags"
16599 if test -n "$cf_new_cppflags" ; then
16601 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16602 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16606 if test -n "$cf_new_extra_cppflags" ; then
16608 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16609 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16613 cf_add_libs="$LIBS"
16616 for cf_add_1lib in `$PKG_CONFIG --libs $MENU_NAME$cf_cv_libtype`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16617 # filter duplicates
16618 for cf_add_1lib in $cf_add_0lib; do
16619 for cf_add_2lib in $cf_add_libs; do
16620 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16625 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16627 LIBS="$cf_add_libs"
16629 cat >conftest.$ac_ext <<_ACEOF
16630 #line 16630 "configure"
16631 #include "confdefs.h"
16632 #include <$MENU_NAME.h>
16636 (void) menu_driver ( 0,0 );
16641 rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (eval echo "$as_me:16642: \"$ac_link\"") >&5
16643 (eval $ac_link) 2>&5
16645 echo "$as_me:16645: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -s conftest$ac_exeext'
16648 { (eval echo "$as_me:16648: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16651 echo "$as_me:16651: \$? = $ac_status" >&5
16652 (exit $ac_status); }; }; then
16653 if test "$cross_compiling" = yes; then
16654 cf_have_curses_lib=maybe
16656 cat >conftest.$ac_ext <<_ACEOF
16657 #line 16657 "configure"
16658 #include "confdefs.h"
16659 #include <$MENU_NAME.h>
16661 { (void) menu_driver ( 0,0 ); return 0; }
16663 rm -f conftest$ac_exeext
16664 if { (eval echo "$as_me:16664: \"$ac_link\"") >&5
16665 (eval $ac_link) 2>&5
16667 echo "$as_me:16667: \$? = $ac_status" >&5
16668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16669 { (eval echo "$as_me:16669: \"$ac_try\"") >&5
16670 (eval $ac_try) 2>&5
16672 echo "$as_me:16672: \$? = $ac_status" >&5
16673 (exit $ac_status); }; }; then
16674 cf_have_curses_lib=yes
16676 echo "$as_me: program exited with status $ac_status" >&5
16677 echo "$as_me: failed program was:" >&5
16678 cat conftest.$ac_ext >&5
16679 cf_have_curses_lib=no
16681 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16684 echo "$as_me: failed program was:" >&5
16685 cat conftest.$ac_ext >&5
16686 cf_have_curses_lib=no
16688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16689 echo "$as_me:16689: result: $cf_have_curses_lib" >&5
16690 echo "${ECHO_T}$cf_have_curses_lib" >&6
16691 test "$cf_have_curses_lib" = maybe && cf_have_curses_lib=yes
16692 if test "$cf_have_curses_lib" != "yes"
16694 CPPFLAGS="$cf_save_CPPFLAGS"
16695 LIBS="$cf_save_LIBS"
16698 cf_upper=`echo "have_lib$MENU_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16700 cat >>confdefs.h <<EOF
16701 #define $cf_upper 1
16707 if test "$cf_have_curses_lib" = no; then
16708 as_ac_Lib=`echo "ac_cv_lib_$MENU_NAME$cf_cv_libtype''_menu_driver" | $as_tr_sh`
16709 echo "$as_me:16709: checking for menu_driver in -l$MENU_NAME$cf_cv_libtype" >&5
16710 echo $ECHO_N "checking for menu_driver in -l$MENU_NAME$cf_cv_libtype... $ECHO_C" >&6
16711 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16712 echo $ECHO_N "(cached) $ECHO_C" >&6
16714 ac_check_lib_save_LIBS=$LIBS
16715 LIBS="-l$MENU_NAME$cf_cv_libtype $LIBS"
16716 cat >conftest.$ac_ext <<_ACEOF
16717 #line 16717 "configure"
16718 #include "confdefs.h"
16720 /* Override any gcc2 internal prototype to avoid an error. */
16724 /* We use char because int might match the return type of a gcc2
16725 builtin and then its argument prototype would still apply. */
16726 char menu_driver ();
16735 rm -f conftest.$ac_objext conftest$ac_exeext
16736 if { (eval echo "$as_me:16736: \"$ac_link\"") >&5
16737 (eval $ac_link) 2>&5
16739 echo "$as_me:16739: \$? = $ac_status" >&5
16740 (exit $ac_status); } &&
16741 { ac_try='test -s conftest$ac_exeext'
16742 { (eval echo "$as_me:16742: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16745 echo "$as_me:16745: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 eval "$as_ac_Lib=yes"
16749 echo "$as_me: failed program was:" >&5
16750 cat conftest.$ac_ext >&5
16751 eval "$as_ac_Lib=no"
16753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16754 LIBS=$ac_check_lib_save_LIBS
16756 echo "$as_me:16756: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16757 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16758 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16760 cf_upper=`echo "have_lib$MENU_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16762 cf_add_libs="$LIBS"
16765 for cf_add_1lib in -l$MENU_NAME$cf_cv_libtype; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16766 # filter duplicates
16767 for cf_add_1lib in $cf_add_0lib; do
16768 for cf_add_2lib in $cf_add_libs; do
16769 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16774 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16776 LIBS="$cf_add_libs"
16778 cat >>confdefs.h <<EOF
16779 #define $cf_upper 1
16786 cf_curses_headers="$cf_curses_headers menu.h"
16789 echo "$as_me:16789: checking if you want to check for form functions" >&5
16790 echo $ECHO_N "checking if you want to check for form functions... $ECHO_C" >&6
16792 # Check whether --enable-form or --disable-form was given.
16793 if test "${enable_form+set}" = set; then
16794 enableval="$enable_form"
16795 test "$enableval" != no && enableval=yes
16796 if test "$enableval" != "yes" ; then
16799 cf_enable_form=$cf_default_form
16803 cf_enable_form=$cf_default_form
16806 echo "$as_me:16806: result: $cf_enable_form" >&5
16807 echo "${ECHO_T}$cf_enable_form" >&6
16808 if test $cf_enable_form = yes
16810 case $cf_cv_screen in
16815 echo "$as_me:16815: checking for NetBSD form.h" >&5
16816 echo $ECHO_N "checking for NetBSD form.h... $ECHO_C" >&6
16817 if test "${cf_cv_netbsd_form_h+set}" = set; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16821 cat >conftest.$ac_ext <<_ACEOF
16822 #line 16822 "configure"
16823 #include "confdefs.h"
16825 #include <${cf_cv_ncurses_header:-curses.h}>
16833 int y = current_field(form)->cursor_ypos;
16834 int x = current_field(form)->cursor_xpos;
16840 rm -f conftest.$ac_objext
16841 if { (eval echo "$as_me:16841: \"$ac_compile\"") >&5
16842 (eval $ac_compile) 2>&5
16844 echo "$as_me:16844: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
16846 { ac_try='test -s conftest.$ac_objext'
16847 { (eval echo "$as_me:16847: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16850 echo "$as_me:16850: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 cf_cv_netbsd_form_h=yes
16855 echo "$as_me: failed program was:" >&5
16856 cat conftest.$ac_ext >&5
16857 cf_cv_netbsd_form_h=no
16859 rm -f conftest.$ac_objext conftest.$ac_ext
16862 echo "$as_me:16862: result: $cf_cv_netbsd_form_h" >&5
16863 echo "${ECHO_T}$cf_cv_netbsd_form_h" >&6
16865 test "$cf_cv_netbsd_form_h" = yes &&
16866 cat >>confdefs.h <<\EOF
16867 #define HAVE_NETBSD_FORM_H 1
16873 cf_have_curses_lib=no
16875 : ${NCURSES_CONFIG_PKG:=none}
16876 if test "x${NCURSES_CONFIG_PKG}" = xnone; then
16878 elif test "x${PKG_CONFIG:=none}" != xnone; then
16879 echo "$as_me:16879: checking pkg-config for $FORM_NAME$cf_cv_libtype" >&5
16880 echo $ECHO_N "checking pkg-config for $FORM_NAME$cf_cv_libtype... $ECHO_C" >&6
16881 if "$PKG_CONFIG" --exists $FORM_NAME$cf_cv_libtype ; then
16882 echo "$as_me:16882: result: yes" >&5
16883 echo "${ECHO_T}yes" >&6
16885 echo "$as_me:16885: checking if the $FORM_NAME$cf_cv_libtype package files work" >&5
16886 echo $ECHO_N "checking if the $FORM_NAME$cf_cv_libtype package files work... $ECHO_C" >&6
16888 cf_save_CPPFLAGS="$CPPFLAGS"
16889 cf_save_LIBS="$LIBS"
16894 cf_new_extra_cppflags=
16896 for cf_add_cflags in `$PKG_CONFIG --cflags $FORM_NAME$cf_cv_libtype`
16898 case $cf_fix_cppflags in
16900 case $cf_add_cflags in
16901 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16902 case $cf_add_cflags in
16904 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16906 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16907 && test -z "${cf_tst_cflags}" \
16908 && cf_fix_cppflags=yes
16910 if test $cf_fix_cppflags = yes ; then
16912 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16913 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16916 elif test "${cf_tst_cflags}" = "\"'" ; then
16918 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16919 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16925 case "$CPPFLAGS" in
16929 case $cf_add_cflags in
16931 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16933 CPPFLAGS=`echo "$CPPFLAGS" | \
16934 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16935 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16940 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16941 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16948 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16949 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16956 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16957 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16959 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16961 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16962 && test -z "${cf_tst_cflags}" \
16963 && cf_fix_cppflags=no
16968 if test -n "$cf_new_cflags" ; then
16970 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16971 CFLAGS="${CFLAGS}$cf_new_cflags"
16975 if test -n "$cf_new_cppflags" ; then
16977 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16978 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16982 if test -n "$cf_new_extra_cppflags" ; then
16984 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16985 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16989 cf_add_libs="$LIBS"
16992 for cf_add_1lib in `$PKG_CONFIG --libs $FORM_NAME$cf_cv_libtype`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16993 # filter duplicates
16994 for cf_add_1lib in $cf_add_0lib; do
16995 for cf_add_2lib in $cf_add_libs; do
16996 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17001 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17003 LIBS="$cf_add_libs"
17005 cat >conftest.$ac_ext <<_ACEOF
17006 #line 17006 "configure"
17007 #include "confdefs.h"
17008 #include <$FORM_NAME.h>
17012 (void) form_driver ( 0,0 );
17017 rm -f conftest.$ac_objext conftest$ac_exeext
17018 if { (eval echo "$as_me:17018: \"$ac_link\"") >&5
17019 (eval $ac_link) 2>&5
17021 echo "$as_me:17021: \$? = $ac_status" >&5
17022 (exit $ac_status); } &&
17023 { ac_try='test -s conftest$ac_exeext'
17024 { (eval echo "$as_me:17024: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17027 echo "$as_me:17027: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
17029 if test "$cross_compiling" = yes; then
17030 cf_have_curses_lib=maybe
17032 cat >conftest.$ac_ext <<_ACEOF
17033 #line 17033 "configure"
17034 #include "confdefs.h"
17035 #include <$FORM_NAME.h>
17037 { (void) form_driver ( 0,0 ); return 0; }
17039 rm -f conftest$ac_exeext
17040 if { (eval echo "$as_me:17040: \"$ac_link\"") >&5
17041 (eval $ac_link) 2>&5
17043 echo "$as_me:17043: \$? = $ac_status" >&5
17044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17045 { (eval echo "$as_me:17045: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17048 echo "$as_me:17048: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 cf_have_curses_lib=yes
17052 echo "$as_me: program exited with status $ac_status" >&5
17053 echo "$as_me: failed program was:" >&5
17054 cat conftest.$ac_ext >&5
17055 cf_have_curses_lib=no
17057 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17060 echo "$as_me: failed program was:" >&5
17061 cat conftest.$ac_ext >&5
17062 cf_have_curses_lib=no
17064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17065 echo "$as_me:17065: result: $cf_have_curses_lib" >&5
17066 echo "${ECHO_T}$cf_have_curses_lib" >&6
17067 test "$cf_have_curses_lib" = maybe && cf_have_curses_lib=yes
17068 if test "$cf_have_curses_lib" != "yes"
17070 CPPFLAGS="$cf_save_CPPFLAGS"
17071 LIBS="$cf_save_LIBS"
17074 cf_upper=`echo "have_lib$FORM_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17076 cat >>confdefs.h <<EOF
17077 #define $cf_upper 1
17083 if test "$cf_have_curses_lib" = no; then
17084 as_ac_Lib=`echo "ac_cv_lib_$FORM_NAME$cf_cv_libtype''_form_driver" | $as_tr_sh`
17085 echo "$as_me:17085: checking for form_driver in -l$FORM_NAME$cf_cv_libtype" >&5
17086 echo $ECHO_N "checking for form_driver in -l$FORM_NAME$cf_cv_libtype... $ECHO_C" >&6
17087 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17088 echo $ECHO_N "(cached) $ECHO_C" >&6
17090 ac_check_lib_save_LIBS=$LIBS
17091 LIBS="-l$FORM_NAME$cf_cv_libtype $LIBS"
17092 cat >conftest.$ac_ext <<_ACEOF
17093 #line 17093 "configure"
17094 #include "confdefs.h"
17096 /* Override any gcc2 internal prototype to avoid an error. */
17100 /* We use char because int might match the return type of a gcc2
17101 builtin and then its argument prototype would still apply. */
17102 char form_driver ();
17111 rm -f conftest.$ac_objext conftest$ac_exeext
17112 if { (eval echo "$as_me:17112: \"$ac_link\"") >&5
17113 (eval $ac_link) 2>&5
17115 echo "$as_me:17115: \$? = $ac_status" >&5
17116 (exit $ac_status); } &&
17117 { ac_try='test -s conftest$ac_exeext'
17118 { (eval echo "$as_me:17118: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17121 echo "$as_me:17121: \$? = $ac_status" >&5
17122 (exit $ac_status); }; }; then
17123 eval "$as_ac_Lib=yes"
17125 echo "$as_me: failed program was:" >&5
17126 cat conftest.$ac_ext >&5
17127 eval "$as_ac_Lib=no"
17129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17130 LIBS=$ac_check_lib_save_LIBS
17132 echo "$as_me:17132: result: `eval echo '${'$as_ac_Lib'}'`" >&5
17133 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
17134 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17136 cf_upper=`echo "have_lib$FORM_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17138 cf_add_libs="$LIBS"
17141 for cf_add_1lib in -l$FORM_NAME$cf_cv_libtype; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17142 # filter duplicates
17143 for cf_add_1lib in $cf_add_0lib; do
17144 for cf_add_2lib in $cf_add_libs; do
17145 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17150 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17152 LIBS="$cf_add_libs"
17154 cat >>confdefs.h <<EOF
17155 #define $cf_upper 1
17162 cf_curses_headers="$cf_curses_headers form.h"
17165 # look for curses-related headers
17167 for ac_header in $cf_curses_headers
17169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17170 echo "$as_me:17170: checking for $ac_header" >&5
17171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17173 echo $ECHO_N "(cached) $ECHO_C" >&6
17175 cat >conftest.$ac_ext <<_ACEOF
17176 #line 17176 "configure"
17177 #include "confdefs.h"
17178 #include <$ac_header>
17180 if { (eval echo "$as_me:17180: \"$ac_cpp conftest.$ac_ext\"") >&5
17181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17183 egrep -v '^ *\+' conftest.er1 >conftest.err
17185 cat conftest.err >&5
17186 echo "$as_me:17186: \$? = $ac_status" >&5
17187 (exit $ac_status); } >/dev/null; then
17188 if test -s conftest.err; then
17189 ac_cpp_err=$ac_c_preproc_warn_flag
17196 if test -z "$ac_cpp_err"; then
17197 eval "$as_ac_Header=yes"
17199 echo "$as_me: failed program was:" >&5
17200 cat conftest.$ac_ext >&5
17201 eval "$as_ac_Header=no"
17203 rm -f conftest.err conftest.$ac_ext
17205 echo "$as_me:17205: result: `eval echo '${'$as_ac_Header'}'`" >&5
17206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17208 cat >>confdefs.h <<EOF
17209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17215 echo "$as_me:17215: checking for ANSI C header files" >&5
17216 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
17217 if test "${ac_cv_header_stdc+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17220 cat >conftest.$ac_ext <<_ACEOF
17221 #line 17221 "configure"
17222 #include "confdefs.h"
17223 #include <stdlib.h>
17224 #include <stdarg.h>
17225 #include <string.h>
17229 if { (eval echo "$as_me:17229: \"$ac_cpp conftest.$ac_ext\"") >&5
17230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17232 egrep -v '^ *\+' conftest.er1 >conftest.err
17234 cat conftest.err >&5
17235 echo "$as_me:17235: \$? = $ac_status" >&5
17236 (exit $ac_status); } >/dev/null; then
17237 if test -s conftest.err; then
17238 ac_cpp_err=$ac_c_preproc_warn_flag
17245 if test -z "$ac_cpp_err"; then
17246 ac_cv_header_stdc=yes
17248 echo "$as_me: failed program was:" >&5
17249 cat conftest.$ac_ext >&5
17250 ac_cv_header_stdc=no
17252 rm -f conftest.err conftest.$ac_ext
17254 if test $ac_cv_header_stdc = yes; then
17255 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17256 cat >conftest.$ac_ext <<_ACEOF
17257 #line 17257 "configure"
17258 #include "confdefs.h"
17259 #include <string.h>
17262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17263 egrep "memchr" >/dev/null 2>&1; then
17266 ac_cv_header_stdc=no
17272 if test $ac_cv_header_stdc = yes; then
17273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17274 cat >conftest.$ac_ext <<_ACEOF
17275 #line 17275 "configure"
17276 #include "confdefs.h"
17277 #include <stdlib.h>
17280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17281 egrep "free" >/dev/null 2>&1; then
17284 ac_cv_header_stdc=no
17290 if test $ac_cv_header_stdc = yes; then
17291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17292 if test "$cross_compiling" = yes; then
17295 cat >conftest.$ac_ext <<_ACEOF
17296 #line 17296 "configure"
17297 #include "confdefs.h"
17299 #if ((' ' & 0x0FF) == 0x020)
17300 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17301 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17303 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
17304 || ('j' <= (c) && (c) <= 'r') \
17305 || ('s' <= (c) && (c) <= 'z'))
17306 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17314 for (i = 0; i < 256; i++)
17315 if (XOR (islower (i), ISLOWER (i))
17316 || toupper (i) != TOUPPER (i))
17317 $ac_main_return(2);
17318 $ac_main_return (0);
17321 rm -f conftest$ac_exeext
17322 if { (eval echo "$as_me:17322: \"$ac_link\"") >&5
17323 (eval $ac_link) 2>&5
17325 echo "$as_me:17325: \$? = $ac_status" >&5
17326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17327 { (eval echo "$as_me:17327: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17330 echo "$as_me:17330: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17334 echo "$as_me: program exited with status $ac_status" >&5
17335 echo "$as_me: failed program was:" >&5
17336 cat conftest.$ac_ext >&5
17337 ac_cv_header_stdc=no
17339 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17343 echo "$as_me:17343: result: $ac_cv_header_stdc" >&5
17344 echo "${ECHO_T}$ac_cv_header_stdc" >&6
17345 if test $ac_cv_header_stdc = yes; then
17347 cat >>confdefs.h <<\EOF
17348 #define STDC_HEADERS 1
17353 echo "$as_me:17353: checking whether time.h and sys/time.h may both be included" >&5
17354 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17355 if test "${ac_cv_header_time+set}" = set; then
17356 echo $ECHO_N "(cached) $ECHO_C" >&6
17358 cat >conftest.$ac_ext <<_ACEOF
17359 #line 17359 "configure"
17360 #include "confdefs.h"
17361 #include <sys/types.h>
17362 #include <sys/time.h>
17368 if ((struct tm *) 0)
17374 rm -f conftest.$ac_objext
17375 if { (eval echo "$as_me:17375: \"$ac_compile\"") >&5
17376 (eval $ac_compile) 2>&5
17378 echo "$as_me:17378: \$? = $ac_status" >&5
17379 (exit $ac_status); } &&
17380 { ac_try='test -s conftest.$ac_objext'
17381 { (eval echo "$as_me:17381: \"$ac_try\"") >&5
17382 (eval $ac_try) 2>&5
17384 echo "$as_me:17384: \$? = $ac_status" >&5
17385 (exit $ac_status); }; }; then
17386 ac_cv_header_time=yes
17388 echo "$as_me: failed program was:" >&5
17389 cat conftest.$ac_ext >&5
17390 ac_cv_header_time=no
17392 rm -f conftest.$ac_objext conftest.$ac_ext
17394 echo "$as_me:17394: result: $ac_cv_header_time" >&5
17395 echo "${ECHO_T}$ac_cv_header_time" >&6
17396 if test $ac_cv_header_time = yes; then
17398 cat >>confdefs.h <<\EOF
17399 #define TIME_WITH_SYS_TIME 1
17417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17418 echo "$as_me:17418: checking for $ac_header" >&5
17419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17421 echo $ECHO_N "(cached) $ECHO_C" >&6
17423 cat >conftest.$ac_ext <<_ACEOF
17424 #line 17424 "configure"
17425 #include "confdefs.h"
17426 #include <$ac_header>
17428 if { (eval echo "$as_me:17428: \"$ac_cpp conftest.$ac_ext\"") >&5
17429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17431 egrep -v '^ *\+' conftest.er1 >conftest.err
17433 cat conftest.err >&5
17434 echo "$as_me:17434: \$? = $ac_status" >&5
17435 (exit $ac_status); } >/dev/null; then
17436 if test -s conftest.err; then
17437 ac_cpp_err=$ac_c_preproc_warn_flag
17444 if test -z "$ac_cpp_err"; then
17445 eval "$as_ac_Header=yes"
17447 echo "$as_me: failed program was:" >&5
17448 cat conftest.$ac_ext >&5
17449 eval "$as_ac_Header=no"
17451 rm -f conftest.err conftest.$ac_ext
17453 echo "$as_me:17453: result: `eval echo '${'$as_ac_Header'}'`" >&5
17454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17456 cat >>confdefs.h <<EOF
17457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17463 for ac_header in unistd.h getopt.h
17465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17466 echo "$as_me:17466: checking for $ac_header" >&5
17467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17468 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17471 cat >conftest.$ac_ext <<_ACEOF
17472 #line 17472 "configure"
17473 #include "confdefs.h"
17474 #include <$ac_header>
17476 if { (eval echo "$as_me:17476: \"$ac_cpp conftest.$ac_ext\"") >&5
17477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17479 egrep -v '^ *\+' conftest.er1 >conftest.err
17481 cat conftest.err >&5
17482 echo "$as_me:17482: \$? = $ac_status" >&5
17483 (exit $ac_status); } >/dev/null; then
17484 if test -s conftest.err; then
17485 ac_cpp_err=$ac_c_preproc_warn_flag
17492 if test -z "$ac_cpp_err"; then
17493 eval "$as_ac_Header=yes"
17495 echo "$as_me: failed program was:" >&5
17496 cat conftest.$ac_ext >&5
17497 eval "$as_ac_Header=no"
17499 rm -f conftest.err conftest.$ac_ext
17501 echo "$as_me:17501: result: `eval echo '${'$as_ac_Header'}'`" >&5
17502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17504 cat >>confdefs.h <<EOF
17505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17511 echo "$as_me:17511: checking for header declaring getopt variables" >&5
17512 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
17513 if test "${cf_cv_getopt_header+set}" = set; then
17514 echo $ECHO_N "(cached) $ECHO_C" >&6
17517 cf_cv_getopt_header=none
17518 for cf_header in stdio.h stdlib.h unistd.h getopt.h
17520 cat >conftest.$ac_ext <<_ACEOF
17521 #line 17521 "configure"
17522 #include "confdefs.h"
17524 #include <$cf_header>
17528 int x = optind; char *y = optarg
17533 rm -f conftest.$ac_objext
17534 if { (eval echo "$as_me:17534: \"$ac_compile\"") >&5
17535 (eval $ac_compile) 2>&5
17537 echo "$as_me:17537: \$? = $ac_status" >&5
17538 (exit $ac_status); } &&
17539 { ac_try='test -s conftest.$ac_objext'
17540 { (eval echo "$as_me:17540: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17543 echo "$as_me:17543: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 cf_cv_getopt_header=$cf_header
17548 echo "$as_me: failed program was:" >&5
17549 cat conftest.$ac_ext >&5
17551 rm -f conftest.$ac_objext conftest.$ac_ext
17555 echo "$as_me:17555: result: $cf_cv_getopt_header" >&5
17556 echo "${ECHO_T}$cf_cv_getopt_header" >&6
17557 if test $cf_cv_getopt_header != none ; then
17559 cat >>confdefs.h <<\EOF
17560 #define HAVE_GETOPT_HEADER 1
17564 if test $cf_cv_getopt_header = getopt.h ; then
17566 cat >>confdefs.h <<\EOF
17567 #define NEED_GETOPT_H 1
17579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17580 echo "$as_me:17580: checking for $ac_func" >&5
17581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17582 if eval "test \"\${$as_ac_var+set}\" = set"; then
17583 echo $ECHO_N "(cached) $ECHO_C" >&6
17585 cat >conftest.$ac_ext <<_ACEOF
17586 #line 17586 "configure"
17587 #include "confdefs.h"
17588 #define $ac_func autoconf_temporary
17589 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17596 /* We use char because int might match the return type of a gcc2
17597 builtin and then its argument prototype would still apply. */
17598 char $ac_func (void);
17604 /* The GNU C library defines stubs for functions which it implements
17605 to always fail with ENOSYS. Some functions are actually named
17606 something starting with __ and the normal name is an alias. */
17607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17608 #error found stub for $ac_func
17611 return $ac_func ();
17616 rm -f conftest.$ac_objext conftest$ac_exeext
17617 if { (eval echo "$as_me:17617: \"$ac_link\"") >&5
17618 (eval $ac_link) 2>&5
17620 echo "$as_me:17620: \$? = $ac_status" >&5
17621 (exit $ac_status); } &&
17622 { ac_try='test -s conftest$ac_exeext'
17623 { (eval echo "$as_me:17623: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17626 echo "$as_me:17626: \$? = $ac_status" >&5
17627 (exit $ac_status); }; }; then
17628 eval "$as_ac_var=yes"
17630 echo "$as_me: failed program was:" >&5
17631 cat conftest.$ac_ext >&5
17632 eval "$as_ac_var=no"
17634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17636 echo "$as_me:17636: result: `eval echo '${'$as_ac_var'}'`" >&5
17637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17638 if test `eval echo '${'$as_ac_var'}'` = yes; then
17639 cat >>confdefs.h <<EOF
17640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17646 # use a compile-check to work with ncurses*-config and subdirectory includes
17647 echo "$as_me:17647: checking if we can use termcap.h" >&5
17648 echo $ECHO_N "checking if we can use termcap.h... $ECHO_C" >&6
17649 if test "${cf_cv_have_termcap_h+set}" = set; then
17650 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 cat >conftest.$ac_ext <<_ACEOF
17654 #line 17654 "configure"
17655 #include "confdefs.h"
17657 #include <curses.h>
17658 #ifdef NCURSES_VERSION
17659 #undef NCURSES_VERSION
17661 #include <termcap.h>
17662 #ifndef NCURSES_VERSION
17663 #error wrong header
17674 rm -f conftest.$ac_objext
17675 if { (eval echo "$as_me:17675: \"$ac_compile\"") >&5
17676 (eval $ac_compile) 2>&5
17678 echo "$as_me:17678: \$? = $ac_status" >&5
17679 (exit $ac_status); } &&
17680 { ac_try='test -s conftest.$ac_objext'
17681 { (eval echo "$as_me:17681: \"$ac_try\"") >&5
17682 (eval $ac_try) 2>&5
17684 echo "$as_me:17684: \$? = $ac_status" >&5
17685 (exit $ac_status); }; }; then
17686 cf_cv_have_termcap_h=yes
17688 echo "$as_me: failed program was:" >&5
17689 cat conftest.$ac_ext >&5
17690 cf_cv_have_termcap_h=no
17692 rm -f conftest.$ac_objext conftest.$ac_ext
17694 echo "$as_me:17694: result: $cf_cv_have_termcap_h" >&5
17695 echo "${ECHO_T}$cf_cv_have_termcap_h" >&6
17696 if test "x$cf_cv_have_termcap_h" = xyes
17699 cat >>confdefs.h <<\EOF
17700 #define HAVE_TERMCAP_H 1
17704 echo "$as_me:17704: checking if we can use ncurses/termcap.h" >&5
17705 echo $ECHO_N "checking if we can use ncurses/termcap.h... $ECHO_C" >&6
17706 if test "${cf_cv_have_ncurses_termcap_h+set}" = set; then
17707 echo $ECHO_N "(cached) $ECHO_C" >&6
17710 cat >conftest.$ac_ext <<_ACEOF
17711 #line 17711 "configure"
17712 #include "confdefs.h"
17714 #include <ncurses/curses.h>
17715 #ifdef NCURSES_VERSION
17716 #undef NCURSES_VERSION
17718 #include <ncurses/termcap.h>
17719 #ifndef NCURSES_VERSION
17720 #error wrong header
17731 rm -f conftest.$ac_objext
17732 if { (eval echo "$as_me:17732: \"$ac_compile\"") >&5
17733 (eval $ac_compile) 2>&5
17735 echo "$as_me:17735: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -s conftest.$ac_objext'
17738 { (eval echo "$as_me:17738: \"$ac_try\"") >&5
17739 (eval $ac_try) 2>&5
17741 echo "$as_me:17741: \$? = $ac_status" >&5
17742 (exit $ac_status); }; }; then
17743 cf_cv_have_ncurses_termcap_h=yes
17745 echo "$as_me: failed program was:" >&5
17746 cat conftest.$ac_ext >&5
17747 cf_cv_have_ncurses_termcap_h=no
17749 rm -f conftest.$ac_objext conftest.$ac_ext
17751 echo "$as_me:17751: result: $cf_cv_have_ncurses_termcap_h" >&5
17752 echo "${ECHO_T}$cf_cv_have_ncurses_termcap_h" >&6
17753 test "x$cf_cv_have_ncurses_termcap_h" = xyes &&
17754 cat >>confdefs.h <<\EOF
17755 #define HAVE_NCURSES_TERMCAP_H 1
17760 if test "x$ac_cv_func_getopt" = xno; then
17761 { { echo "$as_me:17761: error: getopt is required for building programs" >&5
17762 echo "$as_me: error: getopt is required for building programs" >&2;}
17763 { (exit 1); exit 1; }; }
17766 if test "$cf_enable_widec" = yes; then
17779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17780 echo "$as_me:17780: checking for $ac_func" >&5
17781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17782 if eval "test \"\${$as_ac_var+set}\" = set"; then
17783 echo $ECHO_N "(cached) $ECHO_C" >&6
17785 cat >conftest.$ac_ext <<_ACEOF
17786 #line 17786 "configure"
17787 #include "confdefs.h"
17788 #define $ac_func autoconf_temporary
17789 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17796 /* We use char because int might match the return type of a gcc2
17797 builtin and then its argument prototype would still apply. */
17798 char $ac_func (void);
17804 /* The GNU C library defines stubs for functions which it implements
17805 to always fail with ENOSYS. Some functions are actually named
17806 something starting with __ and the normal name is an alias. */
17807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17808 #error found stub for $ac_func
17811 return $ac_func ();
17816 rm -f conftest.$ac_objext conftest$ac_exeext
17817 if { (eval echo "$as_me:17817: \"$ac_link\"") >&5
17818 (eval $ac_link) 2>&5
17820 echo "$as_me:17820: \$? = $ac_status" >&5
17821 (exit $ac_status); } &&
17822 { ac_try='test -s conftest$ac_exeext'
17823 { (eval echo "$as_me:17823: \"$ac_try\"") >&5
17824 (eval $ac_try) 2>&5
17826 echo "$as_me:17826: \$? = $ac_status" >&5
17827 (exit $ac_status); }; }; then
17828 eval "$as_ac_var=yes"
17830 echo "$as_me: failed program was:" >&5
17831 cat conftest.$ac_ext >&5
17832 eval "$as_ac_var=no"
17834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17836 echo "$as_me:17836: result: `eval echo '${'$as_ac_var'}'`" >&5
17837 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17838 if test `eval echo '${'$as_ac_var'}'` = yes; then
17839 cat >>confdefs.h <<EOF
17840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17848 echo "$as_me:17848: checking definition to turn on extended curses functions" >&5
17849 echo $ECHO_N "checking definition to turn on extended curses functions... $ECHO_C" >&6
17850 if test "${cf_cv_need_xopen_extension+set}" = set; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17854 cf_cv_need_xopen_extension=unknown
17855 cat >conftest.$ac_ext <<_ACEOF
17856 #line 17856 "configure"
17857 #include "confdefs.h"
17859 #include <stdlib.h>
17860 #include <${cf_cv_ncurses_header:-curses.h}>
17865 #if defined(NCURSES_VERSION_PATCH)
17866 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
17870 #ifdef NCURSES_VERSION
17872 int check2 = curs_set((int)sizeof(check));
17874 long x = winnstr(stdscr, "", 0);
17876 getbegyx(stdscr, y1, x1)
17881 rm -f conftest.$ac_objext conftest$ac_exeext
17882 if { (eval echo "$as_me:17882: \"$ac_link\"") >&5
17883 (eval $ac_link) 2>&5
17885 echo "$as_me:17885: \$? = $ac_status" >&5
17886 (exit $ac_status); } &&
17887 { ac_try='test -s conftest$ac_exeext'
17888 { (eval echo "$as_me:17888: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17891 echo "$as_me:17891: \$? = $ac_status" >&5
17892 (exit $ac_status); }; }; then
17893 cf_cv_need_xopen_extension=none
17895 echo "$as_me: failed program was:" >&5
17896 cat conftest.$ac_ext >&5
17898 for cf_try_xopen_extension in _XOPEN_SOURCE_EXTENDED NCURSES_WIDECHAR
17900 cat >conftest.$ac_ext <<_ACEOF
17901 #line 17901 "configure"
17902 #include "confdefs.h"
17904 #define $cf_try_xopen_extension 1
17905 #include <stdlib.h>
17906 #include <${cf_cv_ncurses_header:-curses.h}>
17911 #ifdef NCURSES_VERSION
17913 int check2 = curs_set((int)sizeof(check));
17915 long x = winnstr(stdscr, "", 0);
17917 getbegyx(stdscr, y1, x1)
17922 rm -f conftest.$ac_objext conftest$ac_exeext
17923 if { (eval echo "$as_me:17923: \"$ac_link\"") >&5
17924 (eval $ac_link) 2>&5
17926 echo "$as_me:17926: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
17928 { ac_try='test -s conftest$ac_exeext'
17929 { (eval echo "$as_me:17929: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17932 echo "$as_me:17932: \$? = $ac_status" >&5
17933 (exit $ac_status); }; }; then
17934 cf_cv_need_xopen_extension=$cf_try_xopen_extension; break
17936 echo "$as_me: failed program was:" >&5
17937 cat conftest.$ac_ext >&5
17939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17946 echo "$as_me:17946: result: $cf_cv_need_xopen_extension" >&5
17947 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
17949 case $cf_cv_need_xopen_extension in
17952 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17953 CPPFLAGS="${CPPFLAGS}-D$cf_cv_need_xopen_extension"
17958 echo "$as_me:17958: checking for term.h" >&5
17959 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
17960 if test "${cf_cv_term_header+set}" = set; then
17961 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
17965 # for <term.h> if we do not find the variant.
17967 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
17969 case ${cf_cv_ncurses_header:-curses.h} in
17971 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
17972 cf_header_list="$cf_header_item $cf_header_list"
17976 for cf_header in $cf_header_list
17978 cat >conftest.$ac_ext <<_ACEOF
17979 #line 17979 "configure"
17980 #include "confdefs.h"
17982 #include <${cf_cv_ncurses_header:-curses.h}>
17983 #include <${cf_header}>
17992 rm -f conftest.$ac_objext
17993 if { (eval echo "$as_me:17993: \"$ac_compile\"") >&5
17994 (eval $ac_compile) 2>&5
17996 echo "$as_me:17996: \$? = $ac_status" >&5
17997 (exit $ac_status); } &&
17998 { ac_try='test -s conftest.$ac_objext'
17999 { (eval echo "$as_me:17999: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18002 echo "$as_me:18002: \$? = $ac_status" >&5
18003 (exit $ac_status); }; }; then
18004 cf_cv_term_header=$cf_header
18007 echo "$as_me: failed program was:" >&5
18008 cat conftest.$ac_ext >&5
18009 cf_cv_term_header=no
18011 rm -f conftest.$ac_objext conftest.$ac_ext
18014 case $cf_cv_term_header in
18016 # If curses is ncurses, some packagers still mess it up by trying to make
18017 # us use GNU termcap. This handles the most common case.
18018 for cf_header in ncurses/term.h ncursesw/term.h
18020 cat >conftest.$ac_ext <<_ACEOF
18021 #line 18021 "configure"
18022 #include "confdefs.h"
18024 #include <${cf_cv_ncurses_header:-curses.h}>
18025 #ifdef NCURSES_VERSION
18026 #include <${cf_header}>
18038 rm -f conftest.$ac_objext
18039 if { (eval echo "$as_me:18039: \"$ac_compile\"") >&5
18040 (eval $ac_compile) 2>&5
18042 echo "$as_me:18042: \$? = $ac_status" >&5
18043 (exit $ac_status); } &&
18044 { ac_try='test -s conftest.$ac_objext'
18045 { (eval echo "$as_me:18045: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18048 echo "$as_me:18048: \$? = $ac_status" >&5
18049 (exit $ac_status); }; }; then
18050 cf_cv_term_header=$cf_header
18053 echo "$as_me: failed program was:" >&5
18054 cat conftest.$ac_ext >&5
18055 cf_cv_term_header=no
18057 rm -f conftest.$ac_objext conftest.$ac_ext
18063 echo "$as_me:18063: result: $cf_cv_term_header" >&5
18064 echo "${ECHO_T}$cf_cv_term_header" >&6
18066 case $cf_cv_term_header in
18069 cat >>confdefs.h <<\EOF
18070 #define HAVE_TERM_H 1
18076 cat >>confdefs.h <<\EOF
18077 #define HAVE_NCURSES_TERM_H 1
18083 cat >>confdefs.h <<\EOF
18084 #define HAVE_NCURSESW_TERM_H 1
18090 echo "$as_me:18090: checking for unctrl.h" >&5
18091 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
18092 if test "${cf_cv_unctrl_header+set}" = set; then
18093 echo $ECHO_N "(cached) $ECHO_C" >&6
18096 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
18097 # for <unctrl.h> if we do not find the variant.
18099 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
18101 case ${cf_cv_ncurses_header:-curses.h} in
18103 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
18104 cf_header_list="$cf_header_item $cf_header_list"
18108 for cf_header in $cf_header_list
18110 cat >conftest.$ac_ext <<_ACEOF
18111 #line 18111 "configure"
18112 #include "confdefs.h"
18114 #include <${cf_cv_ncurses_header:-curses.h}>
18115 #include <${cf_header}>
18124 rm -f conftest.$ac_objext
18125 if { (eval echo "$as_me:18125: \"$ac_compile\"") >&5
18126 (eval $ac_compile) 2>&5
18128 echo "$as_me:18128: \$? = $ac_status" >&5
18129 (exit $ac_status); } &&
18130 { ac_try='test -s conftest.$ac_objext'
18131 { (eval echo "$as_me:18131: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18134 echo "$as_me:18134: \$? = $ac_status" >&5
18135 (exit $ac_status); }; }; then
18136 cf_cv_unctrl_header=$cf_header
18139 echo "$as_me: failed program was:" >&5
18140 cat conftest.$ac_ext >&5
18141 cf_cv_unctrl_header=no
18143 rm -f conftest.$ac_objext conftest.$ac_ext
18147 echo "$as_me:18147: result: $cf_cv_unctrl_header" >&5
18148 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
18150 case $cf_cv_unctrl_header in
18152 { echo "$as_me:18152: WARNING: unctrl.h header not found" >&5
18153 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
18157 case $cf_cv_unctrl_header in
18160 cat >>confdefs.h <<\EOF
18161 #define HAVE_UNCTRL_H 1
18167 cat >>confdefs.h <<\EOF
18168 #define HAVE_NCURSES_UNCTRL_H 1
18172 (ncursesw/unctrl.h)
18174 cat >>confdefs.h <<\EOF
18175 #define HAVE_NCURSESW_UNCTRL_H 1
18183 assume_default_colors \
18198 init_extended_color \
18206 reset_color_pairs \
18221 use_default_colors \
18223 use_extended_names \
18239 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18241 echo "$as_me:18241: checking for ${cf_func}" >&5
18242 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
18244 echo "${as_me:-configure}:18244: testing ${cf_func} ..." 1>&5
18246 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
18247 echo $ECHO_N "(cached) $ECHO_C" >&6
18250 eval cf_result='$ac_cv_func_'$cf_func
18251 if test ".$cf_result" != ".no"; then
18252 cat >conftest.$ac_ext <<_ACEOF
18253 #line 18253 "configure"
18254 #include "confdefs.h"
18256 #ifdef HAVE_XCURSES
18257 #include <xcurses.h>
18258 char * XCursesProgramName = "test";
18260 #include <${cf_cv_ncurses_header:-curses.h}>
18261 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
18262 #include <ncursesw/term.h>
18263 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
18264 #include <ncurses/term.h>
18265 #elif defined(HAVE_TERM_H)
18275 long foo = (long)(&${cf_func});
18276 fprintf(stderr, "testing linkage of $cf_func:%p\n", (void *)foo);
18277 if (foo + 1234L > 5678L)
18278 ${cf_cv_main_return:-return}(foo != 0);
18285 rm -f conftest.$ac_objext conftest$ac_exeext
18286 if { (eval echo "$as_me:18286: \"$ac_link\"") >&5
18287 (eval $ac_link) 2>&5
18289 echo "$as_me:18289: \$? = $ac_status" >&5
18290 (exit $ac_status); } &&
18291 { ac_try='test -s conftest$ac_exeext'
18292 { (eval echo "$as_me:18292: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18295 echo "$as_me:18295: \$? = $ac_status" >&5
18296 (exit $ac_status); }; }; then
18299 echo "$as_me: failed program was:" >&5
18300 cat conftest.$ac_ext >&5
18303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18305 eval 'cf_cv_func_'$cf_func'=$cf_result'
18309 # use the computed/retrieved cache-value:
18310 eval 'cf_result=$cf_cv_func_'$cf_func
18311 echo "$as_me:18311: result: $cf_result" >&5
18312 echo "${ECHO_T}$cf_result" >&6
18313 if test $cf_result != no; then
18314 cat >>confdefs.h <<EOF
18315 #define HAVE_${cf_tr_func} 1
18321 for cf_func in tputs
18324 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18326 echo "$as_me:18326: checking for ${cf_func}" >&5
18327 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
18329 echo "${as_me:-configure}:18329: testing ${cf_func} ..." 1>&5
18331 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
18332 echo $ECHO_N "(cached) $ECHO_C" >&6
18335 eval cf_result='$ac_cv_func_'$cf_func
18336 if test ".$cf_result" != ".no"; then
18337 cat >conftest.$ac_ext <<_ACEOF
18338 #line 18338 "configure"
18339 #include "confdefs.h"
18341 #ifdef HAVE_XCURSES
18342 #include <xcurses.h>
18343 char * XCursesProgramName = "test";
18345 #include <${cf_cv_ncurses_header:-curses.h}>
18346 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
18347 #include <ncursesw/term.h>
18348 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
18349 #include <ncurses/term.h>
18350 #elif defined(HAVE_TERM_H)
18360 long foo = (long)(&${cf_func});
18361 fprintf(stderr, "testing linkage of $cf_func:%p\n", (void *)foo);
18362 if (foo + 1234L > 5678L)
18363 ${cf_cv_main_return:-return}(foo != 0);
18370 rm -f conftest.$ac_objext conftest$ac_exeext
18371 if { (eval echo "$as_me:18371: \"$ac_link\"") >&5
18372 (eval $ac_link) 2>&5
18374 echo "$as_me:18374: \$? = $ac_status" >&5
18375 (exit $ac_status); } &&
18376 { ac_try='test -s conftest$ac_exeext'
18377 { (eval echo "$as_me:18377: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18380 echo "$as_me:18380: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18384 echo "$as_me: failed program was:" >&5
18385 cat conftest.$ac_ext >&5
18388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18390 eval 'cf_cv_func_'$cf_func'=$cf_result'
18394 # use the computed/retrieved cache-value:
18395 eval 'cf_result=$cf_cv_func_'$cf_func
18396 echo "$as_me:18396: result: $cf_result" >&5
18397 echo "${ECHO_T}$cf_result" >&6
18398 if test $cf_result != no; then
18399 cat >>confdefs.h <<EOF
18400 #define HAVE_${cf_tr_func} 1
18406 if test x$cf_cv_func_tputs = xyes
18409 for cf_arg in int char
18411 for cf_ret in int void
18413 if test $cf_ret = void
18415 cf_return="/* nothing */"
18417 cf_return="return value"
18419 cat >conftest.$ac_ext <<_ACEOF
18420 #line 18420 "configure"
18421 #include "confdefs.h"
18423 #include <${cf_cv_ncurses_header:-curses.h}>
18424 #include <$cf_cv_term_header>
18426 static $cf_ret outc($cf_arg value) { $cf_return; }
18432 tputs("hello", 0, outc);
18433 ${cf_cv_main_return:-return}(0);
18439 rm -f conftest.$ac_objext
18440 if { (eval echo "$as_me:18440: \"$ac_compile\"") >&5
18441 (eval $ac_compile) 2>&5
18443 echo "$as_me:18443: \$? = $ac_status" >&5
18444 (exit $ac_status); } &&
18445 { ac_try='test -s conftest.$ac_objext'
18446 { (eval echo "$as_me:18446: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18449 echo "$as_me:18449: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18452 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
18454 echo "${as_me:-configure}:18454: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
18456 cat >>confdefs.h <<EOF
18457 #define TPUTS_ARG $cf_arg
18458 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
18459 #define TPUTS_RETURN(value) $cf_return
18465 echo "$as_me: failed program was:" >&5
18466 cat conftest.$ac_ext >&5
18468 rm -f conftest.$ac_objext conftest.$ac_ext
18470 test $cf_done = yes && break
18474 echo "$as_me:18474: checking for ncurses extended functions" >&5
18475 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
18476 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
18477 echo $ECHO_N "(cached) $ECHO_C" >&6
18480 cat >conftest.$ac_ext <<_ACEOF
18481 #line 18481 "configure"
18482 #include "confdefs.h"
18484 #include <${cf_cv_ncurses_header:-curses.h}>
18489 int x = NCURSES_EXT_FUNCS
18495 rm -f conftest.$ac_objext
18496 if { (eval echo "$as_me:18496: \"$ac_compile\"") >&5
18497 (eval $ac_compile) 2>&5
18499 echo "$as_me:18499: \$? = $ac_status" >&5
18500 (exit $ac_status); } &&
18501 { ac_try='test -s conftest.$ac_objext'
18502 { (eval echo "$as_me:18502: \"$ac_try\"") >&5
18503 (eval $ac_try) 2>&5
18505 echo "$as_me:18505: \$? = $ac_status" >&5
18506 (exit $ac_status); }; }; then
18507 cf_cv_ncurses_ext_funcs=defined
18509 echo "$as_me: failed program was:" >&5
18510 cat conftest.$ac_ext >&5
18512 cat >conftest.$ac_ext <<_ACEOF
18513 #line 18513 "configure"
18514 #include "confdefs.h"
18516 #include <${cf_cv_ncurses_header:-curses.h}>
18521 (void) assume_default_colors (0, 0);
18522 (void) curses_version ();
18523 (void) define_key (0, 0);
18524 (void) is_term_resized (0, 0);
18525 (void) key_defined (0);
18526 (void) keybound (0, 0);
18527 (void) keyok (0, 0);
18528 (void) resize_term (0, 0);
18529 (void) resizeterm (0, 0);
18530 (void) use_default_colors ();
18531 (void) use_extended_names (0);
18532 (void) wresize (0, 0, 0);
18537 rm -f conftest.$ac_objext conftest$ac_exeext
18538 if { (eval echo "$as_me:18538: \"$ac_link\"") >&5
18539 (eval $ac_link) 2>&5
18541 echo "$as_me:18541: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
18543 { ac_try='test -s conftest$ac_exeext'
18544 { (eval echo "$as_me:18544: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18547 echo "$as_me:18547: \$? = $ac_status" >&5
18548 (exit $ac_status); }; }; then
18549 cf_cv_ncurses_ext_funcs=yes
18551 echo "$as_me: failed program was:" >&5
18552 cat conftest.$ac_ext >&5
18553 cf_cv_ncurses_ext_funcs=no
18555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18558 rm -f conftest.$ac_objext conftest.$ac_ext
18561 echo "$as_me:18561: result: $cf_cv_ncurses_ext_funcs" >&5
18562 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
18563 test "$cf_cv_ncurses_ext_funcs" = yes &&
18564 cat >>confdefs.h <<\EOF
18565 #define NCURSES_EXT_FUNCS 1
18568 if test "$cf_enable_widec" = yes
18570 # workaround for systems with ncurses before 20111029, due to change of
18571 # feature test macro from _XPG5 to _XOPEN_SOURCE
18572 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
18575 echo "$as_me:18575: checking if _XPG5 should be defined to enable wide-characters" >&5
18576 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
18578 cat >conftest.$ac_ext <<_ACEOF
18579 #line 18579 "configure"
18580 #include "confdefs.h"
18582 #include <${cf_cv_ncurses_header:-curses.h}>
18591 rm -f conftest.$ac_objext
18592 if { (eval echo "$as_me:18592: \"$ac_compile\"") >&5
18593 (eval $ac_compile) 2>&5
18595 echo "$as_me:18595: \$? = $ac_status" >&5
18596 (exit $ac_status); } &&
18597 { ac_try='test -s conftest.$ac_objext'
18598 { (eval echo "$as_me:18598: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18601 echo "$as_me:18601: \$? = $ac_status" >&5
18602 (exit $ac_status); }; }; then
18605 echo "$as_me: failed program was:" >&5
18606 cat conftest.$ac_ext >&5
18607 cf_save_cppflags="$CPPFLAGS"
18608 CPPFLAGS="$CPPFLAGS -D_XPG5"
18609 cat >conftest.$ac_ext <<_ACEOF
18610 #line 18610 "configure"
18611 #include "confdefs.h"
18613 #include <${cf_cv_ncurses_header:-curses.h}>
18622 rm -f conftest.$ac_objext
18623 if { (eval echo "$as_me:18623: \"$ac_compile\"") >&5
18624 (eval $ac_compile) 2>&5
18626 echo "$as_me:18626: \$? = $ac_status" >&5
18627 (exit $ac_status); } &&
18628 { ac_try='test -s conftest.$ac_objext'
18629 { (eval echo "$as_me:18629: \"$ac_try\"") >&5
18630 (eval $ac_try) 2>&5
18632 echo "$as_me:18632: \$? = $ac_status" >&5
18633 (exit $ac_status); }; }; then
18636 echo "$as_me: failed program was:" >&5
18637 cat conftest.$ac_ext >&5
18639 rm -f conftest.$ac_objext conftest.$ac_ext
18640 CPPFLAGS="$cf_save_cppflags"
18642 rm -f conftest.$ac_objext conftest.$ac_ext
18643 echo "$as_me:18643: result: $cf_define_xpg5" >&5
18644 echo "${ECHO_T}$cf_define_xpg5" >&6
18646 if test "$cf_define_xpg5" = yes
18648 CPPFLAGS="$CPPFLAGS -D_XPG5"
18652 echo "$as_me:18652: checking for wide-character functions" >&5
18653 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
18654 if test "${cf_cv_widechar_funcs+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18658 cat >conftest.$ac_ext <<_ACEOF
18659 #line 18659 "configure"
18660 #include "confdefs.h"
18662 #include <${cf_cv_ncurses_header:-curses.h}>
18667 static wchar_t src_wchar[2];
18668 static cchar_t dst_cchar;
18669 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
18675 rm -f conftest.$ac_objext conftest$ac_exeext
18676 if { (eval echo "$as_me:18676: \"$ac_link\"") >&5
18677 (eval $ac_link) 2>&5
18679 echo "$as_me:18679: \$? = $ac_status" >&5
18680 (exit $ac_status); } &&
18681 { ac_try='test -s conftest$ac_exeext'
18682 { (eval echo "$as_me:18682: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18685 echo "$as_me:18685: \$? = $ac_status" >&5
18686 (exit $ac_status); }; }; then
18687 cf_cv_widechar_funcs=yes
18689 echo "$as_me: failed program was:" >&5
18690 cat conftest.$ac_ext >&5
18691 cf_cv_widechar_funcs=no
18693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18696 echo "$as_me:18696: result: $cf_cv_widechar_funcs" >&5
18697 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
18698 if test "$cf_cv_widechar_funcs" != no ; then
18700 cat >>confdefs.h <<\EOF
18701 #define USE_WIDEC_SUPPORT 1
18705 cat >>confdefs.h <<\EOF
18706 #define USE_WIDEC_SUPPORT 0
18711 cat >>confdefs.h <<\EOF
18712 #define USE_WIDEC_SUPPORT 0
18717 echo "$as_me:18717: checking if $cf_cv_screen library uses pthreads" >&5
18718 echo $ECHO_N "checking if $cf_cv_screen library uses pthreads... $ECHO_C" >&6
18719 if test "${cf_cv_use_pthreads+set}" = set; then
18720 echo $ECHO_N "(cached) $ECHO_C" >&6
18723 cat >conftest.$ac_ext <<_ACEOF
18724 #line 18724 "configure"
18725 #include "confdefs.h"
18727 #include <${cf_cv_ncurses_header:-curses.h}>
18728 extern void _nc_init_pthreads(void);
18735 _nc_init_pthreads();
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (eval echo "$as_me:18742: \"$ac_link\"") >&5
18743 (eval $ac_link) 2>&5
18745 echo "$as_me:18745: \$? = $ac_status" >&5
18746 (exit $ac_status); } &&
18747 { ac_try='test -s conftest$ac_exeext'
18748 { (eval echo "$as_me:18748: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18751 echo "$as_me:18751: \$? = $ac_status" >&5
18752 (exit $ac_status); }; }; then
18753 cf_cv_use_pthreads=yes
18755 echo "$as_me: failed program was:" >&5
18756 cat conftest.$ac_ext >&5
18757 cf_cv_use_pthreads=no
18759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18762 echo "$as_me:18762: result: $cf_cv_use_pthreads" >&5
18763 echo "${ECHO_T}$cf_cv_use_pthreads" >&6
18764 test $cf_cv_use_pthreads = yes &&
18765 cat >>confdefs.h <<\EOF
18766 #define USE_PTHREADS 1
18769 echo "$as_me:18769: checking if sys/time.h works with sys/select.h" >&5
18770 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
18771 if test "${cf_cv_sys_time_select+set}" = set; then
18772 echo $ECHO_N "(cached) $ECHO_C" >&6
18775 cat >conftest.$ac_ext <<_ACEOF
18776 #line 18776 "configure"
18777 #include "confdefs.h"
18779 #include <sys/types.h>
18780 #ifdef HAVE_SYS_TIME_H
18781 #include <sys/time.h>
18783 #ifdef HAVE_SYS_SELECT_H
18784 #include <sys/select.h>
18795 rm -f conftest.$ac_objext
18796 if { (eval echo "$as_me:18796: \"$ac_compile\"") >&5
18797 (eval $ac_compile) 2>&5
18799 echo "$as_me:18799: \$? = $ac_status" >&5
18800 (exit $ac_status); } &&
18801 { ac_try='test -s conftest.$ac_objext'
18802 { (eval echo "$as_me:18802: \"$ac_try\"") >&5
18803 (eval $ac_try) 2>&5
18805 echo "$as_me:18805: \$? = $ac_status" >&5
18806 (exit $ac_status); }; }; then
18807 cf_cv_sys_time_select=yes
18809 echo "$as_me: failed program was:" >&5
18810 cat conftest.$ac_ext >&5
18811 cf_cv_sys_time_select=no
18813 rm -f conftest.$ac_objext conftest.$ac_ext
18817 echo "$as_me:18817: result: $cf_cv_sys_time_select" >&5
18818 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
18819 test "$cf_cv_sys_time_select" = yes &&
18820 cat >>confdefs.h <<\EOF
18821 #define HAVE_SYS_TIME_SELECT 1
18824 # special check for test/ditto.c
18826 echo "$as_me:18826: checking for openpty in -lutil" >&5
18827 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
18828 if test "${ac_cv_lib_util_openpty+set}" = set; then
18829 echo $ECHO_N "(cached) $ECHO_C" >&6
18831 ac_check_lib_save_LIBS=$LIBS
18832 LIBS="-lutil $LIBS"
18833 cat >conftest.$ac_ext <<_ACEOF
18834 #line 18834 "configure"
18835 #include "confdefs.h"
18837 /* Override any gcc2 internal prototype to avoid an error. */
18841 /* We use char because int might match the return type of a gcc2
18842 builtin and then its argument prototype would still apply. */
18852 rm -f conftest.$ac_objext conftest$ac_exeext
18853 if { (eval echo "$as_me:18853: \"$ac_link\"") >&5
18854 (eval $ac_link) 2>&5
18856 echo "$as_me:18856: \$? = $ac_status" >&5
18857 (exit $ac_status); } &&
18858 { ac_try='test -s conftest$ac_exeext'
18859 { (eval echo "$as_me:18859: \"$ac_try\"") >&5
18860 (eval $ac_try) 2>&5
18862 echo "$as_me:18862: \$? = $ac_status" >&5
18863 (exit $ac_status); }; }; then
18864 ac_cv_lib_util_openpty=yes
18866 echo "$as_me: failed program was:" >&5
18867 cat conftest.$ac_ext >&5
18868 ac_cv_lib_util_openpty=no
18870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18871 LIBS=$ac_check_lib_save_LIBS
18873 echo "$as_me:18873: result: $ac_cv_lib_util_openpty" >&5
18874 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
18875 if test $ac_cv_lib_util_openpty = yes; then
18881 echo "$as_me:18881: checking for openpty header" >&5
18882 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
18883 if test "${cf_cv_func_openpty+set}" = set; then
18884 echo $ECHO_N "(cached) $ECHO_C" >&6
18887 cf_save_LIBS="$LIBS"
18888 test $cf_cv_lib_util = yes && {
18889 cf_add_libs="$LIBS"
18892 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18893 # filter duplicates
18894 for cf_add_1lib in $cf_add_0lib; do
18895 for cf_add_2lib in $cf_add_libs; do
18896 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18901 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18903 LIBS="$cf_add_libs"
18905 for cf_header in pty.h libutil.h util.h
18907 cat >conftest.$ac_ext <<_ACEOF
18908 #line 18908 "configure"
18909 #include "confdefs.h"
18911 #include <$cf_header>
18917 int x = openpty((int *)0, (int *)0, (char *)0,
18918 (struct termios *)0, (struct winsize *)0);
18924 rm -f conftest.$ac_objext conftest$ac_exeext
18925 if { (eval echo "$as_me:18925: \"$ac_link\"") >&5
18926 (eval $ac_link) 2>&5
18928 echo "$as_me:18928: \$? = $ac_status" >&5
18929 (exit $ac_status); } &&
18930 { ac_try='test -s conftest$ac_exeext'
18931 { (eval echo "$as_me:18931: \"$ac_try\"") >&5
18932 (eval $ac_try) 2>&5
18934 echo "$as_me:18934: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18937 cf_cv_func_openpty=$cf_header
18941 echo "$as_me: failed program was:" >&5
18942 cat conftest.$ac_ext >&5
18944 cf_cv_func_openpty=no
18947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18949 LIBS="$cf_save_LIBS"
18952 echo "$as_me:18952: result: $cf_cv_func_openpty" >&5
18953 echo "${ECHO_T}$cf_cv_func_openpty" >&6
18955 if test "$cf_cv_func_openpty" != no ; then
18957 cat >>confdefs.h <<EOF
18958 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
18961 cat >>confdefs.h <<\EOF
18962 #define USE_XTERM_PTY 1
18965 if test "x$cf_cv_lib_util" = xyes ; then
18967 cf_add_libs="$TEST_LIBS"
18970 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18971 # filter duplicates
18972 for cf_add_1lib in $cf_add_0lib; do
18973 for cf_add_2lib in $cf_add_libs; do
18974 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18979 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18981 TEST_LIBS="$cf_add_libs"
18986 echo "$as_me:18986: checking for function curses_version" >&5
18987 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
18988 if test "${cf_cv_func_curses_version+set}" = set; then
18989 echo $ECHO_N "(cached) $ECHO_C" >&6
18992 if test "$cross_compiling" = yes; then
18993 cf_cv_func_curses_version=unknown
18995 cat >conftest.$ac_ext <<_ACEOF
18996 #line 18996 "configure"
18997 #include "confdefs.h"
18999 #include <${cf_cv_ncurses_header:-curses.h}>
19003 sprintf(temp, "%s\n", curses_version());
19004 ${cf_cv_main_return:-return}(0);
19008 rm -f conftest$ac_exeext
19009 if { (eval echo "$as_me:19009: \"$ac_link\"") >&5
19010 (eval $ac_link) 2>&5
19012 echo "$as_me:19012: \$? = $ac_status" >&5
19013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19014 { (eval echo "$as_me:19014: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19017 echo "$as_me:19017: \$? = $ac_status" >&5
19018 (exit $ac_status); }; }; then
19019 cf_cv_func_curses_version=yes
19022 echo "$as_me: program exited with status $ac_status" >&5
19023 echo "$as_me: failed program was:" >&5
19024 cat conftest.$ac_ext >&5
19025 cf_cv_func_curses_version=no
19028 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19032 echo "$as_me:19032: result: $cf_cv_func_curses_version" >&5
19033 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
19034 test "$cf_cv_func_curses_version" = yes &&
19035 cat >>confdefs.h <<\EOF
19036 #define HAVE_CURSES_VERSION 1
19039 echo "$as_me:19039: checking for alternate character set array" >&5
19040 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
19041 if test "${cf_cv_curses_acs_map+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19045 cf_cv_curses_acs_map=unknown
19046 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
19048 cat >conftest.$ac_ext <<_ACEOF
19049 #line 19049 "configure"
19050 #include "confdefs.h"
19052 #include <${cf_cv_ncurses_header:-curses.h}>
19058 $name['k'] = ACS_PLUS
19064 rm -f conftest.$ac_objext conftest$ac_exeext
19065 if { (eval echo "$as_me:19065: \"$ac_link\"") >&5
19066 (eval $ac_link) 2>&5
19068 echo "$as_me:19068: \$? = $ac_status" >&5
19069 (exit $ac_status); } &&
19070 { ac_try='test -s conftest$ac_exeext'
19071 { (eval echo "$as_me:19071: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:19074: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076 cf_cv_curses_acs_map=$name; break
19078 echo "$as_me: failed program was:" >&5
19079 cat conftest.$ac_ext >&5
19081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19085 echo "$as_me:19085: result: $cf_cv_curses_acs_map" >&5
19086 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
19088 test "$cf_cv_curses_acs_map" != unknown &&
19089 cat >>confdefs.h <<EOF
19090 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
19093 if test "$cf_enable_widec" = yes; then
19095 echo "$as_me:19095: checking for wide alternate character set array" >&5
19096 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
19097 if test "${cf_cv_curses_wacs_map+set}" = set; then
19098 echo $ECHO_N "(cached) $ECHO_C" >&6
19101 cf_cv_curses_wacs_map=unknown
19102 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
19104 cat >conftest.$ac_ext <<_ACEOF
19105 #line 19105 "configure"
19106 #include "confdefs.h"
19108 #ifndef _XOPEN_SOURCE_EXTENDED
19109 #define _XOPEN_SOURCE_EXTENDED
19111 #include <${cf_cv_ncurses_header:-curses.h}>
19115 void *foo = &($name['k'])
19120 rm -f conftest.$ac_objext conftest$ac_exeext
19121 if { (eval echo "$as_me:19121: \"$ac_link\"") >&5
19122 (eval $ac_link) 2>&5
19124 echo "$as_me:19124: \$? = $ac_status" >&5
19125 (exit $ac_status); } &&
19126 { ac_try='test -s conftest$ac_exeext'
19127 { (eval echo "$as_me:19127: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19130 echo "$as_me:19130: \$? = $ac_status" >&5
19131 (exit $ac_status); }; }; then
19132 cf_cv_curses_wacs_map=$name
19135 echo "$as_me: failed program was:" >&5
19136 cat conftest.$ac_ext >&5
19138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19141 echo "$as_me:19141: result: $cf_cv_curses_wacs_map" >&5
19142 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
19144 test "$cf_cv_curses_wacs_map" != unknown &&
19145 cat >>confdefs.h <<EOF
19146 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
19149 echo "$as_me:19149: checking for wide alternate character constants" >&5
19150 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
19151 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19155 cf_cv_curses_wacs_symbols=no
19156 if test "$cf_cv_curses_wacs_map" != unknown
19158 cat >conftest.$ac_ext <<_ACEOF
19159 #line 19159 "configure"
19160 #include "confdefs.h"
19162 #ifndef _XOPEN_SOURCE_EXTENDED
19163 #define _XOPEN_SOURCE_EXTENDED
19165 #include <${cf_cv_ncurses_header:-curses.h}>
19169 cchar_t *foo = WACS_PLUS;
19170 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
19175 rm -f conftest.$ac_objext conftest$ac_exeext
19176 if { (eval echo "$as_me:19176: \"$ac_link\"") >&5
19177 (eval $ac_link) 2>&5
19179 echo "$as_me:19179: \$? = $ac_status" >&5
19180 (exit $ac_status); } &&
19181 { ac_try='test -s conftest$ac_exeext'
19182 { (eval echo "$as_me:19182: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19185 echo "$as_me:19185: \$? = $ac_status" >&5
19186 (exit $ac_status); }; }; then
19187 cf_cv_curses_wacs_symbols=yes
19189 echo "$as_me: failed program was:" >&5
19190 cat conftest.$ac_ext >&5
19192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19194 cat >conftest.$ac_ext <<_ACEOF
19195 #line 19195 "configure"
19196 #include "confdefs.h"
19198 #ifndef _XOPEN_SOURCE_EXTENDED
19199 #define _XOPEN_SOURCE_EXTENDED
19201 #include <${cf_cv_ncurses_header:-curses.h}>
19205 cchar_t *foo = WACS_PLUS
19210 rm -f conftest.$ac_objext conftest$ac_exeext
19211 if { (eval echo "$as_me:19211: \"$ac_link\"") >&5
19212 (eval $ac_link) 2>&5
19214 echo "$as_me:19214: \$? = $ac_status" >&5
19215 (exit $ac_status); } &&
19216 { ac_try='test -s conftest$ac_exeext'
19217 { (eval echo "$as_me:19217: \"$ac_try\"") >&5
19218 (eval $ac_try) 2>&5
19220 echo "$as_me:19220: \$? = $ac_status" >&5
19221 (exit $ac_status); }; }; then
19222 cf_cv_curses_wacs_symbols=yes
19224 echo "$as_me: failed program was:" >&5
19225 cat conftest.$ac_ext >&5
19227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19231 echo "$as_me:19231: result: $cf_cv_curses_wacs_symbols" >&5
19232 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
19234 test "$cf_cv_curses_wacs_symbols" != no &&
19235 cat >>confdefs.h <<\EOF
19236 #define CURSES_WACS_SYMBOLS 1
19241 echo "$as_me:19241: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
19242 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
19243 cat >conftest.$ac_ext <<_ACEOF
19244 #line 19244 "configure"
19245 #include "confdefs.h"
19247 #ifndef _XOPEN_SOURCE_EXTENDED
19248 #define _XOPEN_SOURCE_EXTENDED
19250 #include <${cf_cv_ncurses_header:-curses.h}>
19261 rm -f conftest.$ac_objext
19262 if { (eval echo "$as_me:19262: \"$ac_compile\"") >&5
19263 (eval $ac_compile) 2>&5
19265 echo "$as_me:19265: \$? = $ac_status" >&5
19266 (exit $ac_status); } &&
19267 { ac_try='test -s conftest.$ac_objext'
19268 { (eval echo "$as_me:19268: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19271 echo "$as_me:19271: \$? = $ac_status" >&5
19272 (exit $ac_status); }; }; then
19275 echo "$as_me: failed program was:" >&5
19276 cat conftest.$ac_ext >&5
19279 rm -f conftest.$ac_objext conftest.$ac_ext
19280 echo "$as_me:19280: result: $cf_result" >&5
19281 echo "${ECHO_T}$cf_result" >&6
19282 if test $cf_result = yes ; then
19284 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19286 cat >>confdefs.h <<EOF
19287 #define $cf_result 1
19292 cat >>confdefs.h <<EOF
19293 #define attr_t long
19298 if test "$cf_enable_widec" = yes; then
19300 # This is needed on Tru64 5.0 to declare mbstate_t
19301 echo "$as_me:19301: checking if we must include wchar.h to declare mbstate_t" >&5
19302 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
19303 if test "${cf_cv_mbstate_t+set}" = set; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19307 cat >conftest.$ac_ext <<_ACEOF
19308 #line 19308 "configure"
19309 #include "confdefs.h"
19311 #include <stdlib.h>
19312 #include <stdarg.h>
19314 #ifdef HAVE_LIBUTF8_H
19315 #include <libutf8.h>
19325 rm -f conftest.$ac_objext
19326 if { (eval echo "$as_me:19326: \"$ac_compile\"") >&5
19327 (eval $ac_compile) 2>&5
19329 echo "$as_me:19329: \$? = $ac_status" >&5
19330 (exit $ac_status); } &&
19331 { ac_try='test -s conftest.$ac_objext'
19332 { (eval echo "$as_me:19332: \"$ac_try\"") >&5
19333 (eval $ac_try) 2>&5
19335 echo "$as_me:19335: \$? = $ac_status" >&5
19336 (exit $ac_status); }; }; then
19339 echo "$as_me: failed program was:" >&5
19340 cat conftest.$ac_ext >&5
19341 cat >conftest.$ac_ext <<_ACEOF
19342 #line 19342 "configure"
19343 #include "confdefs.h"
19345 #include <stdlib.h>
19346 #include <stdarg.h>
19349 #ifdef HAVE_LIBUTF8_H
19350 #include <libutf8.h>
19360 rm -f conftest.$ac_objext
19361 if { (eval echo "$as_me:19361: \"$ac_compile\"") >&5
19362 (eval $ac_compile) 2>&5
19364 echo "$as_me:19364: \$? = $ac_status" >&5
19365 (exit $ac_status); } &&
19366 { ac_try='test -s conftest.$ac_objext'
19367 { (eval echo "$as_me:19367: \"$ac_try\"") >&5
19368 (eval $ac_try) 2>&5
19370 echo "$as_me:19370: \$? = $ac_status" >&5
19371 (exit $ac_status); }; }; then
19372 cf_cv_mbstate_t=yes
19374 echo "$as_me: failed program was:" >&5
19375 cat conftest.$ac_ext >&5
19376 cf_cv_mbstate_t=unknown
19378 rm -f conftest.$ac_objext conftest.$ac_ext
19380 rm -f conftest.$ac_objext conftest.$ac_ext
19382 echo "$as_me:19382: result: $cf_cv_mbstate_t" >&5
19383 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
19385 if test "$cf_cv_mbstate_t" = yes ; then
19387 cat >>confdefs.h <<\EOF
19388 #define NEED_WCHAR_H 1
19394 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
19395 if test "$cf_cv_mbstate_t" = unknown ; then
19396 NCURSES_MBSTATE_T=1
19399 # if we find mbstate_t in either place, use substitution to provide a fallback.
19400 if test "$cf_cv_mbstate_t" != unknown ; then
19401 NCURSES_OK_MBSTATE_T=1
19404 # This is needed on Tru64 5.0 to declare wchar_t
19405 echo "$as_me:19405: checking if we must include wchar.h to declare wchar_t" >&5
19406 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
19407 if test "${cf_cv_wchar_t+set}" = set; then
19408 echo $ECHO_N "(cached) $ECHO_C" >&6
19411 cat >conftest.$ac_ext <<_ACEOF
19412 #line 19412 "configure"
19413 #include "confdefs.h"
19415 #include <stdlib.h>
19416 #include <stdarg.h>
19418 #ifdef HAVE_LIBUTF8_H
19419 #include <libutf8.h>
19429 rm -f conftest.$ac_objext
19430 if { (eval echo "$as_me:19430: \"$ac_compile\"") >&5
19431 (eval $ac_compile) 2>&5
19433 echo "$as_me:19433: \$? = $ac_status" >&5
19434 (exit $ac_status); } &&
19435 { ac_try='test -s conftest.$ac_objext'
19436 { (eval echo "$as_me:19436: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19439 echo "$as_me:19439: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19443 echo "$as_me: failed program was:" >&5
19444 cat conftest.$ac_ext >&5
19445 cat >conftest.$ac_ext <<_ACEOF
19446 #line 19446 "configure"
19447 #include "confdefs.h"
19449 #include <stdlib.h>
19450 #include <stdarg.h>
19453 #ifdef HAVE_LIBUTF8_H
19454 #include <libutf8.h>
19464 rm -f conftest.$ac_objext
19465 if { (eval echo "$as_me:19465: \"$ac_compile\"") >&5
19466 (eval $ac_compile) 2>&5
19468 echo "$as_me:19468: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
19470 { ac_try='test -s conftest.$ac_objext'
19471 { (eval echo "$as_me:19471: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19474 echo "$as_me:19474: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19478 echo "$as_me: failed program was:" >&5
19479 cat conftest.$ac_ext >&5
19480 cf_cv_wchar_t=unknown
19482 rm -f conftest.$ac_objext conftest.$ac_ext
19484 rm -f conftest.$ac_objext conftest.$ac_ext
19486 echo "$as_me:19486: result: $cf_cv_wchar_t" >&5
19487 echo "${ECHO_T}$cf_cv_wchar_t" >&6
19489 if test "$cf_cv_wchar_t" = yes ; then
19491 cat >>confdefs.h <<\EOF
19492 #define NEED_WCHAR_H 1
19498 # if we do not find wchar_t in either place, use substitution to provide a fallback.
19499 if test "$cf_cv_wchar_t" = unknown ; then
19503 # if we find wchar_t in either place, use substitution to provide a fallback.
19504 if test "$cf_cv_wchar_t" != unknown ; then
19505 NCURSES_OK_WCHAR_T=1
19508 # This is needed on Tru64 5.0 to declare wint_t
19509 echo "$as_me:19509: checking if we must include wchar.h to declare wint_t" >&5
19510 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
19511 if test "${cf_cv_wint_t+set}" = set; then
19512 echo $ECHO_N "(cached) $ECHO_C" >&6
19515 cat >conftest.$ac_ext <<_ACEOF
19516 #line 19516 "configure"
19517 #include "confdefs.h"
19519 #include <stdlib.h>
19520 #include <stdarg.h>
19522 #ifdef HAVE_LIBUTF8_H
19523 #include <libutf8.h>
19533 rm -f conftest.$ac_objext
19534 if { (eval echo "$as_me:19534: \"$ac_compile\"") >&5
19535 (eval $ac_compile) 2>&5
19537 echo "$as_me:19537: \$? = $ac_status" >&5
19538 (exit $ac_status); } &&
19539 { ac_try='test -s conftest.$ac_objext'
19540 { (eval echo "$as_me:19540: \"$ac_try\"") >&5
19541 (eval $ac_try) 2>&5
19543 echo "$as_me:19543: \$? = $ac_status" >&5
19544 (exit $ac_status); }; }; then
19547 echo "$as_me: failed program was:" >&5
19548 cat conftest.$ac_ext >&5
19549 cat >conftest.$ac_ext <<_ACEOF
19550 #line 19550 "configure"
19551 #include "confdefs.h"
19553 #include <stdlib.h>
19554 #include <stdarg.h>
19557 #ifdef HAVE_LIBUTF8_H
19558 #include <libutf8.h>
19568 rm -f conftest.$ac_objext
19569 if { (eval echo "$as_me:19569: \"$ac_compile\"") >&5
19570 (eval $ac_compile) 2>&5
19572 echo "$as_me:19572: \$? = $ac_status" >&5
19573 (exit $ac_status); } &&
19574 { ac_try='test -s conftest.$ac_objext'
19575 { (eval echo "$as_me:19575: \"$ac_try\"") >&5
19576 (eval $ac_try) 2>&5
19578 echo "$as_me:19578: \$? = $ac_status" >&5
19579 (exit $ac_status); }; }; then
19582 echo "$as_me: failed program was:" >&5
19583 cat conftest.$ac_ext >&5
19584 cf_cv_wint_t=unknown
19586 rm -f conftest.$ac_objext conftest.$ac_ext
19588 rm -f conftest.$ac_objext conftest.$ac_ext
19590 echo "$as_me:19590: result: $cf_cv_wint_t" >&5
19591 echo "${ECHO_T}$cf_cv_wint_t" >&6
19593 if test "$cf_cv_wint_t" = yes ; then
19595 cat >>confdefs.h <<\EOF
19596 #define NEED_WCHAR_H 1
19602 # if we do not find wint_t in either place, use substitution to provide a fallback.
19603 if test "$cf_cv_wint_t" = unknown ; then
19607 # if we find wint_t in either place, use substitution to provide a fallback.
19608 if test "$cf_cv_wint_t" != unknown ; then
19609 NCURSES_OK_WINT_T=1
19612 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
19614 echo "$as_me:19614: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
19615 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
19616 cat >conftest.$ac_ext <<_ACEOF
19617 #line 19617 "configure"
19618 #include "confdefs.h"
19620 #ifndef _XOPEN_SOURCE_EXTENDED
19621 #define _XOPEN_SOURCE_EXTENDED
19623 #include <${cf_cv_ncurses_header:-curses.h}>
19634 rm -f conftest.$ac_objext
19635 if { (eval echo "$as_me:19635: \"$ac_compile\"") >&5
19636 (eval $ac_compile) 2>&5
19638 echo "$as_me:19638: \$? = $ac_status" >&5
19639 (exit $ac_status); } &&
19640 { ac_try='test -s conftest.$ac_objext'
19641 { (eval echo "$as_me:19641: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19644 echo "$as_me:19644: \$? = $ac_status" >&5
19645 (exit $ac_status); }; }; then
19648 echo "$as_me: failed program was:" >&5
19649 cat conftest.$ac_ext >&5
19652 rm -f conftest.$ac_objext conftest.$ac_ext
19653 echo "$as_me:19653: result: $cf_result" >&5
19654 echo "${ECHO_T}$cf_result" >&6
19655 if test $cf_result = yes ; then
19657 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19659 cat >>confdefs.h <<EOF
19660 #define $cf_result 1
19665 cat >>confdefs.h <<EOF
19666 #define mbstate_t long
19673 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
19675 echo "$as_me:19675: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
19676 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
19677 cat >conftest.$ac_ext <<_ACEOF
19678 #line 19678 "configure"
19679 #include "confdefs.h"
19681 #ifndef _XOPEN_SOURCE_EXTENDED
19682 #define _XOPEN_SOURCE_EXTENDED
19684 #include <${cf_cv_ncurses_header:-curses.h}>
19695 rm -f conftest.$ac_objext
19696 if { (eval echo "$as_me:19696: \"$ac_compile\"") >&5
19697 (eval $ac_compile) 2>&5
19699 echo "$as_me:19699: \$? = $ac_status" >&5
19700 (exit $ac_status); } &&
19701 { ac_try='test -s conftest.$ac_objext'
19702 { (eval echo "$as_me:19702: \"$ac_try\"") >&5
19703 (eval $ac_try) 2>&5
19705 echo "$as_me:19705: \$? = $ac_status" >&5
19706 (exit $ac_status); }; }; then
19709 echo "$as_me: failed program was:" >&5
19710 cat conftest.$ac_ext >&5
19713 rm -f conftest.$ac_objext conftest.$ac_ext
19714 echo "$as_me:19714: result: $cf_result" >&5
19715 echo "${ECHO_T}$cf_result" >&6
19716 if test $cf_result = yes ; then
19718 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19720 cat >>confdefs.h <<EOF
19721 #define $cf_result 1
19726 cat >>confdefs.h <<EOF
19727 #define wchar_t long
19734 if test "$NCURSES_OK_WINT_T" = 0 ; then
19736 echo "$as_me:19736: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
19737 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
19738 cat >conftest.$ac_ext <<_ACEOF
19739 #line 19739 "configure"
19740 #include "confdefs.h"
19742 #ifndef _XOPEN_SOURCE_EXTENDED
19743 #define _XOPEN_SOURCE_EXTENDED
19745 #include <${cf_cv_ncurses_header:-curses.h}>
19756 rm -f conftest.$ac_objext
19757 if { (eval echo "$as_me:19757: \"$ac_compile\"") >&5
19758 (eval $ac_compile) 2>&5
19760 echo "$as_me:19760: \$? = $ac_status" >&5
19761 (exit $ac_status); } &&
19762 { ac_try='test -s conftest.$ac_objext'
19763 { (eval echo "$as_me:19763: \"$ac_try\"") >&5
19764 (eval $ac_try) 2>&5
19766 echo "$as_me:19766: \$? = $ac_status" >&5
19767 (exit $ac_status); }; }; then
19770 echo "$as_me: failed program was:" >&5
19771 cat conftest.$ac_ext >&5
19774 rm -f conftest.$ac_objext conftest.$ac_ext
19775 echo "$as_me:19775: result: $cf_result" >&5
19776 echo "${ECHO_T}$cf_result" >&6
19777 if test $cf_result = yes ; then
19779 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19781 cat >>confdefs.h <<EOF
19782 #define $cf_result 1
19787 cat >>confdefs.h <<EOF
19788 #define wint_t long
19804 echo "$as_me:19804: checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
19805 echo $ECHO_N "checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
19807 cat >conftest.$ac_ext <<_ACEOF
19808 #line 19808 "configure"
19809 #include "confdefs.h"
19811 #ifdef HAVE_XCURSES
19812 #include <xcurses.h>
19813 char * XCursesProgramName = "test";
19815 #include <${cf_cv_ncurses_header:-curses.h}>
19816 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
19817 #include <ncursesw/term.h>
19818 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
19819 #include <ncurses/term.h>
19820 #elif defined(HAVE_TERM_H)
19829 #if defined($cf_data) && ((defined(NCURSES_WRAPPED_VAR) && (NCURSES_VERSION_PATCH < 20200208)) || defined(NCURSES_BROKEN_LINKER) || defined(NCURSES_REENTRANT))
19830 const void *foo = (const void *)($cf_data);
19832 const void *foo = &($cf_data);
19834 fprintf(stderr, "testing linkage of $cf_data:%p\n", (const void *)foo);
19840 rm -f conftest.$ac_objext
19841 if { (eval echo "$as_me:19841: \"$ac_compile\"") >&5
19842 (eval $ac_compile) 2>&5
19844 echo "$as_me:19844: \$? = $ac_status" >&5
19845 (exit $ac_status); } &&
19846 { ac_try='test -s conftest.$ac_objext'
19847 { (eval echo "$as_me:19847: \"$ac_try\"") >&5
19848 (eval $ac_try) 2>&5
19850 echo "$as_me:19850: \$? = $ac_status" >&5
19851 (exit $ac_status); }; }; then
19855 echo "$as_me: failed program was:" >&5
19856 cat conftest.$ac_ext >&5
19859 rm -f conftest.$ac_objext conftest.$ac_ext
19860 echo "$as_me:19860: result: $cf_result" >&5
19861 echo "${ECHO_T}$cf_result" >&6
19863 if test $cf_result = yes ; then
19865 cf_result=`echo "have_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19867 cat >>confdefs.h <<EOF
19868 #define $cf_result 1
19872 echo "$as_me:19872: checking for data $cf_data in library" >&5
19873 echo $ECHO_N "checking for data $cf_data in library... $ECHO_C" >&6
19874 # BSD linkers insist on making weak linkage, but resolve at runtime.
19875 if test "$cross_compiling" = yes; then
19878 cat >conftest.$ac_ext <<_ACEOF
19879 #line 19879 "configure"
19880 #include "confdefs.h"
19882 #ifdef HAVE_XCURSES
19883 #include <xcurses.h>
19884 char * XCursesProgramName = "test";
19886 #include <${cf_cv_ncurses_header:-curses.h}>
19887 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
19888 #include <ncursesw/term.h>
19889 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
19890 #include <ncurses/term.h>
19891 #elif defined(HAVE_TERM_H)
19896 extern char $cf_data;
19903 #if defined($cf_data) && ((defined(NCURSES_WRAPPED_VAR) && (NCURSES_VERSION_PATCH < 20200208)) || defined(NCURSES_BROKEN_LINKER) || defined(NCURSES_REENTRANT))
19904 const void *foo = (const void *)($cf_data);
19906 const void *foo = &($cf_data);
19908 fprintf(stderr, "testing linkage of $cf_data:%p\n", (const void *)foo);
19910 ${cf_cv_main_return:-return}(foo == 0);
19917 rm -f conftest.$ac_objext conftest$ac_exeext
19918 if { (eval echo "$as_me:19918: \"$ac_link\"") >&5
19919 (eval $ac_link) 2>&5
19921 echo "$as_me:19921: \$? = $ac_status" >&5
19922 (exit $ac_status); } &&
19923 { ac_try='test -s conftest$ac_exeext'
19924 { (eval echo "$as_me:19924: \"$ac_try\"") >&5
19925 (eval $ac_try) 2>&5
19927 echo "$as_me:19927: \$? = $ac_status" >&5
19928 (exit $ac_status); }; }; then
19931 echo "$as_me: failed program was:" >&5
19932 cat conftest.$ac_ext >&5
19935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19938 cat >conftest.$ac_ext <<_ACEOF
19939 #line 19939 "configure"
19940 #include "confdefs.h"
19942 #ifdef HAVE_XCURSES
19943 #include <xcurses.h>
19944 char * XCursesProgramName = "test";
19946 #include <${cf_cv_ncurses_header:-curses.h}>
19947 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
19948 #include <ncursesw/term.h>
19949 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
19950 #include <ncurses/term.h>
19951 #elif defined(HAVE_TERM_H)
19956 extern char $cf_data;
19960 #if defined($cf_data) && ((defined(NCURSES_WRAPPED_VAR) && (NCURSES_VERSION_PATCH < 20200208)) || defined(NCURSES_BROKEN_LINKER) || defined(NCURSES_REENTRANT))
19961 const void *foo = (const void *)($cf_data);
19963 const void *foo = &($cf_data);
19965 fprintf(stderr, "testing linkage of $cf_data:%p\n", (const void *)foo);
19967 ${cf_cv_main_return:-return}(foo == 0);
19970 rm -f conftest$ac_exeext
19971 if { (eval echo "$as_me:19971: \"$ac_link\"") >&5
19972 (eval $ac_link) 2>&5
19974 echo "$as_me:19974: \$? = $ac_status" >&5
19975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19976 { (eval echo "$as_me:19976: \"$ac_try\"") >&5
19977 (eval $ac_try) 2>&5
19979 echo "$as_me:19979: \$? = $ac_status" >&5
19980 (exit $ac_status); }; }; then
19984 echo "$as_me: program exited with status $ac_status" >&5
19985 echo "$as_me: failed program was:" >&5
19986 cat conftest.$ac_ext >&5
19989 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19991 echo "$as_me:19991: result: $cf_result" >&5
19992 echo "${ECHO_T}$cf_result" >&6
19993 if test $cf_result = yes ; then
19995 cf_result=`echo "decl_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19997 cat >>confdefs.h <<EOF
19998 #define $cf_result 1
20001 # do not exit loop here, since we prefer system's declarations
20006 if ( test "$GCC" = yes || test "$GXX" = yes )
20008 echo "$as_me:20008: checking if you want to turn on gcc warnings" >&5
20009 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
20011 # Check whether --enable-warnings or --disable-warnings was given.
20012 if test "${enable_warnings+set}" = set; then
20013 enableval="$enable_warnings"
20014 test "$enableval" != yes && enableval=no
20015 if test "$enableval" != "no" ; then
20025 echo "$as_me:20025: result: $with_warnings" >&5
20026 echo "${ECHO_T}$with_warnings" >&6
20027 if test "$with_warnings" = "yes"
20030 if test "$GCC" = yes
20032 cat > conftest.i <<EOF
20034 #define GCC_PRINTF 0
20037 #define GCC_SCANF 0
20039 #ifndef GCC_NORETURN
20040 #define GCC_NORETURN /* nothing */
20043 #define GCC_UNUSED /* nothing */
20046 if test "$GCC" = yes
20048 { echo "$as_me:20048: checking for $CC __attribute__ directives..." >&5
20049 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
20050 cat > conftest.$ac_ext <<EOF
20051 #line 20051 "${as_me:-configure}"
20052 #include "confdefs.h"
20053 #include "conftest.h"
20054 #include "conftest.i"
20056 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
20058 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
20061 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
20063 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
20065 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
20066 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
20067 extern void foo(void) GCC_NORETURN;
20068 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
20070 cf_printf_attribute=no
20071 cf_scanf_attribute=no
20072 for cf_attribute in scanf printf unused noreturn
20075 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20077 cf_directive="__attribute__(($cf_attribute))"
20078 echo "checking for $CC $cf_directive" 1>&5
20080 case $cf_attribute in
20082 cf_printf_attribute=yes
20083 cat >conftest.h <<EOF
20084 #define GCC_$cf_ATTRIBUTE 1
20088 cf_scanf_attribute=yes
20089 cat >conftest.h <<EOF
20090 #define GCC_$cf_ATTRIBUTE 1
20094 cat >conftest.h <<EOF
20095 #define GCC_$cf_ATTRIBUTE $cf_directive
20100 if { (eval echo "$as_me:20100: \"$ac_compile\"") >&5
20101 (eval $ac_compile) 2>&5
20103 echo "$as_me:20103: \$? = $ac_status" >&5
20104 (exit $ac_status); }; then
20105 test -n "$verbose" && echo "$as_me:20105: result: ... $cf_attribute" >&5
20106 echo "${ECHO_T}... $cf_attribute" >&6
20107 cat conftest.h >>confdefs.h
20108 case $cf_attribute in
20111 cat >>confdefs.h <<EOF
20112 #define GCC_NORETURN $cf_directive
20117 cf_value='/* nothing */'
20118 if test "$cf_printf_attribute" != no ; then
20119 cf_value='__attribute__((format(printf,fmt,var)))'
20121 cat >>confdefs.h <<\EOF
20122 #define GCC_PRINTF 1
20127 cat >>confdefs.h <<EOF
20128 #define GCC_PRINTFLIKE(fmt,var) $cf_value
20133 cf_value='/* nothing */'
20134 if test "$cf_scanf_attribute" != no ; then
20135 cf_value='__attribute__((format(scanf,fmt,var)))'
20137 cat >>confdefs.h <<\EOF
20138 #define GCC_SCANF 1
20143 cat >>confdefs.h <<EOF
20144 #define GCC_SCANFLIKE(fmt,var) $cf_value
20150 cat >>confdefs.h <<EOF
20151 #define GCC_UNUSED $cf_directive
20159 fgrep define conftest.i >>confdefs.h
20164 if test "x$have_x" = xyes; then
20166 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
20167 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
20168 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
20169 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
20170 for cf_X_CFLAGS in $X_CFLAGS
20172 case "x$cf_X_CFLAGS" in
20174 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
20177 CFLAGS="$CFLAGS $cf_X_CFLAGS"
20182 cat >conftest.$ac_ext <<_ACEOF
20183 #line 20183 "configure"
20184 #include "confdefs.h"
20186 #include <stdlib.h>
20187 #include <X11/Intrinsic.h>
20192 String foo = malloc(1)
20197 rm -f conftest.$ac_objext
20198 if { (eval echo "$as_me:20198: \"$ac_compile\"") >&5
20199 (eval $ac_compile) 2>&5
20201 echo "$as_me:20201: \$? = $ac_status" >&5
20202 (exit $ac_status); } &&
20203 { ac_try='test -s conftest.$ac_objext'
20204 { (eval echo "$as_me:20204: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20207 echo "$as_me:20207: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20210 echo "$as_me:20210: checking for X11/Xt const-feature" >&5
20211 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
20212 if test "${cf_cv_const_x_string+set}" = set; then
20213 echo $ECHO_N "(cached) $ECHO_C" >&6
20216 cat >conftest.$ac_ext <<_ACEOF
20217 #line 20217 "configure"
20218 #include "confdefs.h"
20220 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
20221 #undef XTSTRINGDEFINES /* X11R5 and later */
20222 #include <stdlib.h>
20223 #include <X11/Intrinsic.h>
20228 String foo = malloc(1); *foo = 0
20233 rm -f conftest.$ac_objext
20234 if { (eval echo "$as_me:20234: \"$ac_compile\"") >&5
20235 (eval $ac_compile) 2>&5
20237 echo "$as_me:20237: \$? = $ac_status" >&5
20238 (exit $ac_status); } &&
20239 { ac_try='test -s conftest.$ac_objext'
20240 { (eval echo "$as_me:20240: \"$ac_try\"") >&5
20241 (eval $ac_try) 2>&5
20243 echo "$as_me:20243: \$? = $ac_status" >&5
20244 (exit $ac_status); }; }; then
20246 cf_cv_const_x_string=no
20249 echo "$as_me: failed program was:" >&5
20250 cat conftest.$ac_ext >&5
20252 cf_cv_const_x_string=yes
20255 rm -f conftest.$ac_objext conftest.$ac_ext
20258 echo "$as_me:20258: result: $cf_cv_const_x_string" >&5
20259 echo "${ECHO_T}$cf_cv_const_x_string" >&6
20261 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
20262 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
20263 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
20265 case $cf_cv_const_x_string in
20268 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20269 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
20274 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20275 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
20281 echo "$as_me: failed program was:" >&5
20282 cat conftest.$ac_ext >&5
20284 rm -f conftest.$ac_objext conftest.$ac_ext
20286 cat > conftest.$ac_ext <<EOF
20287 #line 20287 "${as_me:-configure}"
20288 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
20290 if test "$INTEL_COMPILER" = yes
20292 # The "-wdXXX" options suppress warnings:
20293 # remark #1419: external declaration in primary source file
20294 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
20295 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
20296 # remark #193: zero used for undefined preprocessing identifier
20297 # remark #593: variable "curs_sb_left_arrow" was set but never used
20298 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
20299 # remark #869: parameter "tw" was never referenced
20300 # remark #981: operands are evaluated in unspecified order
20301 # warning #279: controlling expression is constant
20303 { echo "$as_me:20303: checking for $CC warning options..." >&5
20304 echo "$as_me: checking for $CC warning options..." >&6;}
20305 cf_save_CFLAGS="$CFLAGS"
20306 EXTRA_CFLAGS="-Wall"
20318 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
20319 if { (eval echo "$as_me:20319: \"$ac_compile\"") >&5
20320 (eval $ac_compile) 2>&5
20322 echo "$as_me:20322: \$? = $ac_status" >&5
20323 (exit $ac_status); }; then
20324 test -n "$verbose" && echo "$as_me:20324: result: ... -$cf_opt" >&5
20325 echo "${ECHO_T}... -$cf_opt" >&6
20326 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
20329 CFLAGS="$cf_save_CFLAGS"
20330 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
20332 { echo "$as_me:20332: checking for $CC warning options..." >&5
20333 echo "$as_me: checking for $CC warning options..." >&6;}
20334 cf_save_CFLAGS="$CFLAGS"
20337 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
20338 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
20339 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
20340 for cf_opt in W Wall \
20341 Wbad-function-cast \
20344 Wdeclaration-after-statement \
20347 Wmissing-declarations \
20348 Wmissing-prototypes \
20352 Wstrict-prototypes \
20353 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas
20355 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
20356 if { (eval echo "$as_me:20356: \"$ac_compile\"") >&5
20357 (eval $ac_compile) 2>&5
20359 echo "$as_me:20359: \$? = $ac_status" >&5
20360 (exit $ac_status); }; then
20361 test -n "$verbose" && echo "$as_me:20361: result: ... -$cf_opt" >&5
20362 echo "${ECHO_T}... -$cf_opt" >&6
20365 case $GCC_VERSION in
20367 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
20369 echo "${as_me:-configure}:20369: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
20375 case $GCC_VERSION in
20377 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
20379 echo "${as_me:-configure}:20379: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
20385 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
20388 CFLAGS="$cf_save_CFLAGS"
20395 echo "$as_me:20395: checking if you want to use dmalloc for testing" >&5
20396 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
20398 # Check whether --with-dmalloc or --without-dmalloc was given.
20399 if test "${with_dmalloc+set}" = set; then
20400 withval="$with_dmalloc"
20402 cat >>confdefs.h <<EOF
20403 #define USE_DMALLOC 1
20406 : ${with_cflags:=-g}
20407 : ${with_no_leaks:=yes}
20412 echo "$as_me:20412: result: ${with_dmalloc:-no}" >&5
20413 echo "${ECHO_T}${with_dmalloc:-no}" >&6
20415 case .$with_cflags in
20425 cf_new_extra_cppflags=
20427 for cf_add_cflags in -g
20429 case $cf_fix_cppflags in
20431 case $cf_add_cflags in
20432 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20433 case $cf_add_cflags in
20435 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20437 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20438 && test -z "${cf_tst_cflags}" \
20439 && cf_fix_cppflags=yes
20441 if test $cf_fix_cppflags = yes ; then
20443 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20444 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20447 elif test "${cf_tst_cflags}" = "\"'" ; then
20449 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20450 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20456 case "$CPPFLAGS" in
20460 case $cf_add_cflags in
20462 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20464 CPPFLAGS=`echo "$CPPFLAGS" | \
20465 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20466 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20471 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20472 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20479 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20480 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20487 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20488 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20490 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20492 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20493 && test -z "${cf_tst_cflags}" \
20494 && cf_fix_cppflags=no
20499 if test -n "$cf_new_cflags" ; then
20501 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20502 CFLAGS="${CFLAGS}$cf_new_cflags"
20506 if test -n "$cf_new_cppflags" ; then
20508 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20509 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20513 if test -n "$cf_new_extra_cppflags" ; then
20515 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20516 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20525 if test "$with_dmalloc" = yes ; then
20526 echo "$as_me:20526: checking for dmalloc.h" >&5
20527 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
20528 if test "${ac_cv_header_dmalloc_h+set}" = set; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 cat >conftest.$ac_ext <<_ACEOF
20532 #line 20532 "configure"
20533 #include "confdefs.h"
20534 #include <dmalloc.h>
20536 if { (eval echo "$as_me:20536: \"$ac_cpp conftest.$ac_ext\"") >&5
20537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20539 egrep -v '^ *\+' conftest.er1 >conftest.err
20541 cat conftest.err >&5
20542 echo "$as_me:20542: \$? = $ac_status" >&5
20543 (exit $ac_status); } >/dev/null; then
20544 if test -s conftest.err; then
20545 ac_cpp_err=$ac_c_preproc_warn_flag
20552 if test -z "$ac_cpp_err"; then
20553 ac_cv_header_dmalloc_h=yes
20555 echo "$as_me: failed program was:" >&5
20556 cat conftest.$ac_ext >&5
20557 ac_cv_header_dmalloc_h=no
20559 rm -f conftest.err conftest.$ac_ext
20561 echo "$as_me:20561: result: $ac_cv_header_dmalloc_h" >&5
20562 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
20563 if test $ac_cv_header_dmalloc_h = yes; then
20565 echo "$as_me:20565: checking for dmalloc_debug in -ldmalloc" >&5
20566 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
20567 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20570 ac_check_lib_save_LIBS=$LIBS
20571 LIBS="-ldmalloc $LIBS"
20572 cat >conftest.$ac_ext <<_ACEOF
20573 #line 20573 "configure"
20574 #include "confdefs.h"
20576 /* Override any gcc2 internal prototype to avoid an error. */
20580 /* We use char because int might match the return type of a gcc2
20581 builtin and then its argument prototype would still apply. */
20582 char dmalloc_debug ();
20591 rm -f conftest.$ac_objext conftest$ac_exeext
20592 if { (eval echo "$as_me:20592: \"$ac_link\"") >&5
20593 (eval $ac_link) 2>&5
20595 echo "$as_me:20595: \$? = $ac_status" >&5
20596 (exit $ac_status); } &&
20597 { ac_try='test -s conftest$ac_exeext'
20598 { (eval echo "$as_me:20598: \"$ac_try\"") >&5
20599 (eval $ac_try) 2>&5
20601 echo "$as_me:20601: \$? = $ac_status" >&5
20602 (exit $ac_status); }; }; then
20603 ac_cv_lib_dmalloc_dmalloc_debug=yes
20605 echo "$as_me: failed program was:" >&5
20606 cat conftest.$ac_ext >&5
20607 ac_cv_lib_dmalloc_dmalloc_debug=no
20609 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20610 LIBS=$ac_check_lib_save_LIBS
20612 echo "$as_me:20612: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
20613 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
20614 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
20615 cat >>confdefs.h <<EOF
20616 #define HAVE_LIBDMALLOC 1
20619 LIBS="-ldmalloc $LIBS"
20627 echo "$as_me:20627: checking if you want to use dbmalloc for testing" >&5
20628 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
20630 # Check whether --with-dbmalloc or --without-dbmalloc was given.
20631 if test "${with_dbmalloc+set}" = set; then
20632 withval="$with_dbmalloc"
20634 cat >>confdefs.h <<EOF
20635 #define USE_DBMALLOC 1
20638 : ${with_cflags:=-g}
20639 : ${with_no_leaks:=yes}
20644 echo "$as_me:20644: result: ${with_dbmalloc:-no}" >&5
20645 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
20647 case .$with_cflags in
20657 cf_new_extra_cppflags=
20659 for cf_add_cflags in -g
20661 case $cf_fix_cppflags in
20663 case $cf_add_cflags in
20664 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20665 case $cf_add_cflags in
20667 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20669 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20670 && test -z "${cf_tst_cflags}" \
20671 && cf_fix_cppflags=yes
20673 if test $cf_fix_cppflags = yes ; then
20675 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20676 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20679 elif test "${cf_tst_cflags}" = "\"'" ; then
20681 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20682 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20688 case "$CPPFLAGS" in
20692 case $cf_add_cflags in
20694 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20696 CPPFLAGS=`echo "$CPPFLAGS" | \
20697 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20698 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20703 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20704 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20711 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20712 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20719 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20720 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20722 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20724 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20725 && test -z "${cf_tst_cflags}" \
20726 && cf_fix_cppflags=no
20731 if test -n "$cf_new_cflags" ; then
20733 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20734 CFLAGS="${CFLAGS}$cf_new_cflags"
20738 if test -n "$cf_new_cppflags" ; then
20740 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20741 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20745 if test -n "$cf_new_extra_cppflags" ; then
20747 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20748 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20757 if test "$with_dbmalloc" = yes ; then
20758 echo "$as_me:20758: checking for dbmalloc.h" >&5
20759 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
20760 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
20761 echo $ECHO_N "(cached) $ECHO_C" >&6
20763 cat >conftest.$ac_ext <<_ACEOF
20764 #line 20764 "configure"
20765 #include "confdefs.h"
20766 #include <dbmalloc.h>
20768 if { (eval echo "$as_me:20768: \"$ac_cpp conftest.$ac_ext\"") >&5
20769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20771 egrep -v '^ *\+' conftest.er1 >conftest.err
20773 cat conftest.err >&5
20774 echo "$as_me:20774: \$? = $ac_status" >&5
20775 (exit $ac_status); } >/dev/null; then
20776 if test -s conftest.err; then
20777 ac_cpp_err=$ac_c_preproc_warn_flag
20784 if test -z "$ac_cpp_err"; then
20785 ac_cv_header_dbmalloc_h=yes
20787 echo "$as_me: failed program was:" >&5
20788 cat conftest.$ac_ext >&5
20789 ac_cv_header_dbmalloc_h=no
20791 rm -f conftest.err conftest.$ac_ext
20793 echo "$as_me:20793: result: $ac_cv_header_dbmalloc_h" >&5
20794 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
20795 if test $ac_cv_header_dbmalloc_h = yes; then
20797 echo "$as_me:20797: checking for debug_malloc in -ldbmalloc" >&5
20798 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
20799 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20802 ac_check_lib_save_LIBS=$LIBS
20803 LIBS="-ldbmalloc $LIBS"
20804 cat >conftest.$ac_ext <<_ACEOF
20805 #line 20805 "configure"
20806 #include "confdefs.h"
20808 /* Override any gcc2 internal prototype to avoid an error. */
20812 /* We use char because int might match the return type of a gcc2
20813 builtin and then its argument prototype would still apply. */
20814 char debug_malloc ();
20823 rm -f conftest.$ac_objext conftest$ac_exeext
20824 if { (eval echo "$as_me:20824: \"$ac_link\"") >&5
20825 (eval $ac_link) 2>&5
20827 echo "$as_me:20827: \$? = $ac_status" >&5
20828 (exit $ac_status); } &&
20829 { ac_try='test -s conftest$ac_exeext'
20830 { (eval echo "$as_me:20830: \"$ac_try\"") >&5
20831 (eval $ac_try) 2>&5
20833 echo "$as_me:20833: \$? = $ac_status" >&5
20834 (exit $ac_status); }; }; then
20835 ac_cv_lib_dbmalloc_debug_malloc=yes
20837 echo "$as_me: failed program was:" >&5
20838 cat conftest.$ac_ext >&5
20839 ac_cv_lib_dbmalloc_debug_malloc=no
20841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20842 LIBS=$ac_check_lib_save_LIBS
20844 echo "$as_me:20844: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
20845 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
20846 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
20847 cat >>confdefs.h <<EOF
20848 #define HAVE_LIBDBMALLOC 1
20851 LIBS="-ldbmalloc $LIBS"
20859 echo "$as_me:20859: checking if you want to use valgrind for testing" >&5
20860 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
20862 # Check whether --with-valgrind or --without-valgrind was given.
20863 if test "${with_valgrind+set}" = set; then
20864 withval="$with_valgrind"
20866 cat >>confdefs.h <<EOF
20867 #define USE_VALGRIND 1
20870 : ${with_cflags:=-g}
20871 : ${with_no_leaks:=yes}
20876 echo "$as_me:20876: result: ${with_valgrind:-no}" >&5
20877 echo "${ECHO_T}${with_valgrind:-no}" >&6
20879 case .$with_cflags in
20889 cf_new_extra_cppflags=
20891 for cf_add_cflags in -g
20893 case $cf_fix_cppflags in
20895 case $cf_add_cflags in
20896 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20897 case $cf_add_cflags in
20899 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20901 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20902 && test -z "${cf_tst_cflags}" \
20903 && cf_fix_cppflags=yes
20905 if test $cf_fix_cppflags = yes ; then
20907 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20908 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20911 elif test "${cf_tst_cflags}" = "\"'" ; then
20913 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20914 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20920 case "$CPPFLAGS" in
20924 case $cf_add_cflags in
20926 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20928 CPPFLAGS=`echo "$CPPFLAGS" | \
20929 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20930 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20935 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20936 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20943 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20944 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20951 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20952 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20954 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20956 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20957 && test -z "${cf_tst_cflags}" \
20958 && cf_fix_cppflags=no
20963 if test -n "$cf_new_cflags" ; then
20965 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20966 CFLAGS="${CFLAGS}$cf_new_cflags"
20970 if test -n "$cf_new_cppflags" ; then
20972 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20973 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20977 if test -n "$cf_new_extra_cppflags" ; then
20979 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20980 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20989 echo "$as_me:20989: checking if you want to perform memory-leak testing" >&5
20990 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
20992 # Check whether --enable-leaks or --disable-leaks was given.
20993 if test "${enable_leaks+set}" = set; then
20994 enableval="$enable_leaks"
20995 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
20997 : ${with_no_leaks:=no}
20999 echo "$as_me:20999: result: $with_no_leaks" >&5
21000 echo "${ECHO_T}$with_no_leaks" >&6
21002 if test "$with_no_leaks" = yes ; then
21004 cat >>confdefs.h <<\EOF
21008 cat >>confdefs.h <<\EOF
21009 #define YY_NO_LEAKS 1
21015 if test "x$cf_cv_enable_rpath" != xno
21017 echo "$as_me:21017: checking for an rpath option" >&5
21018 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
21019 case $cf_cv_system_name in
21021 if test "$GCC" = yes; then
21022 LD_RPATH_OPT="-Wl,-rpath,"
21024 LD_RPATH_OPT="-rpath "
21027 (linux*|gnu*|k*bsd*-gnu|freebsd*)
21028 LD_RPATH_OPT="-Wl,-rpath,"
21030 (openbsd[2-9].*|mirbsd*)
21031 LD_RPATH_OPT="-Wl,-rpath,"
21034 LD_RPATH_OPT="-rpath "
21037 LD_RPATH_OPT="-Wl,-rpath,"
21040 LD_RPATH_OPT="-rpath "
21048 echo "$as_me:21048: result: $LD_RPATH_OPT" >&5
21049 echo "${ECHO_T}$LD_RPATH_OPT" >&6
21051 case "x$LD_RPATH_OPT" in
21053 echo "$as_me:21053: checking if we need a space after rpath option" >&5
21054 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
21055 cf_save_LIBS="$LIBS"
21057 cf_add_libs="$LIBS"
21060 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21061 # filter duplicates
21062 for cf_add_1lib in $cf_add_0lib; do
21063 for cf_add_2lib in $cf_add_libs; do
21064 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21069 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21071 LIBS="$cf_add_libs"
21073 cat >conftest.$ac_ext <<_ACEOF
21074 #line 21074 "configure"
21075 #include "confdefs.h"
21085 rm -f conftest.$ac_objext conftest$ac_exeext
21086 if { (eval echo "$as_me:21086: \"$ac_link\"") >&5
21087 (eval $ac_link) 2>&5
21089 echo "$as_me:21089: \$? = $ac_status" >&5
21090 (exit $ac_status); } &&
21091 { ac_try='test -s conftest$ac_exeext'
21092 { (eval echo "$as_me:21092: \"$ac_try\"") >&5
21093 (eval $ac_try) 2>&5
21095 echo "$as_me:21095: \$? = $ac_status" >&5
21096 (exit $ac_status); }; }; then
21099 echo "$as_me: failed program was:" >&5
21100 cat conftest.$ac_ext >&5
21103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21104 LIBS="$cf_save_LIBS"
21105 echo "$as_me:21105: result: $cf_rpath_space" >&5
21106 echo "${ECHO_T}$cf_rpath_space" >&6
21107 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
21112 echo "$as_me:21112: checking if rpath-hack should be disabled" >&5
21113 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
21115 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
21116 if test "${enable_rpath_hack+set}" = set; then
21117 enableval="$enable_rpath_hack"
21118 test "$enableval" != no && enableval=yes
21119 if test "$enableval" != "yes" ; then
21120 cf_disable_rpath_hack=yes
21122 cf_disable_rpath_hack=no
21126 cf_disable_rpath_hack=no
21129 echo "$as_me:21129: result: $cf_disable_rpath_hack" >&5
21130 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
21131 if test "$cf_disable_rpath_hack" = no ; then
21133 echo "$as_me:21133: checking for updated LDFLAGS" >&5
21134 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
21135 if test -n "$LD_RPATH_OPT" ; then
21136 echo "$as_me:21136: result: maybe" >&5
21137 echo "${ECHO_T}maybe" >&6
21141 # Extract the first word of "$ac_prog", so it can be a program name with args.
21142 set dummy $ac_prog; ac_word=$2
21143 echo "$as_me:21143: checking for $ac_word" >&5
21144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21145 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
21146 echo $ECHO_N "(cached) $ECHO_C" >&6
21148 if test -n "$cf_ldd_prog"; then
21149 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
21151 ac_save_IFS=$IFS; IFS=$ac_path_separator
21153 for ac_dir in $ac_dummy; do
21155 test -z "$ac_dir" && ac_dir=.
21156 $as_executable_p "$ac_dir/$ac_word" || continue
21157 ac_cv_prog_cf_ldd_prog="$ac_prog"
21158 echo "$as_me:21158: found $ac_dir/$ac_word" >&5
21164 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
21165 if test -n "$cf_ldd_prog"; then
21166 echo "$as_me:21166: result: $cf_ldd_prog" >&5
21167 echo "${ECHO_T}$cf_ldd_prog" >&6
21169 echo "$as_me:21169: result: no" >&5
21170 echo "${ECHO_T}no" >&6
21173 test -n "$cf_ldd_prog" && break
21175 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
21177 cf_rpath_list="/usr/lib /lib"
21178 if test "$cf_ldd_prog" != no
21182 cat >conftest.$ac_ext <<_ACEOF
21183 #line 21183 "configure"
21184 #include "confdefs.h"
21194 rm -f conftest.$ac_objext conftest$ac_exeext
21195 if { (eval echo "$as_me:21195: \"$ac_link\"") >&5
21196 (eval $ac_link) 2>&5
21198 echo "$as_me:21198: \$? = $ac_status" >&5
21199 (exit $ac_status); } &&
21200 { ac_try='test -s conftest$ac_exeext'
21201 { (eval echo "$as_me:21201: \"$ac_try\"") >&5
21202 (eval $ac_try) 2>&5
21204 echo "$as_me:21204: \$? = $ac_status" >&5
21205 (exit $ac_status); }; }; then
21206 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
21207 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
21209 echo "$as_me: failed program was:" >&5
21210 cat conftest.$ac_ext >&5
21212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21214 # If we passed the link-test, but get a "not found" on a given library,
21215 # this could be due to inept reconfiguration of gcc to make it only
21216 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
21217 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
21218 # /usr/local libraries.
21219 if test -n "$cf_rpath_oops"
21221 for cf_rpath_src in $cf_rpath_oops
21223 for cf_rpath_dir in \
21228 if test -f $cf_rpath_dir/lib/$cf_rpath_src
21230 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
21232 echo "${as_me:-configure}:21232: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
21234 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
21242 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
21244 echo "${as_me:-configure}:21244: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
21246 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
21248 echo "${as_me:-configure}:21248: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
21251 for cf_rpath_src in $LDFLAGS
21253 case $cf_rpath_src in
21256 # check if this refers to a directory which we will ignore
21258 if test -n "$cf_rpath_list"
21260 for cf_rpath_item in $cf_rpath_list
21262 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
21270 if test "$cf_rpath_skip" = no
21272 # transform the option
21273 if test "$LD_RPATH_OPT" = "-R " ; then
21274 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
21276 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
21279 # if we have not already added this, add it now
21280 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
21281 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
21283 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
21285 echo "${as_me:-configure}:21285: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
21287 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
21292 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
21294 LDFLAGS=$cf_rpath_dst
21296 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
21298 echo "${as_me:-configure}:21298: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
21300 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
21302 echo "${as_me:-configure}:21302: testing ...checking LIBS $LIBS ..." 1>&5
21305 for cf_rpath_src in $LIBS
21307 case $cf_rpath_src in
21310 # check if this refers to a directory which we will ignore
21312 if test -n "$cf_rpath_list"
21314 for cf_rpath_item in $cf_rpath_list
21316 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
21324 if test "$cf_rpath_skip" = no
21326 # transform the option
21327 if test "$LD_RPATH_OPT" = "-R " ; then
21328 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
21330 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
21333 # if we have not already added this, add it now
21334 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
21335 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
21337 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
21339 echo "${as_me:-configure}:21339: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
21341 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
21346 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
21350 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
21352 echo "${as_me:-configure}:21352: testing ...checked LIBS $LIBS ..." 1>&5
21354 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
21356 echo "${as_me:-configure}:21356: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
21359 echo "$as_me:21359: result: no" >&5
21360 echo "${ECHO_T}no" >&6
21368 ac_config_files="$ac_config_files Makefile"
21369 ac_config_commands="$ac_config_commands default"
21370 cat >confcache <<\_ACEOF
21371 # This file is a shell script that caches the results of configure
21372 # tests run on this system so they can be shared between configure
21373 # scripts and configure runs, see configure's option --config-cache.
21374 # It is not useful on other systems. If it contains results you don't
21375 # want to keep, you may remove or edit it.
21377 # config.status only pays attention to the cache file if you give it
21378 # the --recheck option to rerun configure.
21380 # `ac_cv_env_foo' variables (set or unset) will be overriden when
21381 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21382 # following values.
21386 # The following way of writing the cache mishandles newlines in values,
21387 # but we know of no workaround that is simple, portable, and efficient.
21388 # So, don't put newlines in cache variables' values.
21389 # Ultrix sh set writes to stderr and can't be redirected directly,
21390 # and sets the high bit in the cache file unless we assign to the vars.
21393 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21395 # `set' does not quote correctly, so add quotes (double-quote
21396 # substitution turns \\\\ into \\, and sed turns \\ into \).
21399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21402 # `set' quotes correctly as required by POSIX, so do not add quotes.
21404 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21411 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21413 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21415 if cmp -s $cache_file confcache; then :; else
21416 if test -w $cache_file; then
21417 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21418 cat confcache >$cache_file
21420 echo "not updating unwritable cache $cache_file"
21425 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21426 # Let make expand exec_prefix.
21427 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21429 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21430 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21431 # trailing colons and then remove the whole line if VPATH becomes empty
21432 # (actually we leave an empty line to preserve line numbers).
21433 if test "x$srcdir" = x.; then
21434 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21435 s/:*\$(srcdir):*/:/;
21436 s/:*\${srcdir}:*/:/;
21438 s/^\([^=]*=[ ]*\):*/\1/;
21444 DEFS=-DHAVE_CONFIG_H
21446 : ${CONFIG_STATUS=./config.status}
21447 ac_clean_files_save=$ac_clean_files
21448 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21449 { echo "$as_me:21449: creating $CONFIG_STATUS" >&5
21450 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21451 cat >$CONFIG_STATUS <<_ACEOF
21453 # Generated automatically by configure.
21454 # Run this file to recreate the current configuration.
21455 # Compiler output produced by configure, useful for debugging
21456 # configure, is in config.log if it exists.
21459 SHELL=\${CONFIG_SHELL-$SHELL}
21460 ac_cs_invocation="\$0 \$@"
21464 cat >>$CONFIG_STATUS <<\_ACEOF
21465 # Be Bourne compatible
21466 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21469 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21473 # Name of the executable.
21474 as_me=`echo "$0" |sed 's,.*[\\/],,'`
21476 if expr a : '\(a\)' >/dev/null 2>&1; then
21482 rm -f conf$$ conf$$.exe conf$$.file
21484 if ln -s conf$$.file conf$$ 2>/dev/null; then
21485 # We could just check for DJGPP; but this test a) works b) is more generic
21486 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21487 if test -f conf$$.exe; then
21488 # Don't use ln at all; we don't have any links
21493 elif ln conf$$.file conf$$ 2>/dev/null; then
21498 rm -f conf$$ conf$$.exe conf$$.file
21500 as_executable_p="test -f"
21502 # Support unset when possible.
21503 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21510 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
21511 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
21512 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
21513 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
21514 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
21515 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
21516 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
21517 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
21520 # We need space, tab and new line, in precisely that order.
21526 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
21532 # Files that config.status was made for.
21533 if test -n "$ac_config_files"; then
21534 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21537 if test -n "$ac_config_headers"; then
21538 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21541 if test -n "$ac_config_links"; then
21542 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21545 if test -n "$ac_config_commands"; then
21546 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21549 cat >>$CONFIG_STATUS <<\EOF
21552 \`$as_me' instantiates files from templates according to the
21553 current configuration.
21555 Usage: $0 [OPTIONS] [FILE]...
21557 -h, --help print this help, then exit
21558 -V, --version print version number, then exit
21559 -d, --debug don't remove temporary files
21560 --recheck update $as_me by reconfiguring in the same conditions
21561 --file=FILE[:TEMPLATE]
21562 instantiate the configuration file FILE
21563 --header=FILE[:TEMPLATE]
21564 instantiate the configuration header FILE
21566 Configuration files:
21569 Configuration headers:
21572 Configuration commands:
21575 Report bugs to <dickey@invisible-island.net>."
21578 cat >>$CONFIG_STATUS <<EOF
21581 configured by $0, generated by GNU Autoconf 2.52.20200111,
21582 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21584 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
21585 Free Software Foundation, Inc.
21586 This config.status script is free software; the Free Software Foundation
21587 gives unlimited permission to copy, distribute and modify it."
21592 cat >>$CONFIG_STATUS <<\EOF
21593 # If no file are specified by the user, then we need to provide default
21594 # value. By we need to know if files were specified by the user.
21600 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21601 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21603 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
21607 *) # This is not an option, so the user has probably given explicit
21609 ac_need_defaults=false;;
21613 # Handling of the options.
21615 cat >>$CONFIG_STATUS <<EOF
21616 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21617 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
21618 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
21620 cat >>$CONFIG_STATUS <<\EOF
21621 --version | --vers* | -V )
21622 echo "$ac_cs_version"; exit 0 ;;
21624 # Conflict between --help and --header
21625 { { echo "$as_me:21625: error: ambiguous option: $1
21626 Try \`$0 --help' for more information." >&5
21627 echo "$as_me: error: ambiguous option: $1
21628 Try \`$0 --help' for more information." >&2;}
21629 { (exit 1); exit 1; }; };;
21630 --help | --hel | -h )
21631 echo "$ac_cs_usage"; exit 0 ;;
21632 --debug | --d* | -d )
21634 --file | --fil | --fi | --f )
21636 CONFIG_FILES="$CONFIG_FILES $1"
21637 ac_need_defaults=false;;
21638 --header | --heade | --head | --hea )
21640 CONFIG_HEADERS="$CONFIG_HEADERS $1"
21641 ac_need_defaults=false;;
21643 # This is an error.
21644 -*) { { echo "$as_me:21644: error: unrecognized option: $1
21645 Try \`$0 --help' for more information." >&5
21646 echo "$as_me: error: unrecognized option: $1
21647 Try \`$0 --help' for more information." >&2;}
21648 { (exit 1); exit 1; }; } ;;
21650 *) ac_config_targets="$ac_config_targets $1" ;;
21659 ## ----------------------- ##
21660 ## Running config.status. ##
21661 ## ----------------------- ##
21663 This file was extended by $as_me 2.52.20200111, executed with
21664 CONFIG_FILES = $CONFIG_FILES
21665 CONFIG_HEADERS = $CONFIG_HEADERS
21666 CONFIG_LINKS = $CONFIG_LINKS
21667 CONFIG_COMMANDS = $CONFIG_COMMANDS
21668 > $ac_cs_invocation
21669 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21674 cat >>$CONFIG_STATUS <<EOF
21676 # INIT-COMMANDS section.
21686 cat >>$CONFIG_STATUS <<\EOF
21687 for ac_config_target in $ac_config_targets
21689 case "$ac_config_target" in
21690 # Handling of arguments.
21691 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21692 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21693 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
21694 *) { { echo "$as_me:21694: error: invalid argument: $ac_config_target" >&5
21695 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21696 { (exit 1); exit 1; }; };;
21700 # If the user did not use the arguments to specify the items to instantiate,
21701 # then the envvar interface is used. Set only those that are not.
21702 # We use the long form for the default assignment because of an extremely
21703 # bizarre bug on SunOS 4.1.3.
21704 if $ac_need_defaults; then
21705 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21706 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21707 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21710 # Create a temporary directory, and hook for its removal unless debugging.
21713 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21714 trap '{ (exit 1); exit 1; }' 1 2 13 15
21717 # Create a (secure) tmp directory for tmp files.
21720 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
21721 test -n "$tmp" && test -d "$tmp"
21724 tmp=$TMPDIR/cs$$-$RANDOM
21725 (umask 077 && mkdir $tmp)
21728 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
21729 { (exit 1); exit 1; }
21734 cat >>$CONFIG_STATUS <<EOF
21737 # CONFIG_FILES section.
21740 # No need to generate the scripts if there are no CONFIG_FILES.
21741 # This happens for instance when ./config.status config.h
21742 if test -n "\$CONFIG_FILES"; then
21743 # Protect against being on the right side of a sed subst in config.status.
21744 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21745 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21746 s,@SHELL@,$SHELL,;t t
21747 s,@exec_prefix@,$exec_prefix,;t t
21748 s,@prefix@,$prefix,;t t
21749 s,@program_transform_name@,$program_transform_name,;t t
21750 s,@bindir@,$bindir,;t t
21751 s,@sbindir@,$sbindir,;t t
21752 s,@libexecdir@,$libexecdir,;t t
21753 s,@datarootdir@,$datarootdir,;t t
21754 s,@datadir@,$datadir,;t t
21755 s,@sysconfdir@,$sysconfdir,;t t
21756 s,@sharedstatedir@,$sharedstatedir,;t t
21757 s,@localstatedir@,$localstatedir,;t t
21758 s,@runstatedir@,$runstatedir,;t t
21759 s,@libdir@,$libdir,;t t
21760 s,@includedir@,$includedir,;t t
21761 s,@oldincludedir@,$oldincludedir,;t t
21762 s,@infodir@,$infodir,;t t
21763 s,@mandir@,$mandir,;t t
21764 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21765 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21766 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21767 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21768 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21769 s,@build_alias@,$build_alias,;t t
21770 s,@host_alias@,$host_alias,;t t
21771 s,@target_alias@,$target_alias,;t t
21772 s,@ECHO_C@,$ECHO_C,;t t
21773 s,@ECHO_N@,$ECHO_N,;t t
21774 s,@ECHO_T@,$ECHO_T,;t t
21775 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21776 s,@DEFS@,$DEFS,;t t
21777 s,@LIBS@,$LIBS,;t t
21778 s,@build@,$build,;t t
21779 s,@build_cpu@,$build_cpu,;t t
21780 s,@build_vendor@,$build_vendor,;t t
21781 s,@build_os@,$build_os,;t t
21782 s,@host@,$host,;t t
21783 s,@host_cpu@,$host_cpu,;t t
21784 s,@host_vendor@,$host_vendor,;t t
21785 s,@host_os@,$host_os,;t t
21786 s,@SET_MAKE@,$SET_MAKE,;t t
21788 s,@CFLAGS@,$CFLAGS,;t t
21789 s,@LDFLAGS@,$LDFLAGS,;t t
21790 s,@CPPFLAGS@,$CPPFLAGS,;t t
21791 s,@ac_ct_CC@,$ac_ct_CC,;t t
21792 s,@EXEEXT@,$EXEEXT,;t t
21793 s,@OBJEXT@,$OBJEXT,;t t
21794 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
21797 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21798 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21799 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21800 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
21801 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
21802 s,@LINT@,$LINT,;t t
21803 s,@LINT_OPTS@,$LINT_OPTS,;t t
21804 s,@CTAGS@,$CTAGS,;t t
21805 s,@ETAGS@,$ETAGS,;t t
21806 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
21807 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
21808 s,@MATH_LIB@,$MATH_LIB,;t t
21809 s,@top_builddir@,$top_builddir,;t t
21810 s,@CC_G_OPT@,$CC_G_OPT,;t t
21811 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
21812 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
21813 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
21814 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
21816 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
21817 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
21818 s,@LD_MODEL@,$LD_MODEL,;t t
21819 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
21820 s,@LIBTOOL@,$LIBTOOL,;t t
21821 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
21822 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
21823 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
21824 s,@LIB_LINK@,$LIB_LINK,;t t
21825 s,@LINK_TESTS@,$LINK_TESTS,;t t
21826 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21827 s,@PACKAGE@,$PACKAGE,;t t
21828 s,@PTHREAD@,$PTHREAD,;t t
21829 s,@TEST_ARGS@,$TEST_ARGS,;t t
21830 s,@TEST_DEPS@,$TEST_DEPS,;t t
21831 s,@TEST_LIBS@,$TEST_LIBS,;t t
21832 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
21833 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
21834 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
21835 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
21836 s,@includesubdir@,$includesubdir,;t t
21837 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21838 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21839 s,@ECHO_LT@,$ECHO_LT,;t t
21840 s,@ECHO_LD@,$ECHO_LD,;t t
21841 s,@RULE_CC@,$RULE_CC,;t t
21842 s,@SHOW_CC@,$SHOW_CC,;t t
21843 s,@ECHO_CC@,$ECHO_CC,;t t
21844 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
21845 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
21846 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
21847 s,@X_CFLAGS@,$X_CFLAGS,;t t
21848 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21849 s,@X_LIBS@,$X_LIBS,;t t
21850 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21851 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
21852 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
21853 s,@RGB_PATH@,$RGB_PATH,;t t
21854 s,@no_x11_rgb@,$no_x11_rgb,;t t
21855 s,@FORM_NAME@,$FORM_NAME,;t t
21856 s,@MENU_NAME@,$MENU_NAME,;t t
21857 s,@PANEL_NAME@,$PANEL_NAME,;t t
21858 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
21859 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
21860 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
21865 cat >>$CONFIG_STATUS <<\EOF
21866 # Split the substitutions into bite-sized pieces for seds with
21867 # small command number limits, like on Digital OSF/1 and HP-UX.
21868 ac_max_sed_lines=48
21869 ac_sed_frag=1 # Number of current file.
21870 ac_beg=1 # First line for current file.
21871 ac_end=$ac_max_sed_lines # Line after last line for current file.
21874 while $ac_more_lines; do
21875 if test $ac_beg -gt 1; then
21876 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21878 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21880 if test ! -s $tmp/subs.frag; then
21881 ac_more_lines=false
21883 # The purpose of the label and of the branching condition is to
21884 # speed up the sed processing (if there are no `@' at all, there
21885 # is no need to browse any of the substitutions).
21886 # These are the two extra sed commands mentioned above.
21888 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21889 # It is possible to make a multiline substitution using escaped newlines.
21890 # Ensure that we do not split the substitution between script fragments.
21892 ac_END=`expr $ac_end + $ac_max_sed_lines`
21893 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
21894 if test -s $tmp/subs.next; then
21895 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
21896 if test ! -s $tmp/subs.edit; then
21897 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
21898 if test ! -s $tmp/subs.edit; then
21899 if test $ac_beg -gt 1; then
21900 ac_end=`expr $ac_end - 1`
21907 if test -z "$ac_sed_cmds"; then
21908 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21910 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21912 ac_sed_frag=`expr $ac_sed_frag + 1`
21914 ac_end=`expr $ac_end + $ac_max_sed_lines`
21917 if test -z "$ac_sed_cmds"; then
21920 fi # test -n "$CONFIG_FILES"
21923 cat >>$CONFIG_STATUS <<\EOF
21924 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21925 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21927 - | *:- | *:-:* ) # input from stdin
21929 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21930 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21931 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21932 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21933 * ) ac_file_in=$ac_file.in ;;
21936 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21937 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21938 X"$ac_file" : 'X\(//\)[^/]' \| \
21939 X"$ac_file" : 'X\(//\)$' \| \
21940 X"$ac_file" : 'X\(/\)' \| \
21941 . : '\(.\)' 2>/dev/null ||
21943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21945 /^X\(\/\/\)$/{ s//\1/; q; }
21946 /^X\(\/\).*/{ s//\1/; q; }
21948 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21949 { case "$ac_dir" in
21950 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21954 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21955 case $as_mkdir_dir in
21956 # Skip DOS drivespec
21957 ?:) as_incr_dir=$as_mkdir_dir ;;
21959 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21960 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21965 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
21966 # A "../" for each directory in $ac_dir_suffix.
21967 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
21969 ac_dir_suffix= ac_dots=
21974 if test -z "$ac_dots"; then
21977 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
21979 [\\/]* | ?:[\\/]* )
21980 ac_srcdir=$srcdir$ac_dir_suffix;
21981 ac_top_srcdir=$srcdir ;;
21982 *) # Relative path.
21983 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
21984 ac_top_srcdir=$ac_dots$srcdir ;;
21988 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21989 *) ac_INSTALL=$ac_dots$INSTALL ;;
21992 if test x"$ac_file" != x-; then
21993 { echo "$as_me:21993: creating $ac_file" >&5
21994 echo "$as_me: creating $ac_file" >&6;}
21997 # Let's still pretend it is `configure' which instantiates (i.e., don't
21998 # use $as_me), people would be surprised to read:
21999 # /* config.h. Generated automatically by config.status. */
22000 configure_input="Generated automatically from `echo $ac_file_in |
22001 sed 's,.*/,,'` by configure."
22003 # First look for the input files in the build tree, otherwise in the
22005 ac_file_inputs=`IFS=:
22006 for f in $ac_file_in; do
22008 -) echo $tmp/stdin ;;
22010 # Absolute (can't be DOS-style, as IFS=:)
22011 test -f "$f" || { { echo "$as_me:22011: error: cannot find input file: $f" >&5
22012 echo "$as_me: error: cannot find input file: $f" >&2;}
22013 { (exit 1); exit 1; }; }
22016 if test -f "$f"; then
22019 elif test -f "$srcdir/$f"; then
22024 { { echo "$as_me:22024: error: cannot find input file: $f" >&5
22025 echo "$as_me: error: cannot find input file: $f" >&2;}
22026 { (exit 1); exit 1; }; }
22029 done` || { (exit 1); exit 1; }
22031 cat >>$CONFIG_STATUS <<\EOF
22032 ac_warn_datarootdir=no
22033 if test x"$ac_file" != x-; then
22034 for ac_item in $ac_file_inputs
22036 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
22037 if test -n "$ac_seen"; then
22038 ac_used=`grep '@datarootdir@' $ac_item`
22039 if test -z "$ac_used"; then
22040 { echo "$as_me:22040: WARNING: datarootdir was used implicitly but not set:
22042 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
22044 ac_warn_datarootdir=yes
22047 ac_seen=`grep '${datarootdir}' $ac_item`
22048 if test -n "$ac_seen"; then
22049 { echo "$as_me:22049: WARNING: datarootdir was used explicitly but not set:
22051 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
22053 ac_warn_datarootdir=yes
22058 if test "x$ac_warn_datarootdir" = xyes; then
22059 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
22063 cat >>$CONFIG_STATUS <<EOF
22067 cat >>$CONFIG_STATUS <<\EOF
22069 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22070 s,@configure_input@,$configure_input,;t t
22071 s,@srcdir@,$ac_srcdir,;t t
22072 s,@top_srcdir@,$ac_top_srcdir,;t t
22073 s,@INSTALL@,$ac_INSTALL,;t t
22074 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22076 if test x"$ac_file" != x-; then
22077 cp $tmp/out $ac_file
22079 for ac_name in prefix exec_prefix datarootdir
22081 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
22082 if test -n "$ac_seen"; then
22083 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
22084 if test -z "$ac_init"; then
22085 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
22086 { echo "$as_me:22086: WARNING: Variable $ac_name is used but was not set:
22088 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
22093 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
22094 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
22095 if test -s $tmp/out; then
22096 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
22097 { echo "$as_me:22097: WARNING: Some variables may not be substituted:
22099 echo "$as_me: WARNING: Some variables may not be substituted:
22109 cat >>$CONFIG_STATUS <<\EOF
22112 # CONFIG_HEADER section.
22115 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22116 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22118 # ac_d sets the value in "#define NAME VALUE" lines.
22119 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22120 ac_dB='[ ].*$,\1#\2'
22123 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22124 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22125 ac_iB='\([ ]\),\1#\2define\3'
22128 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22129 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22130 ac_uB='$,\1#\2define\3'
22134 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22135 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22137 - | *:- | *:-:* ) # input from stdin
22139 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22140 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22141 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22142 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22143 * ) ac_file_in=$ac_file.in ;;
22146 test x"$ac_file" != x- && { echo "$as_me:22146: creating $ac_file" >&5
22147 echo "$as_me: creating $ac_file" >&6;}
22149 # First look for the input files in the build tree, otherwise in the
22151 ac_file_inputs=`IFS=:
22152 for f in $ac_file_in; do
22154 -) echo $tmp/stdin ;;
22156 # Absolute (can't be DOS-style, as IFS=:)
22157 test -f "$f" || { { echo "$as_me:22157: error: cannot find input file: $f" >&5
22158 echo "$as_me: error: cannot find input file: $f" >&2;}
22159 { (exit 1); exit 1; }; }
22162 if test -f "$f"; then
22165 elif test -f "$srcdir/$f"; then
22170 { { echo "$as_me:22170: error: cannot find input file: $f" >&5
22171 echo "$as_me: error: cannot find input file: $f" >&2;}
22172 { (exit 1); exit 1; }; }
22175 done` || { (exit 1); exit 1; }
22176 # Remove the trailing spaces.
22177 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22181 # Transform confdefs.h into a list of #define's. We won't use it as a sed
22182 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
22183 # be either 'cat' or 'sort'.
22184 cat confdefs.h | uniq >conftest.vals
22186 # Break up conftest.vals because some shells have a limit on
22187 # the size of here documents, and old seds have small limits too.
22189 rm -f conftest.tail
22190 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
22191 while grep . conftest.vals >/dev/null
22193 # Write chunks of a limited-size here document to conftest.frag.
22194 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
22195 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
22196 echo 'CEOF' >> $CONFIG_STATUS
22197 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22198 rm -f conftest.vals
22199 mv conftest.tail conftest.vals
22201 rm -f conftest.vals
22203 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
22205 echo ' cat >> conftest.edit <<CEOF
22206 /@DEFS@/r conftest.frag
22209 sed -f conftest.edit $tmp/in > $tmp/out
22211 mv $tmp/out $tmp/in
22212 rm -f conftest.edit conftest.frag
22213 ' >> $CONFIG_STATUS
22215 cat >>$CONFIG_STATUS <<\EOF
22216 # Let's still pretend it is `configure' which instantiates (i.e., don't
22217 # use $as_me), people would be surprised to read:
22218 # /* config.h. Generated automatically by config.status. */
22219 if test x"$ac_file" = x-; then
22220 echo "/* Generated automatically by configure. */" >$tmp/config.h
22222 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
22224 cat $tmp/in >>$tmp/config.h
22226 if test x"$ac_file" != x-; then
22227 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
22228 { echo "$as_me:22228: $ac_file is unchanged" >&5
22229 echo "$as_me: $ac_file is unchanged" >&6;}
22231 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22232 X"$ac_file" : 'X\(//\)[^/]' \| \
22233 X"$ac_file" : 'X\(//\)$' \| \
22234 X"$ac_file" : 'X\(/\)' \| \
22235 . : '\(.\)' 2>/dev/null ||
22237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22238 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22239 /^X\(\/\/\)$/{ s//\1/; q; }
22240 /^X\(\/\).*/{ s//\1/; q; }
22242 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22243 { case "$ac_dir" in
22244 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22248 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22249 case $as_mkdir_dir in
22250 # Skip DOS drivespec
22251 ?:) as_incr_dir=$as_mkdir_dir ;;
22253 as_incr_dir=$as_incr_dir/$as_mkdir_dir
22254 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
22261 mv $tmp/config.h $ac_file
22265 rm -f $tmp/config.h
22269 cat >>$CONFIG_STATUS <<\EOF
22271 # CONFIG_COMMANDS section.
22273 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22274 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22275 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22282 if test ! -d $srcdir/$cf_dir; then
22284 elif test -f $srcdir/$cf_dir/programs; then
22285 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
22289 cat >>Makefile <<TEST_EOF
22291 # These rules are generated so we do not rely on suffix rules, which do not
22292 # work consistently for different make-programs (the '\$(MODEL)/' confuses
22293 # some, and the '\$x' confuses others).
22296 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
22299 cat >>Makefile <<TEST_EOF
22301 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
22302 \$(srcdir)/test.priv.h \\
22305 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) -DMODULE_NAME="$N" \$(srcdir)/$N.c
22309 if test -f ../config.guess && test -f ../config.sub
22311 cat >>Makefile <<TEST_EOF
22313 # if we used CF_INHERIT for getting these files, we can remove them
22315 rm -f config.guess config.sub
22323 cat >>$CONFIG_STATUS <<\EOF
22325 { (exit 0); exit 0; }
22327 chmod +x $CONFIG_STATUS
22328 ac_clean_files=$ac_clean_files_save
22330 # configure is writing to config.log, and then calls config.status.
22331 # config.status does its own redirection, appending to config.log.
22332 # Unfortunately, on DOS this fails, as config.log is still kept open
22333 # by configure, so config.status won't be able to write to it; its
22334 # output is simply discarded. So we exec the FD to /dev/null,
22335 # effectively closing config.log, so it can be properly (re)opened and
22336 # appended to by config.status. When coming back to configure, we
22337 # need to make the FD available again.
22338 if test "$no_create" != yes; then
22341 $SHELL $CONFIG_STATUS || ac_cs_success=false
22343 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22344 # would make configure fail if this is the last instruction.
22345 $ac_cs_success || { (exit 1); exit 1; }