2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20170501.
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="dialog.h"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
112 # include <sys/types.h>
115 # include <sys/stat.h>
126 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <strings.h>
135 # include <inttypes.h>
145 # Initialize some variables set by options.
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
157 program_transform_name=s,x,x,
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datarootdir='${prefix}/share'
174 datadir='${datarootdir}'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${datarootdir}/info'
182 mandir='${datarootdir}/man'
184 # Identity of this package.
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
203 # Accept the important Cygnus configure options, so we can diagnose typos.
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
225 cache_file=config.cache ;;
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
231 datadir=$ac_optarg ;;
233 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
234 | --dataroo | --dataro | --datar)
235 ac_prev=datarootdir ;;
236 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
237 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
238 datarootdir=$ac_optarg ;;
240 -disable-* | --disable-*)
241 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
242 # Reject names that are not valid shell variable names.
243 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
244 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
245 { (exit 1); exit 1; }; }
246 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
247 eval "enable_$ac_feature=no" ;;
249 -enable-* | --enable-*)
250 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
251 # Reject names that are not valid shell variable names.
252 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
253 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
254 { (exit 1); exit 1; }; }
255 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
257 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
260 eval "enable_$ac_feature='$ac_optarg'" ;;
262 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
263 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
264 | --exec | --exe | --ex)
265 ac_prev=exec_prefix ;;
266 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
267 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
268 | --exec=* | --exe=* | --ex=*)
269 exec_prefix=$ac_optarg ;;
271 -gas | --gas | --ga | --g)
272 # Obsolete; use --with-gas.
275 -help | --help | --hel | --he | -h)
277 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
278 ac_init_help=recursive ;;
279 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
280 ac_init_help=short ;;
282 -host | --host | --hos | --ho)
283 ac_prev=host_alias ;;
284 -host=* | --host=* | --hos=* | --ho=*)
285 host_alias=$ac_optarg ;;
287 -includedir | --includedir | --includedi | --included | --include \
288 | --includ | --inclu | --incl | --inc)
289 ac_prev=includedir ;;
290 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
291 | --includ=* | --inclu=* | --incl=* | --inc=*)
292 includedir=$ac_optarg ;;
294 -infodir | --infodir | --infodi | --infod | --info | --inf)
296 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
297 infodir=$ac_optarg ;;
299 -libdir | --libdir | --libdi | --libd)
301 -libdir=* | --libdir=* | --libdi=* | --libd=*)
304 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
305 | --libexe | --libex | --libe)
306 ac_prev=libexecdir ;;
307 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
308 | --libexe=* | --libex=* | --libe=*)
309 libexecdir=$ac_optarg ;;
311 -localstatedir | --localstatedir | --localstatedi | --localstated \
312 | --localstate | --localstat | --localsta | --localst \
313 | --locals | --local | --loca | --loc | --lo)
314 ac_prev=localstatedir ;;
315 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
316 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
317 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
318 localstatedir=$ac_optarg ;;
320 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
322 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
326 # Obsolete; use --without-fp.
329 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
333 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
334 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
337 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
338 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
339 | --oldin | --oldi | --old | --ol | --o)
340 ac_prev=oldincludedir ;;
341 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
342 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
343 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
344 oldincludedir=$ac_optarg ;;
346 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
348 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
351 -program-prefix | --program-prefix | --program-prefi | --program-pref \
352 | --program-pre | --program-pr | --program-p)
353 ac_prev=program_prefix ;;
354 -program-prefix=* | --program-prefix=* | --program-prefi=* \
355 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
356 program_prefix=$ac_optarg ;;
358 -program-suffix | --program-suffix | --program-suffi | --program-suff \
359 | --program-suf | --program-su | --program-s)
360 ac_prev=program_suffix ;;
361 -program-suffix=* | --program-suffix=* | --program-suffi=* \
362 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
363 program_suffix=$ac_optarg ;;
365 -program-transform-name | --program-transform-name \
366 | --program-transform-nam | --program-transform-na \
367 | --program-transform-n | --program-transform- \
368 | --program-transform | --program-transfor \
369 | --program-transfo | --program-transf \
370 | --program-trans | --program-tran \
371 | --progr-tra | --program-tr | --program-t)
372 ac_prev=program_transform_name ;;
373 -program-transform-name=* | --program-transform-name=* \
374 | --program-transform-nam=* | --program-transform-na=* \
375 | --program-transform-n=* | --program-transform-=* \
376 | --program-transform=* | --program-transfor=* \
377 | --program-transfo=* | --program-transf=* \
378 | --program-trans=* | --program-tran=* \
379 | --progr-tra=* | --program-tr=* | --program-t=*)
380 program_transform_name=$ac_optarg ;;
382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
383 | -silent | --silent | --silen | --sile | --sil)
386 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
388 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
390 sbindir=$ac_optarg ;;
392 -sharedstatedir | --sharedstatedir | --sharedstatedi \
393 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
394 | --sharedst | --shareds | --shared | --share | --shar \
396 ac_prev=sharedstatedir ;;
397 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
398 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
399 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
401 sharedstatedir=$ac_optarg ;;
403 -site | --site | --sit)
405 -site=* | --site=* | --sit=*)
408 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
410 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
413 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
414 | --syscon | --sysco | --sysc | --sys | --sy)
415 ac_prev=sysconfdir ;;
416 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
417 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
418 sysconfdir=$ac_optarg ;;
420 -target | --target | --targe | --targ | --tar | --ta | --t)
421 ac_prev=target_alias ;;
422 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
423 target_alias=$ac_optarg ;;
425 -v | -verbose | --verbose | --verbos | --verbo | --verb)
428 -version | --version | --versio | --versi | --vers | -V)
432 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
433 # Reject names that are not valid shell variable names.
434 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
435 { echo "$as_me: error: invalid package name: $ac_package" >&2
436 { (exit 1); exit 1; }; }
437 ac_package=`echo $ac_package| sed 's/-/_/g'`
439 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
442 eval "with_$ac_package='$ac_optarg'" ;;
444 -without-* | --without-*)
445 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
446 # Reject names that are not valid shell variable names.
447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
448 { echo "$as_me: error: invalid package name: $ac_package" >&2
449 { (exit 1); exit 1; }; }
450 ac_package=`echo $ac_package | sed 's/-/_/g'`
451 eval "with_$ac_package=no" ;;
454 # Obsolete; use --with-x.
457 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
458 | --x-incl | --x-inc | --x-in | --x-i)
459 ac_prev=x_includes ;;
460 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
461 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
462 x_includes=$ac_optarg ;;
464 -x-libraries | --x-libraries | --x-librarie | --x-librari \
465 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
466 ac_prev=x_libraries ;;
467 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
468 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
469 x_libraries=$ac_optarg ;;
471 -*) { echo "$as_me: error: unrecognized option: $ac_option
472 Try \`$0 --help' for more information." >&2
473 { (exit 1); exit 1; }; }
477 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
478 # Reject names that are not valid shell variable names.
479 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
480 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
481 { (exit 1); exit 1; }; }
482 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
483 eval "$ac_envvar='$ac_optarg'"
487 # FIXME: should be removed in autoconf 3.0.
488 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
489 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
490 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
491 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
497 if test -n "$ac_prev"; then
498 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
499 { echo "$as_me: error: missing argument to $ac_option" >&2
500 { (exit 1); exit 1; }; }
503 # Be sure to have absolute paths.
504 for ac_var in exec_prefix prefix
506 eval ac_val=$`echo $ac_var`
508 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
509 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
510 { (exit 1); exit 1; }; };;
514 # Be sure to have absolute paths.
515 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
516 localstatedir libdir includedir oldincludedir infodir mandir
518 eval ac_val=$`echo $ac_var`
520 [\\/$]* | ?:[\\/]* ) ;;
521 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
522 { (exit 1); exit 1; }; };;
526 # There might be people who depend on the old broken behavior: `$host'
527 # used to hold the argument of --host etc.
532 # FIXME: should be removed in autoconf 3.0.
533 if test "x$host_alias" != x; then
534 if test "x$build_alias" = x; then
535 cross_compiling=maybe
536 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
537 If a cross compiler is detected then cross compile mode will be used." >&2
538 elif test "x$build_alias" != "x$host_alias"; then
544 test -n "$host_alias" && ac_tool_prefix=$host_alias-
546 test "$silent" = yes && exec 6>/dev/null
548 # Find the source files, if location was not specified.
549 if test -z "$srcdir"; then
550 ac_srcdir_defaulted=yes
551 # Try the directory containing this script, then its parent.
553 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
554 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
556 if test ! -r $srcdir/$ac_unique_file; then
560 ac_srcdir_defaulted=no
562 if test ! -r $srcdir/$ac_unique_file; then
563 if test "$ac_srcdir_defaulted" = yes; then
564 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
565 { (exit 1); exit 1; }; }
567 { echo "$as_me: error: cannot find sources in $srcdir" >&2
568 { (exit 1); exit 1; }; }
571 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
572 ac_env_build_alias_set=${build_alias+set}
573 ac_env_build_alias_value=$build_alias
574 ac_cv_env_build_alias_set=${build_alias+set}
575 ac_cv_env_build_alias_value=$build_alias
576 ac_env_host_alias_set=${host_alias+set}
577 ac_env_host_alias_value=$host_alias
578 ac_cv_env_host_alias_set=${host_alias+set}
579 ac_cv_env_host_alias_value=$host_alias
580 ac_env_target_alias_set=${target_alias+set}
581 ac_env_target_alias_value=$target_alias
582 ac_cv_env_target_alias_set=${target_alias+set}
583 ac_cv_env_target_alias_value=$target_alias
584 ac_env_CC_set=${CC+set}
586 ac_cv_env_CC_set=${CC+set}
587 ac_cv_env_CC_value=$CC
588 ac_env_CFLAGS_set=${CFLAGS+set}
589 ac_env_CFLAGS_value=$CFLAGS
590 ac_cv_env_CFLAGS_set=${CFLAGS+set}
591 ac_cv_env_CFLAGS_value=$CFLAGS
592 ac_env_LDFLAGS_set=${LDFLAGS+set}
593 ac_env_LDFLAGS_value=$LDFLAGS
594 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
595 ac_cv_env_LDFLAGS_value=$LDFLAGS
596 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
597 ac_env_CPPFLAGS_value=$CPPFLAGS
598 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
599 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
600 ac_env_CPP_set=${CPP+set}
601 ac_env_CPP_value=$CPP
602 ac_cv_env_CPP_set=${CPP+set}
603 ac_cv_env_CPP_value=$CPP
606 # Report the --help message.
608 if test "$ac_init_help" = "long"; then
609 # Omit some internal or obsolete options to make the list less imposing.
610 # This message is too long to be a string in the A/UX 3.1 sh.
612 \`configure' configures this package to adapt to many kinds of systems.
614 Usage: $0 [OPTION]... [VAR=VALUE]...
616 To assign environment variables (e.g., CC, CFLAGS...), specify them as
617 VAR=VALUE. See below for descriptions of some of the useful variables.
619 Defaults for the options are specified in brackets.
622 -h, --help display this help and exit
623 --help=short display options specific to this package
624 --help=recursive display the short help of all the included packages
625 -V, --version display version information and exit
626 -q, --quiet, --silent do not print \`checking...' messages
627 --cache-file=FILE cache test results in FILE [disabled]
628 -C, --config-cache alias for \`--cache-file=config.cache'
629 -n, --no-create do not create output files
630 --srcdir=DIR find the sources in DIR [configure dir or \`..']
635 Installation directories:
636 --prefix=PREFIX install architecture-independent files in PREFIX
638 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
641 By default, \`make install' will install all the files in
642 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
643 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
644 for instance \`--prefix=\$HOME'.
646 For better control, use the options below.
648 Fine tuning of the installation directories:
649 --bindir=DIR user executables [EPREFIX/bin]
650 --sbindir=DIR system admin executables [EPREFIX/sbin]
651 --libexecdir=DIR program executables [EPREFIX/libexec]
652 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
653 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
654 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
655 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
656 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
657 --libdir=DIR object code libraries [EPREFIX/lib]
658 --includedir=DIR C header files [PREFIX/include]
659 --oldincludedir=DIR C header files for non-gcc [/usr/include]
660 --infodir=DIR info documentation [DATAROOTDIR/info]
661 --mandir=DIR man documentation [DATAROOTDIR/man]
667 --program-prefix=PREFIX prepend PREFIX to installed program names
668 --program-suffix=SUFFIX append SUFFIX to installed program names
669 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
672 --x-includes=DIR X include files are in DIR
673 --x-libraries=DIR X library files are in DIR
676 --build=BUILD configure for building on BUILD [guessed]
677 --host=HOST build programs to run on HOST [BUILD]
681 if test -n "$ac_init_help"; then
686 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
687 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
690 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
691 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
693 --disable-echo do not display "compiling" commands
694 --disable-largefile omit support for large files
695 --with-install-prefix=XXX sets DESTDIR, useful for packaging
696 --with-warnings test: turn on gcc warnings
697 --with-pkg-config{=path} enable/disable use of pkg-config
698 --with-package=XXX rename dialog to XXX, library to libXXX.a, etc
699 --enable-header-subdir install dlg_XXX headers to subdirectory
700 --with-man2html=XXX use XXX rather than groff
701 --with-libiconv-prefix=DIR
702 search for libiconv in DIR/include and DIR/lib
703 --enable-nls use Native Language Support
704 --with-included-gettext use the GNU gettext library included here
705 --with-textdomain=PKG NLS text-domain (default is package name)
706 --disable-included-msgs use included messages, for i18n support
707 --with-dmalloc test: use Gray Watson's dmalloc library
708 --with-dbmalloc test: use Conor Cahill's dbmalloc library
709 --with-purify test: use Purify
710 --with-valgrind test: use valgrind
711 --with-no-leaks test: free permanent memory, analyze leaks
712 --disable-trace do not support --trace option
713 --with-rel-version=XXX override derived release version
714 --with-abi-version=XXX override derived ABI version
715 --disable-libtool-version enable to use libtool's incompatible naming scheme
716 --with-libtool generate libraries with libtool
717 --with-libtool-opts=XXX specify additional libtool options
718 --with-export-syms=XXX limit exported symbols using libtool
719 --with-shared generate shared-libraries
720 --with-shlib-version=X Specify rel or abi version for shared libs
721 --with-versioned-syms=X markup versioned symbols using ld
722 --with-curses-dir=DIR directory in which (n)curses is installed
723 --enable-rpath use rpath option when generating shared libraries
724 --with-screen=XXX use specified curses-libraries
725 --with-ncursesw use wide ncurses-libraries
726 --with-ncurses use ncurses-libraries
727 --with-pdcurses compile/link with pdcurses X11 library
728 --with-curses-colr compile/link with HPUX 10.x color-curses
729 --with-curses-5lib compile/link with SunOS 5lib curses
730 --with-Xaw3d link with Xaw 3d library
731 --with-Xaw3dxft link with Xaw 3d xft library
732 --with-neXtaw link with neXT Athena library
733 --with-XawPlus link with Athena-Plus library
734 --with-x use the X Window System
735 --disable-extras do not include extra dialogs
736 --disable-rc-file do not include config-file support
737 --disable-Xdialog do not include Xdialog-style dialogs (1.1)
738 --disable-Xdialog2 do not include extra Xdialog-style dialogs (1.2)
739 --disable-whiptail do not map extra whiptail options
740 --disable-form do not include the form dialog
741 --disable-gauge do not include the gauge dialogs
742 --disable-tailbox do not include the tailbox dialog
743 --disable-mixedform do not include the mixedform dialog
744 --disable-mixedgauge do not include the mixedgauge dialog
745 --enable-widec enable wide-curses features
746 --disable-rpath-hack don't add rpath options for additional libraries
748 Some influential environment variables:
749 CC C compiler command
750 CFLAGS C compiler flags
751 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
752 nonstandard directory <lib dir>
753 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
754 headers in a nonstandard directory <include dir>
757 Use these variables to override the choices made by `configure' or to help
758 it to find libraries and programs with nonstandard names/locations.
763 if test "$ac_init_help" = "recursive"; then
764 # If there are subdirs, report their specific --help.
766 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
768 # A "../" for each directory in /$ac_subdir.
769 ac_dots=`echo $ac_subdir |
770 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
773 .) # No --srcdir option. We are building in place.
774 ac_sub_srcdir=$srcdir ;;
775 [\\/]* | ?:[\\/]* ) # Absolute path.
776 ac_sub_srcdir=$srcdir/$ac_subdir ;;
778 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
781 # Check for guested configure; otherwise get Cygnus style configure.
782 if test -f $ac_sub_srcdir/configure.gnu; then
784 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
785 elif test -f $ac_sub_srcdir/configure; then
787 $SHELL $ac_sub_srcdir/configure --help=recursive
788 elif test -f $ac_sub_srcdir/configure.ac ||
789 test -f $ac_sub_srcdir/configure.in; then
793 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
799 test -n "$ac_init_help" && exit 0
800 if $ac_init_version; then
803 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
804 Free Software Foundation, Inc.
805 This configure script is free software; the Free Software Foundation
806 gives unlimited permission to copy, distribute and modify it.
812 This file contains any messages produced by compilers while
813 running configure, to aid debugging if configure makes a mistake.
815 It was created by $as_me, which was
816 generated by GNU Autoconf 2.52.20170501. Invocation command line was
827 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
828 uname -m = `(uname -m) 2>/dev/null || echo unknown`
829 uname -r = `(uname -r) 2>/dev/null || echo unknown`
830 uname -s = `(uname -s) 2>/dev/null || echo unknown`
831 uname -v = `(uname -v) 2>/dev/null || echo unknown`
833 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
834 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
836 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
837 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
838 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
839 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
840 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
841 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
842 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
856 # Keep a trace of the command line.
857 # Strip out --no-create and --no-recursion so they do not pile up.
858 # Also quote any args containing shell meta-characters.
864 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
865 | --no-cr | --no-c) ;;
866 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
867 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
868 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
869 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
870 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
872 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
875 # Get rid of the leading space.
878 # When interrupted or exit'd, cleanup temporary files, and complete
879 # config.log. We remove comments because anyway the quotes in there
880 # would cause problems or look ugly.
882 # Save into config.log some information that might help in debugging.
884 echo "## ----------------- ##" >&5
885 echo "## Cache variables. ##" >&5
886 echo "## ----------------- ##" >&5
888 # The following way of writing the cache mishandles newlines in values,
891 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
894 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
899 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
903 sed "/^$/d" confdefs.h >conftest.log
904 if test -s conftest.log; then
906 echo "## ------------ ##" >&5
907 echo "## confdefs.h. ##" >&5
908 echo "## ------------ ##" >&5
913 test "$ac_signal" != 0 &&
914 echo "$as_me: caught signal $ac_signal" >&5
915 echo "$as_me: exit $exit_status" >&5
916 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
919 for ac_signal in 1 2 13 15; do
920 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
924 # confdefs.h avoids OS command line length limits that DEFS can exceed.
925 rm -rf conftest* confdefs.h
926 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
929 # Let the site file select an alternate cache file if it wants to.
930 # Prefer explicitly selected file to automatically selected ones.
931 if test -z "$CONFIG_SITE"; then
932 if test "x$prefix" != xNONE; then
933 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
935 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
938 for ac_site_file in $CONFIG_SITE; do
939 if test -r "$ac_site_file"; then
940 { echo "$as_me:940: loading site script $ac_site_file" >&5
941 echo "$as_me: loading site script $ac_site_file" >&6;}
942 cat "$ac_site_file" >&5
947 if test -r "$cache_file"; then
948 # Some versions of bash will fail to source /dev/null (special
949 # files actually), so we avoid doing that.
950 if test -f "$cache_file"; then
951 { echo "$as_me:951: loading cache $cache_file" >&5
952 echo "$as_me: loading cache $cache_file" >&6;}
954 [\\/]* | ?:[\\/]* ) . $cache_file;;
959 { echo "$as_me:959: creating cache $cache_file" >&5
960 echo "$as_me: creating cache $cache_file" >&6;}
964 # Check that the precious variables saved in the cache have kept the same
966 ac_cache_corrupted=false
967 for ac_var in `(set) 2>&1 |
968 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
969 eval ac_old_set=\$ac_cv_env_${ac_var}_set
970 eval ac_new_set=\$ac_env_${ac_var}_set
971 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
972 eval ac_new_val="\$ac_env_${ac_var}_value"
973 case $ac_old_set,$ac_new_set in
975 { echo "$as_me:975: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
976 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
977 ac_cache_corrupted=: ;;
979 { echo "$as_me:979: error: \`$ac_var' was not set in the previous run" >&5
980 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
981 ac_cache_corrupted=: ;;
984 if test "x$ac_old_val" != "x$ac_new_val"; then
985 { echo "$as_me:985: error: \`$ac_var' has changed since the previous run:" >&5
986 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
987 { echo "$as_me:987: former value: $ac_old_val" >&5
988 echo "$as_me: former value: $ac_old_val" >&2;}
989 { echo "$as_me:989: current value: $ac_new_val" >&5
990 echo "$as_me: current value: $ac_new_val" >&2;}
994 # Pass precious variables to config.status. It doesn't matter if
995 # we pass some twice (in addition to the command line arguments).
996 if test "$ac_new_set" = set; then
998 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
999 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1000 ac_configure_args="$ac_configure_args '$ac_arg'"
1002 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1007 if $ac_cache_corrupted; then
1008 { echo "$as_me:1008: error: changes in the environment can compromise the build" >&5
1009 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1010 { { echo "$as_me:1010: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1011 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1012 { (exit 1); exit 1; }; }
1016 ac_cpp='$CPP $CPPFLAGS'
1017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1020 ac_main_return=return
1022 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1023 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1025 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1026 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1028 echo "#! $SHELL" >conftest.sh
1029 echo "exit 0" >>conftest.sh
1030 chmod +x conftest.sh
1031 if { (echo "$as_me:1031: PATH=\".;.\"; conftest.sh") >&5
1032 (PATH=".;."; conftest.sh) 2>&5
1034 echo "$as_me:1034: \$? = $ac_status" >&5
1035 (exit $ac_status); }; then
1036 ac_path_separator=';'
1040 PATH_SEPARATOR="$ac_path_separator"
1043 ac_config_headers="$ac_config_headers dlg_config.h:config.hin"
1045 test "$program_prefix" != NONE &&
1046 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1047 # Use a double $ so make ignores it.
1048 test "$program_suffix" != NONE &&
1049 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1050 # Double any \ or $. echo might interpret backslashes.
1051 # By default was `s,x,x', remove it if useless.
1052 cat <<\_ACEOF >conftest.sed
1053 s/[\\$]/&&/g;s/;s,x,x,$//
1055 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1061 ac_cpp='$CPP $CPPFLAGS'
1062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1065 ac_main_return=return
1066 if test -n "$ac_tool_prefix"; then
1067 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1068 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1069 echo "$as_me:1069: checking for $ac_word" >&5
1070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1071 if test "${ac_cv_prog_CC+set}" = set; then
1072 echo $ECHO_N "(cached) $ECHO_C" >&6
1074 if test -n "$CC"; then
1075 ac_cv_prog_CC="$CC" # Let the user override the test.
1077 ac_save_IFS=$IFS; IFS=$ac_path_separator
1079 for ac_dir in $ac_dummy; do
1081 test -z "$ac_dir" && ac_dir=.
1082 $as_executable_p "$ac_dir/$ac_word" || continue
1083 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1084 echo "$as_me:1084: found $ac_dir/$ac_word" >&5
1091 if test -n "$CC"; then
1092 echo "$as_me:1092: result: $CC" >&5
1093 echo "${ECHO_T}$CC" >&6
1095 echo "$as_me:1095: result: no" >&5
1096 echo "${ECHO_T}no" >&6
1100 if test -z "$ac_cv_prog_CC"; then
1102 # Extract the first word of "gcc", so it can be a program name with args.
1103 set dummy gcc; ac_word=$2
1104 echo "$as_me:1104: checking for $ac_word" >&5
1105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1107 echo $ECHO_N "(cached) $ECHO_C" >&6
1109 if test -n "$ac_ct_CC"; then
1110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1112 ac_save_IFS=$IFS; IFS=$ac_path_separator
1114 for ac_dir in $ac_dummy; do
1116 test -z "$ac_dir" && ac_dir=.
1117 $as_executable_p "$ac_dir/$ac_word" || continue
1118 ac_cv_prog_ac_ct_CC="gcc"
1119 echo "$as_me:1119: found $ac_dir/$ac_word" >&5
1125 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1126 if test -n "$ac_ct_CC"; then
1127 echo "$as_me:1127: result: $ac_ct_CC" >&5
1128 echo "${ECHO_T}$ac_ct_CC" >&6
1130 echo "$as_me:1130: result: no" >&5
1131 echo "${ECHO_T}no" >&6
1139 if test -z "$CC"; then
1140 if test -n "$ac_tool_prefix"; then
1141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1142 set dummy ${ac_tool_prefix}cc; ac_word=$2
1143 echo "$as_me:1143: checking for $ac_word" >&5
1144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1145 if test "${ac_cv_prog_CC+set}" = set; then
1146 echo $ECHO_N "(cached) $ECHO_C" >&6
1148 if test -n "$CC"; then
1149 ac_cv_prog_CC="$CC" # Let the user override the test.
1151 ac_save_IFS=$IFS; IFS=$ac_path_separator
1153 for ac_dir in $ac_dummy; do
1155 test -z "$ac_dir" && ac_dir=.
1156 $as_executable_p "$ac_dir/$ac_word" || continue
1157 ac_cv_prog_CC="${ac_tool_prefix}cc"
1158 echo "$as_me:1158: found $ac_dir/$ac_word" >&5
1165 if test -n "$CC"; then
1166 echo "$as_me:1166: result: $CC" >&5
1167 echo "${ECHO_T}$CC" >&6
1169 echo "$as_me:1169: result: no" >&5
1170 echo "${ECHO_T}no" >&6
1174 if test -z "$ac_cv_prog_CC"; then
1176 # Extract the first word of "cc", so it can be a program name with args.
1177 set dummy cc; ac_word=$2
1178 echo "$as_me:1178: checking for $ac_word" >&5
1179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1181 echo $ECHO_N "(cached) $ECHO_C" >&6
1183 if test -n "$ac_ct_CC"; then
1184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1186 ac_save_IFS=$IFS; IFS=$ac_path_separator
1188 for ac_dir in $ac_dummy; do
1190 test -z "$ac_dir" && ac_dir=.
1191 $as_executable_p "$ac_dir/$ac_word" || continue
1192 ac_cv_prog_ac_ct_CC="cc"
1193 echo "$as_me:1193: found $ac_dir/$ac_word" >&5
1199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1200 if test -n "$ac_ct_CC"; then
1201 echo "$as_me:1201: result: $ac_ct_CC" >&5
1202 echo "${ECHO_T}$ac_ct_CC" >&6
1204 echo "$as_me:1204: result: no" >&5
1205 echo "${ECHO_T}no" >&6
1214 if test -z "$CC"; then
1215 # Extract the first word of "cc", so it can be a program name with args.
1216 set dummy cc; ac_word=$2
1217 echo "$as_me:1217: checking for $ac_word" >&5
1218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1219 if test "${ac_cv_prog_CC+set}" = set; then
1220 echo $ECHO_N "(cached) $ECHO_C" >&6
1222 if test -n "$CC"; then
1223 ac_cv_prog_CC="$CC" # Let the user override the test.
1226 ac_save_IFS=$IFS; IFS=$ac_path_separator
1228 for ac_dir in $ac_dummy; do
1230 test -z "$ac_dir" && ac_dir=.
1231 $as_executable_p "$ac_dir/$ac_word" || continue
1232 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1233 ac_prog_rejected=yes
1237 echo "$as_me:1237: found $ac_dir/$ac_word" >&5
1241 if test $ac_prog_rejected = yes; then
1242 # We found a bogon in the path, so make sure we never use it.
1243 set dummy $ac_cv_prog_CC
1245 if test $# != 0; then
1246 # We chose a different compiler from the bogus one.
1247 # However, it has the same basename, so the bogon will be chosen
1248 # first if we set CC to just the basename; use the full file name.
1250 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1258 if test -n "$CC"; then
1259 echo "$as_me:1259: result: $CC" >&5
1260 echo "${ECHO_T}$CC" >&6
1262 echo "$as_me:1262: result: no" >&5
1263 echo "${ECHO_T}no" >&6
1267 if test -z "$CC"; then
1268 if test -n "$ac_tool_prefix"; then
1271 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1272 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1273 echo "$as_me:1273: checking for $ac_word" >&5
1274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1275 if test "${ac_cv_prog_CC+set}" = set; then
1276 echo $ECHO_N "(cached) $ECHO_C" >&6
1278 if test -n "$CC"; then
1279 ac_cv_prog_CC="$CC" # Let the user override the test.
1281 ac_save_IFS=$IFS; IFS=$ac_path_separator
1283 for ac_dir in $ac_dummy; do
1285 test -z "$ac_dir" && ac_dir=.
1286 $as_executable_p "$ac_dir/$ac_word" || continue
1287 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1288 echo "$as_me:1288: found $ac_dir/$ac_word" >&5
1295 if test -n "$CC"; then
1296 echo "$as_me:1296: result: $CC" >&5
1297 echo "${ECHO_T}$CC" >&6
1299 echo "$as_me:1299: result: no" >&5
1300 echo "${ECHO_T}no" >&6
1303 test -n "$CC" && break
1306 if test -z "$CC"; then
1310 # Extract the first word of "$ac_prog", so it can be a program name with args.
1311 set dummy $ac_prog; ac_word=$2
1312 echo "$as_me:1312: checking for $ac_word" >&5
1313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1315 echo $ECHO_N "(cached) $ECHO_C" >&6
1317 if test -n "$ac_ct_CC"; then
1318 ac_cv_prog_ac_ct_CC="$ac_ct_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 ac_cv_prog_ac_ct_CC="$ac_prog"
1327 echo "$as_me:1327: found $ac_dir/$ac_word" >&5
1333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1334 if test -n "$ac_ct_CC"; then
1335 echo "$as_me:1335: result: $ac_ct_CC" >&5
1336 echo "${ECHO_T}$ac_ct_CC" >&6
1338 echo "$as_me:1338: result: no" >&5
1339 echo "${ECHO_T}no" >&6
1342 test -n "$ac_ct_CC" && break
1350 test -z "$CC" && { { echo "$as_me:1350: error: no acceptable cc found in \$PATH" >&5
1351 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1352 { (exit 1); exit 1; }; }
1354 # Provide some information about the compiler.
1355 echo "$as_me:1355:" \
1356 "checking for C compiler version" >&5
1357 ac_compiler=`set X $ac_compile; echo $2`
1358 { (eval echo "$as_me:1358: \"$ac_compiler --version </dev/null >&5\"") >&5
1359 (eval $ac_compiler --version </dev/null >&5) 2>&5
1361 echo "$as_me:1361: \$? = $ac_status" >&5
1362 (exit $ac_status); }
1363 { (eval echo "$as_me:1363: \"$ac_compiler -v </dev/null >&5\"") >&5
1364 (eval $ac_compiler -v </dev/null >&5) 2>&5
1366 echo "$as_me:1366: \$? = $ac_status" >&5
1367 (exit $ac_status); }
1368 { (eval echo "$as_me:1368: \"$ac_compiler -V </dev/null >&5\"") >&5
1369 (eval $ac_compiler -V </dev/null >&5) 2>&5
1371 echo "$as_me:1371: \$? = $ac_status" >&5
1372 (exit $ac_status); }
1374 cat >conftest.$ac_ext <<_ACEOF
1375 #line 1375 "configure"
1376 #include "confdefs.h"
1386 ac_clean_files_save=$ac_clean_files
1387 ac_clean_files="$ac_clean_files a.out a.exe"
1388 # Try to create an executable without -o first, disregard a.out.
1389 # It will help us diagnose broken compilers, and finding out an intuition
1391 echo "$as_me:1391: checking for C compiler default output" >&5
1392 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1393 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1394 if { (eval echo "$as_me:1394: \"$ac_link_default\"") >&5
1395 (eval $ac_link_default) 2>&5
1397 echo "$as_me:1397: \$? = $ac_status" >&5
1398 (exit $ac_status); }; then
1399 # Find the output, starting from the most likely. This scheme is
1400 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1402 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1403 ls a.out conftest 2>/dev/null;
1404 ls a.* conftest.* 2>/dev/null`; do
1406 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1407 a.out ) # We found the default executable, but exeext='' is most
1410 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1411 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1418 echo "$as_me: failed program was:" >&5
1419 cat conftest.$ac_ext >&5
1420 { { echo "$as_me:1420: error: C compiler cannot create executables" >&5
1421 echo "$as_me: error: C compiler cannot create executables" >&2;}
1422 { (exit 77); exit 77; }; }
1425 ac_exeext=$ac_cv_exeext
1426 echo "$as_me:1426: result: $ac_file" >&5
1427 echo "${ECHO_T}$ac_file" >&6
1429 # Check the compiler produces executables we can run. If not, either
1430 # the compiler is broken, or we cross compile.
1431 echo "$as_me:1431: checking whether the C compiler works" >&5
1432 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1433 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1434 # If not cross compiling, check that we can run a simple program.
1435 if test "$cross_compiling" != yes; then
1436 if { ac_try='./$ac_file'
1437 { (eval echo "$as_me:1437: \"$ac_try\"") >&5
1440 echo "$as_me:1440: \$? = $ac_status" >&5
1441 (exit $ac_status); }; }; then
1444 if test "$cross_compiling" = maybe; then
1447 { { echo "$as_me:1447: error: cannot run C compiled programs.
1448 If you meant to cross compile, use \`--host'." >&5
1449 echo "$as_me: error: cannot run C compiled programs.
1450 If you meant to cross compile, use \`--host'." >&2;}
1451 { (exit 1); exit 1; }; }
1455 echo "$as_me:1455: result: yes" >&5
1456 echo "${ECHO_T}yes" >&6
1458 rm -f a.out a.exe conftest$ac_cv_exeext
1459 ac_clean_files=$ac_clean_files_save
1460 # Check the compiler produces executables we can run. If not, either
1461 # the compiler is broken, or we cross compile.
1462 echo "$as_me:1462: checking whether we are cross compiling" >&5
1463 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1464 echo "$as_me:1464: result: $cross_compiling" >&5
1465 echo "${ECHO_T}$cross_compiling" >&6
1467 echo "$as_me:1467: checking for executable suffix" >&5
1468 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1469 if { (eval echo "$as_me:1469: \"$ac_link\"") >&5
1470 (eval $ac_link) 2>&5
1472 echo "$as_me:1472: \$? = $ac_status" >&5
1473 (exit $ac_status); }; then
1474 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1475 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1476 # work properly (i.e., refer to `conftest.exe'), while it won't with
1478 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1480 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1481 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1488 { { echo "$as_me:1488: error: cannot compute EXEEXT: cannot compile and link" >&5
1489 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1490 { (exit 1); exit 1; }; }
1493 rm -f conftest$ac_cv_exeext
1494 echo "$as_me:1494: result: $ac_cv_exeext" >&5
1495 echo "${ECHO_T}$ac_cv_exeext" >&6
1497 rm -f conftest.$ac_ext
1498 EXEEXT=$ac_cv_exeext
1500 echo "$as_me:1500: checking for object suffix" >&5
1501 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1502 if test "${ac_cv_objext+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 cat >conftest.$ac_ext <<_ACEOF
1506 #line 1506 "configure"
1507 #include "confdefs.h"
1517 rm -f conftest.o conftest.obj
1518 if { (eval echo "$as_me:1518: \"$ac_compile\"") >&5
1519 (eval $ac_compile) 2>&5
1521 echo "$as_me:1521: \$? = $ac_status" >&5
1522 (exit $ac_status); }; then
1523 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1525 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1526 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1531 echo "$as_me: failed program was:" >&5
1532 cat conftest.$ac_ext >&5
1533 { { echo "$as_me:1533: error: cannot compute OBJEXT: cannot compile" >&5
1534 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1535 { (exit 1); exit 1; }; }
1538 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1540 echo "$as_me:1540: result: $ac_cv_objext" >&5
1541 echo "${ECHO_T}$ac_cv_objext" >&6
1542 OBJEXT=$ac_cv_objext
1544 echo "$as_me:1544: checking whether we are using the GNU C compiler" >&5
1545 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1546 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1549 cat >conftest.$ac_ext <<_ACEOF
1550 #line 1550 "configure"
1551 #include "confdefs.h"
1564 rm -f conftest.$ac_objext
1565 if { (eval echo "$as_me:1565: \"$ac_compile\"") >&5
1566 (eval $ac_compile) 2>&5
1568 echo "$as_me:1568: \$? = $ac_status" >&5
1569 (exit $ac_status); } &&
1570 { ac_try='test -s conftest.$ac_objext'
1571 { (eval echo "$as_me:1571: \"$ac_try\"") >&5
1574 echo "$as_me:1574: \$? = $ac_status" >&5
1575 (exit $ac_status); }; }; then
1578 echo "$as_me: failed program was:" >&5
1579 cat conftest.$ac_ext >&5
1582 rm -f conftest.$ac_objext conftest.$ac_ext
1583 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1586 echo "$as_me:1586: result: $ac_cv_c_compiler_gnu" >&5
1587 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1588 GCC=`test $ac_compiler_gnu = yes && echo yes`
1589 ac_test_CFLAGS=${CFLAGS+set}
1590 ac_save_CFLAGS=$CFLAGS
1592 echo "$as_me:1592: checking whether $CC accepts -g" >&5
1593 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1594 if test "${ac_cv_prog_cc_g+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 cat >conftest.$ac_ext <<_ACEOF
1598 #line 1598 "configure"
1599 #include "confdefs.h"
1609 rm -f conftest.$ac_objext
1610 if { (eval echo "$as_me:1610: \"$ac_compile\"") >&5
1611 (eval $ac_compile) 2>&5
1613 echo "$as_me:1613: \$? = $ac_status" >&5
1614 (exit $ac_status); } &&
1615 { ac_try='test -s conftest.$ac_objext'
1616 { (eval echo "$as_me:1616: \"$ac_try\"") >&5
1619 echo "$as_me:1619: \$? = $ac_status" >&5
1620 (exit $ac_status); }; }; then
1623 echo "$as_me: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1627 rm -f conftest.$ac_objext conftest.$ac_ext
1629 echo "$as_me:1629: result: $ac_cv_prog_cc_g" >&5
1630 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1631 if test "$ac_test_CFLAGS" = set; then
1632 CFLAGS=$ac_save_CFLAGS
1633 elif test $ac_cv_prog_cc_g = yes; then
1634 if test "$GCC" = yes; then
1640 if test "$GCC" = yes; then
1646 # Some people use a C++ compiler to compile C. Since we use `exit',
1647 # in C++ we need to declare it. In case someone uses the same compiler
1648 # for both compiling C and C++ we need to have the C++ compiler decide
1649 # the declaration of exit, since it's the most demanding environment.
1650 cat >conftest.$ac_ext <<_ACEOF
1655 rm -f conftest.$ac_objext
1656 if { (eval echo "$as_me:1656: \"$ac_compile\"") >&5
1657 (eval $ac_compile) 2>&5
1659 echo "$as_me:1659: \$? = $ac_status" >&5
1660 (exit $ac_status); } &&
1661 { ac_try='test -s conftest.$ac_objext'
1662 { (eval echo "$as_me:1662: \"$ac_try\"") >&5
1665 echo "$as_me:1665: \$? = $ac_status" >&5
1666 (exit $ac_status); }; }; then
1667 for ac_declaration in \
1669 '#include <stdlib.h>' \
1670 'extern "C" void std::exit (int) throw (); using std::exit;' \
1671 'extern "C" void std::exit (int); using std::exit;' \
1672 'extern "C" void exit (int) throw ();' \
1673 'extern "C" void exit (int);' \
1676 cat >conftest.$ac_ext <<_ACEOF
1677 #line 1677 "configure"
1678 #include "confdefs.h"
1689 rm -f conftest.$ac_objext
1690 if { (eval echo "$as_me:1690: \"$ac_compile\"") >&5
1691 (eval $ac_compile) 2>&5
1693 echo "$as_me:1693: \$? = $ac_status" >&5
1694 (exit $ac_status); } &&
1695 { ac_try='test -s conftest.$ac_objext'
1696 { (eval echo "$as_me:1696: \"$ac_try\"") >&5
1699 echo "$as_me:1699: \$? = $ac_status" >&5
1700 (exit $ac_status); }; }; then
1703 echo "$as_me: failed program was:" >&5
1704 cat conftest.$ac_ext >&5
1707 rm -f conftest.$ac_objext conftest.$ac_ext
1708 cat >conftest.$ac_ext <<_ACEOF
1709 #line 1709 "configure"
1710 #include "confdefs.h"
1720 rm -f conftest.$ac_objext
1721 if { (eval echo "$as_me:1721: \"$ac_compile\"") >&5
1722 (eval $ac_compile) 2>&5
1724 echo "$as_me:1724: \$? = $ac_status" >&5
1725 (exit $ac_status); } &&
1726 { ac_try='test -s conftest.$ac_objext'
1727 { (eval echo "$as_me:1727: \"$ac_try\"") >&5
1730 echo "$as_me:1730: \$? = $ac_status" >&5
1731 (exit $ac_status); }; }; then
1734 echo "$as_me: failed program was:" >&5
1735 cat conftest.$ac_ext >&5
1737 rm -f conftest.$ac_objext conftest.$ac_ext
1740 if test -n "$ac_declaration"; then
1741 echo '#ifdef __cplusplus' >>confdefs.h
1742 echo $ac_declaration >>confdefs.h
1743 echo '#endif' >>confdefs.h
1747 echo "$as_me: failed program was:" >&5
1748 cat conftest.$ac_ext >&5
1750 rm -f conftest.$ac_objext conftest.$ac_ext
1752 ac_cpp='$CPP $CPPFLAGS'
1753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1756 ac_main_return=return
1759 if test "$GCC" = yes ; then
1760 echo "$as_me:1760: checking version of $CC" >&5
1761 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1762 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.].*//'`"
1763 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1764 echo "$as_me:1764: result: $GCC_VERSION" >&5
1765 echo "${ECHO_T}$GCC_VERSION" >&6
1768 echo "$as_me:1768: checking for $CC option to accept ANSI C" >&5
1769 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1770 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 ac_cv_prog_cc_stdc=no
1775 cat >conftest.$ac_ext <<_ACEOF
1776 #line 1776 "configure"
1777 #include "confdefs.h"
1780 #include <sys/types.h>
1781 #include <sys/stat.h>
1782 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1783 struct buf { int x; };
1784 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1785 static char *e (p, i)
1791 static char *f (char * (*g) (char **, int), char **p, ...)
1796 s = g (p, va_arg (v,int));
1800 int test (int i, double x);
1801 struct s1 {int (*f) (int a);};
1802 struct s2 {int (*f) (double a);};
1803 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1809 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1814 # Don't try gcc -ansi; that turns off useful extensions and
1815 # breaks some systems' header files.
1816 # AIX -qlanglvl=ansi
1817 # Ultrix and OSF/1 -std1
1818 # HP-UX 10.20 and later -Ae
1819 # HP-UX older versions -Aa -D_HPUX_SOURCE
1820 # SVR4 -Xc -D__EXTENSIONS__
1821 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1823 CC="$ac_save_CC $ac_arg"
1824 rm -f conftest.$ac_objext
1825 if { (eval echo "$as_me:1825: \"$ac_compile\"") >&5
1826 (eval $ac_compile) 2>&5
1828 echo "$as_me:1828: \$? = $ac_status" >&5
1829 (exit $ac_status); } &&
1830 { ac_try='test -s conftest.$ac_objext'
1831 { (eval echo "$as_me:1831: \"$ac_try\"") >&5
1834 echo "$as_me:1834: \$? = $ac_status" >&5
1835 (exit $ac_status); }; }; then
1836 ac_cv_prog_cc_stdc=$ac_arg
1839 echo "$as_me: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1842 rm -f conftest.$ac_objext
1844 rm -f conftest.$ac_ext conftest.$ac_objext
1849 case "x$ac_cv_prog_cc_stdc" in
1851 echo "$as_me:1851: result: none needed" >&5
1852 echo "${ECHO_T}none needed" >&6 ;;
1854 echo "$as_me:1854: result: $ac_cv_prog_cc_stdc" >&5
1855 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1856 CC="$CC $ac_cv_prog_cc_stdc" ;;
1859 # This should have been defined by AC_PROG_CC
1862 echo "$as_me:1862: checking \$CC variable" >&5
1863 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1866 echo "$as_me:1866: result: broken" >&5
1867 echo "${ECHO_T}broken" >&6
1868 { echo "$as_me:1868: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1869 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1871 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
1872 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
1874 for cf_arg in $cf_flags
1882 cf_new_extra_cppflags=
1884 for cf_add_cflags in $cf_arg
1886 case $cf_fix_cppflags in
1888 case $cf_add_cflags in
1889 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1890 case $cf_add_cflags in
1892 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1894 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1895 && test -z "${cf_tst_cflags}" \
1896 && cf_fix_cppflags=yes
1898 if test $cf_fix_cppflags = yes ; then
1900 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1901 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1904 elif test "${cf_tst_cflags}" = "\"'" ; then
1906 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1907 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1917 case $cf_add_cflags in
1919 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1921 CPPFLAGS=`echo "$CPPFLAGS" | \
1922 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1923 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1928 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
1929 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
1936 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
1937 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
1944 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1945 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1947 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
1949 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1950 && test -z "${cf_tst_cflags}" \
1951 && cf_fix_cppflags=no
1956 if test -n "$cf_new_cflags" ; then
1958 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
1959 CFLAGS="${CFLAGS}$cf_new_cflags"
1963 if test -n "$cf_new_cppflags" ; then
1965 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
1966 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
1970 if test -n "$cf_new_extra_cppflags" ; then
1972 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
1973 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
1983 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
1985 echo "${as_me:-configure}:1985: testing resulting CC: '$CC' ..." 1>&5
1987 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
1989 echo "${as_me:-configure}:1989: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
1991 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
1993 echo "${as_me:-configure}:1993: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
1997 echo "$as_me:1997: result: ok" >&5
1998 echo "${ECHO_T}ok" >&6
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007 ac_main_return=return
2008 echo "$as_me:2008: checking how to run the C preprocessor" >&5
2009 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2010 # On Suns, sometimes $CPP names a directory.
2011 if test -n "$CPP" && test -d "$CPP"; then
2014 if test -z "$CPP"; then
2015 if test "${ac_cv_prog_CPP+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 # Double quotes because CPP needs to be expanded
2019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2022 for ac_c_preproc_warn_flag in '' yes
2024 # Use a header file that comes with gcc, so configuring glibc
2025 # with a fresh cross-compiler works.
2026 # On the NeXT, cc -E runs the code through the compiler's parser,
2027 # not just through cpp. "Syntax error" is here to catch this case.
2028 cat >conftest.$ac_ext <<_ACEOF
2029 #line 2029 "configure"
2030 #include "confdefs.h"
2034 if { (eval echo "$as_me:2034: \"$ac_cpp conftest.$ac_ext\"") >&5
2035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2037 egrep -v '^ *\+' conftest.er1 >conftest.err
2039 cat conftest.err >&5
2040 echo "$as_me:2040: \$? = $ac_status" >&5
2041 (exit $ac_status); } >/dev/null; then
2042 if test -s conftest.err; then
2043 ac_cpp_err=$ac_c_preproc_warn_flag
2050 if test -z "$ac_cpp_err"; then
2053 echo "$as_me: failed program was:" >&5
2054 cat conftest.$ac_ext >&5
2055 # Broken: fails on valid input.
2058 rm -f conftest.err conftest.$ac_ext
2060 # OK, works on sane cases. Now check whether non-existent headers
2061 # can be detected and how.
2062 cat >conftest.$ac_ext <<_ACEOF
2063 #line 2063 "configure"
2064 #include "confdefs.h"
2065 #include <ac_nonexistent.h>
2067 if { (eval echo "$as_me:2067: \"$ac_cpp conftest.$ac_ext\"") >&5
2068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2070 egrep -v '^ *\+' conftest.er1 >conftest.err
2072 cat conftest.err >&5
2073 echo "$as_me:2073: \$? = $ac_status" >&5
2074 (exit $ac_status); } >/dev/null; then
2075 if test -s conftest.err; then
2076 ac_cpp_err=$ac_c_preproc_warn_flag
2083 if test -z "$ac_cpp_err"; then
2084 # Broken: success on invalid input.
2087 echo "$as_me: failed program was:" >&5
2088 cat conftest.$ac_ext >&5
2089 # Passes both tests.
2093 rm -f conftest.err conftest.$ac_ext
2096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2097 rm -f conftest.err conftest.$ac_ext
2098 if $ac_preproc_ok; then
2110 echo "$as_me:2110: result: $CPP" >&5
2111 echo "${ECHO_T}$CPP" >&6
2113 for ac_c_preproc_warn_flag in '' yes
2115 # Use a header file that comes with gcc, so configuring glibc
2116 # with a fresh cross-compiler works.
2117 # On the NeXT, cc -E runs the code through the compiler's parser,
2118 # not just through cpp. "Syntax error" is here to catch this case.
2119 cat >conftest.$ac_ext <<_ACEOF
2120 #line 2120 "configure"
2121 #include "confdefs.h"
2125 if { (eval echo "$as_me:2125: \"$ac_cpp conftest.$ac_ext\"") >&5
2126 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2128 egrep -v '^ *\+' conftest.er1 >conftest.err
2130 cat conftest.err >&5
2131 echo "$as_me:2131: \$? = $ac_status" >&5
2132 (exit $ac_status); } >/dev/null; then
2133 if test -s conftest.err; then
2134 ac_cpp_err=$ac_c_preproc_warn_flag
2141 if test -z "$ac_cpp_err"; then
2144 echo "$as_me: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2146 # Broken: fails on valid input.
2149 rm -f conftest.err conftest.$ac_ext
2151 # OK, works on sane cases. Now check whether non-existent headers
2152 # can be detected and how.
2153 cat >conftest.$ac_ext <<_ACEOF
2154 #line 2154 "configure"
2155 #include "confdefs.h"
2156 #include <ac_nonexistent.h>
2158 if { (eval echo "$as_me:2158: \"$ac_cpp conftest.$ac_ext\"") >&5
2159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2161 egrep -v '^ *\+' conftest.er1 >conftest.err
2163 cat conftest.err >&5
2164 echo "$as_me:2164: \$? = $ac_status" >&5
2165 (exit $ac_status); } >/dev/null; then
2166 if test -s conftest.err; then
2167 ac_cpp_err=$ac_c_preproc_warn_flag
2174 if test -z "$ac_cpp_err"; then
2175 # Broken: success on invalid input.
2178 echo "$as_me: failed program was:" >&5
2179 cat conftest.$ac_ext >&5
2180 # Passes both tests.
2184 rm -f conftest.err conftest.$ac_ext
2187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2188 rm -f conftest.err conftest.$ac_ext
2189 if $ac_preproc_ok; then
2192 { { echo "$as_me:2192: error: C preprocessor \"$CPP\" fails sanity check" >&5
2193 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2194 { (exit 1); exit 1; }; }
2198 ac_cpp='$CPP $CPPFLAGS'
2199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2202 ac_main_return=return
2204 echo "$as_me:2204: checking whether ${MAKE-make} sets \${MAKE}" >&5
2205 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2206 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2207 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 cat >conftest.make <<\EOF
2212 @echo 'ac_maketemp="${MAKE}"'
2214 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2215 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2216 if test -n "$ac_maketemp"; then
2217 eval ac_cv_prog_make_${ac_make}_set=yes
2219 eval ac_cv_prog_make_${ac_make}_set=no
2223 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2224 echo "$as_me:2224: result: yes" >&5
2225 echo "${ECHO_T}yes" >&6
2228 echo "$as_me:2228: result: no" >&5
2229 echo "${ECHO_T}no" >&6
2230 SET_MAKE="MAKE=${MAKE-make}"
2233 if test -n "$ac_tool_prefix"; then
2234 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2235 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2236 echo "$as_me:2236: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2238 if test "${ac_cv_prog_RANLIB+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 if test -n "$RANLIB"; then
2242 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2244 ac_save_IFS=$IFS; IFS=$ac_path_separator
2246 for ac_dir in $ac_dummy; do
2248 test -z "$ac_dir" && ac_dir=.
2249 $as_executable_p "$ac_dir/$ac_word" || continue
2250 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2251 echo "$as_me:2251: found $ac_dir/$ac_word" >&5
2257 RANLIB=$ac_cv_prog_RANLIB
2258 if test -n "$RANLIB"; then
2259 echo "$as_me:2259: result: $RANLIB" >&5
2260 echo "${ECHO_T}$RANLIB" >&6
2262 echo "$as_me:2262: result: no" >&5
2263 echo "${ECHO_T}no" >&6
2267 if test -z "$ac_cv_prog_RANLIB"; then
2268 ac_ct_RANLIB=$RANLIB
2269 # Extract the first word of "ranlib", so it can be a program name with args.
2270 set dummy ranlib; ac_word=$2
2271 echo "$as_me:2271: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2273 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 if test -n "$ac_ct_RANLIB"; then
2277 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2279 ac_save_IFS=$IFS; IFS=$ac_path_separator
2281 for ac_dir in $ac_dummy; do
2283 test -z "$ac_dir" && ac_dir=.
2284 $as_executable_p "$ac_dir/$ac_word" || continue
2285 ac_cv_prog_ac_ct_RANLIB="ranlib"
2286 echo "$as_me:2286: found $ac_dir/$ac_word" >&5
2290 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2293 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2294 if test -n "$ac_ct_RANLIB"; then
2295 echo "$as_me:2295: result: $ac_ct_RANLIB" >&5
2296 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2298 echo "$as_me:2298: result: no" >&5
2299 echo "${ECHO_T}no" >&6
2302 RANLIB=$ac_ct_RANLIB
2304 RANLIB="$ac_cv_prog_RANLIB"
2308 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2309 if test -f $ac_dir/install-sh; then
2311 ac_install_sh="$ac_aux_dir/install-sh -c"
2313 elif test -f $ac_dir/install.sh; then
2315 ac_install_sh="$ac_aux_dir/install.sh -c"
2317 elif test -f $ac_dir/shtool; then
2319 ac_install_sh="$ac_aux_dir/shtool install -c"
2323 if test -z "$ac_aux_dir"; then
2324 { { echo "$as_me:2324: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2325 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2326 { (exit 1); exit 1; }; }
2328 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2329 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2330 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2332 # Find a good install program. We prefer a C program (faster),
2333 # so one script is as good as another. But avoid the broken or
2334 # incompatible versions:
2335 # SysV /etc/install, /usr/sbin/install
2336 # SunOS /usr/etc/install
2337 # IRIX /sbin/install
2339 # AmigaOS /C/install, which installs bootblocks on floppy discs
2340 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2341 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2342 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2343 # ./install, which can be erroneously created by make from ./install.sh.
2344 echo "$as_me:2344: checking for a BSD compatible install" >&5
2345 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2346 if test -z "$INSTALL"; then
2347 if test "${ac_cv_path_install+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 ac_save_IFS=$IFS; IFS=$ac_path_separator
2351 for ac_dir in $PATH; do
2353 # Account for people who put trailing slashes in PATH elements.
2355 / | ./ | .// | /cC/* \
2356 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2359 # OSF1 and SCO ODT 3.0 have their own names for install.
2360 # Don't use installbsd from OSF since it installs stuff as root
2362 for ac_prog in ginstall scoinst install; do
2363 if $as_executable_p "$ac_dir/$ac_prog"; then
2364 if test $ac_prog = install &&
2365 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2366 # AIX install. It has an incompatible calling convention.
2368 elif test $ac_prog = install &&
2369 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2370 # program-specific install script used by HP pwplus--don't use.
2373 ac_cv_path_install="$ac_dir/$ac_prog -c"
2383 if test "${ac_cv_path_install+set}" = set; then
2384 INSTALL=$ac_cv_path_install
2386 # As a last resort, use the slow shell script. We don't cache a
2387 # path for INSTALL within a source directory, because that will
2388 # break other packages using the cache if that directory is
2389 # removed, or if the path is relative.
2390 INSTALL=$ac_install_sh
2393 echo "$as_me:2393: result: $INSTALL" >&5
2394 echo "${ECHO_T}$INSTALL" >&6
2396 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2397 # It thinks the first close brace ends the variable substitution.
2398 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2400 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2402 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2404 echo "$as_me:2404: checking whether ln -s works" >&5
2405 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2407 if test "$LN_S" = "ln -s"; then
2408 echo "$as_me:2408: result: yes" >&5
2409 echo "${ECHO_T}yes" >&6
2411 echo "$as_me:2411: result: no, using $LN_S" >&5
2412 echo "${ECHO_T}no, using $LN_S" >&6
2415 echo "$as_me:2415: checking if $LN_S -f options work" >&5
2416 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
2418 rm -f conf$$.src conf$$dst
2420 echo first >conf$$.src
2421 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
2426 rm -f conf$$.dst conf$$src
2427 echo "$as_me:2427: result: $cf_prog_ln_sf" >&5
2428 echo "${ECHO_T}$cf_prog_ln_sf" >&6
2430 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
2432 for ac_prog in lint cppcheck splint
2434 # Extract the first word of "$ac_prog", so it can be a program name with args.
2435 set dummy $ac_prog; ac_word=$2
2436 echo "$as_me:2436: checking for $ac_word" >&5
2437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2438 if test "${ac_cv_prog_LINT+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 if test -n "$LINT"; then
2442 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2444 ac_save_IFS=$IFS; IFS=$ac_path_separator
2446 for ac_dir in $ac_dummy; do
2448 test -z "$ac_dir" && ac_dir=.
2449 $as_executable_p "$ac_dir/$ac_word" || continue
2450 ac_cv_prog_LINT="$ac_prog"
2451 echo "$as_me:2451: found $ac_dir/$ac_word" >&5
2457 LINT=$ac_cv_prog_LINT
2458 if test -n "$LINT"; then
2459 echo "$as_me:2459: result: $LINT" >&5
2460 echo "${ECHO_T}$LINT" >&6
2462 echo "$as_me:2462: result: no" >&5
2463 echo "${ECHO_T}no" >&6
2466 test -n "$LINT" && break
2469 # Extract the first word of "groff", so it can be a program name with args.
2470 set dummy groff; ac_word=$2
2471 echo "$as_me:2471: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2473 if test "${ac_cv_path_GROFF_PATH+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 ac_cv_path_GROFF_PATH="$GROFF_PATH" # Let the user override the test with a path.
2481 ac_save_IFS=$IFS; IFS=$ac_path_separator
2483 for ac_dir in $ac_dummy; do
2485 test -z "$ac_dir" && ac_dir=.
2486 if $as_executable_p "$ac_dir/$ac_word"; then
2487 ac_cv_path_GROFF_PATH="$ac_dir/$ac_word"
2488 echo "$as_me:2488: found $ac_dir/$ac_word" >&5
2493 test -z "$ac_cv_path_GROFF_PATH" && ac_cv_path_GROFF_PATH="no"
2497 GROFF_PATH=$ac_cv_path_GROFF_PATH
2499 if test -n "$GROFF_PATH"; then
2500 echo "$as_me:2500: result: $GROFF_PATH" >&5
2501 echo "${ECHO_T}$GROFF_PATH" >&6
2503 echo "$as_me:2503: result: no" >&5
2504 echo "${ECHO_T}no" >&6
2507 for ac_prog in nroff mandoc
2509 # Extract the first word of "$ac_prog", so it can be a program name with args.
2510 set dummy $ac_prog; ac_word=$2
2511 echo "$as_me:2511: checking for $ac_word" >&5
2512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2513 if test "${ac_cv_path_NROFF_PATH+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 ac_cv_path_NROFF_PATH="$NROFF_PATH" # Let the user override the test with a path.
2521 ac_save_IFS=$IFS; IFS=$ac_path_separator
2523 for ac_dir in $ac_dummy; do
2525 test -z "$ac_dir" && ac_dir=.
2526 if $as_executable_p "$ac_dir/$ac_word"; then
2527 ac_cv_path_NROFF_PATH="$ac_dir/$ac_word"
2528 echo "$as_me:2528: found $ac_dir/$ac_word" >&5
2536 NROFF_PATH=$ac_cv_path_NROFF_PATH
2538 if test -n "$NROFF_PATH"; then
2539 echo "$as_me:2539: result: $NROFF_PATH" >&5
2540 echo "${ECHO_T}$NROFF_PATH" >&6
2542 echo "$as_me:2542: result: no" >&5
2543 echo "${ECHO_T}no" >&6
2546 test -n "$NROFF_PATH" && break
2548 test -n "$NROFF_PATH" || NROFF_PATH="no"
2550 # Extract the first word of "tbl", so it can be a program name with args.
2551 set dummy tbl; ac_word=$2
2552 echo "$as_me:2552: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2554 if test "${ac_cv_path_TBL_PATH+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 ac_cv_path_TBL_PATH="$TBL_PATH" # Let the user override the test with a path.
2562 ac_save_IFS=$IFS; IFS=$ac_path_separator
2564 for ac_dir in $ac_dummy; do
2566 test -z "$ac_dir" && ac_dir=.
2567 if $as_executable_p "$ac_dir/$ac_word"; then
2568 ac_cv_path_TBL_PATH="$ac_dir/$ac_word"
2569 echo "$as_me:2569: found $ac_dir/$ac_word" >&5
2574 test -z "$ac_cv_path_TBL_PATH" && ac_cv_path_TBL_PATH="cat"
2578 TBL_PATH=$ac_cv_path_TBL_PATH
2580 if test -n "$TBL_PATH"; then
2581 echo "$as_me:2581: result: $TBL_PATH" >&5
2582 echo "${ECHO_T}$TBL_PATH" >&6
2584 echo "$as_me:2584: result: no" >&5
2585 echo "${ECHO_T}no" >&6
2588 if test "x$GROFF_PATH" = xno
2597 test -z "$GROFF_NOTE" && NROFF_NOTE=
2599 if test -n "$ac_tool_prefix"; then
2600 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2601 set dummy ${ac_tool_prefix}ar; ac_word=$2
2602 echo "$as_me:2602: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2604 if test "${ac_cv_prog_AR+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 if test -n "$AR"; then
2608 ac_cv_prog_AR="$AR" # Let the user override the test.
2610 ac_save_IFS=$IFS; IFS=$ac_path_separator
2612 for ac_dir in $ac_dummy; do
2614 test -z "$ac_dir" && ac_dir=.
2615 $as_executable_p "$ac_dir/$ac_word" || continue
2616 ac_cv_prog_AR="${ac_tool_prefix}ar"
2617 echo "$as_me:2617: found $ac_dir/$ac_word" >&5
2624 if test -n "$AR"; then
2625 echo "$as_me:2625: result: $AR" >&5
2626 echo "${ECHO_T}$AR" >&6
2628 echo "$as_me:2628: result: no" >&5
2629 echo "${ECHO_T}no" >&6
2633 if test -z "$ac_cv_prog_AR"; then
2635 # Extract the first word of "ar", so it can be a program name with args.
2636 set dummy ar; ac_word=$2
2637 echo "$as_me:2637: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2639 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 if test -n "$ac_ct_AR"; then
2643 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2645 ac_save_IFS=$IFS; IFS=$ac_path_separator
2647 for ac_dir in $ac_dummy; do
2649 test -z "$ac_dir" && ac_dir=.
2650 $as_executable_p "$ac_dir/$ac_word" || continue
2651 ac_cv_prog_ac_ct_AR="ar"
2652 echo "$as_me:2652: found $ac_dir/$ac_word" >&5
2656 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
2659 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2660 if test -n "$ac_ct_AR"; then
2661 echo "$as_me:2661: result: $ac_ct_AR" >&5
2662 echo "${ECHO_T}$ac_ct_AR" >&6
2664 echo "$as_me:2664: result: no" >&5
2665 echo "${ECHO_T}no" >&6
2673 echo "$as_me:2673: checking for options to update archives" >&5
2674 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
2675 if test "${cf_cv_ar_flags+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 cf_cv_ar_flags=unknown
2680 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
2683 # check if $ARFLAGS already contains this choice
2684 if test "x$ARFLAGS" != "x" ; then
2685 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
2686 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
2692 rm -f conftest.$ac_cv_objext
2695 cat >conftest.$ac_ext <<EOF
2696 #line 2696 "configure"
2697 int testdata[3] = { 123, 456, 789 };
2699 if { (eval echo "$as_me:2699: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>&5
2702 echo "$as_me:2702: \$? = $ac_status" >&5
2703 (exit $ac_status); } ; then
2704 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
2705 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
2706 if test -f conftest.a ; then
2707 cf_cv_ar_flags=$cf_ar_flags
2711 test -n "$verbose" && echo " cannot compile test-program" 1>&6
2713 echo "${as_me:-configure}:2713: testing cannot compile test-program ..." 1>&5
2718 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
2721 echo "$as_me:2721: result: $cf_cv_ar_flags" >&5
2722 echo "${ECHO_T}$cf_cv_ar_flags" >&6
2724 if test -n "$ARFLAGS" ; then
2725 if test -n "$cf_cv_ar_flags" ; then
2726 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
2729 ARFLAGS=$cf_cv_ar_flags
2732 echo "$as_me:2732: checking for makeflags variable" >&5
2733 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
2734 if test "${cf_cv_makeflags+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
2741 cat >cf_makeflags.tmp <<CF_EOF
2744 @ echo '.$cf_option'
2746 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
2747 case "$cf_result" in
2749 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
2750 case "$cf_result" in
2751 (.*CC=*) cf_cv_makeflags=
2753 (*) cf_cv_makeflags=$cf_option
2762 echo "${as_me:-configure}:2762: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
2767 rm -f cf_makeflags.tmp
2770 echo "$as_me:2770: result: $cf_cv_makeflags" >&5
2771 echo "${ECHO_T}$cf_cv_makeflags" >&6
2773 echo "$as_me:2773: checking if filesystem supports mixed-case filenames" >&5
2774 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2775 if test "${cf_cv_mixedcase+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2779 if test "$cross_compiling" = yes ; then
2780 case $target_alias in
2781 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2789 rm -f conftest CONFTEST
2791 if test -f CONFTEST ; then
2796 rm -f conftest CONFTEST
2800 echo "$as_me:2800: result: $cf_cv_mixedcase" >&5
2801 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2802 test "$cf_cv_mixedcase" = yes &&
2803 cat >>confdefs.h <<\EOF
2804 #define MIXEDCASE_FILENAMES 1
2807 for ac_prog in exctags ctags
2809 # Extract the first word of "$ac_prog", so it can be a program name with args.
2810 set dummy $ac_prog; ac_word=$2
2811 echo "$as_me:2811: checking for $ac_word" >&5
2812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2813 if test "${ac_cv_prog_CTAGS+set}" = set; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 if test -n "$CTAGS"; then
2817 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2819 ac_save_IFS=$IFS; IFS=$ac_path_separator
2821 for ac_dir in $ac_dummy; do
2823 test -z "$ac_dir" && ac_dir=.
2824 $as_executable_p "$ac_dir/$ac_word" || continue
2825 ac_cv_prog_CTAGS="$ac_prog"
2826 echo "$as_me:2826: found $ac_dir/$ac_word" >&5
2832 CTAGS=$ac_cv_prog_CTAGS
2833 if test -n "$CTAGS"; then
2834 echo "$as_me:2834: result: $CTAGS" >&5
2835 echo "${ECHO_T}$CTAGS" >&6
2837 echo "$as_me:2837: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2841 test -n "$CTAGS" && break
2844 for ac_prog in exetags etags
2846 # Extract the first word of "$ac_prog", so it can be a program name with args.
2847 set dummy $ac_prog; ac_word=$2
2848 echo "$as_me:2848: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2850 if test "${ac_cv_prog_ETAGS+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 if test -n "$ETAGS"; then
2854 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2856 ac_save_IFS=$IFS; IFS=$ac_path_separator
2858 for ac_dir in $ac_dummy; do
2860 test -z "$ac_dir" && ac_dir=.
2861 $as_executable_p "$ac_dir/$ac_word" || continue
2862 ac_cv_prog_ETAGS="$ac_prog"
2863 echo "$as_me:2863: found $ac_dir/$ac_word" >&5
2869 ETAGS=$ac_cv_prog_ETAGS
2870 if test -n "$ETAGS"; then
2871 echo "$as_me:2871: result: $ETAGS" >&5
2872 echo "${ECHO_T}$ETAGS" >&6
2874 echo "$as_me:2874: result: no" >&5
2875 echo "${ECHO_T}no" >&6
2878 test -n "$ETAGS" && break
2881 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2882 set dummy ${CTAGS:-ctags}; ac_word=$2
2883 echo "$as_me:2883: checking for $ac_word" >&5
2884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2885 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 if test -n "$MAKE_LOWER_TAGS"; then
2889 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2891 ac_save_IFS=$IFS; IFS=$ac_path_separator
2893 for ac_dir in $ac_dummy; do
2895 test -z "$ac_dir" && ac_dir=.
2896 $as_executable_p "$ac_dir/$ac_word" || continue
2897 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2898 echo "$as_me:2898: found $ac_dir/$ac_word" >&5
2902 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2905 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2906 if test -n "$MAKE_LOWER_TAGS"; then
2907 echo "$as_me:2907: result: $MAKE_LOWER_TAGS" >&5
2908 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2910 echo "$as_me:2910: result: no" >&5
2911 echo "${ECHO_T}no" >&6
2914 if test "$cf_cv_mixedcase" = yes ; then
2915 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2916 set dummy ${ETAGS:-etags}; ac_word=$2
2917 echo "$as_me:2917: checking for $ac_word" >&5
2918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2919 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 if test -n "$MAKE_UPPER_TAGS"; then
2923 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2925 ac_save_IFS=$IFS; IFS=$ac_path_separator
2927 for ac_dir in $ac_dummy; do
2929 test -z "$ac_dir" && ac_dir=.
2930 $as_executable_p "$ac_dir/$ac_word" || continue
2931 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2932 echo "$as_me:2932: found $ac_dir/$ac_word" >&5
2936 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2939 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2940 if test -n "$MAKE_UPPER_TAGS"; then
2941 echo "$as_me:2941: result: $MAKE_UPPER_TAGS" >&5
2942 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2944 echo "$as_me:2944: result: no" >&5
2945 echo "${ECHO_T}no" >&6
2952 if test "$MAKE_UPPER_TAGS" = yes ; then
2958 if test "$MAKE_LOWER_TAGS" = yes ; then
2964 echo "$as_me:2964: checking if you want to see long compiling messages" >&5
2965 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
2967 # Check whether --enable-echo or --disable-echo was given.
2968 if test "${enable_echo+set}" = set; then
2969 enableval="$enable_echo"
2970 test "$enableval" != no && enableval=yes
2971 if test "$enableval" != "yes" ; then
2974 ECHO_LD='@echo linking $@;'
2975 RULE_CC='@echo compiling $<'
2976 SHOW_CC='@echo compiling $@'
2998 echo "$as_me:2998: result: $enableval" >&5
2999 echo "${ECHO_T}$enableval" >&6
3001 # Make sure we can run config.sub.
3002 $ac_config_sub sun4 >/dev/null 2>&1 ||
3003 { { echo "$as_me:3003: error: cannot run $ac_config_sub" >&5
3004 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3005 { (exit 1); exit 1; }; }
3007 echo "$as_me:3007: checking build system type" >&5
3008 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3009 if test "${ac_cv_build+set}" = set; then
3010 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 ac_cv_build_alias=$build_alias
3013 test -z "$ac_cv_build_alias" &&
3014 ac_cv_build_alias=`$ac_config_guess`
3015 test -z "$ac_cv_build_alias" &&
3016 { { echo "$as_me:3016: error: cannot guess build type; you must specify one" >&5
3017 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3018 { (exit 1); exit 1; }; }
3019 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3020 { { echo "$as_me:3020: error: $ac_config_sub $ac_cv_build_alias failed." >&5
3021 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
3022 { (exit 1); exit 1; }; }
3025 echo "$as_me:3025: result: $ac_cv_build" >&5
3026 echo "${ECHO_T}$ac_cv_build" >&6
3028 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3029 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3030 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3032 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
3033 echo "$as_me:3033: checking host system type" >&5
3034 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3035 if test "${ac_cv_host+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 ac_cv_host_alias=$host_alias
3039 test -z "$ac_cv_host_alias" &&
3040 ac_cv_host_alias=$ac_cv_build_alias
3041 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3042 { { echo "$as_me:3042: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3043 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3044 { (exit 1); exit 1; }; }
3047 echo "$as_me:3047: result: $ac_cv_host" >&5
3048 echo "${ECHO_T}$ac_cv_host" >&6
3050 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3051 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3052 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3054 system_name="$host_os"
3056 system_name="`(uname -s -r) 2>/dev/null`"
3057 if test -z "$system_name" ; then
3058 system_name="`(hostname) 2>/dev/null`"
3061 test -n "$system_name" &&
3062 cat >>confdefs.h <<EOF
3063 #define SYSTEM_NAME "$system_name"
3066 if test "${cf_cv_system_name+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 cf_cv_system_name="$system_name"
3072 test -z "$system_name" && system_name="$cf_cv_system_name"
3073 test -n "$cf_cv_system_name" && echo "$as_me:3073: result: Configuring for $cf_cv_system_name" >&5
3074 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
3076 if test ".$system_name" != ".$cf_cv_system_name" ; then
3077 echo "$as_me:3077: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
3078 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
3079 { { echo "$as_me:3079: error: \"Please remove config.cache and try again.\"" >&5
3080 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
3081 { (exit 1); exit 1; }; }
3084 case $cf_cv_system_name in
3086 CFLAGS="$CFLAGS -Zmt"
3088 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3089 CPPFLAGS="${CPPFLAGS}-D__ST_MT_ERRNO__"
3091 CXXFLAGS="$CXXFLAGS -Zmt"
3092 # autoconf's macro sets -Zexe and suffix both, which conflict:w
3093 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
3100 test -n "$PROG_EXT" &&
3101 cat >>confdefs.h <<EOF
3102 #define PROG_EXT "$PROG_EXT"
3105 echo "$as_me:3105: checking for PATH separator" >&5
3106 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
3107 case $cf_cv_system_name in
3108 (os2*) PATH_SEPARATOR=';' ;;
3109 (*) ${PATH_SEPARATOR:=':'} ;;
3112 echo "$as_me:3112: result: $PATH_SEPARATOR" >&5
3113 echo "${ECHO_T}$PATH_SEPARATOR" >&6
3115 case $cf_cv_system_name in
3117 if test "$DFT_LWR_MODEL" = libtool; then
3123 (*) LIB_PREFIX='lib'
3128 cf_POSIX_C_SOURCE=199506L
3133 cf_xopen_source="-D_ALL_SOURCE"
3139 cf_xopen_source="-D_APPLE_C_SOURCE"
3142 cf_xopen_source="-D_DARWIN_C_SOURCE"
3145 (freebsd*|dragonfly*)
3146 # 5.x headers associate
3147 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3148 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3149 cf_POSIX_C_SOURCE=200112L
3151 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3154 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3157 cf_xopen_source="-D_HPUX_SOURCE"
3160 cf_xopen_source="-D_SGI_SOURCE"
3163 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3165 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
3167 echo "$as_me:3167: checking if this is the GNU C library" >&5
3168 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
3169 if test "${cf_cv_gnu_library+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3173 cat >conftest.$ac_ext <<_ACEOF
3174 #line 3174 "configure"
3175 #include "confdefs.h"
3176 #include <sys/types.h>
3181 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
3184 # error not GNU C library
3190 rm -f conftest.$ac_objext
3191 if { (eval echo "$as_me:3191: \"$ac_compile\"") >&5
3192 (eval $ac_compile) 2>&5
3194 echo "$as_me:3194: \$? = $ac_status" >&5
3195 (exit $ac_status); } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (eval echo "$as_me:3197: \"$ac_try\"") >&5
3200 echo "$as_me:3200: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3202 cf_cv_gnu_library=yes
3204 echo "$as_me: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3206 cf_cv_gnu_library=no
3208 rm -f conftest.$ac_objext conftest.$ac_ext
3211 echo "$as_me:3211: result: $cf_cv_gnu_library" >&5
3212 echo "${ECHO_T}$cf_cv_gnu_library" >&6
3214 if test x$cf_cv_gnu_library = xyes; then
3216 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
3217 # was changed to help a little...
3218 echo "$as_me:3218: checking if _DEFAULT_SOURCE can be used as a basis" >&5
3219 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
3220 if test "${cf_cv_gnu_library_219+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3227 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3229 cat >conftest.$ac_ext <<_ACEOF
3230 #line 3230 "configure"
3231 #include "confdefs.h"
3232 #include <sys/types.h>
3237 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
3240 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
3246 rm -f conftest.$ac_objext
3247 if { (eval echo "$as_me:3247: \"$ac_compile\"") >&5
3248 (eval $ac_compile) 2>&5
3250 echo "$as_me:3250: \$? = $ac_status" >&5
3251 (exit $ac_status); } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (eval echo "$as_me:3253: \"$ac_try\"") >&5
3256 echo "$as_me:3256: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 cf_cv_gnu_library_219=yes
3260 echo "$as_me: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3262 cf_cv_gnu_library_219=no
3264 rm -f conftest.$ac_objext conftest.$ac_ext
3268 echo "$as_me:3268: result: $cf_cv_gnu_library_219" >&5
3269 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
3271 if test "x$cf_cv_gnu_library_219" = xyes; then
3273 echo "$as_me:3273: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
3274 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
3275 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 cf_new_extra_cppflags=
3284 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
3286 case $cf_fix_cppflags in
3288 case $cf_add_cflags in
3289 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3290 case $cf_add_cflags in
3292 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3294 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3295 && test -z "${cf_tst_cflags}" \
3296 && cf_fix_cppflags=yes
3298 if test $cf_fix_cppflags = yes ; then
3300 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3301 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3304 elif test "${cf_tst_cflags}" = "\"'" ; then
3306 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3307 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3317 case $cf_add_cflags in
3319 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3321 CPPFLAGS=`echo "$CPPFLAGS" | \
3322 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3323 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3328 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3329 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3336 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3337 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3344 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3345 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3347 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3349 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3350 && test -z "${cf_tst_cflags}" \
3351 && cf_fix_cppflags=no
3356 if test -n "$cf_new_cflags" ; then
3358 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3359 CFLAGS="${CFLAGS}$cf_new_cflags"
3363 if test -n "$cf_new_cppflags" ; then
3365 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3366 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3370 if test -n "$cf_new_extra_cppflags" ; then
3372 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3373 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3377 cat >conftest.$ac_ext <<_ACEOF
3378 #line 3378 "configure"
3379 #include "confdefs.h"
3382 #include <sys/types.h>
3388 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
3391 # error GNU C library is too old
3397 rm -f conftest.$ac_objext
3398 if { (eval echo "$as_me:3398: \"$ac_compile\"") >&5
3399 (eval $ac_compile) 2>&5
3401 echo "$as_me:3401: \$? = $ac_status" >&5
3402 (exit $ac_status); } &&
3403 { ac_try='test -s conftest.$ac_objext'
3404 { (eval echo "$as_me:3404: \"$ac_try\"") >&5
3407 echo "$as_me:3407: \$? = $ac_status" >&5
3408 (exit $ac_status); }; }; then
3409 cf_cv_gnu_dftsrc_219=yes
3411 echo "$as_me: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3413 cf_cv_gnu_dftsrc_219=no
3415 rm -f conftest.$ac_objext conftest.$ac_ext
3418 echo "$as_me:3418: result: $cf_cv_gnu_dftsrc_219" >&5
3419 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
3420 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
3422 cf_cv_gnu_dftsrc_219=maybe
3425 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
3427 echo "$as_me:3427: checking if we must define _GNU_SOURCE" >&5
3428 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3429 if test "${cf_cv_gnu_source+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 cat >conftest.$ac_ext <<_ACEOF
3434 #line 3434 "configure"
3435 #include "confdefs.h"
3436 #include <sys/types.h>
3441 #ifndef _XOPEN_SOURCE
3442 #error expected _XOPEN_SOURCE to be defined
3448 rm -f conftest.$ac_objext
3449 if { (eval echo "$as_me:3449: \"$ac_compile\"") >&5
3450 (eval $ac_compile) 2>&5
3452 echo "$as_me:3452: \$? = $ac_status" >&5
3453 (exit $ac_status); } &&
3454 { ac_try='test -s conftest.$ac_objext'
3455 { (eval echo "$as_me:3455: \"$ac_try\"") >&5
3458 echo "$as_me:3458: \$? = $ac_status" >&5
3459 (exit $ac_status); }; }; then
3462 echo "$as_me: failed program was:" >&5
3463 cat conftest.$ac_ext >&5
3469 cf_new_extra_cppflags=
3471 for cf_add_cflags in -D_GNU_SOURCE
3473 case $cf_fix_cppflags in
3475 case $cf_add_cflags in
3476 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3477 case $cf_add_cflags in
3479 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3481 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3482 && test -z "${cf_tst_cflags}" \
3483 && cf_fix_cppflags=yes
3485 if test $cf_fix_cppflags = yes ; then
3487 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3488 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3491 elif test "${cf_tst_cflags}" = "\"'" ; then
3493 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3494 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3504 case $cf_add_cflags in
3506 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3508 CPPFLAGS=`echo "$CPPFLAGS" | \
3509 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3510 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3515 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3516 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3523 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3524 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3531 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3532 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3534 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3536 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3537 && test -z "${cf_tst_cflags}" \
3538 && cf_fix_cppflags=no
3543 if test -n "$cf_new_cflags" ; then
3545 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3546 CFLAGS="${CFLAGS}$cf_new_cflags"
3550 if test -n "$cf_new_cppflags" ; then
3552 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3553 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3557 if test -n "$cf_new_extra_cppflags" ; then
3559 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3560 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3564 cat >conftest.$ac_ext <<_ACEOF
3565 #line 3565 "configure"
3566 #include "confdefs.h"
3567 #include <sys/types.h>
3572 #ifdef _XOPEN_SOURCE
3573 #error expected _XOPEN_SOURCE to be undefined
3579 rm -f conftest.$ac_objext
3580 if { (eval echo "$as_me:3580: \"$ac_compile\"") >&5
3581 (eval $ac_compile) 2>&5
3583 echo "$as_me:3583: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
3585 { ac_try='test -s conftest.$ac_objext'
3586 { (eval echo "$as_me:3586: \"$ac_try\"") >&5
3589 echo "$as_me:3589: \$? = $ac_status" >&5
3590 (exit $ac_status); }; }; then
3593 echo "$as_me: failed program was:" >&5
3594 cat conftest.$ac_ext >&5
3595 cf_cv_gnu_source=yes
3597 rm -f conftest.$ac_objext conftest.$ac_ext
3601 rm -f conftest.$ac_objext conftest.$ac_ext
3604 echo "$as_me:3604: result: $cf_cv_gnu_source" >&5
3605 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3607 if test "$cf_cv_gnu_source" = yes
3609 echo "$as_me:3609: checking if we should also define _DEFAULT_SOURCE" >&5
3610 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
3611 if test "${cf_cv_default_source+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3615 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3616 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
3618 cat >conftest.$ac_ext <<_ACEOF
3619 #line 3619 "configure"
3620 #include "confdefs.h"
3621 #include <sys/types.h>
3626 #ifdef _DEFAULT_SOURCE
3627 #error expected _DEFAULT_SOURCE to be undefined
3633 rm -f conftest.$ac_objext
3634 if { (eval echo "$as_me:3634: \"$ac_compile\"") >&5
3635 (eval $ac_compile) 2>&5
3637 echo "$as_me:3637: \$? = $ac_status" >&5
3638 (exit $ac_status); } &&
3639 { ac_try='test -s conftest.$ac_objext'
3640 { (eval echo "$as_me:3640: \"$ac_try\"") >&5
3643 echo "$as_me:3643: \$? = $ac_status" >&5
3644 (exit $ac_status); }; }; then
3645 cf_cv_default_source=no
3647 echo "$as_me: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3649 cf_cv_default_source=yes
3651 rm -f conftest.$ac_objext conftest.$ac_ext
3654 echo "$as_me:3654: result: $cf_cv_default_source" >&5
3655 echo "${ECHO_T}$cf_cv_default_source" >&6
3656 if test "$cf_cv_default_source" = yes
3659 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3660 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3670 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
3673 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3676 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3678 cf_save_CFLAGS="$CFLAGS"
3679 cf_save_CPPFLAGS="$CPPFLAGS"
3681 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3682 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3683 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3685 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3686 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3687 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3689 echo "$as_me:3689: checking if we should define _POSIX_C_SOURCE" >&5
3690 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3691 if test "${cf_cv_posix_c_source+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 echo "${as_me:-configure}:3695: testing if the symbol is already defined go no further ..." 1>&5
3697 cat >conftest.$ac_ext <<_ACEOF
3698 #line 3698 "configure"
3699 #include "confdefs.h"
3700 #include <sys/types.h>
3705 #ifndef _POSIX_C_SOURCE
3712 rm -f conftest.$ac_objext
3713 if { (eval echo "$as_me:3713: \"$ac_compile\"") >&5
3714 (eval $ac_compile) 2>&5
3716 echo "$as_me:3716: \$? = $ac_status" >&5
3717 (exit $ac_status); } &&
3718 { ac_try='test -s conftest.$ac_objext'
3719 { (eval echo "$as_me:3719: \"$ac_try\"") >&5
3722 echo "$as_me:3722: \$? = $ac_status" >&5
3723 (exit $ac_status); }; }; then
3724 cf_cv_posix_c_source=no
3726 echo "$as_me: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3728 cf_want_posix_source=no
3729 case .$cf_POSIX_C_SOURCE in
3731 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3734 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3735 cf_want_posix_source=yes
3738 cf_want_posix_source=yes
3741 if test "$cf_want_posix_source" = yes ; then
3742 cat >conftest.$ac_ext <<_ACEOF
3743 #line 3743 "configure"
3744 #include "confdefs.h"
3745 #include <sys/types.h>
3750 #ifdef _POSIX_SOURCE
3757 rm -f conftest.$ac_objext
3758 if { (eval echo "$as_me:3758: \"$ac_compile\"") >&5
3759 (eval $ac_compile) 2>&5
3761 echo "$as_me:3761: \$? = $ac_status" >&5
3762 (exit $ac_status); } &&
3763 { ac_try='test -s conftest.$ac_objext'
3764 { (eval echo "$as_me:3764: \"$ac_try\"") >&5
3767 echo "$as_me:3767: \$? = $ac_status" >&5
3768 (exit $ac_status); }; }; then
3771 echo "$as_me: failed program was:" >&5
3772 cat conftest.$ac_ext >&5
3773 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3775 rm -f conftest.$ac_objext conftest.$ac_ext
3778 echo "${as_me:-configure}:3778: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3780 CFLAGS="$cf_trim_CFLAGS"
3781 CPPFLAGS="$cf_trim_CPPFLAGS"
3783 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3784 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
3786 echo "${as_me:-configure}:3786: testing if the second compile does not leave our definition intact error ..." 1>&5
3788 cat >conftest.$ac_ext <<_ACEOF
3789 #line 3789 "configure"
3790 #include "confdefs.h"
3791 #include <sys/types.h>
3796 #ifndef _POSIX_C_SOURCE
3803 rm -f conftest.$ac_objext
3804 if { (eval echo "$as_me:3804: \"$ac_compile\"") >&5
3805 (eval $ac_compile) 2>&5
3807 echo "$as_me:3807: \$? = $ac_status" >&5
3808 (exit $ac_status); } &&
3809 { ac_try='test -s conftest.$ac_objext'
3810 { (eval echo "$as_me:3810: \"$ac_try\"") >&5
3813 echo "$as_me:3813: \$? = $ac_status" >&5
3814 (exit $ac_status); }; }; then
3817 echo "$as_me: failed program was:" >&5
3818 cat conftest.$ac_ext >&5
3819 cf_cv_posix_c_source=no
3821 rm -f conftest.$ac_objext conftest.$ac_ext
3822 CFLAGS="$cf_save_CFLAGS"
3823 CPPFLAGS="$cf_save_CPPFLAGS"
3826 rm -f conftest.$ac_objext conftest.$ac_ext
3829 echo "$as_me:3829: result: $cf_cv_posix_c_source" >&5
3830 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3832 if test "$cf_cv_posix_c_source" != no ; then
3833 CFLAGS="$cf_trim_CFLAGS"
3834 CPPFLAGS="$cf_trim_CPPFLAGS"
3839 cf_new_extra_cppflags=
3841 for cf_add_cflags in $cf_cv_posix_c_source
3843 case $cf_fix_cppflags in
3845 case $cf_add_cflags in
3846 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3847 case $cf_add_cflags in
3849 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3851 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3852 && test -z "${cf_tst_cflags}" \
3853 && cf_fix_cppflags=yes
3855 if test $cf_fix_cppflags = yes ; then
3857 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3858 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3861 elif test "${cf_tst_cflags}" = "\"'" ; then
3863 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3864 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3874 case $cf_add_cflags in
3876 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3878 CPPFLAGS=`echo "$CPPFLAGS" | \
3879 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3880 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3885 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3886 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3893 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3894 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3901 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3902 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3904 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3906 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3907 && test -z "${cf_tst_cflags}" \
3908 && cf_fix_cppflags=no
3913 if test -n "$cf_new_cflags" ; then
3915 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3916 CFLAGS="${CFLAGS}$cf_new_cflags"
3920 if test -n "$cf_new_cppflags" ; then
3922 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3923 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3927 if test -n "$cf_new_extra_cppflags" ; then
3929 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3930 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3938 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3941 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3942 cf_xopen_source="-D_BSD_SOURCE"
3946 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3949 cf_xopen_source="-D_OSF_SOURCE"
3952 cf_xopen_source="-D_QNX_SOURCE"
3955 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3958 cf_xopen_source="-D__EXTENSIONS__"
3959 cf_cv_xopen_source=broken
3961 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3967 echo "$as_me:3967: checking if we should define _XOPEN_SOURCE" >&5
3968 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3969 if test "${cf_cv_xopen_source+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 cat >conftest.$ac_ext <<_ACEOF
3974 #line 3974 "configure"
3975 #include "confdefs.h"
3979 #include <sys/types.h>
3985 #ifndef _XOPEN_SOURCE
3992 rm -f conftest.$ac_objext
3993 if { (eval echo "$as_me:3993: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>&5
3996 echo "$as_me:3996: \$? = $ac_status" >&5
3997 (exit $ac_status); } &&
3998 { ac_try='test -s conftest.$ac_objext'
3999 { (eval echo "$as_me:3999: \"$ac_try\"") >&5
4002 echo "$as_me:4002: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 cf_cv_xopen_source=no
4006 echo "$as_me: failed program was:" >&5
4007 cat conftest.$ac_ext >&5
4010 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4011 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4013 cat >conftest.$ac_ext <<_ACEOF
4014 #line 4014 "configure"
4015 #include "confdefs.h"
4019 #include <sys/types.h>
4025 #ifdef _XOPEN_SOURCE
4032 rm -f conftest.$ac_objext
4033 if { (eval echo "$as_me:4033: \"$ac_compile\"") >&5
4034 (eval $ac_compile) 2>&5
4036 echo "$as_me:4036: \$? = $ac_status" >&5
4037 (exit $ac_status); } &&
4038 { ac_try='test -s conftest.$ac_objext'
4039 { (eval echo "$as_me:4039: \"$ac_try\"") >&5
4042 echo "$as_me:4042: \$? = $ac_status" >&5
4043 (exit $ac_status); }; }; then
4044 cf_cv_xopen_source=no
4046 echo "$as_me: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4048 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4050 rm -f conftest.$ac_objext conftest.$ac_ext
4054 rm -f conftest.$ac_objext conftest.$ac_ext
4057 echo "$as_me:4057: result: $cf_cv_xopen_source" >&5
4058 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4060 if test "$cf_cv_xopen_source" != no ; then
4062 CFLAGS=`echo "$CFLAGS" | \
4063 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4064 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4066 CPPFLAGS=`echo "$CPPFLAGS" | \
4067 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4068 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4070 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4075 cf_new_extra_cppflags=
4077 for cf_add_cflags in $cf_temp_xopen_source
4079 case $cf_fix_cppflags in
4081 case $cf_add_cflags in
4082 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4083 case $cf_add_cflags in
4085 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4087 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4088 && test -z "${cf_tst_cflags}" \
4089 && cf_fix_cppflags=yes
4091 if test $cf_fix_cppflags = yes ; then
4093 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4094 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4097 elif test "${cf_tst_cflags}" = "\"'" ; then
4099 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4100 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4110 case $cf_add_cflags in
4112 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4114 CPPFLAGS=`echo "$CPPFLAGS" | \
4115 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4116 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4121 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4122 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4129 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4130 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4137 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4138 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4140 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4142 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4143 && test -z "${cf_tst_cflags}" \
4144 && cf_fix_cppflags=no
4149 if test -n "$cf_new_cflags" ; then
4151 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4152 CFLAGS="${CFLAGS}$cf_new_cflags"
4156 if test -n "$cf_new_cppflags" ; then
4158 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4159 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4163 if test -n "$cf_new_extra_cppflags" ; then
4165 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4166 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4172 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
4174 cf_save_CFLAGS="$CFLAGS"
4175 cf_save_CPPFLAGS="$CPPFLAGS"
4177 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
4178 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4179 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4181 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
4182 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4183 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4185 echo "$as_me:4185: checking if we should define _POSIX_C_SOURCE" >&5
4186 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4187 if test "${cf_cv_posix_c_source+set}" = set; then
4188 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 echo "${as_me:-configure}:4191: testing if the symbol is already defined go no further ..." 1>&5
4193 cat >conftest.$ac_ext <<_ACEOF
4194 #line 4194 "configure"
4195 #include "confdefs.h"
4196 #include <sys/types.h>
4201 #ifndef _POSIX_C_SOURCE
4208 rm -f conftest.$ac_objext
4209 if { (eval echo "$as_me:4209: \"$ac_compile\"") >&5
4210 (eval $ac_compile) 2>&5
4212 echo "$as_me:4212: \$? = $ac_status" >&5
4213 (exit $ac_status); } &&
4214 { ac_try='test -s conftest.$ac_objext'
4215 { (eval echo "$as_me:4215: \"$ac_try\"") >&5
4218 echo "$as_me:4218: \$? = $ac_status" >&5
4219 (exit $ac_status); }; }; then
4220 cf_cv_posix_c_source=no
4222 echo "$as_me: failed program was:" >&5
4223 cat conftest.$ac_ext >&5
4224 cf_want_posix_source=no
4225 case .$cf_POSIX_C_SOURCE in
4227 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4230 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4231 cf_want_posix_source=yes
4234 cf_want_posix_source=yes
4237 if test "$cf_want_posix_source" = yes ; then
4238 cat >conftest.$ac_ext <<_ACEOF
4239 #line 4239 "configure"
4240 #include "confdefs.h"
4241 #include <sys/types.h>
4246 #ifdef _POSIX_SOURCE
4253 rm -f conftest.$ac_objext
4254 if { (eval echo "$as_me:4254: \"$ac_compile\"") >&5
4255 (eval $ac_compile) 2>&5
4257 echo "$as_me:4257: \$? = $ac_status" >&5
4258 (exit $ac_status); } &&
4259 { ac_try='test -s conftest.$ac_objext'
4260 { (eval echo "$as_me:4260: \"$ac_try\"") >&5
4263 echo "$as_me:4263: \$? = $ac_status" >&5
4264 (exit $ac_status); }; }; then
4267 echo "$as_me: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4269 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4271 rm -f conftest.$ac_objext conftest.$ac_ext
4274 echo "${as_me:-configure}:4274: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4276 CFLAGS="$cf_trim_CFLAGS"
4277 CPPFLAGS="$cf_trim_CPPFLAGS"
4279 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4280 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
4282 echo "${as_me:-configure}:4282: testing if the second compile does not leave our definition intact error ..." 1>&5
4284 cat >conftest.$ac_ext <<_ACEOF
4285 #line 4285 "configure"
4286 #include "confdefs.h"
4287 #include <sys/types.h>
4292 #ifndef _POSIX_C_SOURCE
4299 rm -f conftest.$ac_objext
4300 if { (eval echo "$as_me:4300: \"$ac_compile\"") >&5
4301 (eval $ac_compile) 2>&5
4303 echo "$as_me:4303: \$? = $ac_status" >&5
4304 (exit $ac_status); } &&
4305 { ac_try='test -s conftest.$ac_objext'
4306 { (eval echo "$as_me:4306: \"$ac_try\"") >&5
4309 echo "$as_me:4309: \$? = $ac_status" >&5
4310 (exit $ac_status); }; }; then
4313 echo "$as_me: failed program was:" >&5
4314 cat conftest.$ac_ext >&5
4315 cf_cv_posix_c_source=no
4317 rm -f conftest.$ac_objext conftest.$ac_ext
4318 CFLAGS="$cf_save_CFLAGS"
4319 CPPFLAGS="$cf_save_CPPFLAGS"
4322 rm -f conftest.$ac_objext conftest.$ac_ext
4325 echo "$as_me:4325: result: $cf_cv_posix_c_source" >&5
4326 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4328 if test "$cf_cv_posix_c_source" != no ; then
4329 CFLAGS="$cf_trim_CFLAGS"
4330 CPPFLAGS="$cf_trim_CPPFLAGS"
4335 cf_new_extra_cppflags=
4337 for cf_add_cflags in $cf_cv_posix_c_source
4339 case $cf_fix_cppflags in
4341 case $cf_add_cflags in
4342 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4343 case $cf_add_cflags in
4345 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4347 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4348 && test -z "${cf_tst_cflags}" \
4349 && cf_fix_cppflags=yes
4351 if test $cf_fix_cppflags = yes ; then
4353 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4354 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4357 elif test "${cf_tst_cflags}" = "\"'" ; then
4359 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4360 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4370 case $cf_add_cflags in
4372 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4374 CPPFLAGS=`echo "$CPPFLAGS" | \
4375 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4376 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4381 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4382 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4389 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4390 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4397 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4398 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4400 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4402 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4403 && test -z "${cf_tst_cflags}" \
4404 && cf_fix_cppflags=no
4409 if test -n "$cf_new_cflags" ; then
4411 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4412 CFLAGS="${CFLAGS}$cf_new_cflags"
4416 if test -n "$cf_new_cppflags" ; then
4418 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4419 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4423 if test -n "$cf_new_extra_cppflags" ; then
4425 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4426 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4435 if test -n "$cf_xopen_source" ; then
4440 cf_new_extra_cppflags=
4442 for cf_add_cflags in $cf_xopen_source
4444 case $cf_fix_cppflags in
4446 case $cf_add_cflags in
4447 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4448 case $cf_add_cflags in
4450 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4452 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4453 && test -z "${cf_tst_cflags}" \
4454 && cf_fix_cppflags=yes
4456 if test $cf_fix_cppflags = yes ; then
4458 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4459 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4462 elif test "${cf_tst_cflags}" = "\"'" ; then
4464 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4465 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4475 case $cf_add_cflags in
4477 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4479 CPPFLAGS=`echo "$CPPFLAGS" | \
4480 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4481 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4486 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4487 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4494 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4495 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4502 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4503 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4505 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4507 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4508 && test -z "${cf_tst_cflags}" \
4509 && cf_fix_cppflags=no
4514 if test -n "$cf_new_cflags" ; then
4515 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
4517 echo "${as_me:-configure}:4517: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
4519 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4520 CFLAGS="${CFLAGS}$cf_new_cflags"
4524 if test -n "$cf_new_cppflags" ; then
4525 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
4527 echo "${as_me:-configure}:4527: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
4529 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4530 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4534 if test -n "$cf_new_extra_cppflags" ; then
4535 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
4537 echo "${as_me:-configure}:4537: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
4539 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4540 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4546 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4547 echo "$as_me:4547: checking if _XOPEN_SOURCE really is set" >&5
4548 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4549 cat >conftest.$ac_ext <<_ACEOF
4550 #line 4550 "configure"
4551 #include "confdefs.h"
4557 #ifndef _XOPEN_SOURCE
4564 rm -f conftest.$ac_objext
4565 if { (eval echo "$as_me:4565: \"$ac_compile\"") >&5
4566 (eval $ac_compile) 2>&5
4568 echo "$as_me:4568: \$? = $ac_status" >&5
4569 (exit $ac_status); } &&
4570 { ac_try='test -s conftest.$ac_objext'
4571 { (eval echo "$as_me:4571: \"$ac_try\"") >&5
4574 echo "$as_me:4574: \$? = $ac_status" >&5
4575 (exit $ac_status); }; }; then
4576 cf_XOPEN_SOURCE_set=yes
4578 echo "$as_me: failed program was:" >&5
4579 cat conftest.$ac_ext >&5
4580 cf_XOPEN_SOURCE_set=no
4582 rm -f conftest.$ac_objext conftest.$ac_ext
4583 echo "$as_me:4583: result: $cf_XOPEN_SOURCE_set" >&5
4584 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
4585 if test $cf_XOPEN_SOURCE_set = yes
4587 cat >conftest.$ac_ext <<_ACEOF
4588 #line 4588 "configure"
4589 #include "confdefs.h"
4595 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4602 rm -f conftest.$ac_objext
4603 if { (eval echo "$as_me:4603: \"$ac_compile\"") >&5
4604 (eval $ac_compile) 2>&5
4606 echo "$as_me:4606: \$? = $ac_status" >&5
4607 (exit $ac_status); } &&
4608 { ac_try='test -s conftest.$ac_objext'
4609 { (eval echo "$as_me:4609: \"$ac_try\"") >&5
4612 echo "$as_me:4612: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 cf_XOPEN_SOURCE_set_ok=yes
4616 echo "$as_me: failed program was:" >&5
4617 cat conftest.$ac_ext >&5
4618 cf_XOPEN_SOURCE_set_ok=no
4620 rm -f conftest.$ac_objext conftest.$ac_ext
4621 if test $cf_XOPEN_SOURCE_set_ok = no
4623 { echo "$as_me:4623: WARNING: _XOPEN_SOURCE is lower than requested" >&5
4624 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
4628 echo "$as_me:4628: checking if we should define _XOPEN_SOURCE" >&5
4629 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4630 if test "${cf_cv_xopen_source+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 cat >conftest.$ac_ext <<_ACEOF
4635 #line 4635 "configure"
4636 #include "confdefs.h"
4640 #include <sys/types.h>
4646 #ifndef _XOPEN_SOURCE
4653 rm -f conftest.$ac_objext
4654 if { (eval echo "$as_me:4654: \"$ac_compile\"") >&5
4655 (eval $ac_compile) 2>&5
4657 echo "$as_me:4657: \$? = $ac_status" >&5
4658 (exit $ac_status); } &&
4659 { ac_try='test -s conftest.$ac_objext'
4660 { (eval echo "$as_me:4660: \"$ac_try\"") >&5
4663 echo "$as_me:4663: \$? = $ac_status" >&5
4664 (exit $ac_status); }; }; then
4665 cf_cv_xopen_source=no
4667 echo "$as_me: failed program was:" >&5
4668 cat conftest.$ac_ext >&5
4671 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4672 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4674 cat >conftest.$ac_ext <<_ACEOF
4675 #line 4675 "configure"
4676 #include "confdefs.h"
4680 #include <sys/types.h>
4686 #ifdef _XOPEN_SOURCE
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:4694: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>&5
4697 echo "$as_me:4697: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try='test -s conftest.$ac_objext'
4700 { (eval echo "$as_me:4700: \"$ac_try\"") >&5
4703 echo "$as_me:4703: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 cf_cv_xopen_source=no
4707 echo "$as_me: failed program was:" >&5
4708 cat conftest.$ac_ext >&5
4709 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4711 rm -f conftest.$ac_objext conftest.$ac_ext
4715 rm -f conftest.$ac_objext conftest.$ac_ext
4718 echo "$as_me:4718: result: $cf_cv_xopen_source" >&5
4719 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4721 if test "$cf_cv_xopen_source" != no ; then
4723 CFLAGS=`echo "$CFLAGS" | \
4724 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4725 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4727 CPPFLAGS=`echo "$CPPFLAGS" | \
4728 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4729 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4731 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4736 cf_new_extra_cppflags=
4738 for cf_add_cflags in $cf_temp_xopen_source
4740 case $cf_fix_cppflags in
4742 case $cf_add_cflags in
4743 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4744 case $cf_add_cflags in
4746 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4748 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4749 && test -z "${cf_tst_cflags}" \
4750 && cf_fix_cppflags=yes
4752 if test $cf_fix_cppflags = yes ; then
4754 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4755 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4758 elif test "${cf_tst_cflags}" = "\"'" ; then
4760 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4761 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4771 case $cf_add_cflags in
4773 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4775 CPPFLAGS=`echo "$CPPFLAGS" | \
4776 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4777 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4782 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4783 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4790 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4791 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
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"
4801 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4803 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4804 && test -z "${cf_tst_cflags}" \
4805 && cf_fix_cppflags=no
4810 if test -n "$cf_new_cflags" ; then
4812 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4813 CFLAGS="${CFLAGS}$cf_new_cflags"
4817 if test -n "$cf_new_cppflags" ; then
4819 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4820 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4824 if test -n "$cf_new_extra_cppflags" ; then
4826 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4827 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4836 # Check whether --enable-largefile or --disable-largefile was given.
4837 if test "${enable_largefile+set}" = set; then
4838 enableval="$enable_largefile"
4841 if test "$enable_largefile" != no; then
4843 echo "$as_me:4843: checking for special C compiler options needed for large files" >&5
4844 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4845 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 ac_cv_sys_largefile_CC=no
4849 if test "$GCC" != yes; then
4852 # IRIX 6.2 and later do not support large files by default,
4853 # so use the C compiler's -n32 option if that helps.
4854 cat >conftest.$ac_ext <<_ACEOF
4855 #line 4855 "configure"
4856 #include "confdefs.h"
4857 #include <sys/types.h>
4858 /* Check that off_t can represent 2**63 - 1 correctly.
4859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4860 since some C++ compilers masquerading as C compilers
4861 incorrectly reject 9223372036854775807. */
4862 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4864 && LARGE_OFF_T % 2147483647 == 1)
4874 rm -f conftest.$ac_objext
4875 if { (eval echo "$as_me:4875: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>&5
4878 echo "$as_me:4878: \$? = $ac_status" >&5
4879 (exit $ac_status); } &&
4880 { ac_try='test -s conftest.$ac_objext'
4881 { (eval echo "$as_me:4881: \"$ac_try\"") >&5
4884 echo "$as_me:4884: \$? = $ac_status" >&5
4885 (exit $ac_status); }; }; then
4888 echo "$as_me: failed program was:" >&5
4889 cat conftest.$ac_ext >&5
4891 rm -f conftest.$ac_objext
4893 rm -f conftest.$ac_objext
4894 if { (eval echo "$as_me:4894: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>&5
4897 echo "$as_me:4897: \$? = $ac_status" >&5
4898 (exit $ac_status); } &&
4899 { ac_try='test -s conftest.$ac_objext'
4900 { (eval echo "$as_me:4900: \"$ac_try\"") >&5
4903 echo "$as_me:4903: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4905 ac_cv_sys_largefile_CC=' -n32'; break
4907 echo "$as_me: failed program was:" >&5
4908 cat conftest.$ac_ext >&5
4910 rm -f conftest.$ac_objext
4914 rm -f conftest.$ac_ext
4917 echo "$as_me:4917: result: $ac_cv_sys_largefile_CC" >&5
4918 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4919 if test "$ac_cv_sys_largefile_CC" != no; then
4920 CC=$CC$ac_cv_sys_largefile_CC
4923 echo "$as_me:4923: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4924 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4925 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 ac_cv_sys_file_offset_bits=no
4930 cat >conftest.$ac_ext <<_ACEOF
4931 #line 4931 "configure"
4932 #include "confdefs.h"
4933 #include <sys/types.h>
4934 /* Check that off_t can represent 2**63 - 1 correctly.
4935 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4936 since some C++ compilers masquerading as C compilers
4937 incorrectly reject 9223372036854775807. */
4938 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4939 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4940 && LARGE_OFF_T % 2147483647 == 1)
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:4951: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>&5
4954 echo "$as_me:4954: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try='test -s conftest.$ac_objext'
4957 { (eval echo "$as_me:4957: \"$ac_try\"") >&5
4960 echo "$as_me:4960: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4964 echo "$as_me: failed program was:" >&5
4965 cat conftest.$ac_ext >&5
4967 rm -f conftest.$ac_objext conftest.$ac_ext
4968 cat >conftest.$ac_ext <<_ACEOF
4969 #line 4969 "configure"
4970 #include "confdefs.h"
4971 #define _FILE_OFFSET_BITS 64
4972 #include <sys/types.h>
4973 /* Check that off_t can represent 2**63 - 1 correctly.
4974 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4975 since some C++ compilers masquerading as C compilers
4976 incorrectly reject 9223372036854775807. */
4977 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4978 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4979 && LARGE_OFF_T % 2147483647 == 1)
4989 rm -f conftest.$ac_objext
4990 if { (eval echo "$as_me:4990: \"$ac_compile\"") >&5
4991 (eval $ac_compile) 2>&5
4993 echo "$as_me:4993: \$? = $ac_status" >&5
4994 (exit $ac_status); } &&
4995 { ac_try='test -s conftest.$ac_objext'
4996 { (eval echo "$as_me:4996: \"$ac_try\"") >&5
4999 echo "$as_me:4999: \$? = $ac_status" >&5
5000 (exit $ac_status); }; }; then
5001 ac_cv_sys_file_offset_bits=64; break
5003 echo "$as_me: failed program was:" >&5
5004 cat conftest.$ac_ext >&5
5006 rm -f conftest.$ac_objext conftest.$ac_ext
5010 echo "$as_me:5010: result: $ac_cv_sys_file_offset_bits" >&5
5011 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5012 if test "$ac_cv_sys_file_offset_bits" != no; then
5014 cat >>confdefs.h <<EOF
5015 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5020 echo "$as_me:5020: checking for _LARGE_FILES value needed for large files" >&5
5021 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5022 if test "${ac_cv_sys_large_files+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 ac_cv_sys_large_files=no
5027 cat >conftest.$ac_ext <<_ACEOF
5028 #line 5028 "configure"
5029 #include "confdefs.h"
5030 #include <sys/types.h>
5031 /* Check that off_t can represent 2**63 - 1 correctly.
5032 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5033 since some C++ compilers masquerading as C compilers
5034 incorrectly reject 9223372036854775807. */
5035 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5036 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5037 && LARGE_OFF_T % 2147483647 == 1)
5047 rm -f conftest.$ac_objext
5048 if { (eval echo "$as_me:5048: \"$ac_compile\"") >&5
5049 (eval $ac_compile) 2>&5
5051 echo "$as_me:5051: \$? = $ac_status" >&5
5052 (exit $ac_status); } &&
5053 { ac_try='test -s conftest.$ac_objext'
5054 { (eval echo "$as_me:5054: \"$ac_try\"") >&5
5057 echo "$as_me:5057: \$? = $ac_status" >&5
5058 (exit $ac_status); }; }; then
5061 echo "$as_me: failed program was:" >&5
5062 cat conftest.$ac_ext >&5
5064 rm -f conftest.$ac_objext conftest.$ac_ext
5065 cat >conftest.$ac_ext <<_ACEOF
5066 #line 5066 "configure"
5067 #include "confdefs.h"
5068 #define _LARGE_FILES 1
5069 #include <sys/types.h>
5070 /* Check that off_t can represent 2**63 - 1 correctly.
5071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5072 since some C++ compilers masquerading as C compilers
5073 incorrectly reject 9223372036854775807. */
5074 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5076 && LARGE_OFF_T % 2147483647 == 1)
5086 rm -f conftest.$ac_objext
5087 if { (eval echo "$as_me:5087: \"$ac_compile\"") >&5
5088 (eval $ac_compile) 2>&5
5090 echo "$as_me:5090: \$? = $ac_status" >&5
5091 (exit $ac_status); } &&
5092 { ac_try='test -s conftest.$ac_objext'
5093 { (eval echo "$as_me:5093: \"$ac_try\"") >&5
5096 echo "$as_me:5096: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5098 ac_cv_sys_large_files=1; break
5100 echo "$as_me: failed program was:" >&5
5101 cat conftest.$ac_ext >&5
5103 rm -f conftest.$ac_objext conftest.$ac_ext
5107 echo "$as_me:5107: result: $ac_cv_sys_large_files" >&5
5108 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5109 if test "$ac_cv_sys_large_files" != no; then
5111 cat >>confdefs.h <<EOF
5112 #define _LARGE_FILES $ac_cv_sys_large_files
5119 if test "$enable_largefile" != no ; then
5120 echo "$as_me:5120: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5121 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
5122 if test "${ac_cv_sys_largefile_source+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 ac_cv_sys_largefile_source=no
5127 cat >conftest.$ac_ext <<_ACEOF
5128 #line 5128 "configure"
5129 #include "confdefs.h"
5139 rm -f conftest.$ac_objext
5140 if { (eval echo "$as_me:5140: \"$ac_compile\"") >&5
5141 (eval $ac_compile) 2>&5
5143 echo "$as_me:5143: \$? = $ac_status" >&5
5144 (exit $ac_status); } &&
5145 { ac_try='test -s conftest.$ac_objext'
5146 { (eval echo "$as_me:5146: \"$ac_try\"") >&5
5149 echo "$as_me:5149: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5153 echo "$as_me: failed program was:" >&5
5154 cat conftest.$ac_ext >&5
5156 rm -f conftest.$ac_objext conftest.$ac_ext
5157 cat >conftest.$ac_ext <<_ACEOF
5158 #line 5158 "configure"
5159 #include "confdefs.h"
5160 #define _LARGEFILE_SOURCE 1
5170 rm -f conftest.$ac_objext
5171 if { (eval echo "$as_me:5171: \"$ac_compile\"") >&5
5172 (eval $ac_compile) 2>&5
5174 echo "$as_me:5174: \$? = $ac_status" >&5
5175 (exit $ac_status); } &&
5176 { ac_try='test -s conftest.$ac_objext'
5177 { (eval echo "$as_me:5177: \"$ac_try\"") >&5
5180 echo "$as_me:5180: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5182 ac_cv_sys_largefile_source=1; break
5184 echo "$as_me: failed program was:" >&5
5185 cat conftest.$ac_ext >&5
5187 rm -f conftest.$ac_objext conftest.$ac_ext
5191 echo "$as_me:5191: result: $ac_cv_sys_largefile_source" >&5
5192 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
5193 if test "$ac_cv_sys_largefile_source" != no; then
5195 cat >>confdefs.h <<EOF
5196 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5202 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5203 # in glibc 2.1.3, but that breaks too many other things.
5204 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5205 echo "$as_me:5205: checking for fseeko" >&5
5206 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
5207 if test "${ac_cv_func_fseeko+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 cat >conftest.$ac_ext <<_ACEOF
5211 #line 5211 "configure"
5212 #include "confdefs.h"
5217 return fseeko && fseeko (stdin, 0, 0);
5222 rm -f conftest.$ac_objext conftest$ac_exeext
5223 if { (eval echo "$as_me:5223: \"$ac_link\"") >&5
5224 (eval $ac_link) 2>&5
5226 echo "$as_me:5226: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try='test -s conftest$ac_exeext'
5229 { (eval echo "$as_me:5229: \"$ac_try\"") >&5
5232 echo "$as_me:5232: \$? = $ac_status" >&5
5233 (exit $ac_status); }; }; then
5234 ac_cv_func_fseeko=yes
5236 echo "$as_me: failed program was:" >&5
5237 cat conftest.$ac_ext >&5
5238 ac_cv_func_fseeko=no
5240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5242 echo "$as_me:5242: result: $ac_cv_func_fseeko" >&5
5243 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
5244 if test $ac_cv_func_fseeko = yes; then
5246 cat >>confdefs.h <<\EOF
5247 #define HAVE_FSEEKO 1
5252 # Normally we would collect these definitions in the config.h,
5253 # but (like _XOPEN_SOURCE), some environments rely on having these
5254 # defined before any of the system headers are included. Another
5255 # case comes up with C++, e.g., on AIX the compiler compiles the
5256 # header files by themselves before looking at the body files it is
5257 # told to compile. For ncurses, those header files do not include
5259 if test "$ac_cv_sys_large_files" != no
5262 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5263 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
5266 if test "$ac_cv_sys_largefile_source" != no
5269 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5270 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
5273 if test "$ac_cv_sys_file_offset_bits" != no
5276 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5277 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
5281 echo "$as_me:5281: checking whether to use struct dirent64" >&5
5282 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
5283 if test "${cf_cv_struct_dirent64+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 cat >conftest.$ac_ext <<_ACEOF
5288 #line 5288 "configure"
5289 #include "confdefs.h"
5291 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
5292 #include <sys/types.h>
5299 /* if transitional largefile support is setup, this is true */
5300 extern struct dirent64 * readdir(DIR *);
5301 struct dirent64 *x = readdir((DIR *)0);
5302 struct dirent *y = readdir((DIR *)0);
5309 rm -f conftest.$ac_objext
5310 if { (eval echo "$as_me:5310: \"$ac_compile\"") >&5
5311 (eval $ac_compile) 2>&5
5313 echo "$as_me:5313: \$? = $ac_status" >&5
5314 (exit $ac_status); } &&
5315 { ac_try='test -s conftest.$ac_objext'
5316 { (eval echo "$as_me:5316: \"$ac_try\"") >&5
5319 echo "$as_me:5319: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 cf_cv_struct_dirent64=yes
5323 echo "$as_me: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5325 cf_cv_struct_dirent64=no
5327 rm -f conftest.$ac_objext conftest.$ac_ext
5330 echo "$as_me:5330: result: $cf_cv_struct_dirent64" >&5
5331 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
5332 test "$cf_cv_struct_dirent64" = yes &&
5333 cat >>confdefs.h <<\EOF
5334 #define HAVE_STRUCT_DIRENT64 1
5339 echo "$as_me:5339: checking for install-prefix" >&5
5340 echo $ECHO_N "checking for install-prefix... $ECHO_C" >&6
5342 # Check whether --with-install-prefix or --without-install-prefix was given.
5343 if test "${with_install_prefix+set}" = set; then
5344 withval="$with_install_prefix"
5345 cf_opt_with_install_prefix=$withval
5347 cf_opt_with_install_prefix=${DESTDIR:-no}
5349 echo "$as_me:5349: result: $cf_opt_with_install_prefix" >&5
5350 echo "${ECHO_T}$cf_opt_with_install_prefix" >&6
5351 if test "$cf_opt_with_install_prefix" != no ; then
5353 if test "x$prefix" != xNONE; then
5354 cf_path_syntax="$prefix"
5356 cf_path_syntax="$ac_default_prefix"
5359 case ".$cf_opt_with_install_prefix" in
5364 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5366 (.\${*prefix}*|.\${*dir}*)
5367 eval cf_opt_with_install_prefix="$cf_opt_with_install_prefix"
5368 case ".$cf_opt_with_install_prefix" in
5370 cf_opt_with_install_prefix=`echo $cf_opt_with_install_prefix | sed -e s%NONE%$cf_path_syntax%`
5375 cf_opt_with_install_prefix=`echo $cf_opt_with_install_prefix | sed -e s%NONE%$cf_path_syntax%`
5378 { { echo "$as_me:5378: error: expected a pathname, not \"$cf_opt_with_install_prefix\"" >&5
5379 echo "$as_me: error: expected a pathname, not \"$cf_opt_with_install_prefix\"" >&2;}
5380 { (exit 1); exit 1; }; }
5384 DESTDIR=$cf_opt_with_install_prefix
5387 if ( test "$GCC" = yes || test "$GXX" = yes )
5389 echo "$as_me:5389: checking if you want to check for gcc warnings" >&5
5390 echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
5392 # Check whether --with-warnings or --without-warnings was given.
5393 if test "${with_warnings+set}" = set; then
5394 withval="$with_warnings"
5395 cf_opt_with_warnings=$withval
5397 cf_opt_with_warnings=no
5399 echo "$as_me:5399: result: $cf_opt_with_warnings" >&5
5400 echo "${ECHO_T}$cf_opt_with_warnings" >&6
5401 if test "$cf_opt_with_warnings" != no ; then
5403 if test "$GCC" = yes
5405 cat > conftest.i <<EOF
5407 #define GCC_PRINTF 0
5412 #ifndef GCC_NORETURN
5413 #define GCC_NORETURN /* nothing */
5416 #define GCC_UNUSED /* nothing */
5419 if test "$GCC" = yes
5421 { echo "$as_me:5421: checking for $CC __attribute__ directives..." >&5
5422 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
5423 cat > conftest.$ac_ext <<EOF
5424 #line 5424 "${as_me:-configure}"
5425 #include "confdefs.h"
5426 #include "conftest.h"
5427 #include "conftest.i"
5429 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
5431 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
5434 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
5436 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
5438 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
5439 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
5440 extern void foo(void) GCC_NORETURN;
5441 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
5443 cf_printf_attribute=no
5444 cf_scanf_attribute=no
5445 for cf_attribute in scanf printf unused noreturn
5448 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5450 cf_directive="__attribute__(($cf_attribute))"
5451 echo "checking for $CC $cf_directive" 1>&5
5453 case $cf_attribute in
5455 cf_printf_attribute=yes
5456 cat >conftest.h <<EOF
5457 #define GCC_$cf_ATTRIBUTE 1
5461 cf_scanf_attribute=yes
5462 cat >conftest.h <<EOF
5463 #define GCC_$cf_ATTRIBUTE 1
5467 cat >conftest.h <<EOF
5468 #define GCC_$cf_ATTRIBUTE $cf_directive
5473 if { (eval echo "$as_me:5473: \"$ac_compile\"") >&5
5474 (eval $ac_compile) 2>&5
5476 echo "$as_me:5476: \$? = $ac_status" >&5
5477 (exit $ac_status); }; then
5478 test -n "$verbose" && echo "$as_me:5478: result: ... $cf_attribute" >&5
5479 echo "${ECHO_T}... $cf_attribute" >&6
5480 cat conftest.h >>confdefs.h
5481 case $cf_attribute in
5484 cat >>confdefs.h <<EOF
5485 #define GCC_NORETURN $cf_directive
5490 cf_value='/* nothing */'
5491 if test "$cf_printf_attribute" != no ; then
5492 cf_value='__attribute__((format(printf,fmt,var)))'
5494 cat >>confdefs.h <<\EOF
5495 #define GCC_PRINTF 1
5500 cat >>confdefs.h <<EOF
5501 #define GCC_PRINTFLIKE(fmt,var) $cf_value
5506 cf_value='/* nothing */'
5507 if test "$cf_scanf_attribute" != no ; then
5508 cf_value='__attribute__((format(scanf,fmt,var)))'
5510 cat >>confdefs.h <<\EOF
5516 cat >>confdefs.h <<EOF
5517 #define GCC_SCANFLIKE(fmt,var) $cf_value
5523 cat >>confdefs.h <<EOF
5524 #define GCC_UNUSED $cf_directive
5532 fgrep define conftest.i >>confdefs.h
5539 if test "$GCC" = yes ; then
5542 echo "$as_me:5542: checking if this is really Intel C compiler" >&5
5543 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
5544 cf_save_CFLAGS="$CFLAGS"
5545 CFLAGS="$CFLAGS -no-gcc"
5546 cat >conftest.$ac_ext <<_ACEOF
5547 #line 5547 "configure"
5548 #include "confdefs.h"
5554 #ifdef __INTEL_COMPILER
5563 rm -f conftest.$ac_objext
5564 if { (eval echo "$as_me:5564: \"$ac_compile\"") >&5
5565 (eval $ac_compile) 2>&5
5567 echo "$as_me:5567: \$? = $ac_status" >&5
5568 (exit $ac_status); } &&
5569 { ac_try='test -s conftest.$ac_objext'
5570 { (eval echo "$as_me:5570: \"$ac_try\"") >&5
5573 echo "$as_me:5573: \$? = $ac_status" >&5
5574 (exit $ac_status); }; }; then
5576 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
5579 echo "$as_me: failed program was:" >&5
5580 cat conftest.$ac_ext >&5
5582 rm -f conftest.$ac_objext conftest.$ac_ext
5583 CFLAGS="$cf_save_CFLAGS"
5584 echo "$as_me:5584: result: $INTEL_COMPILER" >&5
5585 echo "${ECHO_T}$INTEL_COMPILER" >&6
5592 if test "$GCC" = yes ; then
5593 echo "$as_me:5593: checking if this is really Clang C compiler" >&5
5594 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
5595 cf_save_CFLAGS="$CFLAGS"
5596 CFLAGS="$CFLAGS -Qunused-arguments"
5597 cat >conftest.$ac_ext <<_ACEOF
5598 #line 5598 "configure"
5599 #include "confdefs.h"
5614 rm -f conftest.$ac_objext
5615 if { (eval echo "$as_me:5615: \"$ac_compile\"") >&5
5616 (eval $ac_compile) 2>&5
5618 echo "$as_me:5618: \$? = $ac_status" >&5
5619 (exit $ac_status); } &&
5620 { ac_try='test -s conftest.$ac_objext'
5621 { (eval echo "$as_me:5621: \"$ac_try\"") >&5
5624 echo "$as_me:5624: \$? = $ac_status" >&5
5625 (exit $ac_status); }; }; then
5627 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
5630 echo "$as_me: failed program was:" >&5
5631 cat conftest.$ac_ext >&5
5633 rm -f conftest.$ac_objext conftest.$ac_ext
5634 CFLAGS="$cf_save_CFLAGS"
5635 echo "$as_me:5635: result: $CLANG_COMPILER" >&5
5636 echo "${ECHO_T}$CLANG_COMPILER" >&6
5639 cat > conftest.$ac_ext <<EOF
5640 #line 5640 "${as_me:-configure}"
5641 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
5644 if test "$INTEL_COMPILER" = yes
5646 # The "-wdXXX" options suppress warnings:
5647 # remark #1419: external declaration in primary source file
5648 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
5649 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
5650 # remark #193: zero used for undefined preprocessing identifier
5651 # remark #593: variable "curs_sb_left_arrow" was set but never used
5652 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
5653 # remark #869: parameter "tw" was never referenced
5654 # remark #981: operands are evaluated in unspecified order
5655 # warning #279: controlling expression is constant
5657 { echo "$as_me:5657: checking for $CC warning options..." >&5
5658 echo "$as_me: checking for $CC warning options..." >&6;}
5659 cf_save_CFLAGS="$CFLAGS"
5660 EXTRA_CFLAGS="-Wall"
5672 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
5673 if { (eval echo "$as_me:5673: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>&5
5676 echo "$as_me:5676: \$? = $ac_status" >&5
5677 (exit $ac_status); }; then
5678 test -n "$verbose" && echo "$as_me:5678: result: ... -$cf_opt" >&5
5679 echo "${ECHO_T}... -$cf_opt" >&6
5680 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
5683 CFLAGS="$cf_save_CFLAGS"
5685 elif test "$GCC" = yes
5687 { echo "$as_me:5687: checking for $CC warning options..." >&5
5688 echo "$as_me: checking for $CC warning options..." >&6;}
5689 cf_save_CFLAGS="$CFLAGS"
5692 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
5693 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
5694 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
5695 for cf_opt in W Wall \
5696 Wbad-function-cast \
5699 Wdeclaration-after-statement \
5702 Wmissing-declarations \
5703 Wmissing-prototypes \
5707 Wstrict-prototypes \
5708 Wundef $cf_gcc_warnings $cf_warn_CONST
5710 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
5711 if { (eval echo "$as_me:5711: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>&5
5714 echo "$as_me:5714: \$? = $ac_status" >&5
5715 (exit $ac_status); }; then
5716 test -n "$verbose" && echo "$as_me:5716: result: ... -$cf_opt" >&5
5717 echo "${ECHO_T}... -$cf_opt" >&6
5721 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5722 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
5726 case $GCC_VERSION in
5728 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
5730 echo "${as_me:-configure}:5730: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
5736 case $GCC_VERSION in
5738 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
5740 echo "${as_me:-configure}:5740: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
5746 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
5749 CFLAGS="$cf_save_CFLAGS"
5756 echo "$as_me:5756: checking if you want to use pkg-config" >&5
5757 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
5759 # Check whether --with-pkg-config or --without-pkg-config was given.
5760 if test "${with_pkg_config+set}" = set; then
5761 withval="$with_pkg_config"
5762 cf_pkg_config=$withval
5766 echo "$as_me:5766: result: $cf_pkg_config" >&5
5767 echo "${ECHO_T}$cf_pkg_config" >&6
5769 case $cf_pkg_config in
5775 if test -n "$ac_tool_prefix"; then
5776 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5777 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5778 echo "$as_me:5778: checking for $ac_word" >&5
5779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5780 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5788 ac_save_IFS=$IFS; IFS=$ac_path_separator
5790 for ac_dir in $ac_dummy; do
5792 test -z "$ac_dir" && ac_dir=.
5793 if $as_executable_p "$ac_dir/$ac_word"; then
5794 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
5795 echo "$as_me:5795: found $ac_dir/$ac_word" >&5
5803 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5805 if test -n "$PKG_CONFIG"; then
5806 echo "$as_me:5806: result: $PKG_CONFIG" >&5
5807 echo "${ECHO_T}$PKG_CONFIG" >&6
5809 echo "$as_me:5809: result: no" >&5
5810 echo "${ECHO_T}no" >&6
5814 if test -z "$ac_cv_path_PKG_CONFIG"; then
5815 ac_pt_PKG_CONFIG=$PKG_CONFIG
5816 # Extract the first word of "pkg-config", so it can be a program name with args.
5817 set dummy pkg-config; ac_word=$2
5818 echo "$as_me:5818: checking for $ac_word" >&5
5819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5820 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 case $ac_pt_PKG_CONFIG in
5825 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5828 ac_save_IFS=$IFS; IFS=$ac_path_separator
5830 for ac_dir in $ac_dummy; do
5832 test -z "$ac_dir" && ac_dir=.
5833 if $as_executable_p "$ac_dir/$ac_word"; then
5834 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
5835 echo "$as_me:5835: found $ac_dir/$ac_word" >&5
5840 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
5844 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5846 if test -n "$ac_pt_PKG_CONFIG"; then
5847 echo "$as_me:5847: result: $ac_pt_PKG_CONFIG" >&5
5848 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
5850 echo "$as_me:5850: result: no" >&5
5851 echo "${ECHO_T}no" >&6
5854 PKG_CONFIG=$ac_pt_PKG_CONFIG
5856 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5865 test -z "$PKG_CONFIG" && PKG_CONFIG=none
5866 if test "$PKG_CONFIG" != none ; then
5868 if test "x$prefix" != xNONE; then
5869 cf_path_syntax="$prefix"
5871 cf_path_syntax="$ac_default_prefix"
5874 case ".$PKG_CONFIG" in
5879 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5881 (.\${*prefix}*|.\${*dir}*)
5882 eval PKG_CONFIG="$PKG_CONFIG"
5883 case ".$PKG_CONFIG" in
5885 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
5890 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
5893 { { echo "$as_me:5893: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
5894 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
5895 { (exit 1); exit 1; }; }
5899 elif test "x$cf_pkg_config" != xno ; then
5900 { echo "$as_me:5900: WARNING: pkg-config is not installed" >&5
5901 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
5904 echo "$as_me:5904: checking for this package's name" >&5
5905 echo $ECHO_N "checking for this package's name... $ECHO_C" >&6
5907 # Check whether --with-package or --without-package was given.
5908 if test "${with_package+set}" = set; then
5909 withval="$with_package"
5914 echo "$as_me:5914: result: $PACKAGE" >&5
5915 echo "${ECHO_T}$PACKAGE" >&6
5917 if test -f $srcdir/VERSION ; then
5918 echo "$as_me:5918: checking for package version" >&5
5919 echo $ECHO_N "checking for package version... $ECHO_C" >&6
5921 # if there are not enough fields, cut returns the last one...
5922 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
5923 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
5924 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
5926 # this is how CF_BUNDLED_INTL uses $VERSION:
5927 VERSION="$cf_field1"
5929 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
5930 test -z "$VERSION_MAJOR" && { { echo "$as_me:5930: error: missing major-version" >&5
5931 echo "$as_me: error: missing major-version" >&2;}
5932 { (exit 1); exit 1; }; }
5934 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
5935 test -z "$VERSION_MINOR" && { { echo "$as_me:5935: error: missing minor-version" >&5
5936 echo "$as_me: error: missing minor-version" >&2;}
5937 { (exit 1); exit 1; }; }
5939 echo "$as_me:5939: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
5940 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
5942 echo "$as_me:5942: checking for package patch date" >&5
5943 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
5944 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
5945 case .$VERSION_PATCH in
5947 { { echo "$as_me:5947: error: missing patch-date $VERSION_PATCH" >&5
5948 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
5949 { (exit 1); exit 1; }; }
5951 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
5954 { { echo "$as_me:5954: error: illegal patch-date $VERSION_PATCH" >&5
5955 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
5956 { (exit 1); exit 1; }; }
5959 echo "$as_me:5959: result: $VERSION_PATCH" >&5
5960 echo "${ECHO_T}$VERSION_PATCH" >&6
5962 { { echo "$as_me:5962: error: did not find $srcdir/VERSION" >&5
5963 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
5964 { (exit 1); exit 1; }; }
5967 # show the actual data that we have for versions:
5968 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
5970 echo "${as_me:-configure}:5970: testing ABI VERSION $VERSION ..." 1>&5
5972 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
5974 echo "${as_me:-configure}:5974: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
5976 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
5978 echo "${as_me:-configure}:5978: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
5980 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
5982 echo "${as_me:-configure}:5982: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
5987 cat >>confdefs.h <<EOF
5988 #define PACKAGE "$PACKAGE"
5991 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5993 cat >>confdefs.h <<EOF
5994 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
5997 cat >>confdefs.h <<EOF
5998 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
6001 CFG_ROOTNAME=$PACKAGE
6002 HDR_ROOTNAME=$PACKAGE
6003 LIB_ROOTNAME=$PACKAGE
6005 echo "$as_me:6005: checking if we should install dlg_XXX headers to subdirectory" >&5
6006 echo $ECHO_N "checking if we should install dlg_XXX headers to subdirectory... $ECHO_C" >&6
6008 # Check whether --enable-header-subdir or --disable-header-subdir was given.
6009 if test "${enable_header_subdir+set}" = set; then
6010 enableval="$enable_header_subdir"
6015 echo "$as_me:6015: result: $SUB_INC" >&5
6016 echo "${ECHO_T}$SUB_INC" >&6
6018 case "x${with_man2html}" in
6023 # Extract the first word of "man2html", so it can be a program name with args.
6024 set dummy man2html; ac_word=$2
6025 echo "$as_me:6025: checking for $ac_word" >&5
6026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6027 if test "${ac_cv_path_cf_man2html+set}" = set; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 case $cf_man2html in
6032 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
6035 ac_save_IFS=$IFS; IFS=$ac_path_separator
6037 for ac_dir in $ac_dummy; do
6039 test -z "$ac_dir" && ac_dir=.
6040 if $as_executable_p "$ac_dir/$ac_word"; then
6041 ac_cv_path_cf_man2html="$ac_dir/$ac_word"
6042 echo "$as_me:6042: found $ac_dir/$ac_word" >&5
6047 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
6051 cf_man2html=$ac_cv_path_cf_man2html
6053 if test -n "$cf_man2html"; then
6054 echo "$as_me:6054: result: $cf_man2html" >&5
6055 echo "${ECHO_T}$cf_man2html" >&6
6057 echo "$as_me:6057: result: no" >&5
6058 echo "${ECHO_T}no" >&6
6061 case "x$cf_man2html" in
6063 echo "$as_me:6063: checking for the modified Earl Hood script" >&5
6064 echo $ECHO_N "checking for the modified Earl Hood script... $ECHO_C" >&6
6065 if ( $cf_man2html -help 2>&1 | grep 'Make an index of headers at the end' >/dev/null )
6072 echo "$as_me:6072: result: $cf_man2html_ok" >&5
6073 echo "${ECHO_T}$cf_man2html_ok" >&6
6081 echo "$as_me:6081: checking for program to convert manpage to html" >&5
6082 echo $ECHO_N "checking for program to convert manpage to html... $ECHO_C" >&6
6084 # Check whether --with-man2html or --without-man2html was given.
6085 if test "${with_man2html+set}" = set; then
6086 withval="$with_man2html"
6087 cf_man2html=$withval
6089 cf_man2html=$cf_man2html
6094 case $cf_man2html in
6096 echo "$as_me:6096: result: man2html" >&5
6097 echo "${ECHO_T}man2html" >&6
6098 # Extract the first word of "man2html", so it can be a program name with args.
6099 set dummy man2html; ac_word=$2
6100 echo "$as_me:6100: checking for $ac_word" >&5
6101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6102 if test "${ac_cv_path_cf_man2html+set}" = set; then
6103 echo $ECHO_N "(cached) $ECHO_C" >&6
6105 case $cf_man2html in
6107 ac_cv_path_cf_man2html="$cf_man2html" # Let the user override the test with a path.
6110 ac_save_IFS=$IFS; IFS=$ac_path_separator
6112 for ac_dir in $ac_dummy; do
6114 test -z "$ac_dir" && ac_dir=.
6115 if $as_executable_p "$ac_dir/$ac_word"; then
6116 ac_cv_path_cf_man2html="$ac_dir/$ac_word"
6117 echo "$as_me:6117: found $ac_dir/$ac_word" >&5
6122 test -z "$ac_cv_path_cf_man2html" && ac_cv_path_cf_man2html="no"
6126 cf_man2html=$ac_cv_path_cf_man2html
6128 if test -n "$cf_man2html"; then
6129 echo "$as_me:6129: result: $cf_man2html" >&5
6130 echo "${ECHO_T}$cf_man2html" >&6
6132 echo "$as_me:6132: result: no" >&5
6133 echo "${ECHO_T}no" >&6
6139 cf_man2html=$GROFF_PATH
6140 echo "$as_me:6140: result: $cf_man2html" >&5
6141 echo "${ECHO_T}$cf_man2html" >&6
6144 echo "$as_me:6144: result: $cf_man2html" >&5
6145 echo "${ECHO_T}$cf_man2html" >&6
6149 MAN2HTML_TEMP="man2html.tmp"
6150 cat >$MAN2HTML_TEMP <<CF_EOF
6152 # Temporary script generated by CF_WITH_MAN2HTML
6153 # Convert inputs to html, sending result to standard output.
6156 # \${1} = rootname of file to convert
6157 # \${2} = suffix of file to convert, e.g., "1"
6158 # \${3} = macros to use, e.g., "man"
6173 if test "x$cf_with_groff" = xyes
6175 MAN2HTML_NOTE="$GROFF_NOTE"
6176 MAN2HTML_PATH="$GROFF_PATH"
6177 cat >>$MAN2HTML_TEMP <<CF_EOF
6178 $SHELL -c "$TBL_PATH \${ROOT}.\${TYPE} | $GROFF_PATH -P -o0 -I\${ROOT}_ -Thtml -\${MACS}"
6183 if test "x$prefix" != xNONE; then
6184 cf_path_syntax="$prefix"
6186 cf_path_syntax="$ac_default_prefix"
6189 case ".$cf_man2html" in
6194 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
6196 (.\${*prefix}*|.\${*dir}*)
6197 eval cf_man2html="$cf_man2html"
6198 case ".$cf_man2html" in
6200 cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
6205 cf_man2html=`echo $cf_man2html | sed -e s%NONE%$cf_path_syntax%`
6208 { { echo "$as_me:6208: error: expected a pathname, not \"$cf_man2html\"" >&5
6209 echo "$as_me: error: expected a pathname, not \"$cf_man2html\"" >&2;}
6210 { (exit 1); exit 1; }; }
6214 MAN2HTML_PATH="$cf_man2html"
6215 echo "$as_me:6215: checking for $cf_man2html top/bottom margins" >&5
6216 echo $ECHO_N "checking for $cf_man2html top/bottom margins... $ECHO_C" >&6
6218 # for this example, expect 3 lines of content, the remainder is head/foot
6219 cat >conftest.in <<CF_EOF
6220 .TH HEAD1 HEAD2 HEAD3 HEAD4 HEAD5
6225 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
6227 cf_man2html_1st=`fgrep -n MARKER conftest.out |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
6228 cf_man2html_top=`expr $cf_man2html_1st - 2`
6229 cf_man2html_bot=`wc -l conftest.out |sed -e 's/[^0-9]//g'`
6230 cf_man2html_bot=`expr $cf_man2html_bot - 2 - $cf_man2html_top`
6231 cf_man2html_top_bot="-topm=$cf_man2html_top -botm=$cf_man2html_bot"
6233 echo "$as_me:6233: result: $cf_man2html_top_bot" >&5
6234 echo "${ECHO_T}$cf_man2html_top_bot" >&6
6236 echo "$as_me:6236: checking for pagesize to use" >&5
6237 echo $ECHO_N "checking for pagesize to use... $ECHO_C" >&6
6238 for cf_block in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
6240 cat >>conftest.in <<CF_EOF
6255 LC_ALL=C LC_CTYPE=C LANG=C LANGUAGE=C $NROFF_PATH -man conftest.in >conftest.out
6256 cf_man2html_page=`fgrep -n HEAD1 conftest.out |tail -n 1 |sed -e 's/^[^0-9]*://' -e 's/:.*//'`
6257 test -z "$cf_man2html_page" && cf_man2html_page=99999
6258 test "$cf_man2html_page" -gt 100 && cf_man2html_page=99999
6261 echo "$as_me:6261: result: $cf_man2html_page" >&5
6262 echo "${ECHO_T}$cf_man2html_page" >&6
6264 cat >>$MAN2HTML_TEMP <<CF_EOF
6265 : \${MAN2HTML_PATH=$MAN2HTML_PATH}
6266 MAN2HTML_OPTS="\$MAN2HTML_OPTS -index -title="\$ROOT\(\$TYPE\)" -compress -pgsize $cf_man2html_page"
6269 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH -\${MACS} | \$MAN2HTML_PATH -topm=0 -botm=0 \$MAN2HTML_OPTS
6272 $TBL_PATH \${ROOT}.\${TYPE} | $NROFF_PATH -\${MACS} | \$MAN2HTML_PATH $cf_man2html_top_bot \$MAN2HTML_OPTS
6278 chmod 700 $MAN2HTML_TEMP
6282 echo "$as_me:6282: checking for ANSI C header files" >&5
6283 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6284 if test "${ac_cv_header_stdc+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 cat >conftest.$ac_ext <<_ACEOF
6288 #line 6288 "configure"
6289 #include "confdefs.h"
6296 if { (eval echo "$as_me:6296: \"$ac_cpp conftest.$ac_ext\"") >&5
6297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6299 egrep -v '^ *\+' conftest.er1 >conftest.err
6301 cat conftest.err >&5
6302 echo "$as_me:6302: \$? = $ac_status" >&5
6303 (exit $ac_status); } >/dev/null; then
6304 if test -s conftest.err; then
6305 ac_cpp_err=$ac_c_preproc_warn_flag
6312 if test -z "$ac_cpp_err"; then
6313 ac_cv_header_stdc=yes
6315 echo "$as_me: failed program was:" >&5
6316 cat conftest.$ac_ext >&5
6317 ac_cv_header_stdc=no
6319 rm -f conftest.err conftest.$ac_ext
6321 if test $ac_cv_header_stdc = yes; then
6322 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6323 cat >conftest.$ac_ext <<_ACEOF
6324 #line 6324 "configure"
6325 #include "confdefs.h"
6329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6330 egrep "memchr" >/dev/null 2>&1; then
6333 ac_cv_header_stdc=no
6339 if test $ac_cv_header_stdc = yes; then
6340 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6341 cat >conftest.$ac_ext <<_ACEOF
6342 #line 6342 "configure"
6343 #include "confdefs.h"
6347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6348 egrep "free" >/dev/null 2>&1; then
6351 ac_cv_header_stdc=no
6357 if test $ac_cv_header_stdc = yes; then
6358 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6359 if test "$cross_compiling" = yes; then
6362 cat >conftest.$ac_ext <<_ACEOF
6363 #line 6363 "configure"
6364 #include "confdefs.h"
6366 #if ((' ' & 0x0FF) == 0x020)
6367 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6368 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6370 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6371 || ('j' <= (c) && (c) <= 'r') \
6372 || ('s' <= (c) && (c) <= 'z'))
6373 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6376 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6381 for (i = 0; i < 256; i++)
6382 if (XOR (islower (i), ISLOWER (i))
6383 || toupper (i) != TOUPPER (i))
6385 $ac_main_return (0);
6388 rm -f conftest$ac_exeext
6389 if { (eval echo "$as_me:6389: \"$ac_link\"") >&5
6390 (eval $ac_link) 2>&5
6392 echo "$as_me:6392: \$? = $ac_status" >&5
6393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6394 { (eval echo "$as_me:6394: \"$ac_try\"") >&5
6397 echo "$as_me:6397: \$? = $ac_status" >&5
6398 (exit $ac_status); }; }; then
6401 echo "$as_me: program exited with status $ac_status" >&5
6402 echo "$as_me: failed program was:" >&5
6403 cat conftest.$ac_ext >&5
6404 ac_cv_header_stdc=no
6406 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6410 echo "$as_me:6410: result: $ac_cv_header_stdc" >&5
6411 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6412 if test $ac_cv_header_stdc = yes; then
6414 cat >>confdefs.h <<\EOF
6415 #define STDC_HEADERS 1
6420 echo "$as_me:6420: checking for inline" >&5
6421 echo $ECHO_N "checking for inline... $ECHO_C" >&6
6422 if test "${ac_cv_c_inline+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6426 for ac_kw in inline __inline__ __inline; do
6427 cat >conftest.$ac_ext <<_ACEOF
6428 #line 6428 "configure"
6429 #include "confdefs.h"
6431 static $ac_kw int static_foo () {return 0; }
6432 $ac_kw int foo () {return 0; }
6436 rm -f conftest.$ac_objext
6437 if { (eval echo "$as_me:6437: \"$ac_compile\"") >&5
6438 (eval $ac_compile) 2>&5
6440 echo "$as_me:6440: \$? = $ac_status" >&5
6441 (exit $ac_status); } &&
6442 { ac_try='test -s conftest.$ac_objext'
6443 { (eval echo "$as_me:6443: \"$ac_try\"") >&5
6446 echo "$as_me:6446: \$? = $ac_status" >&5
6447 (exit $ac_status); }; }; then
6448 ac_cv_c_inline=$ac_kw; break
6450 echo "$as_me: failed program was:" >&5
6451 cat conftest.$ac_ext >&5
6453 rm -f conftest.$ac_objext conftest.$ac_ext
6457 echo "$as_me:6457: result: $ac_cv_c_inline" >&5
6458 echo "${ECHO_T}$ac_cv_c_inline" >&6
6459 case $ac_cv_c_inline in
6462 cat >>confdefs.h <<\EOF
6466 *) cat >>confdefs.h <<EOF
6467 #define inline $ac_cv_c_inline
6472 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6474 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6475 inttypes.h stdint.h unistd.h
6477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6478 echo "$as_me:6478: checking for $ac_header" >&5
6479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 cat >conftest.$ac_ext <<_ACEOF
6484 #line 6484 "configure"
6485 #include "confdefs.h"
6486 $ac_includes_default
6487 #include <$ac_header>
6489 rm -f conftest.$ac_objext
6490 if { (eval echo "$as_me:6490: \"$ac_compile\"") >&5
6491 (eval $ac_compile) 2>&5
6493 echo "$as_me:6493: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try='test -s conftest.$ac_objext'
6496 { (eval echo "$as_me:6496: \"$ac_try\"") >&5
6499 echo "$as_me:6499: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 eval "$as_ac_Header=yes"
6503 echo "$as_me: failed program was:" >&5
6504 cat conftest.$ac_ext >&5
6505 eval "$as_ac_Header=no"
6507 rm -f conftest.$ac_objext conftest.$ac_ext
6509 echo "$as_me:6509: result: `eval echo '${'$as_ac_Header'}'`" >&5
6510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6512 cat >>confdefs.h <<EOF
6513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6519 echo "$as_me:6519: checking for off_t" >&5
6520 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6521 if test "${ac_cv_type_off_t+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 cat >conftest.$ac_ext <<_ACEOF
6525 #line 6525 "configure"
6526 #include "confdefs.h"
6527 $ac_includes_default
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:6540: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>&5
6543 echo "$as_me:6543: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -s conftest.$ac_objext'
6546 { (eval echo "$as_me:6546: \"$ac_try\"") >&5
6549 echo "$as_me:6549: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 ac_cv_type_off_t=yes
6553 echo "$as_me: failed program was:" >&5
6554 cat conftest.$ac_ext >&5
6557 rm -f conftest.$ac_objext conftest.$ac_ext
6559 echo "$as_me:6559: result: $ac_cv_type_off_t" >&5
6560 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6561 if test $ac_cv_type_off_t = yes; then
6565 cat >>confdefs.h <<EOF
6571 echo "$as_me:6571: checking for size_t" >&5
6572 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6573 if test "${ac_cv_type_size_t+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 cat >conftest.$ac_ext <<_ACEOF
6577 #line 6577 "configure"
6578 #include "confdefs.h"
6579 $ac_includes_default
6585 if (sizeof (size_t))
6591 rm -f conftest.$ac_objext
6592 if { (eval echo "$as_me:6592: \"$ac_compile\"") >&5
6593 (eval $ac_compile) 2>&5
6595 echo "$as_me:6595: \$? = $ac_status" >&5
6596 (exit $ac_status); } &&
6597 { ac_try='test -s conftest.$ac_objext'
6598 { (eval echo "$as_me:6598: \"$ac_try\"") >&5
6601 echo "$as_me:6601: \$? = $ac_status" >&5
6602 (exit $ac_status); }; }; then
6603 ac_cv_type_size_t=yes
6605 echo "$as_me: failed program was:" >&5
6606 cat conftest.$ac_ext >&5
6607 ac_cv_type_size_t=no
6609 rm -f conftest.$ac_objext conftest.$ac_ext
6611 echo "$as_me:6611: result: $ac_cv_type_size_t" >&5
6612 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6613 if test $ac_cv_type_size_t = yes; then
6617 cat >>confdefs.h <<EOF
6618 #define size_t unsigned
6623 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6624 # for constant arguments. Useless!
6625 echo "$as_me:6625: checking for working alloca.h" >&5
6626 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6627 if test "${ac_cv_working_alloca_h+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 cat >conftest.$ac_ext <<_ACEOF
6631 #line 6631 "configure"
6632 #include "confdefs.h"
6637 char *p = (char *) alloca (2 * sizeof (int));
6642 rm -f conftest.$ac_objext conftest$ac_exeext
6643 if { (eval echo "$as_me:6643: \"$ac_link\"") >&5
6644 (eval $ac_link) 2>&5
6646 echo "$as_me:6646: \$? = $ac_status" >&5
6647 (exit $ac_status); } &&
6648 { ac_try='test -s conftest$ac_exeext'
6649 { (eval echo "$as_me:6649: \"$ac_try\"") >&5
6652 echo "$as_me:6652: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 ac_cv_working_alloca_h=yes
6656 echo "$as_me: failed program was:" >&5
6657 cat conftest.$ac_ext >&5
6658 ac_cv_working_alloca_h=no
6660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6662 echo "$as_me:6662: result: $ac_cv_working_alloca_h" >&5
6663 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6664 if test $ac_cv_working_alloca_h = yes; then
6666 cat >>confdefs.h <<\EOF
6667 #define HAVE_ALLOCA_H 1
6672 echo "$as_me:6672: checking for alloca" >&5
6673 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6674 if test "${ac_cv_func_alloca_works+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 cat >conftest.$ac_ext <<_ACEOF
6678 #line 6678 "configure"
6679 #include "confdefs.h"
6681 # define alloca __builtin_alloca
6684 # include <malloc.h>
6685 # define alloca _alloca
6688 # include <alloca.h>
6693 # ifndef alloca /* predefined by HP cc +Olibcalls */
6704 char *p = (char *) alloca (1);
6709 rm -f conftest.$ac_objext conftest$ac_exeext
6710 if { (eval echo "$as_me:6710: \"$ac_link\"") >&5
6711 (eval $ac_link) 2>&5
6713 echo "$as_me:6713: \$? = $ac_status" >&5
6714 (exit $ac_status); } &&
6715 { ac_try='test -s conftest$ac_exeext'
6716 { (eval echo "$as_me:6716: \"$ac_try\"") >&5
6719 echo "$as_me:6719: \$? = $ac_status" >&5
6720 (exit $ac_status); }; }; then
6721 ac_cv_func_alloca_works=yes
6723 echo "$as_me: failed program was:" >&5
6724 cat conftest.$ac_ext >&5
6725 ac_cv_func_alloca_works=no
6727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6729 echo "$as_me:6729: result: $ac_cv_func_alloca_works" >&5
6730 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6732 if test $ac_cv_func_alloca_works = yes; then
6734 cat >>confdefs.h <<\EOF
6735 #define HAVE_ALLOCA 1
6739 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6740 # that cause trouble. Some versions do not even contain alloca or
6741 # contain a buggy version. If you still want to use their alloca,
6742 # use ar to extract alloca.o from them instead of compiling alloca.c.
6744 ALLOCA=alloca.$ac_objext
6746 cat >>confdefs.h <<\EOF
6750 echo "$as_me:6750: checking whether \`alloca.c' needs Cray hooks" >&5
6751 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6752 if test "${ac_cv_os_cray+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 cat >conftest.$ac_ext <<_ACEOF
6756 #line 6756 "configure"
6757 #include "confdefs.h"
6758 #if defined(CRAY) && ! defined(CRAY2)
6765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6766 egrep "webecray" >/dev/null 2>&1; then
6774 echo "$as_me:6774: result: $ac_cv_os_cray" >&5
6775 echo "${ECHO_T}$ac_cv_os_cray" >&6
6776 if test $ac_cv_os_cray = yes; then
6777 for ac_func in _getb67 GETB67 getb67; do
6778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6779 echo "$as_me:6779: checking for $ac_func" >&5
6780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6781 if eval "test \"\${$as_ac_var+set}\" = set"; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 cat >conftest.$ac_ext <<_ACEOF
6785 #line 6785 "configure"
6786 #include "confdefs.h"
6787 /* System header to define __stub macros and hopefully few prototypes,
6788 which can conflict with char $ac_func (); below. */
6790 /* Override any gcc2 internal prototype to avoid an error. */
6794 /* We use char because int might match the return type of a gcc2
6795 builtin and then its argument prototype would still apply. */
6802 /* The GNU C library defines this for functions which it implements
6803 to always fail with ENOSYS. Some functions are actually named
6804 something starting with __ and the normal name is an alias. */
6805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6808 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
6815 rm -f conftest.$ac_objext conftest$ac_exeext
6816 if { (eval echo "$as_me:6816: \"$ac_link\"") >&5
6817 (eval $ac_link) 2>&5
6819 echo "$as_me:6819: \$? = $ac_status" >&5
6820 (exit $ac_status); } &&
6821 { ac_try='test -s conftest$ac_exeext'
6822 { (eval echo "$as_me:6822: \"$ac_try\"") >&5
6825 echo "$as_me:6825: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 eval "$as_ac_var=yes"
6829 echo "$as_me: failed program was:" >&5
6830 cat conftest.$ac_ext >&5
6831 eval "$as_ac_var=no"
6833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6835 echo "$as_me:6835: result: `eval echo '${'$as_ac_var'}'`" >&5
6836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6837 if test `eval echo '${'$as_ac_var'}'` = yes; then
6839 cat >>confdefs.h <<EOF
6840 #define CRAY_STACKSEG_END $ac_func
6849 echo "$as_me:6849: checking stack direction for C alloca" >&5
6850 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6851 if test "${ac_cv_c_stack_direction+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 if test "$cross_compiling" = yes; then
6855 ac_cv_c_stack_direction=0
6857 cat >conftest.$ac_ext <<_ACEOF
6858 #line 6858 "configure"
6859 #include "confdefs.h"
6861 find_stack_direction (void)
6863 static char *addr = 0;
6868 return find_stack_direction ();
6871 return (&dummy > addr) ? 1 : -1;
6877 $ac_main_return (find_stack_direction () < 0);
6880 rm -f conftest$ac_exeext
6881 if { (eval echo "$as_me:6881: \"$ac_link\"") >&5
6882 (eval $ac_link) 2>&5
6884 echo "$as_me:6884: \$? = $ac_status" >&5
6885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6886 { (eval echo "$as_me:6886: \"$ac_try\"") >&5
6889 echo "$as_me:6889: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6891 ac_cv_c_stack_direction=1
6893 echo "$as_me: program exited with status $ac_status" >&5
6894 echo "$as_me: failed program was:" >&5
6895 cat conftest.$ac_ext >&5
6896 ac_cv_c_stack_direction=-1
6898 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6901 echo "$as_me:6901: result: $ac_cv_c_stack_direction" >&5
6902 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6904 cat >>confdefs.h <<EOF
6905 #define STACK_DIRECTION $ac_cv_c_stack_direction
6910 for ac_header in stdlib.h unistd.h
6912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6913 echo "$as_me:6913: checking for $ac_header" >&5
6914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 cat >conftest.$ac_ext <<_ACEOF
6919 #line 6919 "configure"
6920 #include "confdefs.h"
6921 #include <$ac_header>
6923 if { (eval echo "$as_me:6923: \"$ac_cpp conftest.$ac_ext\"") >&5
6924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6926 egrep -v '^ *\+' conftest.er1 >conftest.err
6928 cat conftest.err >&5
6929 echo "$as_me:6929: \$? = $ac_status" >&5
6930 (exit $ac_status); } >/dev/null; then
6931 if test -s conftest.err; then
6932 ac_cpp_err=$ac_c_preproc_warn_flag
6939 if test -z "$ac_cpp_err"; then
6940 eval "$as_ac_Header=yes"
6942 echo "$as_me: failed program was:" >&5
6943 cat conftest.$ac_ext >&5
6944 eval "$as_ac_Header=no"
6946 rm -f conftest.err conftest.$ac_ext
6948 echo "$as_me:6948: result: `eval echo '${'$as_ac_Header'}'`" >&5
6949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6951 cat >>confdefs.h <<EOF
6952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6958 for ac_func in getpagesize
6960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6961 echo "$as_me:6961: checking for $ac_func" >&5
6962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6963 if eval "test \"\${$as_ac_var+set}\" = set"; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 cat >conftest.$ac_ext <<_ACEOF
6967 #line 6967 "configure"
6968 #include "confdefs.h"
6969 /* System header to define __stub macros and hopefully few prototypes,
6970 which can conflict with char $ac_func (); below. */
6972 /* Override any gcc2 internal prototype to avoid an error. */
6976 /* We use char because int might match the return type of a gcc2
6977 builtin and then its argument prototype would still apply. */
6984 /* The GNU C library defines this for functions which it implements
6985 to always fail with ENOSYS. Some functions are actually named
6986 something starting with __ and the normal name is an alias. */
6987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6990 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
6997 rm -f conftest.$ac_objext conftest$ac_exeext
6998 if { (eval echo "$as_me:6998: \"$ac_link\"") >&5
6999 (eval $ac_link) 2>&5
7001 echo "$as_me:7001: \$? = $ac_status" >&5
7002 (exit $ac_status); } &&
7003 { ac_try='test -s conftest$ac_exeext'
7004 { (eval echo "$as_me:7004: \"$ac_try\"") >&5
7007 echo "$as_me:7007: \$? = $ac_status" >&5
7008 (exit $ac_status); }; }; then
7009 eval "$as_ac_var=yes"
7011 echo "$as_me: failed program was:" >&5
7012 cat conftest.$ac_ext >&5
7013 eval "$as_ac_var=no"
7015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7017 echo "$as_me:7017: result: `eval echo '${'$as_ac_var'}'`" >&5
7018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7019 if test `eval echo '${'$as_ac_var'}'` = yes; then
7020 cat >>confdefs.h <<EOF
7021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7027 echo "$as_me:7027: checking for working mmap" >&5
7028 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7029 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 if test "$cross_compiling" = yes; then
7033 ac_cv_func_mmap_fixed_mapped=no
7035 cat >conftest.$ac_ext <<_ACEOF
7036 #line 7036 "configure"
7037 #include "confdefs.h"
7038 $ac_includes_default
7039 /* Thanks to Mike Haertel and Jim Avera for this test.
7040 Here is a matrix of mmap possibilities:
7041 mmap private not fixed
7042 mmap private fixed at somewhere currently unmapped
7043 mmap private fixed at somewhere already mapped
7044 mmap shared not fixed
7045 mmap shared fixed at somewhere currently unmapped
7046 mmap shared fixed at somewhere already mapped
7047 For private mappings, we should verify that changes cannot be read()
7048 back from the file, nor mmap's back from the file at a different
7049 address. (There have been systems where private was not correctly
7050 implemented like the infamous i386 svr4.0, and systems where the
7051 VM page cache was not coherent with the file system buffer cache
7052 like early versions of FreeBSD and possibly contemporary NetBSD.)
7053 For shared mappings, we should conversely verify that changes get
7054 propogated back to all the places they're supposed to be.
7056 Grep wants private fixed already mapped.
7057 The main things grep needs to know about mmap are:
7058 * does it exist and is it safe to write into the mmap'd area
7059 * how to use it (BSD variants) */
7062 #include <sys/mman.h>
7064 #if !STDC_HEADERS && !HAVE_STDLIB_H
7068 /* This mess was copied from the GNU getpagesize.h. */
7069 #if !HAVE_GETPAGESIZE
7070 /* Assume that all systems that can run configure have sys/param.h. */
7071 # if !HAVE_SYS_PARAM_H
7072 # define HAVE_SYS_PARAM_H 1
7075 # ifdef _SC_PAGESIZE
7076 # define getpagesize() sysconf(_SC_PAGESIZE)
7077 # else /* no _SC_PAGESIZE */
7078 # if HAVE_SYS_PARAM_H
7079 # include <sys/param.h>
7080 # ifdef EXEC_PAGESIZE
7081 # define getpagesize() EXEC_PAGESIZE
7082 # else /* no EXEC_PAGESIZE */
7084 # define getpagesize() NBPG * CLSIZE
7087 # endif /* no CLSIZE */
7088 # else /* no NBPG */
7090 # define getpagesize() NBPC
7091 # else /* no NBPC */
7093 # define getpagesize() PAGESIZE
7094 # endif /* PAGESIZE */
7095 # endif /* no NBPC */
7096 # endif /* no NBPG */
7097 # endif /* no EXEC_PAGESIZE */
7098 # else /* no HAVE_SYS_PARAM_H */
7099 # define getpagesize() 8192 /* punt totally */
7100 # endif /* no HAVE_SYS_PARAM_H */
7101 # endif /* no _SC_PAGESIZE */
7103 #endif /* no HAVE_GETPAGESIZE */
7108 char *data, *data2, *data3;
7112 pagesize = getpagesize ();
7114 /* First, make a file with some known garbage in it. */
7115 data = (char *) malloc (pagesize);
7117 $ac_main_return (1);
7118 for (i = 0; i < pagesize; ++i)
7119 *(data + i) = rand ();
7121 fd = creat ("conftest.mmap", 0600);
7123 $ac_main_return (1);
7124 if (write (fd, data, pagesize) != pagesize)
7125 $ac_main_return (1);
7128 /* Next, try to mmap the file at a fixed address which already has
7129 something else allocated at it. If we can, also make sure that
7130 we see the same garbage. */
7131 fd = open ("conftest.mmap", O_RDWR);
7133 $ac_main_return (1);
7134 data2 = (char *) malloc (2 * pagesize);
7136 $ac_main_return (1);
7137 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
7138 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7139 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7140 $ac_main_return (1);
7141 for (i = 0; i < pagesize; ++i)
7142 if (*(data + i) != *(data2 + i))
7143 $ac_main_return (1);
7145 /* Finally, make sure that changes to the mapped area do not
7146 percolate back to the file as seen by read(). (This is a bug on
7147 some variants of i386 svr4.0.) */
7148 for (i = 0; i < pagesize; ++i)
7149 *(data2 + i) = *(data2 + i) + 1;
7150 data3 = (char *) malloc (pagesize);
7152 $ac_main_return (1);
7153 if (read (fd, data3, pagesize) != pagesize)
7154 $ac_main_return (1);
7155 for (i = 0; i < pagesize; ++i)
7156 if (*(data + i) != *(data3 + i))
7157 $ac_main_return (1);
7159 $ac_main_return (0);
7162 rm -f conftest$ac_exeext
7163 if { (eval echo "$as_me:7163: \"$ac_link\"") >&5
7164 (eval $ac_link) 2>&5
7166 echo "$as_me:7166: \$? = $ac_status" >&5
7167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7168 { (eval echo "$as_me:7168: \"$ac_try\"") >&5
7171 echo "$as_me:7171: \$? = $ac_status" >&5
7172 (exit $ac_status); }; }; then
7173 ac_cv_func_mmap_fixed_mapped=yes
7175 echo "$as_me: program exited with status $ac_status" >&5
7176 echo "$as_me: failed program was:" >&5
7177 cat conftest.$ac_ext >&5
7178 ac_cv_func_mmap_fixed_mapped=no
7180 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7183 echo "$as_me:7183: result: $ac_cv_func_mmap_fixed_mapped" >&5
7184 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7185 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7187 cat >>confdefs.h <<\EOF
7194 echo "$as_me:7194: checking whether we are using the GNU C Library 2.1 or newer" >&5
7195 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7196 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7197 echo $ECHO_N "(cached) $ECHO_C" >&6
7199 cat >conftest.$ac_ext <<_ACEOF
7200 #line 7200 "configure"
7201 #include "confdefs.h"
7203 #include <features.h>
7204 #ifdef __GNU_LIBRARY__
7205 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212 egrep "Lucky GNU user" >/dev/null 2>&1; then
7213 ac_cv_gnu_library_2_1=yes
7215 ac_cv_gnu_library_2_1=no
7220 echo "$as_me:7220: result: $ac_cv_gnu_library_2_1" >&5
7221 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7223 GLIBC21="$ac_cv_gnu_library_2_1"
7225 cf_makefile=makefile
7227 test -z "$ALL_LINGUAS" && ALL_LINGUAS=`test -d $srcdir/po && cd $srcdir/po && echo *.po|sed -e 's/\.po//g' -e 's/*//'`
7229 # Allow override of "config.h" definition:
7230 : ${CONFIG_H:=config.h}
7232 if test -z "$PACKAGE" ; then
7233 { { echo "$as_me:7233: error: CF_BUNDLED_INTL used without setting PACKAGE variable" >&5
7234 echo "$as_me: error: CF_BUNDLED_INTL used without setting PACKAGE variable" >&2;}
7235 { (exit 1); exit 1; }; }
7238 if test -z "$VERSION" ; then
7239 if test -f $srcdir/VERSION ; then
7240 VERSION=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
7246 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7247 stdlib.h string.h unistd.h sys/param.h
7249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7250 echo "$as_me:7250: checking for $ac_header" >&5
7251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 cat >conftest.$ac_ext <<_ACEOF
7256 #line 7256 "configure"
7257 #include "confdefs.h"
7258 #include <$ac_header>
7260 if { (eval echo "$as_me:7260: \"$ac_cpp conftest.$ac_ext\"") >&5
7261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7263 egrep -v '^ *\+' conftest.er1 >conftest.err
7265 cat conftest.err >&5
7266 echo "$as_me:7266: \$? = $ac_status" >&5
7267 (exit $ac_status); } >/dev/null; then
7268 if test -s conftest.err; then
7269 ac_cpp_err=$ac_c_preproc_warn_flag
7276 if test -z "$ac_cpp_err"; then
7277 eval "$as_ac_Header=yes"
7279 echo "$as_me: failed program was:" >&5
7280 cat conftest.$ac_ext >&5
7281 eval "$as_ac_Header=no"
7283 rm -f conftest.err conftest.$ac_ext
7285 echo "$as_me:7285: result: `eval echo '${'$as_ac_Header'}'`" >&5
7286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7288 cat >>confdefs.h <<EOF
7289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7295 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7296 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7297 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7300 echo "$as_me:7300: checking for $ac_func" >&5
7301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7302 if eval "test \"\${$as_ac_var+set}\" = set"; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 cat >conftest.$ac_ext <<_ACEOF
7306 #line 7306 "configure"
7307 #include "confdefs.h"
7308 /* System header to define __stub macros and hopefully few prototypes,
7309 which can conflict with char $ac_func (); below. */
7311 /* Override any gcc2 internal prototype to avoid an error. */
7315 /* We use char because int might match the return type of a gcc2
7316 builtin and then its argument prototype would still apply. */
7323 /* The GNU C library defines this for functions which it implements
7324 to always fail with ENOSYS. Some functions are actually named
7325 something starting with __ and the normal name is an alias. */
7326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7329 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7336 rm -f conftest.$ac_objext conftest$ac_exeext
7337 if { (eval echo "$as_me:7337: \"$ac_link\"") >&5
7338 (eval $ac_link) 2>&5
7340 echo "$as_me:7340: \$? = $ac_status" >&5
7341 (exit $ac_status); } &&
7342 { ac_try='test -s conftest$ac_exeext'
7343 { (eval echo "$as_me:7343: \"$ac_try\"") >&5
7346 echo "$as_me:7346: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7348 eval "$as_ac_var=yes"
7350 echo "$as_me: failed program was:" >&5
7351 cat conftest.$ac_ext >&5
7352 eval "$as_ac_var=no"
7354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7356 echo "$as_me:7356: result: `eval echo '${'$as_ac_var'}'`" >&5
7357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7358 if test `eval echo '${'$as_ac_var'}'` = yes; then
7359 cat >>confdefs.h <<EOF
7360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7366 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7367 if test "${with_libiconv_prefix+set}" = set; then
7368 withval="$with_libiconv_prefix"
7377 for cf_searchpath in `echo "$withval" | tr $PATH_SEPARATOR ' '`; do
7378 if test -d $cf_searchpath/include; then
7380 if test -n "$cf_searchpath/include" ; then
7381 for cf_add_incdir in $cf_searchpath/include
7383 while test $cf_add_incdir != /usr/include
7385 if test -d $cf_add_incdir
7388 if test -n "$CFLAGS$CPPFLAGS" ; then
7389 # a loop is needed to ensure we can add subdirs of existing dirs
7390 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7391 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7392 cf_have_incdir=yes; break
7397 if test "$cf_have_incdir" = no ; then
7398 if test "$cf_add_incdir" = /usr/local/include ; then
7399 if test "$GCC" = yes
7401 cf_save_CPPFLAGS=$CPPFLAGS
7403 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7404 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
7406 cat >conftest.$ac_ext <<_ACEOF
7407 #line 7407 "configure"
7408 #include "confdefs.h"
7418 rm -f conftest.$ac_objext
7419 if { (eval echo "$as_me:7419: \"$ac_compile\"") >&5
7420 (eval $ac_compile) 2>&5
7422 echo "$as_me:7422: \$? = $ac_status" >&5
7423 (exit $ac_status); } &&
7424 { ac_try='test -s conftest.$ac_objext'
7425 { (eval echo "$as_me:7425: \"$ac_try\"") >&5
7428 echo "$as_me:7428: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7432 echo "$as_me: failed program was:" >&5
7433 cat conftest.$ac_ext >&5
7436 rm -f conftest.$ac_objext conftest.$ac_ext
7437 CPPFLAGS=$cf_save_CPPFLAGS
7442 if test "$cf_have_incdir" = no ; then
7443 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7445 echo "${as_me:-configure}:7445: testing adding $cf_add_incdir to include-path ..." 1>&5
7447 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7449 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7450 test "$cf_top_incdir" = "$cf_add_incdir" && break
7451 cf_add_incdir="$cf_top_incdir"
7462 elif test -d $cf_searchpath/../include ; then
7464 if test -n "$cf_searchpath/../include" ; then
7465 for cf_add_incdir in $cf_searchpath/../include
7467 while test $cf_add_incdir != /usr/include
7469 if test -d $cf_add_incdir
7472 if test -n "$CFLAGS$CPPFLAGS" ; then
7473 # a loop is needed to ensure we can add subdirs of existing dirs
7474 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7475 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7476 cf_have_incdir=yes; break
7481 if test "$cf_have_incdir" = no ; then
7482 if test "$cf_add_incdir" = /usr/local/include ; then
7483 if test "$GCC" = yes
7485 cf_save_CPPFLAGS=$CPPFLAGS
7487 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7488 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
7490 cat >conftest.$ac_ext <<_ACEOF
7491 #line 7491 "configure"
7492 #include "confdefs.h"
7502 rm -f conftest.$ac_objext
7503 if { (eval echo "$as_me:7503: \"$ac_compile\"") >&5
7504 (eval $ac_compile) 2>&5
7506 echo "$as_me:7506: \$? = $ac_status" >&5
7507 (exit $ac_status); } &&
7508 { ac_try='test -s conftest.$ac_objext'
7509 { (eval echo "$as_me:7509: \"$ac_try\"") >&5
7512 echo "$as_me:7512: \$? = $ac_status" >&5
7513 (exit $ac_status); }; }; then
7516 echo "$as_me: failed program was:" >&5
7517 cat conftest.$ac_ext >&5
7520 rm -f conftest.$ac_objext conftest.$ac_ext
7521 CPPFLAGS=$cf_save_CPPFLAGS
7526 if test "$cf_have_incdir" = no ; then
7527 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7529 echo "${as_me:-configure}:7529: testing adding $cf_add_incdir to include-path ..." 1>&5
7531 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7533 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7534 test "$cf_top_incdir" = "$cf_add_incdir" && break
7535 cf_add_incdir="$cf_top_incdir"
7547 { { echo "$as_me:7547: error: cannot find libiconv under $withval" >&5
7548 echo "$as_me: error: cannot find libiconv under $withval" >&2;}
7549 { (exit 1); exit 1; }; }
7551 if test -d $cf_searchpath/lib; then
7553 if test -n "$cf_searchpath/lib" ; then
7554 for cf_add_libdir in $cf_searchpath/lib
7556 if test $cf_add_libdir = /usr/lib ; then
7558 elif test -d $cf_add_libdir
7561 if test -n "$LDFLAGS$LIBS" ; then
7562 # a loop is needed to ensure we can add subdirs of existing dirs
7563 for cf_test_libdir in $LDFLAGS $LIBS ; do
7564 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7565 cf_have_libdir=yes; break
7569 if test "$cf_have_libdir" = no ; then
7570 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7572 echo "${as_me:-configure}:7572: testing adding $cf_add_libdir to library-path ..." 1>&5
7574 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7580 elif test -d $cf_searchpath ; then
7582 if test -n "$cf_searchpath" ; then
7583 for cf_add_libdir in $cf_searchpath
7585 if test $cf_add_libdir = /usr/lib ; then
7587 elif test -d $cf_add_libdir
7590 if test -n "$LDFLAGS$LIBS" ; then
7591 # a loop is needed to ensure we can add subdirs of existing dirs
7592 for cf_test_libdir in $LDFLAGS $LIBS ; do
7593 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7594 cf_have_libdir=yes; break
7598 if test "$cf_have_libdir" = no ; then
7599 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7601 echo "${as_me:-configure}:7601: testing adding $cf_add_libdir to library-path ..." 1>&5
7603 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7610 { { echo "$as_me:7610: error: cannot find libiconv under $withval" >&5
7611 echo "$as_me: error: cannot find libiconv under $withval" >&2;}
7612 { (exit 1); exit 1; }; }
7621 echo "$as_me:7621: checking for iconv" >&5
7622 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7623 if test "${am_cv_func_iconv+set}" = set; then
7624 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
7628 # will be set on completion of the AC_TRY_LINK below.
7629 cf_cv_header_path_iconv=
7630 cf_cv_library_path_iconv=
7632 echo "${as_me:-configure}:7632: testing Starting FIND_LINKAGE(iconv,) ..." 1>&5
7634 cf_save_LIBS="$LIBS"
7636 cat >conftest.$ac_ext <<_ACEOF
7637 #line 7637 "configure"
7638 #include "confdefs.h"
7647 iconv_t cd = iconv_open("","");
7648 iconv(cd,NULL,NULL,NULL,NULL);
7655 rm -f conftest.$ac_objext conftest$ac_exeext
7656 if { (eval echo "$as_me:7656: \"$ac_link\"") >&5
7657 (eval $ac_link) 2>&5
7659 echo "$as_me:7659: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try='test -s conftest$ac_exeext'
7662 { (eval echo "$as_me:7662: \"$ac_try\"") >&5
7665 echo "$as_me:7665: \$? = $ac_status" >&5
7666 (exit $ac_status); }; }; then
7668 cf_cv_find_linkage_iconv=yes
7669 cf_cv_header_path_iconv=/usr/include
7670 cf_cv_library_path_iconv=/usr/lib
7673 echo "$as_me: failed program was:" >&5
7674 cat conftest.$ac_ext >&5
7676 LIBS="-liconv $cf_save_LIBS"
7678 cat >conftest.$ac_ext <<_ACEOF
7679 #line 7679 "configure"
7680 #include "confdefs.h"
7689 iconv_t cd = iconv_open("","");
7690 iconv(cd,NULL,NULL,NULL,NULL);
7697 rm -f conftest.$ac_objext conftest$ac_exeext
7698 if { (eval echo "$as_me:7698: \"$ac_link\"") >&5
7699 (eval $ac_link) 2>&5
7701 echo "$as_me:7701: \$? = $ac_status" >&5
7702 (exit $ac_status); } &&
7703 { ac_try='test -s conftest$ac_exeext'
7704 { (eval echo "$as_me:7704: \"$ac_try\"") >&5
7707 echo "$as_me:7707: \$? = $ac_status" >&5
7708 (exit $ac_status); }; }; then
7710 cf_cv_find_linkage_iconv=yes
7711 cf_cv_header_path_iconv=/usr/include
7712 cf_cv_library_path_iconv=/usr/lib
7713 cf_cv_library_file_iconv="-liconv"
7716 echo "$as_me: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7719 cf_cv_find_linkage_iconv=no
7720 LIBS="$cf_save_LIBS"
7722 test -n "$verbose" && echo " find linkage for iconv library" 1>&6
7724 echo "${as_me:-configure}:7724: testing find linkage for iconv library ..." 1>&5
7726 echo "${as_me:-configure}:7726: testing Searching for headers in FIND_LINKAGE(iconv,) ..." 1>&5
7728 cf_save_CPPFLAGS="$CPPFLAGS"
7729 cf_test_CPPFLAGS="$CPPFLAGS"
7733 # collect the current set of include-directories from compiler flags
7734 cf_header_path_list=""
7735 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7736 for cf_header_path in $CPPFLAGS $CFLAGS
7738 case $cf_header_path in
7740 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7742 test "x$cf_header_path" != "xNONE" && \
7743 test -d "$cf_header_path" && \
7745 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7746 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7747 test -d $cf_header_path/include/iconv && cf_search="$cf_search $cf_header_path/include/iconv"
7748 test -d $cf_header_path/include/iconv/include && cf_search="$cf_search $cf_header_path/include/iconv/include"
7749 test -d $cf_header_path/iconv/include && cf_search="$cf_search $cf_header_path/iconv/include"
7750 test -d $cf_header_path/iconv/include/iconv && cf_search="$cf_search $cf_header_path/iconv/include/iconv"
7753 cf_header_path_list="$cf_header_path_list $cf_search"
7759 # add the variations for the package we are looking for
7763 test "x$prefix" != "xNONE" && \
7764 test -d "$prefix" && \
7766 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7767 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7768 test -d $prefix/include/iconv && cf_search="$cf_search $prefix/include/iconv"
7769 test -d $prefix/include/iconv/include && cf_search="$cf_search $prefix/include/iconv/include"
7770 test -d $prefix/iconv/include && cf_search="$cf_search $prefix/iconv/include"
7771 test -d $prefix/iconv/include/iconv && cf_search="$cf_search $prefix/iconv/include/iconv"
7774 for cf_subdir_prefix in \
7783 test "x$cf_subdir_prefix" != "x$prefix" && \
7784 test -d "$cf_subdir_prefix" && \
7785 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
7786 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
7787 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
7788 test -d $cf_subdir_prefix/include/iconv && cf_search="$cf_search $cf_subdir_prefix/include/iconv"
7789 test -d $cf_subdir_prefix/include/iconv/include && cf_search="$cf_search $cf_subdir_prefix/include/iconv/include"
7790 test -d $cf_subdir_prefix/iconv/include && cf_search="$cf_search $cf_subdir_prefix/iconv/include"
7791 test -d $cf_subdir_prefix/iconv/include/iconv && cf_search="$cf_search $cf_subdir_prefix/iconv/include/iconv"
7796 test "$includedir" != NONE && \
7797 test "$includedir" != "/usr/include" && \
7798 test -d "$includedir" && {
7799 test -d $includedir && cf_search="$cf_search $includedir"
7800 test -d $includedir/iconv && cf_search="$cf_search $includedir/iconv"
7803 test "$oldincludedir" != NONE && \
7804 test "$oldincludedir" != "/usr/include" && \
7805 test -d "$oldincludedir" && {
7806 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7807 test -d $oldincludedir/iconv && cf_search="$cf_search $oldincludedir/iconv"
7810 cf_search="$cf_search $cf_header_path_list"
7812 for cf_cv_header_path_iconv in $cf_search
7814 if test -d $cf_cv_header_path_iconv ; then
7815 test -n "$verbose" && echo " ... testing $cf_cv_header_path_iconv" 1>&6
7817 echo "${as_me:-configure}:7817: testing ... testing $cf_cv_header_path_iconv ..." 1>&5
7819 CPPFLAGS="$cf_save_CPPFLAGS"
7821 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7822 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_iconv"
7824 cat >conftest.$ac_ext <<_ACEOF
7825 #line 7825 "configure"
7826 #include "confdefs.h"
7835 iconv_t cd = iconv_open("","");
7836 iconv(cd,NULL,NULL,NULL,NULL);
7843 rm -f conftest.$ac_objext
7844 if { (eval echo "$as_me:7844: \"$ac_compile\"") >&5
7845 (eval $ac_compile) 2>&5
7847 echo "$as_me:7847: \$? = $ac_status" >&5
7848 (exit $ac_status); } &&
7849 { ac_try='test -s conftest.$ac_objext'
7850 { (eval echo "$as_me:7850: \"$ac_try\"") >&5
7853 echo "$as_me:7853: \$? = $ac_status" >&5
7854 (exit $ac_status); }; }; then
7856 test -n "$verbose" && echo " ... found iconv headers in $cf_cv_header_path_iconv" 1>&6
7858 echo "${as_me:-configure}:7858: testing ... found iconv headers in $cf_cv_header_path_iconv ..." 1>&5
7860 cf_cv_find_linkage_iconv=maybe
7861 cf_test_CPPFLAGS="$CPPFLAGS"
7864 echo "$as_me: failed program was:" >&5
7865 cat conftest.$ac_ext >&5
7867 CPPFLAGS="$cf_save_CPPFLAGS"
7870 rm -f conftest.$ac_objext conftest.$ac_ext
7874 if test "$cf_cv_find_linkage_iconv" = maybe ; then
7876 echo "${as_me:-configure}:7876: testing Searching for iconv library in FIND_LINKAGE(iconv,) ..." 1>&5
7878 cf_save_LIBS="$LIBS"
7879 cf_save_LDFLAGS="$LDFLAGS"
7881 if test "$cf_cv_find_linkage_iconv" != yes ; then
7884 cf_library_path_list=""
7885 if test -n "${LDFLAGS}${LIBS}" ; then
7886 for cf_library_path in $LDFLAGS $LIBS
7888 case $cf_library_path in
7890 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7892 test "x$cf_library_path" != "xNONE" && \
7893 test -d "$cf_library_path" && \
7895 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7896 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7897 test -d $cf_library_path/lib/iconv && cf_search="$cf_search $cf_library_path/lib/iconv"
7898 test -d $cf_library_path/lib/iconv/lib && cf_search="$cf_search $cf_library_path/lib/iconv/lib"
7899 test -d $cf_library_path/iconv/lib && cf_search="$cf_search $cf_library_path/iconv/lib"
7900 test -d $cf_library_path/iconv/lib/iconv && cf_search="$cf_search $cf_library_path/iconv/lib/iconv"
7903 cf_library_path_list="$cf_library_path_list $cf_search"
7911 test "x$prefix" != "xNONE" && \
7912 test -d "$prefix" && \
7914 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7915 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7916 test -d $prefix/lib/iconv && cf_search="$cf_search $prefix/lib/iconv"
7917 test -d $prefix/lib/iconv/lib && cf_search="$cf_search $prefix/lib/iconv/lib"
7918 test -d $prefix/iconv/lib && cf_search="$cf_search $prefix/iconv/lib"
7919 test -d $prefix/iconv/lib/iconv && cf_search="$cf_search $prefix/iconv/lib/iconv"
7922 for cf_subdir_prefix in \
7931 test "x$cf_subdir_prefix" != "x$prefix" && \
7932 test -d "$cf_subdir_prefix" && \
7933 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
7934 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
7935 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
7936 test -d $cf_subdir_prefix/lib/iconv && cf_search="$cf_search $cf_subdir_prefix/lib/iconv"
7937 test -d $cf_subdir_prefix/lib/iconv/lib && cf_search="$cf_search $cf_subdir_prefix/lib/iconv/lib"
7938 test -d $cf_subdir_prefix/iconv/lib && cf_search="$cf_search $cf_subdir_prefix/iconv/lib"
7939 test -d $cf_subdir_prefix/iconv/lib/iconv && cf_search="$cf_search $cf_subdir_prefix/iconv/lib/iconv"
7944 cf_search="$cf_library_path_list $cf_search"
7946 for cf_cv_library_path_iconv in $cf_search
7948 if test -d $cf_cv_library_path_iconv ; then
7949 test -n "$verbose" && echo " ... testing $cf_cv_library_path_iconv" 1>&6
7951 echo "${as_me:-configure}:7951: testing ... testing $cf_cv_library_path_iconv ..." 1>&5
7953 CPPFLAGS="$cf_test_CPPFLAGS"
7954 LIBS="-liconv $cf_save_LIBS"
7955 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_iconv"
7956 cat >conftest.$ac_ext <<_ACEOF
7957 #line 7957 "configure"
7958 #include "confdefs.h"
7967 iconv_t cd = iconv_open("","");
7968 iconv(cd,NULL,NULL,NULL,NULL);
7975 rm -f conftest.$ac_objext conftest$ac_exeext
7976 if { (eval echo "$as_me:7976: \"$ac_link\"") >&5
7977 (eval $ac_link) 2>&5
7979 echo "$as_me:7979: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try='test -s conftest$ac_exeext'
7982 { (eval echo "$as_me:7982: \"$ac_try\"") >&5
7985 echo "$as_me:7985: \$? = $ac_status" >&5
7986 (exit $ac_status); }; }; then
7988 test -n "$verbose" && echo " ... found iconv library in $cf_cv_library_path_iconv" 1>&6
7990 echo "${as_me:-configure}:7990: testing ... found iconv library in $cf_cv_library_path_iconv ..." 1>&5
7992 cf_cv_find_linkage_iconv=yes
7993 cf_cv_library_file_iconv="-liconv"
7996 echo "$as_me: failed program was:" >&5
7997 cat conftest.$ac_ext >&5
7999 CPPFLAGS="$cf_save_CPPFLAGS"
8000 LIBS="$cf_save_LIBS"
8001 LDFLAGS="$cf_save_LDFLAGS"
8004 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8007 CPPFLAGS="$cf_save_CPPFLAGS"
8008 LDFLAGS="$cf_save_LDFLAGS"
8012 cf_cv_find_linkage_iconv=no
8016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8021 LIBS="$cf_save_LIBS"
8023 if test "$cf_cv_find_linkage_iconv" = yes ; then
8024 am_cv_func_iconv=yes
8026 am_cv_func_iconv="no, consider installing GNU libiconv"
8030 echo "$as_me:8030: result: $am_cv_func_iconv" >&5
8031 echo "${ECHO_T}$am_cv_func_iconv" >&6
8033 if test "$am_cv_func_iconv" = yes; then
8035 cat >>confdefs.h <<\EOF
8036 #define HAVE_ICONV 1
8039 echo "$as_me:8039: checking if the declaration of iconv() needs const." >&5
8040 echo $ECHO_N "checking if the declaration of iconv() needs const.... $ECHO_C" >&6
8041 if test "${am_cv_proto_iconv_const+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8045 cat >conftest.$ac_ext <<_ACEOF
8046 #line 8046 "configure"
8047 #include "confdefs.h"
8056 #if defined(__STDC__) || defined(__cplusplus)
8057 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8070 rm -f conftest.$ac_objext
8071 if { (eval echo "$as_me:8071: \"$ac_compile\"") >&5
8072 (eval $ac_compile) 2>&5
8074 echo "$as_me:8074: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
8076 { ac_try='test -s conftest.$ac_objext'
8077 { (eval echo "$as_me:8077: \"$ac_try\"") >&5
8080 echo "$as_me:8080: \$? = $ac_status" >&5
8081 (exit $ac_status); }; }; then
8082 am_cv_proto_iconv_const=no
8084 echo "$as_me: failed program was:" >&5
8085 cat conftest.$ac_ext >&5
8086 am_cv_proto_iconv_const=yes
8088 rm -f conftest.$ac_objext conftest.$ac_ext
8090 echo "$as_me:8090: result: $am_cv_proto_iconv_const" >&5
8091 echo "${ECHO_T}$am_cv_proto_iconv_const" >&6
8093 if test "$am_cv_proto_iconv_const" = yes ; then
8094 am_cv_proto_iconv_arg1="const"
8096 am_cv_proto_iconv_arg1=""
8099 cat >>confdefs.h <<EOF
8100 #define ICONV_CONST $am_cv_proto_iconv_arg1
8106 if test "$cf_cv_find_linkage_iconv" = yes; then
8108 if test -n "$cf_cv_header_path_iconv" ; then
8109 for cf_add_incdir in $cf_cv_header_path_iconv
8111 while test $cf_add_incdir != /usr/include
8113 if test -d $cf_add_incdir
8116 if test -n "$CFLAGS$CPPFLAGS" ; then
8117 # a loop is needed to ensure we can add subdirs of existing dirs
8118 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8119 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8120 cf_have_incdir=yes; break
8125 if test "$cf_have_incdir" = no ; then
8126 if test "$cf_add_incdir" = /usr/local/include ; then
8127 if test "$GCC" = yes
8129 cf_save_CPPFLAGS=$CPPFLAGS
8131 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8132 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
8134 cat >conftest.$ac_ext <<_ACEOF
8135 #line 8135 "configure"
8136 #include "confdefs.h"
8146 rm -f conftest.$ac_objext
8147 if { (eval echo "$as_me:8147: \"$ac_compile\"") >&5
8148 (eval $ac_compile) 2>&5
8150 echo "$as_me:8150: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -s conftest.$ac_objext'
8153 { (eval echo "$as_me:8153: \"$ac_try\"") >&5
8156 echo "$as_me:8156: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8160 echo "$as_me: failed program was:" >&5
8161 cat conftest.$ac_ext >&5
8164 rm -f conftest.$ac_objext conftest.$ac_ext
8165 CPPFLAGS=$cf_save_CPPFLAGS
8170 if test "$cf_have_incdir" = no ; then
8171 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8173 echo "${as_me:-configure}:8173: testing adding $cf_add_incdir to include-path ..." 1>&5
8175 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8177 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8178 test "$cf_top_incdir" = "$cf_add_incdir" && break
8179 cf_add_incdir="$cf_top_incdir"
8190 if test -n "$cf_cv_library_file_iconv" ; then
8193 if test -n "$cf_cv_library_path_iconv" ; then
8194 for cf_add_libdir in $cf_cv_library_path_iconv
8196 if test $cf_add_libdir = /usr/lib ; then
8198 elif test -d $cf_add_libdir
8201 if test -n "$LDFLAGS$LIBS" ; then
8202 # a loop is needed to ensure we can add subdirs of existing dirs
8203 for cf_test_libdir in $LDFLAGS $LIBS ; do
8204 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
8205 cf_have_libdir=yes; break
8209 if test "$cf_have_libdir" = no ; then
8210 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
8212 echo "${as_me:-configure}:8212: testing adding $cf_add_libdir to library-path ..." 1>&5
8214 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
8223 echo "$as_me:8223: checking for nl_langinfo and CODESET" >&5
8224 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8225 if test "${am_cv_langinfo_codeset+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 cat >conftest.$ac_ext <<_ACEOF
8229 #line 8229 "configure"
8230 #include "confdefs.h"
8231 #include <langinfo.h>
8235 char* cs = nl_langinfo(CODESET);
8240 rm -f conftest.$ac_objext conftest$ac_exeext
8241 if { (eval echo "$as_me:8241: \"$ac_link\"") >&5
8242 (eval $ac_link) 2>&5
8244 echo "$as_me:8244: \$? = $ac_status" >&5
8245 (exit $ac_status); } &&
8246 { ac_try='test -s conftest$ac_exeext'
8247 { (eval echo "$as_me:8247: \"$ac_try\"") >&5
8250 echo "$as_me:8250: \$? = $ac_status" >&5
8251 (exit $ac_status); }; }; then
8252 am_cv_langinfo_codeset=yes
8254 echo "$as_me: failed program was:" >&5
8255 cat conftest.$ac_ext >&5
8256 am_cv_langinfo_codeset=no
8258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8261 echo "$as_me:8261: result: $am_cv_langinfo_codeset" >&5
8262 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8263 if test $am_cv_langinfo_codeset = yes; then
8265 cat >>confdefs.h <<\EOF
8266 #define HAVE_LANGINFO_CODESET 1
8271 if test $ac_cv_header_locale_h = yes; then
8272 echo "$as_me:8272: checking for LC_MESSAGES" >&5
8273 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8274 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 cat >conftest.$ac_ext <<_ACEOF
8278 #line 8278 "configure"
8279 #include "confdefs.h"
8289 rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (eval echo "$as_me:8290: \"$ac_link\"") >&5
8291 (eval $ac_link) 2>&5
8293 echo "$as_me:8293: \$? = $ac_status" >&5
8294 (exit $ac_status); } &&
8295 { ac_try='test -s conftest$ac_exeext'
8296 { (eval echo "$as_me:8296: \"$ac_try\"") >&5
8299 echo "$as_me:8299: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8301 am_cv_val_LC_MESSAGES=yes
8303 echo "$as_me: failed program was:" >&5
8304 cat conftest.$ac_ext >&5
8305 am_cv_val_LC_MESSAGES=no
8307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8309 echo "$as_me:8309: result: $am_cv_val_LC_MESSAGES" >&5
8310 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8311 if test $am_cv_val_LC_MESSAGES = yes; then
8313 cat >>confdefs.h <<\EOF
8314 #define HAVE_LC_MESSAGES 1
8319 echo "$as_me:8319: checking whether NLS is requested" >&5
8320 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8322 # Check whether --enable-nls or --disable-nls was given.
8323 if test "${enable_nls+set}" = set; then
8324 enableval="$enable_nls"
8329 echo "$as_me:8329: result: $USE_NLS" >&5
8330 echo "${ECHO_T}$USE_NLS" >&6
8332 BUILD_INCLUDED_LIBINTL=no
8333 USE_INCLUDED_LIBINTL=no
8336 if test "$USE_NLS" = "yes"; then
8339 cat >>confdefs.h <<\EOF
8340 #define ENABLE_NLS 1
8343 echo "$as_me:8343: checking whether included gettext is requested" >&5
8344 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8346 # Check whether --with-included-gettext or --without-included-gettext was given.
8347 if test "${with_included_gettext+set}" = set; then
8348 withval="$with_included_gettext"
8349 nls_cv_force_use_gnu_gettext=$withval
8351 nls_cv_force_use_gnu_gettext=no
8353 echo "$as_me:8353: result: $nls_cv_force_use_gnu_gettext" >&5
8354 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8356 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8357 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8360 cf_save_msgfmt_path="$MSGFMT"
8361 cf_save_xgettext_path="$XGETTEXT"
8363 # Extract the first word of "msgfmt", so it can be a program name with args.
8365 set dummy msgfmt; ac_word=$2
8366 echo "$as_me:8366: checking for $ac_word" >&5
8367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8368 if test "${ac_cv_path_MSGFMT+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
8377 for ac_dir in $PATH; do
8378 test -z "$ac_dir" && ac_dir=.
8379 if test -f $ac_dir/$ac_word$ac_exeext; then
8380 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
8381 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exeext"
8387 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8391 MSGFMT="$ac_cv_path_MSGFMT"
8392 if test "$MSGFMT" != ":"; then
8393 echo "$as_me:8393: result: $MSGFMT" >&5
8394 echo "${ECHO_T}$MSGFMT" >&6
8396 echo "$as_me:8396: result: no" >&5
8397 echo "${ECHO_T}no" >&6
8400 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8401 set dummy gmsgfmt; ac_word=$2
8402 echo "$as_me:8402: checking for $ac_word" >&5
8403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8404 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8409 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8412 ac_save_IFS=$IFS; IFS=$ac_path_separator
8414 for ac_dir in $ac_dummy; do
8416 test -z "$ac_dir" && ac_dir=.
8417 if $as_executable_p "$ac_dir/$ac_word"; then
8418 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8419 echo "$as_me:8419: found $ac_dir/$ac_word" >&5
8424 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8428 GMSGFMT=$ac_cv_path_GMSGFMT
8430 if test -n "$GMSGFMT"; then
8431 echo "$as_me:8431: result: $GMSGFMT" >&5
8432 echo "${ECHO_T}$GMSGFMT" >&6
8434 echo "$as_me:8434: result: no" >&5
8435 echo "${ECHO_T}no" >&6
8438 # Extract the first word of "xgettext", so it can be a program name with args.
8440 set dummy xgettext; ac_word=$2
8441 echo "$as_me:8441: checking for $ac_word" >&5
8442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8443 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
8452 for ac_dir in $PATH; do
8453 test -z "$ac_dir" && ac_dir=.
8454 if test -f $ac_dir/$ac_word$ac_exeext; then
8455 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
8456 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exeext"
8462 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8466 XGETTEXT="$ac_cv_path_XGETTEXT"
8467 if test "$XGETTEXT" != ":"; then
8468 echo "$as_me:8468: result: $XGETTEXT" >&5
8469 echo "${ECHO_T}$XGETTEXT" >&6
8471 echo "$as_me:8471: result: no" >&5
8472 echo "${ECHO_T}no" >&6
8475 cf_save_OPTS_1="$CPPFLAGS"
8476 if test "x$cf_save_msgfmt_path" = "x$MSGFMT" && \
8477 test "x$cf_save_xgettext_path" = "x$XGETTEXT" ; then
8482 cf_new_extra_cppflags=
8484 for cf_add_cflags in -DIGNORE_MSGFMT_HACK
8486 case $cf_fix_cppflags in
8488 case $cf_add_cflags in
8489 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8490 case $cf_add_cflags in
8492 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8494 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8495 && test -z "${cf_tst_cflags}" \
8496 && cf_fix_cppflags=yes
8498 if test $cf_fix_cppflags = yes ; then
8500 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8501 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8504 elif test "${cf_tst_cflags}" = "\"'" ; then
8506 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8507 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8517 case $cf_add_cflags in
8519 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8521 CPPFLAGS=`echo "$CPPFLAGS" | \
8522 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8523 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8528 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8529 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8536 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8537 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8544 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8545 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8547 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8549 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8550 && test -z "${cf_tst_cflags}" \
8551 && cf_fix_cppflags=no
8556 if test -n "$cf_new_cflags" ; then
8558 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8559 CFLAGS="${CFLAGS}$cf_new_cflags"
8563 if test -n "$cf_new_cppflags" ; then
8565 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8566 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8570 if test -n "$cf_new_extra_cppflags" ; then
8572 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8573 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8579 cf_save_LIBS_1="$LIBS"
8581 cf_add_libs="$LIBICONV"
8582 # Filter out duplicates - this happens with badly-designed ".pc" files...
8583 for cf_add_1lib in $LIBS
8585 for cf_add_2lib in $cf_add_libs
8587 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8593 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8597 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
8598 # will be set on completion of the AC_TRY_LINK below.
8599 cf_cv_header_path_intl=
8600 cf_cv_library_path_intl=
8602 echo "${as_me:-configure}:8602: testing Starting FIND_LINKAGE(intl,) ..." 1>&5
8604 cf_save_LIBS="$LIBS"
8606 cat >conftest.$ac_ext <<_ACEOF
8607 #line 8607 "configure"
8608 #include "confdefs.h"
8610 #include <libintl.h>
8611 extern int _nl_msg_cat_cntr;
8617 bindtextdomain ("", "");
8618 return (int) gettext ("")
8620 #ifndef IGNORE_MSGFMT_HACK
8628 rm -f conftest.$ac_objext conftest$ac_exeext
8629 if { (eval echo "$as_me:8629: \"$ac_link\"") >&5
8630 (eval $ac_link) 2>&5
8632 echo "$as_me:8632: \$? = $ac_status" >&5
8633 (exit $ac_status); } &&
8634 { ac_try='test -s conftest$ac_exeext'
8635 { (eval echo "$as_me:8635: \"$ac_try\"") >&5
8638 echo "$as_me:8638: \$? = $ac_status" >&5
8639 (exit $ac_status); }; }; then
8641 cf_cv_find_linkage_intl=yes
8642 cf_cv_header_path_intl=/usr/include
8643 cf_cv_library_path_intl=/usr/lib
8646 echo "$as_me: failed program was:" >&5
8647 cat conftest.$ac_ext >&5
8649 LIBS="-lintl $cf_save_LIBS"
8651 cat >conftest.$ac_ext <<_ACEOF
8652 #line 8652 "configure"
8653 #include "confdefs.h"
8655 #include <libintl.h>
8656 extern int _nl_msg_cat_cntr;
8662 bindtextdomain ("", "");
8663 return (int) gettext ("")
8665 #ifndef IGNORE_MSGFMT_HACK
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 if { (eval echo "$as_me:8674: \"$ac_link\"") >&5
8675 (eval $ac_link) 2>&5
8677 echo "$as_me:8677: \$? = $ac_status" >&5
8678 (exit $ac_status); } &&
8679 { ac_try='test -s conftest$ac_exeext'
8680 { (eval echo "$as_me:8680: \"$ac_try\"") >&5
8683 echo "$as_me:8683: \$? = $ac_status" >&5
8684 (exit $ac_status); }; }; then
8686 cf_cv_find_linkage_intl=yes
8687 cf_cv_header_path_intl=/usr/include
8688 cf_cv_library_path_intl=/usr/lib
8689 cf_cv_library_file_intl="-lintl"
8692 echo "$as_me: failed program was:" >&5
8693 cat conftest.$ac_ext >&5
8695 cf_cv_find_linkage_intl=no
8696 LIBS="$cf_save_LIBS"
8698 test -n "$verbose" && echo " find linkage for intl library" 1>&6
8700 echo "${as_me:-configure}:8700: testing find linkage for intl library ..." 1>&5
8702 echo "${as_me:-configure}:8702: testing Searching for headers in FIND_LINKAGE(intl,) ..." 1>&5
8704 cf_save_CPPFLAGS="$CPPFLAGS"
8705 cf_test_CPPFLAGS="$CPPFLAGS"
8709 # collect the current set of include-directories from compiler flags
8710 cf_header_path_list=""
8711 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8712 for cf_header_path in $CPPFLAGS $CFLAGS
8714 case $cf_header_path in
8716 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8718 test "x$cf_header_path" != "xNONE" && \
8719 test -d "$cf_header_path" && \
8721 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8722 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8723 test -d $cf_header_path/include/intl && cf_search="$cf_search $cf_header_path/include/intl"
8724 test -d $cf_header_path/include/intl/include && cf_search="$cf_search $cf_header_path/include/intl/include"
8725 test -d $cf_header_path/intl/include && cf_search="$cf_search $cf_header_path/intl/include"
8726 test -d $cf_header_path/intl/include/intl && cf_search="$cf_search $cf_header_path/intl/include/intl"
8729 cf_header_path_list="$cf_header_path_list $cf_search"
8735 # add the variations for the package we are looking for
8739 test "x$prefix" != "xNONE" && \
8740 test -d "$prefix" && \
8742 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8743 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8744 test -d $prefix/include/intl && cf_search="$cf_search $prefix/include/intl"
8745 test -d $prefix/include/intl/include && cf_search="$cf_search $prefix/include/intl/include"
8746 test -d $prefix/intl/include && cf_search="$cf_search $prefix/intl/include"
8747 test -d $prefix/intl/include/intl && cf_search="$cf_search $prefix/intl/include/intl"
8750 for cf_subdir_prefix in \
8759 test "x$cf_subdir_prefix" != "x$prefix" && \
8760 test -d "$cf_subdir_prefix" && \
8761 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
8762 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
8763 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
8764 test -d $cf_subdir_prefix/include/intl && cf_search="$cf_search $cf_subdir_prefix/include/intl"
8765 test -d $cf_subdir_prefix/include/intl/include && cf_search="$cf_search $cf_subdir_prefix/include/intl/include"
8766 test -d $cf_subdir_prefix/intl/include && cf_search="$cf_search $cf_subdir_prefix/intl/include"
8767 test -d $cf_subdir_prefix/intl/include/intl && cf_search="$cf_search $cf_subdir_prefix/intl/include/intl"
8772 test "$includedir" != NONE && \
8773 test "$includedir" != "/usr/include" && \
8774 test -d "$includedir" && {
8775 test -d $includedir && cf_search="$cf_search $includedir"
8776 test -d $includedir/intl && cf_search="$cf_search $includedir/intl"
8779 test "$oldincludedir" != NONE && \
8780 test "$oldincludedir" != "/usr/include" && \
8781 test -d "$oldincludedir" && {
8782 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8783 test -d $oldincludedir/intl && cf_search="$cf_search $oldincludedir/intl"
8786 cf_search="$cf_search $cf_header_path_list"
8788 for cf_cv_header_path_intl in $cf_search
8790 if test -d $cf_cv_header_path_intl ; then
8791 test -n "$verbose" && echo " ... testing $cf_cv_header_path_intl" 1>&6
8793 echo "${as_me:-configure}:8793: testing ... testing $cf_cv_header_path_intl ..." 1>&5
8795 CPPFLAGS="$cf_save_CPPFLAGS"
8797 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8798 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_intl"
8800 cat >conftest.$ac_ext <<_ACEOF
8801 #line 8801 "configure"
8802 #include "confdefs.h"
8804 #include <libintl.h>
8805 extern int _nl_msg_cat_cntr;
8811 bindtextdomain ("", "");
8812 return (int) gettext ("")
8814 #ifndef IGNORE_MSGFMT_HACK
8822 rm -f conftest.$ac_objext
8823 if { (eval echo "$as_me:8823: \"$ac_compile\"") >&5
8824 (eval $ac_compile) 2>&5
8826 echo "$as_me:8826: \$? = $ac_status" >&5
8827 (exit $ac_status); } &&
8828 { ac_try='test -s conftest.$ac_objext'
8829 { (eval echo "$as_me:8829: \"$ac_try\"") >&5
8832 echo "$as_me:8832: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8835 test -n "$verbose" && echo " ... found intl headers in $cf_cv_header_path_intl" 1>&6
8837 echo "${as_me:-configure}:8837: testing ... found intl headers in $cf_cv_header_path_intl ..." 1>&5
8839 cf_cv_find_linkage_intl=maybe
8840 cf_test_CPPFLAGS="$CPPFLAGS"
8843 echo "$as_me: failed program was:" >&5
8844 cat conftest.$ac_ext >&5
8846 CPPFLAGS="$cf_save_CPPFLAGS"
8849 rm -f conftest.$ac_objext conftest.$ac_ext
8853 if test "$cf_cv_find_linkage_intl" = maybe ; then
8855 echo "${as_me:-configure}:8855: testing Searching for intl library in FIND_LINKAGE(intl,) ..." 1>&5
8857 cf_save_LIBS="$LIBS"
8858 cf_save_LDFLAGS="$LDFLAGS"
8860 if test "$cf_cv_find_linkage_intl" != yes ; then
8863 cf_library_path_list=""
8864 if test -n "${LDFLAGS}${LIBS}" ; then
8865 for cf_library_path in $LDFLAGS $LIBS
8867 case $cf_library_path in
8869 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8871 test "x$cf_library_path" != "xNONE" && \
8872 test -d "$cf_library_path" && \
8874 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8875 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8876 test -d $cf_library_path/lib/intl && cf_search="$cf_search $cf_library_path/lib/intl"
8877 test -d $cf_library_path/lib/intl/lib && cf_search="$cf_search $cf_library_path/lib/intl/lib"
8878 test -d $cf_library_path/intl/lib && cf_search="$cf_search $cf_library_path/intl/lib"
8879 test -d $cf_library_path/intl/lib/intl && cf_search="$cf_search $cf_library_path/intl/lib/intl"
8882 cf_library_path_list="$cf_library_path_list $cf_search"
8890 test "x$prefix" != "xNONE" && \
8891 test -d "$prefix" && \
8893 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8894 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8895 test -d $prefix/lib/intl && cf_search="$cf_search $prefix/lib/intl"
8896 test -d $prefix/lib/intl/lib && cf_search="$cf_search $prefix/lib/intl/lib"
8897 test -d $prefix/intl/lib && cf_search="$cf_search $prefix/intl/lib"
8898 test -d $prefix/intl/lib/intl && cf_search="$cf_search $prefix/intl/lib/intl"
8901 for cf_subdir_prefix in \
8910 test "x$cf_subdir_prefix" != "x$prefix" && \
8911 test -d "$cf_subdir_prefix" && \
8912 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
8913 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
8914 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
8915 test -d $cf_subdir_prefix/lib/intl && cf_search="$cf_search $cf_subdir_prefix/lib/intl"
8916 test -d $cf_subdir_prefix/lib/intl/lib && cf_search="$cf_search $cf_subdir_prefix/lib/intl/lib"
8917 test -d $cf_subdir_prefix/intl/lib && cf_search="$cf_search $cf_subdir_prefix/intl/lib"
8918 test -d $cf_subdir_prefix/intl/lib/intl && cf_search="$cf_search $cf_subdir_prefix/intl/lib/intl"
8923 cf_search="$cf_library_path_list $cf_search"
8925 for cf_cv_library_path_intl in $cf_search
8927 if test -d $cf_cv_library_path_intl ; then
8928 test -n "$verbose" && echo " ... testing $cf_cv_library_path_intl" 1>&6
8930 echo "${as_me:-configure}:8930: testing ... testing $cf_cv_library_path_intl ..." 1>&5
8932 CPPFLAGS="$cf_test_CPPFLAGS"
8933 LIBS="-lintl $cf_save_LIBS"
8934 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_intl"
8935 cat >conftest.$ac_ext <<_ACEOF
8936 #line 8936 "configure"
8937 #include "confdefs.h"
8939 #include <libintl.h>
8940 extern int _nl_msg_cat_cntr;
8946 bindtextdomain ("", "");
8947 return (int) gettext ("")
8949 #ifndef IGNORE_MSGFMT_HACK
8957 rm -f conftest.$ac_objext conftest$ac_exeext
8958 if { (eval echo "$as_me:8958: \"$ac_link\"") >&5
8959 (eval $ac_link) 2>&5
8961 echo "$as_me:8961: \$? = $ac_status" >&5
8962 (exit $ac_status); } &&
8963 { ac_try='test -s conftest$ac_exeext'
8964 { (eval echo "$as_me:8964: \"$ac_try\"") >&5
8967 echo "$as_me:8967: \$? = $ac_status" >&5
8968 (exit $ac_status); }; }; then
8970 test -n "$verbose" && echo " ... found intl library in $cf_cv_library_path_intl" 1>&6
8972 echo "${as_me:-configure}:8972: testing ... found intl library in $cf_cv_library_path_intl ..." 1>&5
8974 cf_cv_find_linkage_intl=yes
8975 cf_cv_library_file_intl="-lintl"
8978 echo "$as_me: failed program was:" >&5
8979 cat conftest.$ac_ext >&5
8981 CPPFLAGS="$cf_save_CPPFLAGS"
8982 LIBS="$cf_save_LIBS"
8983 LDFLAGS="$cf_save_LDFLAGS"
8986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8989 CPPFLAGS="$cf_save_CPPFLAGS"
8990 LDFLAGS="$cf_save_LDFLAGS"
8994 cf_cv_find_linkage_intl=no
8998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9003 LIBS="$cf_save_LIBS"
9005 if test "$cf_cv_find_linkage_intl" = yes ; then
9006 cf_cv_func_gettext=yes
9008 cf_cv_func_gettext=no
9011 echo "$as_me:9011: checking for libintl.h and gettext()" >&5
9012 echo $ECHO_N "checking for libintl.h and gettext()... $ECHO_C" >&6
9013 echo "$as_me:9013: result: $cf_cv_func_gettext" >&5
9014 echo "${ECHO_T}$cf_cv_func_gettext" >&6
9016 LIBS="$cf_save_LIBS_1"
9017 CPPFLAGS="$cf_save_OPTS_1"
9019 if test "$cf_cv_func_gettext" = yes ; then
9021 cat >>confdefs.h <<\EOF
9022 #define HAVE_LIBINTL_H 1
9025 if test "$PACKAGE" != gettext; then
9027 cat >>confdefs.h <<\EOF
9028 #define HAVE_GETTEXT 1
9031 if test -n "$cf_cv_header_path_intl" ; then
9032 for cf_add_incdir in $cf_cv_header_path_intl
9034 while test $cf_add_incdir != /usr/include
9036 if test -d $cf_add_incdir
9039 if test -n "$CFLAGS$CPPFLAGS" ; then
9040 # a loop is needed to ensure we can add subdirs of existing dirs
9041 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9042 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9043 cf_have_incdir=yes; break
9048 if test "$cf_have_incdir" = no ; then
9049 if test "$cf_add_incdir" = /usr/local/include ; then
9050 if test "$GCC" = yes
9052 cf_save_CPPFLAGS=$CPPFLAGS
9054 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9055 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
9057 cat >conftest.$ac_ext <<_ACEOF
9058 #line 9058 "configure"
9059 #include "confdefs.h"
9069 rm -f conftest.$ac_objext
9070 if { (eval echo "$as_me:9070: \"$ac_compile\"") >&5
9071 (eval $ac_compile) 2>&5
9073 echo "$as_me:9073: \$? = $ac_status" >&5
9074 (exit $ac_status); } &&
9075 { ac_try='test -s conftest.$ac_objext'
9076 { (eval echo "$as_me:9076: \"$ac_try\"") >&5
9079 echo "$as_me:9079: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9083 echo "$as_me: failed program was:" >&5
9084 cat conftest.$ac_ext >&5
9087 rm -f conftest.$ac_objext conftest.$ac_ext
9088 CPPFLAGS=$cf_save_CPPFLAGS
9093 if test "$cf_have_incdir" = no ; then
9094 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9096 echo "${as_me:-configure}:9096: testing adding $cf_add_incdir to include-path ..." 1>&5
9098 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9100 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9101 test "$cf_top_incdir" = "$cf_add_incdir" && break
9102 cf_add_incdir="$cf_top_incdir"
9113 if test -n "$cf_cv_library_file_intl" ; then
9114 INTLLIBS="$cf_cv_library_file_intl $LIBICONV"
9116 if test -n "$cf_cv_library_path_intl" ; then
9117 for cf_add_libdir in $cf_cv_library_path_intl
9119 if test $cf_add_libdir = /usr/lib ; then
9121 elif test -d $cf_add_libdir
9124 if test -n "$LDFLAGS$LIBS" ; then
9125 # a loop is needed to ensure we can add subdirs of existing dirs
9126 for cf_test_libdir in $LDFLAGS $LIBS ; do
9127 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
9128 cf_have_libdir=yes; break
9132 if test "$cf_have_libdir" = no ; then
9133 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
9135 echo "${as_me:-configure}:9135: testing adding $cf_add_libdir to library-path ..." 1>&5
9137 INTLLIBS="-L$cf_add_libdir $INTLLIBS"
9145 gt_save_LIBS="$LIBS"
9146 LIBS="$LIBS $INTLLIBS"
9148 for ac_func in dcgettext
9150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9151 echo "$as_me:9151: checking for $ac_func" >&5
9152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9153 if eval "test \"\${$as_ac_var+set}\" = set"; then
9154 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 cat >conftest.$ac_ext <<_ACEOF
9157 #line 9157 "configure"
9158 #include "confdefs.h"
9159 /* System header to define __stub macros and hopefully few prototypes,
9160 which can conflict with char $ac_func (); below. */
9162 /* Override any gcc2 internal prototype to avoid an error. */
9166 /* We use char because int might match the return type of a gcc2
9167 builtin and then its argument prototype would still apply. */
9174 /* The GNU C library defines this for functions which it implements
9175 to always fail with ENOSYS. Some functions are actually named
9176 something starting with __ and the normal name is an alias. */
9177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9180 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9187 rm -f conftest.$ac_objext conftest$ac_exeext
9188 if { (eval echo "$as_me:9188: \"$ac_link\"") >&5
9189 (eval $ac_link) 2>&5
9191 echo "$as_me:9191: \$? = $ac_status" >&5
9192 (exit $ac_status); } &&
9193 { ac_try='test -s conftest$ac_exeext'
9194 { (eval echo "$as_me:9194: \"$ac_try\"") >&5
9197 echo "$as_me:9197: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9199 eval "$as_ac_var=yes"
9201 echo "$as_me: failed program was:" >&5
9202 cat conftest.$ac_ext >&5
9203 eval "$as_ac_var=no"
9205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9207 echo "$as_me:9207: result: `eval echo '${'$as_ac_var'}'`" >&5
9208 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9209 if test `eval echo '${'$as_ac_var'}'` = yes; then
9210 cat >>confdefs.h <<EOF
9211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9217 LIBS="$gt_save_LIBS"
9221 elif test -z "$MSGFMT" || test -z "$XGETTEXT" ; then
9222 { echo "$as_me:9222: WARNING: disabling NLS feature" >&5
9223 echo "$as_me: WARNING: disabling NLS feature" >&2;}
9224 sed -e /ENABLE_NLS/d confdefs.h >confdefs.tmp
9225 mv confdefs.tmp confdefs.h
9232 BUILD_INCLUDED_LIBINTL=no
9233 USE_INCLUDED_LIBINTL=no
9235 nls_cv_use_gnu_gettext=no
9238 if test "$CATOBJEXT" = "NONE"; then
9239 nls_cv_use_gnu_gettext=maybe
9243 if test "$nls_cv_use_gnu_gettext" != "no"; then
9245 if test -f $srcdir/intl/libintl.h ; then
9246 INTLOBJS="\$(GETTOBJS)"
9247 BUILD_INCLUDED_LIBINTL=yes
9248 USE_INCLUDED_LIBINTL=yes
9249 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
9250 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9251 elif test "$nls_cv_use_gnu_gettext" = "yes"; then
9252 nls_cv_use_gnu_gettext=no
9253 { echo "$as_me:9253: WARNING: no NLS library is packaged with this application" >&5
9254 echo "$as_me: WARNING: no NLS library is packaged with this application" >&2;}
9258 if test "$GMSGFMT" != ":"; then
9259 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
9262 { echo "$as_me:9262: WARNING: found msgfmt program is not GNU msgfmt" >&5
9263 echo "$as_me: WARNING: found msgfmt program is not GNU msgfmt" >&2;}
9267 if test "$XGETTEXT" != ":"; then
9268 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
9271 { echo "$as_me:9271: WARNING: found xgettext program is not GNU xgettext" >&5
9272 echo "$as_me: WARNING: found xgettext program is not GNU xgettext" >&2;}
9277 if test "$XGETTEXT" != ":"; then
9278 ac_config_commands="$ac_config_commands default-1"
9280 if test "$PACKAGE" = gettext; then
9281 BUILD_INCLUDED_LIBINTL=yes
9284 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9285 for ac_prog in bison
9287 # Extract the first word of "$ac_prog", so it can be a program name with args.
9288 set dummy $ac_prog; ac_word=$2
9289 echo "$as_me:9289: checking for $ac_word" >&5
9290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9291 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 if test -n "$INTLBISON"; then
9295 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9297 ac_save_IFS=$IFS; IFS=$ac_path_separator
9299 for ac_dir in $ac_dummy; do
9301 test -z "$ac_dir" && ac_dir=.
9302 $as_executable_p "$ac_dir/$ac_word" || continue
9303 ac_cv_prog_INTLBISON="$ac_prog"
9304 echo "$as_me:9304: found $ac_dir/$ac_word" >&5
9310 INTLBISON=$ac_cv_prog_INTLBISON
9311 if test -n "$INTLBISON"; then
9312 echo "$as_me:9312: result: $INTLBISON" >&5
9313 echo "${ECHO_T}$INTLBISON" >&6
9315 echo "$as_me:9315: result: no" >&5
9316 echo "${ECHO_T}no" >&6
9319 test -n "$INTLBISON" && break
9322 if test -z "$INTLBISON"; then
9325 echo "$as_me:9325: checking version of bison" >&5
9326 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9327 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9328 case $ac_prog_version in
9329 ('') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9330 (1.2[6-9]*|1.[3-9][0-9]*|[2-9].*)
9331 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9332 (*) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9334 echo "$as_me:9334: result: $ac_prog_version" >&5
9335 echo "${ECHO_T}$ac_prog_version" >&6
9337 if test $ac_verc_fail = yes; then
9342 for lang in $ALL_LINGUAS; do
9343 GMOFILES="$GMOFILES $lang.gmo"
9344 POFILES="$POFILES $lang.po"
9349 nls_cv_header_libgt=
9357 if test "x$CATOBJEXT" != "x"; then
9358 if test "x$ALL_LINGUAS" = "x"; then
9361 echo "$as_me:9361: checking for catalogs to be installed" >&5
9362 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
9364 for presentlang in $ALL_LINGUAS; do
9366 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
9367 # Use the presentlang catalog if desiredlang is
9368 # a. equal to presentlang, or
9369 # b. a variant of presentlang (because in this case,
9370 # presentlang can be used as a fallback for messages
9371 # which are not translated in the desiredlang catalog).
9372 case "$desiredlang" in
9373 ("$presentlang"*) useit=yes;;
9376 if test $useit = yes; then
9377 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
9380 LINGUAS=$NEW_LINGUAS
9381 echo "$as_me:9381: result: $LINGUAS" >&5
9382 echo "${ECHO_T}$LINGUAS" >&6
9385 if test -n "$LINGUAS"; then
9386 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
9390 INTL_LIBTOOL_SUFFIX_PREFIX=
9392 if test "$USE_NLS" = yes ; then
9394 # Check whether --with-textdomain or --without-textdomain was given.
9395 if test "${with_textdomain+set}" = set; then
9396 withval="$with_textdomain"
9397 NLS_TEXTDOMAIN=$withval
9399 NLS_TEXTDOMAIN=$PACKAGE
9402 cat >>confdefs.h <<EOF
9403 #define NLS_TEXTDOMAIN "$NLS_TEXTDOMAIN"
9412 cf_makefile=makefile
9415 if test "$USE_NLS" = yes ; then
9416 if test -d $srcdir/po ; then
9417 echo "$as_me:9417: checking if we should use included message-library" >&5
9418 echo $ECHO_N "checking if we should use included message-library... $ECHO_C" >&6
9420 # Check whether --enable-included-msgs or --disable-included-msgs was given.
9421 if test "${enable_included_msgs+set}" = set; then
9422 enableval="$enable_included_msgs"
9423 use_our_messages=$enableval
9425 use_our_messages=yes
9428 echo "$as_me:9428: result: $use_our_messages" >&5
9429 echo "${ECHO_T}$use_our_messages" >&6
9433 if test "$use_our_messages" = yes
9435 SUB_MAKEFILE="$SUB_MAKEFILE po/$cf_makefile.in:$srcdir/po/$cf_makefile.inn"
9439 if test "$USE_INCLUDED_LIBINTL" = yes ; then
9440 if test "$nls_cv_force_use_gnu_gettext" = yes ; then
9442 elif test "$nls_cv_use_gnu_gettext" = yes ; then
9447 if test -z "$INTLDIR_MAKE"; then
9449 cat >>confdefs.h <<\EOF
9450 #define HAVE_LIBGETTEXT_H 1
9453 for cf_makefile in \
9454 $srcdir/intl/Makefile.in \
9455 $srcdir/intl/makefile.in
9457 if test -f "$cf_makefile" ; then
9458 SUB_MAKEFILE="$SUB_MAKEFILE `echo \"${cf_makefile}\"|sed -e 's,^'$srcdir/',,' -e 's/\.in$//'`:${cf_makefile}"
9465 if test "$USE_NLS" = yes ; then
9467 for ac_header in libintl.h
9469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9470 echo "$as_me:9470: checking for $ac_header" >&5
9471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 cat >conftest.$ac_ext <<_ACEOF
9476 #line 9476 "configure"
9477 #include "confdefs.h"
9478 #include <$ac_header>
9480 if { (eval echo "$as_me:9480: \"$ac_cpp conftest.$ac_ext\"") >&5
9481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9483 egrep -v '^ *\+' conftest.er1 >conftest.err
9485 cat conftest.err >&5
9486 echo "$as_me:9486: \$? = $ac_status" >&5
9487 (exit $ac_status); } >/dev/null; then
9488 if test -s conftest.err; then
9489 ac_cpp_err=$ac_c_preproc_warn_flag
9496 if test -z "$ac_cpp_err"; then
9497 eval "$as_ac_Header=yes"
9499 echo "$as_me: failed program was:" >&5
9500 cat conftest.$ac_ext >&5
9501 eval "$as_ac_Header=no"
9503 rm -f conftest.err conftest.$ac_ext
9505 echo "$as_me:9505: result: `eval echo '${'$as_ac_Header'}'`" >&5
9506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9508 cat >>confdefs.h <<EOF
9509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9518 if test -z "$INTLDIR_MAKE" ; then
9520 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9521 CPPFLAGS="${CPPFLAGS}-I../intl"
9525 if test "$BUILD_INCLUDED_LIBINTL" = yes ; then
9533 if test "$USE_INCLUDED_LIBINTL" = yes ; then
9534 if test "$nls_cv_force_use_gnu_gettext" = yes ; then
9536 cat >>confdefs.h <<\EOF
9537 #define HAVE_GETTEXT 1
9540 elif test "$nls_cv_use_gnu_gettext" = yes ; then
9542 cat >>confdefs.h <<\EOF
9543 #define HAVE_GETTEXT 1
9547 if test -n "$nls_cv_header_intl" ; then
9549 cat >>confdefs.h <<\EOF
9550 #define HAVE_LIBINTL_H 1
9556 echo "$as_me:9556: checking if -lm needed for math functions" >&5
9557 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
9558 if test "${cf_cv_need_libm+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9562 cat >conftest.$ac_ext <<_ACEOF
9563 #line 9563 "configure"
9564 #include "confdefs.h"
9573 double x = rand(); printf("result = %g\n", sqrt(x))
9578 rm -f conftest.$ac_objext conftest$ac_exeext
9579 if { (eval echo "$as_me:9579: \"$ac_link\"") >&5
9580 (eval $ac_link) 2>&5
9582 echo "$as_me:9582: \$? = $ac_status" >&5
9583 (exit $ac_status); } &&
9584 { ac_try='test -s conftest$ac_exeext'
9585 { (eval echo "$as_me:9585: \"$ac_try\"") >&5
9588 echo "$as_me:9588: \$? = $ac_status" >&5
9589 (exit $ac_status); }; }; then
9592 echo "$as_me: failed program was:" >&5
9593 cat conftest.$ac_ext >&5
9596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9598 echo "$as_me:9598: result: $cf_cv_need_libm" >&5
9599 echo "${ECHO_T}$cf_cv_need_libm" >&6
9600 if test "$cf_cv_need_libm" = yes
9604 # Filter out duplicates - this happens with badly-designed ".pc" files...
9605 for cf_add_1lib in $LIBS
9607 for cf_add_2lib in $cf_add_libs
9609 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9615 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9621 echo "$as_me:9621: checking if you want to use dmalloc for testing" >&5
9622 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
9624 # Check whether --with-dmalloc or --without-dmalloc was given.
9625 if test "${with_dmalloc+set}" = set; then
9626 withval="$with_dmalloc"
9628 cat >>confdefs.h <<EOF
9629 #define USE_DMALLOC 1
9632 : ${with_cflags:=-g}
9633 : ${with_no_leaks:=yes}
9638 echo "$as_me:9638: result: ${with_dmalloc:-no}" >&5
9639 echo "${ECHO_T}${with_dmalloc:-no}" >&6
9641 case .$with_cflags in
9651 cf_new_extra_cppflags=
9653 for cf_add_cflags in -g
9655 case $cf_fix_cppflags in
9657 case $cf_add_cflags in
9658 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9659 case $cf_add_cflags in
9661 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9663 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9664 && test -z "${cf_tst_cflags}" \
9665 && cf_fix_cppflags=yes
9667 if test $cf_fix_cppflags = yes ; then
9669 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9670 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9673 elif test "${cf_tst_cflags}" = "\"'" ; then
9675 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9676 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9686 case $cf_add_cflags in
9688 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9690 CPPFLAGS=`echo "$CPPFLAGS" | \
9691 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9692 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9697 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9698 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9705 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9706 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9713 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9714 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9716 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9718 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9719 && test -z "${cf_tst_cflags}" \
9720 && cf_fix_cppflags=no
9725 if test -n "$cf_new_cflags" ; then
9727 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9728 CFLAGS="${CFLAGS}$cf_new_cflags"
9732 if test -n "$cf_new_cppflags" ; then
9734 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9735 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9739 if test -n "$cf_new_extra_cppflags" ; then
9741 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9742 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9751 if test "$with_dmalloc" = yes ; then
9752 echo "$as_me:9752: checking for dmalloc.h" >&5
9753 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
9754 if test "${ac_cv_header_dmalloc_h+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 cat >conftest.$ac_ext <<_ACEOF
9758 #line 9758 "configure"
9759 #include "confdefs.h"
9760 #include <dmalloc.h>
9762 if { (eval echo "$as_me:9762: \"$ac_cpp conftest.$ac_ext\"") >&5
9763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9765 egrep -v '^ *\+' conftest.er1 >conftest.err
9767 cat conftest.err >&5
9768 echo "$as_me:9768: \$? = $ac_status" >&5
9769 (exit $ac_status); } >/dev/null; then
9770 if test -s conftest.err; then
9771 ac_cpp_err=$ac_c_preproc_warn_flag
9778 if test -z "$ac_cpp_err"; then
9779 ac_cv_header_dmalloc_h=yes
9781 echo "$as_me: failed program was:" >&5
9782 cat conftest.$ac_ext >&5
9783 ac_cv_header_dmalloc_h=no
9785 rm -f conftest.err conftest.$ac_ext
9787 echo "$as_me:9787: result: $ac_cv_header_dmalloc_h" >&5
9788 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
9789 if test $ac_cv_header_dmalloc_h = yes; then
9791 echo "$as_me:9791: checking for dmalloc_debug in -ldmalloc" >&5
9792 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
9793 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9796 ac_check_lib_save_LIBS=$LIBS
9797 LIBS="-ldmalloc $LIBS"
9798 cat >conftest.$ac_ext <<_ACEOF
9799 #line 9799 "configure"
9800 #include "confdefs.h"
9802 /* Override any gcc2 internal prototype to avoid an error. */
9806 /* We use char because int might match the return type of a gcc2
9807 builtin and then its argument prototype would still apply. */
9808 char dmalloc_debug ();
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (eval echo "$as_me:9818: \"$ac_link\"") >&5
9819 (eval $ac_link) 2>&5
9821 echo "$as_me:9821: \$? = $ac_status" >&5
9822 (exit $ac_status); } &&
9823 { ac_try='test -s conftest$ac_exeext'
9824 { (eval echo "$as_me:9824: \"$ac_try\"") >&5
9827 echo "$as_me:9827: \$? = $ac_status" >&5
9828 (exit $ac_status); }; }; then
9829 ac_cv_lib_dmalloc_dmalloc_debug=yes
9831 echo "$as_me: failed program was:" >&5
9832 cat conftest.$ac_ext >&5
9833 ac_cv_lib_dmalloc_dmalloc_debug=no
9835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9836 LIBS=$ac_check_lib_save_LIBS
9838 echo "$as_me:9838: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
9839 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
9840 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
9841 cat >>confdefs.h <<EOF
9842 #define HAVE_LIBDMALLOC 1
9845 LIBS="-ldmalloc $LIBS"
9853 echo "$as_me:9853: checking if you want to use dbmalloc for testing" >&5
9854 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
9856 # Check whether --with-dbmalloc or --without-dbmalloc was given.
9857 if test "${with_dbmalloc+set}" = set; then
9858 withval="$with_dbmalloc"
9860 cat >>confdefs.h <<EOF
9861 #define USE_DBMALLOC 1
9864 : ${with_cflags:=-g}
9865 : ${with_no_leaks:=yes}
9870 echo "$as_me:9870: result: ${with_dbmalloc:-no}" >&5
9871 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
9873 case .$with_cflags in
9883 cf_new_extra_cppflags=
9885 for cf_add_cflags in -g
9887 case $cf_fix_cppflags in
9889 case $cf_add_cflags in
9890 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9891 case $cf_add_cflags in
9893 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9895 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9896 && test -z "${cf_tst_cflags}" \
9897 && cf_fix_cppflags=yes
9899 if test $cf_fix_cppflags = yes ; then
9901 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9902 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9905 elif test "${cf_tst_cflags}" = "\"'" ; then
9907 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9908 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9918 case $cf_add_cflags in
9920 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9922 CPPFLAGS=`echo "$CPPFLAGS" | \
9923 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9924 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9929 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9930 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9937 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9938 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9945 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9946 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9948 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9950 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9951 && test -z "${cf_tst_cflags}" \
9952 && cf_fix_cppflags=no
9957 if test -n "$cf_new_cflags" ; then
9959 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9960 CFLAGS="${CFLAGS}$cf_new_cflags"
9964 if test -n "$cf_new_cppflags" ; then
9966 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9967 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9971 if test -n "$cf_new_extra_cppflags" ; then
9973 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9974 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9983 if test "$with_dbmalloc" = yes ; then
9984 echo "$as_me:9984: checking for dbmalloc.h" >&5
9985 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
9986 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
9987 echo $ECHO_N "(cached) $ECHO_C" >&6
9989 cat >conftest.$ac_ext <<_ACEOF
9990 #line 9990 "configure"
9991 #include "confdefs.h"
9992 #include <dbmalloc.h>
9994 if { (eval echo "$as_me:9994: \"$ac_cpp conftest.$ac_ext\"") >&5
9995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9997 egrep -v '^ *\+' conftest.er1 >conftest.err
9999 cat conftest.err >&5
10000 echo "$as_me:10000: \$? = $ac_status" >&5
10001 (exit $ac_status); } >/dev/null; then
10002 if test -s conftest.err; then
10003 ac_cpp_err=$ac_c_preproc_warn_flag
10010 if test -z "$ac_cpp_err"; then
10011 ac_cv_header_dbmalloc_h=yes
10013 echo "$as_me: failed program was:" >&5
10014 cat conftest.$ac_ext >&5
10015 ac_cv_header_dbmalloc_h=no
10017 rm -f conftest.err conftest.$ac_ext
10019 echo "$as_me:10019: result: $ac_cv_header_dbmalloc_h" >&5
10020 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
10021 if test $ac_cv_header_dbmalloc_h = yes; then
10023 echo "$as_me:10023: checking for debug_malloc in -ldbmalloc" >&5
10024 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
10025 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 ac_check_lib_save_LIBS=$LIBS
10029 LIBS="-ldbmalloc $LIBS"
10030 cat >conftest.$ac_ext <<_ACEOF
10031 #line 10031 "configure"
10032 #include "confdefs.h"
10034 /* Override any gcc2 internal prototype to avoid an error. */
10038 /* We use char because int might match the return type of a gcc2
10039 builtin and then its argument prototype would still apply. */
10040 char debug_malloc ();
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (eval echo "$as_me:10050: \"$ac_link\"") >&5
10051 (eval $ac_link) 2>&5
10053 echo "$as_me:10053: \$? = $ac_status" >&5
10054 (exit $ac_status); } &&
10055 { ac_try='test -s conftest$ac_exeext'
10056 { (eval echo "$as_me:10056: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10059 echo "$as_me:10059: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_cv_lib_dbmalloc_debug_malloc=yes
10063 echo "$as_me: failed program was:" >&5
10064 cat conftest.$ac_ext >&5
10065 ac_cv_lib_dbmalloc_debug_malloc=no
10067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10068 LIBS=$ac_check_lib_save_LIBS
10070 echo "$as_me:10070: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
10071 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
10072 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
10073 cat >>confdefs.h <<EOF
10074 #define HAVE_LIBDBMALLOC 1
10077 LIBS="-ldbmalloc $LIBS"
10085 echo "$as_me:10085: checking if you want to use purify for testing" >&5
10086 echo $ECHO_N "checking if you want to use purify for testing... $ECHO_C" >&6
10088 # Check whether --with-purify or --without-purify was given.
10089 if test "${with_purify+set}" = set; then
10090 withval="$with_purify"
10092 cat >>confdefs.h <<EOF
10093 #define USE_PURIFY 1
10096 : ${with_cflags:=-g}
10097 : ${with_no_leaks:=yes}
10102 echo "$as_me:10102: result: ${with_purify:-no}" >&5
10103 echo "${ECHO_T}${with_purify:-no}" >&6
10105 case .$with_cflags in
10115 cf_new_extra_cppflags=
10117 for cf_add_cflags in -g
10119 case $cf_fix_cppflags in
10121 case $cf_add_cflags in
10122 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10123 case $cf_add_cflags in
10125 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10127 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10128 && test -z "${cf_tst_cflags}" \
10129 && cf_fix_cppflags=yes
10131 if test $cf_fix_cppflags = yes ; then
10133 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10134 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10137 elif test "${cf_tst_cflags}" = "\"'" ; then
10139 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10140 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10146 case "$CPPFLAGS" in
10150 case $cf_add_cflags in
10152 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10154 CPPFLAGS=`echo "$CPPFLAGS" | \
10155 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10156 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10161 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10162 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10169 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10170 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10177 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10178 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10180 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10182 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10183 && test -z "${cf_tst_cflags}" \
10184 && cf_fix_cppflags=no
10189 if test -n "$cf_new_cflags" ; then
10191 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10192 CFLAGS="${CFLAGS}$cf_new_cflags"
10196 if test -n "$cf_new_cppflags" ; then
10198 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10199 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10203 if test -n "$cf_new_extra_cppflags" ; then
10205 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10206 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10215 echo "$as_me:10215: checking if you want to use valgrind for testing" >&5
10216 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
10218 # Check whether --with-valgrind or --without-valgrind was given.
10219 if test "${with_valgrind+set}" = set; then
10220 withval="$with_valgrind"
10222 cat >>confdefs.h <<EOF
10223 #define USE_VALGRIND 1
10226 : ${with_cflags:=-g}
10227 : ${with_no_leaks:=yes}
10232 echo "$as_me:10232: result: ${with_valgrind:-no}" >&5
10233 echo "${ECHO_T}${with_valgrind:-no}" >&6
10235 case .$with_cflags in
10245 cf_new_extra_cppflags=
10247 for cf_add_cflags in -g
10249 case $cf_fix_cppflags in
10251 case $cf_add_cflags in
10252 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10253 case $cf_add_cflags in
10255 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10257 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10258 && test -z "${cf_tst_cflags}" \
10259 && cf_fix_cppflags=yes
10261 if test $cf_fix_cppflags = yes ; then
10263 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10264 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10267 elif test "${cf_tst_cflags}" = "\"'" ; then
10269 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10270 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10276 case "$CPPFLAGS" in
10280 case $cf_add_cflags in
10282 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10284 CPPFLAGS=`echo "$CPPFLAGS" | \
10285 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10286 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10291 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10292 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10299 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10300 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10307 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10308 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10310 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10312 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10313 && test -z "${cf_tst_cflags}" \
10314 && cf_fix_cppflags=no
10319 if test -n "$cf_new_cflags" ; then
10321 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10322 CFLAGS="${CFLAGS}$cf_new_cflags"
10326 if test -n "$cf_new_cppflags" ; then
10328 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10329 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10333 if test -n "$cf_new_extra_cppflags" ; then
10335 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10336 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10345 echo "$as_me:10345: checking if you want to perform memory-leak testing" >&5
10346 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
10348 # Check whether --with-no-leaks or --without-no-leaks was given.
10349 if test "${with_no_leaks+set}" = set; then
10350 withval="$with_no_leaks"
10352 cat >>confdefs.h <<\EOF
10356 cf_doalloc=".${with_dmalloc}${with_dbmalloc}${with_purify}${with_valgrind}"
10357 case ${cf_doalloc} in
10360 cat >>confdefs.h <<\EOF
10361 #define DOALLOC 10000
10369 echo "$as_me:10369: result: $with_no_leaks" >&5
10370 echo "${ECHO_T}$with_no_leaks" >&6
10372 echo "$as_me:10372: checking if you want --trace option" >&5
10373 echo $ECHO_N "checking if you want --trace option... $ECHO_C" >&6
10375 # Check whether --enable-trace or --disable-trace was given.
10376 if test "${enable_trace+set}" = set; then
10377 enableval="$enable_trace"
10382 echo "$as_me:10382: result: $enableval" >&5
10383 echo "${ECHO_T}$enableval" >&6
10384 if test "$enableval" != no ; then
10385 EXTRAOBJS="$EXTRAOBJS trace\$o"
10387 cat >>confdefs.h <<\EOF
10388 #define HAVE_DLG_TRACE 1
10396 echo "$as_me:10396: checking for an rpath option" >&5
10397 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
10398 case $cf_cv_system_name in
10400 if test "$GCC" = yes; then
10401 LD_RPATH_OPT="-Wl,-rpath,"
10403 LD_RPATH_OPT="-rpath "
10406 (linux*|gnu*|k*bsd*-gnu|freebsd*)
10407 LD_RPATH_OPT="-Wl,-rpath,"
10409 (openbsd[2-9].*|mirbsd*)
10410 LD_RPATH_OPT="-Wl,-rpath,"
10413 LD_RPATH_OPT="-rpath "
10416 LD_RPATH_OPT="-Wl,-rpath,"
10419 LD_RPATH_OPT="-rpath "
10427 echo "$as_me:10427: result: $LD_RPATH_OPT" >&5
10428 echo "${ECHO_T}$LD_RPATH_OPT" >&6
10430 case "x$LD_RPATH_OPT" in
10432 echo "$as_me:10432: checking if we need a space after rpath option" >&5
10433 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
10434 cf_save_LIBS="$LIBS"
10436 cf_add_libs="${LD_RPATH_OPT}$libdir"
10437 # Filter out duplicates - this happens with badly-designed ".pc" files...
10438 for cf_add_1lib in $LIBS
10440 for cf_add_2lib in $cf_add_libs
10442 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10448 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10450 LIBS="$cf_add_libs"
10452 cat >conftest.$ac_ext <<_ACEOF
10453 #line 10453 "configure"
10454 #include "confdefs.h"
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (eval echo "$as_me:10465: \"$ac_link\"") >&5
10466 (eval $ac_link) 2>&5
10468 echo "$as_me:10468: \$? = $ac_status" >&5
10469 (exit $ac_status); } &&
10470 { ac_try='test -s conftest$ac_exeext'
10471 { (eval echo "$as_me:10471: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10474 echo "$as_me:10474: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
10478 echo "$as_me: failed program was:" >&5
10479 cat conftest.$ac_ext >&5
10482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10483 LIBS="$cf_save_LIBS"
10484 echo "$as_me:10484: result: $cf_rpath_space" >&5
10485 echo "${ECHO_T}$cf_rpath_space" >&6
10486 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
10490 REL_VERSION=${VERSION_MAJOR}.${VERSION_MINOR}
10491 ABI_VERSION=`echo "$VERSION" |sed -e 's/:/./g'`
10492 cf_cv_rel_version=$REL_VERSION
10494 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
10496 # Check whether --with-rel-version or --without-rel-version was given.
10497 if test "${with_rel_version+set}" = set; then
10498 withval="$with_rel_version"
10499 { echo "$as_me:10499: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
10500 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
10501 cf_cv_rel_version=$withval
10504 DIALOG_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
10505 DIALOG_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
10507 if test -n "$DIALOG_MAJOR" ; then
10508 case $DIALOG_MAJOR in
10512 { { echo "$as_me:10512: error: Release major-version is not a number: $DIALOG_MAJOR" >&5
10513 echo "$as_me: error: Release major-version is not a number: $DIALOG_MAJOR" >&2;}
10514 { (exit 1); exit 1; }; }
10518 { { echo "$as_me:10518: error: Release major-version value is empty" >&5
10519 echo "$as_me: error: Release major-version value is empty" >&2;}
10520 { (exit 1); exit 1; }; }
10523 if test -n "$DIALOG_MINOR" ; then
10524 case $DIALOG_MINOR in
10528 { { echo "$as_me:10528: error: Release minor-version is not a number: $DIALOG_MINOR" >&5
10529 echo "$as_me: error: Release minor-version is not a number: $DIALOG_MINOR" >&2;}
10530 { (exit 1); exit 1; }; }
10534 { { echo "$as_me:10534: error: Release minor-version value is empty" >&5
10535 echo "$as_me: error: Release minor-version value is empty" >&2;}
10536 { (exit 1); exit 1; }; }
10539 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
10541 # Check whether --with-abi-version or --without-abi-version was given.
10542 if test "${with_abi_version+set}" = set; then
10543 withval="$with_abi_version"
10545 if test "x$cf_cv_abi_version" != "x$withval"
10547 { echo "$as_me:10547: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
10548 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
10549 case $cf_cv_rel_version in
10551 cf_cv_rel_version=$withval.0
10554 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
10558 cf_cv_abi_version=$withval
10561 if test -n "$cf_cv_abi_version" ; then
10562 case $cf_cv_abi_version in
10566 { { echo "$as_me:10566: error: ABI version is not a number: $cf_cv_abi_version" >&5
10567 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
10568 { (exit 1); exit 1; }; }
10572 { { echo "$as_me:10572: error: ABI version value is empty" >&5
10573 echo "$as_me: error: ABI version value is empty" >&2;}
10574 { (exit 1); exit 1; }; }
10578 DFT_LWR_MODEL=$LIB_MODEL
10581 # use to comment-out makefile lines
10589 echo "$as_me:10589: checking if libtool -version-number should be used" >&5
10590 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
10592 # Check whether --enable-libtool-version or --disable-libtool-version was given.
10593 if test "${enable_libtool_version+set}" = set; then
10594 enableval="$enable_libtool_version"
10595 test "$enableval" != no && enableval=yes
10596 if test "$enableval" != "yes" ; then
10597 cf_libtool_version=no
10599 cf_libtool_version=yes
10603 cf_libtool_version=yes
10606 echo "$as_me:10606: result: $cf_libtool_version" >&5
10607 echo "${ECHO_T}$cf_libtool_version" >&6
10609 if test "$cf_libtool_version" = yes ; then
10610 LIBTOOL_VERSION="-version-number"
10612 LIBTOOL_VERSION="-version-info"
10613 case "x$VERSION" in
10615 { echo "$as_me:10615: WARNING: VERSION was not set" >&5
10616 echo "$as_me: WARNING: VERSION was not set" >&2;}
10619 ABI_VERSION="$VERSION"
10620 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
10622 echo "${as_me:-configure}:10622: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
10626 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
10627 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
10629 echo "${as_me:-configure}:10629: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
10633 { echo "$as_me:10633: WARNING: unexpected VERSION value: $VERSION" >&5
10634 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
10641 # common library maintenance symbols that are convenient for libtool scripts:
10642 LIB_CREATE='${AR} -cr'
10643 LIB_OBJECT='${OBJECTS}'
10647 # symbols used to prop libtool up to enable it to determine what it should be
10655 echo "$as_me:10655: checking if you want to build libraries with libtool" >&5
10656 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
10658 # Check whether --with-libtool or --without-libtool was given.
10659 if test "${with_libtool+set}" = set; then
10660 withval="$with_libtool"
10661 with_libtool=$withval
10665 echo "$as_me:10665: result: $with_libtool" >&5
10666 echo "${ECHO_T}$with_libtool" >&6
10667 if test "$with_libtool" != "no"; then
10669 if test "$with_libtool" != "yes" ; then
10671 if test "x$prefix" != xNONE; then
10672 cf_path_syntax="$prefix"
10674 cf_path_syntax="$ac_default_prefix"
10677 case ".$with_libtool" in
10678 (.\$\(*\)*|.\'*\'*)
10682 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
10684 (.\${*prefix}*|.\${*dir}*)
10685 eval with_libtool="$with_libtool"
10686 case ".$with_libtool" in
10688 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
10693 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
10696 { { echo "$as_me:10696: error: expected a pathname, not \"$with_libtool\"" >&5
10697 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
10698 { (exit 1); exit 1; }; }
10702 LIBTOOL=$with_libtool
10704 if test -n "$ac_tool_prefix"; then
10705 for ac_prog in libtool glibtool
10707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10709 echo "$as_me:10709: checking for $ac_word" >&5
10710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10711 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
10712 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 if test -n "$LIBTOOL"; then
10715 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
10717 ac_save_IFS=$IFS; IFS=$ac_path_separator
10719 for ac_dir in $ac_dummy; do
10721 test -z "$ac_dir" && ac_dir=.
10722 $as_executable_p "$ac_dir/$ac_word" || continue
10723 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
10724 echo "$as_me:10724: found $ac_dir/$ac_word" >&5
10730 LIBTOOL=$ac_cv_prog_LIBTOOL
10731 if test -n "$LIBTOOL"; then
10732 echo "$as_me:10732: result: $LIBTOOL" >&5
10733 echo "${ECHO_T}$LIBTOOL" >&6
10735 echo "$as_me:10735: result: no" >&5
10736 echo "${ECHO_T}no" >&6
10739 test -n "$LIBTOOL" && break
10742 if test -z "$LIBTOOL"; then
10743 ac_ct_LIBTOOL=$LIBTOOL
10744 for ac_prog in libtool glibtool
10746 # Extract the first word of "$ac_prog", so it can be a program name with args.
10747 set dummy $ac_prog; ac_word=$2
10748 echo "$as_me:10748: checking for $ac_word" >&5
10749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10750 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 if test -n "$ac_ct_LIBTOOL"; then
10754 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
10756 ac_save_IFS=$IFS; IFS=$ac_path_separator
10758 for ac_dir in $ac_dummy; do
10760 test -z "$ac_dir" && ac_dir=.
10761 $as_executable_p "$ac_dir/$ac_word" || continue
10762 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
10763 echo "$as_me:10763: found $ac_dir/$ac_word" >&5
10769 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
10770 if test -n "$ac_ct_LIBTOOL"; then
10771 echo "$as_me:10771: result: $ac_ct_LIBTOOL" >&5
10772 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
10774 echo "$as_me:10774: result: no" >&5
10775 echo "${ECHO_T}no" >&6
10778 test -n "$ac_ct_LIBTOOL" && break
10780 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
10782 LIBTOOL=$ac_ct_LIBTOOL
10785 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
10787 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
10789 cf_cv_libtool_version=
10791 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
10793 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
10796 unset ac_cv_prog_ac_ct_LIBTOOL
10797 unset ac_ct_LIBTOOL
10800 if test -n "$ac_tool_prefix"; then
10801 for ac_prog in glibtool
10803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10805 echo "$as_me:10805: checking for $ac_word" >&5
10806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10807 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10810 if test -n "$LIBTOOL"; then
10811 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
10813 ac_save_IFS=$IFS; IFS=$ac_path_separator
10815 for ac_dir in $ac_dummy; do
10817 test -z "$ac_dir" && ac_dir=.
10818 $as_executable_p "$ac_dir/$ac_word" || continue
10819 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
10820 echo "$as_me:10820: found $ac_dir/$ac_word" >&5
10826 LIBTOOL=$ac_cv_prog_LIBTOOL
10827 if test -n "$LIBTOOL"; then
10828 echo "$as_me:10828: result: $LIBTOOL" >&5
10829 echo "${ECHO_T}$LIBTOOL" >&6
10831 echo "$as_me:10831: result: no" >&5
10832 echo "${ECHO_T}no" >&6
10835 test -n "$LIBTOOL" && break
10838 if test -z "$LIBTOOL"; then
10839 ac_ct_LIBTOOL=$LIBTOOL
10840 for ac_prog in glibtool
10842 # Extract the first word of "$ac_prog", so it can be a program name with args.
10843 set dummy $ac_prog; ac_word=$2
10844 echo "$as_me:10844: checking for $ac_word" >&5
10845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10846 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10849 if test -n "$ac_ct_LIBTOOL"; then
10850 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
10852 ac_save_IFS=$IFS; IFS=$ac_path_separator
10854 for ac_dir in $ac_dummy; do
10856 test -z "$ac_dir" && ac_dir=.
10857 $as_executable_p "$ac_dir/$ac_word" || continue
10858 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
10859 echo "$as_me:10859: found $ac_dir/$ac_word" >&5
10865 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
10866 if test -n "$ac_ct_LIBTOOL"; then
10867 echo "$as_me:10867: result: $ac_ct_LIBTOOL" >&5
10868 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
10870 echo "$as_me:10870: result: no" >&5
10871 echo "${ECHO_T}no" >&6
10874 test -n "$ac_ct_LIBTOOL" && break
10876 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
10878 LIBTOOL=$ac_ct_LIBTOOL
10881 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
10883 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
10885 cf_cv_libtool_version=
10887 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
10891 if test -z "$LIBTOOL" ; then
10892 { { echo "$as_me:10892: error: Cannot find libtool" >&5
10893 echo "$as_me: error: Cannot find libtool" >&2;}
10894 { (exit 1); exit 1; }; }
10896 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
10897 LIB_OBJECT='${OBJECTS:.o=.lo}'
10899 LIB_CLEAN='${LIBTOOL} --mode=clean'
10900 LIB_COMPILE='${LIBTOOL} --mode=compile'
10901 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
10902 LIB_INSTALL='${LIBTOOL} --mode=install'
10903 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
10906 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
10908 echo "$as_me:10908: checking version of $LIBTOOL" >&5
10909 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
10911 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
10913 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
10915 cf_cv_libtool_version=
10917 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
10919 echo "$as_me:10919: result: $cf_cv_libtool_version" >&5
10920 echo "${ECHO_T}$cf_cv_libtool_version" >&6
10921 if test -z "$cf_cv_libtool_version" ; then
10922 { { echo "$as_me:10922: error: This is not GNU libtool" >&5
10923 echo "$as_me: error: This is not GNU libtool" >&2;}
10924 { (exit 1); exit 1; }; }
10927 { { echo "$as_me:10927: error: GNU libtool has not been found" >&5
10928 echo "$as_me: error: GNU libtool has not been found" >&2;}
10929 { (exit 1); exit 1; }; }
10932 # special hack to add -no-undefined (which libtool should do for itself)
10934 case "$cf_cv_system_name" in
10935 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
10936 LT_UNDEF=-no-undefined
10940 # special hack to add --tag option for C++ compiler
10941 case $cf_cv_libtool_version in
10942 (1.[5-9]*|[2-9].[0-9.a-z]*)
10943 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
10944 LIBTOOL="$LIBTOOL --tag=CC"
10947 LIBTOOL_CXX="$LIBTOOL"
10955 test -z "$LIBTOOL" && ECHO_LT=
10957 LIB_CREATE="$LIB_CREATE \$@"
10959 if test "$with_libtool" = "yes" ; then
10962 DFT_LWR_MODEL=$LIB_MODEL
10965 echo "$as_me:10965: checking for additional libtool options" >&5
10966 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
10968 # Check whether --with-libtool-opts or --without-libtool-opts was given.
10969 if test "${with_libtool_opts+set}" = set; then
10970 withval="$with_libtool_opts"
10971 with_libtool_opts=$withval
10973 with_libtool_opts=no
10975 echo "$as_me:10975: result: $with_libtool_opts" >&5
10976 echo "${ECHO_T}$with_libtool_opts" >&6
10978 case .$with_libtool_opts in
10982 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
10986 echo "$as_me:10986: checking if exported-symbols file should be used" >&5
10987 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
10989 # Check whether --with-export-syms or --without-export-syms was given.
10990 if test "${with_export_syms+set}" = set; then
10991 withval="$with_export_syms"
10992 with_export_syms=$withval
10994 with_export_syms=no
10996 if test "x$with_export_syms" = xyes
10998 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
11001 echo "$as_me:11001: result: $with_export_syms" >&5
11002 echo "${ECHO_T}$with_export_syms" >&6
11003 if test "x$with_export_syms" != xno
11005 EXPORT_SYMS="-export-symbols $with_export_syms"
11013 echo "$as_me:11013: checking if you want to build shared libraries" >&5
11014 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
11016 # Check whether --with-shared or --without-shared was given.
11017 if test "${with_shared+set}" = set; then
11018 withval="$with_shared"
11019 with_shared=$withval
11023 echo "$as_me:11023: result: $with_shared" >&5
11024 echo "${ECHO_T}$with_shared" >&6
11025 if test "$with_shared" = "yes" ; then
11027 DFT_LWR_MODEL=$LIB_MODEL
11033 INSTALL_LIB="-m 644"
11034 : ${rel_builddir:=.}
11040 cf_cv_do_symlinks=no
11042 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
11044 echo "$as_me:11044: checking if release/abi version should be used for shared libs" >&5
11045 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
11047 # Check whether --with-shlib-version or --without-shlib-version was given.
11048 if test "${with_shlib_version+set}" = set; then
11049 withval="$with_shlib_version"
11050 test -z "$withval" && withval=auto
11053 cf_cv_shlib_version=auto
11056 cf_cv_shlib_version=$withval
11059 echo "$as_me:11059: result: $withval" >&5
11060 echo "${ECHO_T}$withval" >&6
11061 { { echo "$as_me:11061: error: option value must be one of: rel, abi, or auto" >&5
11062 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
11063 { (exit 1); exit 1; }; }
11068 cf_cv_shlib_version=auto
11070 echo "$as_me:11070: result: $cf_cv_shlib_version" >&5
11071 echo "${ECHO_T}$cf_cv_shlib_version" >&6
11073 cf_cv_rm_so_locs=no
11076 # Some less-capable ports of gcc support only -fpic
11080 if test "$GCC" = yes
11084 case $cf_cv_system_name in
11085 (*linux*) # e.g., PGI compiler
11091 if test "$cf_try_fPIC" = yes
11093 echo "$as_me:11093: checking which $CC option to use" >&5
11094 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
11095 cf_save_CFLAGS="$CFLAGS"
11096 for CC_SHARED_OPTS in -fPIC -fpic ''
11098 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
11099 cat >conftest.$ac_ext <<_ACEOF
11100 #line 11100 "configure"
11101 #include "confdefs.h"
11111 rm -f conftest.$ac_objext
11112 if { (eval echo "$as_me:11112: \"$ac_compile\"") >&5
11113 (eval $ac_compile) 2>&5
11115 echo "$as_me:11115: \$? = $ac_status" >&5
11116 (exit $ac_status); } &&
11117 { ac_try='test -s conftest.$ac_objext'
11118 { (eval echo "$as_me:11118: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5
11121 echo "$as_me:11121: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11125 echo "$as_me: failed program was:" >&5
11126 cat conftest.$ac_ext >&5
11128 rm -f conftest.$ac_objext conftest.$ac_ext
11130 echo "$as_me:11130: result: $CC_SHARED_OPTS" >&5
11131 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
11132 CFLAGS="$cf_save_CFLAGS"
11135 cf_cv_shlib_version_infix=no
11137 case $cf_cv_system_name in
11138 (aix4.3-9*|aix[5-7]*)
11139 if test "$GCC" = yes; then
11140 CC_SHARED_OPTS='-Wl,-brtl'
11141 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
11143 CC_SHARED_OPTS='-brtl'
11144 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
11145 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
11149 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
11153 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
11154 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
11155 cf_cv_shlib_version=cygdll
11156 cf_cv_shlib_version_infix=cygdll
11159 cat >mk_shared_lib.sh <<-CF_EOF
11162 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
11165 Linking shared library
11166 ** SHARED_LIB \$SHARED_LIB
11167 ** IMPORT_LIB \$IMPORT_LIB
11169 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
11171 chmod +x mk_shared_lib.sh
11175 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
11176 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
11177 cf_cv_shlib_version=msysdll
11178 cf_cv_shlib_version_infix=msysdll
11181 cat >mk_shared_lib.sh <<-CF_EOF
11184 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
11187 Linking shared library
11188 ** SHARED_LIB \$SHARED_LIB
11189 ** IMPORT_LIB \$IMPORT_LIB
11191 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
11193 chmod +x mk_shared_lib.sh
11196 cf_try_cflags="no-cpp-precomp"
11197 CC_SHARED_OPTS="-dynamic"
11198 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
11199 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
11200 cf_cv_shlib_version_infix=yes
11201 echo "$as_me:11201: checking if ld -search_paths_first works" >&5
11202 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
11203 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
11204 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 cf_save_LDFLAGS=$LDFLAGS
11208 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
11209 cat >conftest.$ac_ext <<_ACEOF
11210 #line 11210 "configure"
11211 #include "confdefs.h"
11221 rm -f conftest.$ac_objext conftest$ac_exeext
11222 if { (eval echo "$as_me:11222: \"$ac_link\"") >&5
11223 (eval $ac_link) 2>&5
11225 echo "$as_me:11225: \$? = $ac_status" >&5
11226 (exit $ac_status); } &&
11227 { ac_try='test -s conftest$ac_exeext'
11228 { (eval echo "$as_me:11228: \"$ac_try\"") >&5
11229 (eval $ac_try) 2>&5
11231 echo "$as_me:11231: \$? = $ac_status" >&5
11232 (exit $ac_status); }; }; then
11233 cf_cv_ldflags_search_paths_first=yes
11235 echo "$as_me: failed program was:" >&5
11236 cat conftest.$ac_ext >&5
11237 cf_cv_ldflags_search_paths_first=no
11239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11240 LDFLAGS=$cf_save_LDFLAGS
11242 echo "$as_me:11242: result: $cf_cv_ldflags_search_paths_first" >&5
11243 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
11244 if test $cf_cv_ldflags_search_paths_first = yes; then
11245 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
11249 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
11250 if test "$GCC" != yes; then
11251 CC_SHARED_OPTS='+Z'
11253 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
11254 INSTALL_LIB="-m 555"
11257 # (tested with gcc 2.7.2 -- I don't have c89)
11258 if test "$GCC" = yes; then
11259 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
11261 CC_SHARED_OPTS='+Z'
11262 LD_SHARED_OPTS='-Wl,+b,${libdir}'
11264 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
11265 # HP-UX shared libraries must be executable, and should be
11266 # readonly to exploit a quirk in the memory manager.
11267 INSTALL_LIB="-m 555"
11270 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
11271 if test "$cf_cv_shlib_version" = rel; then
11272 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
11274 cf_shared_soname='`basename $@`'
11277 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
11280 if test "$cf_cv_enable_rpath" = yes ; then
11281 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
11283 # tested with IRIX 5.2 and 'cc'.
11284 if test "$GCC" != yes; then
11285 CC_SHARED_OPTS='-KPIC'
11286 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
11288 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
11290 cf_cv_rm_so_locs=yes
11292 (linux*|gnu*|k*bsd*-gnu)
11293 if test "$DFT_LWR_MODEL" = "shared" ; then
11294 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
11295 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
11297 if test "$cf_cv_enable_rpath" = yes ; then
11298 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
11301 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
11302 if test "$cf_cv_shlib_version" = rel; then
11303 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
11305 cf_cv_shared_soname='`basename $@`'
11308 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
11311 cf_cv_shlib_version=mingw
11312 cf_cv_shlib_version_infix=mingw
11315 if test "$DFT_LWR_MODEL" = "shared" ; then
11316 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
11317 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
11318 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
11321 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
11322 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
11323 cat >mk_shared_lib.sh <<-CF_EOF
11326 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
11329 Linking shared library
11330 ** SHARED_LIB \$SHARED_LIB
11331 ** IMPORT_LIB \$IMPORT_LIB
11333 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
11335 chmod +x mk_shared_lib.sh
11337 (openbsd[2-9].*|mirbsd*)
11338 if test "$DFT_LWR_MODEL" = "shared" ; then
11339 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
11340 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
11342 if test "$cf_cv_enable_rpath" = yes ; then
11343 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
11345 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
11347 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
11348 if test "$cf_cv_shlib_version" = rel; then
11349 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
11351 cf_cv_shared_soname='`basename $@`'
11354 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
11356 (nto-qnx*|openbsd*|freebsd[12].*)
11357 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
11358 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
11359 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
11361 (dragonfly*|freebsd*)
11362 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
11363 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
11364 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
11365 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
11366 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
11369 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
11370 if test "$cf_cv_shlib_version" = rel; then
11371 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
11373 cf_cv_shared_soname='`basename $@`'
11376 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
11379 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
11380 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
11381 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
11382 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
11383 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
11384 if test "$cf_cv_shlib_version" = auto; then
11385 if test -f /usr/libexec/ld.elf_so; then
11386 cf_cv_shlib_version=abi
11388 cf_cv_shlib_version=rel
11392 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
11393 if test "$cf_cv_shlib_version" = rel; then
11394 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
11396 cf_cv_shared_soname='`basename $@`'
11399 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
11401 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -Wl,-shared -Wl,-Bshareable -o $@'
11405 # tested with OSF/1 V3.2 and 'cc'
11406 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
11407 # link with shared libs).
11408 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
11411 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
11414 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
11415 if test "$DFT_LWR_MODEL" = "shared" ; then
11416 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
11417 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
11419 cf_cv_rm_so_locs=yes
11421 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
11422 # tested with osr5.0.5
11423 if test "$GCC" != yes; then
11424 CC_SHARED_OPTS='-belf -KPIC'
11426 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
11427 if test "$cf_cv_enable_rpath" = yes ; then
11428 # only way is to set LD_RUN_PATH but no switch for it
11431 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
11432 LINK_PROGS='LD_RUN_PATH=${libdir}'
11433 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
11436 # tested with SunOS 4.1.1 and gcc 2.7.0
11437 if test "$GCC" != yes; then
11438 CC_SHARED_OPTS='-KPIC'
11440 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
11441 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
11444 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
11445 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
11446 if test "$DFT_LWR_MODEL" = "shared" ; then
11447 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
11448 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
11450 if test "$cf_cv_enable_rpath" = yes ; then
11451 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
11454 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
11455 if test "$cf_cv_shlib_version" = rel; then
11456 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
11458 cf_cv_shared_soname='`basename $@`'
11461 if test "$GCC" != yes; then
11462 cf_save_CFLAGS="$CFLAGS"
11463 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
11465 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
11466 cat >conftest.$ac_ext <<_ACEOF
11467 #line 11467 "configure"
11468 #include "confdefs.h"
11478 rm -f conftest.$ac_objext
11479 if { (eval echo "$as_me:11479: \"$ac_compile\"") >&5
11480 (eval $ac_compile) 2>&5
11482 echo "$as_me:11482: \$? = $ac_status" >&5
11483 (exit $ac_status); } &&
11484 { ac_try='test -s conftest.$ac_objext'
11485 { (eval echo "$as_me:11485: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11488 echo "$as_me:11488: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }; then
11492 echo "$as_me: failed program was:" >&5
11493 cat conftest.$ac_ext >&5
11495 rm -f conftest.$ac_objext conftest.$ac_ext
11497 CFLAGS="$cf_save_CFLAGS"
11498 CC_SHARED_OPTS=$cf_shared_opts
11499 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
11501 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
11504 (sysv5uw7*|unix_sv*)
11505 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
11506 if test "$GCC" != yes; then
11507 CC_SHARED_OPTS='-KPIC'
11509 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
11512 CC_SHARED_OPTS='unknown'
11513 MK_SHARED_LIB='echo unknown'
11517 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
11518 case "$cf_cv_shlib_version" in
11520 case "$MK_SHARED_LIB" in
11522 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
11525 { echo "$as_me:11525: WARNING: ignored --with-shlib-version" >&5
11526 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
11532 if test -n "$cf_try_cflags"
11534 cat > conftest.$ac_ext <<EOF
11535 #line 11535 "${as_me:-configure}"
11537 int main(int argc, char *argv[])
11540 return (argv[argc-1] == 0) ;
11543 cf_save_CFLAGS="$CFLAGS"
11544 for cf_opt in $cf_try_cflags
11546 CFLAGS="$cf_save_CFLAGS -$cf_opt"
11547 echo "$as_me:11547: checking if CFLAGS option -$cf_opt works" >&5
11548 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
11549 if { (eval echo "$as_me:11549: \"$ac_compile\"") >&5
11550 (eval $ac_compile) 2>&5
11552 echo "$as_me:11552: \$? = $ac_status" >&5
11553 (exit $ac_status); }; then
11554 echo "$as_me:11554: result: yes" >&5
11555 echo "${ECHO_T}yes" >&6
11556 cf_save_CFLAGS="$CFLAGS"
11558 echo "$as_me:11558: result: no" >&5
11559 echo "${ECHO_T}no" >&6
11562 CFLAGS="$cf_save_CFLAGS"
11565 # RPATH_LIST is a colon-separated list of directories
11566 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
11567 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
11569 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
11571 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
11573 echo "${as_me:-configure}:11573: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
11575 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
11577 echo "${as_me:-configure}:11577: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
11579 echo "$as_me:11579: checking if versioned-symbols file should be used" >&5
11580 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
11582 # Check whether --with-versioned-syms or --without-versioned-syms was given.
11583 if test "${with_versioned_syms+set}" = set; then
11584 withval="$with_versioned_syms"
11585 with_versioned_syms=$withval
11587 with_versioned_syms=no
11589 if test "x$with_versioned_syms" = xyes
11591 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
11594 echo "$as_me:11594: result: $with_versioned_syms" >&5
11595 echo "${ECHO_T}$with_versioned_syms" >&6
11601 if test "x$with_versioned_syms" != xno
11603 RESULTING_SYMS=$with_versioned_syms
11604 case "x$MK_SHARED_LIB" in
11606 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
11607 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
11608 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
11610 echo "${as_me:-configure}:11610: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
11614 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
11615 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
11616 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
11618 echo "${as_me:-configure}:11618: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
11622 { echo "$as_me:11622: WARNING: this system does not support versioned-symbols" >&5
11623 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
11627 # Linux ld can selectively override scope, e.g., of symbols beginning with
11628 # "_" by first declaring some as global, and then using a wildcard to
11629 # declare the others as local. Some other loaders cannot do this. Check
11630 # by constructing a (very) simple shared library and inspecting its
11632 if test "x$VERSIONED_SYMS" != "x"
11634 echo "$as_me:11634: checking if wildcards can be used to selectively omit symbols" >&5
11635 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
11641 cat >conftest.ver <<EOF
11670 cat >conftest.$ac_ext <<EOF
11671 #line 11671 "configure"
11672 int _ismissing(void) { return 1; }
11673 int _localf1(void) { return 1; }
11674 int _localf2(void) { return 2; }
11675 int globalf1(void) { return 1; }
11676 int globalf2(void) { return 2; }
11677 int _sublocalf1(void) { return 1; }
11678 int _sublocalf2(void) { return 2; }
11679 int subglobalf1(void) { return 1; }
11680 int subglobalf2(void) { return 2; }
11682 cat >conftest.mk <<EOF
11685 CPPFLAGS=${CPPFLAGS}
11688 VERSIONED_SYMS=${VERSIONED_SYMS}
11689 RESULTING_SYMS=conftest.ver
11690 MK_SHARED_LIB=${MK_SHARED_LIB}
11691 conftest.so: conftest.$ac_cv_objext
11692 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
11695 # compile source, make library
11696 if make -f conftest.mk 2>&5 >/dev/null
11698 # test for missing symbol in either Data or Text section
11699 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'`
11700 test -n "$cf_missing" && WILDCARD_SYMS=yes
11702 echo "$as_me:11702: result: $WILDCARD_SYMS" >&5
11703 echo "${ECHO_T}$WILDCARD_SYMS" >&6
11709 LIB_CREATE="$MK_SHARED_LIB"
11710 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
11719 case X$LIB_MODEL in
11721 DFT_LIB_SUFFIX='.la'
11722 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11725 DFT_LIB_SUFFIX='_g.a'
11726 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11729 DFT_LIB_SUFFIX='_p.a'
11730 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11733 case $cf_cv_system_name in
11735 DFT_LIB_SUFFIX='.so'
11736 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11738 (cygwin*|msys*|mingw*)
11739 DFT_LIB_SUFFIX='.dll'
11740 DFT_DEP_SUFFIX='.dll.a'
11743 DFT_LIB_SUFFIX='.dylib'
11744 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11749 DFT_LIB_SUFFIX='.so'
11750 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11753 DFT_LIB_SUFFIX='.sl'
11754 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11759 DFT_LIB_SUFFIX='.so'
11760 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11765 DFT_LIB_SUFFIX='.a'
11766 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
11769 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
11771 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
11772 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
11775 LIB_SUFFIX=$DFT_LIB_SUFFIX
11777 echo "$as_me:11777: checking for specific curses-directory" >&5
11778 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
11780 # Check whether --with-curses-dir or --without-curses-dir was given.
11781 if test "${with_curses_dir+set}" = set; then
11782 withval="$with_curses_dir"
11783 cf_cv_curses_dir=$withval
11785 cf_cv_curses_dir=no
11787 echo "$as_me:11787: result: $cf_cv_curses_dir" >&5
11788 echo "${ECHO_T}$cf_cv_curses_dir" >&6
11790 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
11793 if test "x$prefix" != xNONE; then
11794 cf_path_syntax="$prefix"
11796 cf_path_syntax="$ac_default_prefix"
11799 case ".$withval" in
11800 (.\$\(*\)*|.\'*\'*)
11804 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
11806 (.\${*prefix}*|.\${*dir}*)
11807 eval withval="$withval"
11808 case ".$withval" in
11810 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11815 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11818 { { echo "$as_me:11818: error: expected a pathname, not \"$withval\"" >&5
11819 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
11820 { (exit 1); exit 1; }; }
11824 if test -d "$cf_cv_curses_dir"
11827 if test -n "$cf_cv_curses_dir/include" ; then
11828 for cf_add_incdir in $cf_cv_curses_dir/include
11830 while test $cf_add_incdir != /usr/include
11832 if test -d $cf_add_incdir
11835 if test -n "$CFLAGS$CPPFLAGS" ; then
11836 # a loop is needed to ensure we can add subdirs of existing dirs
11837 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
11838 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
11839 cf_have_incdir=yes; break
11844 if test "$cf_have_incdir" = no ; then
11845 if test "$cf_add_incdir" = /usr/local/include ; then
11846 if test "$GCC" = yes
11848 cf_save_CPPFLAGS=$CPPFLAGS
11850 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11851 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
11853 cat >conftest.$ac_ext <<_ACEOF
11854 #line 11854 "configure"
11855 #include "confdefs.h"
11865 rm -f conftest.$ac_objext
11866 if { (eval echo "$as_me:11866: \"$ac_compile\"") >&5
11867 (eval $ac_compile) 2>&5
11869 echo "$as_me:11869: \$? = $ac_status" >&5
11870 (exit $ac_status); } &&
11871 { ac_try='test -s conftest.$ac_objext'
11872 { (eval echo "$as_me:11872: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11875 echo "$as_me:11875: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }; then
11879 echo "$as_me: failed program was:" >&5
11880 cat conftest.$ac_ext >&5
11883 rm -f conftest.$ac_objext conftest.$ac_ext
11884 CPPFLAGS=$cf_save_CPPFLAGS
11889 if test "$cf_have_incdir" = no ; then
11890 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
11892 echo "${as_me:-configure}:11892: testing adding $cf_add_incdir to include-path ..." 1>&5
11894 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
11896 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
11897 test "$cf_top_incdir" = "$cf_add_incdir" && break
11898 cf_add_incdir="$cf_top_incdir"
11909 if test -n "$cf_cv_curses_dir/lib" ; then
11910 for cf_add_libdir in $cf_cv_curses_dir/lib
11912 if test $cf_add_libdir = /usr/lib ; then
11914 elif test -d $cf_add_libdir
11917 if test -n "$LDFLAGS$LIBS" ; then
11918 # a loop is needed to ensure we can add subdirs of existing dirs
11919 for cf_test_libdir in $LDFLAGS $LIBS ; do
11920 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
11921 cf_have_libdir=yes; break
11925 if test "$cf_have_libdir" = no ; then
11926 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
11928 echo "${as_me:-configure}:11928: testing adding $cf_add_libdir to library-path ..." 1>&5
11930 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
11939 echo "$as_me:11939: checking if rpath option should be used" >&5
11940 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
11942 # Check whether --enable-rpath or --disable-rpath was given.
11943 if test "${enable_rpath+set}" = set; then
11944 enableval="$enable_rpath"
11945 cf_cv_enable_rpath=$enableval
11947 cf_cv_enable_rpath=no
11949 echo "$as_me:11949: result: $cf_cv_enable_rpath" >&5
11950 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
11952 echo "$as_me:11952: checking for specific curses-directory" >&5
11953 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
11955 # Check whether --with-curses-dir or --without-curses-dir was given.
11956 if test "${with_curses_dir+set}" = set; then
11957 withval="$with_curses_dir"
11958 cf_cv_curses_dir=$withval
11960 cf_cv_curses_dir=no
11962 echo "$as_me:11962: result: $cf_cv_curses_dir" >&5
11963 echo "${ECHO_T}$cf_cv_curses_dir" >&6
11965 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
11968 if test "x$prefix" != xNONE; then
11969 cf_path_syntax="$prefix"
11971 cf_path_syntax="$ac_default_prefix"
11974 case ".$withval" in
11975 (.\$\(*\)*|.\'*\'*)
11979 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
11981 (.\${*prefix}*|.\${*dir}*)
11982 eval withval="$withval"
11983 case ".$withval" in
11985 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11990 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
11993 { { echo "$as_me:11993: error: expected a pathname, not \"$withval\"" >&5
11994 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
11995 { (exit 1); exit 1; }; }
11999 if test -d "$cf_cv_curses_dir"
12002 if test -n "$cf_cv_curses_dir/include" ; then
12003 for cf_add_incdir in $cf_cv_curses_dir/include
12005 while test $cf_add_incdir != /usr/include
12007 if test -d $cf_add_incdir
12010 if test -n "$CFLAGS$CPPFLAGS" ; then
12011 # a loop is needed to ensure we can add subdirs of existing dirs
12012 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
12013 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
12014 cf_have_incdir=yes; break
12019 if test "$cf_have_incdir" = no ; then
12020 if test "$cf_add_incdir" = /usr/local/include ; then
12021 if test "$GCC" = yes
12023 cf_save_CPPFLAGS=$CPPFLAGS
12025 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12026 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
12028 cat >conftest.$ac_ext <<_ACEOF
12029 #line 12029 "configure"
12030 #include "confdefs.h"
12040 rm -f conftest.$ac_objext
12041 if { (eval echo "$as_me:12041: \"$ac_compile\"") >&5
12042 (eval $ac_compile) 2>&5
12044 echo "$as_me:12044: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try='test -s conftest.$ac_objext'
12047 { (eval echo "$as_me:12047: \"$ac_try\"") >&5
12048 (eval $ac_try) 2>&5
12050 echo "$as_me:12050: \$? = $ac_status" >&5
12051 (exit $ac_status); }; }; then
12054 echo "$as_me: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12058 rm -f conftest.$ac_objext conftest.$ac_ext
12059 CPPFLAGS=$cf_save_CPPFLAGS
12064 if test "$cf_have_incdir" = no ; then
12065 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
12067 echo "${as_me:-configure}:12067: testing adding $cf_add_incdir to include-path ..." 1>&5
12069 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
12071 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
12072 test "$cf_top_incdir" = "$cf_add_incdir" && break
12073 cf_add_incdir="$cf_top_incdir"
12084 if test -n "$cf_cv_curses_dir/lib" ; then
12085 for cf_add_libdir in $cf_cv_curses_dir/lib
12087 if test $cf_add_libdir = /usr/lib ; then
12089 elif test -d $cf_add_libdir
12092 if test -n "$LDFLAGS$LIBS" ; then
12093 # a loop is needed to ensure we can add subdirs of existing dirs
12094 for cf_test_libdir in $LDFLAGS $LIBS ; do
12095 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
12096 cf_have_libdir=yes; break
12100 if test "$cf_have_libdir" = no ; then
12101 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
12103 echo "${as_me:-configure}:12103: testing adding $cf_add_libdir to library-path ..." 1>&5
12105 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
12114 cf_cv_screen=curses
12116 echo "$as_me:12116: checking for specified curses library type" >&5
12117 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
12119 # Check whether --with-screen or --without-screen was given.
12120 if test "${with_screen+set}" = set; then
12121 withval="$with_screen"
12122 cf_cv_screen=$withval
12125 # Check whether --with-ncursesw or --without-ncursesw was given.
12126 if test "${with_ncursesw+set}" = set; then
12127 withval="$with_ncursesw"
12128 cf_cv_screen=ncursesw
12131 # Check whether --with-ncurses or --without-ncurses was given.
12132 if test "${with_ncurses+set}" = set; then
12133 withval="$with_ncurses"
12134 cf_cv_screen=ncurses
12137 # Check whether --with-pdcurses or --without-pdcurses was given.
12138 if test "${with_pdcurses+set}" = set; then
12139 withval="$with_pdcurses"
12140 cf_cv_screen=pdcurses
12143 # Check whether --with-curses-colr or --without-curses-colr was given.
12144 if test "${with_curses_colr+set}" = set; then
12145 withval="$with_curses_colr"
12146 cf_cv_screen=curses_colr
12149 # Check whether --with-curses-5lib or --without-curses-5lib was given.
12150 if test "${with_curses_5lib+set}" = set; then
12151 withval="$with_curses_5lib"
12152 cf_cv_screen=curses_5lib
12160 echo "$as_me:12160: result: $cf_cv_screen" >&5
12161 echo "${ECHO_T}$cf_cv_screen" >&6
12163 case $cf_cv_screen in
12166 echo "$as_me:12166: checking for extra include directories" >&5
12167 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
12168 if test "${cf_cv_curses_incdir+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 cf_cv_curses_incdir=no
12175 if test "x$cf_cv_screen" = "xcurses_colr"
12177 test -d /usr/include/curses_colr && \
12178 cf_cv_curses_incdir="-I/usr/include/curses_colr"
12182 if test "x$cf_cv_screen" = "xcurses_5lib"
12184 test -d /usr/5lib && \
12185 test -d /usr/5include && \
12186 cf_cv_curses_incdir="-I/usr/5include"
12192 echo "$as_me:12192: result: $cf_cv_curses_incdir" >&5
12193 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
12194 if test "$cf_cv_curses_incdir" != no
12197 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12198 CPPFLAGS="${CPPFLAGS}$cf_cv_curses_incdir"
12202 echo "$as_me:12202: checking if we have identified curses headers" >&5
12203 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
12204 if test "${cf_cv_ncurses_header+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12208 cf_cv_ncurses_header=none
12211 curses.h ncurses/ncurses.h ncurses/curses.h
12213 cat >conftest.$ac_ext <<_ACEOF
12214 #line 12214 "configure"
12215 #include "confdefs.h"
12216 #include <${cf_header}>
12220 initscr(); tgoto("?", 0,0)
12225 rm -f conftest.$ac_objext
12226 if { (eval echo "$as_me:12226: \"$ac_compile\"") >&5
12227 (eval $ac_compile) 2>&5
12229 echo "$as_me:12229: \$? = $ac_status" >&5
12230 (exit $ac_status); } &&
12231 { ac_try='test -s conftest.$ac_objext'
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 cf_cv_ncurses_header=$cf_header; break
12239 echo "$as_me: failed program was:" >&5
12240 cat conftest.$ac_ext >&5
12242 rm -f conftest.$ac_objext conftest.$ac_ext
12246 echo "$as_me:12246: result: $cf_cv_ncurses_header" >&5
12247 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
12249 if test "$cf_cv_ncurses_header" = none ; then
12250 { { echo "$as_me:12250: error: No curses header-files found" >&5
12251 echo "$as_me: error: No curses header-files found" >&2;}
12252 { (exit 1); exit 1; }; }
12255 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
12257 for ac_header in $cf_cv_ncurses_header
12259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12260 echo "$as_me:12260: checking for $ac_header" >&5
12261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 cat >conftest.$ac_ext <<_ACEOF
12266 #line 12266 "configure"
12267 #include "confdefs.h"
12268 #include <$ac_header>
12270 if { (eval echo "$as_me:12270: \"$ac_cpp conftest.$ac_ext\"") >&5
12271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12273 egrep -v '^ *\+' conftest.er1 >conftest.err
12275 cat conftest.err >&5
12276 echo "$as_me:12276: \$? = $ac_status" >&5
12277 (exit $ac_status); } >/dev/null; then
12278 if test -s conftest.err; then
12279 ac_cpp_err=$ac_c_preproc_warn_flag
12286 if test -z "$ac_cpp_err"; then
12287 eval "$as_ac_Header=yes"
12289 echo "$as_me: failed program was:" >&5
12290 cat conftest.$ac_ext >&5
12291 eval "$as_ac_Header=no"
12293 rm -f conftest.err conftest.$ac_ext
12295 echo "$as_me:12295: result: `eval echo '${'$as_ac_Header'}'`" >&5
12296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12298 cat >>confdefs.h <<EOF
12299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12305 echo "$as_me:12305: checking for terminfo header" >&5
12306 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
12307 if test "${cf_cv_term_header+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 case ${cf_cv_ncurses_header} in
12312 (*/ncurses.h|*/ncursesw.h)
12313 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
12316 cf_term_header=term.h
12320 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
12322 cat >conftest.$ac_ext <<_ACEOF
12323 #line 12323 "configure"
12324 #include "confdefs.h"
12326 #include <${cf_cv_ncurses_header:-curses.h}>
12327 #include <$cf_test>
12332 int x = auto_left_margin
12337 rm -f conftest.$ac_objext
12338 if { (eval echo "$as_me:12338: \"$ac_compile\"") >&5
12339 (eval $ac_compile) 2>&5
12341 echo "$as_me:12341: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -s conftest.$ac_objext'
12344 { (eval echo "$as_me:12344: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12347 echo "$as_me:12347: \$? = $ac_status" >&5
12348 (exit $ac_status); }; }; then
12350 cf_cv_term_header="$cf_test"
12352 echo "$as_me: failed program was:" >&5
12353 cat conftest.$ac_ext >&5
12355 cf_cv_term_header=unknown
12358 rm -f conftest.$ac_objext conftest.$ac_ext
12359 test "$cf_cv_term_header" != unknown && break
12363 echo "$as_me:12363: result: $cf_cv_term_header" >&5
12364 echo "${ECHO_T}$cf_cv_term_header" >&6
12366 # Set definitions to allow ifdef'ing to accommodate subdirectories
12368 case $cf_cv_term_header in
12371 cat >>confdefs.h <<\EOF
12372 #define HAVE_TERM_H 1
12378 case $cf_cv_term_header in
12381 cat >>confdefs.h <<\EOF
12382 #define HAVE_NCURSES_TERM_H 1
12388 cat >>confdefs.h <<\EOF
12389 #define HAVE_NCURSESW_TERM_H 1
12395 echo "$as_me:12395: checking for ncurses version" >&5
12396 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
12397 if test "${cf_cv_ncurses_version+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 cf_cv_ncurses_version=no
12404 if test "$cross_compiling" = yes; then
12406 # This will not work if the preprocessor splits the line after the
12407 # Autoconf token. The 'unproto' program does that.
12408 cat > conftest.$ac_ext <<EOF
12409 #include <${cf_cv_ncurses_header:-curses.h}>
12411 #ifdef NCURSES_VERSION
12412 Autoconf NCURSES_VERSION
12420 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
12421 { (eval echo "$as_me:12421: \"$cf_try\"") >&5
12422 (eval $cf_try) 2>&5
12424 echo "$as_me:12424: \$? = $ac_status" >&5
12425 (exit $ac_status); }
12426 if test -f conftest.out ; then
12427 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
12428 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
12433 cat >conftest.$ac_ext <<_ACEOF
12434 #line 12434 "configure"
12435 #include "confdefs.h"
12437 #include <${cf_cv_ncurses_header:-curses.h}>
12441 FILE *fp = fopen("$cf_tempfile", "w");
12442 #ifdef NCURSES_VERSION
12443 # ifdef NCURSES_VERSION_PATCH
12444 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
12446 fprintf(fp, "%s\n", NCURSES_VERSION);
12449 # ifdef __NCURSES_H
12450 fprintf(fp, "old\n");
12455 ${cf_cv_main_return:-return}(0);
12458 rm -f conftest$ac_exeext
12459 if { (eval echo "$as_me:12459: \"$ac_link\"") >&5
12460 (eval $ac_link) 2>&5
12462 echo "$as_me:12462: \$? = $ac_status" >&5
12463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12464 { (eval echo "$as_me:12464: \"$ac_try\"") >&5
12465 (eval $ac_try) 2>&5
12467 echo "$as_me:12467: \$? = $ac_status" >&5
12468 (exit $ac_status); }; }; then
12470 cf_cv_ncurses_version=`cat $cf_tempfile`
12472 echo "$as_me: program exited with status $ac_status" >&5
12473 echo "$as_me: failed program was:" >&5
12474 cat conftest.$ac_ext >&5
12476 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12481 echo "$as_me:12481: result: $cf_cv_ncurses_version" >&5
12482 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
12483 test "$cf_cv_ncurses_version" = no ||
12484 cat >>confdefs.h <<\EOF
12488 echo "$as_me:12488: checking if we have identified curses libraries" >&5
12489 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
12490 cat >conftest.$ac_ext <<_ACEOF
12491 #line 12491 "configure"
12492 #include "confdefs.h"
12493 #include <${cf_cv_ncurses_header:-curses.h}>
12497 initscr(); tgoto("?", 0,0)
12502 rm -f conftest.$ac_objext conftest$ac_exeext
12503 if { (eval echo "$as_me:12503: \"$ac_link\"") >&5
12504 (eval $ac_link) 2>&5
12506 echo "$as_me:12506: \$? = $ac_status" >&5
12507 (exit $ac_status); } &&
12508 { ac_try='test -s conftest$ac_exeext'
12509 { (eval echo "$as_me:12509: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12512 echo "$as_me:12512: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12516 echo "$as_me: failed program was:" >&5
12517 cat conftest.$ac_ext >&5
12520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12521 echo "$as_me:12521: result: $cf_result" >&5
12522 echo "${ECHO_T}$cf_result" >&6
12524 if test "$cf_result" = no ; then
12527 echo "$as_me:12527: checking for tgoto in -lmytinfo" >&5
12528 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
12529 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 ac_check_lib_save_LIBS=$LIBS
12533 LIBS="-lmytinfo $LIBS"
12534 cat >conftest.$ac_ext <<_ACEOF
12535 #line 12535 "configure"
12536 #include "confdefs.h"
12538 /* Override any gcc2 internal prototype to avoid an error. */
12542 /* We use char because int might match the return type of a gcc2
12543 builtin and then its argument prototype would still apply. */
12553 rm -f conftest.$ac_objext conftest$ac_exeext
12554 if { (eval echo "$as_me:12554: \"$ac_link\"") >&5
12555 (eval $ac_link) 2>&5
12557 echo "$as_me:12557: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
12559 { ac_try='test -s conftest$ac_exeext'
12560 { (eval echo "$as_me:12560: \"$ac_try\"") >&5
12561 (eval $ac_try) 2>&5
12563 echo "$as_me:12563: \$? = $ac_status" >&5
12564 (exit $ac_status); }; }; then
12565 ac_cv_lib_mytinfo_tgoto=yes
12567 echo "$as_me: failed program was:" >&5
12568 cat conftest.$ac_ext >&5
12569 ac_cv_lib_mytinfo_tgoto=no
12571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12572 LIBS=$ac_check_lib_save_LIBS
12574 echo "$as_me:12574: result: $ac_cv_lib_mytinfo_tgoto" >&5
12575 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
12576 if test $ac_cv_lib_mytinfo_tgoto = yes; then
12578 cf_add_libs="-lmytinfo"
12579 # Filter out duplicates - this happens with badly-designed ".pc" files...
12580 for cf_add_1lib in $LIBS
12582 for cf_add_2lib in $cf_add_libs
12584 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12590 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12592 LIBS="$cf_add_libs"
12598 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
12599 # next (1998), and xcurses "newer" (2000). There is no header file for
12600 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
12601 # term.h) for cur_colr
12602 if test "x$cf_cv_screen" = "xcurses_colr"
12604 echo "$as_me:12604: checking for initscr in -lcur_colr" >&5
12605 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
12606 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 ac_check_lib_save_LIBS=$LIBS
12610 LIBS="-lcur_colr $LIBS"
12611 cat >conftest.$ac_ext <<_ACEOF
12612 #line 12612 "configure"
12613 #include "confdefs.h"
12615 /* Override any gcc2 internal prototype to avoid an error. */
12619 /* We use char because int might match the return type of a gcc2
12620 builtin and then its argument prototype would still apply. */
12630 rm -f conftest.$ac_objext conftest$ac_exeext
12631 if { (eval echo "$as_me:12631: \"$ac_link\"") >&5
12632 (eval $ac_link) 2>&5
12634 echo "$as_me:12634: \$? = $ac_status" >&5
12635 (exit $ac_status); } &&
12636 { ac_try='test -s conftest$ac_exeext'
12637 { (eval echo "$as_me:12637: \"$ac_try\"") >&5
12638 (eval $ac_try) 2>&5
12640 echo "$as_me:12640: \$? = $ac_status" >&5
12641 (exit $ac_status); }; }; then
12642 ac_cv_lib_cur_colr_initscr=yes
12644 echo "$as_me: failed program was:" >&5
12645 cat conftest.$ac_ext >&5
12646 ac_cv_lib_cur_colr_initscr=no
12648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12649 LIBS=$ac_check_lib_save_LIBS
12651 echo "$as_me:12651: result: $ac_cv_lib_cur_colr_initscr" >&5
12652 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
12653 if test $ac_cv_lib_cur_colr_initscr = yes; then
12655 cf_add_libs="-lcur_colr"
12656 # Filter out duplicates - this happens with badly-designed ".pc" files...
12657 for cf_add_1lib in $LIBS
12659 for cf_add_2lib in $cf_add_libs
12661 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12667 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12669 LIBS="$cf_add_libs"
12671 ac_cv_func_initscr=yes
12675 echo "$as_me:12675: checking for initscr in -lHcurses" >&5
12676 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
12677 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 ac_check_lib_save_LIBS=$LIBS
12681 LIBS="-lHcurses $LIBS"
12682 cat >conftest.$ac_ext <<_ACEOF
12683 #line 12683 "configure"
12684 #include "confdefs.h"
12686 /* Override any gcc2 internal prototype to avoid an error. */
12690 /* We use char because int might match the return type of a gcc2
12691 builtin and then its argument prototype would still apply. */
12701 rm -f conftest.$ac_objext conftest$ac_exeext
12702 if { (eval echo "$as_me:12702: \"$ac_link\"") >&5
12703 (eval $ac_link) 2>&5
12705 echo "$as_me:12705: \$? = $ac_status" >&5
12706 (exit $ac_status); } &&
12707 { ac_try='test -s conftest$ac_exeext'
12708 { (eval echo "$as_me:12708: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:12711: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ac_cv_lib_Hcurses_initscr=yes
12715 echo "$as_me: failed program was:" >&5
12716 cat conftest.$ac_ext >&5
12717 ac_cv_lib_Hcurses_initscr=no
12719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12720 LIBS=$ac_check_lib_save_LIBS
12722 echo "$as_me:12722: result: $ac_cv_lib_Hcurses_initscr" >&5
12723 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
12724 if test $ac_cv_lib_Hcurses_initscr = yes; then
12726 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
12728 cf_add_libs="-lHcurses"
12729 # Filter out duplicates - this happens with badly-designed ".pc" files...
12730 for cf_add_1lib in $LIBS
12732 for cf_add_2lib in $cf_add_libs
12734 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12740 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12742 LIBS="$cf_add_libs"
12744 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12745 CPPFLAGS="${CPPFLAGS}-D__HP_CURSES -D_HP_CURSES"
12747 ac_cv_func_initscr=yes
12756 case `arch 2>/dev/null` in
12761 if test -n "/lib64" ; then
12762 for cf_add_libdir in /lib64
12764 if test $cf_add_libdir = /usr/lib ; then
12766 elif test -d $cf_add_libdir
12769 if test -n "$LDFLAGS$LIBS" ; then
12770 # a loop is needed to ensure we can add subdirs of existing dirs
12771 for cf_test_libdir in $LDFLAGS $LIBS ; do
12772 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
12773 cf_have_libdir=yes; break
12777 if test "$cf_have_libdir" = no ; then
12778 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
12780 echo "${as_me:-configure}:12780: testing adding $cf_add_libdir to library-path ..." 1>&5
12782 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
12790 if test -n "/lib" ; then
12791 for cf_add_libdir in /lib
12793 if test $cf_add_libdir = /usr/lib ; then
12795 elif test -d $cf_add_libdir
12798 if test -n "$LDFLAGS$LIBS" ; then
12799 # a loop is needed to ensure we can add subdirs of existing dirs
12800 for cf_test_libdir in $LDFLAGS $LIBS ; do
12801 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
12802 cf_have_libdir=yes; break
12806 if test "$cf_have_libdir" = no ; then
12807 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
12809 echo "${as_me:-configure}:12809: testing adding $cf_add_libdir to library-path ..." 1>&5
12811 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
12821 if test -n "/lib" ; then
12822 for cf_add_libdir in /lib
12824 if test $cf_add_libdir = /usr/lib ; then
12826 elif test -d $cf_add_libdir
12829 if test -n "$LDFLAGS$LIBS" ; then
12830 # a loop is needed to ensure we can add subdirs of existing dirs
12831 for cf_test_libdir in $LDFLAGS $LIBS ; do
12832 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
12833 cf_have_libdir=yes; break
12837 if test "$cf_have_libdir" = no ; then
12838 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
12840 echo "${as_me:-configure}:12840: testing adding $cf_add_libdir to library-path ..." 1>&5
12842 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
12852 if test "x$cf_cv_screen" = "xcurses_5lib"
12854 if test -d /usr/5lib ; then
12856 if test -n "/usr/5lib" ; then
12857 for cf_add_libdir in /usr/5lib
12859 if test $cf_add_libdir = /usr/lib ; then
12861 elif test -d $cf_add_libdir
12864 if test -n "$LDFLAGS$LIBS" ; then
12865 # a loop is needed to ensure we can add subdirs of existing dirs
12866 for cf_test_libdir in $LDFLAGS $LIBS ; do
12867 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
12868 cf_have_libdir=yes; break
12872 if test "$cf_have_libdir" = no ; then
12873 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
12875 echo "${as_me:-configure}:12875: testing adding $cf_add_libdir to library-path ..." 1>&5
12877 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
12883 cf_add_libs="-lcurses -ltermcap"
12884 # Filter out duplicates - this happens with badly-designed ".pc" files...
12885 for cf_add_1lib in $LIBS
12887 for cf_add_2lib in $cf_add_libs
12889 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12895 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12897 LIBS="$cf_add_libs"
12901 ac_cv_func_initscr=yes
12905 if test ".$ac_cv_func_initscr" != .yes ; then
12906 cf_save_LIBS="$LIBS"
12908 if test ".${cf_cv_ncurses_version:-no}" != .no
12910 cf_check_list="ncurses curses cursesX"
12912 cf_check_list="cursesX curses ncurses"
12915 # Check for library containing tgoto. Do this before curses library
12916 # because it may be needed to link the test-case for initscr.
12917 if test "x$cf_term_lib" = x
12919 echo "$as_me:12919: checking for tgoto" >&5
12920 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
12921 if test "${ac_cv_func_tgoto+set}" = set; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12924 cat >conftest.$ac_ext <<_ACEOF
12925 #line 12925 "configure"
12926 #include "confdefs.h"
12927 /* System header to define __stub macros and hopefully few prototypes,
12928 which can conflict with char tgoto (); below. */
12929 #include <assert.h>
12930 /* Override any gcc2 internal prototype to avoid an error. */
12934 /* We use char because int might match the return type of a gcc2
12935 builtin and then its argument prototype would still apply. */
12942 /* The GNU C library defines this for functions which it implements
12943 to always fail with ENOSYS. Some functions are actually named
12944 something starting with __ and the normal name is an alias. */
12945 #if defined (__stub_tgoto) || defined (__stub___tgoto)
12948 f = tgoto; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12955 rm -f conftest.$ac_objext conftest$ac_exeext
12956 if { (eval echo "$as_me:12956: \"$ac_link\"") >&5
12957 (eval $ac_link) 2>&5
12959 echo "$as_me:12959: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
12961 { ac_try='test -s conftest$ac_exeext'
12962 { (eval echo "$as_me:12962: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12965 echo "$as_me:12965: \$? = $ac_status" >&5
12966 (exit $ac_status); }; }; then
12967 ac_cv_func_tgoto=yes
12969 echo "$as_me: failed program was:" >&5
12970 cat conftest.$ac_ext >&5
12971 ac_cv_func_tgoto=no
12973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12975 echo "$as_me:12975: result: $ac_cv_func_tgoto" >&5
12976 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
12977 if test $ac_cv_func_tgoto = yes; then
12978 cf_term_lib=predefined
12981 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
12983 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
12984 echo "$as_me:12984: checking for tgoto in -l$cf_term_lib" >&5
12985 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
12986 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12989 ac_check_lib_save_LIBS=$LIBS
12990 LIBS="-l$cf_term_lib $LIBS"
12991 cat >conftest.$ac_ext <<_ACEOF
12992 #line 12992 "configure"
12993 #include "confdefs.h"
12995 /* Override any gcc2 internal prototype to avoid an error. */
12999 /* We use char because int might match the return type of a gcc2
13000 builtin and then its argument prototype would still apply. */
13010 rm -f conftest.$ac_objext conftest$ac_exeext
13011 if { (eval echo "$as_me:13011: \"$ac_link\"") >&5
13012 (eval $ac_link) 2>&5
13014 echo "$as_me:13014: \$? = $ac_status" >&5
13015 (exit $ac_status); } &&
13016 { ac_try='test -s conftest$ac_exeext'
13017 { (eval echo "$as_me:13017: \"$ac_try\"") >&5
13018 (eval $ac_try) 2>&5
13020 echo "$as_me:13020: \$? = $ac_status" >&5
13021 (exit $ac_status); }; }; then
13022 eval "$as_ac_Lib=yes"
13024 echo "$as_me: failed program was:" >&5
13025 cat conftest.$ac_ext >&5
13026 eval "$as_ac_Lib=no"
13028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13029 LIBS=$ac_check_lib_save_LIBS
13031 echo "$as_me:13031: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13032 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13033 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13035 : ${cf_nculib_root:=$cf_term_lib}
13046 # Check for library containing initscr
13047 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
13048 if test "x$cf_curs_lib" = x
13050 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
13052 LIBS="-l$cf_curs_lib $cf_save_LIBS"
13053 if test "$cf_term_lib" = unknown || test "$cf_term_lib" = "$cf_curs_lib" ; then
13054 echo "$as_me:13054: checking if we can link with $cf_curs_lib library" >&5
13055 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
13056 cat >conftest.$ac_ext <<_ACEOF
13057 #line 13057 "configure"
13058 #include "confdefs.h"
13059 #include <${cf_cv_ncurses_header:-curses.h}>
13068 rm -f conftest.$ac_objext conftest$ac_exeext
13069 if { (eval echo "$as_me:13069: \"$ac_link\"") >&5
13070 (eval $ac_link) 2>&5
13072 echo "$as_me:13072: \$? = $ac_status" >&5
13073 (exit $ac_status); } &&
13074 { ac_try='test -s conftest$ac_exeext'
13075 { (eval echo "$as_me:13075: \"$ac_try\"") >&5
13076 (eval $ac_try) 2>&5
13078 echo "$as_me:13078: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13082 echo "$as_me: failed program was:" >&5
13083 cat conftest.$ac_ext >&5
13086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13087 echo "$as_me:13087: result: $cf_result" >&5
13088 echo "${ECHO_T}$cf_result" >&6
13089 test $cf_result = yes && break
13090 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
13092 elif test "$cf_term_lib" != predefined ; then
13093 echo "$as_me:13093: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
13094 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
13095 cat >conftest.$ac_ext <<_ACEOF
13096 #line 13096 "configure"
13097 #include "confdefs.h"
13098 #include <${cf_cv_ncurses_header:-curses.h}>
13102 initscr(); tgoto((char *)0, 0, 0);
13107 rm -f conftest.$ac_objext conftest$ac_exeext
13108 if { (eval echo "$as_me:13108: \"$ac_link\"") >&5
13109 (eval $ac_link) 2>&5
13111 echo "$as_me:13111: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try='test -s conftest$ac_exeext'
13114 { (eval echo "$as_me:13114: \"$ac_try\"") >&5
13115 (eval $ac_try) 2>&5
13117 echo "$as_me:13117: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13121 echo "$as_me: failed program was:" >&5
13122 cat conftest.$ac_ext >&5
13124 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
13125 cat >conftest.$ac_ext <<_ACEOF
13126 #line 13126 "configure"
13127 #include "confdefs.h"
13128 #include <${cf_cv_ncurses_header:-curses.h}>
13137 rm -f conftest.$ac_objext conftest$ac_exeext
13138 if { (eval echo "$as_me:13138: \"$ac_link\"") >&5
13139 (eval $ac_link) 2>&5
13141 echo "$as_me:13141: \$? = $ac_status" >&5
13142 (exit $ac_status); } &&
13143 { ac_try='test -s conftest$ac_exeext'
13144 { (eval echo "$as_me:13144: \"$ac_try\"") >&5
13145 (eval $ac_try) 2>&5
13147 echo "$as_me:13147: \$? = $ac_status" >&5
13148 (exit $ac_status); }; }; then
13151 echo "$as_me: failed program was:" >&5
13152 cat conftest.$ac_ext >&5
13155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13159 echo "$as_me:13159: result: $cf_result" >&5
13160 echo "${ECHO_T}$cf_result" >&6
13161 test $cf_result != error && break
13165 test $cf_curs_lib = unknown && { { echo "$as_me:13165: error: no curses library found" >&5
13166 echo "$as_me: error: no curses library found" >&2;}
13167 { (exit 1); exit 1; }; }
13174 echo "$as_me:13174: checking for multibyte character support" >&5
13175 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
13176 if test "${cf_cv_utf8_lib+set}" = set; then
13177 echo $ECHO_N "(cached) $ECHO_C" >&6
13180 cf_save_LIBS="$LIBS"
13181 cat >conftest.$ac_ext <<_ACEOF
13182 #line 13182 "configure"
13183 #include "confdefs.h"
13185 #include <stdlib.h>
13194 rm -f conftest.$ac_objext conftest$ac_exeext
13195 if { (eval echo "$as_me:13195: \"$ac_link\"") >&5
13196 (eval $ac_link) 2>&5
13198 echo "$as_me:13198: \$? = $ac_status" >&5
13199 (exit $ac_status); } &&
13200 { ac_try='test -s conftest$ac_exeext'
13201 { (eval echo "$as_me:13201: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13204 echo "$as_me:13204: \$? = $ac_status" >&5
13205 (exit $ac_status); }; }; then
13208 echo "$as_me: failed program was:" >&5
13209 cat conftest.$ac_ext >&5
13211 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
13212 # will be set on completion of the AC_TRY_LINK below.
13213 cf_cv_header_path_utf8=
13214 cf_cv_library_path_utf8=
13216 echo "${as_me:-configure}:13216: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
13218 cf_save_LIBS="$LIBS"
13220 cat >conftest.$ac_ext <<_ACEOF
13221 #line 13221 "configure"
13222 #include "confdefs.h"
13224 #include <libutf8.h>
13233 rm -f conftest.$ac_objext conftest$ac_exeext
13234 if { (eval echo "$as_me:13234: \"$ac_link\"") >&5
13235 (eval $ac_link) 2>&5
13237 echo "$as_me:13237: \$? = $ac_status" >&5
13238 (exit $ac_status); } &&
13239 { ac_try='test -s conftest$ac_exeext'
13240 { (eval echo "$as_me:13240: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13243 echo "$as_me:13243: \$? = $ac_status" >&5
13244 (exit $ac_status); }; }; then
13246 cf_cv_find_linkage_utf8=yes
13247 cf_cv_header_path_utf8=/usr/include
13248 cf_cv_library_path_utf8=/usr/lib
13251 echo "$as_me: failed program was:" >&5
13252 cat conftest.$ac_ext >&5
13254 LIBS="-lutf8 $cf_save_LIBS"
13256 cat >conftest.$ac_ext <<_ACEOF
13257 #line 13257 "configure"
13258 #include "confdefs.h"
13260 #include <libutf8.h>
13269 rm -f conftest.$ac_objext conftest$ac_exeext
13270 if { (eval echo "$as_me:13270: \"$ac_link\"") >&5
13271 (eval $ac_link) 2>&5
13273 echo "$as_me:13273: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
13275 { ac_try='test -s conftest$ac_exeext'
13276 { (eval echo "$as_me:13276: \"$ac_try\"") >&5
13277 (eval $ac_try) 2>&5
13279 echo "$as_me:13279: \$? = $ac_status" >&5
13280 (exit $ac_status); }; }; then
13282 cf_cv_find_linkage_utf8=yes
13283 cf_cv_header_path_utf8=/usr/include
13284 cf_cv_library_path_utf8=/usr/lib
13285 cf_cv_library_file_utf8="-lutf8"
13288 echo "$as_me: failed program was:" >&5
13289 cat conftest.$ac_ext >&5
13291 cf_cv_find_linkage_utf8=no
13292 LIBS="$cf_save_LIBS"
13294 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
13296 echo "${as_me:-configure}:13296: testing find linkage for utf8 library ..." 1>&5
13298 echo "${as_me:-configure}:13298: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
13300 cf_save_CPPFLAGS="$CPPFLAGS"
13301 cf_test_CPPFLAGS="$CPPFLAGS"
13305 # collect the current set of include-directories from compiler flags
13306 cf_header_path_list=""
13307 if test -n "${CFLAGS}${CPPFLAGS}" ; then
13308 for cf_header_path in $CPPFLAGS $CFLAGS
13310 case $cf_header_path in
13312 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
13314 test "x$cf_header_path" != "xNONE" && \
13315 test -d "$cf_header_path" && \
13317 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
13318 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
13319 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
13320 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
13321 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
13322 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
13325 cf_header_path_list="$cf_header_path_list $cf_search"
13331 # add the variations for the package we are looking for
13335 test "x$prefix" != "xNONE" && \
13336 test -d "$prefix" && \
13338 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
13339 test -d $prefix/include && cf_search="$cf_search $prefix/include"
13340 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
13341 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
13342 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
13343 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
13346 for cf_subdir_prefix in \
13355 test "x$cf_subdir_prefix" != "x$prefix" && \
13356 test -d "$cf_subdir_prefix" && \
13357 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
13358 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
13359 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
13360 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
13361 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
13362 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
13363 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
13368 test "$includedir" != NONE && \
13369 test "$includedir" != "/usr/include" && \
13370 test -d "$includedir" && {
13371 test -d $includedir && cf_search="$cf_search $includedir"
13372 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
13375 test "$oldincludedir" != NONE && \
13376 test "$oldincludedir" != "/usr/include" && \
13377 test -d "$oldincludedir" && {
13378 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
13379 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
13382 cf_search="$cf_search $cf_header_path_list"
13384 for cf_cv_header_path_utf8 in $cf_search
13386 if test -d $cf_cv_header_path_utf8 ; then
13387 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
13389 echo "${as_me:-configure}:13389: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
13391 CPPFLAGS="$cf_save_CPPFLAGS"
13393 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13394 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
13396 cat >conftest.$ac_ext <<_ACEOF
13397 #line 13397 "configure"
13398 #include "confdefs.h"
13400 #include <libutf8.h>
13409 rm -f conftest.$ac_objext
13410 if { (eval echo "$as_me:13410: \"$ac_compile\"") >&5
13411 (eval $ac_compile) 2>&5
13413 echo "$as_me:13413: \$? = $ac_status" >&5
13414 (exit $ac_status); } &&
13415 { ac_try='test -s conftest.$ac_objext'
13416 { (eval echo "$as_me:13416: \"$ac_try\"") >&5
13417 (eval $ac_try) 2>&5
13419 echo "$as_me:13419: \$? = $ac_status" >&5
13420 (exit $ac_status); }; }; then
13422 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
13424 echo "${as_me:-configure}:13424: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
13426 cf_cv_find_linkage_utf8=maybe
13427 cf_test_CPPFLAGS="$CPPFLAGS"
13430 echo "$as_me: failed program was:" >&5
13431 cat conftest.$ac_ext >&5
13433 CPPFLAGS="$cf_save_CPPFLAGS"
13436 rm -f conftest.$ac_objext conftest.$ac_ext
13440 if test "$cf_cv_find_linkage_utf8" = maybe ; then
13442 echo "${as_me:-configure}:13442: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
13444 cf_save_LIBS="$LIBS"
13445 cf_save_LDFLAGS="$LDFLAGS"
13447 if test "$cf_cv_find_linkage_utf8" != yes ; then
13450 cf_library_path_list=""
13451 if test -n "${LDFLAGS}${LIBS}" ; then
13452 for cf_library_path in $LDFLAGS $LIBS
13454 case $cf_library_path in
13456 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
13458 test "x$cf_library_path" != "xNONE" && \
13459 test -d "$cf_library_path" && \
13461 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
13462 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
13463 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
13464 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
13465 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
13466 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
13469 cf_library_path_list="$cf_library_path_list $cf_search"
13477 test "x$prefix" != "xNONE" && \
13478 test -d "$prefix" && \
13480 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
13481 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
13482 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
13483 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
13484 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
13485 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
13488 for cf_subdir_prefix in \
13497 test "x$cf_subdir_prefix" != "x$prefix" && \
13498 test -d "$cf_subdir_prefix" && \
13499 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
13500 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
13501 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
13502 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
13503 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
13504 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
13505 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
13510 cf_search="$cf_library_path_list $cf_search"
13512 for cf_cv_library_path_utf8 in $cf_search
13514 if test -d $cf_cv_library_path_utf8 ; then
13515 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
13517 echo "${as_me:-configure}:13517: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
13519 CPPFLAGS="$cf_test_CPPFLAGS"
13520 LIBS="-lutf8 $cf_save_LIBS"
13521 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
13522 cat >conftest.$ac_ext <<_ACEOF
13523 #line 13523 "configure"
13524 #include "confdefs.h"
13526 #include <libutf8.h>
13535 rm -f conftest.$ac_objext conftest$ac_exeext
13536 if { (eval echo "$as_me:13536: \"$ac_link\"") >&5
13537 (eval $ac_link) 2>&5
13539 echo "$as_me:13539: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try='test -s conftest$ac_exeext'
13542 { (eval echo "$as_me:13542: \"$ac_try\"") >&5
13543 (eval $ac_try) 2>&5
13545 echo "$as_me:13545: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13548 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
13550 echo "${as_me:-configure}:13550: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
13552 cf_cv_find_linkage_utf8=yes
13553 cf_cv_library_file_utf8="-lutf8"
13556 echo "$as_me: failed program was:" >&5
13557 cat conftest.$ac_ext >&5
13559 CPPFLAGS="$cf_save_CPPFLAGS"
13560 LIBS="$cf_save_LIBS"
13561 LDFLAGS="$cf_save_LDFLAGS"
13564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13567 CPPFLAGS="$cf_save_CPPFLAGS"
13568 LDFLAGS="$cf_save_LDFLAGS"
13572 cf_cv_find_linkage_utf8=no
13576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13581 LIBS="$cf_save_LIBS"
13583 if test "$cf_cv_find_linkage_utf8" = yes ; then
13584 cf_cv_utf8_lib=add-on
13590 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13592 echo "$as_me:13592: result: $cf_cv_utf8_lib" >&5
13593 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
13595 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
13596 # ncurses/ncursesw:
13597 if test "$cf_cv_utf8_lib" = "add-on" ; then
13599 cat >>confdefs.h <<\EOF
13600 #define HAVE_LIBUTF8_H 1
13603 if test -n "$cf_cv_header_path_utf8" ; then
13604 for cf_add_incdir in $cf_cv_header_path_utf8
13606 while test $cf_add_incdir != /usr/include
13608 if test -d $cf_add_incdir
13611 if test -n "$CFLAGS$CPPFLAGS" ; then
13612 # a loop is needed to ensure we can add subdirs of existing dirs
13613 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
13614 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
13615 cf_have_incdir=yes; break
13620 if test "$cf_have_incdir" = no ; then
13621 if test "$cf_add_incdir" = /usr/local/include ; then
13622 if test "$GCC" = yes
13624 cf_save_CPPFLAGS=$CPPFLAGS
13626 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13627 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
13629 cat >conftest.$ac_ext <<_ACEOF
13630 #line 13630 "configure"
13631 #include "confdefs.h"
13641 rm -f conftest.$ac_objext
13642 if { (eval echo "$as_me:13642: \"$ac_compile\"") >&5
13643 (eval $ac_compile) 2>&5
13645 echo "$as_me:13645: \$? = $ac_status" >&5
13646 (exit $ac_status); } &&
13647 { ac_try='test -s conftest.$ac_objext'
13648 { (eval echo "$as_me:13648: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13651 echo "$as_me:13651: \$? = $ac_status" >&5
13652 (exit $ac_status); }; }; then
13655 echo "$as_me: failed program was:" >&5
13656 cat conftest.$ac_ext >&5
13659 rm -f conftest.$ac_objext conftest.$ac_ext
13660 CPPFLAGS=$cf_save_CPPFLAGS
13665 if test "$cf_have_incdir" = no ; then
13666 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
13668 echo "${as_me:-configure}:13668: testing adding $cf_add_incdir to include-path ..." 1>&5
13670 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
13672 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
13673 test "$cf_top_incdir" = "$cf_add_incdir" && break
13674 cf_add_incdir="$cf_top_incdir"
13685 if test -n "$cf_cv_library_path_utf8" ; then
13686 for cf_add_libdir in $cf_cv_library_path_utf8
13688 if test $cf_add_libdir = /usr/lib ; then
13690 elif test -d $cf_add_libdir
13693 if test -n "$LDFLAGS$LIBS" ; then
13694 # a loop is needed to ensure we can add subdirs of existing dirs
13695 for cf_test_libdir in $LDFLAGS $LIBS ; do
13696 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
13697 cf_have_libdir=yes; break
13701 if test "$cf_have_libdir" = no ; then
13702 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
13704 echo "${as_me:-configure}:13704: testing adding $cf_add_libdir to library-path ..." 1>&5
13706 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
13712 cf_add_libs="$cf_cv_library_file_utf8"
13713 # Filter out duplicates - this happens with badly-designed ".pc" files...
13714 for cf_add_1lib in $LIBS
13716 for cf_add_2lib in $cf_add_libs
13718 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13724 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13726 LIBS="$cf_add_libs"
13730 cf_ncuconfig_root=$cf_cv_screen
13731 cf_have_ncuconfig=no
13733 if test "x${PKG_CONFIG:=none}" != xnone; then
13734 echo "$as_me:13734: checking pkg-config for $cf_ncuconfig_root" >&5
13735 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
13736 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
13737 echo "$as_me:13737: result: yes" >&5
13738 echo "${ECHO_T}yes" >&6
13740 echo "$as_me:13740: checking if the $cf_ncuconfig_root package files work" >&5
13741 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
13742 cf_have_ncuconfig=unknown
13744 cf_save_CPPFLAGS="$CPPFLAGS"
13745 cf_save_LIBS="$LIBS"
13750 cf_new_extra_cppflags=
13752 for cf_add_cflags in `$PKG_CONFIG --cflags $cf_ncuconfig_root`
13754 case $cf_fix_cppflags in
13756 case $cf_add_cflags in
13757 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13758 case $cf_add_cflags in
13760 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13762 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13763 && test -z "${cf_tst_cflags}" \
13764 && cf_fix_cppflags=yes
13766 if test $cf_fix_cppflags = yes ; then
13768 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13769 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13772 elif test "${cf_tst_cflags}" = "\"'" ; then
13774 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13775 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13781 case "$CPPFLAGS" in
13785 case $cf_add_cflags in
13787 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13789 CPPFLAGS=`echo "$CPPFLAGS" | \
13790 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13791 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13796 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13797 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13804 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13805 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13812 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13813 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13815 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13817 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13818 && test -z "${cf_tst_cflags}" \
13819 && cf_fix_cppflags=no
13824 if test -n "$cf_new_cflags" ; then
13826 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13827 CFLAGS="${CFLAGS}$cf_new_cflags"
13831 if test -n "$cf_new_cppflags" ; then
13833 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13834 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13838 if test -n "$cf_new_extra_cppflags" ; then
13840 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13841 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13845 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
13846 # Filter out duplicates - this happens with badly-designed ".pc" files...
13847 for cf_add_1lib in $LIBS
13849 for cf_add_2lib in $cf_add_libs
13851 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13857 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13859 LIBS="$cf_add_libs"
13861 cat >conftest.$ac_ext <<_ACEOF
13862 #line 13862 "configure"
13863 #include "confdefs.h"
13864 #include <${cf_cv_ncurses_header:-curses.h}>
13868 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
13873 rm -f conftest.$ac_objext conftest$ac_exeext
13874 if { (eval echo "$as_me:13874: \"$ac_link\"") >&5
13875 (eval $ac_link) 2>&5
13877 echo "$as_me:13877: \$? = $ac_status" >&5
13878 (exit $ac_status); } &&
13879 { ac_try='test -s conftest$ac_exeext'
13880 { (eval echo "$as_me:13880: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13883 echo "$as_me:13883: \$? = $ac_status" >&5
13884 (exit $ac_status); }; }; then
13885 if test "$cross_compiling" = yes; then
13886 cf_have_ncuconfig=maybe
13888 cat >conftest.$ac_ext <<_ACEOF
13889 #line 13889 "configure"
13890 #include "confdefs.h"
13891 #include <${cf_cv_ncurses_header:-curses.h}>
13893 { char *xx = curses_version(); return (xx == 0); }
13895 rm -f conftest$ac_exeext
13896 if { (eval echo "$as_me:13896: \"$ac_link\"") >&5
13897 (eval $ac_link) 2>&5
13899 echo "$as_me:13899: \$? = $ac_status" >&5
13900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13901 { (eval echo "$as_me:13901: \"$ac_try\"") >&5
13902 (eval $ac_try) 2>&5
13904 echo "$as_me:13904: \$? = $ac_status" >&5
13905 (exit $ac_status); }; }; then
13906 cf_have_ncuconfig=yes
13908 echo "$as_me: program exited with status $ac_status" >&5
13909 echo "$as_me: failed program was:" >&5
13910 cat conftest.$ac_ext >&5
13911 cf_have_ncuconfig=no
13913 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13916 echo "$as_me: failed program was:" >&5
13917 cat conftest.$ac_ext >&5
13918 cf_have_ncuconfig=no
13920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13921 echo "$as_me:13921: result: $cf_have_ncuconfig" >&5
13922 echo "${ECHO_T}$cf_have_ncuconfig" >&6
13923 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
13924 if test "$cf_have_ncuconfig" != "yes"
13926 CPPFLAGS="$cf_save_CPPFLAGS"
13927 LIBS="$cf_save_LIBS"
13928 NCURSES_CONFIG_PKG=none
13931 cat >>confdefs.h <<\EOF
13935 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
13937 echo "$as_me:13937: checking for terminfo header" >&5
13938 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
13939 if test "${cf_cv_term_header+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 case ${cf_cv_ncurses_header} in
13944 (*/ncurses.h|*/ncursesw.h)
13945 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
13948 cf_term_header=term.h
13952 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
13954 cat >conftest.$ac_ext <<_ACEOF
13955 #line 13955 "configure"
13956 #include "confdefs.h"
13958 #include <${cf_cv_ncurses_header:-curses.h}>
13959 #include <$cf_test>
13964 int x = auto_left_margin
13969 rm -f conftest.$ac_objext
13970 if { (eval echo "$as_me:13970: \"$ac_compile\"") >&5
13971 (eval $ac_compile) 2>&5
13973 echo "$as_me:13973: \$? = $ac_status" >&5
13974 (exit $ac_status); } &&
13975 { ac_try='test -s conftest.$ac_objext'
13976 { (eval echo "$as_me:13976: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13979 echo "$as_me:13979: \$? = $ac_status" >&5
13980 (exit $ac_status); }; }; then
13982 cf_cv_term_header="$cf_test"
13984 echo "$as_me: failed program was:" >&5
13985 cat conftest.$ac_ext >&5
13987 cf_cv_term_header=unknown
13990 rm -f conftest.$ac_objext conftest.$ac_ext
13991 test "$cf_cv_term_header" != unknown && break
13995 echo "$as_me:13995: result: $cf_cv_term_header" >&5
13996 echo "${ECHO_T}$cf_cv_term_header" >&6
13998 # Set definitions to allow ifdef'ing to accommodate subdirectories
14000 case $cf_cv_term_header in
14003 cat >>confdefs.h <<\EOF
14004 #define HAVE_TERM_H 1
14010 case $cf_cv_term_header in
14013 cat >>confdefs.h <<\EOF
14014 #define HAVE_NCURSES_TERM_H 1
14020 cat >>confdefs.h <<\EOF
14021 #define HAVE_NCURSESW_TERM_H 1
14030 echo "$as_me:14030: result: no" >&5
14031 echo "${ECHO_T}no" >&6
14032 NCURSES_CONFIG_PKG=none
14035 NCURSES_CONFIG_PKG=none
14038 if test "x$cf_have_ncuconfig" = "xno"; then
14039 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_ncurses_config}"
14041 if test -n "$ac_tool_prefix"; then
14042 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
14044 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14045 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14046 echo "$as_me:14046: checking for $ac_word" >&5
14047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14048 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 if test -n "$NCURSES_CONFIG"; then
14052 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
14054 ac_save_IFS=$IFS; IFS=$ac_path_separator
14056 for ac_dir in $ac_dummy; do
14058 test -z "$ac_dir" && ac_dir=.
14059 $as_executable_p "$ac_dir/$ac_word" || continue
14060 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
14061 echo "$as_me:14061: found $ac_dir/$ac_word" >&5
14067 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
14068 if test -n "$NCURSES_CONFIG"; then
14069 echo "$as_me:14069: result: $NCURSES_CONFIG" >&5
14070 echo "${ECHO_T}$NCURSES_CONFIG" >&6
14072 echo "$as_me:14072: result: no" >&5
14073 echo "${ECHO_T}no" >&6
14076 test -n "$NCURSES_CONFIG" && break
14079 if test -z "$NCURSES_CONFIG"; then
14080 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
14081 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
14083 # Extract the first word of "$ac_prog", so it can be a program name with args.
14084 set dummy $ac_prog; ac_word=$2
14085 echo "$as_me:14085: checking for $ac_word" >&5
14086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14087 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 if test -n "$ac_ct_NCURSES_CONFIG"; then
14091 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
14093 ac_save_IFS=$IFS; IFS=$ac_path_separator
14095 for ac_dir in $ac_dummy; do
14097 test -z "$ac_dir" && ac_dir=.
14098 $as_executable_p "$ac_dir/$ac_word" || continue
14099 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
14100 echo "$as_me:14100: found $ac_dir/$ac_word" >&5
14106 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
14107 if test -n "$ac_ct_NCURSES_CONFIG"; then
14108 echo "$as_me:14108: result: $ac_ct_NCURSES_CONFIG" >&5
14109 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
14111 echo "$as_me:14111: result: no" >&5
14112 echo "${ECHO_T}no" >&6
14115 test -n "$ac_ct_NCURSES_CONFIG" && break
14117 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
14119 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
14122 if test "$NCURSES_CONFIG" != none ; then
14127 cf_new_extra_cppflags=
14129 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
14131 case $cf_fix_cppflags in
14133 case $cf_add_cflags in
14134 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14135 case $cf_add_cflags in
14137 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14139 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14140 && test -z "${cf_tst_cflags}" \
14141 && cf_fix_cppflags=yes
14143 if test $cf_fix_cppflags = yes ; then
14145 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14146 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14149 elif test "${cf_tst_cflags}" = "\"'" ; then
14151 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14152 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14158 case "$CPPFLAGS" in
14162 case $cf_add_cflags in
14164 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14166 CPPFLAGS=`echo "$CPPFLAGS" | \
14167 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14168 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14173 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14174 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14181 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14182 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14189 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14190 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14192 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14194 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14195 && test -z "${cf_tst_cflags}" \
14196 && cf_fix_cppflags=no
14201 if test -n "$cf_new_cflags" ; then
14203 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14204 CFLAGS="${CFLAGS}$cf_new_cflags"
14208 if test -n "$cf_new_cppflags" ; then
14210 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14211 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14215 if test -n "$cf_new_extra_cppflags" ; then
14217 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14218 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14222 cf_add_libs="`$NCURSES_CONFIG --libs`"
14223 # Filter out duplicates - this happens with badly-designed ".pc" files...
14224 for cf_add_1lib in $LIBS
14226 for cf_add_2lib in $cf_add_libs
14228 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14234 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14236 LIBS="$cf_add_libs"
14238 # even with config script, some packages use no-override for curses.h
14240 echo "$as_me:14240: checking if we have identified curses headers" >&5
14241 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
14242 if test "${cf_cv_ncurses_header+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14246 cf_cv_ncurses_header=none
14248 ncurses.h $cf_cv_screen/ncurses.h \
14249 curses.h $cf_cv_screen/curses.h
14251 cat >conftest.$ac_ext <<_ACEOF
14252 #line 14252 "configure"
14253 #include "confdefs.h"
14254 #include <${cf_header}>
14258 initscr(); tgoto("?", 0,0)
14263 rm -f conftest.$ac_objext
14264 if { (eval echo "$as_me:14264: \"$ac_compile\"") >&5
14265 (eval $ac_compile) 2>&5
14267 echo "$as_me:14267: \$? = $ac_status" >&5
14268 (exit $ac_status); } &&
14269 { ac_try='test -s conftest.$ac_objext'
14270 { (eval echo "$as_me:14270: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14273 echo "$as_me:14273: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 cf_cv_ncurses_header=$cf_header; break
14277 echo "$as_me: failed program was:" >&5
14278 cat conftest.$ac_ext >&5
14280 rm -f conftest.$ac_objext conftest.$ac_ext
14284 echo "$as_me:14284: result: $cf_cv_ncurses_header" >&5
14285 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
14287 if test "$cf_cv_ncurses_header" = none ; then
14288 { { echo "$as_me:14288: error: No curses header-files found" >&5
14289 echo "$as_me: error: No curses header-files found" >&2;}
14290 { (exit 1); exit 1; }; }
14293 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
14295 for ac_header in $cf_cv_ncurses_header
14297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14298 echo "$as_me:14298: checking for $ac_header" >&5
14299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 cat >conftest.$ac_ext <<_ACEOF
14304 #line 14304 "configure"
14305 #include "confdefs.h"
14306 #include <$ac_header>
14308 if { (eval echo "$as_me:14308: \"$ac_cpp conftest.$ac_ext\"") >&5
14309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14311 egrep -v '^ *\+' conftest.er1 >conftest.err
14313 cat conftest.err >&5
14314 echo "$as_me:14314: \$? = $ac_status" >&5
14315 (exit $ac_status); } >/dev/null; then
14316 if test -s conftest.err; then
14317 ac_cpp_err=$ac_c_preproc_warn_flag
14324 if test -z "$ac_cpp_err"; then
14325 eval "$as_ac_Header=yes"
14327 echo "$as_me: failed program was:" >&5
14328 cat conftest.$ac_ext >&5
14329 eval "$as_ac_Header=no"
14331 rm -f conftest.err conftest.$ac_ext
14333 echo "$as_me:14333: result: `eval echo '${'$as_ac_Header'}'`" >&5
14334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14336 cat >>confdefs.h <<EOF
14337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14343 cat >>confdefs.h <<\EOF
14347 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14349 cat >>confdefs.h <<EOF
14350 #define $cf_nculib_ROOT 1
14353 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
14357 cf_ncuhdr_root=$cf_cv_screen
14359 test -n "$cf_cv_curses_dir" && \
14360 test "$cf_cv_curses_dir" != "no" && { \
14362 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
14363 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
14365 while test $cf_add_incdir != /usr/include
14367 if test -d $cf_add_incdir
14370 if test -n "$CFLAGS$CPPFLAGS" ; then
14371 # a loop is needed to ensure we can add subdirs of existing dirs
14372 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
14373 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
14374 cf_have_incdir=yes; break
14379 if test "$cf_have_incdir" = no ; then
14380 if test "$cf_add_incdir" = /usr/local/include ; then
14381 if test "$GCC" = yes
14383 cf_save_CPPFLAGS=$CPPFLAGS
14385 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14386 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
14388 cat >conftest.$ac_ext <<_ACEOF
14389 #line 14389 "configure"
14390 #include "confdefs.h"
14400 rm -f conftest.$ac_objext
14401 if { (eval echo "$as_me:14401: \"$ac_compile\"") >&5
14402 (eval $ac_compile) 2>&5
14404 echo "$as_me:14404: \$? = $ac_status" >&5
14405 (exit $ac_status); } &&
14406 { ac_try='test -s conftest.$ac_objext'
14407 { (eval echo "$as_me:14407: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14410 echo "$as_me:14410: \$? = $ac_status" >&5
14411 (exit $ac_status); }; }; then
14414 echo "$as_me: failed program was:" >&5
14415 cat conftest.$ac_ext >&5
14418 rm -f conftest.$ac_objext conftest.$ac_ext
14419 CPPFLAGS=$cf_save_CPPFLAGS
14424 if test "$cf_have_incdir" = no ; then
14425 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
14427 echo "${as_me:-configure}:14427: testing adding $cf_add_incdir to include-path ..." 1>&5
14429 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
14431 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
14432 test "$cf_top_incdir" = "$cf_add_incdir" && break
14433 cf_add_incdir="$cf_top_incdir"
14446 echo "$as_me:14446: checking for $cf_ncuhdr_root header in include-path" >&5
14447 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
14448 if test "${cf_cv_ncurses_h+set}" = set; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
14453 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
14454 for cf_header in $cf_header_list
14457 cat >conftest.$ac_ext <<_ACEOF
14458 #line 14458 "configure"
14459 #include "confdefs.h"
14461 #include <$cf_header>
14466 #ifdef NCURSES_VERSION
14468 printf("%s\n", NCURSES_VERSION);
14481 rm -f conftest.$ac_objext
14482 if { (eval echo "$as_me:14482: \"$ac_compile\"") >&5
14483 (eval $ac_compile) 2>&5
14485 echo "$as_me:14485: \$? = $ac_status" >&5
14486 (exit $ac_status); } &&
14487 { ac_try='test -s conftest.$ac_objext'
14488 { (eval echo "$as_me:14488: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14491 echo "$as_me:14491: \$? = $ac_status" >&5
14492 (exit $ac_status); }; }; then
14493 cf_cv_ncurses_h=$cf_header
14496 echo "$as_me: failed program was:" >&5
14497 cat conftest.$ac_ext >&5
14500 rm -f conftest.$ac_objext conftest.$ac_ext
14502 test "$cf_cv_ncurses_h" != no && break
14506 echo "$as_me:14506: result: $cf_cv_ncurses_h" >&5
14507 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
14509 if test "$cf_cv_ncurses_h" != no ; then
14510 cf_cv_ncurses_header=$cf_cv_ncurses_h
14513 echo "$as_me:14513: checking for $cf_ncuhdr_root include-path" >&5
14514 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
14515 if test "${cf_cv_ncurses_h2+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14519 test -n "$verbose" && echo
14523 # collect the current set of include-directories from compiler flags
14524 cf_header_path_list=""
14525 if test -n "${CFLAGS}${CPPFLAGS}" ; then
14526 for cf_header_path in $CPPFLAGS $CFLAGS
14528 case $cf_header_path in
14530 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
14532 test "x$cf_header_path" != "xNONE" && \
14533 test -d "$cf_header_path" && \
14535 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
14536 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
14537 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
14538 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
14539 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
14540 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"
14543 cf_header_path_list="$cf_header_path_list $cf_search"
14549 # add the variations for the package we are looking for
14553 test "x$prefix" != "xNONE" && \
14554 test -d "$prefix" && \
14556 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
14557 test -d $prefix/include && cf_search="$cf_search $prefix/include"
14558 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
14559 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
14560 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
14561 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
14564 for cf_subdir_prefix in \
14573 test "x$cf_subdir_prefix" != "x$prefix" && \
14574 test -d "$cf_subdir_prefix" && \
14575 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
14576 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
14577 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
14578 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
14579 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
14580 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
14581 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"
14586 test "$includedir" != NONE && \
14587 test "$includedir" != "/usr/include" && \
14588 test -d "$includedir" && {
14589 test -d $includedir && cf_search="$cf_search $includedir"
14590 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
14593 test "$oldincludedir" != NONE && \
14594 test "$oldincludedir" != "/usr/include" && \
14595 test -d "$oldincludedir" && {
14596 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
14597 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
14600 cf_search="$cf_search $cf_header_path_list"
14602 test -n "$verbose" && echo search path $cf_search
14603 cf_save2_CPPFLAGS="$CPPFLAGS"
14604 for cf_incdir in $cf_search
14607 if test -n "$cf_incdir" ; then
14608 for cf_add_incdir in $cf_incdir
14610 while test $cf_add_incdir != /usr/include
14612 if test -d $cf_add_incdir
14615 if test -n "$CFLAGS$CPPFLAGS" ; then
14616 # a loop is needed to ensure we can add subdirs of existing dirs
14617 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
14618 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
14619 cf_have_incdir=yes; break
14624 if test "$cf_have_incdir" = no ; then
14625 if test "$cf_add_incdir" = /usr/local/include ; then
14626 if test "$GCC" = yes
14628 cf_save_CPPFLAGS=$CPPFLAGS
14630 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14631 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
14633 cat >conftest.$ac_ext <<_ACEOF
14634 #line 14634 "configure"
14635 #include "confdefs.h"
14645 rm -f conftest.$ac_objext
14646 if { (eval echo "$as_me:14646: \"$ac_compile\"") >&5
14647 (eval $ac_compile) 2>&5
14649 echo "$as_me:14649: \$? = $ac_status" >&5
14650 (exit $ac_status); } &&
14651 { ac_try='test -s conftest.$ac_objext'
14652 { (eval echo "$as_me:14652: \"$ac_try\"") >&5
14653 (eval $ac_try) 2>&5
14655 echo "$as_me:14655: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14659 echo "$as_me: failed program was:" >&5
14660 cat conftest.$ac_ext >&5
14663 rm -f conftest.$ac_objext conftest.$ac_ext
14664 CPPFLAGS=$cf_save_CPPFLAGS
14669 if test "$cf_have_incdir" = no ; then
14670 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
14672 echo "${as_me:-configure}:14672: testing adding $cf_add_incdir to include-path ..." 1>&5
14674 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
14676 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
14677 test "$cf_top_incdir" = "$cf_add_incdir" && break
14678 cf_add_incdir="$cf_top_incdir"
14694 cat >conftest.$ac_ext <<_ACEOF
14695 #line 14695 "configure"
14696 #include "confdefs.h"
14698 #include <$cf_header>
14703 #ifdef NCURSES_VERSION
14705 printf("%s\n", NCURSES_VERSION);
14718 rm -f conftest.$ac_objext
14719 if { (eval echo "$as_me:14719: \"$ac_compile\"") >&5
14720 (eval $ac_compile) 2>&5
14722 echo "$as_me:14722: \$? = $ac_status" >&5
14723 (exit $ac_status); } &&
14724 { ac_try='test -s conftest.$ac_objext'
14725 { (eval echo "$as_me:14725: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14728 echo "$as_me:14728: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
14730 cf_cv_ncurses_h2=$cf_header
14733 echo "$as_me: failed program was:" >&5
14734 cat conftest.$ac_ext >&5
14735 cf_cv_ncurses_h2=no
14737 rm -f conftest.$ac_objext conftest.$ac_ext
14739 if test "$cf_cv_ncurses_h2" != no ; then
14740 cf_cv_ncurses_h2=$cf_incdir/$cf_header
14741 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
14744 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
14746 CPPFLAGS="$cf_save2_CPPFLAGS"
14747 test "$cf_cv_ncurses_h2" != no && break
14749 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:14749: error: not found" >&5
14750 echo "$as_me: error: not found" >&2;}
14751 { (exit 1); exit 1; }; }
14754 echo "$as_me:14754: result: $cf_cv_ncurses_h2" >&5
14755 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
14757 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
14758 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
14759 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
14760 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
14763 if test -n "$cf_1st_incdir" ; then
14764 for cf_add_incdir in $cf_1st_incdir
14766 while test $cf_add_incdir != /usr/include
14768 if test -d $cf_add_incdir
14771 if test -n "$CFLAGS$CPPFLAGS" ; then
14772 # a loop is needed to ensure we can add subdirs of existing dirs
14773 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
14774 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
14775 cf_have_incdir=yes; break
14780 if test "$cf_have_incdir" = no ; then
14781 if test "$cf_add_incdir" = /usr/local/include ; then
14782 if test "$GCC" = yes
14784 cf_save_CPPFLAGS=$CPPFLAGS
14786 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14787 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
14789 cat >conftest.$ac_ext <<_ACEOF
14790 #line 14790 "configure"
14791 #include "confdefs.h"
14801 rm -f conftest.$ac_objext
14802 if { (eval echo "$as_me:14802: \"$ac_compile\"") >&5
14803 (eval $ac_compile) 2>&5
14805 echo "$as_me:14805: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try='test -s conftest.$ac_objext'
14808 { (eval echo "$as_me:14808: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14811 echo "$as_me:14811: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
14815 echo "$as_me: failed program was:" >&5
14816 cat conftest.$ac_ext >&5
14819 rm -f conftest.$ac_objext conftest.$ac_ext
14820 CPPFLAGS=$cf_save_CPPFLAGS
14825 if test "$cf_have_incdir" = no ; then
14826 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
14828 echo "${as_me:-configure}:14828: testing adding $cf_add_incdir to include-path ..." 1>&5
14830 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
14832 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
14833 test "$cf_top_incdir" = "$cf_add_incdir" && break
14834 cf_add_incdir="$cf_top_incdir"
14847 # Set definitions to allow ifdef'ing for ncurses.h
14849 case $cf_cv_ncurses_header in
14852 cat >>confdefs.h <<\EOF
14853 #define HAVE_NCURSES_H 1
14859 case $cf_cv_ncurses_header in
14860 (ncurses/curses.h|ncurses/ncurses.h)
14862 cat >>confdefs.h <<\EOF
14863 #define HAVE_NCURSES_NCURSES_H 1
14867 (ncursesw/curses.h|ncursesw/ncurses.h)
14869 cat >>confdefs.h <<\EOF
14870 #define HAVE_NCURSESW_NCURSES_H 1
14876 echo "$as_me:14876: checking for terminfo header" >&5
14877 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
14878 if test "${cf_cv_term_header+set}" = set; then
14879 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 case ${cf_cv_ncurses_header} in
14883 (*/ncurses.h|*/ncursesw.h)
14884 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
14887 cf_term_header=term.h
14891 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
14893 cat >conftest.$ac_ext <<_ACEOF
14894 #line 14894 "configure"
14895 #include "confdefs.h"
14897 #include <${cf_cv_ncurses_header:-curses.h}>
14898 #include <$cf_test>
14903 int x = auto_left_margin
14908 rm -f conftest.$ac_objext
14909 if { (eval echo "$as_me:14909: \"$ac_compile\"") >&5
14910 (eval $ac_compile) 2>&5
14912 echo "$as_me:14912: \$? = $ac_status" >&5
14913 (exit $ac_status); } &&
14914 { ac_try='test -s conftest.$ac_objext'
14915 { (eval echo "$as_me:14915: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14918 echo "$as_me:14918: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14921 cf_cv_term_header="$cf_test"
14923 echo "$as_me: failed program was:" >&5
14924 cat conftest.$ac_ext >&5
14926 cf_cv_term_header=unknown
14929 rm -f conftest.$ac_objext conftest.$ac_ext
14930 test "$cf_cv_term_header" != unknown && break
14934 echo "$as_me:14934: result: $cf_cv_term_header" >&5
14935 echo "${ECHO_T}$cf_cv_term_header" >&6
14937 # Set definitions to allow ifdef'ing to accommodate subdirectories
14939 case $cf_cv_term_header in
14942 cat >>confdefs.h <<\EOF
14943 #define HAVE_TERM_H 1
14949 case $cf_cv_term_header in
14952 cat >>confdefs.h <<\EOF
14953 #define HAVE_NCURSES_TERM_H 1
14959 cat >>confdefs.h <<\EOF
14960 #define HAVE_NCURSESW_TERM_H 1
14966 # some applications need this, but should check for NCURSES_VERSION
14968 cat >>confdefs.h <<\EOF
14972 echo "$as_me:14972: checking for ncurses version" >&5
14973 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
14974 if test "${cf_cv_ncurses_version+set}" = set; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14978 cf_cv_ncurses_version=no
14981 if test "$cross_compiling" = yes; then
14983 # This will not work if the preprocessor splits the line after the
14984 # Autoconf token. The 'unproto' program does that.
14985 cat > conftest.$ac_ext <<EOF
14986 #include <${cf_cv_ncurses_header:-curses.h}>
14988 #ifdef NCURSES_VERSION
14989 Autoconf NCURSES_VERSION
14997 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
14998 { (eval echo "$as_me:14998: \"$cf_try\"") >&5
14999 (eval $cf_try) 2>&5
15001 echo "$as_me:15001: \$? = $ac_status" >&5
15002 (exit $ac_status); }
15003 if test -f conftest.out ; then
15004 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
15005 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
15010 cat >conftest.$ac_ext <<_ACEOF
15011 #line 15011 "configure"
15012 #include "confdefs.h"
15014 #include <${cf_cv_ncurses_header:-curses.h}>
15018 FILE *fp = fopen("$cf_tempfile", "w");
15019 #ifdef NCURSES_VERSION
15020 # ifdef NCURSES_VERSION_PATCH
15021 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
15023 fprintf(fp, "%s\n", NCURSES_VERSION);
15026 # ifdef __NCURSES_H
15027 fprintf(fp, "old\n");
15032 ${cf_cv_main_return:-return}(0);
15035 rm -f conftest$ac_exeext
15036 if { (eval echo "$as_me:15036: \"$ac_link\"") >&5
15037 (eval $ac_link) 2>&5
15039 echo "$as_me:15039: \$? = $ac_status" >&5
15040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15041 { (eval echo "$as_me:15041: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15044 echo "$as_me:15044: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15047 cf_cv_ncurses_version=`cat $cf_tempfile`
15049 echo "$as_me: program exited with status $ac_status" >&5
15050 echo "$as_me: failed program was:" >&5
15051 cat conftest.$ac_ext >&5
15053 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15058 echo "$as_me:15058: result: $cf_cv_ncurses_version" >&5
15059 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
15060 test "$cf_cv_ncurses_version" = no ||
15061 cat >>confdefs.h <<\EOF
15065 cf_nculib_root=$cf_cv_screen
15066 # This works, except for the special case where we find gpm, but
15067 # ncurses is in a nonstandard location via $LIBS, and we really want
15070 cf_ncurses_SAVE="$LIBS"
15071 echo "$as_me:15071: checking for Gpm_Open in -lgpm" >&5
15072 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
15073 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15076 ac_check_lib_save_LIBS=$LIBS
15078 cat >conftest.$ac_ext <<_ACEOF
15079 #line 15079 "configure"
15080 #include "confdefs.h"
15082 /* Override any gcc2 internal prototype to avoid an error. */
15086 /* We use char because int might match the return type of a gcc2
15087 builtin and then its argument prototype would still apply. */
15097 rm -f conftest.$ac_objext conftest$ac_exeext
15098 if { (eval echo "$as_me:15098: \"$ac_link\"") >&5
15099 (eval $ac_link) 2>&5
15101 echo "$as_me:15101: \$? = $ac_status" >&5
15102 (exit $ac_status); } &&
15103 { ac_try='test -s conftest$ac_exeext'
15104 { (eval echo "$as_me:15104: \"$ac_try\"") >&5
15105 (eval $ac_try) 2>&5
15107 echo "$as_me:15107: \$? = $ac_status" >&5
15108 (exit $ac_status); }; }; then
15109 ac_cv_lib_gpm_Gpm_Open=yes
15111 echo "$as_me: failed program was:" >&5
15112 cat conftest.$ac_ext >&5
15113 ac_cv_lib_gpm_Gpm_Open=no
15115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15116 LIBS=$ac_check_lib_save_LIBS
15118 echo "$as_me:15118: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15119 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
15120 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15121 echo "$as_me:15121: checking for initscr in -lgpm" >&5
15122 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
15123 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15126 ac_check_lib_save_LIBS=$LIBS
15128 cat >conftest.$ac_ext <<_ACEOF
15129 #line 15129 "configure"
15130 #include "confdefs.h"
15132 /* Override any gcc2 internal prototype to avoid an error. */
15136 /* We use char because int might match the return type of a gcc2
15137 builtin and then its argument prototype would still apply. */
15147 rm -f conftest.$ac_objext conftest$ac_exeext
15148 if { (eval echo "$as_me:15148: \"$ac_link\"") >&5
15149 (eval $ac_link) 2>&5
15151 echo "$as_me:15151: \$? = $ac_status" >&5
15152 (exit $ac_status); } &&
15153 { ac_try='test -s conftest$ac_exeext'
15154 { (eval echo "$as_me:15154: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15157 echo "$as_me:15157: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15159 ac_cv_lib_gpm_initscr=yes
15161 echo "$as_me: failed program was:" >&5
15162 cat conftest.$ac_ext >&5
15163 ac_cv_lib_gpm_initscr=no
15165 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15166 LIBS=$ac_check_lib_save_LIBS
15168 echo "$as_me:15168: result: $ac_cv_lib_gpm_initscr" >&5
15169 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
15170 if test $ac_cv_lib_gpm_initscr = yes; then
15171 LIBS="$cf_ncurses_SAVE"
15173 cf_ncurses_LIBS="-lgpm"
15180 # This is only necessary if you are linking against an obsolete
15181 # version of ncurses (but it should do no harm, since it's static).
15182 if test "$cf_nculib_root" = ncurses ; then
15183 echo "$as_me:15183: checking for tgoto in -lmytinfo" >&5
15184 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
15185 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 ac_check_lib_save_LIBS=$LIBS
15189 LIBS="-lmytinfo $LIBS"
15190 cat >conftest.$ac_ext <<_ACEOF
15191 #line 15191 "configure"
15192 #include "confdefs.h"
15194 /* Override any gcc2 internal prototype to avoid an error. */
15198 /* We use char because int might match the return type of a gcc2
15199 builtin and then its argument prototype would still apply. */
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (eval echo "$as_me:15210: \"$ac_link\"") >&5
15211 (eval $ac_link) 2>&5
15213 echo "$as_me:15213: \$? = $ac_status" >&5
15214 (exit $ac_status); } &&
15215 { ac_try='test -s conftest$ac_exeext'
15216 { (eval echo "$as_me:15216: \"$ac_try\"") >&5
15217 (eval $ac_try) 2>&5
15219 echo "$as_me:15219: \$? = $ac_status" >&5
15220 (exit $ac_status); }; }; then
15221 ac_cv_lib_mytinfo_tgoto=yes
15223 echo "$as_me: failed program was:" >&5
15224 cat conftest.$ac_ext >&5
15225 ac_cv_lib_mytinfo_tgoto=no
15227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15228 LIBS=$ac_check_lib_save_LIBS
15230 echo "$as_me:15230: result: $ac_cv_lib_mytinfo_tgoto" >&5
15231 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
15232 if test $ac_cv_lib_mytinfo_tgoto = yes; then
15233 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
15240 cf_add_libs="$cf_ncurses_LIBS"
15241 # Filter out duplicates - this happens with badly-designed ".pc" files...
15242 for cf_add_1lib in $LIBS
15244 for cf_add_2lib in $cf_add_libs
15246 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15252 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15254 LIBS="$cf_add_libs"
15256 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
15259 cf_add_libs="-l$cf_nculib_root"
15260 # Filter out duplicates - this happens with badly-designed ".pc" files...
15261 for cf_add_1lib in $LIBS
15263 for cf_add_2lib in $cf_add_libs
15265 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15271 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15273 LIBS="$cf_add_libs"
15277 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
15279 echo "$as_me:15279: checking for initscr" >&5
15280 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
15281 if test "${ac_cv_func_initscr+set}" = set; then
15282 echo $ECHO_N "(cached) $ECHO_C" >&6
15284 cat >conftest.$ac_ext <<_ACEOF
15285 #line 15285 "configure"
15286 #include "confdefs.h"
15287 /* System header to define __stub macros and hopefully few prototypes,
15288 which can conflict with char initscr (); below. */
15289 #include <assert.h>
15290 /* Override any gcc2 internal prototype to avoid an error. */
15294 /* We use char because int might match the return type of a gcc2
15295 builtin and then its argument prototype would still apply. */
15302 /* The GNU C library defines this for functions which it implements
15303 to always fail with ENOSYS. Some functions are actually named
15304 something starting with __ and the normal name is an alias. */
15305 #if defined (__stub_initscr) || defined (__stub___initscr)
15308 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15315 rm -f conftest.$ac_objext conftest$ac_exeext
15316 if { (eval echo "$as_me:15316: \"$ac_link\"") >&5
15317 (eval $ac_link) 2>&5
15319 echo "$as_me:15319: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -s conftest$ac_exeext'
15322 { (eval echo "$as_me:15322: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15325 echo "$as_me:15325: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 ac_cv_func_initscr=yes
15329 echo "$as_me: failed program was:" >&5
15330 cat conftest.$ac_ext >&5
15331 ac_cv_func_initscr=no
15333 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15335 echo "$as_me:15335: result: $ac_cv_func_initscr" >&5
15336 echo "${ECHO_T}$ac_cv_func_initscr" >&6
15337 if test $ac_cv_func_initscr = yes; then
15338 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
15341 cf_save_LIBS="$LIBS"
15342 echo "$as_me:15342: checking for initscr in -l$cf_nculib_root" >&5
15343 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
15344 LIBS="-l$cf_nculib_root $LIBS"
15345 cat >conftest.$ac_ext <<_ACEOF
15346 #line 15346 "configure"
15347 #include "confdefs.h"
15348 #include <${cf_cv_ncurses_header:-curses.h}>
15357 rm -f conftest.$ac_objext conftest$ac_exeext
15358 if { (eval echo "$as_me:15358: \"$ac_link\"") >&5
15359 (eval $ac_link) 2>&5
15361 echo "$as_me:15361: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
15363 { ac_try='test -s conftest$ac_exeext'
15364 { (eval echo "$as_me:15364: \"$ac_try\"") >&5
15365 (eval $ac_try) 2>&5
15367 echo "$as_me:15367: \$? = $ac_status" >&5
15368 (exit $ac_status); }; }; then
15369 echo "$as_me:15369: result: yes" >&5
15370 echo "${ECHO_T}yes" >&6
15371 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
15374 echo "$as_me: failed program was:" >&5
15375 cat conftest.$ac_ext >&5
15376 echo "$as_me:15376: result: no" >&5
15377 echo "${ECHO_T}no" >&6
15380 cf_library_path_list=""
15381 if test -n "${LDFLAGS}${LIBS}" ; then
15382 for cf_library_path in $LDFLAGS $LIBS
15384 case $cf_library_path in
15386 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
15388 test "x$cf_library_path" != "xNONE" && \
15389 test -d "$cf_library_path" && \
15391 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
15392 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
15393 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
15394 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
15395 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
15396 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"
15399 cf_library_path_list="$cf_library_path_list $cf_search"
15407 test "x$prefix" != "xNONE" && \
15408 test -d "$prefix" && \
15410 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
15411 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
15412 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
15413 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
15414 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
15415 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
15418 for cf_subdir_prefix in \
15427 test "x$cf_subdir_prefix" != "x$prefix" && \
15428 test -d "$cf_subdir_prefix" && \
15429 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
15430 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
15431 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
15432 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
15433 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
15434 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
15435 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"
15440 cf_search="$cf_library_path_list $cf_search"
15442 for cf_libdir in $cf_search
15444 echo "$as_me:15444: checking for -l$cf_nculib_root in $cf_libdir" >&5
15445 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
15446 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
15447 cat >conftest.$ac_ext <<_ACEOF
15448 #line 15448 "configure"
15449 #include "confdefs.h"
15450 #include <${cf_cv_ncurses_header:-curses.h}>
15459 rm -f conftest.$ac_objext conftest$ac_exeext
15460 if { (eval echo "$as_me:15460: \"$ac_link\"") >&5
15461 (eval $ac_link) 2>&5
15463 echo "$as_me:15463: \$? = $ac_status" >&5
15464 (exit $ac_status); } &&
15465 { ac_try='test -s conftest$ac_exeext'
15466 { (eval echo "$as_me:15466: \"$ac_try\"") >&5
15467 (eval $ac_try) 2>&5
15469 echo "$as_me:15469: \$? = $ac_status" >&5
15470 (exit $ac_status); }; }; then
15471 echo "$as_me:15471: result: yes" >&5
15472 echo "${ECHO_T}yes" >&6
15473 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
15476 echo "$as_me: failed program was:" >&5
15477 cat conftest.$ac_ext >&5
15478 echo "$as_me:15478: result: no" >&5
15479 echo "${ECHO_T}no" >&6
15480 LIBS="$cf_save_LIBS"
15482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15490 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
15492 if test $cf_found_library = no ; then
15493 { { echo "$as_me:15493: error: Cannot link $cf_nculib_root library" >&5
15494 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
15495 { (exit 1); exit 1; }; }
15500 if test -n "$cf_ncurses_LIBS" ; then
15501 echo "$as_me:15501: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
15502 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
15503 cf_ncurses_SAVE="$LIBS"
15504 for p in $cf_ncurses_LIBS ; do
15505 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
15506 if test "$q" != "$LIBS" ; then
15510 cat >conftest.$ac_ext <<_ACEOF
15511 #line 15511 "configure"
15512 #include "confdefs.h"
15513 #include <${cf_cv_ncurses_header:-curses.h}>
15517 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
15522 rm -f conftest.$ac_objext conftest$ac_exeext
15523 if { (eval echo "$as_me:15523: \"$ac_link\"") >&5
15524 (eval $ac_link) 2>&5
15526 echo "$as_me:15526: \$? = $ac_status" >&5
15527 (exit $ac_status); } &&
15528 { ac_try='test -s conftest$ac_exeext'
15529 { (eval echo "$as_me:15529: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15532 echo "$as_me:15532: \$? = $ac_status" >&5
15533 (exit $ac_status); }; }; then
15534 echo "$as_me:15534: result: yes" >&5
15535 echo "${ECHO_T}yes" >&6
15537 echo "$as_me: failed program was:" >&5
15538 cat conftest.$ac_ext >&5
15539 echo "$as_me:15539: result: no" >&5
15540 echo "${ECHO_T}no" >&6
15541 LIBS="$cf_ncurses_SAVE"
15543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15546 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15548 cat >>confdefs.h <<EOF
15549 #define $cf_nculib_ROOT 1
15554 NCURSES_CONFIG=none
15560 cf_ncuconfig_root=$cf_cv_screen
15561 cf_have_ncuconfig=no
15563 if test "x${PKG_CONFIG:=none}" != xnone; then
15564 echo "$as_me:15564: checking pkg-config for $cf_ncuconfig_root" >&5
15565 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
15566 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
15567 echo "$as_me:15567: result: yes" >&5
15568 echo "${ECHO_T}yes" >&6
15570 echo "$as_me:15570: checking if the $cf_ncuconfig_root package files work" >&5
15571 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
15572 cf_have_ncuconfig=unknown
15574 cf_save_CPPFLAGS="$CPPFLAGS"
15575 cf_save_LIBS="$LIBS"
15580 cf_new_extra_cppflags=
15582 for cf_add_cflags in `$PKG_CONFIG --cflags $cf_ncuconfig_root`
15584 case $cf_fix_cppflags in
15586 case $cf_add_cflags in
15587 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15588 case $cf_add_cflags in
15590 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15592 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15593 && test -z "${cf_tst_cflags}" \
15594 && cf_fix_cppflags=yes
15596 if test $cf_fix_cppflags = yes ; then
15598 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15599 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15602 elif test "${cf_tst_cflags}" = "\"'" ; then
15604 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15605 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15611 case "$CPPFLAGS" in
15615 case $cf_add_cflags in
15617 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15619 CPPFLAGS=`echo "$CPPFLAGS" | \
15620 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15621 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15626 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15627 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15634 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15635 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15642 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15643 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15645 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15647 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15648 && test -z "${cf_tst_cflags}" \
15649 && cf_fix_cppflags=no
15654 if test -n "$cf_new_cflags" ; then
15656 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15657 CFLAGS="${CFLAGS}$cf_new_cflags"
15661 if test -n "$cf_new_cppflags" ; then
15663 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15664 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15668 if test -n "$cf_new_extra_cppflags" ; then
15670 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15671 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15675 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
15676 # Filter out duplicates - this happens with badly-designed ".pc" files...
15677 for cf_add_1lib in $LIBS
15679 for cf_add_2lib in $cf_add_libs
15681 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15687 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15689 LIBS="$cf_add_libs"
15691 cat >conftest.$ac_ext <<_ACEOF
15692 #line 15692 "configure"
15693 #include "confdefs.h"
15694 #include <${cf_cv_ncurses_header:-curses.h}>
15698 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
15703 rm -f conftest.$ac_objext conftest$ac_exeext
15704 if { (eval echo "$as_me:15704: \"$ac_link\"") >&5
15705 (eval $ac_link) 2>&5
15707 echo "$as_me:15707: \$? = $ac_status" >&5
15708 (exit $ac_status); } &&
15709 { ac_try='test -s conftest$ac_exeext'
15710 { (eval echo "$as_me:15710: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15713 echo "$as_me:15713: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
15715 if test "$cross_compiling" = yes; then
15716 cf_have_ncuconfig=maybe
15718 cat >conftest.$ac_ext <<_ACEOF
15719 #line 15719 "configure"
15720 #include "confdefs.h"
15721 #include <${cf_cv_ncurses_header:-curses.h}>
15723 { char *xx = curses_version(); return (xx == 0); }
15725 rm -f conftest$ac_exeext
15726 if { (eval echo "$as_me:15726: \"$ac_link\"") >&5
15727 (eval $ac_link) 2>&5
15729 echo "$as_me:15729: \$? = $ac_status" >&5
15730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15731 { (eval echo "$as_me:15731: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15734 echo "$as_me:15734: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 cf_have_ncuconfig=yes
15738 echo "$as_me: program exited with status $ac_status" >&5
15739 echo "$as_me: failed program was:" >&5
15740 cat conftest.$ac_ext >&5
15741 cf_have_ncuconfig=no
15743 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15746 echo "$as_me: failed program was:" >&5
15747 cat conftest.$ac_ext >&5
15748 cf_have_ncuconfig=no
15750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15751 echo "$as_me:15751: result: $cf_have_ncuconfig" >&5
15752 echo "${ECHO_T}$cf_have_ncuconfig" >&6
15753 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
15754 if test "$cf_have_ncuconfig" != "yes"
15756 CPPFLAGS="$cf_save_CPPFLAGS"
15757 LIBS="$cf_save_LIBS"
15758 NCURSES_CONFIG_PKG=none
15761 cat >>confdefs.h <<\EOF
15765 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
15767 echo "$as_me:15767: checking for terminfo header" >&5
15768 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
15769 if test "${cf_cv_term_header+set}" = set; then
15770 echo $ECHO_N "(cached) $ECHO_C" >&6
15773 case ${cf_cv_ncurses_header} in
15774 (*/ncurses.h|*/ncursesw.h)
15775 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
15778 cf_term_header=term.h
15782 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
15784 cat >conftest.$ac_ext <<_ACEOF
15785 #line 15785 "configure"
15786 #include "confdefs.h"
15788 #include <${cf_cv_ncurses_header:-curses.h}>
15789 #include <$cf_test>
15794 int x = auto_left_margin
15799 rm -f conftest.$ac_objext
15800 if { (eval echo "$as_me:15800: \"$ac_compile\"") >&5
15801 (eval $ac_compile) 2>&5
15803 echo "$as_me:15803: \$? = $ac_status" >&5
15804 (exit $ac_status); } &&
15805 { ac_try='test -s conftest.$ac_objext'
15806 { (eval echo "$as_me:15806: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15809 echo "$as_me:15809: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15812 cf_cv_term_header="$cf_test"
15814 echo "$as_me: failed program was:" >&5
15815 cat conftest.$ac_ext >&5
15817 cf_cv_term_header=unknown
15820 rm -f conftest.$ac_objext conftest.$ac_ext
15821 test "$cf_cv_term_header" != unknown && break
15825 echo "$as_me:15825: result: $cf_cv_term_header" >&5
15826 echo "${ECHO_T}$cf_cv_term_header" >&6
15828 # Set definitions to allow ifdef'ing to accommodate subdirectories
15830 case $cf_cv_term_header in
15833 cat >>confdefs.h <<\EOF
15834 #define HAVE_TERM_H 1
15840 case $cf_cv_term_header in
15843 cat >>confdefs.h <<\EOF
15844 #define HAVE_NCURSES_TERM_H 1
15850 cat >>confdefs.h <<\EOF
15851 #define HAVE_NCURSESW_TERM_H 1
15860 echo "$as_me:15860: result: no" >&5
15861 echo "${ECHO_T}no" >&6
15862 NCURSES_CONFIG_PKG=none
15865 NCURSES_CONFIG_PKG=none
15868 if test "x$cf_have_ncuconfig" = "xno"; then
15869 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_ncurses_config}"
15871 if test -n "$ac_tool_prefix"; then
15872 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
15874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15876 echo "$as_me:15876: checking for $ac_word" >&5
15877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15878 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
15879 echo $ECHO_N "(cached) $ECHO_C" >&6
15881 if test -n "$NCURSES_CONFIG"; then
15882 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
15884 ac_save_IFS=$IFS; IFS=$ac_path_separator
15886 for ac_dir in $ac_dummy; do
15888 test -z "$ac_dir" && ac_dir=.
15889 $as_executable_p "$ac_dir/$ac_word" || continue
15890 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
15891 echo "$as_me:15891: found $ac_dir/$ac_word" >&5
15897 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
15898 if test -n "$NCURSES_CONFIG"; then
15899 echo "$as_me:15899: result: $NCURSES_CONFIG" >&5
15900 echo "${ECHO_T}$NCURSES_CONFIG" >&6
15902 echo "$as_me:15902: result: no" >&5
15903 echo "${ECHO_T}no" >&6
15906 test -n "$NCURSES_CONFIG" && break
15909 if test -z "$NCURSES_CONFIG"; then
15910 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
15911 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
15913 # Extract the first word of "$ac_prog", so it can be a program name with args.
15914 set dummy $ac_prog; ac_word=$2
15915 echo "$as_me:15915: checking for $ac_word" >&5
15916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15917 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15920 if test -n "$ac_ct_NCURSES_CONFIG"; then
15921 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
15923 ac_save_IFS=$IFS; IFS=$ac_path_separator
15925 for ac_dir in $ac_dummy; do
15927 test -z "$ac_dir" && ac_dir=.
15928 $as_executable_p "$ac_dir/$ac_word" || continue
15929 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
15930 echo "$as_me:15930: found $ac_dir/$ac_word" >&5
15936 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
15937 if test -n "$ac_ct_NCURSES_CONFIG"; then
15938 echo "$as_me:15938: result: $ac_ct_NCURSES_CONFIG" >&5
15939 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
15941 echo "$as_me:15941: result: no" >&5
15942 echo "${ECHO_T}no" >&6
15945 test -n "$ac_ct_NCURSES_CONFIG" && break
15947 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
15949 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
15952 if test "$NCURSES_CONFIG" != none ; then
15957 cf_new_extra_cppflags=
15959 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
15961 case $cf_fix_cppflags in
15963 case $cf_add_cflags in
15964 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15965 case $cf_add_cflags in
15967 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15969 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15970 && test -z "${cf_tst_cflags}" \
15971 && cf_fix_cppflags=yes
15973 if test $cf_fix_cppflags = yes ; then
15975 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15976 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15979 elif test "${cf_tst_cflags}" = "\"'" ; then
15981 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15982 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15988 case "$CPPFLAGS" in
15992 case $cf_add_cflags in
15994 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15996 CPPFLAGS=`echo "$CPPFLAGS" | \
15997 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15998 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16003 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16004 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16011 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16012 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16019 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16020 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16022 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16024 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16025 && test -z "${cf_tst_cflags}" \
16026 && cf_fix_cppflags=no
16031 if test -n "$cf_new_cflags" ; then
16033 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16034 CFLAGS="${CFLAGS}$cf_new_cflags"
16038 if test -n "$cf_new_cppflags" ; then
16040 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16041 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16045 if test -n "$cf_new_extra_cppflags" ; then
16047 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16048 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16052 cf_add_libs="`$NCURSES_CONFIG --libs`"
16053 # Filter out duplicates - this happens with badly-designed ".pc" files...
16054 for cf_add_1lib in $LIBS
16056 for cf_add_2lib in $cf_add_libs
16058 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16064 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16066 LIBS="$cf_add_libs"
16068 # even with config script, some packages use no-override for curses.h
16070 echo "$as_me:16070: checking if we have identified curses headers" >&5
16071 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
16072 if test "${cf_cv_ncurses_header+set}" = set; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16076 cf_cv_ncurses_header=none
16078 ncurses.h $cf_cv_screen/ncurses.h \
16079 curses.h $cf_cv_screen/curses.h
16081 cat >conftest.$ac_ext <<_ACEOF
16082 #line 16082 "configure"
16083 #include "confdefs.h"
16084 #include <${cf_header}>
16088 initscr(); tgoto("?", 0,0)
16093 rm -f conftest.$ac_objext
16094 if { (eval echo "$as_me:16094: \"$ac_compile\"") >&5
16095 (eval $ac_compile) 2>&5
16097 echo "$as_me:16097: \$? = $ac_status" >&5
16098 (exit $ac_status); } &&
16099 { ac_try='test -s conftest.$ac_objext'
16100 { (eval echo "$as_me:16100: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16103 echo "$as_me:16103: \$? = $ac_status" >&5
16104 (exit $ac_status); }; }; then
16105 cf_cv_ncurses_header=$cf_header; break
16107 echo "$as_me: failed program was:" >&5
16108 cat conftest.$ac_ext >&5
16110 rm -f conftest.$ac_objext conftest.$ac_ext
16114 echo "$as_me:16114: result: $cf_cv_ncurses_header" >&5
16115 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
16117 if test "$cf_cv_ncurses_header" = none ; then
16118 { { echo "$as_me:16118: error: No curses header-files found" >&5
16119 echo "$as_me: error: No curses header-files found" >&2;}
16120 { (exit 1); exit 1; }; }
16123 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
16125 for ac_header in $cf_cv_ncurses_header
16127 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16128 echo "$as_me:16128: checking for $ac_header" >&5
16129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16130 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 cat >conftest.$ac_ext <<_ACEOF
16134 #line 16134 "configure"
16135 #include "confdefs.h"
16136 #include <$ac_header>
16138 if { (eval echo "$as_me:16138: \"$ac_cpp conftest.$ac_ext\"") >&5
16139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16141 egrep -v '^ *\+' conftest.er1 >conftest.err
16143 cat conftest.err >&5
16144 echo "$as_me:16144: \$? = $ac_status" >&5
16145 (exit $ac_status); } >/dev/null; then
16146 if test -s conftest.err; then
16147 ac_cpp_err=$ac_c_preproc_warn_flag
16154 if test -z "$ac_cpp_err"; then
16155 eval "$as_ac_Header=yes"
16157 echo "$as_me: failed program was:" >&5
16158 cat conftest.$ac_ext >&5
16159 eval "$as_ac_Header=no"
16161 rm -f conftest.err conftest.$ac_ext
16163 echo "$as_me:16163: result: `eval echo '${'$as_ac_Header'}'`" >&5
16164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16166 cat >>confdefs.h <<EOF
16167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16173 cat >>confdefs.h <<\EOF
16177 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16179 cat >>confdefs.h <<EOF
16180 #define $cf_nculib_ROOT 1
16183 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
16187 cf_ncuhdr_root=$cf_cv_screen
16189 test -n "$cf_cv_curses_dir" && \
16190 test "$cf_cv_curses_dir" != "no" && { \
16192 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
16193 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
16195 while test $cf_add_incdir != /usr/include
16197 if test -d $cf_add_incdir
16200 if test -n "$CFLAGS$CPPFLAGS" ; then
16201 # a loop is needed to ensure we can add subdirs of existing dirs
16202 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
16203 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
16204 cf_have_incdir=yes; break
16209 if test "$cf_have_incdir" = no ; then
16210 if test "$cf_add_incdir" = /usr/local/include ; then
16211 if test "$GCC" = yes
16213 cf_save_CPPFLAGS=$CPPFLAGS
16215 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16216 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
16218 cat >conftest.$ac_ext <<_ACEOF
16219 #line 16219 "configure"
16220 #include "confdefs.h"
16230 rm -f conftest.$ac_objext
16231 if { (eval echo "$as_me:16231: \"$ac_compile\"") >&5
16232 (eval $ac_compile) 2>&5
16234 echo "$as_me:16234: \$? = $ac_status" >&5
16235 (exit $ac_status); } &&
16236 { ac_try='test -s conftest.$ac_objext'
16237 { (eval echo "$as_me:16237: \"$ac_try\"") >&5
16238 (eval $ac_try) 2>&5
16240 echo "$as_me:16240: \$? = $ac_status" >&5
16241 (exit $ac_status); }; }; then
16244 echo "$as_me: failed program was:" >&5
16245 cat conftest.$ac_ext >&5
16248 rm -f conftest.$ac_objext conftest.$ac_ext
16249 CPPFLAGS=$cf_save_CPPFLAGS
16254 if test "$cf_have_incdir" = no ; then
16255 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
16257 echo "${as_me:-configure}:16257: testing adding $cf_add_incdir to include-path ..." 1>&5
16259 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
16261 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
16262 test "$cf_top_incdir" = "$cf_add_incdir" && break
16263 cf_add_incdir="$cf_top_incdir"
16276 echo "$as_me:16276: checking for $cf_ncuhdr_root header in include-path" >&5
16277 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
16278 if test "${cf_cv_ncurses_h+set}" = set; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16282 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
16283 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
16284 for cf_header in $cf_header_list
16287 cat >conftest.$ac_ext <<_ACEOF
16288 #line 16288 "configure"
16289 #include "confdefs.h"
16291 #include <$cf_header>
16296 #ifdef NCURSES_VERSION
16298 printf("%s\n", NCURSES_VERSION);
16311 rm -f conftest.$ac_objext
16312 if { (eval echo "$as_me:16312: \"$ac_compile\"") >&5
16313 (eval $ac_compile) 2>&5
16315 echo "$as_me:16315: \$? = $ac_status" >&5
16316 (exit $ac_status); } &&
16317 { ac_try='test -s conftest.$ac_objext'
16318 { (eval echo "$as_me:16318: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16321 echo "$as_me:16321: \$? = $ac_status" >&5
16322 (exit $ac_status); }; }; then
16323 cf_cv_ncurses_h=$cf_header
16326 echo "$as_me: failed program was:" >&5
16327 cat conftest.$ac_ext >&5
16330 rm -f conftest.$ac_objext conftest.$ac_ext
16332 test "$cf_cv_ncurses_h" != no && break
16336 echo "$as_me:16336: result: $cf_cv_ncurses_h" >&5
16337 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
16339 if test "$cf_cv_ncurses_h" != no ; then
16340 cf_cv_ncurses_header=$cf_cv_ncurses_h
16343 echo "$as_me:16343: checking for $cf_ncuhdr_root include-path" >&5
16344 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
16345 if test "${cf_cv_ncurses_h2+set}" = set; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16349 test -n "$verbose" && echo
16353 # collect the current set of include-directories from compiler flags
16354 cf_header_path_list=""
16355 if test -n "${CFLAGS}${CPPFLAGS}" ; then
16356 for cf_header_path in $CPPFLAGS $CFLAGS
16358 case $cf_header_path in
16360 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
16362 test "x$cf_header_path" != "xNONE" && \
16363 test -d "$cf_header_path" && \
16365 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
16366 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
16367 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
16368 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
16369 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
16370 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"
16373 cf_header_path_list="$cf_header_path_list $cf_search"
16379 # add the variations for the package we are looking for
16383 test "x$prefix" != "xNONE" && \
16384 test -d "$prefix" && \
16386 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
16387 test -d $prefix/include && cf_search="$cf_search $prefix/include"
16388 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
16389 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
16390 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
16391 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
16394 for cf_subdir_prefix in \
16403 test "x$cf_subdir_prefix" != "x$prefix" && \
16404 test -d "$cf_subdir_prefix" && \
16405 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
16406 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
16407 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
16408 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
16409 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
16410 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
16411 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"
16416 test "$includedir" != NONE && \
16417 test "$includedir" != "/usr/include" && \
16418 test -d "$includedir" && {
16419 test -d $includedir && cf_search="$cf_search $includedir"
16420 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
16423 test "$oldincludedir" != NONE && \
16424 test "$oldincludedir" != "/usr/include" && \
16425 test -d "$oldincludedir" && {
16426 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
16427 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
16430 cf_search="$cf_search $cf_header_path_list"
16432 test -n "$verbose" && echo search path $cf_search
16433 cf_save2_CPPFLAGS="$CPPFLAGS"
16434 for cf_incdir in $cf_search
16437 if test -n "$cf_incdir" ; then
16438 for cf_add_incdir in $cf_incdir
16440 while test $cf_add_incdir != /usr/include
16442 if test -d $cf_add_incdir
16445 if test -n "$CFLAGS$CPPFLAGS" ; then
16446 # a loop is needed to ensure we can add subdirs of existing dirs
16447 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
16448 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
16449 cf_have_incdir=yes; break
16454 if test "$cf_have_incdir" = no ; then
16455 if test "$cf_add_incdir" = /usr/local/include ; then
16456 if test "$GCC" = yes
16458 cf_save_CPPFLAGS=$CPPFLAGS
16460 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16461 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
16463 cat >conftest.$ac_ext <<_ACEOF
16464 #line 16464 "configure"
16465 #include "confdefs.h"
16475 rm -f conftest.$ac_objext
16476 if { (eval echo "$as_me:16476: \"$ac_compile\"") >&5
16477 (eval $ac_compile) 2>&5
16479 echo "$as_me:16479: \$? = $ac_status" >&5
16480 (exit $ac_status); } &&
16481 { ac_try='test -s conftest.$ac_objext'
16482 { (eval echo "$as_me:16482: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16485 echo "$as_me:16485: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16489 echo "$as_me: failed program was:" >&5
16490 cat conftest.$ac_ext >&5
16493 rm -f conftest.$ac_objext conftest.$ac_ext
16494 CPPFLAGS=$cf_save_CPPFLAGS
16499 if test "$cf_have_incdir" = no ; then
16500 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
16502 echo "${as_me:-configure}:16502: testing adding $cf_add_incdir to include-path ..." 1>&5
16504 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
16506 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
16507 test "$cf_top_incdir" = "$cf_add_incdir" && break
16508 cf_add_incdir="$cf_top_incdir"
16524 cat >conftest.$ac_ext <<_ACEOF
16525 #line 16525 "configure"
16526 #include "confdefs.h"
16528 #include <$cf_header>
16533 #ifdef NCURSES_VERSION
16535 printf("%s\n", NCURSES_VERSION);
16548 rm -f conftest.$ac_objext
16549 if { (eval echo "$as_me:16549: \"$ac_compile\"") >&5
16550 (eval $ac_compile) 2>&5
16552 echo "$as_me:16552: \$? = $ac_status" >&5
16553 (exit $ac_status); } &&
16554 { ac_try='test -s conftest.$ac_objext'
16555 { (eval echo "$as_me:16555: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16558 echo "$as_me:16558: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
16560 cf_cv_ncurses_h2=$cf_header
16563 echo "$as_me: failed program was:" >&5
16564 cat conftest.$ac_ext >&5
16565 cf_cv_ncurses_h2=no
16567 rm -f conftest.$ac_objext conftest.$ac_ext
16569 if test "$cf_cv_ncurses_h2" != no ; then
16570 cf_cv_ncurses_h2=$cf_incdir/$cf_header
16571 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
16574 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
16576 CPPFLAGS="$cf_save2_CPPFLAGS"
16577 test "$cf_cv_ncurses_h2" != no && break
16579 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:16579: error: not found" >&5
16580 echo "$as_me: error: not found" >&2;}
16581 { (exit 1); exit 1; }; }
16584 echo "$as_me:16584: result: $cf_cv_ncurses_h2" >&5
16585 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
16587 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
16588 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
16589 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
16590 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
16593 if test -n "$cf_1st_incdir" ; then
16594 for cf_add_incdir in $cf_1st_incdir
16596 while test $cf_add_incdir != /usr/include
16598 if test -d $cf_add_incdir
16601 if test -n "$CFLAGS$CPPFLAGS" ; then
16602 # a loop is needed to ensure we can add subdirs of existing dirs
16603 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
16604 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
16605 cf_have_incdir=yes; break
16610 if test "$cf_have_incdir" = no ; then
16611 if test "$cf_add_incdir" = /usr/local/include ; then
16612 if test "$GCC" = yes
16614 cf_save_CPPFLAGS=$CPPFLAGS
16616 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16617 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
16619 cat >conftest.$ac_ext <<_ACEOF
16620 #line 16620 "configure"
16621 #include "confdefs.h"
16631 rm -f conftest.$ac_objext
16632 if { (eval echo "$as_me:16632: \"$ac_compile\"") >&5
16633 (eval $ac_compile) 2>&5
16635 echo "$as_me:16635: \$? = $ac_status" >&5
16636 (exit $ac_status); } &&
16637 { ac_try='test -s conftest.$ac_objext'
16638 { (eval echo "$as_me:16638: \"$ac_try\"") >&5
16639 (eval $ac_try) 2>&5
16641 echo "$as_me:16641: \$? = $ac_status" >&5
16642 (exit $ac_status); }; }; then
16645 echo "$as_me: failed program was:" >&5
16646 cat conftest.$ac_ext >&5
16649 rm -f conftest.$ac_objext conftest.$ac_ext
16650 CPPFLAGS=$cf_save_CPPFLAGS
16655 if test "$cf_have_incdir" = no ; then
16656 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
16658 echo "${as_me:-configure}:16658: testing adding $cf_add_incdir to include-path ..." 1>&5
16660 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
16662 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
16663 test "$cf_top_incdir" = "$cf_add_incdir" && break
16664 cf_add_incdir="$cf_top_incdir"
16677 # Set definitions to allow ifdef'ing for ncurses.h
16679 case $cf_cv_ncurses_header in
16682 cat >>confdefs.h <<\EOF
16683 #define HAVE_NCURSES_H 1
16689 case $cf_cv_ncurses_header in
16690 (ncurses/curses.h|ncurses/ncurses.h)
16692 cat >>confdefs.h <<\EOF
16693 #define HAVE_NCURSES_NCURSES_H 1
16697 (ncursesw/curses.h|ncursesw/ncurses.h)
16699 cat >>confdefs.h <<\EOF
16700 #define HAVE_NCURSESW_NCURSES_H 1
16706 echo "$as_me:16706: checking for terminfo header" >&5
16707 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
16708 if test "${cf_cv_term_header+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16712 case ${cf_cv_ncurses_header} in
16713 (*/ncurses.h|*/ncursesw.h)
16714 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
16717 cf_term_header=term.h
16721 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
16723 cat >conftest.$ac_ext <<_ACEOF
16724 #line 16724 "configure"
16725 #include "confdefs.h"
16727 #include <${cf_cv_ncurses_header:-curses.h}>
16728 #include <$cf_test>
16733 int x = auto_left_margin
16738 rm -f conftest.$ac_objext
16739 if { (eval echo "$as_me:16739: \"$ac_compile\"") >&5
16740 (eval $ac_compile) 2>&5
16742 echo "$as_me:16742: \$? = $ac_status" >&5
16743 (exit $ac_status); } &&
16744 { ac_try='test -s conftest.$ac_objext'
16745 { (eval echo "$as_me:16745: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16748 echo "$as_me:16748: \$? = $ac_status" >&5
16749 (exit $ac_status); }; }; then
16751 cf_cv_term_header="$cf_test"
16753 echo "$as_me: failed program was:" >&5
16754 cat conftest.$ac_ext >&5
16756 cf_cv_term_header=unknown
16759 rm -f conftest.$ac_objext conftest.$ac_ext
16760 test "$cf_cv_term_header" != unknown && break
16764 echo "$as_me:16764: result: $cf_cv_term_header" >&5
16765 echo "${ECHO_T}$cf_cv_term_header" >&6
16767 # Set definitions to allow ifdef'ing to accommodate subdirectories
16769 case $cf_cv_term_header in
16772 cat >>confdefs.h <<\EOF
16773 #define HAVE_TERM_H 1
16779 case $cf_cv_term_header in
16782 cat >>confdefs.h <<\EOF
16783 #define HAVE_NCURSES_TERM_H 1
16789 cat >>confdefs.h <<\EOF
16790 #define HAVE_NCURSESW_TERM_H 1
16796 # some applications need this, but should check for NCURSES_VERSION
16798 cat >>confdefs.h <<\EOF
16802 echo "$as_me:16802: checking for ncurses version" >&5
16803 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
16804 if test "${cf_cv_ncurses_version+set}" = set; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
16808 cf_cv_ncurses_version=no
16811 if test "$cross_compiling" = yes; then
16813 # This will not work if the preprocessor splits the line after the
16814 # Autoconf token. The 'unproto' program does that.
16815 cat > conftest.$ac_ext <<EOF
16816 #include <${cf_cv_ncurses_header:-curses.h}>
16818 #ifdef NCURSES_VERSION
16819 Autoconf NCURSES_VERSION
16827 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
16828 { (eval echo "$as_me:16828: \"$cf_try\"") >&5
16829 (eval $cf_try) 2>&5
16831 echo "$as_me:16831: \$? = $ac_status" >&5
16832 (exit $ac_status); }
16833 if test -f conftest.out ; then
16834 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
16835 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
16840 cat >conftest.$ac_ext <<_ACEOF
16841 #line 16841 "configure"
16842 #include "confdefs.h"
16844 #include <${cf_cv_ncurses_header:-curses.h}>
16848 FILE *fp = fopen("$cf_tempfile", "w");
16849 #ifdef NCURSES_VERSION
16850 # ifdef NCURSES_VERSION_PATCH
16851 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
16853 fprintf(fp, "%s\n", NCURSES_VERSION);
16856 # ifdef __NCURSES_H
16857 fprintf(fp, "old\n");
16862 ${cf_cv_main_return:-return}(0);
16865 rm -f conftest$ac_exeext
16866 if { (eval echo "$as_me:16866: \"$ac_link\"") >&5
16867 (eval $ac_link) 2>&5
16869 echo "$as_me:16869: \$? = $ac_status" >&5
16870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16871 { (eval echo "$as_me:16871: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16874 echo "$as_me:16874: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16877 cf_cv_ncurses_version=`cat $cf_tempfile`
16879 echo "$as_me: program exited with status $ac_status" >&5
16880 echo "$as_me: failed program was:" >&5
16881 cat conftest.$ac_ext >&5
16883 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16888 echo "$as_me:16888: result: $cf_cv_ncurses_version" >&5
16889 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
16890 test "$cf_cv_ncurses_version" = no ||
16891 cat >>confdefs.h <<\EOF
16895 cf_nculib_root=$cf_cv_screen
16896 # This works, except for the special case where we find gpm, but
16897 # ncurses is in a nonstandard location via $LIBS, and we really want
16900 cf_ncurses_SAVE="$LIBS"
16901 echo "$as_me:16901: checking for Gpm_Open in -lgpm" >&5
16902 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
16903 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 ac_check_lib_save_LIBS=$LIBS
16908 cat >conftest.$ac_ext <<_ACEOF
16909 #line 16909 "configure"
16910 #include "confdefs.h"
16912 /* Override any gcc2 internal prototype to avoid an error. */
16916 /* We use char because int might match the return type of a gcc2
16917 builtin and then its argument prototype would still apply. */
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (eval echo "$as_me:16928: \"$ac_link\"") >&5
16929 (eval $ac_link) 2>&5
16931 echo "$as_me:16931: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
16933 { ac_try='test -s conftest$ac_exeext'
16934 { (eval echo "$as_me:16934: \"$ac_try\"") >&5
16935 (eval $ac_try) 2>&5
16937 echo "$as_me:16937: \$? = $ac_status" >&5
16938 (exit $ac_status); }; }; then
16939 ac_cv_lib_gpm_Gpm_Open=yes
16941 echo "$as_me: failed program was:" >&5
16942 cat conftest.$ac_ext >&5
16943 ac_cv_lib_gpm_Gpm_Open=no
16945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16946 LIBS=$ac_check_lib_save_LIBS
16948 echo "$as_me:16948: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16949 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
16950 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16951 echo "$as_me:16951: checking for initscr in -lgpm" >&5
16952 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
16953 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
16954 echo $ECHO_N "(cached) $ECHO_C" >&6
16956 ac_check_lib_save_LIBS=$LIBS
16958 cat >conftest.$ac_ext <<_ACEOF
16959 #line 16959 "configure"
16960 #include "confdefs.h"
16962 /* Override any gcc2 internal prototype to avoid an error. */
16966 /* We use char because int might match the return type of a gcc2
16967 builtin and then its argument prototype would still apply. */
16977 rm -f conftest.$ac_objext conftest$ac_exeext
16978 if { (eval echo "$as_me:16978: \"$ac_link\"") >&5
16979 (eval $ac_link) 2>&5
16981 echo "$as_me:16981: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
16983 { ac_try='test -s conftest$ac_exeext'
16984 { (eval echo "$as_me:16984: \"$ac_try\"") >&5
16985 (eval $ac_try) 2>&5
16987 echo "$as_me:16987: \$? = $ac_status" >&5
16988 (exit $ac_status); }; }; then
16989 ac_cv_lib_gpm_initscr=yes
16991 echo "$as_me: failed program was:" >&5
16992 cat conftest.$ac_ext >&5
16993 ac_cv_lib_gpm_initscr=no
16995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16996 LIBS=$ac_check_lib_save_LIBS
16998 echo "$as_me:16998: result: $ac_cv_lib_gpm_initscr" >&5
16999 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
17000 if test $ac_cv_lib_gpm_initscr = yes; then
17001 LIBS="$cf_ncurses_SAVE"
17003 cf_ncurses_LIBS="-lgpm"
17010 # This is only necessary if you are linking against an obsolete
17011 # version of ncurses (but it should do no harm, since it's static).
17012 if test "$cf_nculib_root" = ncurses ; then
17013 echo "$as_me:17013: checking for tgoto in -lmytinfo" >&5
17014 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
17015 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17018 ac_check_lib_save_LIBS=$LIBS
17019 LIBS="-lmytinfo $LIBS"
17020 cat >conftest.$ac_ext <<_ACEOF
17021 #line 17021 "configure"
17022 #include "confdefs.h"
17024 /* Override any gcc2 internal prototype to avoid an error. */
17028 /* We use char because int might match the return type of a gcc2
17029 builtin and then its argument prototype would still apply. */
17039 rm -f conftest.$ac_objext 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); } &&
17045 { ac_try='test -s conftest$ac_exeext'
17046 { (eval echo "$as_me:17046: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17049 echo "$as_me:17049: \$? = $ac_status" >&5
17050 (exit $ac_status); }; }; then
17051 ac_cv_lib_mytinfo_tgoto=yes
17053 echo "$as_me: failed program was:" >&5
17054 cat conftest.$ac_ext >&5
17055 ac_cv_lib_mytinfo_tgoto=no
17057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17058 LIBS=$ac_check_lib_save_LIBS
17060 echo "$as_me:17060: result: $ac_cv_lib_mytinfo_tgoto" >&5
17061 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
17062 if test $ac_cv_lib_mytinfo_tgoto = yes; then
17063 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
17070 cf_add_libs="$cf_ncurses_LIBS"
17071 # Filter out duplicates - this happens with badly-designed ".pc" files...
17072 for cf_add_1lib in $LIBS
17074 for cf_add_2lib in $cf_add_libs
17076 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17082 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17084 LIBS="$cf_add_libs"
17086 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
17089 cf_add_libs="-l$cf_nculib_root"
17090 # Filter out duplicates - this happens with badly-designed ".pc" files...
17091 for cf_add_1lib in $LIBS
17093 for cf_add_2lib in $cf_add_libs
17095 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17101 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
17103 LIBS="$cf_add_libs"
17107 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
17109 echo "$as_me:17109: checking for initscr" >&5
17110 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
17111 if test "${ac_cv_func_initscr+set}" = set; then
17112 echo $ECHO_N "(cached) $ECHO_C" >&6
17114 cat >conftest.$ac_ext <<_ACEOF
17115 #line 17115 "configure"
17116 #include "confdefs.h"
17117 /* System header to define __stub macros and hopefully few prototypes,
17118 which can conflict with char initscr (); below. */
17119 #include <assert.h>
17120 /* Override any gcc2 internal prototype to avoid an error. */
17124 /* We use char because int might match the return type of a gcc2
17125 builtin and then its argument prototype would still apply. */
17132 /* The GNU C library defines this for functions which it implements
17133 to always fail with ENOSYS. Some functions are actually named
17134 something starting with __ and the normal name is an alias. */
17135 #if defined (__stub_initscr) || defined (__stub___initscr)
17138 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17145 rm -f conftest.$ac_objext conftest$ac_exeext
17146 if { (eval echo "$as_me:17146: \"$ac_link\"") >&5
17147 (eval $ac_link) 2>&5
17149 echo "$as_me:17149: \$? = $ac_status" >&5
17150 (exit $ac_status); } &&
17151 { ac_try='test -s conftest$ac_exeext'
17152 { (eval echo "$as_me:17152: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17155 echo "$as_me:17155: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 ac_cv_func_initscr=yes
17159 echo "$as_me: failed program was:" >&5
17160 cat conftest.$ac_ext >&5
17161 ac_cv_func_initscr=no
17163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17165 echo "$as_me:17165: result: $ac_cv_func_initscr" >&5
17166 echo "${ECHO_T}$ac_cv_func_initscr" >&6
17167 if test $ac_cv_func_initscr = yes; then
17168 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
17171 cf_save_LIBS="$LIBS"
17172 echo "$as_me:17172: checking for initscr in -l$cf_nculib_root" >&5
17173 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
17174 LIBS="-l$cf_nculib_root $LIBS"
17175 cat >conftest.$ac_ext <<_ACEOF
17176 #line 17176 "configure"
17177 #include "confdefs.h"
17178 #include <${cf_cv_ncurses_header:-curses.h}>
17187 rm -f conftest.$ac_objext conftest$ac_exeext
17188 if { (eval echo "$as_me:17188: \"$ac_link\"") >&5
17189 (eval $ac_link) 2>&5
17191 echo "$as_me:17191: \$? = $ac_status" >&5
17192 (exit $ac_status); } &&
17193 { ac_try='test -s conftest$ac_exeext'
17194 { (eval echo "$as_me:17194: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17197 echo "$as_me:17197: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 echo "$as_me:17199: result: yes" >&5
17200 echo "${ECHO_T}yes" >&6
17201 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
17204 echo "$as_me: failed program was:" >&5
17205 cat conftest.$ac_ext >&5
17206 echo "$as_me:17206: result: no" >&5
17207 echo "${ECHO_T}no" >&6
17210 cf_library_path_list=""
17211 if test -n "${LDFLAGS}${LIBS}" ; then
17212 for cf_library_path in $LDFLAGS $LIBS
17214 case $cf_library_path in
17216 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
17218 test "x$cf_library_path" != "xNONE" && \
17219 test -d "$cf_library_path" && \
17221 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
17222 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
17223 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
17224 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
17225 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
17226 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"
17229 cf_library_path_list="$cf_library_path_list $cf_search"
17237 test "x$prefix" != "xNONE" && \
17238 test -d "$prefix" && \
17240 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
17241 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
17242 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
17243 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
17244 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
17245 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
17248 for cf_subdir_prefix in \
17257 test "x$cf_subdir_prefix" != "x$prefix" && \
17258 test -d "$cf_subdir_prefix" && \
17259 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
17260 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
17261 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
17262 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
17263 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
17264 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
17265 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"
17270 cf_search="$cf_library_path_list $cf_search"
17272 for cf_libdir in $cf_search
17274 echo "$as_me:17274: checking for -l$cf_nculib_root in $cf_libdir" >&5
17275 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
17276 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
17277 cat >conftest.$ac_ext <<_ACEOF
17278 #line 17278 "configure"
17279 #include "confdefs.h"
17280 #include <${cf_cv_ncurses_header:-curses.h}>
17289 rm -f conftest.$ac_objext conftest$ac_exeext
17290 if { (eval echo "$as_me:17290: \"$ac_link\"") >&5
17291 (eval $ac_link) 2>&5
17293 echo "$as_me:17293: \$? = $ac_status" >&5
17294 (exit $ac_status); } &&
17295 { ac_try='test -s conftest$ac_exeext'
17296 { (eval echo "$as_me:17296: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17299 echo "$as_me:17299: \$? = $ac_status" >&5
17300 (exit $ac_status); }; }; then
17301 echo "$as_me:17301: result: yes" >&5
17302 echo "${ECHO_T}yes" >&6
17303 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
17306 echo "$as_me: failed program was:" >&5
17307 cat conftest.$ac_ext >&5
17308 echo "$as_me:17308: result: no" >&5
17309 echo "${ECHO_T}no" >&6
17310 LIBS="$cf_save_LIBS"
17312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17320 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
17322 if test $cf_found_library = no ; then
17323 { { echo "$as_me:17323: error: Cannot link $cf_nculib_root library" >&5
17324 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
17325 { (exit 1); exit 1; }; }
17330 if test -n "$cf_ncurses_LIBS" ; then
17331 echo "$as_me:17331: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
17332 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
17333 cf_ncurses_SAVE="$LIBS"
17334 for p in $cf_ncurses_LIBS ; do
17335 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
17336 if test "$q" != "$LIBS" ; then
17340 cat >conftest.$ac_ext <<_ACEOF
17341 #line 17341 "configure"
17342 #include "confdefs.h"
17343 #include <${cf_cv_ncurses_header:-curses.h}>
17347 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
17352 rm -f conftest.$ac_objext conftest$ac_exeext
17353 if { (eval echo "$as_me:17353: \"$ac_link\"") >&5
17354 (eval $ac_link) 2>&5
17356 echo "$as_me:17356: \$? = $ac_status" >&5
17357 (exit $ac_status); } &&
17358 { ac_try='test -s conftest$ac_exeext'
17359 { (eval echo "$as_me:17359: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17362 echo "$as_me:17362: \$? = $ac_status" >&5
17363 (exit $ac_status); }; }; then
17364 echo "$as_me:17364: result: yes" >&5
17365 echo "${ECHO_T}yes" >&6
17367 echo "$as_me: failed program was:" >&5
17368 cat conftest.$ac_ext >&5
17369 echo "$as_me:17369: result: no" >&5
17370 echo "${ECHO_T}no" >&6
17371 LIBS="$cf_ncurses_SAVE"
17373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17376 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17378 cat >>confdefs.h <<EOF
17379 #define $cf_nculib_ROOT 1
17384 NCURSES_CONFIG=none
17389 echo "$as_me:17389: checking for X" >&5
17390 echo $ECHO_N "checking for X... $ECHO_C" >&6
17392 # Check whether --with-x or --without-x was given.
17393 if test "${with_x+set}" = set; then
17397 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17398 if test "x$with_x" = xno; then
17399 # The user explicitly disabled X.
17402 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17403 # Both variables are already set.
17406 if test "${ac_cv_have_x+set}" = set; then
17407 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 # One or both of the vars are not set, and there is no cached value.
17410 ac_x_includes=no ac_x_libraries=no
17411 rm -fr conftest.dir
17412 if mkdir conftest.dir; then
17414 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17415 cat >Imakefile <<'EOF'
17417 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17419 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17420 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17421 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17422 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17423 for ac_extension in a so sl dylib dll; do
17424 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17425 test -f $ac_im_libdir/libX11.$ac_extension; then
17426 ac_im_usrlibdir=$ac_im_libdir; break
17429 # Screen out bogus values from the imake configuration. They are
17430 # bogus both because they are the default anyway, and because
17431 # using them would break gcc on systems where it needs fixed includes.
17432 case $ac_im_incroot in
17434 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17436 case $ac_im_usrlibdir in
17437 /usr/lib | /lib) ;;
17438 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17442 rm -fr conftest.dir
17445 # Standard set of common directories for X headers.
17446 # Check X11 before X11Rn because it is often a symlink to the current release.
17458 /usr/local/X11/include
17459 /usr/local/X11R6/include
17460 /usr/local/X11R5/include
17461 /usr/local/X11R4/include
17463 /usr/local/include/X11
17464 /usr/local/include/X11R6
17465 /usr/local/include/X11R5
17466 /usr/local/include/X11R4
17470 /usr/XFree86/include/X11
17474 /usr/unsupported/include
17475 /usr/athena/include
17476 /usr/local/x11r5/include
17477 /usr/lpp/Xamples/include
17479 /usr/openwin/include
17480 /usr/openwin/share/include'
17482 if test "$ac_x_includes" = no; then
17483 # Guess where to find include files, by looking for Intrinsic.h.
17484 # First, try using that file with no special directory specified.
17485 cat >conftest.$ac_ext <<_ACEOF
17486 #line 17486 "configure"
17487 #include "confdefs.h"
17488 #include <X11/Intrinsic.h>
17490 if { (eval echo "$as_me:17490: \"$ac_cpp conftest.$ac_ext\"") >&5
17491 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17493 egrep -v '^ *\+' conftest.er1 >conftest.err
17495 cat conftest.err >&5
17496 echo "$as_me:17496: \$? = $ac_status" >&5
17497 (exit $ac_status); } >/dev/null; then
17498 if test -s conftest.err; then
17499 ac_cpp_err=$ac_c_preproc_warn_flag
17506 if test -z "$ac_cpp_err"; then
17507 # We can compile using X headers with no special include directory.
17510 echo "$as_me: failed program was:" >&5
17511 cat conftest.$ac_ext >&5
17512 for ac_dir in $ac_x_header_dirs; do
17513 if test -r "$ac_dir/X11/Intrinsic.h"; then
17514 ac_x_includes=$ac_dir
17519 rm -f conftest.err conftest.$ac_ext
17520 fi # $ac_x_includes = no
17522 if test "$ac_x_libraries" = no; then
17523 # Check for the libraries.
17524 # See if we find them without any special options.
17525 # Don't add to $LIBS permanently.
17528 cat >conftest.$ac_ext <<_ACEOF
17529 #line 17529 "configure"
17530 #include "confdefs.h"
17531 #include <X11/Intrinsic.h>
17540 rm -f conftest.$ac_objext conftest$ac_exeext
17541 if { (eval echo "$as_me:17541: \"$ac_link\"") >&5
17542 (eval $ac_link) 2>&5
17544 echo "$as_me:17544: \$? = $ac_status" >&5
17545 (exit $ac_status); } &&
17546 { ac_try='test -s conftest$ac_exeext'
17547 { (eval echo "$as_me:17547: \"$ac_try\"") >&5
17548 (eval $ac_try) 2>&5
17550 echo "$as_me:17550: \$? = $ac_status" >&5
17551 (exit $ac_status); }; }; then
17553 # We can link X programs with no special library path.
17556 echo "$as_me: failed program was:" >&5
17557 cat conftest.$ac_ext >&5
17559 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17561 # Don't even attempt the hair of trying to link an X program!
17562 for ac_extension in a so sl dylib dll; do
17563 if test -r $ac_dir/libXt.$ac_extension; then
17564 ac_x_libraries=$ac_dir
17570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17571 fi # $ac_x_libraries = no
17573 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
17574 # Didn't find X anywhere. Cache the known absence of X.
17575 ac_cv_have_x="have_x=no"
17577 # Record where we found X for the cache.
17578 ac_cv_have_x="have_x=yes \
17579 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
17584 eval "$ac_cv_have_x"
17587 if test "$have_x" != yes; then
17588 echo "$as_me:17588: result: $have_x" >&5
17589 echo "${ECHO_T}$have_x" >&6
17592 # If each of the values was on the command line, it overrides each guess.
17593 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17594 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17595 # Update the cache value to reflect the command line values.
17596 ac_cv_have_x="have_x=yes \
17597 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17598 echo "$as_me:17598: result: libraries $x_libraries, headers $x_includes" >&5
17599 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
17602 if test "$no_x" = yes; then
17603 # Not all programs may use this symbol, but it does not hurt to define it.
17605 cat >>confdefs.h <<\EOF
17606 #define X_DISPLAY_MISSING 1
17609 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17611 if test -n "$x_includes"; then
17612 X_CFLAGS="$X_CFLAGS -I$x_includes"
17615 # It would also be nice to do this for all -L options, not just this one.
17616 if test -n "$x_libraries"; then
17617 X_LIBS="$X_LIBS -L$x_libraries"
17618 # For Solaris; some versions of Sun CC require a space after -R and
17619 # others require no space. Words are not sufficient . . . .
17620 case `(uname -sr) 2>/dev/null` in
17622 echo "$as_me:17622: checking whether -R must be followed by a space" >&5
17623 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17624 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17625 cat >conftest.$ac_ext <<_ACEOF
17626 #line 17626 "configure"
17627 #include "confdefs.h"
17637 rm -f conftest.$ac_objext conftest$ac_exeext
17638 if { (eval echo "$as_me:17638: \"$ac_link\"") >&5
17639 (eval $ac_link) 2>&5
17641 echo "$as_me:17641: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
17643 { ac_try='test -s conftest$ac_exeext'
17644 { (eval echo "$as_me:17644: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17647 echo "$as_me:17647: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17651 echo "$as_me: failed program was:" >&5
17652 cat conftest.$ac_ext >&5
17655 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17656 if test $ac_R_nospace = yes; then
17657 echo "$as_me:17657: result: no" >&5
17658 echo "${ECHO_T}no" >&6
17659 X_LIBS="$X_LIBS -R$x_libraries"
17661 LIBS="$ac_xsave_LIBS -R $x_libraries"
17662 cat >conftest.$ac_ext <<_ACEOF
17663 #line 17663 "configure"
17664 #include "confdefs.h"
17674 rm -f conftest.$ac_objext conftest$ac_exeext
17675 if { (eval echo "$as_me:17675: \"$ac_link\"") >&5
17676 (eval $ac_link) 2>&5
17678 echo "$as_me:17678: \$? = $ac_status" >&5
17679 (exit $ac_status); } &&
17680 { ac_try='test -s conftest$ac_exeext'
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
17688 echo "$as_me: failed program was:" >&5
17689 cat conftest.$ac_ext >&5
17692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17693 if test $ac_R_space = yes; then
17694 echo "$as_me:17694: result: yes" >&5
17695 echo "${ECHO_T}yes" >&6
17696 X_LIBS="$X_LIBS -R $x_libraries"
17698 echo "$as_me:17698: result: neither works" >&5
17699 echo "${ECHO_T}neither works" >&6
17702 LIBS=$ac_xsave_LIBS
17706 # Check for system-dependent libraries X programs must link with.
17707 # Do this before checking for the system-independent R6 libraries
17708 # (-lICE), since we may need -lsocket or whatever for X linking.
17710 if test "$ISC" = yes; then
17711 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17713 # Martyn Johnson says this is needed for Ultrix, if the X
17714 # libraries were built with DECnet support. And Karl Berry says
17715 # the Alpha needs dnet_stub (dnet does not exist).
17716 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17717 cat >conftest.$ac_ext <<_ACEOF
17718 #line 17718 "configure"
17719 #include "confdefs.h"
17721 /* Override any gcc2 internal prototype to avoid an error. */
17725 /* We use char because int might match the return type of a gcc2
17726 builtin and then its argument prototype would still apply. */
17727 char XOpenDisplay ();
17736 rm -f conftest.$ac_objext conftest$ac_exeext
17737 if { (eval echo "$as_me:17737: \"$ac_link\"") >&5
17738 (eval $ac_link) 2>&5
17740 echo "$as_me:17740: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
17742 { ac_try='test -s conftest$ac_exeext'
17743 { (eval echo "$as_me:17743: \"$ac_try\"") >&5
17744 (eval $ac_try) 2>&5
17746 echo "$as_me:17746: \$? = $ac_status" >&5
17747 (exit $ac_status); }; }; then
17750 echo "$as_me: failed program was:" >&5
17751 cat conftest.$ac_ext >&5
17752 echo "$as_me:17752: checking for dnet_ntoa in -ldnet" >&5
17753 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
17754 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
17755 echo $ECHO_N "(cached) $ECHO_C" >&6
17757 ac_check_lib_save_LIBS=$LIBS
17758 LIBS="-ldnet $LIBS"
17759 cat >conftest.$ac_ext <<_ACEOF
17760 #line 17760 "configure"
17761 #include "confdefs.h"
17763 /* Override any gcc2 internal prototype to avoid an error. */
17767 /* We use char because int might match the return type of a gcc2
17768 builtin and then its argument prototype would still apply. */
17778 rm -f conftest.$ac_objext conftest$ac_exeext
17779 if { (eval echo "$as_me:17779: \"$ac_link\"") >&5
17780 (eval $ac_link) 2>&5
17782 echo "$as_me:17782: \$? = $ac_status" >&5
17783 (exit $ac_status); } &&
17784 { ac_try='test -s conftest$ac_exeext'
17785 { (eval echo "$as_me:17785: \"$ac_try\"") >&5
17786 (eval $ac_try) 2>&5
17788 echo "$as_me:17788: \$? = $ac_status" >&5
17789 (exit $ac_status); }; }; then
17790 ac_cv_lib_dnet_dnet_ntoa=yes
17792 echo "$as_me: failed program was:" >&5
17793 cat conftest.$ac_ext >&5
17794 ac_cv_lib_dnet_dnet_ntoa=no
17796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17797 LIBS=$ac_check_lib_save_LIBS
17799 echo "$as_me:17799: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17800 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
17801 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
17802 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
17805 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
17806 echo "$as_me:17806: checking for dnet_ntoa in -ldnet_stub" >&5
17807 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
17808 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
17809 echo $ECHO_N "(cached) $ECHO_C" >&6
17811 ac_check_lib_save_LIBS=$LIBS
17812 LIBS="-ldnet_stub $LIBS"
17813 cat >conftest.$ac_ext <<_ACEOF
17814 #line 17814 "configure"
17815 #include "confdefs.h"
17817 /* Override any gcc2 internal prototype to avoid an error. */
17821 /* We use char because int might match the return type of a gcc2
17822 builtin and then its argument prototype would still apply. */
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (eval echo "$as_me:17833: \"$ac_link\"") >&5
17834 (eval $ac_link) 2>&5
17836 echo "$as_me:17836: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
17838 { ac_try='test -s conftest$ac_exeext'
17839 { (eval echo "$as_me:17839: \"$ac_try\"") >&5
17840 (eval $ac_try) 2>&5
17842 echo "$as_me:17842: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 ac_cv_lib_dnet_stub_dnet_ntoa=yes
17846 echo "$as_me: failed program was:" >&5
17847 cat conftest.$ac_ext >&5
17848 ac_cv_lib_dnet_stub_dnet_ntoa=no
17850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17851 LIBS=$ac_check_lib_save_LIBS
17853 echo "$as_me:17853: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
17854 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
17855 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
17856 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
17861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17862 LIBS="$ac_xsave_LIBS"
17864 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
17865 # to get the SysV transport functions.
17866 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
17868 # The nsl library prevents programs from opening the X display
17869 # on Irix 5.2, according to T.E. Dickey.
17870 # The functions gethostbyname, getservbyname, and inet_addr are
17871 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
17872 echo "$as_me:17872: checking for gethostbyname" >&5
17873 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
17874 if test "${ac_cv_func_gethostbyname+set}" = set; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
17877 cat >conftest.$ac_ext <<_ACEOF
17878 #line 17878 "configure"
17879 #include "confdefs.h"
17880 /* System header to define __stub macros and hopefully few prototypes,
17881 which can conflict with char gethostbyname (); below. */
17882 #include <assert.h>
17883 /* Override any gcc2 internal prototype to avoid an error. */
17887 /* We use char because int might match the return type of a gcc2
17888 builtin and then its argument prototype would still apply. */
17889 char gethostbyname ();
17895 /* The GNU C library defines this for functions which it implements
17896 to always fail with ENOSYS. Some functions are actually named
17897 something starting with __ and the normal name is an alias. */
17898 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
17901 f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17908 rm -f conftest.$ac_objext conftest$ac_exeext
17909 if { (eval echo "$as_me:17909: \"$ac_link\"") >&5
17910 (eval $ac_link) 2>&5
17912 echo "$as_me:17912: \$? = $ac_status" >&5
17913 (exit $ac_status); } &&
17914 { ac_try='test -s conftest$ac_exeext'
17915 { (eval echo "$as_me:17915: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17918 echo "$as_me:17918: \$? = $ac_status" >&5
17919 (exit $ac_status); }; }; then
17920 ac_cv_func_gethostbyname=yes
17922 echo "$as_me: failed program was:" >&5
17923 cat conftest.$ac_ext >&5
17924 ac_cv_func_gethostbyname=no
17926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17928 echo "$as_me:17928: result: $ac_cv_func_gethostbyname" >&5
17929 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
17931 if test $ac_cv_func_gethostbyname = no; then
17932 echo "$as_me:17932: checking for gethostbyname in -lnsl" >&5
17933 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
17934 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17937 ac_check_lib_save_LIBS=$LIBS
17939 cat >conftest.$ac_ext <<_ACEOF
17940 #line 17940 "configure"
17941 #include "confdefs.h"
17943 /* Override any gcc2 internal prototype to avoid an error. */
17947 /* We use char because int might match the return type of a gcc2
17948 builtin and then its argument prototype would still apply. */
17949 char gethostbyname ();
17958 rm -f conftest.$ac_objext conftest$ac_exeext
17959 if { (eval echo "$as_me:17959: \"$ac_link\"") >&5
17960 (eval $ac_link) 2>&5
17962 echo "$as_me:17962: \$? = $ac_status" >&5
17963 (exit $ac_status); } &&
17964 { ac_try='test -s conftest$ac_exeext'
17965 { (eval echo "$as_me:17965: \"$ac_try\"") >&5
17966 (eval $ac_try) 2>&5
17968 echo "$as_me:17968: \$? = $ac_status" >&5
17969 (exit $ac_status); }; }; then
17970 ac_cv_lib_nsl_gethostbyname=yes
17972 echo "$as_me: failed program was:" >&5
17973 cat conftest.$ac_ext >&5
17974 ac_cv_lib_nsl_gethostbyname=no
17976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17977 LIBS=$ac_check_lib_save_LIBS
17979 echo "$as_me:17979: result: $ac_cv_lib_nsl_gethostbyname" >&5
17980 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
17981 if test $ac_cv_lib_nsl_gethostbyname = yes; then
17982 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
17985 if test $ac_cv_lib_nsl_gethostbyname = no; then
17986 echo "$as_me:17986: checking for gethostbyname in -lbsd" >&5
17987 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
17988 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
17989 echo $ECHO_N "(cached) $ECHO_C" >&6
17991 ac_check_lib_save_LIBS=$LIBS
17993 cat >conftest.$ac_ext <<_ACEOF
17994 #line 17994 "configure"
17995 #include "confdefs.h"
17997 /* Override any gcc2 internal prototype to avoid an error. */
18001 /* We use char because int might match the return type of a gcc2
18002 builtin and then its argument prototype would still apply. */
18003 char gethostbyname ();
18012 rm -f conftest.$ac_objext conftest$ac_exeext
18013 if { (eval echo "$as_me:18013: \"$ac_link\"") >&5
18014 (eval $ac_link) 2>&5
18016 echo "$as_me:18016: \$? = $ac_status" >&5
18017 (exit $ac_status); } &&
18018 { ac_try='test -s conftest$ac_exeext'
18019 { (eval echo "$as_me:18019: \"$ac_try\"") >&5
18020 (eval $ac_try) 2>&5
18022 echo "$as_me:18022: \$? = $ac_status" >&5
18023 (exit $ac_status); }; }; then
18024 ac_cv_lib_bsd_gethostbyname=yes
18026 echo "$as_me: failed program was:" >&5
18027 cat conftest.$ac_ext >&5
18028 ac_cv_lib_bsd_gethostbyname=no
18030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18031 LIBS=$ac_check_lib_save_LIBS
18033 echo "$as_me:18033: result: $ac_cv_lib_bsd_gethostbyname" >&5
18034 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18035 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18036 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18042 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18043 # socket/setsockopt and other routines are undefined under SCO ODT
18044 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18045 # on later versions), says Simon Leinen: it contains gethostby*
18046 # variants that don't use the nameserver (or something). -lsocket
18047 # must be given before -lnsl if both are needed. We assume that
18048 # if connect needs -lnsl, so does gethostbyname.
18049 echo "$as_me:18049: checking for connect" >&5
18050 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18051 if test "${ac_cv_func_connect+set}" = set; then
18052 echo $ECHO_N "(cached) $ECHO_C" >&6
18054 cat >conftest.$ac_ext <<_ACEOF
18055 #line 18055 "configure"
18056 #include "confdefs.h"
18057 /* System header to define __stub macros and hopefully few prototypes,
18058 which can conflict with char connect (); below. */
18059 #include <assert.h>
18060 /* Override any gcc2 internal prototype to avoid an error. */
18064 /* We use char because int might match the return type of a gcc2
18065 builtin and then its argument prototype would still apply. */
18072 /* The GNU C library defines this for functions which it implements
18073 to always fail with ENOSYS. Some functions are actually named
18074 something starting with __ and the normal name is an alias. */
18075 #if defined (__stub_connect) || defined (__stub___connect)
18078 f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18085 rm -f conftest.$ac_objext conftest$ac_exeext
18086 if { (eval echo "$as_me:18086: \"$ac_link\"") >&5
18087 (eval $ac_link) 2>&5
18089 echo "$as_me:18089: \$? = $ac_status" >&5
18090 (exit $ac_status); } &&
18091 { ac_try='test -s conftest$ac_exeext'
18092 { (eval echo "$as_me:18092: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18095 echo "$as_me:18095: \$? = $ac_status" >&5
18096 (exit $ac_status); }; }; then
18097 ac_cv_func_connect=yes
18099 echo "$as_me: failed program was:" >&5
18100 cat conftest.$ac_ext >&5
18101 ac_cv_func_connect=no
18103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18105 echo "$as_me:18105: result: $ac_cv_func_connect" >&5
18106 echo "${ECHO_T}$ac_cv_func_connect" >&6
18108 if test $ac_cv_func_connect = no; then
18109 echo "$as_me:18109: checking for connect in -lsocket" >&5
18110 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18111 if test "${ac_cv_lib_socket_connect+set}" = set; then
18112 echo $ECHO_N "(cached) $ECHO_C" >&6
18114 ac_check_lib_save_LIBS=$LIBS
18115 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18116 cat >conftest.$ac_ext <<_ACEOF
18117 #line 18117 "configure"
18118 #include "confdefs.h"
18120 /* Override any gcc2 internal prototype to avoid an error. */
18124 /* We use char because int might match the return type of a gcc2
18125 builtin and then its argument prototype would still apply. */
18135 rm -f conftest.$ac_objext conftest$ac_exeext
18136 if { (eval echo "$as_me:18136: \"$ac_link\"") >&5
18137 (eval $ac_link) 2>&5
18139 echo "$as_me:18139: \$? = $ac_status" >&5
18140 (exit $ac_status); } &&
18141 { ac_try='test -s conftest$ac_exeext'
18142 { (eval echo "$as_me:18142: \"$ac_try\"") >&5
18143 (eval $ac_try) 2>&5
18145 echo "$as_me:18145: \$? = $ac_status" >&5
18146 (exit $ac_status); }; }; then
18147 ac_cv_lib_socket_connect=yes
18149 echo "$as_me: failed program was:" >&5
18150 cat conftest.$ac_ext >&5
18151 ac_cv_lib_socket_connect=no
18153 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18154 LIBS=$ac_check_lib_save_LIBS
18156 echo "$as_me:18156: result: $ac_cv_lib_socket_connect" >&5
18157 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18158 if test $ac_cv_lib_socket_connect = yes; then
18159 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18164 # Guillermo Gomez says -lposix is necessary on A/UX.
18165 echo "$as_me:18165: checking for remove" >&5
18166 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18167 if test "${ac_cv_func_remove+set}" = set; then
18168 echo $ECHO_N "(cached) $ECHO_C" >&6
18170 cat >conftest.$ac_ext <<_ACEOF
18171 #line 18171 "configure"
18172 #include "confdefs.h"
18173 /* System header to define __stub macros and hopefully few prototypes,
18174 which can conflict with char remove (); below. */
18175 #include <assert.h>
18176 /* Override any gcc2 internal prototype to avoid an error. */
18180 /* We use char because int might match the return type of a gcc2
18181 builtin and then its argument prototype would still apply. */
18188 /* The GNU C library defines this for functions which it implements
18189 to always fail with ENOSYS. Some functions are actually named
18190 something starting with __ and the normal name is an alias. */
18191 #if defined (__stub_remove) || defined (__stub___remove)
18194 f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18201 rm -f conftest.$ac_objext conftest$ac_exeext
18202 if { (eval echo "$as_me:18202: \"$ac_link\"") >&5
18203 (eval $ac_link) 2>&5
18205 echo "$as_me:18205: \$? = $ac_status" >&5
18206 (exit $ac_status); } &&
18207 { ac_try='test -s conftest$ac_exeext'
18208 { (eval echo "$as_me:18208: \"$ac_try\"") >&5
18209 (eval $ac_try) 2>&5
18211 echo "$as_me:18211: \$? = $ac_status" >&5
18212 (exit $ac_status); }; }; then
18213 ac_cv_func_remove=yes
18215 echo "$as_me: failed program was:" >&5
18216 cat conftest.$ac_ext >&5
18217 ac_cv_func_remove=no
18219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18221 echo "$as_me:18221: result: $ac_cv_func_remove" >&5
18222 echo "${ECHO_T}$ac_cv_func_remove" >&6
18224 if test $ac_cv_func_remove = no; then
18225 echo "$as_me:18225: checking for remove in -lposix" >&5
18226 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18227 if test "${ac_cv_lib_posix_remove+set}" = set; then
18228 echo $ECHO_N "(cached) $ECHO_C" >&6
18230 ac_check_lib_save_LIBS=$LIBS
18231 LIBS="-lposix $LIBS"
18232 cat >conftest.$ac_ext <<_ACEOF
18233 #line 18233 "configure"
18234 #include "confdefs.h"
18236 /* Override any gcc2 internal prototype to avoid an error. */
18240 /* We use char because int might match the return type of a gcc2
18241 builtin and then its argument prototype would still apply. */
18251 rm -f conftest.$ac_objext conftest$ac_exeext
18252 if { (eval echo "$as_me:18252: \"$ac_link\"") >&5
18253 (eval $ac_link) 2>&5
18255 echo "$as_me:18255: \$? = $ac_status" >&5
18256 (exit $ac_status); } &&
18257 { ac_try='test -s conftest$ac_exeext'
18258 { (eval echo "$as_me:18258: \"$ac_try\"") >&5
18259 (eval $ac_try) 2>&5
18261 echo "$as_me:18261: \$? = $ac_status" >&5
18262 (exit $ac_status); }; }; then
18263 ac_cv_lib_posix_remove=yes
18265 echo "$as_me: failed program was:" >&5
18266 cat conftest.$ac_ext >&5
18267 ac_cv_lib_posix_remove=no
18269 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18270 LIBS=$ac_check_lib_save_LIBS
18272 echo "$as_me:18272: result: $ac_cv_lib_posix_remove" >&5
18273 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18274 if test $ac_cv_lib_posix_remove = yes; then
18275 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18280 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18281 echo "$as_me:18281: checking for shmat" >&5
18282 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18283 if test "${ac_cv_func_shmat+set}" = set; then
18284 echo $ECHO_N "(cached) $ECHO_C" >&6
18286 cat >conftest.$ac_ext <<_ACEOF
18287 #line 18287 "configure"
18288 #include "confdefs.h"
18289 /* System header to define __stub macros and hopefully few prototypes,
18290 which can conflict with char shmat (); below. */
18291 #include <assert.h>
18292 /* Override any gcc2 internal prototype to avoid an error. */
18296 /* We use char because int might match the return type of a gcc2
18297 builtin and then its argument prototype would still apply. */
18304 /* The GNU C library defines this for functions which it implements
18305 to always fail with ENOSYS. Some functions are actually named
18306 something starting with __ and the normal name is an alias. */
18307 #if defined (__stub_shmat) || defined (__stub___shmat)
18310 f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18317 rm -f conftest.$ac_objext conftest$ac_exeext
18318 if { (eval echo "$as_me:18318: \"$ac_link\"") >&5
18319 (eval $ac_link) 2>&5
18321 echo "$as_me:18321: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
18323 { ac_try='test -s conftest$ac_exeext'
18324 { (eval echo "$as_me:18324: \"$ac_try\"") >&5
18325 (eval $ac_try) 2>&5
18327 echo "$as_me:18327: \$? = $ac_status" >&5
18328 (exit $ac_status); }; }; then
18329 ac_cv_func_shmat=yes
18331 echo "$as_me: failed program was:" >&5
18332 cat conftest.$ac_ext >&5
18333 ac_cv_func_shmat=no
18335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18337 echo "$as_me:18337: result: $ac_cv_func_shmat" >&5
18338 echo "${ECHO_T}$ac_cv_func_shmat" >&6
18340 if test $ac_cv_func_shmat = no; then
18341 echo "$as_me:18341: checking for shmat in -lipc" >&5
18342 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18343 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18344 echo $ECHO_N "(cached) $ECHO_C" >&6
18346 ac_check_lib_save_LIBS=$LIBS
18348 cat >conftest.$ac_ext <<_ACEOF
18349 #line 18349 "configure"
18350 #include "confdefs.h"
18352 /* Override any gcc2 internal prototype to avoid an error. */
18356 /* We use char because int might match the return type of a gcc2
18357 builtin and then its argument prototype would still apply. */
18367 rm -f conftest.$ac_objext conftest$ac_exeext
18368 if { (eval echo "$as_me:18368: \"$ac_link\"") >&5
18369 (eval $ac_link) 2>&5
18371 echo "$as_me:18371: \$? = $ac_status" >&5
18372 (exit $ac_status); } &&
18373 { ac_try='test -s conftest$ac_exeext'
18374 { (eval echo "$as_me:18374: \"$ac_try\"") >&5
18375 (eval $ac_try) 2>&5
18377 echo "$as_me:18377: \$? = $ac_status" >&5
18378 (exit $ac_status); }; }; then
18379 ac_cv_lib_ipc_shmat=yes
18381 echo "$as_me: failed program was:" >&5
18382 cat conftest.$ac_ext >&5
18383 ac_cv_lib_ipc_shmat=no
18385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18386 LIBS=$ac_check_lib_save_LIBS
18388 echo "$as_me:18388: result: $ac_cv_lib_ipc_shmat" >&5
18389 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18390 if test $ac_cv_lib_ipc_shmat = yes; then
18391 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18397 # Check for libraries that X11R6 Xt/Xaw programs need.
18398 ac_save_LDFLAGS=$LDFLAGS
18399 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18400 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18401 # check for ICE first), but we must link in the order -lSM -lICE or
18402 # we get undefined symbols. So assume we have SM if we have ICE.
18403 # These have to be linked with before -lX11, unlike the other
18404 # libraries we check for below, so use a different variable.
18405 # John Interrante, Karl Berry
18406 echo "$as_me:18406: checking for IceConnectionNumber in -lICE" >&5
18407 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18408 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18409 echo $ECHO_N "(cached) $ECHO_C" >&6
18411 ac_check_lib_save_LIBS=$LIBS
18412 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18413 cat >conftest.$ac_ext <<_ACEOF
18414 #line 18414 "configure"
18415 #include "confdefs.h"
18417 /* Override any gcc2 internal prototype to avoid an error. */
18421 /* We use char because int might match the return type of a gcc2
18422 builtin and then its argument prototype would still apply. */
18423 char IceConnectionNumber ();
18427 IceConnectionNumber ();
18432 rm -f conftest.$ac_objext conftest$ac_exeext
18433 if { (eval echo "$as_me:18433: \"$ac_link\"") >&5
18434 (eval $ac_link) 2>&5
18436 echo "$as_me:18436: \$? = $ac_status" >&5
18437 (exit $ac_status); } &&
18438 { ac_try='test -s conftest$ac_exeext'
18439 { (eval echo "$as_me:18439: \"$ac_try\"") >&5
18440 (eval $ac_try) 2>&5
18442 echo "$as_me:18442: \$? = $ac_status" >&5
18443 (exit $ac_status); }; }; then
18444 ac_cv_lib_ICE_IceConnectionNumber=yes
18446 echo "$as_me: failed program was:" >&5
18447 cat conftest.$ac_ext >&5
18448 ac_cv_lib_ICE_IceConnectionNumber=no
18450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18451 LIBS=$ac_check_lib_save_LIBS
18453 echo "$as_me:18453: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18454 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18455 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18456 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18459 LDFLAGS=$ac_save_LDFLAGS
18463 cf_x_athena=${cf_x_athena:-Xaw}
18465 echo "$as_me:18465: checking if you want to link with Xaw 3d library" >&5
18466 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
18469 # Check whether --with-Xaw3d or --without-Xaw3d was given.
18470 if test "${with_Xaw3d+set}" = set; then
18471 withval="$with_Xaw3d"
18474 if test "$withval" = yes ; then
18476 echo "$as_me:18476: result: yes" >&5
18477 echo "${ECHO_T}yes" >&6
18479 echo "$as_me:18479: result: no" >&5
18480 echo "${ECHO_T}no" >&6
18483 echo "$as_me:18483: checking if you want to link with Xaw 3d xft library" >&5
18484 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
18487 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
18488 if test "${with_Xaw3dxft+set}" = set; then
18489 withval="$with_Xaw3dxft"
18492 if test "$withval" = yes ; then
18493 cf_x_athena=Xaw3dxft
18494 echo "$as_me:18494: result: yes" >&5
18495 echo "${ECHO_T}yes" >&6
18497 echo "$as_me:18497: result: no" >&5
18498 echo "${ECHO_T}no" >&6
18501 echo "$as_me:18501: checking if you want to link with neXT Athena library" >&5
18502 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
18505 # Check whether --with-neXtaw or --without-neXtaw was given.
18506 if test "${with_neXtaw+set}" = set; then
18507 withval="$with_neXtaw"
18510 if test "$withval" = yes ; then
18512 echo "$as_me:18512: result: yes" >&5
18513 echo "${ECHO_T}yes" >&6
18515 echo "$as_me:18515: result: no" >&5
18516 echo "${ECHO_T}no" >&6
18519 echo "$as_me:18519: checking if you want to link with Athena-Plus library" >&5
18520 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
18523 # Check whether --with-XawPlus or --without-XawPlus was given.
18524 if test "${with_XawPlus+set}" = set; then
18525 withval="$with_XawPlus"
18528 if test "$withval" = yes ; then
18529 cf_x_athena=XawPlus
18530 echo "$as_me:18530: result: yes" >&5
18531 echo "${ECHO_T}yes" >&6
18533 echo "$as_me:18533: result: no" >&5
18534 echo "${ECHO_T}no" >&6
18539 if test "$PKG_CONFIG" != none ; then
18541 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
18542 for cf_athena_pkg in \
18545 ${cf_x_athena}-devel \
18546 lib${cf_x_athena} \
18547 lib${cf_x_athena}-devel
18550 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
18551 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
18553 echo "${as_me:-configure}:18553: testing found package $cf_athena_pkg ..." 1>&5
18555 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
18556 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
18557 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
18559 echo "${as_me:-configure}:18559: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
18561 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
18563 echo "${as_me:-configure}:18563: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
18568 cf_new_extra_cppflags=
18570 for cf_add_cflags in $cf_pkgconfig_incs
18572 case $cf_fix_cppflags in
18574 case $cf_add_cflags in
18575 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18576 case $cf_add_cflags in
18578 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18580 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18581 && test -z "${cf_tst_cflags}" \
18582 && cf_fix_cppflags=yes
18584 if test $cf_fix_cppflags = yes ; then
18586 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18587 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18590 elif test "${cf_tst_cflags}" = "\"'" ; then
18592 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18593 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18599 case "$CPPFLAGS" in
18603 case $cf_add_cflags in
18605 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18607 CPPFLAGS=`echo "$CPPFLAGS" | \
18608 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18609 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18614 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18615 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18622 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18623 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18630 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18631 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18633 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18635 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18636 && test -z "${cf_tst_cflags}" \
18637 && cf_fix_cppflags=no
18642 if test -n "$cf_new_cflags" ; then
18644 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18645 CFLAGS="${CFLAGS}$cf_new_cflags"
18649 if test -n "$cf_new_cppflags" ; then
18651 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18652 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18656 if test -n "$cf_new_extra_cppflags" ; then
18658 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18659 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18663 cf_add_libs="$cf_pkgconfig_libs"
18664 # Filter out duplicates - this happens with badly-designed ".pc" files...
18665 for cf_add_1lib in $LIBS
18667 for cf_add_2lib in $cf_add_libs
18669 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18675 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18677 LIBS="$cf_add_libs"
18679 cf_x_athena_lib="$cf_pkgconfig_libs"
18681 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18683 cat >>confdefs.h <<EOF
18684 #define $cf_x_athena_LIBS 1
18687 for cf_trim_lib in Xmu Xt X11
18690 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
18691 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
18692 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
18694 echo "${as_me:-configure}:18694: testing ..trimmed $LIBS ..." 1>&5
18700 echo "$as_me:18700: checking for usable $cf_x_athena/Xmu package" >&5
18701 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
18702 if test "${cf_cv_xaw_compat+set}" = set; then
18703 echo $ECHO_N "(cached) $ECHO_C" >&6
18706 cat >conftest.$ac_ext <<_ACEOF
18707 #line 18707 "configure"
18708 #include "confdefs.h"
18710 #include <X11/Xmu/CharSet.h>
18716 int check = XmuCompareISOLatin1("big", "small")
18722 rm -f conftest.$ac_objext conftest$ac_exeext
18723 if { (eval echo "$as_me:18723: \"$ac_link\"") >&5
18724 (eval $ac_link) 2>&5
18726 echo "$as_me:18726: \$? = $ac_status" >&5
18727 (exit $ac_status); } &&
18728 { ac_try='test -s conftest$ac_exeext'
18729 { (eval echo "$as_me:18729: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18732 echo "$as_me:18732: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18734 cf_cv_xaw_compat=yes
18736 echo "$as_me: failed program was:" >&5
18737 cat conftest.$ac_ext >&5
18738 cf_cv_xaw_compat=no
18740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18742 echo "$as_me:18742: result: $cf_cv_xaw_compat" >&5
18743 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
18745 if test "$cf_cv_xaw_compat" = no
18747 # workaround for broken ".pc" files...
18748 case "$cf_x_athena_lib" in
18752 test -n "$verbose" && echo " work around broken package" 1>&6
18754 echo "${as_me:-configure}:18754: testing work around broken package ..." 1>&5
18756 cf_save_xmu="$LIBS"
18757 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
18759 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
18760 test -n "$verbose" && echo " found package xmu" 1>&6
18762 echo "${as_me:-configure}:18762: testing found package xmu ..." 1>&5
18764 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
18765 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
18766 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
18768 echo "${as_me:-configure}:18768: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
18770 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
18772 echo "${as_me:-configure}:18772: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
18777 cf_new_extra_cppflags=
18779 for cf_add_cflags in $cf_pkgconfig_incs
18781 case $cf_fix_cppflags in
18783 case $cf_add_cflags in
18784 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18785 case $cf_add_cflags in
18787 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18789 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18790 && test -z "${cf_tst_cflags}" \
18791 && cf_fix_cppflags=yes
18793 if test $cf_fix_cppflags = yes ; then
18795 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18796 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18799 elif test "${cf_tst_cflags}" = "\"'" ; then
18801 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18802 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18808 case "$CPPFLAGS" in
18812 case $cf_add_cflags in
18814 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18816 CPPFLAGS=`echo "$CPPFLAGS" | \
18817 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18818 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18823 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18824 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18831 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18832 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18839 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18840 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18842 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18844 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18845 && test -z "${cf_tst_cflags}" \
18846 && cf_fix_cppflags=no
18851 if test -n "$cf_new_cflags" ; then
18853 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18854 CFLAGS="${CFLAGS}$cf_new_cflags"
18858 if test -n "$cf_new_cppflags" ; then
18860 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18861 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18865 if test -n "$cf_new_extra_cppflags" ; then
18867 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18868 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18872 cf_add_libs="$cf_pkgconfig_libs"
18873 # Filter out duplicates - this happens with badly-designed ".pc" files...
18874 for cf_add_1lib in $LIBS
18876 for cf_add_2lib in $cf_add_libs
18878 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18884 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18886 LIBS="$cf_add_libs"
18888 LIBS="$cf_save_xmu"
18890 test -n "$verbose" && echo " ...before $LIBS" 1>&6
18892 echo "${as_me:-configure}:18892: testing ...before $LIBS ..." 1>&5
18894 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
18895 test -n "$verbose" && echo " ...after $LIBS" 1>&6
18897 echo "${as_me:-configure}:18897: testing ...after $LIBS ..." 1>&5
18903 test -n "$verbose" && echo " ...before $LIBS" 1>&6
18905 echo "${as_me:-configure}:18905: testing ...before $LIBS ..." 1>&5
18907 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
18908 test -n "$verbose" && echo " ...after $LIBS" 1>&6
18910 echo "${as_me:-configure}:18910: testing ...after $LIBS ..." 1>&5
18914 for cf_trim_lib in Xmu Xt X11
18917 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
18918 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
18919 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
18921 echo "${as_me:-configure}:18921: testing ..trimmed $LIBS ..." 1>&5
18941 if test -z "$cf_x_athena_lib" ; then
18943 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
18944 test -n "$verbose" && echo " found package Xext" 1>&6
18946 echo "${as_me:-configure}:18946: testing found package Xext ..." 1>&5
18948 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
18949 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
18950 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
18952 echo "${as_me:-configure}:18952: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
18954 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
18956 echo "${as_me:-configure}:18956: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
18961 cf_new_extra_cppflags=
18963 for cf_add_cflags in $cf_pkgconfig_incs
18965 case $cf_fix_cppflags in
18967 case $cf_add_cflags in
18968 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18969 case $cf_add_cflags in
18971 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18973 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18974 && test -z "${cf_tst_cflags}" \
18975 && cf_fix_cppflags=yes
18977 if test $cf_fix_cppflags = yes ; then
18979 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18980 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18983 elif test "${cf_tst_cflags}" = "\"'" ; then
18985 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18986 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18992 case "$CPPFLAGS" in
18996 case $cf_add_cflags in
18998 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19000 CPPFLAGS=`echo "$CPPFLAGS" | \
19001 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19002 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19007 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19008 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19015 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19016 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19023 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19024 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19026 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19028 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19029 && test -z "${cf_tst_cflags}" \
19030 && cf_fix_cppflags=no
19035 if test -n "$cf_new_cflags" ; then
19037 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19038 CFLAGS="${CFLAGS}$cf_new_cflags"
19042 if test -n "$cf_new_cppflags" ; then
19044 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19045 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19049 if test -n "$cf_new_extra_cppflags" ; then
19051 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19052 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19056 cf_add_libs="$cf_pkgconfig_libs"
19057 # Filter out duplicates - this happens with badly-designed ".pc" files...
19058 for cf_add_1lib in $LIBS
19060 for cf_add_2lib in $cf_add_libs
19062 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19068 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19070 LIBS="$cf_add_libs"
19077 echo "$as_me:19077: checking for XextCreateExtension in -lXext" >&5
19078 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
19079 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
19080 echo $ECHO_N "(cached) $ECHO_C" >&6
19082 ac_check_lib_save_LIBS=$LIBS
19083 LIBS="-lXext $LIBS"
19084 cat >conftest.$ac_ext <<_ACEOF
19085 #line 19085 "configure"
19086 #include "confdefs.h"
19088 /* Override any gcc2 internal prototype to avoid an error. */
19092 /* We use char because int might match the return type of a gcc2
19093 builtin and then its argument prototype would still apply. */
19094 char XextCreateExtension ();
19098 XextCreateExtension ();
19103 rm -f conftest.$ac_objext conftest$ac_exeext
19104 if { (eval echo "$as_me:19104: \"$ac_link\"") >&5
19105 (eval $ac_link) 2>&5
19107 echo "$as_me:19107: \$? = $ac_status" >&5
19108 (exit $ac_status); } &&
19109 { ac_try='test -s conftest$ac_exeext'
19110 { (eval echo "$as_me:19110: \"$ac_try\"") >&5
19111 (eval $ac_try) 2>&5
19113 echo "$as_me:19113: \$? = $ac_status" >&5
19114 (exit $ac_status); }; }; then
19115 ac_cv_lib_Xext_XextCreateExtension=yes
19117 echo "$as_me: failed program was:" >&5
19118 cat conftest.$ac_ext >&5
19119 ac_cv_lib_Xext_XextCreateExtension=no
19121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19122 LIBS=$ac_check_lib_save_LIBS
19124 echo "$as_me:19124: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
19125 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
19126 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
19128 cf_add_libs="-lXext"
19129 # Filter out duplicates - this happens with badly-designed ".pc" files...
19130 for cf_add_1lib in $LIBS
19132 for cf_add_2lib in $cf_add_libs
19134 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19140 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19142 LIBS="$cf_add_libs"
19148 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new), and (and
19149 # in some cases has installed dummy files in the former, other cases replaced
19150 # it with a link to the new location). This complicates the configure script.
19151 # Check for that pitfall, and recover using pkg-config
19153 # If none of these are set, the configuration is almost certainly broken.
19154 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
19157 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
19158 test -n "$verbose" && echo " found package x11" 1>&6
19160 echo "${as_me:-configure}:19160: testing found package x11 ..." 1>&5
19162 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
19163 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
19164 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
19166 echo "${as_me:-configure}:19166: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
19168 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
19170 echo "${as_me:-configure}:19170: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
19175 cf_new_extra_cppflags=
19177 for cf_add_cflags in $cf_pkgconfig_incs
19179 case $cf_fix_cppflags in
19181 case $cf_add_cflags in
19182 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19183 case $cf_add_cflags in
19185 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19187 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19188 && test -z "${cf_tst_cflags}" \
19189 && cf_fix_cppflags=yes
19191 if test $cf_fix_cppflags = yes ; then
19193 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19194 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19197 elif test "${cf_tst_cflags}" = "\"'" ; then
19199 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19200 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19206 case "$CPPFLAGS" in
19210 case $cf_add_cflags in
19212 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19214 CPPFLAGS=`echo "$CPPFLAGS" | \
19215 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19216 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19221 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19222 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19229 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19230 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19237 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19238 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19240 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19242 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19243 && test -z "${cf_tst_cflags}" \
19244 && cf_fix_cppflags=no
19249 if test -n "$cf_new_cflags" ; then
19251 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19252 CFLAGS="${CFLAGS}$cf_new_cflags"
19256 if test -n "$cf_new_cppflags" ; then
19258 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19259 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19263 if test -n "$cf_new_extra_cppflags" ; then
19265 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19266 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19270 cf_add_libs="$cf_pkgconfig_libs"
19271 # Filter out duplicates - this happens with badly-designed ".pc" files...
19272 for cf_add_1lib in $LIBS
19274 for cf_add_2lib in $cf_add_libs
19276 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19282 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19284 LIBS="$cf_add_libs"
19290 { echo "$as_me:19290: WARNING: unable to find X11 library" >&5
19291 echo "$as_me: WARNING: unable to find X11 library" >&2;}
19294 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
19295 test -n "$verbose" && echo " found package ice" 1>&6
19297 echo "${as_me:-configure}:19297: testing found package ice ..." 1>&5
19299 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
19300 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
19301 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
19303 echo "${as_me:-configure}:19303: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
19305 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
19307 echo "${as_me:-configure}:19307: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
19312 cf_new_extra_cppflags=
19314 for cf_add_cflags in $cf_pkgconfig_incs
19316 case $cf_fix_cppflags in
19318 case $cf_add_cflags in
19319 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19320 case $cf_add_cflags in
19322 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19324 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19325 && test -z "${cf_tst_cflags}" \
19326 && cf_fix_cppflags=yes
19328 if test $cf_fix_cppflags = yes ; then
19330 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19331 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19334 elif test "${cf_tst_cflags}" = "\"'" ; then
19336 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19337 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19343 case "$CPPFLAGS" in
19347 case $cf_add_cflags in
19349 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19351 CPPFLAGS=`echo "$CPPFLAGS" | \
19352 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19353 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19358 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19359 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19366 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19367 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19374 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19375 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19377 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19379 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19380 && test -z "${cf_tst_cflags}" \
19381 && cf_fix_cppflags=no
19386 if test -n "$cf_new_cflags" ; then
19388 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19389 CFLAGS="${CFLAGS}$cf_new_cflags"
19393 if test -n "$cf_new_cppflags" ; then
19395 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19396 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19400 if test -n "$cf_new_extra_cppflags" ; then
19402 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19403 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19407 cf_add_libs="$cf_pkgconfig_libs"
19408 # Filter out duplicates - this happens with badly-designed ".pc" files...
19409 for cf_add_1lib in $LIBS
19411 for cf_add_2lib in $cf_add_libs
19413 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19419 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19421 LIBS="$cf_add_libs"
19427 { echo "$as_me:19427: WARNING: unable to find ICE library" >&5
19428 echo "$as_me: WARNING: unable to find ICE library" >&2;}
19431 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
19432 test -n "$verbose" && echo " found package sm" 1>&6
19434 echo "${as_me:-configure}:19434: testing found package sm ..." 1>&5
19436 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
19437 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
19438 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
19440 echo "${as_me:-configure}:19440: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
19442 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
19444 echo "${as_me:-configure}:19444: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
19449 cf_new_extra_cppflags=
19451 for cf_add_cflags in $cf_pkgconfig_incs
19453 case $cf_fix_cppflags in
19455 case $cf_add_cflags in
19456 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19457 case $cf_add_cflags in
19459 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19461 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19462 && test -z "${cf_tst_cflags}" \
19463 && cf_fix_cppflags=yes
19465 if test $cf_fix_cppflags = yes ; then
19467 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19468 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19471 elif test "${cf_tst_cflags}" = "\"'" ; then
19473 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19474 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19480 case "$CPPFLAGS" in
19484 case $cf_add_cflags in
19486 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19488 CPPFLAGS=`echo "$CPPFLAGS" | \
19489 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19490 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19495 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19496 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19503 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19504 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19511 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19512 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19514 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19516 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19517 && test -z "${cf_tst_cflags}" \
19518 && cf_fix_cppflags=no
19523 if test -n "$cf_new_cflags" ; then
19525 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19526 CFLAGS="${CFLAGS}$cf_new_cflags"
19530 if test -n "$cf_new_cppflags" ; then
19532 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19533 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19537 if test -n "$cf_new_extra_cppflags" ; then
19539 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19540 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19544 cf_add_libs="$cf_pkgconfig_libs"
19545 # Filter out duplicates - this happens with badly-designed ".pc" files...
19546 for cf_add_1lib in $LIBS
19548 for cf_add_2lib in $cf_add_libs
19550 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19556 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19558 LIBS="$cf_add_libs"
19564 { echo "$as_me:19564: WARNING: unable to find SM library" >&5
19565 echo "$as_me: WARNING: unable to find SM library" >&2;}
19568 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
19569 test -n "$verbose" && echo " found package xt" 1>&6
19571 echo "${as_me:-configure}:19571: testing found package xt ..." 1>&5
19573 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
19574 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
19575 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
19577 echo "${as_me:-configure}:19577: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
19579 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
19581 echo "${as_me:-configure}:19581: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
19586 cf_new_extra_cppflags=
19588 for cf_add_cflags in $cf_pkgconfig_incs
19590 case $cf_fix_cppflags in
19592 case $cf_add_cflags in
19593 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19594 case $cf_add_cflags in
19596 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19598 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19599 && test -z "${cf_tst_cflags}" \
19600 && cf_fix_cppflags=yes
19602 if test $cf_fix_cppflags = yes ; then
19604 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19605 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19608 elif test "${cf_tst_cflags}" = "\"'" ; then
19610 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19611 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19617 case "$CPPFLAGS" in
19621 case $cf_add_cflags in
19623 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19625 CPPFLAGS=`echo "$CPPFLAGS" | \
19626 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19627 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19632 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19633 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19640 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19641 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19648 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19649 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19651 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19653 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19654 && test -z "${cf_tst_cflags}" \
19655 && cf_fix_cppflags=no
19660 if test -n "$cf_new_cflags" ; then
19662 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19663 CFLAGS="${CFLAGS}$cf_new_cflags"
19667 if test -n "$cf_new_cppflags" ; then
19669 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19670 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19674 if test -n "$cf_new_extra_cppflags" ; then
19676 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19677 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19681 cf_add_libs="$cf_pkgconfig_libs"
19682 # Filter out duplicates - this happens with badly-designed ".pc" files...
19683 for cf_add_1lib in $LIBS
19685 for cf_add_2lib in $cf_add_libs
19687 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19693 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19695 LIBS="$cf_add_libs"
19701 { echo "$as_me:19701: WARNING: unable to find Xt library" >&5
19702 echo "$as_me: WARNING: unable to find Xt library" >&2;}
19709 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
19710 test -n "$verbose" && echo " found package xt" 1>&6
19712 echo "${as_me:-configure}:19712: testing found package xt ..." 1>&5
19714 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
19715 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
19716 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
19718 echo "${as_me:-configure}:19718: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
19720 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
19722 echo "${as_me:-configure}:19722: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
19727 cf_new_extra_cppflags=
19729 for cf_add_cflags in $cf_pkgconfig_incs
19731 case $cf_fix_cppflags in
19733 case $cf_add_cflags in
19734 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19735 case $cf_add_cflags in
19737 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19739 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19740 && test -z "${cf_tst_cflags}" \
19741 && cf_fix_cppflags=yes
19743 if test $cf_fix_cppflags = yes ; then
19745 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19746 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19749 elif test "${cf_tst_cflags}" = "\"'" ; then
19751 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19752 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19758 case "$CPPFLAGS" in
19762 case $cf_add_cflags in
19764 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19766 CPPFLAGS=`echo "$CPPFLAGS" | \
19767 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19768 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19773 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19774 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19781 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19782 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19789 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19790 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19792 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19794 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19795 && test -z "${cf_tst_cflags}" \
19796 && cf_fix_cppflags=no
19801 if test -n "$cf_new_cflags" ; then
19803 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19804 CFLAGS="${CFLAGS}$cf_new_cflags"
19808 if test -n "$cf_new_cppflags" ; then
19810 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
19811 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19815 if test -n "$cf_new_extra_cppflags" ; then
19817 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19818 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19822 cf_add_libs="$cf_pkgconfig_libs"
19823 # Filter out duplicates - this happens with badly-designed ".pc" files...
19824 for cf_add_1lib in $LIBS
19826 for cf_add_2lib in $cf_add_libs
19828 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19834 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19836 LIBS="$cf_add_libs"
19842 # we have an "xt" package, but it may omit Xt's dependency on X11
19843 echo "$as_me:19843: checking for usable X dependency" >&5
19844 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
19845 if test "${cf_cv_xt_x11_compat+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19849 cat >conftest.$ac_ext <<_ACEOF
19850 #line 19850 "configure"
19851 #include "confdefs.h"
19853 #include <X11/Xlib.h>
19859 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
19860 int rc2 = XClearWindow((Display*) 0, (Window) 0);
19861 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
19862 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
19868 rm -f conftest.$ac_objext conftest$ac_exeext
19869 if { (eval echo "$as_me:19869: \"$ac_link\"") >&5
19870 (eval $ac_link) 2>&5
19872 echo "$as_me:19872: \$? = $ac_status" >&5
19873 (exit $ac_status); } &&
19874 { ac_try='test -s conftest$ac_exeext'
19875 { (eval echo "$as_me:19875: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19878 echo "$as_me:19878: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
19880 cf_cv_xt_x11_compat=yes
19882 echo "$as_me: failed program was:" >&5
19883 cat conftest.$ac_ext >&5
19884 cf_cv_xt_x11_compat=no
19886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19888 echo "$as_me:19888: result: $cf_cv_xt_x11_compat" >&5
19889 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
19890 if test "$cf_cv_xt_x11_compat" = no
19892 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
19894 echo "${as_me:-configure}:19894: testing work around broken X11 dependency ..." 1>&5
19896 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
19898 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
19899 test -n "$verbose" && echo " found package x11" 1>&6
19901 echo "${as_me:-configure}:19901: testing found package x11 ..." 1>&5
19903 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
19904 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
19905 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
19907 echo "${as_me:-configure}:19907: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
19909 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
19911 echo "${as_me:-configure}:19911: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
19916 cf_new_extra_cppflags=
19918 for cf_add_cflags in $cf_pkgconfig_incs
19920 case $cf_fix_cppflags in
19922 case $cf_add_cflags in
19923 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
19924 case $cf_add_cflags in
19926 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
19928 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19929 && test -z "${cf_tst_cflags}" \
19930 && cf_fix_cppflags=yes
19932 if test $cf_fix_cppflags = yes ; then
19934 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19935 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19938 elif test "${cf_tst_cflags}" = "\"'" ; then
19940 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19941 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19947 case "$CPPFLAGS" in
19951 case $cf_add_cflags in
19953 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
19955 CPPFLAGS=`echo "$CPPFLAGS" | \
19956 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
19957 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
19962 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
19963 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
19970 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
19971 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
19978 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
19979 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
19981 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
19983 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
19984 && test -z "${cf_tst_cflags}" \
19985 && cf_fix_cppflags=no
19990 if test -n "$cf_new_cflags" ; then
19992 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
19993 CFLAGS="${CFLAGS}$cf_new_cflags"
19997 if test -n "$cf_new_cppflags" ; then
19999 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20000 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20004 if test -n "$cf_new_extra_cppflags" ; then
20006 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20007 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20011 cf_add_libs="$cf_pkgconfig_libs"
20012 # Filter out duplicates - this happens with badly-designed ".pc" files...
20013 for cf_add_1lib in $LIBS
20015 for cf_add_2lib in $cf_add_libs
20017 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20023 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20025 LIBS="$cf_add_libs"
20032 test -n "$verbose" && echo " ...before $LIBS" 1>&6
20034 echo "${as_me:-configure}:20034: testing ...before $LIBS ..." 1>&5
20036 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
20037 test -n "$verbose" && echo " ...after $LIBS" 1>&6
20039 echo "${as_me:-configure}:20039: testing ...after $LIBS ..." 1>&5
20047 echo "$as_me:20047: checking for usable X Toolkit package" >&5
20048 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
20049 if test "${cf_cv_xt_ice_compat+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20053 cat >conftest.$ac_ext <<_ACEOF
20054 #line 20054 "configure"
20055 #include "confdefs.h"
20057 #include <X11/Shell.h>
20062 int num = IceConnectionNumber(0)
20068 rm -f conftest.$ac_objext conftest$ac_exeext
20069 if { (eval echo "$as_me:20069: \"$ac_link\"") >&5
20070 (eval $ac_link) 2>&5
20072 echo "$as_me:20072: \$? = $ac_status" >&5
20073 (exit $ac_status); } &&
20074 { ac_try='test -s conftest$ac_exeext'
20075 { (eval echo "$as_me:20075: \"$ac_try\"") >&5
20076 (eval $ac_try) 2>&5
20078 echo "$as_me:20078: \$? = $ac_status" >&5
20079 (exit $ac_status); }; }; then
20080 cf_cv_xt_ice_compat=yes
20082 echo "$as_me: failed program was:" >&5
20083 cat conftest.$ac_ext >&5
20084 cf_cv_xt_ice_compat=no
20086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20088 echo "$as_me:20088: result: $cf_cv_xt_ice_compat" >&5
20089 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
20091 if test "$cf_cv_xt_ice_compat" = no
20093 # workaround for broken ".pc" files used for X Toolkit.
20094 case "x$X_PRE_LIBS" in
20100 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
20102 echo "${as_me:-configure}:20102: testing work around broken ICE dependency ..." 1>&5
20104 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
20105 test -n "$verbose" && echo " found package ice" 1>&6
20107 echo "${as_me:-configure}:20107: testing found package ice ..." 1>&5
20109 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
20110 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
20111 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
20113 echo "${as_me:-configure}:20113: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
20115 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
20117 echo "${as_me:-configure}:20117: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
20122 cf_new_extra_cppflags=
20124 for cf_add_cflags in $cf_pkgconfig_incs
20126 case $cf_fix_cppflags in
20128 case $cf_add_cflags in
20129 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20130 case $cf_add_cflags in
20132 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20134 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20135 && test -z "${cf_tst_cflags}" \
20136 && cf_fix_cppflags=yes
20138 if test $cf_fix_cppflags = yes ; then
20140 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20141 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20144 elif test "${cf_tst_cflags}" = "\"'" ; then
20146 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20147 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20153 case "$CPPFLAGS" in
20157 case $cf_add_cflags in
20159 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20161 CPPFLAGS=`echo "$CPPFLAGS" | \
20162 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20163 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20168 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20169 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20176 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20177 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20184 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20185 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20187 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20189 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20190 && test -z "${cf_tst_cflags}" \
20191 && cf_fix_cppflags=no
20196 if test -n "$cf_new_cflags" ; then
20198 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20199 CFLAGS="${CFLAGS}$cf_new_cflags"
20203 if test -n "$cf_new_cppflags" ; then
20205 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20206 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20210 if test -n "$cf_new_extra_cppflags" ; then
20212 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20213 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20217 cf_add_libs="$cf_pkgconfig_libs"
20218 # Filter out duplicates - this happens with badly-designed ".pc" files...
20219 for cf_add_1lib in $LIBS
20221 for cf_add_2lib in $cf_add_libs
20223 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20229 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20231 LIBS="$cf_add_libs"
20233 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
20234 test -n "$verbose" && echo " found package sm" 1>&6
20236 echo "${as_me:-configure}:20236: testing found package sm ..." 1>&5
20238 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
20239 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
20240 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
20242 echo "${as_me:-configure}:20242: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
20244 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
20246 echo "${as_me:-configure}:20246: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
20251 cf_new_extra_cppflags=
20253 for cf_add_cflags in $cf_pkgconfig_incs
20255 case $cf_fix_cppflags in
20257 case $cf_add_cflags in
20258 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20259 case $cf_add_cflags in
20261 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20263 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20264 && test -z "${cf_tst_cflags}" \
20265 && cf_fix_cppflags=yes
20267 if test $cf_fix_cppflags = yes ; then
20269 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20270 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20273 elif test "${cf_tst_cflags}" = "\"'" ; then
20275 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20276 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20282 case "$CPPFLAGS" in
20286 case $cf_add_cflags in
20288 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20290 CPPFLAGS=`echo "$CPPFLAGS" | \
20291 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20292 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20297 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20298 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20305 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20306 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20313 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20314 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20316 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20318 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20319 && test -z "${cf_tst_cflags}" \
20320 && cf_fix_cppflags=no
20325 if test -n "$cf_new_cflags" ; then
20327 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20328 CFLAGS="${CFLAGS}$cf_new_cflags"
20332 if test -n "$cf_new_cppflags" ; then
20334 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20335 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20339 if test -n "$cf_new_extra_cppflags" ; then
20341 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20342 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20346 cf_add_libs="$cf_pkgconfig_libs"
20347 # Filter out duplicates - this happens with badly-designed ".pc" files...
20348 for cf_add_1lib in $LIBS
20350 for cf_add_2lib in $cf_add_libs
20352 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20358 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20360 LIBS="$cf_add_libs"
20373 test -n "$verbose" && echo " ...before $LIBS" 1>&6
20375 echo "${as_me:-configure}:20375: testing ...before $LIBS ..." 1>&5
20377 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
20378 test -n "$verbose" && echo " ...after $LIBS" 1>&6
20380 echo "${as_me:-configure}:20380: testing ...after $LIBS ..." 1>&5
20396 LDFLAGS="$X_LIBS $LDFLAGS"
20398 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
20400 echo "${as_me:-configure}:20400: testing checking additions to CFLAGS ..." 1>&5
20402 cf_check_cflags="$CFLAGS"
20403 cf_check_cppflags="$CPPFLAGS"
20408 cf_new_extra_cppflags=
20410 for cf_add_cflags in $X_CFLAGS
20412 case $cf_fix_cppflags in
20414 case $cf_add_cflags in
20415 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20416 case $cf_add_cflags in
20418 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20420 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20421 && test -z "${cf_tst_cflags}" \
20422 && cf_fix_cppflags=yes
20424 if test $cf_fix_cppflags = yes ; then
20426 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20427 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20430 elif test "${cf_tst_cflags}" = "\"'" ; then
20432 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20433 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20439 case "$CPPFLAGS" in
20443 case $cf_add_cflags in
20445 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20447 CPPFLAGS=`echo "$CPPFLAGS" | \
20448 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20449 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20454 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20455 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20462 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20463 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20470 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20471 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20473 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20475 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20476 && test -z "${cf_tst_cflags}" \
20477 && cf_fix_cppflags=no
20482 if test -n "$cf_new_cflags" ; then
20483 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
20485 echo "${as_me:-configure}:20485: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
20487 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20488 CFLAGS="${CFLAGS}$cf_new_cflags"
20492 if test -n "$cf_new_cppflags" ; then
20493 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
20495 echo "${as_me:-configure}:20495: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
20497 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20498 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20502 if test -n "$cf_new_extra_cppflags" ; then
20503 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
20505 echo "${as_me:-configure}:20505: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
20507 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20508 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20512 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
20513 cat >conftest.$ac_ext <<_ACEOF
20514 #line 20514 "configure"
20515 #include "confdefs.h"
20520 printf("Hello world");
20525 rm -f conftest.$ac_objext conftest$ac_exeext
20526 if { (eval echo "$as_me:20526: \"$ac_link\"") >&5
20527 (eval $ac_link) 2>&5
20529 echo "$as_me:20529: \$? = $ac_status" >&5
20530 (exit $ac_status); } &&
20531 { ac_try='test -s conftest$ac_exeext'
20532 { (eval echo "$as_me:20532: \"$ac_try\"") >&5
20533 (eval $ac_try) 2>&5
20535 echo "$as_me:20535: \$? = $ac_status" >&5
20536 (exit $ac_status); }; }; then
20539 echo "$as_me: failed program was:" >&5
20540 cat conftest.$ac_ext >&5
20541 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
20543 echo "${as_me:-configure}:20543: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
20545 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
20546 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
20548 echo "${as_me:-configure}:20548: testing but keeping change to \$CPPFLAGS ..." 1>&5
20551 CFLAGS="$cf_check_flags"
20553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20556 echo "$as_me:20556: checking for XOpenDisplay" >&5
20557 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
20558 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
20559 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 cat >conftest.$ac_ext <<_ACEOF
20562 #line 20562 "configure"
20563 #include "confdefs.h"
20564 /* System header to define __stub macros and hopefully few prototypes,
20565 which can conflict with char XOpenDisplay (); below. */
20566 #include <assert.h>
20567 /* Override any gcc2 internal prototype to avoid an error. */
20571 /* We use char because int might match the return type of a gcc2
20572 builtin and then its argument prototype would still apply. */
20573 char XOpenDisplay ();
20579 /* The GNU C library defines this for functions which it implements
20580 to always fail with ENOSYS. Some functions are actually named
20581 something starting with __ and the normal name is an alias. */
20582 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
20585 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
20592 rm -f conftest.$ac_objext conftest$ac_exeext
20593 if { (eval echo "$as_me:20593: \"$ac_link\"") >&5
20594 (eval $ac_link) 2>&5
20596 echo "$as_me:20596: \$? = $ac_status" >&5
20597 (exit $ac_status); } &&
20598 { ac_try='test -s conftest$ac_exeext'
20599 { (eval echo "$as_me:20599: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20602 echo "$as_me:20602: \$? = $ac_status" >&5
20603 (exit $ac_status); }; }; then
20604 ac_cv_func_XOpenDisplay=yes
20606 echo "$as_me: failed program was:" >&5
20607 cat conftest.$ac_ext >&5
20608 ac_cv_func_XOpenDisplay=no
20610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20612 echo "$as_me:20612: result: $ac_cv_func_XOpenDisplay" >&5
20613 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
20614 if test $ac_cv_func_XOpenDisplay = yes; then
20618 echo "$as_me:20618: checking for XOpenDisplay in -lX11" >&5
20619 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
20620 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
20621 echo $ECHO_N "(cached) $ECHO_C" >&6
20623 ac_check_lib_save_LIBS=$LIBS
20624 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
20625 cat >conftest.$ac_ext <<_ACEOF
20626 #line 20626 "configure"
20627 #include "confdefs.h"
20629 /* Override any gcc2 internal prototype to avoid an error. */
20633 /* We use char because int might match the return type of a gcc2
20634 builtin and then its argument prototype would still apply. */
20635 char XOpenDisplay ();
20644 rm -f conftest.$ac_objext conftest$ac_exeext
20645 if { (eval echo "$as_me:20645: \"$ac_link\"") >&5
20646 (eval $ac_link) 2>&5
20648 echo "$as_me:20648: \$? = $ac_status" >&5
20649 (exit $ac_status); } &&
20650 { ac_try='test -s conftest$ac_exeext'
20651 { (eval echo "$as_me:20651: \"$ac_try\"") >&5
20652 (eval $ac_try) 2>&5
20654 echo "$as_me:20654: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }; then
20656 ac_cv_lib_X11_XOpenDisplay=yes
20658 echo "$as_me: failed program was:" >&5
20659 cat conftest.$ac_ext >&5
20660 ac_cv_lib_X11_XOpenDisplay=no
20662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20663 LIBS=$ac_check_lib_save_LIBS
20665 echo "$as_me:20665: result: $ac_cv_lib_X11_XOpenDisplay" >&5
20666 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
20667 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
20669 cf_add_libs="-lX11"
20670 # Filter out duplicates - this happens with badly-designed ".pc" files...
20671 for cf_add_1lib in $LIBS
20673 for cf_add_2lib in $cf_add_libs
20675 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20681 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20683 LIBS="$cf_add_libs"
20689 echo "$as_me:20689: checking for XtAppInitialize" >&5
20690 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
20691 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 cat >conftest.$ac_ext <<_ACEOF
20695 #line 20695 "configure"
20696 #include "confdefs.h"
20697 /* System header to define __stub macros and hopefully few prototypes,
20698 which can conflict with char XtAppInitialize (); below. */
20699 #include <assert.h>
20700 /* Override any gcc2 internal prototype to avoid an error. */
20704 /* We use char because int might match the return type of a gcc2
20705 builtin and then its argument prototype would still apply. */
20706 char XtAppInitialize ();
20712 /* The GNU C library defines this for functions which it implements
20713 to always fail with ENOSYS. Some functions are actually named
20714 something starting with __ and the normal name is an alias. */
20715 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
20718 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
20725 rm -f conftest.$ac_objext conftest$ac_exeext
20726 if { (eval echo "$as_me:20726: \"$ac_link\"") >&5
20727 (eval $ac_link) 2>&5
20729 echo "$as_me:20729: \$? = $ac_status" >&5
20730 (exit $ac_status); } &&
20731 { ac_try='test -s conftest$ac_exeext'
20732 { (eval echo "$as_me:20732: \"$ac_try\"") >&5
20733 (eval $ac_try) 2>&5
20735 echo "$as_me:20735: \$? = $ac_status" >&5
20736 (exit $ac_status); }; }; then
20737 ac_cv_func_XtAppInitialize=yes
20739 echo "$as_me: failed program was:" >&5
20740 cat conftest.$ac_ext >&5
20741 ac_cv_func_XtAppInitialize=no
20743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20745 echo "$as_me:20745: result: $ac_cv_func_XtAppInitialize" >&5
20746 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
20747 if test $ac_cv_func_XtAppInitialize = yes; then
20751 echo "$as_me:20751: checking for XtAppInitialize in -lXt" >&5
20752 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
20753 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20756 ac_check_lib_save_LIBS=$LIBS
20757 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
20758 cat >conftest.$ac_ext <<_ACEOF
20759 #line 20759 "configure"
20760 #include "confdefs.h"
20762 /* Override any gcc2 internal prototype to avoid an error. */
20766 /* We use char because int might match the return type of a gcc2
20767 builtin and then its argument prototype would still apply. */
20768 char XtAppInitialize ();
20772 XtAppInitialize ();
20777 rm -f conftest.$ac_objext conftest$ac_exeext
20778 if { (eval echo "$as_me:20778: \"$ac_link\"") >&5
20779 (eval $ac_link) 2>&5
20781 echo "$as_me:20781: \$? = $ac_status" >&5
20782 (exit $ac_status); } &&
20783 { ac_try='test -s conftest$ac_exeext'
20784 { (eval echo "$as_me:20784: \"$ac_try\"") >&5
20785 (eval $ac_try) 2>&5
20787 echo "$as_me:20787: \$? = $ac_status" >&5
20788 (exit $ac_status); }; }; then
20789 ac_cv_lib_Xt_XtAppInitialize=yes
20791 echo "$as_me: failed program was:" >&5
20792 cat conftest.$ac_ext >&5
20793 ac_cv_lib_Xt_XtAppInitialize=no
20795 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20796 LIBS=$ac_check_lib_save_LIBS
20798 echo "$as_me:20798: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
20799 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
20800 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
20802 cat >>confdefs.h <<\EOF
20803 #define HAVE_LIBXT 1
20807 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
20814 if test $cf_have_X_LIBS = no ; then
20815 { echo "$as_me:20815: WARNING: Unable to successfully link X Toolkit library (-lXt) with
20816 test program. You will have to check and add the proper libraries by hand
20818 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
20819 test program. You will have to check and add the proper libraries by hand
20820 to makefile." >&2;}
20823 cf_x_athena_root=$cf_x_athena
20826 for cf_path in default \
20827 /usr/contrib/X11R6 \
20828 /usr/contrib/X11R5 \
20832 if test -z "$cf_x_athena_inc" ; then
20833 cf_save="$CPPFLAGS"
20834 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
20835 if test $cf_path != default ; then
20836 CPPFLAGS="$cf_save"
20838 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20839 CPPFLAGS="${CPPFLAGS}-I$cf_path/include"
20841 echo "$as_me:20841: checking for $cf_test in $cf_path" >&5
20842 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
20844 echo "$as_me:20844: checking for $cf_test" >&5
20845 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
20847 cat >conftest.$ac_ext <<_ACEOF
20848 #line 20848 "configure"
20849 #include "confdefs.h"
20851 #include <X11/Intrinsic.h>
20852 #include <$cf_test>
20861 rm -f conftest.$ac_objext
20862 if { (eval echo "$as_me:20862: \"$ac_compile\"") >&5
20863 (eval $ac_compile) 2>&5
20865 echo "$as_me:20865: \$? = $ac_status" >&5
20866 (exit $ac_status); } &&
20867 { ac_try='test -s conftest.$ac_objext'
20868 { (eval echo "$as_me:20868: \"$ac_try\"") >&5
20869 (eval $ac_try) 2>&5
20871 echo "$as_me:20871: \$? = $ac_status" >&5
20872 (exit $ac_status); }; }; then
20875 echo "$as_me: failed program was:" >&5
20876 cat conftest.$ac_ext >&5
20879 rm -f conftest.$ac_objext conftest.$ac_ext
20880 echo "$as_me:20880: result: $cf_result" >&5
20881 echo "${ECHO_T}$cf_result" >&6
20882 if test "$cf_result" = yes ; then
20883 cf_x_athena_inc=$cf_path
20886 CPPFLAGS="$cf_save"
20891 if test -z "$cf_x_athena_inc" ; then
20892 { echo "$as_me:20892: WARNING: Unable to successfully find Athena header files with test program" >&5
20893 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
20894 elif test "$cf_x_athena_inc" != default ; then
20896 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20897 CPPFLAGS="${CPPFLAGS}-I$cf_x_athena_inc"
20901 cf_x_athena_root=$cf_x_athena
20904 for cf_path in default \
20905 /usr/contrib/X11R6 \
20906 /usr/contrib/X11R5 \
20911 ${cf_x_athena_root} \
20912 ${cf_x_athena_root}7 \
20913 ${cf_x_athena_root}6
20916 "-l$cf_lib -lXmu" \
20917 "-l$cf_lib -lXpm -lXmu" \
20918 "-l${cf_lib}_s -lXmu_s"
20920 if test -z "$cf_x_athena_lib" ; then
20922 cf_test=XawSimpleMenuAddGlobalActions
20923 if test $cf_path != default ; then
20925 cf_add_libs="-L$cf_path/lib $cf_libs"
20926 # Filter out duplicates - this happens with badly-designed ".pc" files...
20927 for cf_add_1lib in $LIBS
20929 for cf_add_2lib in $cf_add_libs
20931 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20937 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20939 LIBS="$cf_add_libs"
20941 echo "$as_me:20941: checking for $cf_libs in $cf_path" >&5
20942 echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6
20945 cf_add_libs="$cf_libs"
20946 # Filter out duplicates - this happens with badly-designed ".pc" files...
20947 for cf_add_1lib in $LIBS
20949 for cf_add_2lib in $cf_add_libs
20951 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20957 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20959 LIBS="$cf_add_libs"
20961 echo "$as_me:20961: checking for $cf_test in $cf_libs" >&5
20962 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
20964 cat >conftest.$ac_ext <<_ACEOF
20965 #line 20965 "configure"
20966 #include "confdefs.h"
20968 #include <X11/Intrinsic.h>
20969 #include <X11/$cf_x_athena_root/SimpleMenu.h>
20975 $cf_test((XtAppContext) 0)
20980 rm -f conftest.$ac_objext conftest$ac_exeext
20981 if { (eval echo "$as_me:20981: \"$ac_link\"") >&5
20982 (eval $ac_link) 2>&5
20984 echo "$as_me:20984: \$? = $ac_status" >&5
20985 (exit $ac_status); } &&
20986 { ac_try='test -s conftest$ac_exeext'
20987 { (eval echo "$as_me:20987: \"$ac_try\"") >&5
20988 (eval $ac_try) 2>&5
20990 echo "$as_me:20990: \$? = $ac_status" >&5
20991 (exit $ac_status); }; }; then
20994 echo "$as_me: failed program was:" >&5
20995 cat conftest.$ac_ext >&5
20998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20999 echo "$as_me:20999: result: $cf_result" >&5
21000 echo "${ECHO_T}$cf_result" >&6
21001 if test "$cf_result" = yes ; then
21002 cf_x_athena_lib="$cf_libs"
21008 test -n "$cf_x_athena_lib" && break
21012 if test -z "$cf_x_athena_lib" ; then
21013 { { echo "$as_me:21013: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
21014 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
21015 { (exit 1); exit 1; }; }
21018 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21020 cat >>confdefs.h <<EOF
21021 #define $cf_x_athena_LIBS 1
21026 if test -n "$ac_tool_prefix"; then
21027 for ac_prog in xcurses-config
21029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21031 echo "$as_me:21031: checking for $ac_word" >&5
21032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21033 if test "${ac_cv_prog_XCURSES_CONFIG+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21036 if test -n "$XCURSES_CONFIG"; then
21037 ac_cv_prog_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test.
21039 ac_save_IFS=$IFS; IFS=$ac_path_separator
21041 for ac_dir in $ac_dummy; do
21043 test -z "$ac_dir" && ac_dir=.
21044 $as_executable_p "$ac_dir/$ac_word" || continue
21045 ac_cv_prog_XCURSES_CONFIG="$ac_tool_prefix$ac_prog"
21046 echo "$as_me:21046: found $ac_dir/$ac_word" >&5
21052 XCURSES_CONFIG=$ac_cv_prog_XCURSES_CONFIG
21053 if test -n "$XCURSES_CONFIG"; then
21054 echo "$as_me:21054: result: $XCURSES_CONFIG" >&5
21055 echo "${ECHO_T}$XCURSES_CONFIG" >&6
21057 echo "$as_me:21057: result: no" >&5
21058 echo "${ECHO_T}no" >&6
21061 test -n "$XCURSES_CONFIG" && break
21064 if test -z "$XCURSES_CONFIG"; then
21065 ac_ct_XCURSES_CONFIG=$XCURSES_CONFIG
21066 for ac_prog in xcurses-config
21068 # Extract the first word of "$ac_prog", so it can be a program name with args.
21069 set dummy $ac_prog; ac_word=$2
21070 echo "$as_me:21070: checking for $ac_word" >&5
21071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21072 if test "${ac_cv_prog_ac_ct_XCURSES_CONFIG+set}" = set; then
21073 echo $ECHO_N "(cached) $ECHO_C" >&6
21075 if test -n "$ac_ct_XCURSES_CONFIG"; then
21076 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_ct_XCURSES_CONFIG" # Let the user override the test.
21078 ac_save_IFS=$IFS; IFS=$ac_path_separator
21080 for ac_dir in $ac_dummy; do
21082 test -z "$ac_dir" && ac_dir=.
21083 $as_executable_p "$ac_dir/$ac_word" || continue
21084 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_prog"
21085 echo "$as_me:21085: found $ac_dir/$ac_word" >&5
21091 ac_ct_XCURSES_CONFIG=$ac_cv_prog_ac_ct_XCURSES_CONFIG
21092 if test -n "$ac_ct_XCURSES_CONFIG"; then
21093 echo "$as_me:21093: result: $ac_ct_XCURSES_CONFIG" >&5
21094 echo "${ECHO_T}$ac_ct_XCURSES_CONFIG" >&6
21096 echo "$as_me:21096: result: no" >&5
21097 echo "${ECHO_T}no" >&6
21100 test -n "$ac_ct_XCURSES_CONFIG" && break
21102 test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG="none"
21104 XCURSES_CONFIG=$ac_ct_XCURSES_CONFIG
21107 if test "$XCURSES_CONFIG" != none ; then
21112 cf_new_extra_cppflags=
21114 for cf_add_cflags in `$XCURSES_CONFIG --cflags`
21116 case $cf_fix_cppflags in
21118 case $cf_add_cflags in
21119 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
21120 case $cf_add_cflags in
21122 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
21124 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21125 && test -z "${cf_tst_cflags}" \
21126 && cf_fix_cppflags=yes
21128 if test $cf_fix_cppflags = yes ; then
21130 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21131 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21134 elif test "${cf_tst_cflags}" = "\"'" ; then
21136 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21137 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21143 case "$CPPFLAGS" in
21147 case $cf_add_cflags in
21149 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
21151 CPPFLAGS=`echo "$CPPFLAGS" | \
21152 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
21153 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
21158 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
21159 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
21166 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
21167 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
21174 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21175 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21177 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
21179 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21180 && test -z "${cf_tst_cflags}" \
21181 && cf_fix_cppflags=no
21186 if test -n "$cf_new_cflags" ; then
21188 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
21189 CFLAGS="${CFLAGS}$cf_new_cflags"
21193 if test -n "$cf_new_cppflags" ; then
21195 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21196 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
21200 if test -n "$cf_new_extra_cppflags" ; then
21202 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
21203 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
21207 cf_add_libs="`$XCURSES_CONFIG --libs`"
21208 # Filter out duplicates - this happens with badly-designed ".pc" files...
21209 for cf_add_1lib in $LIBS
21211 for cf_add_2lib in $cf_add_libs
21213 if test "x$cf_add_1lib" = "x$cf_add_2lib"
21219 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
21221 LIBS="$cf_add_libs"
21223 cf_cv_lib_XCurses=yes
21227 LDFLAGS="$LDFLAGS $X_LIBS"
21229 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
21231 echo "${as_me:-configure}:21231: testing checking additions to CFLAGS ..." 1>&5
21233 cf_check_cflags="$CFLAGS"
21234 cf_check_cppflags="$CPPFLAGS"
21239 cf_new_extra_cppflags=
21241 for cf_add_cflags in $X_CFLAGS
21243 case $cf_fix_cppflags in
21245 case $cf_add_cflags in
21246 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
21247 case $cf_add_cflags in
21249 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
21251 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21252 && test -z "${cf_tst_cflags}" \
21253 && cf_fix_cppflags=yes
21255 if test $cf_fix_cppflags = yes ; then
21257 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21258 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21261 elif test "${cf_tst_cflags}" = "\"'" ; then
21263 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21264 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21270 case "$CPPFLAGS" in
21274 case $cf_add_cflags in
21276 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
21278 CPPFLAGS=`echo "$CPPFLAGS" | \
21279 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
21280 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
21285 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
21286 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
21293 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
21294 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
21301 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
21302 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
21304 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
21306 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
21307 && test -z "${cf_tst_cflags}" \
21308 && cf_fix_cppflags=no
21313 if test -n "$cf_new_cflags" ; then
21314 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
21316 echo "${as_me:-configure}:21316: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
21318 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
21319 CFLAGS="${CFLAGS}$cf_new_cflags"
21323 if test -n "$cf_new_cppflags" ; then
21324 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
21326 echo "${as_me:-configure}:21326: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
21328 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21329 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
21333 if test -n "$cf_new_extra_cppflags" ; then
21334 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
21336 echo "${as_me:-configure}:21336: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
21338 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
21339 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
21343 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
21344 cat >conftest.$ac_ext <<_ACEOF
21345 #line 21345 "configure"
21346 #include "confdefs.h"
21351 printf("Hello world");
21356 rm -f conftest.$ac_objext conftest$ac_exeext
21357 if { (eval echo "$as_me:21357: \"$ac_link\"") >&5
21358 (eval $ac_link) 2>&5
21360 echo "$as_me:21360: \$? = $ac_status" >&5
21361 (exit $ac_status); } &&
21362 { ac_try='test -s conftest$ac_exeext'
21363 { (eval echo "$as_me:21363: \"$ac_try\"") >&5
21364 (eval $ac_try) 2>&5
21366 echo "$as_me:21366: \$? = $ac_status" >&5
21367 (exit $ac_status); }; }; then
21370 echo "$as_me: failed program was:" >&5
21371 cat conftest.$ac_ext >&5
21372 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
21374 echo "${as_me:-configure}:21374: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
21376 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
21377 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
21379 echo "${as_me:-configure}:21379: testing but keeping change to \$CPPFLAGS ..." 1>&5
21382 CFLAGS="$cf_check_flags"
21384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21387 echo "$as_me:21387: checking for XOpenDisplay in -lX11" >&5
21388 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
21389 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
21390 echo $ECHO_N "(cached) $ECHO_C" >&6
21392 ac_check_lib_save_LIBS=$LIBS
21393 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
21394 cat >conftest.$ac_ext <<_ACEOF
21395 #line 21395 "configure"
21396 #include "confdefs.h"
21398 /* Override any gcc2 internal prototype to avoid an error. */
21402 /* We use char because int might match the return type of a gcc2
21403 builtin and then its argument prototype would still apply. */
21404 char XOpenDisplay ();
21413 rm -f conftest.$ac_objext conftest$ac_exeext
21414 if { (eval echo "$as_me:21414: \"$ac_link\"") >&5
21415 (eval $ac_link) 2>&5
21417 echo "$as_me:21417: \$? = $ac_status" >&5
21418 (exit $ac_status); } &&
21419 { ac_try='test -s conftest$ac_exeext'
21420 { (eval echo "$as_me:21420: \"$ac_try\"") >&5
21421 (eval $ac_try) 2>&5
21423 echo "$as_me:21423: \$? = $ac_status" >&5
21424 (exit $ac_status); }; }; then
21425 ac_cv_lib_X11_XOpenDisplay=yes
21427 echo "$as_me: failed program was:" >&5
21428 cat conftest.$ac_ext >&5
21429 ac_cv_lib_X11_XOpenDisplay=no
21431 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21432 LIBS=$ac_check_lib_save_LIBS
21434 echo "$as_me:21434: result: $ac_cv_lib_X11_XOpenDisplay" >&5
21435 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
21436 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
21438 cf_add_libs="-lX11"
21439 # Filter out duplicates - this happens with badly-designed ".pc" files...
21440 for cf_add_1lib in $LIBS
21442 for cf_add_2lib in $cf_add_libs
21444 if test "x$cf_add_1lib" = "x$cf_add_2lib"
21450 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
21452 LIBS="$cf_add_libs"
21456 echo "$as_me:21456: checking for XCurses library" >&5
21457 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
21458 if test "${cf_cv_lib_XCurses+set}" = set; then
21459 echo $ECHO_N "(cached) $ECHO_C" >&6
21462 cf_add_libs="-lXCurses"
21463 # Filter out duplicates - this happens with badly-designed ".pc" files...
21464 for cf_add_1lib in $LIBS
21466 for cf_add_2lib in $cf_add_libs
21468 if test "x$cf_add_1lib" = "x$cf_add_2lib"
21474 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
21476 LIBS="$cf_add_libs"
21478 cat >conftest.$ac_ext <<_ACEOF
21479 #line 21479 "configure"
21480 #include "confdefs.h"
21482 #include <xcurses.h>
21483 char *XCursesProgramName = "test";
21493 rm -f conftest.$ac_objext conftest$ac_exeext
21494 if { (eval echo "$as_me:21494: \"$ac_link\"") >&5
21495 (eval $ac_link) 2>&5
21497 echo "$as_me:21497: \$? = $ac_status" >&5
21498 (exit $ac_status); } &&
21499 { ac_try='test -s conftest$ac_exeext'
21500 { (eval echo "$as_me:21500: \"$ac_try\"") >&5
21501 (eval $ac_try) 2>&5
21503 echo "$as_me:21503: \$? = $ac_status" >&5
21504 (exit $ac_status); }; }; then
21505 cf_cv_lib_XCurses=yes
21507 echo "$as_me: failed program was:" >&5
21508 cat conftest.$ac_ext >&5
21509 cf_cv_lib_XCurses=no
21511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21514 echo "$as_me:21514: result: $cf_cv_lib_XCurses" >&5
21515 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
21519 if test $cf_cv_lib_XCurses = yes ; then
21521 cat >>confdefs.h <<\EOF
21525 cat >>confdefs.h <<\EOF
21529 echo "$as_me:21529: checking for xcurses.h" >&5
21530 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
21531 if test "${ac_cv_header_xcurses_h+set}" = set; then
21532 echo $ECHO_N "(cached) $ECHO_C" >&6
21534 cat >conftest.$ac_ext <<_ACEOF
21535 #line 21535 "configure"
21536 #include "confdefs.h"
21537 #include <xcurses.h>
21539 if { (eval echo "$as_me:21539: \"$ac_cpp conftest.$ac_ext\"") >&5
21540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21542 egrep -v '^ *\+' conftest.er1 >conftest.err
21544 cat conftest.err >&5
21545 echo "$as_me:21545: \$? = $ac_status" >&5
21546 (exit $ac_status); } >/dev/null; then
21547 if test -s conftest.err; then
21548 ac_cpp_err=$ac_c_preproc_warn_flag
21555 if test -z "$ac_cpp_err"; then
21556 ac_cv_header_xcurses_h=yes
21558 echo "$as_me: failed program was:" >&5
21559 cat conftest.$ac_ext >&5
21560 ac_cv_header_xcurses_h=no
21562 rm -f conftest.err conftest.$ac_ext
21564 echo "$as_me:21564: result: $ac_cv_header_xcurses_h" >&5
21565 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
21566 if test $ac_cv_header_xcurses_h = yes; then
21568 cat >>confdefs.h <<\EOF
21569 #define HAVE_XCURSES 1
21575 { { echo "$as_me:21575: error: Cannot link with XCurses" >&5
21576 echo "$as_me: error: Cannot link with XCurses" >&2;}
21577 { (exit 1); exit 1; }; }
21582 { { echo "$as_me:21582: error: unexpected screen-value: $cf_cv_screen" >&5
21583 echo "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;}
21584 { (exit 1); exit 1; }; }
21588 : ${cf_nculib_root:=$cf_cv_screen}
21589 as_ac_Lib=`echo "ac_cv_lib_$cf_nculib_root''__nc_init_pthreads" | $as_tr_sh`
21590 echo "$as_me:21590: checking for _nc_init_pthreads in -l$cf_nculib_root" >&5
21591 echo $ECHO_N "checking for _nc_init_pthreads in -l$cf_nculib_root... $ECHO_C" >&6
21592 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
21593 echo $ECHO_N "(cached) $ECHO_C" >&6
21595 ac_check_lib_save_LIBS=$LIBS
21596 LIBS="-l$cf_nculib_root $LIBS"
21597 cat >conftest.$ac_ext <<_ACEOF
21598 #line 21598 "configure"
21599 #include "confdefs.h"
21601 /* Override any gcc2 internal prototype to avoid an error. */
21605 /* We use char because int might match the return type of a gcc2
21606 builtin and then its argument prototype would still apply. */
21607 char _nc_init_pthreads ();
21611 _nc_init_pthreads ();
21616 rm -f conftest.$ac_objext conftest$ac_exeext
21617 if { (eval echo "$as_me:21617: \"$ac_link\"") >&5
21618 (eval $ac_link) 2>&5
21620 echo "$as_me:21620: \$? = $ac_status" >&5
21621 (exit $ac_status); } &&
21622 { ac_try='test -s conftest$ac_exeext'
21623 { (eval echo "$as_me:21623: \"$ac_try\"") >&5
21624 (eval $ac_try) 2>&5
21626 echo "$as_me:21626: \$? = $ac_status" >&5
21627 (exit $ac_status); }; }; then
21628 eval "$as_ac_Lib=yes"
21630 echo "$as_me: failed program was:" >&5
21631 cat conftest.$ac_ext >&5
21632 eval "$as_ac_Lib=no"
21634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21635 LIBS=$ac_check_lib_save_LIBS
21637 echo "$as_me:21637: result: `eval echo '${'$as_ac_Lib'}'`" >&5
21638 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
21639 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
21640 cf_cv_ncurses_pthreads=yes
21642 cf_cv_ncurses_pthreads=no
21645 if test "$cf_cv_ncurses_pthreads" = yes
21648 cf_add_libs="-lpthread"
21649 # Filter out duplicates - this happens with badly-designed ".pc" files...
21650 for cf_add_1lib in $LIBS
21652 for cf_add_2lib in $cf_add_libs
21654 if test "x$cf_add_1lib" = "x$cf_add_2lib"
21660 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
21662 LIBS="$cf_add_libs"
21666 echo "$as_me:21666: checking if curses supports wide characters" >&5
21667 echo $ECHO_N "checking if curses supports wide characters... $ECHO_C" >&6
21668 if test "${cf_cv_widec_curses+set}" = set; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21672 cat >conftest.$ac_ext <<_ACEOF
21673 #line 21673 "configure"
21674 #include "confdefs.h"
21676 #include <stdlib.h>
21677 #include <${cf_cv_ncurses_header:-curses.h}>
21685 waddnwstr(stdscr, temp, 1);
21691 rm -f conftest.$ac_objext conftest$ac_exeext
21692 if { (eval echo "$as_me:21692: \"$ac_link\"") >&5
21693 (eval $ac_link) 2>&5
21695 echo "$as_me:21695: \$? = $ac_status" >&5
21696 (exit $ac_status); } &&
21697 { ac_try='test -s conftest$ac_exeext'
21698 { (eval echo "$as_me:21698: \"$ac_try\"") >&5
21699 (eval $ac_try) 2>&5
21701 echo "$as_me:21701: \$? = $ac_status" >&5
21702 (exit $ac_status); }; }; then
21703 cf_cv_widec_curses=yes
21705 echo "$as_me: failed program was:" >&5
21706 cat conftest.$ac_ext >&5
21707 cf_cv_widec_curses=no
21709 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21712 echo "$as_me:21712: result: $cf_cv_widec_curses" >&5
21713 echo "${ECHO_T}$cf_cv_widec_curses" >&6
21715 if test "$cf_cv_widec_curses" = yes ; then
21717 cat >>confdefs.h <<\EOF
21718 #define WIDEC_CURSES 1
21721 # This is needed on Tru64 5.0 to declare mbstate_t
21722 echo "$as_me:21722: checking if we must include wchar.h to declare mbstate_t" >&5
21723 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
21724 if test "${cf_cv_widec_mbstate+set}" = set; then
21725 echo $ECHO_N "(cached) $ECHO_C" >&6
21728 cat >conftest.$ac_ext <<_ACEOF
21729 #line 21729 "configure"
21730 #include "confdefs.h"
21732 #include <stdlib.h>
21733 #include <${cf_cv_ncurses_header:-curses.h}>
21742 rm -f conftest.$ac_objext
21743 if { (eval echo "$as_me:21743: \"$ac_compile\"") >&5
21744 (eval $ac_compile) 2>&5
21746 echo "$as_me:21746: \$? = $ac_status" >&5
21747 (exit $ac_status); } &&
21748 { ac_try='test -s conftest.$ac_objext'
21749 { (eval echo "$as_me:21749: \"$ac_try\"") >&5
21750 (eval $ac_try) 2>&5
21752 echo "$as_me:21752: \$? = $ac_status" >&5
21753 (exit $ac_status); }; }; then
21754 cf_cv_widec_mbstate=no
21756 echo "$as_me: failed program was:" >&5
21757 cat conftest.$ac_ext >&5
21758 cat >conftest.$ac_ext <<_ACEOF
21759 #line 21759 "configure"
21760 #include "confdefs.h"
21762 #include <stdlib.h>
21764 #include <${cf_cv_ncurses_header:-curses.h}>
21773 rm -f conftest.$ac_objext
21774 if { (eval echo "$as_me:21774: \"$ac_compile\"") >&5
21775 (eval $ac_compile) 2>&5
21777 echo "$as_me:21777: \$? = $ac_status" >&5
21778 (exit $ac_status); } &&
21779 { ac_try='test -s conftest.$ac_objext'
21780 { (eval echo "$as_me:21780: \"$ac_try\"") >&5
21781 (eval $ac_try) 2>&5
21783 echo "$as_me:21783: \$? = $ac_status" >&5
21784 (exit $ac_status); }; }; then
21785 cf_cv_widec_mbstate=yes
21787 echo "$as_me: failed program was:" >&5
21788 cat conftest.$ac_ext >&5
21789 cf_cv_widec_mbstate=unknown
21791 rm -f conftest.$ac_objext conftest.$ac_ext
21793 rm -f conftest.$ac_objext conftest.$ac_ext
21795 echo "$as_me:21795: result: $cf_cv_widec_mbstate" >&5
21796 echo "${ECHO_T}$cf_cv_widec_mbstate" >&6
21798 if test "$cf_cv_widec_mbstate" = yes ; then
21800 cat >>confdefs.h <<\EOF
21801 #define NEED_WCHAR_H 1
21806 if test "$cf_cv_widec_mbstate" != unknown ; then
21808 cat >>confdefs.h <<\EOF
21809 #define HAVE_MBSTATE_T 1
21818 echo "$as_me:21818: checking if you want extra dialogs" >&5
21819 echo $ECHO_N "checking if you want extra dialogs... $ECHO_C" >&6
21821 # Check whether --enable-extras or --disable-extras was given.
21822 if test "${enable_extras+set}" = set; then
21823 enableval="$enable_extras"
21828 echo "$as_me:21828: result: $enableval" >&5
21829 echo "${ECHO_T}$enableval" >&6
21830 if test "$enableval" != no ; then
21836 echo "$as_me:21836: checking if you want config-file support" >&5
21837 echo $ECHO_N "checking if you want config-file support... $ECHO_C" >&6
21839 # Check whether --enable-rc-file or --disable-rc-file was given.
21840 if test "${enable_rc_file+set}" = set; then
21841 enableval="$enable_rc_file"
21844 enableval=$cf_all_widgets
21846 echo "$as_me:21846: result: $enableval" >&5
21847 echo "${ECHO_T}$enableval" >&6
21848 if test "$enableval" != no ; then
21849 EXTRAOBJS="$EXTRAOBJS rc\$o"
21851 cat >>confdefs.h <<\EOF
21852 #define HAVE_RC_FILE 1
21859 echo "$as_me:21859: checking if you want Xdialog-style dialogs" >&5
21860 echo $ECHO_N "checking if you want Xdialog-style dialogs... $ECHO_C" >&6
21862 # Check whether --enable-Xdialog or --disable-Xdialog was given.
21863 if test "${enable_Xdialog+set}" = set; then
21864 enableval="$enable_Xdialog"
21867 enableval=$cf_all_widgets
21869 echo "$as_me:21869: result: $enableval" >&5
21870 echo "${ECHO_T}$enableval" >&6
21871 if test "$enableval" != no ; then
21872 EXTRAOBJS="$EXTRAOBJS calendar\$o fselect\$o timebox\$o"
21874 cat >>confdefs.h <<\EOF
21875 #define HAVE_XDIALOG 1
21882 echo "$as_me:21882: checking if you want extra Xdialog-style dialogs (1.2)" >&5
21883 echo $ECHO_N "checking if you want extra Xdialog-style dialogs (1.2)... $ECHO_C" >&6
21885 # Check whether --enable-Xdialog2 or --disable-Xdialog2 was given.
21886 if test "${enable_Xdialog2+set}" = set; then
21887 enableval="$enable_Xdialog2"
21890 enableval=$cf_all_widgets
21892 echo "$as_me:21892: result: $enableval" >&5
21893 echo "${ECHO_T}$enableval" >&6
21894 if test "$enableval" != no ; then
21895 EXTRAOBJS="$EXTRAOBJS buildlist\$o rangebox\$o treeview\$o"
21897 cat >>confdefs.h <<\EOF
21898 #define HAVE_XDIALOG2 1
21905 echo "$as_me:21905: checking if you want compatibility with whiptail options" >&5
21906 echo $ECHO_N "checking if you want compatibility with whiptail options... $ECHO_C" >&6
21908 # Check whether --enable-whiptail or --disable-whiptail was given.
21909 if test "${enable_whiptail+set}" = set; then
21910 enableval="$enable_whiptail"
21913 enableval=$cf_all_widgets
21915 echo "$as_me:21915: result: $enableval" >&5
21916 echo "${ECHO_T}$enableval" >&6
21917 if test "$enableval" != no ; then
21919 cat >>confdefs.h <<\EOF
21920 #define HAVE_WHIPTAIL 1
21927 echo "$as_me:21927: checking if you want the form dialog" >&5
21928 echo $ECHO_N "checking if you want the form dialog... $ECHO_C" >&6
21930 # Check whether --enable-form or --disable-form was given.
21931 if test "${enable_form+set}" = set; then
21932 enableval="$enable_form"
21935 enableval=$cf_all_widgets
21937 echo "$as_me:21937: result: $enableval" >&5
21938 echo "${ECHO_T}$enableval" >&6
21939 if test "$enableval" != no ; then
21940 EXTRAOBJS="$EXTRAOBJS formbox\$o"
21942 cat >>confdefs.h <<\EOF
21943 #define HAVE_DLG_FORMBOX 1
21950 echo "$as_me:21950: checking if you want the gauge dialog" >&5
21951 echo $ECHO_N "checking if you want the gauge dialog... $ECHO_C" >&6
21953 # Check whether --enable-gauge or --disable-gauge was given.
21954 if test "${enable_gauge+set}" = set; then
21955 enableval="$enable_gauge"
21958 enableval=$cf_all_widgets
21960 echo "$as_me:21960: result: $enableval" >&5
21961 echo "${ECHO_T}$enableval" >&6
21962 if test "$enableval" != no ; then
21963 EXTRAOBJS="$EXTRAOBJS guage\$o pause\$o prgbox\$o progressbox\$o"
21965 cat >>confdefs.h <<\EOF
21966 #define HAVE_DLG_GAUGE 1
21973 echo "$as_me:21973: checking if you want the tailbox dialog" >&5
21974 echo $ECHO_N "checking if you want the tailbox dialog... $ECHO_C" >&6
21976 # Check whether --enable-tailbox or --disable-tailbox was given.
21977 if test "${enable_tailbox+set}" = set; then
21978 enableval="$enable_tailbox"
21981 enableval=$cf_all_widgets
21983 echo "$as_me:21983: result: $enableval" >&5
21984 echo "${ECHO_T}$enableval" >&6
21985 if test "$enableval" != no ; then
21986 EXTRAOBJS="$EXTRAOBJS tailbox\$o"
21988 cat >>confdefs.h <<\EOF
21989 #define HAVE_DLG_TAILBOX 1
21996 echo "$as_me:21996: checking if you want the mixedform dialog" >&5
21997 echo $ECHO_N "checking if you want the mixedform dialog... $ECHO_C" >&6
21999 # Check whether --enable-mixedform or --disable-mixedform was given.
22000 if test "${enable_mixedform+set}" = set; then
22001 enableval="$enable_mixedform"
22004 enableval=${enable_form:=$cf_all_widgets}
22006 echo "$as_me:22006: result: $enableval" >&5
22007 echo "${ECHO_T}$enableval" >&6
22008 if test "$enableval" != no ; then
22009 EXTRAOBJS="$EXTRAOBJS mixedform\$o"
22011 cat >>confdefs.h <<\EOF
22012 #define HAVE_DLG_MIXEDFORM 1
22019 echo "$as_me:22019: checking if you want the mixedgauge dialog" >&5
22020 echo $ECHO_N "checking if you want the mixedgauge dialog... $ECHO_C" >&6
22022 # Check whether --enable-mixedgauge or --disable-mixedgauge was given.
22023 if test "${enable_mixedgauge+set}" = set; then
22024 enableval="$enable_mixedgauge"
22027 enableval=$cf_all_widgets
22029 echo "$as_me:22029: result: $enableval" >&5
22030 echo "${ECHO_T}$enableval" >&6
22031 if test "$enableval" != no ; then
22032 EXTRAOBJS="$EXTRAOBJS mixedgauge\$o"
22034 cat >>confdefs.h <<\EOF
22035 #define HAVE_MIXEDGAUGE 1
22042 echo "$as_me:22042: checking if you want the wide-curses features" >&5
22043 echo $ECHO_N "checking if you want the wide-curses features... $ECHO_C" >&6
22045 # Check whether --enable-widec or --disable-widec was given.
22046 if test "${enable_widec+set}" = set; then
22047 enableval="$enable_widec"
22050 enableval=$cf_cv_widec_curses
22052 echo "$as_me:22052: result: $enableval" >&5
22053 echo "${ECHO_T}$enableval" >&6
22054 if test "$enableval" != no ; then
22056 cat >>confdefs.h <<\EOF
22057 #define USE_WIDE_CURSES 1
22064 echo "$as_me:22064: checking for ANSI C header files" >&5
22065 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
22066 if test "${ac_cv_header_stdc+set}" = set; then
22067 echo $ECHO_N "(cached) $ECHO_C" >&6
22069 cat >conftest.$ac_ext <<_ACEOF
22070 #line 22070 "configure"
22071 #include "confdefs.h"
22072 #include <stdlib.h>
22073 #include <stdarg.h>
22074 #include <string.h>
22078 if { (eval echo "$as_me:22078: \"$ac_cpp conftest.$ac_ext\"") >&5
22079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22081 egrep -v '^ *\+' conftest.er1 >conftest.err
22083 cat conftest.err >&5
22084 echo "$as_me:22084: \$? = $ac_status" >&5
22085 (exit $ac_status); } >/dev/null; then
22086 if test -s conftest.err; then
22087 ac_cpp_err=$ac_c_preproc_warn_flag
22094 if test -z "$ac_cpp_err"; then
22095 ac_cv_header_stdc=yes
22097 echo "$as_me: failed program was:" >&5
22098 cat conftest.$ac_ext >&5
22099 ac_cv_header_stdc=no
22101 rm -f conftest.err conftest.$ac_ext
22103 if test $ac_cv_header_stdc = yes; then
22104 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22105 cat >conftest.$ac_ext <<_ACEOF
22106 #line 22106 "configure"
22107 #include "confdefs.h"
22108 #include <string.h>
22111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22112 egrep "memchr" >/dev/null 2>&1; then
22115 ac_cv_header_stdc=no
22121 if test $ac_cv_header_stdc = yes; then
22122 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22123 cat >conftest.$ac_ext <<_ACEOF
22124 #line 22124 "configure"
22125 #include "confdefs.h"
22126 #include <stdlib.h>
22129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22130 egrep "free" >/dev/null 2>&1; then
22133 ac_cv_header_stdc=no
22139 if test $ac_cv_header_stdc = yes; then
22140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22141 if test "$cross_compiling" = yes; then
22144 cat >conftest.$ac_ext <<_ACEOF
22145 #line 22145 "configure"
22146 #include "confdefs.h"
22148 #if ((' ' & 0x0FF) == 0x020)
22149 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22152 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
22153 || ('j' <= (c) && (c) <= 'r') \
22154 || ('s' <= (c) && (c) <= 'z'))
22155 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22158 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22163 for (i = 0; i < 256; i++)
22164 if (XOR (islower (i), ISLOWER (i))
22165 || toupper (i) != TOUPPER (i))
22166 $ac_main_return(2);
22167 $ac_main_return (0);
22170 rm -f conftest$ac_exeext
22171 if { (eval echo "$as_me:22171: \"$ac_link\"") >&5
22172 (eval $ac_link) 2>&5
22174 echo "$as_me:22174: \$? = $ac_status" >&5
22175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22176 { (eval echo "$as_me:22176: \"$ac_try\"") >&5
22177 (eval $ac_try) 2>&5
22179 echo "$as_me:22179: \$? = $ac_status" >&5
22180 (exit $ac_status); }; }; then
22183 echo "$as_me: program exited with status $ac_status" >&5
22184 echo "$as_me: failed program was:" >&5
22185 cat conftest.$ac_ext >&5
22186 ac_cv_header_stdc=no
22188 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22192 echo "$as_me:22192: result: $ac_cv_header_stdc" >&5
22193 echo "${ECHO_T}$ac_cv_header_stdc" >&6
22194 if test $ac_cv_header_stdc = yes; then
22196 cat >>confdefs.h <<\EOF
22197 #define STDC_HEADERS 1
22202 echo "$as_me:22202: checking whether time.h and sys/time.h may both be included" >&5
22203 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22204 if test "${ac_cv_header_time+set}" = set; then
22205 echo $ECHO_N "(cached) $ECHO_C" >&6
22207 cat >conftest.$ac_ext <<_ACEOF
22208 #line 22208 "configure"
22209 #include "confdefs.h"
22210 #include <sys/types.h>
22211 #include <sys/time.h>
22217 if ((struct tm *) 0)
22223 rm -f conftest.$ac_objext
22224 if { (eval echo "$as_me:22224: \"$ac_compile\"") >&5
22225 (eval $ac_compile) 2>&5
22227 echo "$as_me:22227: \$? = $ac_status" >&5
22228 (exit $ac_status); } &&
22229 { ac_try='test -s conftest.$ac_objext'
22230 { (eval echo "$as_me:22230: \"$ac_try\"") >&5
22231 (eval $ac_try) 2>&5
22233 echo "$as_me:22233: \$? = $ac_status" >&5
22234 (exit $ac_status); }; }; then
22235 ac_cv_header_time=yes
22237 echo "$as_me: failed program was:" >&5
22238 cat conftest.$ac_ext >&5
22239 ac_cv_header_time=no
22241 rm -f conftest.$ac_objext conftest.$ac_ext
22243 echo "$as_me:22243: result: $ac_cv_header_time" >&5
22244 echo "${ECHO_T}$ac_cv_header_time" >&6
22245 if test $ac_cv_header_time = yes; then
22247 cat >>confdefs.h <<\EOF
22248 #define TIME_WITH_SYS_TIME 1
22253 ac_header_dirent=no
22254 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22255 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22256 echo "$as_me:22256: checking for $ac_hdr that defines DIR" >&5
22257 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
22258 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22259 echo $ECHO_N "(cached) $ECHO_C" >&6
22261 cat >conftest.$ac_ext <<_ACEOF
22262 #line 22262 "configure"
22263 #include "confdefs.h"
22264 #include <sys/types.h>
22276 rm -f conftest.$ac_objext
22277 if { (eval echo "$as_me:22277: \"$ac_compile\"") >&5
22278 (eval $ac_compile) 2>&5
22280 echo "$as_me:22280: \$? = $ac_status" >&5
22281 (exit $ac_status); } &&
22282 { ac_try='test -s conftest.$ac_objext'
22283 { (eval echo "$as_me:22283: \"$ac_try\"") >&5
22284 (eval $ac_try) 2>&5
22286 echo "$as_me:22286: \$? = $ac_status" >&5
22287 (exit $ac_status); }; }; then
22288 eval "$as_ac_Header=yes"
22290 echo "$as_me: failed program was:" >&5
22291 cat conftest.$ac_ext >&5
22292 eval "$as_ac_Header=no"
22294 rm -f conftest.$ac_objext conftest.$ac_ext
22296 echo "$as_me:22296: result: `eval echo '${'$as_ac_Header'}'`" >&5
22297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22299 cat >>confdefs.h <<EOF
22300 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22303 ac_header_dirent=$ac_hdr; break
22307 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22308 if test $ac_header_dirent = dirent.h; then
22309 echo "$as_me:22309: checking for opendir in -ldir" >&5
22310 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
22311 if test "${ac_cv_lib_dir_opendir+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22314 ac_check_lib_save_LIBS=$LIBS
22316 cat >conftest.$ac_ext <<_ACEOF
22317 #line 22317 "configure"
22318 #include "confdefs.h"
22320 /* Override any gcc2 internal prototype to avoid an error. */
22324 /* We use char because int might match the return type of a gcc2
22325 builtin and then its argument prototype would still apply. */
22335 rm -f conftest.$ac_objext conftest$ac_exeext
22336 if { (eval echo "$as_me:22336: \"$ac_link\"") >&5
22337 (eval $ac_link) 2>&5
22339 echo "$as_me:22339: \$? = $ac_status" >&5
22340 (exit $ac_status); } &&
22341 { ac_try='test -s conftest$ac_exeext'
22342 { (eval echo "$as_me:22342: \"$ac_try\"") >&5
22343 (eval $ac_try) 2>&5
22345 echo "$as_me:22345: \$? = $ac_status" >&5
22346 (exit $ac_status); }; }; then
22347 ac_cv_lib_dir_opendir=yes
22349 echo "$as_me: failed program was:" >&5
22350 cat conftest.$ac_ext >&5
22351 ac_cv_lib_dir_opendir=no
22353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22354 LIBS=$ac_check_lib_save_LIBS
22356 echo "$as_me:22356: result: $ac_cv_lib_dir_opendir" >&5
22357 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
22358 if test $ac_cv_lib_dir_opendir = yes; then
22363 echo "$as_me:22363: checking for opendir in -lx" >&5
22364 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
22365 if test "${ac_cv_lib_x_opendir+set}" = set; then
22366 echo $ECHO_N "(cached) $ECHO_C" >&6
22368 ac_check_lib_save_LIBS=$LIBS
22370 cat >conftest.$ac_ext <<_ACEOF
22371 #line 22371 "configure"
22372 #include "confdefs.h"
22374 /* Override any gcc2 internal prototype to avoid an error. */
22378 /* We use char because int might match the return type of a gcc2
22379 builtin and then its argument prototype would still apply. */
22389 rm -f conftest.$ac_objext conftest$ac_exeext
22390 if { (eval echo "$as_me:22390: \"$ac_link\"") >&5
22391 (eval $ac_link) 2>&5
22393 echo "$as_me:22393: \$? = $ac_status" >&5
22394 (exit $ac_status); } &&
22395 { ac_try='test -s conftest$ac_exeext'
22396 { (eval echo "$as_me:22396: \"$ac_try\"") >&5
22397 (eval $ac_try) 2>&5
22399 echo "$as_me:22399: \$? = $ac_status" >&5
22400 (exit $ac_status); }; }; then
22401 ac_cv_lib_x_opendir=yes
22403 echo "$as_me: failed program was:" >&5
22404 cat conftest.$ac_ext >&5
22405 ac_cv_lib_x_opendir=no
22407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22408 LIBS=$ac_check_lib_save_LIBS
22410 echo "$as_me:22410: result: $ac_cv_lib_x_opendir" >&5
22411 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
22412 if test $ac_cv_lib_x_opendir = yes; then
22418 for ac_header in search.h stdint.h unistd.h
22420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22421 echo "$as_me:22421: checking for $ac_header" >&5
22422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22424 echo $ECHO_N "(cached) $ECHO_C" >&6
22426 cat >conftest.$ac_ext <<_ACEOF
22427 #line 22427 "configure"
22428 #include "confdefs.h"
22429 #include <$ac_header>
22431 if { (eval echo "$as_me:22431: \"$ac_cpp conftest.$ac_ext\"") >&5
22432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22434 egrep -v '^ *\+' conftest.er1 >conftest.err
22436 cat conftest.err >&5
22437 echo "$as_me:22437: \$? = $ac_status" >&5
22438 (exit $ac_status); } >/dev/null; then
22439 if test -s conftest.err; then
22440 ac_cpp_err=$ac_c_preproc_warn_flag
22447 if test -z "$ac_cpp_err"; then
22448 eval "$as_ac_Header=yes"
22450 echo "$as_me: failed program was:" >&5
22451 cat conftest.$ac_ext >&5
22452 eval "$as_ac_Header=no"
22454 rm -f conftest.err conftest.$ac_ext
22456 echo "$as_me:22456: result: `eval echo '${'$as_ac_Header'}'`" >&5
22457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22459 cat >>confdefs.h <<EOF
22460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22466 echo "$as_me:22466: checking for term.h" >&5
22467 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
22468 if test "${cf_cv_term_header+set}" = set; then
22469 echo $ECHO_N "(cached) $ECHO_C" >&6
22472 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
22473 # for <term.h> if we do not find the variant.
22475 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
22477 case ${cf_cv_ncurses_header:-curses.h} in
22479 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
22480 cf_header_list="$cf_header_item $cf_header_list"
22484 for cf_header in $cf_header_list
22486 cat >conftest.$ac_ext <<_ACEOF
22487 #line 22487 "configure"
22488 #include "confdefs.h"
22490 #include <${cf_cv_ncurses_header:-curses.h}>
22491 #include <${cf_header}>
22500 rm -f conftest.$ac_objext
22501 if { (eval echo "$as_me:22501: \"$ac_compile\"") >&5
22502 (eval $ac_compile) 2>&5
22504 echo "$as_me:22504: \$? = $ac_status" >&5
22505 (exit $ac_status); } &&
22506 { ac_try='test -s conftest.$ac_objext'
22507 { (eval echo "$as_me:22507: \"$ac_try\"") >&5
22508 (eval $ac_try) 2>&5
22510 echo "$as_me:22510: \$? = $ac_status" >&5
22511 (exit $ac_status); }; }; then
22512 cf_cv_term_header=$cf_header
22515 echo "$as_me: failed program was:" >&5
22516 cat conftest.$ac_ext >&5
22517 cf_cv_term_header=no
22519 rm -f conftest.$ac_objext conftest.$ac_ext
22522 case $cf_cv_term_header in
22524 # If curses is ncurses, some packagers still mess it up by trying to make
22525 # us use GNU termcap. This handles the most common case.
22526 for cf_header in ncurses/term.h ncursesw/term.h
22528 cat >conftest.$ac_ext <<_ACEOF
22529 #line 22529 "configure"
22530 #include "confdefs.h"
22532 #include <${cf_cv_ncurses_header:-curses.h}>
22533 #ifdef NCURSES_VERSION
22534 #include <${cf_header}>
22546 rm -f conftest.$ac_objext
22547 if { (eval echo "$as_me:22547: \"$ac_compile\"") >&5
22548 (eval $ac_compile) 2>&5
22550 echo "$as_me:22550: \$? = $ac_status" >&5
22551 (exit $ac_status); } &&
22552 { ac_try='test -s conftest.$ac_objext'
22553 { (eval echo "$as_me:22553: \"$ac_try\"") >&5
22554 (eval $ac_try) 2>&5
22556 echo "$as_me:22556: \$? = $ac_status" >&5
22557 (exit $ac_status); }; }; then
22558 cf_cv_term_header=$cf_header
22561 echo "$as_me: failed program was:" >&5
22562 cat conftest.$ac_ext >&5
22563 cf_cv_term_header=no
22565 rm -f conftest.$ac_objext conftest.$ac_ext
22571 echo "$as_me:22571: result: $cf_cv_term_header" >&5
22572 echo "${ECHO_T}$cf_cv_term_header" >&6
22574 case $cf_cv_term_header in
22577 cat >>confdefs.h <<\EOF
22578 #define HAVE_TERM_H 1
22584 cat >>confdefs.h <<\EOF
22585 #define HAVE_NCURSES_TERM_H 1
22591 cat >>confdefs.h <<\EOF
22592 #define HAVE_NCURSESW_TERM_H 1
22598 echo "$as_me:22598: checking return type of signal handlers" >&5
22599 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22600 if test "${ac_cv_type_signal+set}" = set; then
22601 echo $ECHO_N "(cached) $ECHO_C" >&6
22603 cat >conftest.$ac_ext <<_ACEOF
22604 #line 22604 "configure"
22605 #include "confdefs.h"
22606 #include <sys/types.h>
22607 #include <signal.h>
22612 extern "C" void (*signal (int, void (*)(int)))(int);
22614 void (*signal ()) ();
22625 rm -f conftest.$ac_objext
22626 if { (eval echo "$as_me:22626: \"$ac_compile\"") >&5
22627 (eval $ac_compile) 2>&5
22629 echo "$as_me:22629: \$? = $ac_status" >&5
22630 (exit $ac_status); } &&
22631 { ac_try='test -s conftest.$ac_objext'
22632 { (eval echo "$as_me:22632: \"$ac_try\"") >&5
22633 (eval $ac_try) 2>&5
22635 echo "$as_me:22635: \$? = $ac_status" >&5
22636 (exit $ac_status); }; }; then
22637 ac_cv_type_signal=void
22639 echo "$as_me: failed program was:" >&5
22640 cat conftest.$ac_ext >&5
22641 ac_cv_type_signal=int
22643 rm -f conftest.$ac_objext conftest.$ac_ext
22645 echo "$as_me:22645: result: $ac_cv_type_signal" >&5
22646 echo "${ECHO_T}$ac_cv_type_signal" >&6
22648 cat >>confdefs.h <<EOF
22649 #define RETSIGTYPE $ac_cv_type_signal
22653 _nc_free_and_exit \
22670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22671 echo "$as_me:22671: checking for $ac_func" >&5
22672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22673 if eval "test \"\${$as_ac_var+set}\" = set"; then
22674 echo $ECHO_N "(cached) $ECHO_C" >&6
22676 cat >conftest.$ac_ext <<_ACEOF
22677 #line 22677 "configure"
22678 #include "confdefs.h"
22679 /* System header to define __stub macros and hopefully few prototypes,
22680 which can conflict with char $ac_func (); below. */
22681 #include <assert.h>
22682 /* Override any gcc2 internal prototype to avoid an error. */
22686 /* We use char because int might match the return type of a gcc2
22687 builtin and then its argument prototype would still apply. */
22694 /* The GNU C library defines this for functions which it implements
22695 to always fail with ENOSYS. Some functions are actually named
22696 something starting with __ and the normal name is an alias. */
22697 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22700 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
22707 rm -f conftest.$ac_objext conftest$ac_exeext
22708 if { (eval echo "$as_me:22708: \"$ac_link\"") >&5
22709 (eval $ac_link) 2>&5
22711 echo "$as_me:22711: \$? = $ac_status" >&5
22712 (exit $ac_status); } &&
22713 { ac_try='test -s conftest$ac_exeext'
22714 { (eval echo "$as_me:22714: \"$ac_try\"") >&5
22715 (eval $ac_try) 2>&5
22717 echo "$as_me:22717: \$? = $ac_status" >&5
22718 (exit $ac_status); }; }; then
22719 eval "$as_ac_var=yes"
22721 echo "$as_me: failed program was:" >&5
22722 cat conftest.$ac_ext >&5
22723 eval "$as_ac_var=no"
22725 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22727 echo "$as_me:22727: result: `eval echo '${'$as_ac_var'}'`" >&5
22728 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22729 if test `eval echo '${'$as_ac_var'}'` = yes; then
22730 cat >>confdefs.h <<EOF
22731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22737 echo "$as_me:22737: checking definition to turn on extended curses functions" >&5
22738 echo $ECHO_N "checking definition to turn on extended curses functions... $ECHO_C" >&6
22739 if test "${cf_cv_need_xopen_extension+set}" = set; then
22740 echo $ECHO_N "(cached) $ECHO_C" >&6
22743 cf_cv_need_xopen_extension=unknown
22744 cat >conftest.$ac_ext <<_ACEOF
22745 #line 22745 "configure"
22746 #include "confdefs.h"
22748 #include <stdlib.h>
22749 #include <${cf_cv_ncurses_header:-curses.h}>
22754 #if defined(NCURSES_VERSION_PATCH)
22755 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
22759 #ifdef NCURSES_VERSION
22761 int check2 = curs_set((int)sizeof(check));
22763 long x = winnstr(stdscr, "", 0);
22765 getbegyx(stdscr, y1, x1)
22770 rm -f conftest.$ac_objext conftest$ac_exeext
22771 if { (eval echo "$as_me:22771: \"$ac_link\"") >&5
22772 (eval $ac_link) 2>&5
22774 echo "$as_me:22774: \$? = $ac_status" >&5
22775 (exit $ac_status); } &&
22776 { ac_try='test -s conftest$ac_exeext'
22777 { (eval echo "$as_me:22777: \"$ac_try\"") >&5
22778 (eval $ac_try) 2>&5
22780 echo "$as_me:22780: \$? = $ac_status" >&5
22781 (exit $ac_status); }; }; then
22782 cf_cv_need_xopen_extension=none
22784 echo "$as_me: failed program was:" >&5
22785 cat conftest.$ac_ext >&5
22787 for cf_try_xopen_extension in _XOPEN_SOURCE_EXTENDED NCURSES_WIDECHAR
22789 cat >conftest.$ac_ext <<_ACEOF
22790 #line 22790 "configure"
22791 #include "confdefs.h"
22793 #define $cf_try_xopen_extension 1
22794 #include <stdlib.h>
22795 #include <${cf_cv_ncurses_header:-curses.h}>
22800 #ifdef NCURSES_VERSION
22802 int check2 = curs_set((int)sizeof(check));
22804 long x = winnstr(stdscr, "", 0);
22806 getbegyx(stdscr, y1, x1)
22811 rm -f conftest.$ac_objext conftest$ac_exeext
22812 if { (eval echo "$as_me:22812: \"$ac_link\"") >&5
22813 (eval $ac_link) 2>&5
22815 echo "$as_me:22815: \$? = $ac_status" >&5
22816 (exit $ac_status); } &&
22817 { ac_try='test -s conftest$ac_exeext'
22818 { (eval echo "$as_me:22818: \"$ac_try\"") >&5
22819 (eval $ac_try) 2>&5
22821 echo "$as_me:22821: \$? = $ac_status" >&5
22822 (exit $ac_status); }; }; then
22823 cf_cv_need_xopen_extension=$cf_try_xopen_extension; break
22825 echo "$as_me: failed program was:" >&5
22826 cat conftest.$ac_ext >&5
22828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22835 echo "$as_me:22835: result: $cf_cv_need_xopen_extension" >&5
22836 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
22838 case $cf_cv_need_xopen_extension in
22841 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22842 CPPFLAGS="${CPPFLAGS}-D$cf_cv_need_xopen_extension"
22847 echo "$as_me:22847: checking for unctrl.h" >&5
22848 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
22849 if test "${cf_cv_unctrl_header+set}" = set; then
22850 echo $ECHO_N "(cached) $ECHO_C" >&6
22853 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
22854 # for <unctrl.h> if we do not find the variant.
22856 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
22858 case ${cf_cv_ncurses_header:-curses.h} in
22860 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
22861 cf_header_list="$cf_header_item $cf_header_list"
22865 for cf_header in $cf_header_list
22867 cat >conftest.$ac_ext <<_ACEOF
22868 #line 22868 "configure"
22869 #include "confdefs.h"
22871 #include <${cf_cv_ncurses_header:-curses.h}>
22872 #include <${cf_header}>
22881 rm -f conftest.$ac_objext
22882 if { (eval echo "$as_me:22882: \"$ac_compile\"") >&5
22883 (eval $ac_compile) 2>&5
22885 echo "$as_me:22885: \$? = $ac_status" >&5
22886 (exit $ac_status); } &&
22887 { ac_try='test -s conftest.$ac_objext'
22888 { (eval echo "$as_me:22888: \"$ac_try\"") >&5
22889 (eval $ac_try) 2>&5
22891 echo "$as_me:22891: \$? = $ac_status" >&5
22892 (exit $ac_status); }; }; then
22893 cf_cv_unctrl_header=$cf_header
22896 echo "$as_me: failed program was:" >&5
22897 cat conftest.$ac_ext >&5
22898 cf_cv_unctrl_header=no
22900 rm -f conftest.$ac_objext conftest.$ac_ext
22904 echo "$as_me:22904: result: $cf_cv_unctrl_header" >&5
22905 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
22907 case $cf_cv_unctrl_header in
22909 { echo "$as_me:22909: WARNING: unctrl.h header not found" >&5
22910 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
22914 case $cf_cv_unctrl_header in
22917 cat >>confdefs.h <<\EOF
22918 #define HAVE_UNCTRL_H 1
22924 cat >>confdefs.h <<\EOF
22925 #define HAVE_NCURSES_UNCTRL_H 1
22929 (ncursesw/unctrl.h)
22931 cat >>confdefs.h <<\EOF
22932 #define HAVE_NCURSESW_UNCTRL_H 1
22952 use_default_colors \
22960 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
22962 echo "$as_me:22962: checking for ${cf_func}" >&5
22963 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
22965 echo "${as_me:-configure}:22965: testing ${cf_func} ..." 1>&5
22967 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
22968 echo $ECHO_N "(cached) $ECHO_C" >&6
22971 eval cf_result='$ac_cv_func_'$cf_func
22972 if test ".$cf_result" != ".no"; then
22973 cat >conftest.$ac_ext <<_ACEOF
22974 #line 22974 "configure"
22975 #include "confdefs.h"
22977 #ifdef HAVE_XCURSES
22978 #include <xcurses.h>
22979 char * XCursesProgramName = "test";
22981 #include <${cf_cv_ncurses_header:-curses.h}>
22982 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
22983 #include <ncursesw/term.h>
22984 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
22985 #include <ncurses/term.h>
22986 #elif defined(HAVE_TERM_H)
22996 long foo = (long)(&${cf_func});
22997 fprintf(stderr, "testing linkage of $cf_func:%p\n", (void *)foo);
22998 if (foo + 1234L > 5678L)
22999 ${cf_cv_main_return:-return}(foo != 0);
23006 rm -f conftest.$ac_objext conftest$ac_exeext
23007 if { (eval echo "$as_me:23007: \"$ac_link\"") >&5
23008 (eval $ac_link) 2>&5
23010 echo "$as_me:23010: \$? = $ac_status" >&5
23011 (exit $ac_status); } &&
23012 { ac_try='test -s conftest$ac_exeext'
23013 { (eval echo "$as_me:23013: \"$ac_try\"") >&5
23014 (eval $ac_try) 2>&5
23016 echo "$as_me:23016: \$? = $ac_status" >&5
23017 (exit $ac_status); }; }; then
23020 echo "$as_me: failed program was:" >&5
23021 cat conftest.$ac_ext >&5
23024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23026 eval 'cf_cv_func_'$cf_func'=$cf_result'
23030 # use the computed/retrieved cache-value:
23031 eval 'cf_result=$cf_cv_func_'$cf_func
23032 echo "$as_me:23032: result: $cf_result" >&5
23033 echo "${ECHO_T}$cf_result" >&6
23034 if test $cf_result != no; then
23035 cat >>confdefs.h <<EOF
23036 #define HAVE_${cf_tr_func} 1
23042 echo "$as_me:23042: checking for start_color" >&5
23043 echo $ECHO_N "checking for start_color... $ECHO_C" >&6
23044 if test "${ac_cv_func_start_color+set}" = set; then
23045 echo $ECHO_N "(cached) $ECHO_C" >&6
23047 cat >conftest.$ac_ext <<_ACEOF
23048 #line 23048 "configure"
23049 #include "confdefs.h"
23050 /* System header to define __stub macros and hopefully few prototypes,
23051 which can conflict with char start_color (); below. */
23052 #include <assert.h>
23053 /* Override any gcc2 internal prototype to avoid an error. */
23057 /* We use char because int might match the return type of a gcc2
23058 builtin and then its argument prototype would still apply. */
23059 char start_color ();
23065 /* The GNU C library defines this for functions which it implements
23066 to always fail with ENOSYS. Some functions are actually named
23067 something starting with __ and the normal name is an alias. */
23068 #if defined (__stub_start_color) || defined (__stub___start_color)
23071 f = start_color; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
23078 rm -f conftest.$ac_objext conftest$ac_exeext
23079 if { (eval echo "$as_me:23079: \"$ac_link\"") >&5
23080 (eval $ac_link) 2>&5
23082 echo "$as_me:23082: \$? = $ac_status" >&5
23083 (exit $ac_status); } &&
23084 { ac_try='test -s conftest$ac_exeext'
23085 { (eval echo "$as_me:23085: \"$ac_try\"") >&5
23086 (eval $ac_try) 2>&5
23088 echo "$as_me:23088: \$? = $ac_status" >&5
23089 (exit $ac_status); }; }; then
23090 ac_cv_func_start_color=yes
23092 echo "$as_me: failed program was:" >&5
23093 cat conftest.$ac_ext >&5
23094 ac_cv_func_start_color=no
23096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23098 echo "$as_me:23098: result: $ac_cv_func_start_color" >&5
23099 echo "${ECHO_T}$ac_cv_func_start_color" >&6
23100 if test $ac_cv_func_start_color = yes; then
23102 cat >>confdefs.h <<\EOF
23103 #define HAVE_COLOR 1
23108 echo "$as_me:23108: checking for chtype typedef" >&5
23109 echo $ECHO_N "checking for chtype typedef... $ECHO_C" >&6
23110 if test "${cf_cv_chtype_decl+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23114 cat >conftest.$ac_ext <<_ACEOF
23115 #line 23115 "configure"
23116 #include "confdefs.h"
23117 #include <${cf_cv_ncurses_header:-curses.h}>
23126 rm -f conftest.$ac_objext
23127 if { (eval echo "$as_me:23127: \"$ac_compile\"") >&5
23128 (eval $ac_compile) 2>&5
23130 echo "$as_me:23130: \$? = $ac_status" >&5
23131 (exit $ac_status); } &&
23132 { ac_try='test -s conftest.$ac_objext'
23133 { (eval echo "$as_me:23133: \"$ac_try\"") >&5
23134 (eval $ac_try) 2>&5
23136 echo "$as_me:23136: \$? = $ac_status" >&5
23137 (exit $ac_status); }; }; then
23138 cf_cv_chtype_decl=yes
23140 echo "$as_me: failed program was:" >&5
23141 cat conftest.$ac_ext >&5
23142 cf_cv_chtype_decl=no
23144 rm -f conftest.$ac_objext conftest.$ac_ext
23146 echo "$as_me:23146: result: $cf_cv_chtype_decl" >&5
23147 echo "${ECHO_T}$cf_cv_chtype_decl" >&6
23148 if test $cf_cv_chtype_decl = yes ; then
23150 cat >>confdefs.h <<\EOF
23151 #define HAVE_TYPE_CHTYPE 1
23154 echo "$as_me:23154: checking if chtype is scalar or struct" >&5
23155 echo $ECHO_N "checking if chtype is scalar or struct... $ECHO_C" >&6
23156 if test "${cf_cv_chtype_type+set}" = set; then
23157 echo $ECHO_N "(cached) $ECHO_C" >&6
23160 cat >conftest.$ac_ext <<_ACEOF
23161 #line 23161 "configure"
23162 #include "confdefs.h"
23163 #include <${cf_cv_ncurses_header:-curses.h}>
23167 chtype foo; long x = foo
23172 rm -f conftest.$ac_objext
23173 if { (eval echo "$as_me:23173: \"$ac_compile\"") >&5
23174 (eval $ac_compile) 2>&5
23176 echo "$as_me:23176: \$? = $ac_status" >&5
23177 (exit $ac_status); } &&
23178 { ac_try='test -s conftest.$ac_objext'
23179 { (eval echo "$as_me:23179: \"$ac_try\"") >&5
23180 (eval $ac_try) 2>&5
23182 echo "$as_me:23182: \$? = $ac_status" >&5
23183 (exit $ac_status); }; }; then
23184 cf_cv_chtype_type=scalar
23186 echo "$as_me: failed program was:" >&5
23187 cat conftest.$ac_ext >&5
23188 cf_cv_chtype_type=struct
23190 rm -f conftest.$ac_objext conftest.$ac_ext
23192 echo "$as_me:23192: result: $cf_cv_chtype_type" >&5
23193 echo "${ECHO_T}$cf_cv_chtype_type" >&6
23194 if test $cf_cv_chtype_type = scalar ; then
23196 cat >>confdefs.h <<\EOF
23197 #define TYPE_CHTYPE_IS_SCALAR 1
23203 echo "$as_me:23203: checking for wide alternate character set array" >&5
23204 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
23205 if test "${cf_cv_curses_wacs_map+set}" = set; then
23206 echo $ECHO_N "(cached) $ECHO_C" >&6
23209 cf_cv_curses_wacs_map=unknown
23210 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
23212 cat >conftest.$ac_ext <<_ACEOF
23213 #line 23213 "configure"
23214 #include "confdefs.h"
23216 #ifndef _XOPEN_SOURCE_EXTENDED
23217 #define _XOPEN_SOURCE_EXTENDED
23219 #include <${cf_cv_ncurses_header:-curses.h}>
23223 void *foo = &($name['k'])
23228 rm -f conftest.$ac_objext conftest$ac_exeext
23229 if { (eval echo "$as_me:23229: \"$ac_link\"") >&5
23230 (eval $ac_link) 2>&5
23232 echo "$as_me:23232: \$? = $ac_status" >&5
23233 (exit $ac_status); } &&
23234 { ac_try='test -s conftest$ac_exeext'
23235 { (eval echo "$as_me:23235: \"$ac_try\"") >&5
23236 (eval $ac_try) 2>&5
23238 echo "$as_me:23238: \$? = $ac_status" >&5
23239 (exit $ac_status); }; }; then
23240 cf_cv_curses_wacs_map=$name
23243 echo "$as_me: failed program was:" >&5
23244 cat conftest.$ac_ext >&5
23246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23249 echo "$as_me:23249: result: $cf_cv_curses_wacs_map" >&5
23250 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
23252 test "$cf_cv_curses_wacs_map" != unknown &&
23253 cat >>confdefs.h <<EOF
23254 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
23257 echo "$as_me:23257: checking for wide alternate character constants" >&5
23258 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
23259 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
23260 echo $ECHO_N "(cached) $ECHO_C" >&6
23263 cf_cv_curses_wacs_symbols=no
23264 if test "$cf_cv_curses_wacs_map" != unknown
23266 cat >conftest.$ac_ext <<_ACEOF
23267 #line 23267 "configure"
23268 #include "confdefs.h"
23270 #ifndef _XOPEN_SOURCE_EXTENDED
23271 #define _XOPEN_SOURCE_EXTENDED
23273 #include <${cf_cv_ncurses_header:-curses.h}>
23277 cchar_t *foo = WACS_PLUS;
23278 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
23283 rm -f conftest.$ac_objext conftest$ac_exeext
23284 if { (eval echo "$as_me:23284: \"$ac_link\"") >&5
23285 (eval $ac_link) 2>&5
23287 echo "$as_me:23287: \$? = $ac_status" >&5
23288 (exit $ac_status); } &&
23289 { ac_try='test -s conftest$ac_exeext'
23290 { (eval echo "$as_me:23290: \"$ac_try\"") >&5
23291 (eval $ac_try) 2>&5
23293 echo "$as_me:23293: \$? = $ac_status" >&5
23294 (exit $ac_status); }; }; then
23295 cf_cv_curses_wacs_symbols=yes
23297 echo "$as_me: failed program was:" >&5
23298 cat conftest.$ac_ext >&5
23300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23302 cat >conftest.$ac_ext <<_ACEOF
23303 #line 23303 "configure"
23304 #include "confdefs.h"
23306 #ifndef _XOPEN_SOURCE_EXTENDED
23307 #define _XOPEN_SOURCE_EXTENDED
23309 #include <${cf_cv_ncurses_header:-curses.h}>
23313 cchar_t *foo = WACS_PLUS
23318 rm -f conftest.$ac_objext conftest$ac_exeext
23319 if { (eval echo "$as_me:23319: \"$ac_link\"") >&5
23320 (eval $ac_link) 2>&5
23322 echo "$as_me:23322: \$? = $ac_status" >&5
23323 (exit $ac_status); } &&
23324 { ac_try='test -s conftest$ac_exeext'
23325 { (eval echo "$as_me:23325: \"$ac_try\"") >&5
23326 (eval $ac_try) 2>&5
23328 echo "$as_me:23328: \$? = $ac_status" >&5
23329 (exit $ac_status); }; }; then
23330 cf_cv_curses_wacs_symbols=yes
23332 echo "$as_me: failed program was:" >&5
23333 cat conftest.$ac_ext >&5
23335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23339 echo "$as_me:23339: result: $cf_cv_curses_wacs_symbols" >&5
23340 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
23342 test "$cf_cv_curses_wacs_symbols" != no &&
23343 cat >>confdefs.h <<\EOF
23344 #define CURSES_WACS_SYMBOLS 1
23347 for cf_func in wgetparent
23350 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
23352 echo "$as_me:23352: checking for ${cf_func}" >&5
23353 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
23355 echo "${as_me:-configure}:23355: testing ${cf_func} ..." 1>&5
23357 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
23358 echo $ECHO_N "(cached) $ECHO_C" >&6
23361 eval cf_result='$ac_cv_func_'$cf_func
23362 if test ".$cf_result" != ".no"; then
23363 cat >conftest.$ac_ext <<_ACEOF
23364 #line 23364 "configure"
23365 #include "confdefs.h"
23367 #ifdef HAVE_XCURSES
23368 #include <xcurses.h>
23369 char * XCursesProgramName = "test";
23371 #include <${cf_cv_ncurses_header:-curses.h}>
23372 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
23373 #include <ncursesw/term.h>
23374 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
23375 #include <ncurses/term.h>
23376 #elif defined(HAVE_TERM_H)
23386 long foo = (long)(&${cf_func});
23387 fprintf(stderr, "testing linkage of $cf_func:%p\n", (void *)foo);
23388 if (foo + 1234L > 5678L)
23389 ${cf_cv_main_return:-return}(foo != 0);
23396 rm -f conftest.$ac_objext conftest$ac_exeext
23397 if { (eval echo "$as_me:23397: \"$ac_link\"") >&5
23398 (eval $ac_link) 2>&5
23400 echo "$as_me:23400: \$? = $ac_status" >&5
23401 (exit $ac_status); } &&
23402 { ac_try='test -s conftest$ac_exeext'
23403 { (eval echo "$as_me:23403: \"$ac_try\"") >&5
23404 (eval $ac_try) 2>&5
23406 echo "$as_me:23406: \$? = $ac_status" >&5
23407 (exit $ac_status); }; }; then
23410 echo "$as_me: failed program was:" >&5
23411 cat conftest.$ac_ext >&5
23414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23416 eval 'cf_cv_func_'$cf_func'=$cf_result'
23420 # use the computed/retrieved cache-value:
23421 eval 'cf_result=$cf_cv_func_'$cf_func
23422 echo "$as_me:23422: result: $cf_result" >&5
23423 echo "${ECHO_T}$cf_result" >&6
23424 if test $cf_result != no; then
23425 cat >>confdefs.h <<EOF
23426 #define HAVE_${cf_tr_func} 1
23432 if test "x$cf_cv_func_wgetparent" != xyes
23434 echo "$as_me:23434: checking if WINDOW has _parent member" >&5
23435 echo $ECHO_N "checking if WINDOW has _parent member... $ECHO_C" >&6
23436 cat >conftest.$ac_ext <<_ACEOF
23437 #line 23437 "configure"
23438 #include "confdefs.h"
23439 #include <${cf_cv_ncurses_header:-curses.h}>
23443 WINDOW *p = stdscr->_parent
23448 rm -f conftest.$ac_objext
23449 if { (eval echo "$as_me:23449: \"$ac_compile\"") >&5
23450 (eval $ac_compile) 2>&5
23452 echo "$as_me:23452: \$? = $ac_status" >&5
23453 (exit $ac_status); } &&
23454 { ac_try='test -s conftest.$ac_objext'
23455 { (eval echo "$as_me:23455: \"$ac_try\"") >&5
23456 (eval $ac_try) 2>&5
23458 echo "$as_me:23458: \$? = $ac_status" >&5
23459 (exit $ac_status); }; }; then
23460 cf_window__parent=yes
23462 echo "$as_me: failed program was:" >&5
23463 cat conftest.$ac_ext >&5
23464 cf_window__parent=no
23466 rm -f conftest.$ac_objext conftest.$ac_ext
23467 echo "$as_me:23467: result: $cf_window__parent" >&5
23468 echo "${ECHO_T}$cf_window__parent" >&6
23469 if test "$cf_window__parent" = yes
23472 cat >>confdefs.h <<\EOF
23473 #define HAVE_WINDOW__PARENT 1
23479 for ac_header in sys/wait.h
23481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23482 echo "$as_me:23482: checking for $ac_header" >&5
23483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23485 echo $ECHO_N "(cached) $ECHO_C" >&6
23487 cat >conftest.$ac_ext <<_ACEOF
23488 #line 23488 "configure"
23489 #include "confdefs.h"
23490 #include <$ac_header>
23492 if { (eval echo "$as_me:23492: \"$ac_cpp conftest.$ac_ext\"") >&5
23493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23495 egrep -v '^ *\+' conftest.er1 >conftest.err
23497 cat conftest.err >&5
23498 echo "$as_me:23498: \$? = $ac_status" >&5
23499 (exit $ac_status); } >/dev/null; then
23500 if test -s conftest.err; then
23501 ac_cpp_err=$ac_c_preproc_warn_flag
23508 if test -z "$ac_cpp_err"; then
23509 eval "$as_ac_Header=yes"
23511 echo "$as_me: failed program was:" >&5
23512 cat conftest.$ac_ext >&5
23513 eval "$as_ac_Header=no"
23515 rm -f conftest.err conftest.$ac_ext
23517 echo "$as_me:23517: result: `eval echo '${'$as_ac_Header'}'`" >&5
23518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23520 cat >>confdefs.h <<EOF
23521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23527 cf_wait_headers="#include <sys/types.h>
23529 if test $ac_cv_header_sys_wait_h = yes; then
23530 cf_wait_headers="$cf_wait_headers
23531 #include <sys/wait.h>
23535 for ac_header in wait.h
23537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23538 echo "$as_me:23538: checking for $ac_header" >&5
23539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23541 echo $ECHO_N "(cached) $ECHO_C" >&6
23543 cat >conftest.$ac_ext <<_ACEOF
23544 #line 23544 "configure"
23545 #include "confdefs.h"
23546 #include <$ac_header>
23548 if { (eval echo "$as_me:23548: \"$ac_cpp conftest.$ac_ext\"") >&5
23549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23551 egrep -v '^ *\+' conftest.er1 >conftest.err
23553 cat conftest.err >&5
23554 echo "$as_me:23554: \$? = $ac_status" >&5
23555 (exit $ac_status); } >/dev/null; then
23556 if test -s conftest.err; then
23557 ac_cpp_err=$ac_c_preproc_warn_flag
23564 if test -z "$ac_cpp_err"; then
23565 eval "$as_ac_Header=yes"
23567 echo "$as_me: failed program was:" >&5
23568 cat conftest.$ac_ext >&5
23569 eval "$as_ac_Header=no"
23571 rm -f conftest.err conftest.$ac_ext
23573 echo "$as_me:23573: result: `eval echo '${'$as_ac_Header'}'`" >&5
23574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23576 cat >>confdefs.h <<EOF
23577 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23583 for ac_header in waitstatus.h
23585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23586 echo "$as_me:23586: checking for $ac_header" >&5
23587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23589 echo $ECHO_N "(cached) $ECHO_C" >&6
23591 cat >conftest.$ac_ext <<_ACEOF
23592 #line 23592 "configure"
23593 #include "confdefs.h"
23594 #include <$ac_header>
23596 if { (eval echo "$as_me:23596: \"$ac_cpp conftest.$ac_ext\"") >&5
23597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23599 egrep -v '^ *\+' conftest.er1 >conftest.err
23601 cat conftest.err >&5
23602 echo "$as_me:23602: \$? = $ac_status" >&5
23603 (exit $ac_status); } >/dev/null; then
23604 if test -s conftest.err; then
23605 ac_cpp_err=$ac_c_preproc_warn_flag
23612 if test -z "$ac_cpp_err"; then
23613 eval "$as_ac_Header=yes"
23615 echo "$as_me: failed program was:" >&5
23616 cat conftest.$ac_ext >&5
23617 eval "$as_ac_Header=no"
23619 rm -f conftest.err conftest.$ac_ext
23621 echo "$as_me:23621: result: `eval echo '${'$as_ac_Header'}'`" >&5
23622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23624 cat >>confdefs.h <<EOF
23625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23631 if test $ac_cv_header_wait_h = yes; then
23632 cf_wait_headers="$cf_wait_headers
23636 if test $ac_cv_header_waitstatus_h = yes; then
23637 cf_wait_headers="$cf_wait_headers
23638 #include <waitstatus.h>
23643 echo "$as_me:23643: checking for union wait" >&5
23644 echo $ECHO_N "checking for union wait... $ECHO_C" >&6
23645 if test "${cf_cv_type_unionwait+set}" = set; then
23646 echo $ECHO_N "(cached) $ECHO_C" >&6
23649 cat >conftest.$ac_ext <<_ACEOF
23650 #line 23650 "configure"
23651 #include "confdefs.h"
23657 int y = WEXITSTATUS(x);
23658 int z = WTERMSIG(x);
23665 rm -f conftest.$ac_objext conftest$ac_exeext
23666 if { (eval echo "$as_me:23666: \"$ac_link\"") >&5
23667 (eval $ac_link) 2>&5
23669 echo "$as_me:23669: \$? = $ac_status" >&5
23670 (exit $ac_status); } &&
23671 { ac_try='test -s conftest$ac_exeext'
23672 { (eval echo "$as_me:23672: \"$ac_try\"") >&5
23673 (eval $ac_try) 2>&5
23675 echo "$as_me:23675: \$? = $ac_status" >&5
23676 (exit $ac_status); }; }; then
23677 cf_cv_type_unionwait=no
23678 echo compiles ok w/o union wait 1>&5
23681 echo "$as_me: failed program was:" >&5
23682 cat conftest.$ac_ext >&5
23684 cat >conftest.$ac_ext <<_ACEOF
23685 #line 23685 "configure"
23686 #include "confdefs.h"
23693 int y = WEXITSTATUS(x);
23696 int z = WTERMSIG(x);
23704 rm -f conftest.$ac_objext conftest$ac_exeext
23705 if { (eval echo "$as_me:23705: \"$ac_link\"") >&5
23706 (eval $ac_link) 2>&5
23708 echo "$as_me:23708: \$? = $ac_status" >&5
23709 (exit $ac_status); } &&
23710 { ac_try='test -s conftest$ac_exeext'
23711 { (eval echo "$as_me:23711: \"$ac_try\"") >&5
23712 (eval $ac_try) 2>&5
23714 echo "$as_me:23714: \$? = $ac_status" >&5
23715 (exit $ac_status); }; }; then
23716 cf_cv_type_unionwait=yes
23717 echo compiles ok with union wait and possibly macros too 1>&5
23720 echo "$as_me: failed program was:" >&5
23721 cat conftest.$ac_ext >&5
23722 cf_cv_type_unionwait=no
23724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23729 echo "$as_me:23729: result: $cf_cv_type_unionwait" >&5
23730 echo "${ECHO_T}$cf_cv_type_unionwait" >&6
23731 test $cf_cv_type_unionwait = yes &&
23732 cat >>confdefs.h <<\EOF
23733 #define HAVE_TYPE_UNIONWAIT 1
23736 if test $cf_cv_type_unionwait = yes; then
23738 echo "$as_me:23738: checking if union wait can be used as wait-arg" >&5
23739 echo $ECHO_N "checking if union wait can be used as wait-arg... $ECHO_C" >&6
23740 if test "${cf_cv_arg_union_wait+set}" = set; then
23741 echo $ECHO_N "(cached) $ECHO_C" >&6
23744 cat >conftest.$ac_ext <<_ACEOF
23745 #line 23745 "configure"
23746 #include "confdefs.h"
23751 union wait x; wait(&x)
23756 rm -f conftest.$ac_objext
23757 if { (eval echo "$as_me:23757: \"$ac_compile\"") >&5
23758 (eval $ac_compile) 2>&5
23760 echo "$as_me:23760: \$? = $ac_status" >&5
23761 (exit $ac_status); } &&
23762 { ac_try='test -s conftest.$ac_objext'
23763 { (eval echo "$as_me:23763: \"$ac_try\"") >&5
23764 (eval $ac_try) 2>&5
23766 echo "$as_me:23766: \$? = $ac_status" >&5
23767 (exit $ac_status); }; }; then
23768 cf_cv_arg_union_wait=yes
23770 echo "$as_me: failed program was:" >&5
23771 cat conftest.$ac_ext >&5
23772 cf_cv_arg_union_wait=no
23774 rm -f conftest.$ac_objext conftest.$ac_ext
23778 echo "$as_me:23778: result: $cf_cv_arg_union_wait" >&5
23779 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6
23780 test $cf_cv_arg_union_wait = yes &&
23781 cat >>confdefs.h <<\EOF
23782 #define WAIT_USES_UNION 1
23785 echo "$as_me:23785: checking if union wait can be used as waitpid-arg" >&5
23786 echo $ECHO_N "checking if union wait can be used as waitpid-arg... $ECHO_C" >&6
23787 if test "${cf_cv_arg_union_waitpid+set}" = set; then
23788 echo $ECHO_N "(cached) $ECHO_C" >&6
23791 cat >conftest.$ac_ext <<_ACEOF
23792 #line 23792 "configure"
23793 #include "confdefs.h"
23798 union wait x; waitpid(0, &x, 0)
23803 rm -f conftest.$ac_objext
23804 if { (eval echo "$as_me:23804: \"$ac_compile\"") >&5
23805 (eval $ac_compile) 2>&5
23807 echo "$as_me:23807: \$? = $ac_status" >&5
23808 (exit $ac_status); } &&
23809 { ac_try='test -s conftest.$ac_objext'
23810 { (eval echo "$as_me:23810: \"$ac_try\"") >&5
23811 (eval $ac_try) 2>&5
23813 echo "$as_me:23813: \$? = $ac_status" >&5
23814 (exit $ac_status); }; }; then
23815 cf_cv_arg_union_waitpid=yes
23817 echo "$as_me: failed program was:" >&5
23818 cat conftest.$ac_ext >&5
23819 cf_cv_arg_union_waitpid=no
23821 rm -f conftest.$ac_objext conftest.$ac_ext
23825 echo "$as_me:23825: result: $cf_cv_arg_union_waitpid" >&5
23826 echo "${ECHO_T}$cf_cv_arg_union_waitpid" >&6
23827 test $cf_cv_arg_union_waitpid = yes &&
23828 cat >>confdefs.h <<\EOF
23829 #define WAITPID_USES_UNION 1
23834 echo "$as_me:23834: checking if we must include wchar.h to declare mbstate_t" >&5
23835 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
23836 if test "${cf_cv_mbstate_t+set}" = set; then
23837 echo $ECHO_N "(cached) $ECHO_C" >&6
23840 cat >conftest.$ac_ext <<_ACEOF
23841 #line 23841 "configure"
23842 #include "confdefs.h"
23844 #include <stdlib.h>
23846 #ifdef HAVE_LIBUTF8_H
23847 #include <libutf8.h>
23857 rm -f conftest.$ac_objext
23858 if { (eval echo "$as_me:23858: \"$ac_compile\"") >&5
23859 (eval $ac_compile) 2>&5
23861 echo "$as_me:23861: \$? = $ac_status" >&5
23862 (exit $ac_status); } &&
23863 { ac_try='test -s conftest.$ac_objext'
23864 { (eval echo "$as_me:23864: \"$ac_try\"") >&5
23865 (eval $ac_try) 2>&5
23867 echo "$as_me:23867: \$? = $ac_status" >&5
23868 (exit $ac_status); }; }; then
23871 echo "$as_me: failed program was:" >&5
23872 cat conftest.$ac_ext >&5
23873 cat >conftest.$ac_ext <<_ACEOF
23874 #line 23874 "configure"
23875 #include "confdefs.h"
23877 #include <stdlib.h>
23880 #ifdef HAVE_LIBUTF8_H
23881 #include <libutf8.h>
23891 rm -f conftest.$ac_objext
23892 if { (eval echo "$as_me:23892: \"$ac_compile\"") >&5
23893 (eval $ac_compile) 2>&5
23895 echo "$as_me:23895: \$? = $ac_status" >&5
23896 (exit $ac_status); } &&
23897 { ac_try='test -s conftest.$ac_objext'
23898 { (eval echo "$as_me:23898: \"$ac_try\"") >&5
23899 (eval $ac_try) 2>&5
23901 echo "$as_me:23901: \$? = $ac_status" >&5
23902 (exit $ac_status); }; }; then
23903 cf_cv_mbstate_t=yes
23905 echo "$as_me: failed program was:" >&5
23906 cat conftest.$ac_ext >&5
23907 cf_cv_mbstate_t=unknown
23909 rm -f conftest.$ac_objext conftest.$ac_ext
23911 rm -f conftest.$ac_objext conftest.$ac_ext
23913 echo "$as_me:23913: result: $cf_cv_mbstate_t" >&5
23914 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
23916 if test "$cf_cv_mbstate_t" = yes ; then
23918 cat >>confdefs.h <<\EOF
23919 #define NEED_WCHAR_H 1
23924 if test "$cf_cv_mbstate_t" != unknown ; then
23926 cat >>confdefs.h <<\EOF
23927 #define HAVE_MBSTATE_T 1
23940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23941 echo "$as_me:23941: checking for $ac_header" >&5
23942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23944 echo $ECHO_N "(cached) $ECHO_C" >&6
23946 cat >conftest.$ac_ext <<_ACEOF
23947 #line 23947 "configure"
23948 #include "confdefs.h"
23949 #include <$ac_header>
23951 if { (eval echo "$as_me:23951: \"$ac_cpp conftest.$ac_ext\"") >&5
23952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23954 egrep -v '^ *\+' conftest.er1 >conftest.err
23956 cat conftest.err >&5
23957 echo "$as_me:23957: \$? = $ac_status" >&5
23958 (exit $ac_status); } >/dev/null; then
23959 if test -s conftest.err; then
23960 ac_cpp_err=$ac_c_preproc_warn_flag
23967 if test -z "$ac_cpp_err"; then
23968 eval "$as_ac_Header=yes"
23970 echo "$as_me: failed program was:" >&5
23971 cat conftest.$ac_ext >&5
23972 eval "$as_ac_Header=no"
23974 rm -f conftest.err conftest.$ac_ext
23976 echo "$as_me:23976: result: `eval echo '${'$as_ac_Header'}'`" >&5
23977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23979 cat >>confdefs.h <<EOF
23980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23986 if test "$ac_cv_header_termios_h" = yes ; then
23987 case "$CFLAGS $CPPFLAGS" in
23988 (*-D_POSIX_SOURCE*)
23989 termios_bad=dunno ;;
23990 (*) termios_bad=maybe ;;
23992 if test "$termios_bad" = maybe ; then
23993 echo "$as_me:23993: checking whether termios.h needs _POSIX_SOURCE" >&5
23994 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
23995 cat >conftest.$ac_ext <<_ACEOF
23996 #line 23996 "configure"
23997 #include "confdefs.h"
23998 #include <termios.h>
24002 struct termios foo; int x = foo.c_iflag
24007 rm -f conftest.$ac_objext
24008 if { (eval echo "$as_me:24008: \"$ac_compile\"") >&5
24009 (eval $ac_compile) 2>&5
24011 echo "$as_me:24011: \$? = $ac_status" >&5
24012 (exit $ac_status); } &&
24013 { ac_try='test -s conftest.$ac_objext'
24014 { (eval echo "$as_me:24014: \"$ac_try\"") >&5
24015 (eval $ac_try) 2>&5
24017 echo "$as_me:24017: \$? = $ac_status" >&5
24018 (exit $ac_status); }; }; then
24021 echo "$as_me: failed program was:" >&5
24022 cat conftest.$ac_ext >&5
24024 cat >conftest.$ac_ext <<_ACEOF
24025 #line 24025 "configure"
24026 #include "confdefs.h"
24028 #define _POSIX_SOURCE
24029 #include <termios.h>
24033 struct termios foo; int x = foo.c_iflag
24038 rm -f conftest.$ac_objext
24039 if { (eval echo "$as_me:24039: \"$ac_compile\"") >&5
24040 (eval $ac_compile) 2>&5
24042 echo "$as_me:24042: \$? = $ac_status" >&5
24043 (exit $ac_status); } &&
24044 { ac_try='test -s conftest.$ac_objext'
24045 { (eval echo "$as_me:24045: \"$ac_try\"") >&5
24046 (eval $ac_try) 2>&5
24048 echo "$as_me:24048: \$? = $ac_status" >&5
24049 (exit $ac_status); }; }; then
24050 termios_bad=unknown
24052 echo "$as_me: failed program was:" >&5
24053 cat conftest.$ac_ext >&5
24055 cat >>confdefs.h <<\EOF
24056 #define _POSIX_SOURCE 1
24060 rm -f conftest.$ac_objext conftest.$ac_ext
24063 rm -f conftest.$ac_objext conftest.$ac_ext
24064 echo "$as_me:24064: result: $termios_bad" >&5
24065 echo "${ECHO_T}$termios_bad" >&6
24069 echo "$as_me:24069: checking declaration of size-change" >&5
24070 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
24071 if test "${cf_cv_sizechange+set}" = set; then
24072 echo $ECHO_N "(cached) $ECHO_C" >&6
24075 cf_cv_sizechange=unknown
24076 cf_save_CPPFLAGS="$CPPFLAGS"
24078 for cf_opts in "" "NEED_PTEM_H"
24081 CPPFLAGS="$cf_save_CPPFLAGS"
24082 if test -n "$cf_opts"
24085 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24086 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
24089 cat >conftest.$ac_ext <<_ACEOF
24090 #line 24090 "configure"
24091 #include "confdefs.h"
24092 #include <sys/types.h>
24093 #ifdef HAVE_TERMIOS_H
24094 #include <termios.h>
24096 #ifdef HAVE_TERMIO_H
24097 #include <termio.h>
24102 /* This is a workaround for SCO: they neglected to define struct winsize in
24103 * termios.h -- it's only in termio.h and ptem.h
24105 #include <sys/stream.h>
24106 #include <sys/ptem.h>
24109 #ifdef HAVE_SYS_IOCTL_H
24110 #include <sys/ioctl.h>
24118 struct ttysize win; /* SunOS 3.0... */
24119 int y = win.ts_lines;
24120 int x = win.ts_cols;
24123 struct winsize win; /* everything else */
24124 int y = win.ws_row;
24125 int x = win.ws_col;
24127 no TIOCGSIZE or TIOCGWINSZ
24128 #endif /* TIOCGWINSZ */
24129 #endif /* TIOCGSIZE */
24135 rm -f conftest.$ac_objext
24136 if { (eval echo "$as_me:24136: \"$ac_compile\"") >&5
24137 (eval $ac_compile) 2>&5
24139 echo "$as_me:24139: \$? = $ac_status" >&5
24140 (exit $ac_status); } &&
24141 { ac_try='test -s conftest.$ac_objext'
24142 { (eval echo "$as_me:24142: \"$ac_try\"") >&5
24143 (eval $ac_try) 2>&5
24145 echo "$as_me:24145: \$? = $ac_status" >&5
24146 (exit $ac_status); }; }; then
24147 cf_cv_sizechange=yes
24149 echo "$as_me: failed program was:" >&5
24150 cat conftest.$ac_ext >&5
24151 cf_cv_sizechange=no
24153 rm -f conftest.$ac_objext conftest.$ac_ext
24155 CPPFLAGS="$cf_save_CPPFLAGS"
24156 if test "$cf_cv_sizechange" = yes ; then
24157 echo "size-change succeeded ($cf_opts)" >&5
24158 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
24164 echo "$as_me:24164: result: $cf_cv_sizechange" >&5
24165 echo "${ECHO_T}$cf_cv_sizechange" >&6
24166 if test "$cf_cv_sizechange" != no ; then
24168 cat >>confdefs.h <<\EOF
24169 #define HAVE_SIZECHANGE 1
24172 case $cf_cv_sizechange in
24174 cat >>confdefs.h <<EOF
24175 #define $cf_cv_sizechange 1
24183 PACKAGE_CONFIG=dlg_config.h
24185 EXTRA_OUTPUT="$EXTRA_OUTPUT headers-sh:$srcdir/headers-sh.in"
24187 cat >conftest.$ac_ext <<_ACEOF
24188 #line 24188 "configure"
24189 #include "confdefs.h"
24190 #include <locale.h>
24194 setlocale(LC_ALL, "")
24199 rm -f conftest.$ac_objext conftest$ac_exeext
24200 if { (eval echo "$as_me:24200: \"$ac_link\"") >&5
24201 (eval $ac_link) 2>&5
24203 echo "$as_me:24203: \$? = $ac_status" >&5
24204 (exit $ac_status); } &&
24205 { ac_try='test -s conftest$ac_exeext'
24206 { (eval echo "$as_me:24206: \"$ac_try\"") >&5
24207 (eval $ac_try) 2>&5
24209 echo "$as_me:24209: \$? = $ac_status" >&5
24210 (exit $ac_status); }; }; then
24212 cat >>confdefs.h <<\EOF
24213 #define HAVE_SETLOCALE 1
24217 echo "$as_me: failed program was:" >&5
24218 cat conftest.$ac_ext >&5
24220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24222 echo "$as_me:24222: checking if runtime has nl_langinfo support for first weekday" >&5
24223 echo $ECHO_N "checking if runtime has nl_langinfo support for first weekday... $ECHO_C" >&6
24224 if test "${cf_nl_langinfo_1stday+set}" = set; then
24225 echo $ECHO_N "(cached) $ECHO_C" >&6
24228 cat >conftest.$ac_ext <<_ACEOF
24229 #line 24229 "configure"
24230 #include "confdefs.h"
24232 #include <langinfo.h>
24233 #include <locale.h>
24239 int first_weekday = nl_langinfo (_NL_TIME_FIRST_WEEKDAY)[0];
24240 long week_1stday_l = (long) nl_langinfo (_NL_TIME_WEEK_1STDAY);
24246 rm -f conftest.$ac_objext
24247 if { (eval echo "$as_me:24247: \"$ac_compile\"") >&5
24248 (eval $ac_compile) 2>&5
24250 echo "$as_me:24250: \$? = $ac_status" >&5
24251 (exit $ac_status); } &&
24252 { ac_try='test -s conftest.$ac_objext'
24253 { (eval echo "$as_me:24253: \"$ac_try\"") >&5
24254 (eval $ac_try) 2>&5
24256 echo "$as_me:24256: \$? = $ac_status" >&5
24257 (exit $ac_status); }; }; then
24258 cf_nl_langinfo_1stday=yes
24261 echo "$as_me: failed program was:" >&5
24262 cat conftest.$ac_ext >&5
24263 cf_nl_langinfo_1stday=no
24266 rm -f conftest.$ac_objext conftest.$ac_ext
24269 echo "$as_me:24269: result: $cf_nl_langinfo_1stday" >&5
24270 echo "${ECHO_T}$cf_nl_langinfo_1stday" >&6
24271 test "x$cf_nl_langinfo_1stday" = xyes && cat >>confdefs.h <<\EOF
24272 #define HAVE_NL_LANGINFO_1STDAY 1
24275 echo "$as_me:24275: checking if rpath-hack should be disabled" >&5
24276 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
24278 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
24279 if test "${enable_rpath_hack+set}" = set; then
24280 enableval="$enable_rpath_hack"
24281 test "$enableval" != no && enableval=yes
24282 if test "$enableval" != "yes" ; then
24283 cf_disable_rpath_hack=yes
24285 cf_disable_rpath_hack=no
24289 cf_disable_rpath_hack=no
24292 echo "$as_me:24292: result: $cf_disable_rpath_hack" >&5
24293 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
24294 if test "$cf_disable_rpath_hack" = no ; then
24296 echo "$as_me:24296: checking for updated LDFLAGS" >&5
24297 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
24298 if test -n "$LD_RPATH_OPT" ; then
24299 echo "$as_me:24299: result: maybe" >&5
24300 echo "${ECHO_T}maybe" >&6
24304 # Extract the first word of "$ac_prog", so it can be a program name with args.
24305 set dummy $ac_prog; ac_word=$2
24306 echo "$as_me:24306: checking for $ac_word" >&5
24307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24308 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
24309 echo $ECHO_N "(cached) $ECHO_C" >&6
24311 if test -n "$cf_ldd_prog"; then
24312 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
24314 ac_save_IFS=$IFS; IFS=$ac_path_separator
24316 for ac_dir in $ac_dummy; do
24318 test -z "$ac_dir" && ac_dir=.
24319 $as_executable_p "$ac_dir/$ac_word" || continue
24320 ac_cv_prog_cf_ldd_prog="$ac_prog"
24321 echo "$as_me:24321: found $ac_dir/$ac_word" >&5
24327 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
24328 if test -n "$cf_ldd_prog"; then
24329 echo "$as_me:24329: result: $cf_ldd_prog" >&5
24330 echo "${ECHO_T}$cf_ldd_prog" >&6
24332 echo "$as_me:24332: result: no" >&5
24333 echo "${ECHO_T}no" >&6
24336 test -n "$cf_ldd_prog" && break
24338 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
24340 cf_rpath_list="/usr/lib /lib"
24341 if test "$cf_ldd_prog" != no
24345 cat >conftest.$ac_ext <<_ACEOF
24346 #line 24346 "configure"
24347 #include "confdefs.h"
24357 rm -f conftest.$ac_objext conftest$ac_exeext
24358 if { (eval echo "$as_me:24358: \"$ac_link\"") >&5
24359 (eval $ac_link) 2>&5
24361 echo "$as_me:24361: \$? = $ac_status" >&5
24362 (exit $ac_status); } &&
24363 { ac_try='test -s conftest$ac_exeext'
24364 { (eval echo "$as_me:24364: \"$ac_try\"") >&5
24365 (eval $ac_try) 2>&5
24367 echo "$as_me:24367: \$? = $ac_status" >&5
24368 (exit $ac_status); }; }; then
24369 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
24370 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
24372 echo "$as_me: failed program was:" >&5
24373 cat conftest.$ac_ext >&5
24375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24377 # If we passed the link-test, but get a "not found" on a given library,
24378 # this could be due to inept reconfiguration of gcc to make it only
24379 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
24380 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
24381 # /usr/local libraries.
24382 if test -n "$cf_rpath_oops"
24384 for cf_rpath_src in $cf_rpath_oops
24386 for cf_rpath_dir in \
24391 if test -f $cf_rpath_dir/lib/$cf_rpath_src
24393 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
24395 echo "${as_me:-configure}:24395: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
24397 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
24405 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
24407 echo "${as_me:-configure}:24407: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
24409 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
24411 echo "${as_me:-configure}:24411: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
24414 for cf_rpath_src in $LDFLAGS
24416 case $cf_rpath_src in
24419 # check if this refers to a directory which we will ignore
24421 if test -n "$cf_rpath_list"
24423 for cf_rpath_item in $cf_rpath_list
24425 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
24433 if test "$cf_rpath_skip" = no
24435 # transform the option
24436 if test "$LD_RPATH_OPT" = "-R " ; then
24437 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
24439 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
24442 # if we have not already added this, add it now
24443 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
24444 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
24446 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
24448 echo "${as_me:-configure}:24448: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
24450 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
24455 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
24457 LDFLAGS=$cf_rpath_dst
24459 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
24461 echo "${as_me:-configure}:24461: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
24463 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
24465 echo "${as_me:-configure}:24465: testing ...checking LIBS $LIBS ..." 1>&5
24468 for cf_rpath_src in $LIBS
24470 case $cf_rpath_src in
24473 # check if this refers to a directory which we will ignore
24475 if test -n "$cf_rpath_list"
24477 for cf_rpath_item in $cf_rpath_list
24479 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
24487 if test "$cf_rpath_skip" = no
24489 # transform the option
24490 if test "$LD_RPATH_OPT" = "-R " ; then
24491 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
24493 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
24496 # if we have not already added this, add it now
24497 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
24498 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
24500 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
24502 echo "${as_me:-configure}:24502: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
24504 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
24509 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
24513 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
24515 echo "${as_me:-configure}:24515: testing ...checked LIBS $LIBS ..." 1>&5
24517 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
24519 echo "${as_me:-configure}:24519: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
24522 echo "$as_me:24522: result: no" >&5
24523 echo "${ECHO_T}no" >&6
24528 cf_libname=\${LIB_BASENAME}
24529 cf_liblink=$cf_libname
24530 cf_libroot=$cf_libname
24532 if test "x$cf_cv_do_symlinks" = xyes
24534 case "x$cf_cv_shlib_version" in
24536 cf_liblink="\${LIB_ABI_NAME}"
24537 cf_libname="\${LIB_REL_NAME}"
24540 cf_liblink="\${LIB_REL_NAME}"
24541 cf_libname="\${LIB_ABI_NAME}"
24545 LIB_TARGET=$cf_libname
24547 SET_SHLIB_VARS="# begin CF__DEFINE_SHLIB_VARS\\
24548 LIB_BASENAME = \${LIB_PREFIX}\${LIB_ROOTNAME}\${LIB_SUFFIX}\\
24549 LIB_REL_NAME = \${LIB_BASENAME}.\${REL_VERSION}\\
24550 LIB_ABI_NAME = \${LIB_BASENAME}.\${ABI_VERSION}\\
24551 LIB_TARGET = $LIB_TARGET\\
24552 RM_SHARED_OPTS = $RM_SHARED_OPTS\\
24553 # end CF__DEFINE_SHLIB_VARS"
24555 ac_config_files="$ac_config_files dialog-config makefile $EXTRA_OUTPUT $SUB_MAKEFILE"
24556 ac_config_commands="$ac_config_commands default"
24557 cat >confcache <<\_ACEOF
24558 # This file is a shell script that caches the results of configure
24559 # tests run on this system so they can be shared between configure
24560 # scripts and configure runs, see configure's option --config-cache.
24561 # It is not useful on other systems. If it contains results you don't
24562 # want to keep, you may remove or edit it.
24564 # config.status only pays attention to the cache file if you give it
24565 # the --recheck option to rerun configure.
24567 # `ac_cv_env_foo' variables (set or unset) will be overriden when
24568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24569 # following values.
24573 # The following way of writing the cache mishandles newlines in values,
24574 # but we know of no workaround that is simple, portable, and efficient.
24575 # So, don't put newlines in cache variables' values.
24576 # Ultrix sh set writes to stderr and can't be redirected directly,
24577 # and sets the high bit in the cache file unless we assign to the vars.
24580 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24582 # `set' does not quote correctly, so add quotes (double-quote
24583 # substitution turns \\\\ into \\, and sed turns \\ into \).
24586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24589 # `set' quotes correctly as required by POSIX, so do not add quotes.
24591 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24598 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24600 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24602 if cmp -s $cache_file confcache; then :; else
24603 if test -w $cache_file; then
24604 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24605 cat confcache >$cache_file
24607 echo "not updating unwritable cache $cache_file"
24612 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24613 # Let make expand exec_prefix.
24614 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24616 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24617 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24618 # trailing colons and then remove the whole line if VPATH becomes empty
24619 # (actually we leave an empty line to preserve line numbers).
24620 if test "x$srcdir" = x.; then
24621 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24622 s/:*\$(srcdir):*/:/;
24623 s/:*\${srcdir}:*/:/;
24625 s/^\([^=]*=[ ]*\):*/\1/;
24631 DEFS=-DHAVE_CONFIG_H
24633 : ${CONFIG_STATUS=./config.status}
24634 ac_clean_files_save=$ac_clean_files
24635 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24636 { echo "$as_me:24636: creating $CONFIG_STATUS" >&5
24637 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24638 cat >$CONFIG_STATUS <<_ACEOF
24640 # Generated automatically by configure.
24641 # Run this file to recreate the current configuration.
24642 # Compiler output produced by configure, useful for debugging
24643 # configure, is in config.log if it exists.
24646 SHELL=\${CONFIG_SHELL-$SHELL}
24647 ac_cs_invocation="\$0 \$@"
24651 cat >>$CONFIG_STATUS <<\_ACEOF
24652 # Be Bourne compatible
24653 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24656 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24660 # Name of the executable.
24661 as_me=`echo "$0" |sed 's,.*[\\/],,'`
24663 if expr a : '\(a\)' >/dev/null 2>&1; then
24669 rm -f conf$$ conf$$.exe conf$$.file
24671 if ln -s conf$$.file conf$$ 2>/dev/null; then
24672 # We could just check for DJGPP; but this test a) works b) is more generic
24673 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24674 if test -f conf$$.exe; then
24675 # Don't use ln at all; we don't have any links
24680 elif ln conf$$.file conf$$ 2>/dev/null; then
24685 rm -f conf$$ conf$$.exe conf$$.file
24687 as_executable_p="test -f"
24689 # Support unset when possible.
24690 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24697 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
24698 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
24699 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
24700 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
24701 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
24702 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
24703 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
24704 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
24707 # We need space, tab and new line, in precisely that order.
24713 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
24719 # Files that config.status was made for.
24720 if test -n "$ac_config_files"; then
24721 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24724 if test -n "$ac_config_headers"; then
24725 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24728 if test -n "$ac_config_links"; then
24729 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24732 if test -n "$ac_config_commands"; then
24733 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24736 cat >>$CONFIG_STATUS <<\EOF
24739 \`$as_me' instantiates files from templates according to the
24740 current configuration.
24742 Usage: $0 [OPTIONS] [FILE]...
24744 -h, --help print this help, then exit
24745 -V, --version print version number, then exit
24746 -d, --debug don't remove temporary files
24747 --recheck update $as_me by reconfiguring in the same conditions
24748 --file=FILE[:TEMPLATE]
24749 instantiate the configuration file FILE
24750 --header=FILE[:TEMPLATE]
24751 instantiate the configuration header FILE
24753 Configuration files:
24756 Configuration headers:
24759 Configuration commands:
24762 Report bugs to <dickey@invisible-island.net>."
24765 cat >>$CONFIG_STATUS <<EOF
24768 configured by $0, generated by GNU Autoconf 2.52.20170501,
24769 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24771 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
24772 Free Software Foundation, Inc.
24773 This config.status script is free software; the Free Software Foundation
24774 gives unlimited permission to copy, distribute and modify it."
24779 cat >>$CONFIG_STATUS <<\EOF
24780 # If no file are specified by the user, then we need to provide default
24781 # value. By we need to know if files were specified by the user.
24787 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24788 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24790 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
24794 *) # This is not an option, so the user has probably given explicit
24796 ac_need_defaults=false;;
24800 # Handling of the options.
24802 cat >>$CONFIG_STATUS <<EOF
24803 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24804 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
24805 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
24807 cat >>$CONFIG_STATUS <<\EOF
24808 --version | --vers* | -V )
24809 echo "$ac_cs_version"; exit 0 ;;
24811 # Conflict between --help and --header
24812 { { echo "$as_me:24812: error: ambiguous option: $1
24813 Try \`$0 --help' for more information." >&5
24814 echo "$as_me: error: ambiguous option: $1
24815 Try \`$0 --help' for more information." >&2;}
24816 { (exit 1); exit 1; }; };;
24817 --help | --hel | -h )
24818 echo "$ac_cs_usage"; exit 0 ;;
24819 --debug | --d* | -d )
24821 --file | --fil | --fi | --f )
24823 CONFIG_FILES="$CONFIG_FILES $1"
24824 ac_need_defaults=false;;
24825 --header | --heade | --head | --hea )
24827 CONFIG_HEADERS="$CONFIG_HEADERS $1"
24828 ac_need_defaults=false;;
24830 # This is an error.
24831 -*) { { echo "$as_me:24831: error: unrecognized option: $1
24832 Try \`$0 --help' for more information." >&5
24833 echo "$as_me: error: unrecognized option: $1
24834 Try \`$0 --help' for more information." >&2;}
24835 { (exit 1); exit 1; }; } ;;
24837 *) ac_config_targets="$ac_config_targets $1" ;;
24846 ## ----------------------- ##
24847 ## Running config.status. ##
24848 ## ----------------------- ##
24850 This file was extended by $as_me 2.52.20170501, executed with
24851 CONFIG_FILES = $CONFIG_FILES
24852 CONFIG_HEADERS = $CONFIG_HEADERS
24853 CONFIG_LINKS = $CONFIG_LINKS
24854 CONFIG_COMMANDS = $CONFIG_COMMANDS
24855 > $ac_cs_invocation
24856 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24861 cat >>$CONFIG_STATUS <<EOF
24863 # INIT-COMMANDS section.
24866 ABI_VERSION="$ABI_VERSION"
24867 REL_VERSION="$REL_VERSION"
24868 LIB_MODEL="$LIB_MODEL"
24869 LIB_PREFIX="$LIB_PREFIX"
24870 LIB_ROOTNAME="$LIB_ROOTNAME"
24871 DFT_DEP_SUFFIX="$DFT_DEP_SUFFIX"
24872 RM_SHARED_OPTS="$RM_SHARED_OPTS"
24873 cf_cv_do_symlinks="$cf_cv_do_symlinks"
24874 cf_cv_shlib_version="$cf_cv_shlib_version"
24878 cat >>$CONFIG_STATUS <<\EOF
24879 for ac_config_target in $ac_config_targets
24881 case "$ac_config_target" in
24882 # Handling of arguments.
24883 "dialog-config" ) CONFIG_FILES="$CONFIG_FILES dialog-config" ;;
24884 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
24885 "$EXTRA_OUTPUT" ) CONFIG_FILES="$CONFIG_FILES $EXTRA_OUTPUT" ;;
24886 "$SUB_MAKEFILE" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILE" ;;
24887 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24888 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24889 "dlg_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS dlg_config.h:config.hin" ;;
24890 *) { { echo "$as_me:24890: error: invalid argument: $ac_config_target" >&5
24891 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24892 { (exit 1); exit 1; }; };;
24896 # If the user did not use the arguments to specify the items to instantiate,
24897 # then the envvar interface is used. Set only those that are not.
24898 # We use the long form for the default assignment because of an extremely
24899 # bizarre bug on SunOS 4.1.3.
24900 if $ac_need_defaults; then
24901 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24902 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24903 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24906 # Create a temporary directory, and hook for its removal unless debugging.
24909 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24910 trap '{ (exit 1); exit 1; }' 1 2 13 15
24913 # Create a (secure) tmp directory for tmp files.
24916 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
24917 test -n "$tmp" && test -d "$tmp"
24920 tmp=$TMPDIR/cs$$-$RANDOM
24921 (umask 077 && mkdir $tmp)
24924 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
24925 { (exit 1); exit 1; }
24930 cat >>$CONFIG_STATUS <<EOF
24933 # CONFIG_FILES section.
24936 # No need to generate the scripts if there are no CONFIG_FILES.
24937 # This happens for instance when ./config.status config.h
24938 if test -n "\$CONFIG_FILES"; then
24939 # Protect against being on the right side of a sed subst in config.status.
24940 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24941 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24942 s,@SHELL@,$SHELL,;t t
24943 s,@exec_prefix@,$exec_prefix,;t t
24944 s,@prefix@,$prefix,;t t
24945 s,@program_transform_name@,$program_transform_name,;t t
24946 s,@bindir@,$bindir,;t t
24947 s,@sbindir@,$sbindir,;t t
24948 s,@libexecdir@,$libexecdir,;t t
24949 s,@datarootdir@,$datarootdir,;t t
24950 s,@datadir@,$datadir,;t t
24951 s,@sysconfdir@,$sysconfdir,;t t
24952 s,@sharedstatedir@,$sharedstatedir,;t t
24953 s,@localstatedir@,$localstatedir,;t t
24954 s,@libdir@,$libdir,;t t
24955 s,@includedir@,$includedir,;t t
24956 s,@oldincludedir@,$oldincludedir,;t t
24957 s,@infodir@,$infodir,;t t
24958 s,@mandir@,$mandir,;t t
24959 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24960 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24961 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24962 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24963 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24964 s,@build_alias@,$build_alias,;t t
24965 s,@host_alias@,$host_alias,;t t
24966 s,@target_alias@,$target_alias,;t t
24967 s,@ECHO_C@,$ECHO_C,;t t
24968 s,@ECHO_N@,$ECHO_N,;t t
24969 s,@ECHO_T@,$ECHO_T,;t t
24970 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24971 s,@DEFS@,$DEFS,;t t
24972 s,@LIBS@,$LIBS,;t t
24973 s,@DESTDIR@,$DESTDIR,;t t
24975 s,@CFLAGS@,$CFLAGS,;t t
24976 s,@LDFLAGS@,$LDFLAGS,;t t
24977 s,@CPPFLAGS@,$CPPFLAGS,;t t
24978 s,@ac_ct_CC@,$ac_ct_CC,;t t
24979 s,@EXEEXT@,$EXEEXT,;t t
24980 s,@OBJEXT@,$OBJEXT,;t t
24981 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
24983 s,@SET_MAKE@,$SET_MAKE,;t t
24984 s,@RANLIB@,$RANLIB,;t t
24985 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24986 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24987 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24988 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24989 s,@LN_S@,$LN_S,;t t
24990 s,@LINT@,$LINT,;t t
24991 s,@LINT_OPTS@,$LINT_OPTS,;t t
24992 s,@GROFF_PATH@,$GROFF_PATH,;t t
24993 s,@NROFF_PATH@,$NROFF_PATH,;t t
24994 s,@TBL_PATH@,$TBL_PATH,;t t
24995 s,@GROFF_NOTE@,$GROFF_NOTE,;t t
24996 s,@NROFF_NOTE@,$NROFF_NOTE,;t t
24998 s,@ac_ct_AR@,$ac_ct_AR,;t t
24999 s,@ARFLAGS@,$ARFLAGS,;t t
25000 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
25001 s,@CTAGS@,$CTAGS,;t t
25002 s,@ETAGS@,$ETAGS,;t t
25003 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
25004 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
25005 s,@ECHO_LT@,$ECHO_LT,;t t
25006 s,@ECHO_LD@,$ECHO_LD,;t t
25007 s,@RULE_CC@,$RULE_CC,;t t
25008 s,@SHOW_CC@,$SHOW_CC,;t t
25009 s,@ECHO_CC@,$ECHO_CC,;t t
25010 s,@build@,$build,;t t
25011 s,@build_cpu@,$build_cpu,;t t
25012 s,@build_vendor@,$build_vendor,;t t
25013 s,@build_os@,$build_os,;t t
25014 s,@host@,$host,;t t
25015 s,@host_cpu@,$host_cpu,;t t
25016 s,@host_vendor@,$host_vendor,;t t
25017 s,@host_os@,$host_os,;t t
25018 s,@PROG_EXT@,$PROG_EXT,;t t
25019 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
25020 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
25021 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
25022 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
25023 s,@VERSION@,$VERSION,;t t
25024 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
25025 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
25026 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
25027 s,@PACKAGE@,$PACKAGE,;t t
25028 s,@CFG_ROOTNAME@,$CFG_ROOTNAME,;t t
25029 s,@HDR_ROOTNAME@,$HDR_ROOTNAME,;t t
25030 s,@LIB_ROOTNAME@,$LIB_ROOTNAME,;t t
25031 s,@SUB_INC@,$SUB_INC,;t t
25032 s,@cf_man2html@,$cf_man2html,;t t
25033 s,@MAN2HTML_NOTE@,$MAN2HTML_NOTE,;t t
25034 s,@MAN2HTML_PATH@,$MAN2HTML_PATH,;t t
25035 s,@MAN2HTML_TEMP@,$MAN2HTML_TEMP,;t t
25036 s,@CONFIG_H@,$CONFIG_H,;t t
25037 s,@ALLOCA@,$ALLOCA,;t t
25038 s,@GLIBC21@,$GLIBC21,;t t
25039 s,@LIBICONV@,$LIBICONV,;t t
25040 s,@USE_NLS@,$USE_NLS,;t t
25041 s,@MSGFMT@,$MSGFMT,;t t
25042 s,@GMSGFMT@,$GMSGFMT,;t t
25043 s,@XGETTEXT@,$XGETTEXT,;t t
25044 s,@INTLBISON@,$INTLBISON,;t t
25045 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
25046 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
25047 s,@CATALOGS@,$CATALOGS,;t t
25048 s,@CATOBJEXT@,$CATOBJEXT,;t t
25049 s,@GMOFILES@,$GMOFILES,;t t
25050 s,@INTLLIBS@,$INTLLIBS,;t t
25051 s,@INTLOBJS@,$INTLOBJS,;t t
25052 s,@POFILES@,$POFILES,;t t
25053 s,@POSUB@,$POSUB,;t t
25054 s,@DATADIRNAME@,$DATADIRNAME,;t t
25055 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
25056 s,@GENCAT@,$GENCAT,;t t
25057 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
25058 s,@NLS_TEXTDOMAIN@,$NLS_TEXTDOMAIN,;t t
25059 s,@MSG_DIR_MAKE@,$MSG_DIR_MAKE,;t t
25060 s,@SUB_MAKEFILE@,$SUB_MAKEFILE,;t t
25061 s,@INTLDIR_MAKE@,$INTLDIR_MAKE,;t t
25062 s,@GT_YES@,$GT_YES,;t t
25063 s,@GT_NO@,$GT_NO,;t t
25064 s,@LINK_PREFIX@,$LINK_PREFIX,;t t
25065 s,@ABI_VERSION@,$ABI_VERSION,;t t
25066 s,@REL_VERSION@,$REL_VERSION,;t t
25067 s,@shlibdir@,$shlibdir,;t t
25068 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
25069 s,@LIBTOOL@,$LIBTOOL,;t t
25070 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
25071 s,@LT_UNDEF@,$LT_UNDEF,;t t
25072 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
25073 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
25074 s,@LIB_CREATE@,$LIB_CREATE,;t t
25075 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
25076 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
25077 s,@LIB_PREP@,$LIB_PREP,;t t
25078 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
25079 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
25080 s,@LIB_LINK@,$LIB_LINK,;t t
25081 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
25082 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
25083 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
25084 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
25085 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
25086 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
25087 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
25088 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
25089 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
25090 s,@LINK_PROGS@,$LINK_PROGS,;t t
25091 s,@LINK_TESTS@,$LINK_TESTS,;t t
25092 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
25093 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
25094 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
25095 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
25096 s,@RPATH_LIST@,$RPATH_LIST,;t t
25097 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
25098 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
25099 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
25100 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
25101 s,@DFT_LIB_SUFFIX@,$DFT_LIB_SUFFIX,;t t
25102 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
25103 s,@LIB_MODEL@,$LIB_MODEL,;t t
25104 s,@LIBTOOL_MAKE@,$LIBTOOL_MAKE,;t t
25105 s,@MAKE_NORMAL@,$MAKE_NORMAL,;t t
25106 s,@MAKE_SHARED@,$MAKE_SHARED,;t t
25107 s,@MAKE_STATIC@,$MAKE_STATIC,;t t
25108 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
25109 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
25110 s,@X_CFLAGS@,$X_CFLAGS,;t t
25111 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
25112 s,@X_LIBS@,$X_LIBS,;t t
25113 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
25114 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
25115 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
25116 s,@EXTRAOBJS@,$EXTRAOBJS,;t t
25117 s,@PACKAGE_PREFIX@,$PACKAGE_PREFIX,;t t
25118 s,@PACKAGE_CONFIG@,$PACKAGE_CONFIG,;t t
25119 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
25120 s,@SET_SHLIB_VARS@,$SET_SHLIB_VARS,;t t
25121 s,@LIB_TARGET@,$LIB_TARGET,;t t
25126 cat >>$CONFIG_STATUS <<\EOF
25127 # Split the substitutions into bite-sized pieces for seds with
25128 # small command number limits, like on Digital OSF/1 and HP-UX.
25129 ac_max_sed_lines=48
25130 ac_sed_frag=1 # Number of current file.
25131 ac_beg=1 # First line for current file.
25132 ac_end=$ac_max_sed_lines # Line after last line for current file.
25135 while $ac_more_lines; do
25136 if test $ac_beg -gt 1; then
25137 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25139 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25141 if test ! -s $tmp/subs.frag; then
25142 ac_more_lines=false
25144 # The purpose of the label and of the branching condition is to
25145 # speed up the sed processing (if there are no `@' at all, there
25146 # is no need to browse any of the substitutions).
25147 # These are the two extra sed commands mentioned above.
25149 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25150 # It is possible to make a multiline substitution using escaped newlines.
25151 # Ensure that we do not split the substitution between script fragments.
25153 ac_END=`expr $ac_end + $ac_max_sed_lines`
25154 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
25155 if test -s $tmp/subs.next; then
25156 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
25157 if test ! -s $tmp/subs.edit; then
25158 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
25159 if test ! -s $tmp/subs.edit; then
25160 if test $ac_beg -gt 1; then
25161 ac_end=`expr $ac_end - 1`
25168 if test -z "$ac_sed_cmds"; then
25169 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25171 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25173 ac_sed_frag=`expr $ac_sed_frag + 1`
25175 ac_end=`expr $ac_end + $ac_max_sed_lines`
25178 if test -z "$ac_sed_cmds"; then
25181 fi # test -n "$CONFIG_FILES"
25184 cat >>$CONFIG_STATUS <<\EOF
25185 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25186 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25188 - | *:- | *:-:* ) # input from stdin
25190 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25191 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25192 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25193 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25194 * ) ac_file_in=$ac_file.in ;;
25197 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25198 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25199 X"$ac_file" : 'X\(//\)[^/]' \| \
25200 X"$ac_file" : 'X\(//\)$' \| \
25201 X"$ac_file" : 'X\(/\)' \| \
25202 . : '\(.\)' 2>/dev/null ||
25204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25206 /^X\(\/\/\)$/{ s//\1/; q; }
25207 /^X\(\/\).*/{ s//\1/; q; }
25209 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25210 { case "$ac_dir" in
25211 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25215 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25216 case $as_mkdir_dir in
25217 # Skip DOS drivespec
25218 ?:) as_incr_dir=$as_mkdir_dir ;;
25220 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25221 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
25226 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
25227 # A "../" for each directory in $ac_dir_suffix.
25228 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
25230 ac_dir_suffix= ac_dots=
25235 if test -z "$ac_dots"; then
25238 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
25240 [\\/]* | ?:[\\/]* )
25241 ac_srcdir=$srcdir$ac_dir_suffix;
25242 ac_top_srcdir=$srcdir ;;
25243 *) # Relative path.
25244 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
25245 ac_top_srcdir=$ac_dots$srcdir ;;
25249 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25250 *) ac_INSTALL=$ac_dots$INSTALL ;;
25253 if test x"$ac_file" != x-; then
25254 { echo "$as_me:25254: creating $ac_file" >&5
25255 echo "$as_me: creating $ac_file" >&6;}
25258 # Let's still pretend it is `configure' which instantiates (i.e., don't
25259 # use $as_me), people would be surprised to read:
25260 # /* config.h. Generated automatically by config.status. */
25261 configure_input="Generated automatically from `echo $ac_file_in |
25262 sed 's,.*/,,'` by configure."
25264 # First look for the input files in the build tree, otherwise in the
25266 ac_file_inputs=`IFS=:
25267 for f in $ac_file_in; do
25269 -) echo $tmp/stdin ;;
25271 # Absolute (can't be DOS-style, as IFS=:)
25272 test -f "$f" || { { echo "$as_me:25272: error: cannot find input file: $f" >&5
25273 echo "$as_me: error: cannot find input file: $f" >&2;}
25274 { (exit 1); exit 1; }; }
25277 if test -f "$f"; then
25280 elif test -f "$srcdir/$f"; then
25285 { { echo "$as_me:25285: error: cannot find input file: $f" >&5
25286 echo "$as_me: error: cannot find input file: $f" >&2;}
25287 { (exit 1); exit 1; }; }
25290 done` || { (exit 1); exit 1; }
25292 cat >>$CONFIG_STATUS <<\EOF
25293 ac_warn_datarootdir=no
25294 if test x"$ac_file" != x-; then
25295 for ac_item in $ac_file_inputs
25297 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
25298 if test -n "$ac_seen"; then
25299 ac_used=`grep '@datarootdir@' $ac_item`
25300 if test -z "$ac_used"; then
25301 { echo "$as_me:25301: WARNING: datarootdir was used implicitly but not set:
25303 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
25305 ac_warn_datarootdir=yes
25308 ac_seen=`grep '${datarootdir}' $ac_item`
25309 if test -n "$ac_seen"; then
25310 { echo "$as_me:25310: WARNING: datarootdir was used explicitly but not set:
25312 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
25314 ac_warn_datarootdir=yes
25319 if test "x$ac_warn_datarootdir" = xyes; then
25320 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
25324 cat >>$CONFIG_STATUS <<EOF
25328 cat >>$CONFIG_STATUS <<\EOF
25330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25331 s,@configure_input@,$configure_input,;t t
25332 s,@srcdir@,$ac_srcdir,;t t
25333 s,@top_srcdir@,$ac_top_srcdir,;t t
25334 s,@INSTALL@,$ac_INSTALL,;t t
25335 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25337 if test x"$ac_file" != x-; then
25338 cp $tmp/out $ac_file
25340 for ac_name in prefix exec_prefix datarootdir
25342 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
25343 if test -n "$ac_seen"; then
25344 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
25345 if test -z "$ac_init"; then
25346 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
25347 { echo "$as_me:25347: WARNING: Variable $ac_name is used but was not set:
25349 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
25354 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
25355 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
25356 if test -s $tmp/out; then
25357 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
25358 { echo "$as_me:25358: WARNING: Some variables may not be substituted:
25360 echo "$as_me: WARNING: Some variables may not be substituted:
25370 cat >>$CONFIG_STATUS <<\EOF
25373 # CONFIG_HEADER section.
25376 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25377 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25379 # ac_d sets the value in "#define NAME VALUE" lines.
25380 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25381 ac_dB='[ ].*$,\1#\2'
25384 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
25385 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25386 ac_iB='\([ ]\),\1#\2define\3'
25389 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25390 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25391 ac_uB='$,\1#\2define\3'
25395 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25396 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25398 - | *:- | *:-:* ) # input from stdin
25400 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25401 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25402 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25403 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25404 * ) ac_file_in=$ac_file.in ;;
25407 test x"$ac_file" != x- && { echo "$as_me:25407: creating $ac_file" >&5
25408 echo "$as_me: creating $ac_file" >&6;}
25410 # First look for the input files in the build tree, otherwise in the
25412 ac_file_inputs=`IFS=:
25413 for f in $ac_file_in; do
25415 -) echo $tmp/stdin ;;
25417 # Absolute (can't be DOS-style, as IFS=:)
25418 test -f "$f" || { { echo "$as_me:25418: error: cannot find input file: $f" >&5
25419 echo "$as_me: error: cannot find input file: $f" >&2;}
25420 { (exit 1); exit 1; }; }
25423 if test -f "$f"; then
25426 elif test -f "$srcdir/$f"; then
25431 { { echo "$as_me:25431: error: cannot find input file: $f" >&5
25432 echo "$as_me: error: cannot find input file: $f" >&2;}
25433 { (exit 1); exit 1; }; }
25436 done` || { (exit 1); exit 1; }
25437 # Remove the trailing spaces.
25438 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25442 # Transform confdefs.h into a list of #define's. We won't use it as a sed
25443 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
25444 # be either 'cat' or 'sort'.
25445 sort -u confdefs.h | uniq >conftest.vals
25447 # Break up conftest.vals because some shells have a limit on
25448 # the size of here documents, and old seds have small limits too.
25450 rm -f conftest.tail
25451 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
25452 while grep . conftest.vals >/dev/null
25454 # Write chunks of a limited-size here document to conftest.frag.
25455 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
25456 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
25457 echo 'CEOF' >> $CONFIG_STATUS
25458 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
25459 rm -f conftest.vals
25460 mv conftest.tail conftest.vals
25462 rm -f conftest.vals
25464 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
25466 echo ' cat >> conftest.edit <<CEOF
25467 /@DEFS@/r conftest.frag
25470 sed -f conftest.edit $tmp/in > $tmp/out
25472 mv $tmp/out $tmp/in
25473 rm -f conftest.edit conftest.frag
25474 ' >> $CONFIG_STATUS
25476 cat >>$CONFIG_STATUS <<\EOF
25477 # Let's still pretend it is `configure' which instantiates (i.e., don't
25478 # use $as_me), people would be surprised to read:
25479 # /* config.h. Generated automatically by config.status. */
25480 if test x"$ac_file" = x-; then
25481 echo "/* Generated automatically by configure. */" >$tmp/config.h
25483 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
25485 cat $tmp/in >>$tmp/config.h
25487 if test x"$ac_file" != x-; then
25488 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
25489 { echo "$as_me:25489: $ac_file is unchanged" >&5
25490 echo "$as_me: $ac_file is unchanged" >&6;}
25492 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25493 X"$ac_file" : 'X\(//\)[^/]' \| \
25494 X"$ac_file" : 'X\(//\)$' \| \
25495 X"$ac_file" : 'X\(/\)' \| \
25496 . : '\(.\)' 2>/dev/null ||
25498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25499 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25500 /^X\(\/\/\)$/{ s//\1/; q; }
25501 /^X\(\/\).*/{ s//\1/; q; }
25503 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25504 { case "$ac_dir" in
25505 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
25509 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
25510 case $as_mkdir_dir in
25511 # Skip DOS drivespec
25512 ?:) as_incr_dir=$as_mkdir_dir ;;
25514 as_incr_dir=$as_incr_dir/$as_mkdir_dir
25515 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
25522 mv $tmp/config.h $ac_file
25526 rm -f $tmp/config.h
25530 cat >>$CONFIG_STATUS <<\EOF
25532 # CONFIG_COMMANDS section.
25534 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25535 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25536 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25539 default-1 ) for ac_file in $CONFIG_FILES; do
25541 # Support "outfile[:infile[:infile...]]"
25543 (*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25546 # PO directories have a Makefile.in generated from Makefile.inn.
25549 # Adjust a relative srcdir.
25550 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25551 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25552 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25553 ac_base=`basename $ac_file .in`
25554 # In autoconf-2.13 it is called $ac_given_srcdir.
25555 # In autoconf-2.50 it is called $srcdir.
25556 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25558 case "$ac_given_srcdir" in
25559 (.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25560 (/*) top_srcdir="$ac_given_srcdir" ;;
25561 (*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25564 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25565 rm -f "$ac_dir/POTFILES"
25566 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25567 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
25568 test -n "$as_me" && echo "$as_me: creating $ac_dir/$ac_base" || echo "creating $ac_dir/$ac_base"
25569 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/$ac_base.in" > "$ac_dir/$ac_base"
25576 cf_libname=\${LIB_BASENAME}
25577 cf_liblink=$cf_libname
25578 cf_libroot=$cf_libname
25580 if test "x$cf_cv_do_symlinks" = xyes
25582 case "x$cf_cv_shlib_version" in
25584 cf_liblink="\${LIB_ABI_NAME}"
25585 cf_libname="\${LIB_REL_NAME}"
25588 cf_liblink="\${LIB_REL_NAME}"
25589 cf_libname="\${LIB_ABI_NAME}"
25593 LIB_TARGET=$cf_libname
25595 case x$LIB_MODEL in
25597 cf_libdeps="\${LIBS} \${LDFLAGS}"
25604 cat >>makefile <<CF_EOF
25606 # generated by CF__ADD_SHLIB_RULES
25607 # libmodel: $LIB_MODEL
25608 # symlinks: $cf_cv_do_symlinks
25609 # shlibver: $cf_cv_shlib_version
25613 cat >>makefile <<CF_EOF
25617 cat >>makefile <<CF_EOF
25620 \$(LIBTOOL_CREATE) \${LIB_OBJECT} $cf_libdeps
25623 if test "x$cf_cv_do_symlinks" = xyes
25625 cat >>makefile <<CF_EOF
25626 \$(LN_S) $cf_libname $cf_liblink
25627 \$(LN_S) $cf_liblink $cf_libroot
25631 cat >>makefile <<CF_EOF
25634 install.libs :: \$(DESTDIR)\$(libdir)/$cf_libname
25636 \$(DESTDIR)\$(libdir)/$cf_libname :: \\
25637 \$(DESTDIR)\$(libdir) \\
25640 \$(LIBTOOL_CREATE) \${LIB_OBJECT} $cf_libdeps
25643 if test "x$cf_cv_do_symlinks" = xyes
25645 cat >>makefile <<CF_EOF
25646 cd \$(DESTDIR)\$(libdir) && (\$(LN_S) $cf_libname $cf_liblink; \$(LN_S) $cf_liblink $cf_libroot; )
25650 if test x$LIB_MODEL = xshared
25652 cat >>makefile <<CF_EOF
25653 - \$(SHELL) -c "if test -z "\$(DESTDIR)" ; then /sbin/ldconfig; fi"
25657 cat >>makefile <<CF_EOF
25661 @echo uninstalling \$(DESTDIR)\$(libdir)/$cf_libname
25664 if test "x$cf_cv_do_symlinks" = xyes
25666 cat >>makefile <<CF_EOF
25667 -rm -f \$(DESTDIR)\$(libdir)/$cf_libroot
25668 -rm -f \$(DESTDIR)\$(libdir)/$cf_liblink
25672 cat >>makefile <<CF_EOF
25673 -rm -f \$(DESTDIR)\$(libdir)/$cf_libname
25679 if test "x$cf_cv_do_symlinks" = xyes
25681 cat >>makefile <<CF_EOF
25687 cat >>makefile <<CF_EOF
25691 -rm -f \${LIB_OBJECT}
25692 # end generated by CF__ADD_SHLIB_RULES
25700 cat >>$CONFIG_STATUS <<\EOF
25702 { (exit 0); exit 0; }
25704 chmod +x $CONFIG_STATUS
25705 ac_clean_files=$ac_clean_files_save
25707 # configure is writing to config.log, and then calls config.status.
25708 # config.status does its own redirection, appending to config.log.
25709 # Unfortunately, on DOS this fails, as config.log is still kept open
25710 # by configure, so config.status won't be able to write to it; its
25711 # output is simply discarded. So we exec the FD to /dev/null,
25712 # effectively closing config.log, so it can be properly (re)opened and
25713 # appended to by config.status. When coming back to configure, we
25714 # need to make the FD available again.
25715 if test "$no_create" != yes; then
25718 $SHELL $CONFIG_STATUS || ac_cs_success=false
25720 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25721 # would make configure fail if this is the last instruction.
25722 $ac_cs_success || { (exit 1); exit 1; }